renameat: Optimize code size.
[gnulib.git] / ChangeLog
1 2011-11-04  Bruno Haible  <bruno@clisp.org>
2
3         renameat: Optimize code size.
4         * modules/renameat (configure.ac): Don't compile at-func2.c if
5         REPLACE_RENAMEAT is 1.
6
7 2011-11-04  Bruno Haible  <bruno@clisp.org>
8
9         openat tests: Fix file list.
10         * modules/openat-tests (Files): Add tests/test-open.h.
11
12 2011-11-04  Bruno Haible  <bruno@clisp.org>
13
14         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
15         * modules/fchmodat (Depends-on): Add openat-die.
16         * modules/fchownat (Depends-on): Likewise.
17         * modules/linkat (Depends-on): Likewise.
18         * modules/renameat (Depends-on): Likewise.
19         * modules/openat (Depends-on): Add dirent.
20
21 2011-11-04  Jim Meyering  <meyering@redhat.com>
22
23         at-func*.c: fix comments
24         * lib/at-func2.c: Correct/improve first-line comment.
25         * lib/at-func.c: Correct grammar in first-line comment.
26
27 2011-11-04  Bruno Haible  <bruno@clisp.org>
28
29         New module 'mkdirat', split off from module 'openat'.
30         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
31         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
32         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
33         * modules/mkdirat: New file, extracted from modules/openat.
34         * modules/openat (Files): Remove lib/mkdirat.c.
35         (Depends-on): Remove mkdir.
36         (configure.ac): Remove AC_LIBOBJ of mkdirat.
37         (Include): Remove <sys/stat.h>.
38         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
39         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
40         tests/test-mkdir.h.
41         (Depends-on): Remove ignore-value.
42         (Makefile.am): Remove rules for test-mkdirat.
43         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
44         of module 'openat'.
45         * NEWS: Mention the change.
46
47 2011-11-04  Bruno Haible  <bruno@clisp.org>
48
49         closedir: Avoid warning on mingw.
50         * lib/closedir.c: Include <unistd.h>.
51
52 2011-11-04  Bruno Haible  <bruno@clisp.org>
53
54         New module 'fstatat', split off from module 'openat'.
55         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
56         defined.
57         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
58         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
59         gl_FUNC_FSTATAT.
60         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
61         * modules/fstatat: New file, extracted from modules/openat.
62         * modules/openat (Files): Remove lib/fstatat.c.
63         (Depends-on): Remove lstat.
64         (configure.ac): Remove AC_LIBOBJ of fstatat.
65         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
66         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
67         tests/test-lstat.h, tests/test-stat.h.
68         (Depends-on): Remove getcwd-lgpl.
69         (Makefile.am): Remove rules for test-fstatat.
70         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
71         of module 'openat'.
72         * NEWS: Mention the change.
73         * modules/getcwd (Depends-on): Add fstatat.
74         * modules/linkat (Depends-on): Likewise.
75         * modules/mkfifoat-tests (Depends-on): Likewise.
76         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
77
78 2011-11-03  Bruno Haible  <bruno@clisp.org>
79
80         New module 'unlinkat', split off from module 'openat'.
81         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
82         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
83         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
84         * modules/unlinkat: New file, extracted from modules/openat. Correct
85         the dependency conditions.
86         * modules/openat (Files): Remove lib/unlinkat.c.
87         (Depends-on): Remove rmdir, unlink.
88         (configure.ac): Remove AC_LIBOBJ of unlinkat.
89         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
90         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
91         tests/test-rmdir.h, tests/test-unlink.h.
92         (Depends-on): Remove unlinkdir.
93         (Makefile.am): Remove rules for test-unlinkat.
94         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
95         of module 'openat'.
96         * NEWS: Mention the change.
97         * modules/linkat-tests (Depends-on): Add unlinkat.
98         * modules/mkfifoat-tests (Depends-on): Likewise.
99         * modules/readlinkat-tests (Depends-on): Likewise.
100
101 2011-11-02  Bruno Haible  <bruno@clisp.org>
102
103         New module 'fchmodat', split off from module 'openat'.
104         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
105         defined.
106         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
107         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
108         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
109         * modules/fchmodat: New file, extracted from modules/openat.
110         * modules/openat (Files): Remove lib/fchmodat.c.
111         (configure.ac): Remove AC_LIBOBJ of fchmodat.
112         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
113         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
114         (Makefile.am): Remove rules for test-fchmodat.
115         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
116         of module 'openat'.
117         * NEWS: Mention the change.
118
119 2011-11-02  Jim Meyering  <meyering@redhat.com>
120
121         putenv: indent #definition of "environ" to placate cppi
122         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
123
124         gitlog-to-changelog: provide a ChangeLog-repair mechanism
125         Git logs are often treated as immutable, because editing them
126         changes the SHA1 checksums of all descendants.  Thus, errors in
127         git logs tend to stay there forever.  However, when we generate
128         a ChangeLog file -- typically for distribution -- from that git log,
129         we can actually make corrections in the generated file.  The key
130         lies in recording in machine-readable/applicable form the desired
131         corrections.  See --help for description and an example.
132         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
133         (usage): Describe it; alphabetize option descriptions.
134         (main): Honor the new option, carefully.
135
136 2011-11-01  Jim Meyering  <meyering@redhat.com>
137
138         gitlog-to-changelog: avoid an infloop
139         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
140         that ends up being empty.
141
142 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
143
144         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
145         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
146         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
147         contains (possibly-quoted) backslashes.  This should avoid
148         all-too-common shell bugs if COMPLICATED contains backslashes in
149         the "wrong" places.  Reported by David Evans in
150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
151         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
152         because we want ASCII ranges.  Is there some reason we don't use
153         the C locale everywhere in this script?
154         (func_module, top level): Avoid unwanted pathname expansion when
155         $repo_url_prefix or $repo_url_suffix_repl contain shell
156         metacharacters like '?' and '*'.
157
158 2011-11-01  Bruno Haible  <bruno@clisp.org>
159
160         fchownat: Improve description.
161         * modules/fchownat (Description): Add link to function.
162
163 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
164
165         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
166         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
168         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
169
170 2011-11-01  Bruno Haible  <bruno@clisp.org>
171
172         alignof: Avoid collision with stdalign module.
173         * lib/alignof.h (alignof): Remove macro.
174         * NEWS: Mention the change.
175         Reported by Paul Eggert.
176
177 2011-11-01  Bruno Haible  <bruno@clisp.org>
178
179         New module 'fchownat', split off from module 'openat'.
180         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
181         defined.
182         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
183         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
184         invoke gl_FUNC_FCHOWNAT.
185         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
186         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
187         * modules/fchownat: New file, extracted from modules/openat.
188         * modules/openat (Files): Remove lib/fchownat.c.
189         (Depends-on): Remove lchown.
190         (configure.ac): Remove AC_LIBOBJ of fchownat.
191         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
192         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
193         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
194         (Depends-on): Remove mgetgroups, usleep, stat-time.
195         (configure.ac): Remove test for getegid.
196         (Makefile.am): Remove rules for test-fchownat.
197         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
198         of module 'openat'.
199         * NEWS: Mention the change.
200
201 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
202
203         stdalign: port better to MSVC and to Sun C 5.11
204         This fixes some of the problems reported by Bruno Haible in
205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
206         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
207         shortcomings of MSVC and of Sun C 5.11.
208         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
209         around __declspec arg.
210         * modules/stdalign-tests (Files): Add tests/macros.h.
211         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
212         Include macros.h, for ASSERT.
213         (DECLARE_ALIGNED): Remove.
214         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
215         to catch bug), and to 1 if not (simplifies the rest of the code).
216         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
217         (CHECK_AUTO): Remove.
218         (CHECK_ALIGNED): Check only the alignment of the static vars,
219         since auto var alignment isn't supported by Sun C 5.11.
220         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
221         ASSERT failures are easier to diagnose.
222
223 2011-10-31  Bruno Haible  <bruno@clisp.org>
224
225         doc about some IRIX 5.3 problems.
226         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
227         on IRIX 5.3.
228         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
229         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
230         5.3.
231         * doc/posix-functions/grantpt.texi: Likewise.
232         * doc/posix-functions/unlockpt.texi: Likewise.
233         * doc/posix-functions/lgamma.texi: Likewise.
234         * doc/posix-functions/nextafter.texi: Likewise.
235         * doc/posix-functions/remainder.texi: Likewise.
236         * doc/posix-functions/select.texi: Mention misplaced declaration on
237         IRIX 5.3.
238         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
239
240 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
241
242         gitlog-to-changelog: fix git-log invocation.
243         git-log mishandles date strings before 1970-01-01 UTC, and there is
244         no use to specify --since=1970-01-01 by default anyway.
245         * build-aux/gitlog-to-changelog: By default, when no --since option
246         was given, do not specify explicit --since option to git-log.
247
248 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
249
250         gitlog-to-changelog: new option --append-dot.
251         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
252         first non-blank line of each commit message terminated with a dot.
253
254 2011-10-30  Bruno Haible  <bruno@clisp.org>
255
256         ffsl, ffsll: Avoid compilation error due to 'restrict'.
257         * lib/ffsl.h: Include <config.h>.
258         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
259
260 2011-10-30  Jim Meyering  <meyering@redhat.com>
261
262         GNUmakefile: reenable "make syntax-check" for most projects
263         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
264         build-aux variable", "syntax-check" would do nothing but succeed with
265         the "No version control files detected..." diagnostic (unless you
266         happened to override _build-aux via cfg.mk).
267         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
268         to precede inclusion of maint.mk.  Otherwise, these variables would
269         be used undefined in any project that does not override the default.
270
271 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
272
273         gitlog-to-changelog: treat a message with only blank lines as empty.
274         * build-aux/gitlog-to-changelog: Move the code that removes leading and
275         trailing blank lines before the code that issues a warning about an
276         empty commit message.
277
278 2011-10-30  Jim Meyering  <meyering@redhat.com>
279
280         test-parse-datetime.c: avoid new DST-related false positive test failure
281         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
282         based on the time/date we'll convert, not the current time.
283         Otherwise, the moment we cross a DST boundary like today's in
284         Europe, (CEST to CET), that offset ends up being one hour off.
285
286 2011-10-27  Bruno Haible  <bruno@clisp.org>
287
288         fstat: Tweak documentation.
289         * modules/fstat (Description): More precise description.
290
291 2011-10-27  Bruno Haible  <bruno@clisp.org>
292
293         Update documentation regarding 'largefile' module.
294         * doc/posix-functions/fstat.texi: Tweak wording.
295         * doc/posix-functions/opendir.texi: Mention that the module fixes the
296         problems with huge directories and/or small ino_t types.
297         * doc/posix-functions/readdir.texi: Likewise.
298         * doc/posix-functions/rewinddir.texi: Likewise.
299
300 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
301
302         maint.mk: don't maintain a second build-aux variable.
303         * maint.mk (build_aux): Removed.  The maintainer-makefile module
304         depends on GNUmakefile, which already maintains a cfg.mk
305         overridable $(_build-aux) for projects with a non-standard
306         build-aux directory location, although without the $(srcdir)
307         prefix.  Use that variable consistently instead of introducing a
308         second one.  Adjust all call sites.
309
310 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
311
312         Add stdalign module and use it in other modules.
313         This is based on a previous proposal by Bruno Haible
314         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
315
316         stdalign: new module
317         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
318         * modules/stdalign: New files.
319         * MODULES.html.sh (c1x_core_properties): Add stdalign.
320         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
321
322         stdalign-tests: new module
323         * modules/stdalign-tests, tests/test-stdalign.c: New files.
324
325         argp: use stdalign
326         * lib/argp-parse.c: Include <stdalign.h>.
327         (alignof): Remove.
328         * modules/argp (Depends-on): Add stdalign.
329
330         crypto libraries: use stdalign
331         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
332         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
333         Do not include <stdlib.h> twice, in md4.c.
334         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
335         because we are accessing a pointer's bit-pattern, not a size.
336         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
337         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
338         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
339         * modules/crypto/sha512: Likewise.
340
341         sys_socket: use stdalign, not alignof
342         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
343         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
344
345 2011-10-27  Bruno Haible  <bruno@clisp.org>
346
347         raise test: Avoid a test failure on Linux/MIPS.
348         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
349         because 99 is a valid signal on Linux/MIPS.
350
351 2011-10-27  Bruno Haible  <bruno@clisp.org>
352
353         nonblocking tests: Fix test failure on Linux/MIPS.
354         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
355         Set to 270000.
356
357 2011-10-27  Bruno Haible  <bruno@clisp.org>
358
359         utimensat: Work around problem on Linux/hppa.
360         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
361         values.
362         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
363
364 2011-10-25  Jim Meyering  <meyering@redhat.com>
365
366         maint.mk: fix a bug in sc_prohibit_stddef_without_use
367         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
368         after symbols like NULL, size_t, etc.
369         Reported by Alfred M. Szmidt.
370
371         maint.mk: exempt ENODATA from a syntax-check rule
372         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
373         from the sc_prohibit_always-defined_macros syntax-check rule.
374         Add a comment.  See this for more details:
375         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
376
377 2011-10-23  Jim Meyering  <meyering@redhat.com>
378
379         fts: close parent dir FD before returning from post-traversal fts_read
380         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
381         unlink A, even though an FD open on A remained.  This is suboptimal
382         (holding a file descriptor open longer than needed), but otherwise not
383         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
384         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
385         that represents a real problem: it causes the removal of A to fail
386         with e.g., "rm: cannot remove `A': Device or resource busy"
387
388         fts visits each directory twice and keeps a cache (fts_fd_ring) of
389         directory file descriptors.  After completing the final, FTS_DP,
390         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
391         cache, but then proceeded to add a new FD to it via the subsequent
392         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
393         final file descriptor would be closed only via fts_close's call to
394         fd_ring_clear.  Now, it is usually closed earlier, via the final
395         FTS_DP-returning fts_read call.
396         * lib/fts.c (restore_initial_cwd): New function, converted from
397         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
398         Update callers.
399         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
400         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
401
402 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
403             Bruno Haible  <bruno@clisp.org>
404             Jim Meyering  <jim@meyering.net>
405
406         readme-release: improve safety of release prep instructions.
407         * README-release: Don't git pull all branches when only master
408         is needed for the release process.
409         Run make maintainer-clean before changing trees and merging.
410         Don't try to run ./configure right after git pull in case files
411         that influence the bootstrap process have changed, move the
412         ./configure step to after running ./bootstrap.
413         Don't bootstrap "one last time"... it's the first time!
414
415 2011-10-22  Bruno Haible  <bruno@clisp.org>
416
417         errno, strerror-override: Support for MSVC 10.
418         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
419         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
420         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
421         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
422         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
423         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
424         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
425         Assign values compatible with MSVC 10.
426         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
427         New macros.
428         (GNULIB_defined_EWINSOCK): New macro.
429         * lib/strerror-override.c (strerror_override): Update accordingly.
430         * lib/strerror-override.h: Likewise.
431         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
432         longer equal to the corresponding errno value.
433         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
434
435 2011-10-22  Bruno Haible  <bruno@clisp.org>
436
437         perror: Recognize when test program crashes.
438         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
439         strerror, set gl_cv_func_perror_works to no.
440         Reported by Daniel Richard G. <skunk@iskunk.org>.
441
442         perror: Fix indentation.
443         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
444
445 2011-10-22  Bruno Haible  <bruno@clisp.org>
446
447         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
448         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
449         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
450         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
451         functions, not as a macro.
452         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
453         macros.
454         (isfinite, isinf, isnan, signbit): Check overloaded functions and
455         absence of macro.
456         Suggested by Eric Blake.
457         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
458
459 2011-10-21  Bruno Haible  <bruno@clisp.org>
460
461         relocatable-prog-wrapper: Don't leave object files behind.
462         * build-aux/install-reloc: Re-synchronize list of .o files to be
463         removed with list of compilation units.
464
465 2011-10-20  Bruno Haible  <bruno@clisp.org>
466
467         openpty, posix_openpt: Remove code duplication.
468         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
469         * lib/openpty.c: Include <stdlib.h>.
470         (openpty): Use posix_openpt on all platforms except IRIX.
471         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
472
473 2011-10-20  Bruno Haible  <bruno@clisp.org>
474
475         unlockpt: Detect invalid argument.
476         * lib/unlockpt.c: Include <fcntl.h>.
477         (unlockpt): Check whether fd is valid, using fcntl().
478         * modules/unlockpt (Depends-on): Add fcntl-h.
479
480 2011-10-20  Bruno Haible  <bruno@clisp.org>
481
482         openpty: Avoid compilation error on AIX 6.1.
483         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
484
485 2011-10-20  Bruno Haible  <bruno@clisp.org>
486
487         posix_openpt: Support for OpenBSD.
488         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
489         (posix_openpt) [OpenBSD]: New code.
490         * lib/grantpt.c: Include <fcntl.h>.
491         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
492         * modules/grantpt (Depends-on): Add fcntl-h.
493
494 2011-10-20  Bruno Haible  <bruno@clisp.org>
495
496         posix_openpt test: Coding style.
497         * tests/test-posix_openpt.c: Use GNU coding style.
498
499 2011-10-20  Bruno Haible  <bruno@clisp.org>
500
501         grantpt: Support --avoid=pt_chown.
502         * modules/grantpt (Files): Add lib/pty-private.h.
503
504 2011-10-20  Bruno Haible  <bruno@clisp.org>
505
506         posix_openpt: Fix autoconf macro.
507         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
508         unneeded check for _getpty.
509
510 2011-10-20  Bruno Haible  <bruno@clisp.org>
511
512         openpty: Update comments.
513         * lib/openpty.c: Add comments about Minix.
514
515 2011-10-19  Eric Blake  <eblake@redhat.com>
516
517         openpty: relax license
518         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
519
520         pt_chown: use configmake to simplify build
521         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
522
523         ptsname and others: relax license
524         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
525         * modules/unlockpt (License): Likewise.
526         * modules/pt_chown (License): Likewise.
527         * modules/ptsname (License): Likewise.
528         * modules/ttyname_r (License): Likewise.
529
530 2011-10-19  Jim Meyering  <meyering@redhat.com>
531
532         posix_openpt: remove spurious #endif
533         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
534
535 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
536
537         maint.mk: Respect $(build_aux) in web-manual rule.
538         * top/maint.mk (web-manual): Find gen-announce script in user's
539         $(build_aux) directory instead of hard-coding 'build-aux'.
540
541 2011-10-19  Bruno Haible  <bruno@clisp.org>
542
543         posix_openpt: Fix compilation error.
544         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
545         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
546         Mention the openpty module as an alternative.
547
548 2011-10-19  Bruno Haible  <bruno@clisp.org>
549
550         Support for old NeXTstep 3.3 frexp().
551         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
552         execution time of the test to 5 seconds.
553         Reported by Daniel Richard G. <skunk@iskunk.org>.
554
555 2011-10-19  Bruno Haible  <bruno@clisp.org>
556
557         Support for old NeXTstep 3.3 sed.
558         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
559         part, use /.../, not \|...|. Escape periods in the header file name.
560         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
561         Reported by Daniel Richard G. <skunk@iskunk.org>.
562
563 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
564
565         Support for old NeXTstep 3.3 gcc.
566         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
567         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
568         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
569         * lib/spawn.in.h (_Restrict_arr_): Likewise.
570         * lib/regex.h (_Restrict_arr_): Likewise.
571         * lib/regex_internal.h (re_token_t): Likewise.
572         * lib/regexec.c (check_node_accept_bytes): Likewise.
573         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
574
575 2011-10-18  Eric Blake  <eblake@redhat.com>
576
577         posix_openpt: new module
578         * modules/posix_openpt: New module.
579         * m4/posix_openpt.m4: New file.
580         * lib/posix_openpt.c: Likewise.
581         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
582         (gl_STDLIB_H_DEFAULTS): Set defaults.
583         * modules/stdlib (Makefile.am): Substitute macros.
584         * lib/stdlib.in.h (posix_openpt): Declare.
585         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
586         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
587         * modules/posix_openpt-tests: New test module.
588         * tests/test-posix_openpt.c: New test.
589
590 2011-10-15  Bruno Haible  <bruno@clisp.org>
591
592         xstrtoll: Fix compilation failure.
593         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
594         from lib/strtol.c.
595         * doc/posix-headers/limits.texi: Mention missing numerical limits on
596         some platforms.
597         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
598
599 2011-10-15  Bruno Haible  <bruno@clisp.org>
600
601         vasnprintf: Optimize bit search operation.
602         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
603         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
604         gl_DOUBLE_EXPONENT_LOCATION.
605         * modules/vasnprintf (Files): Add m4/exponentd.m4.
606         * modules/unistdio/u8-vasnprintf (Files): Likewise.
607         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
608         * modules/unistdio/u16-vasnprintf (Files): Likewise.
609         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
610         * modules/unistdio/u32-vasnprintf (Files): Likewise.
611         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
612         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
613         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
614
615 2011-10-15  Bruno Haible  <bruno@clisp.org>
616
617         vasnprintf: Fix comments.
618         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
619
620 2011-10-14  Bruno Haible  <bruno@clisp.org>
621
622         Tests for module 'integer_length_ll'.
623         * modules/integer_length_ll-tests: New file.
624         * tests/test-integer_length_ll.c: New file.
625
626         New module 'integer_length_ll'.
627         * lib/integer_length_ll.c: New file.
628         * modules/integer_length_ll: New file.
629
630 2011-10-14  Bruno Haible  <bruno@clisp.org>
631
632         Tests for module 'integer_length_l'.
633         * modules/integer_length_l-tests: New file.
634         * tests/test-integer_length_l.c: New file.
635
636         New module 'integer_length_l'.
637         * lib/integer_length_l.c: New file.
638         * modules/integer_length_l: New file.
639
640 2011-10-14  Bruno Haible  <bruno@clisp.org>
641
642         Tests for module 'integer_length'.
643         * modules/integer_length-tests: New file.
644         * tests/test-integer_length.c: New file.
645
646         New module 'integer_length'.
647         * lib/integer_length.h: New file.
648         * lib/integer_length.c: New file.
649         * modules/integer_length: New file.
650
651 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
652
653         popen: Fix dependency conditions.
654         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
655
656 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
657
658         perror: Fix autoconf test.
659         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
660         <stdlib.h> and <string.h>.
661
662 2011-10-14  Bruno Haible  <bruno@clisp.org>
663
664         ffsl: Optimize on 64-bit platforms.
665         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
666         unrolling.
667
668 2011-10-13  Bruno Haible  <bruno@clisp.org>
669
670         ffsl: Optimize on 32-bit platforms.
671         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
672         use ffs() without a loop.
673
674         ffsl, ffsll: Optimize for GCC.
675         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
676         * lib/ffsl.c (GCC_BUILTIN): New macro.
677         * lib/ffsll.c (GCC_BUILTIN): Likewise.
678
679 2011-10-13  Bruno Haible  <bruno@clisp.org>
680
681         ffs, bcopy, memset: Support symbol renaming via config.h.
682         * lib/ffs.c: Include <config.h>.
683         * lib/bcopy.c: Likewise.
684         * lib/memset.c: Likewise.
685
686 2011-10-10  Bruno Haible  <bruno@clisp.org>
687
688         atanl: Simplify for platforms where 'long double' == 'double'.
689         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
690         alternative implementation.
691         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
692         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
693         * modules/atanl (Depends-on): Add atan. Update conditions.
694
695 2011-10-10  Bruno Haible  <bruno@clisp.org>
696
697         acosl: Simplify for platforms where 'long double' == 'double'.
698         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
699         alternative implementation.
700         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
701         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
702         * modules/acosl (Depends-on): Add acos. Update conditions.
703
704 2011-10-10  Bruno Haible  <bruno@clisp.org>
705
706         asinl: Simplify for platforms where 'long double' == 'double'.
707         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
708         alternative implementation.
709         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
710         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
711         * modules/asinl (Depends-on): Add asin. Update conditions.
712
713 2011-10-10  Bruno Haible  <bruno@clisp.org>
714
715         tanl: Simplify for platforms where 'long double' == 'double'.
716         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
717         implementation.
718         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
719         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
720         * modules/tanl (Depends-on): Add tan. Update conditions.
721         (configure.ac): Don't compile trigl.c if
722         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
723
724 2011-10-10  Bruno Haible  <bruno@clisp.org>
725
726         cosl: Simplify for platforms where 'long double' == 'double'.
727         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
728         implementation.
729         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
730         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
731         * modules/cosl (Depends-on): Add cos. Update conditions.
732         (configure.ac): Don't compile sincosl.c and trigl.c if
733         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
734
735 2011-10-10  Bruno Haible  <bruno@clisp.org>
736
737         sinl: Simplify for platforms where 'long double' == 'double'.
738         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
739         implementation.
740         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
741         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
742         * modules/sinl (Depends-on): Add sin. Update conditions.
743         (configure.ac): Don't compile sincosl.c and trigl.c if
744         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
745
746 2011-10-10  Bruno Haible  <bruno@clisp.org>
747
748         logl: Simplify for platforms where 'long double' == 'double'.
749         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
750         implementation.
751         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
752         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
753         * modules/logl (Depends-on): Add log. Update conditions.
754
755 2011-10-10  Bruno Haible  <bruno@clisp.org>
756
757         expl: Simplify for platforms where 'long double' == 'double'.
758         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
759         implementation.
760         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
761         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
762         * modules/expl (Depends-on): Add exp. Update conditions.
763
764 2011-10-10  Bruno Haible  <bruno@clisp.org>
765
766         sqrtl: Simplify for platforms where 'long double' == 'double'.
767         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
768         alternative implementation.
769         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
770         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
771         * modules/sqrtl (Depends-on): Update conditions.
772
773 2011-10-10  Bruno Haible  <bruno@clisp.org>
774
775         ldexpl: Simplify for platforms where 'long double' == 'double'.
776         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
777         alternative implementation.
778         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
779         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
780         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
781
782 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
783
784         ffsll: set correct witness
785         * modules/ffsll (configure.ac): Fix typo.
786
787 2011-10-10  Bruno Haible  <bruno@clisp.org>
788
789         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
790         * lib/printf-frexpl.c: Include <config.h>.
791         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
792         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
793         second time.
794         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
795         gl_LONG_DOUBLE_VS_DOUBLE.
796         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
797         conditions.
798
799 2011-10-10  Bruno Haible  <bruno@clisp.org>
800
801         frexpl: Simplify for platforms where 'long double' == 'double'.
802         * lib/frexpl.c: Include <config.h>.
803         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
804         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
805         time.
806         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
807         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
808         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
809         * modules/frexpl (Depends-on): Add frexp. Update conditions.
810         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
811         conditions.
812
813 2011-10-10  Jim Meyering  <meyering@redhat.com>
814
815         test-renameat: don't leave behind a temporary file
816         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
817           ERROR: files left in build directory after distclean:
818           ./gltests/test-renameat.too
819           make[1]: *** [distcleancheck] Error 1
820         Reported by Tom G. Christensen.
821
822 2011-10-09  Bruno Haible  <bruno@clisp.org>
823
824         rint: Determine RINT_LIBM correctly on AIX 7.
825         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
826         directly, not only through a function pointer. Also accept an optional
827         4th argument with extra code.
828         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
829         rintf() call by gcc when optimizing.
830
831         mathfunc.m4: Refactor.
832         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
833         m4 variable.
834
835 2011-10-09  Bruno Haible  <bruno@clisp.org>
836
837         rintl: Simplify for platforms where 'long double' == 'double'.
838         * lib/rintl.c: Include <config.h>.
839         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
840         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
841         time.
842         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
843         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
844         * modules/rintl (Depends-on): Add rint. Update conditions.
845
846 2011-10-09  Bruno Haible  <bruno@clisp.org>
847
848         roundl: Simplify for platforms where 'long double' == 'double'.
849         * lib/roundl.c: Include <config.h>.
850         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
851         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
852         time.
853         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
854         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
855         * modules/roundl (Depends-on): Add round. Update conditions.
856
857 2011-10-09  Bruno Haible  <bruno@clisp.org>
858
859         truncl: Simplify for platforms where 'long double' == 'double'.
860         * lib/truncl.c: Include <config.h>.
861         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
862         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
863         time.
864         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
865         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
866         * modules/truncl (Depends-on): Add trunc. Update conditions.
867
868 2011-10-09  Bruno Haible  <bruno@clisp.org>
869
870         ceill: Simplify for platforms where 'long double' == 'double'.
871         * lib/ceill.c: Include <config.h>.
872         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
873         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
874         time.
875         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
876         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
877         * modules/ceill (Depends-on): Add ceil. Update conditions.
878
879 2011-10-09  Bruno Haible  <bruno@clisp.org>
880
881         floorl: Simplify for platforms where 'long double' == 'double'.
882         * lib/floorl.c: Include <config.h>.
883         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
884         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
885         time.
886         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
887         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
888         * modules/floorl (Depends-on): Add floor. Update conditions.
889
890 2011-10-09  Bruno Haible  <bruno@clisp.org>
891
892         rint: Fix ordering constraints.
893         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
894         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
895         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
896
897 2011-10-09  Bruno Haible  <bruno@clisp.org>
898
899         copysignl: Simplify for platforms where 'long double' == 'double'.
900         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
901         alternative.
902         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
903         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
904         * modules/copysignl (Depends-on): Add copysign. Update conditions.
905
906 2011-10-09  Bruno Haible  <bruno@clisp.org>
907
908         Tests for module 'rintl'.
909         * modules/rintl-tests: New file.
910         * tests/test-rintl.c: New file.
911
912         New module 'rintl'.
913         * lib/math.in.h (rintl): New declaration.
914         * lib/rintl.c: New file.
915         * m4/rintl.m4: New file.
916         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
917         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
918         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
919         * modules/rintl: New file.
920         * tests/test-math-c++.cc: Check the declaration of rintl.
921         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
922         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
923         * doc/posix-functions/rintl.texi: Mention the new module.
924
925 2011-10-09  Bruno Haible  <bruno@clisp.org>
926
927         Tests for module 'rintf'.
928         * modules/rintf-tests: New file.
929         * tests/test-rintf.c: New file.
930
931         New module 'rintf'.
932         * lib/math.in.h (rintf): New declaration.
933         * lib/rintf.c: New file.
934         * m4/rintf.m4: New file.
935         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
937         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
938         * modules/rintf: New file.
939         * tests/test-math-c++.cc: Check the declaration of rintf.
940         * doc/posix-functions/rintf.texi: Mention the new module.
941
942 2011-10-09  Bruno Haible  <bruno@clisp.org>
943
944         rint: Support for MSVC.
945         * lib/math.in.h (rint): New declaration.
946         * lib/rint.c: New file.
947         * m4/rint.m4: New file.
948         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
949         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
950         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
951         * modules/rint (Description): Fix.
952         (Files): Add lib/rint.c, m4/rint.m4.
953         (Depends-on): Add math.
954         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
955         gl_MATH_MODULE_INDICATOR.
956         * tests/test-math-c++.cc: Check the declaration of rint.
957         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
958         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
959         * doc/posix-functions/rint.texi: Mention the replacement provided by
960         the module.
961
962         rint tests: More tests.
963         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
964         minus-zero.h, infinity.h, nan.h.
965         (main): Skip the test if the current rounding mode is not standard. Add
966         tests for negative numbers, minus zero, infinity, NaN.
967         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
968         tests/nan.h.
969         (Depends-on): Add isnand-nolibm.
970
971 2011-10-09  Bruno Haible  <bruno@clisp.org>
972
973         Tests for module 'copysignl'.
974         * modules/copysignl-tests: New file.
975         * tests/test-copysignl.c: New file.
976
977         New module 'copysignl'.
978         * lib/math.in.h (copysignl): New declaration.
979         * lib/copysignl.c: New file.
980         * m4/copysignl.m4: New file.
981         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
982         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
983         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
984         HAVE_COPYSIGNL.
985         * modules/copysignl: New file.
986         * tests/test-math-c++.cc: Check the declaration of copysignl.
987         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
988         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
989         * doc/posix-functions/copysignl.texi: Mention the new module.
990
991 2011-10-09  Bruno Haible  <bruno@clisp.org>
992
993         Tests for module 'copysignf'.
994         * modules/copysignf-tests: New file.
995         * tests/test-copysignf.c: New file.
996
997         New module 'copysignf'.
998         * lib/math.in.h (copysignf): New declaration.
999         * lib/copysignf.c: New file.
1000         * m4/copysignf.m4: New file.
1001         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1002         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1003         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1004         HAVE_COPYSIGNF.
1005         * modules/copysignf: New file.
1006         * tests/test-math-c++.cc: Check the declaration of copysignf.
1007         * doc/posix-functions/copysignf.texi: Mention the new module.
1008
1009 2011-10-09  Bruno Haible  <bruno@clisp.org>
1010
1011         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1012         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1013         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1014         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1015         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1016         gl_SIGNAL_H_DEFAULTS.
1017
1018 2011-10-09  Bruno Haible  <bruno@clisp.org>
1019
1020         poll: Make macro safer.
1021         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1022         ac_cv_header_poll_h is not set.
1023
1024 2011-10-09  Bruno Haible  <bruno@clisp.org>
1025
1026         copysign: Provide replacement.
1027         * lib/math.in.h (copysign): New declaration.
1028         * lib/copysign.c: New file.
1029         * m4/copysign.m4: New file.
1030         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1031         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1032         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1033         HAVE_COPYSIGN.
1034         * modules/copysign (Description): Clarify.
1035         (Files): Add lib/copysign.c, m4/copysign.m4.
1036         (Depends-on): Add math, signbit.
1037         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1038         gl_MATH_MODULE_INDICATOR.
1039         * tests/test-math-c++.cc: Check the declaration of copysign.
1040         * doc/posix-functions/copysign.texi: Mention the effects of the module
1041         on Minix and MSVC.
1042
1043 2011-10-09  Bruno Haible  <bruno@clisp.org>
1044
1045         isinf: Ensure macro on AIX 5.1.
1046         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1047         macro.
1048         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1049
1050 2011-10-09  Bruno Haible  <bruno@clisp.org>
1051
1052         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1053         * modules/snprintf-posix-tests (configure.ac): Require
1054         gl_LONG_DOUBLE_VS_DOUBLE.
1055         * modules/sprintf-posix-tests (configure.ac): Likewise.
1056         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1057         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1058         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1059         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1060         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1061         tests on platforms where 'long double' is the same as 'double'.
1062         * tests/test-sprintf-posix.h (test_function): Likewise.
1063         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1064         * tests/test-vasprintf-posix.c (test_function): Likewise.
1065
1066         *printf: Fix for platforms where 'long double' == 'double'.
1067         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1068         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1069         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1070         * modules/fprintf-posix (Files): Likewise.
1071         * modules/obstack-printf-posix (Files): Likewise.
1072         * modules/snprintf-posix (Files): Likewise.
1073         * modules/sprintf-posix (Files): Likewise.
1074         * modules/vasnprintf (Files): Likewise.
1075         * modules/vasnprintf-posix (Files): Likewise.
1076         * modules/vasprintf-posix (Files): Likewise.
1077         * modules/vdprintf-posix (Files): Likewise.
1078         * modules/vfprintf-posix (Files): Likewise.
1079         * modules/vsnprintf-posix (Files): Likewise.
1080         * modules/vsprintf-posix (Files): Likewise.
1081         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1082         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1083         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1084         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1085         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1086         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1087         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1088
1089         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1090         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1091         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1092         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1093         'long double'.
1094         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1095
1096         isinf: Fix for platforms where 'long double' == 'double'.
1097         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1098         Don't blindly assume 80-bit 'long double'.
1099
1100         isfinite: Fix for platforms where 'long double' == 'double'.
1101         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1102         Don't blindly assume 80-bit 'long double'.
1103
1104         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1105         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1106         * modules/isfinite-tests (configure.ac): Require
1107         gl_LONG_DOUBLE_VS_DOUBLE.
1108         * modules/isinf-tests (configure.ac): Likewise.
1109         * modules/isnan-tests (configure.ac): Likewise.
1110         * modules/isnanl-tests (configure.ac): Likewise.
1111         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1112         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1113         tests on platforms where 'long double' is the same as 'double'.
1114         * tests/test-isinf.c (test_isinfl): Likewise.
1115         * tests/test-isnan.c (test_long_double): Likewise.
1116         * tests/test-isnanl.h (main): Likewise.
1117
1118 2011-10-08  Bruno Haible  <bruno@clisp.org>
1119
1120         Tests for module 'tanhf'.
1121         * modules/tanhf-tests: New file.
1122         * tests/test-tanhf.c: New file.
1123
1124         New module 'tanhf'.
1125         * lib/math.in.h (tanhf): New declaration.
1126         * lib/tanhf.c: New file.
1127         * m4/tanhf.m4: New file.
1128         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1129         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1130         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1131         * modules/tanhf: New file.
1132         * tests/test-math-c++.cc: Check the declaration of tanhf.
1133         * doc/posix-functions/tanhf.texi: Mention the new module.
1134
1135         tanh: Use a .m4 file.
1136         * m4/tanh.m4: New file.
1137         * modules/tanh (Files): Add it.
1138         (configure.ac): Just invoke gl_FUNC_TANH.
1139
1140 2011-10-08  Bruno Haible  <bruno@clisp.org>
1141
1142         Tests for module 'coshf'.
1143         * modules/coshf-tests: New file.
1144         * tests/test-coshf.c: New file.
1145
1146         New module 'coshf'.
1147         * lib/math.in.h (coshf): New declaration.
1148         * lib/coshf.c: New file.
1149         * m4/coshf.m4: New file.
1150         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1151         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1152         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1153         * modules/coshf: New file.
1154         * tests/test-math-c++.cc: Check the declaration of coshf.
1155         * doc/posix-functions/coshf.texi: Mention the new module.
1156
1157         cosh: Use a .m4 file.
1158         * m4/cosh.m4: New file.
1159         * modules/cosh (Files): Add it.
1160         (configure.ac): Just invoke gl_FUNC_COSH.
1161
1162 2011-10-08  Bruno Haible  <bruno@clisp.org>
1163
1164         Tests for module 'sinhf'.
1165         * modules/sinhf-tests: New file.
1166         * tests/test-sinhf.c: New file.
1167
1168         New module 'sinhf'.
1169         * lib/math.in.h (sinhf): New declaration.
1170         * lib/sinhf.c: New file.
1171         * m4/sinhf.m4: New file.
1172         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1173         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1174         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1175         * modules/sinhf: New file.
1176         * tests/test-math-c++.cc: Check the declaration of sinhf.
1177         * doc/posix-functions/sinhf.texi: Mention the new module.
1178
1179         sinh: Use a .m4 file.
1180         * m4/sinh.m4: New file.
1181         * modules/sinh (Files): Add it.
1182         (configure.ac): Just invoke gl_FUNC_SINH.
1183
1184 2011-10-08  Bruno Haible  <bruno@clisp.org>
1185
1186         Tests for module 'atan2f'.
1187         * modules/atan2f-tests: New file.
1188         * tests/test-atan2f.c: New file.
1189
1190         New module 'atan2f'.
1191         * lib/math.in.h (atan2f): New declaration.
1192         * lib/atan2f.c: New file.
1193         * m4/atan2f.m4: New file.
1194         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1195         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1196         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1197         * modules/atan2f: New file.
1198         * tests/test-math-c++.cc: Check the declaration of atan2f.
1199         * doc/posix-functions/atan2f.texi: Mention the new module.
1200
1201         atan2: Use a .m4 file.
1202         * m4/atan2.m4: New file.
1203         * modules/atan2 (Files): Add it.
1204         (configure.ac): Just invoke gl_FUNC_ATAN2.
1205
1206 2011-10-08  Bruno Haible  <bruno@clisp.org>
1207
1208         Tests for module 'atanf'.
1209         * modules/atanf-tests: New file.
1210         * tests/test-atanf.c: New file.
1211
1212         New module 'atanf'.
1213         * lib/math.in.h (atanf): New declaration.
1214         * lib/atanf.c: New file.
1215         * m4/atanf.m4: New file.
1216         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1217         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1218         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1219         * modules/atanf: New file.
1220         * tests/test-math-c++.cc: Check the declaration of atanf.
1221         * doc/posix-functions/atanf.texi: Mention the new module.
1222
1223         atan: Use a .m4 file.
1224         * m4/atan.m4: New file.
1225         * modules/atan (Files): Add it.
1226         (configure.ac): Just invoke gl_FUNC_ATAN.
1227
1228 2011-10-08  Bruno Haible  <bruno@clisp.org>
1229
1230         Tests for module 'acosf'.
1231         * modules/acosf-tests: New file.
1232         * tests/test-acosf.c: New file.
1233
1234         New module 'acosf'.
1235         * lib/math.in.h (acosf): New declaration.
1236         * lib/acosf.c: New file.
1237         * m4/acosf.m4: New file.
1238         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1239         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1240         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1241         * modules/acosf: New file.
1242         * tests/test-math-c++.cc: Check the declaration of acosf.
1243         * doc/posix-functions/acosf.texi: Mention the new module.
1244
1245         acos: Use a .m4 file.
1246         * m4/acos.m4: New file.
1247         * modules/acos (Files): Add it.
1248         (configure.ac): Just invoke gl_FUNC_ACOS.
1249
1250 2011-10-08  Bruno Haible  <bruno@clisp.org>
1251
1252         Tests for module 'asinf'.
1253         * modules/asinf-tests: New file.
1254         * tests/test-asinf.c: New file.
1255
1256         New module 'asinf'.
1257         * lib/math.in.h (asinf): New declaration.
1258         * lib/asinf.c: New file.
1259         * m4/asinf.m4: New file.
1260         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
1261         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
1262         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
1263         * modules/asinf: New file.
1264         * tests/test-math-c++.cc: Check the declaration of asinf.
1265         * doc/posix-functions/asinf.texi: Mention the new module.
1266
1267         asin: Use a .m4 file.
1268         * m4/asin.m4: New file.
1269         * modules/asin (Files): Add it.
1270         (configure.ac): Just invoke gl_FUNC_ASIN.
1271
1272 2011-10-08  Bruno Haible  <bruno@clisp.org>
1273
1274         Tests for module 'tanf'.
1275         * modules/tanf-tests: New file.
1276         * tests/test-tanf.c: New file.
1277
1278         New module 'tanf'.
1279         * lib/math.in.h (tanf): New declaration.
1280         * lib/tanf.c: New file.
1281         * m4/tanf.m4: New file.
1282         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
1283         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
1284         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
1285         * modules/tanf: New file.
1286         * tests/test-math-c++.cc: Check the declaration of tanf.
1287         * doc/posix-functions/tanf.texi: Mention the new module.
1288
1289         tan: Use a .m4 file.
1290         * m4/tan.m4: New file.
1291         * modules/tan (Files): Add it.
1292         (configure.ac): Just invoke gl_FUNC_TAN.
1293
1294 2011-10-08  Bruno Haible  <bruno@clisp.org>
1295
1296         Tests for module 'cosf'.
1297         * modules/cosf-tests: New file.
1298         * tests/test-cosf.c: New file.
1299
1300         New module 'cosf'.
1301         * lib/math.in.h (cosf): New declaration.
1302         * lib/cosf.c: New file.
1303         * m4/cosf.m4: New file.
1304         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
1305         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
1306         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
1307         * modules/cosf: New file.
1308         * tests/test-math-c++.cc: Check the declaration of cosf.
1309         * doc/posix-functions/cosf.texi: Mention the new module.
1310
1311         cos: Use a .m4 file.
1312         * m4/cos.m4: New file.
1313         * modules/cos (Files): Add it.
1314         (configure.ac): Just invoke gl_FUNC_COS.
1315
1316 2011-10-08  Bruno Haible  <bruno@clisp.org>
1317
1318         Tests for module 'sinf'.
1319         * modules/sinf-tests: New file.
1320         * tests/test-sinf.c: New file.
1321
1322         New module 'sinf'.
1323         * lib/math.in.h (sinf): New declaration.
1324         * lib/sinf.c: New file.
1325         * m4/sinf.m4: New file.
1326         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
1327         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
1328         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
1329         * modules/sinf: New file.
1330         * tests/test-math-c++.cc: Check the declaration of sinf.
1331         * doc/posix-functions/sinf.texi: Mention the new module.
1332
1333         sin: Use a .m4 file.
1334         * m4/sin.m4: New file.
1335         * modules/sin (Files): Add it.
1336         (configure.ac): Just invoke gl_FUNC_SIN.
1337
1338 2011-10-08  Bruno Haible  <bruno@clisp.org>
1339
1340         Tests for module 'powf'.
1341         * modules/powf-tests: New file.
1342         * tests/test-powf.c: New file.
1343
1344         New module 'powf'.
1345         * lib/math.in.h (powf): New declaration.
1346         * lib/powf.c: New file.
1347         * m4/powf.m4: New file.
1348         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1349         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1350         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1351         * modules/powf: New file.
1352         * tests/test-math-c++.cc: Check the declaration of powf.
1353         * doc/posix-functions/powf.texi: Mention the new module.
1354
1355         pow: Use a .m4 file.
1356         * m4/pow.m4: New file.
1357         * modules/pow (Files): Add it.
1358         (configure.ac): Just invoke gl_FUNC_POW.
1359
1360 2011-10-08  Bruno Haible  <bruno@clisp.org>
1361
1362         Tests for module 'log10f'.
1363         * modules/log10f-tests: New file.
1364         * tests/test-log10f.c: New file.
1365
1366         New module 'log10f'.
1367         * lib/math.in.h (log10f): New declaration.
1368         * lib/log10f.c: New file.
1369         * m4/log10f.m4: New file.
1370         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1371         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1372         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1373         * modules/log10f: New file.
1374         * tests/test-math-c++.cc: Check the declaration of log10f.
1375         * doc/posix-functions/log10f.texi: Mention the new module.
1376
1377         log10: Use a .m4 file.
1378         * m4/log10.m4: New file.
1379         * modules/log10 (Files): Add it.
1380         (configure.ac): Just invoke gl_FUNC_LOG10.
1381
1382 2011-10-08  Bruno Haible  <bruno@clisp.org>
1383
1384         Tests for module 'logf'.
1385         * modules/logf-tests: New file.
1386         * tests/test-logf.c: New file.
1387
1388         New module 'logf'.
1389         * lib/math.in.h (logf): New declaration.
1390         * lib/logf.c: New file.
1391         * m4/logf.m4: New file.
1392         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
1393         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
1394         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
1395         * modules/logf: New file.
1396         * tests/test-math-c++.cc: Check the declaration of logf.
1397         * doc/posix-functions/logf.texi: Mention the new module.
1398
1399         log: Use a .m4 file.
1400         * m4/log.m4: New file.
1401         * modules/log (Files): Add it.
1402         (configure.ac): Just invoke gl_FUNC_LOG.
1403
1404 2011-10-08  Bruno Haible  <bruno@clisp.org>
1405
1406         Tests for module 'expf'.
1407         * modules/expf-tests: New file.
1408         * tests/test-expf.c: New file.
1409
1410         New module 'expf'.
1411         * lib/math.in.h (expf): New declaration.
1412         * lib/expf.c: New file.
1413         * m4/expf.m4: New file.
1414         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1415         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1416         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1417         * modules/expf: New file.
1418         * tests/test-math-c++.cc: Check the declaration of expf.
1419         * doc/posix-functions/expf.texi: Mention the new module.
1420
1421         exp: Use a .m4 file.
1422         * m4/exp.m4: New file.
1423         * modules/exp (Files): Add it.
1424         (configure.ac): Just invoke gl_FUNC_EXP.
1425
1426 2011-10-08  Bruno Haible  <bruno@clisp.org>
1427
1428         Tests for module 'sqrtf'.
1429         * modules/sqrtf-tests: New file.
1430         * tests/test-sqrtf.c: New file.
1431
1432         New module 'sqrtf'.
1433         * lib/math.in.h (sqrtf): New declaration.
1434         * lib/sqrtf.c: New file.
1435         * m4/sqrtf.m4: New file.
1436         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
1437         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
1438         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
1439         * modules/sqrtf: New file.
1440         * tests/test-math-c++.cc: Check the declaration of sqrtf.
1441         * doc/posix-functions/sqrtf.texi: Mention the new module.
1442
1443 2011-10-08  Bruno Haible  <bruno@clisp.org>
1444
1445         Tests: Avoid link failures w.r.t. libintl.
1446         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
1447         $(LIBINTL).
1448         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
1449         $(LIBINTL).
1450         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
1451         against $(LIBINTL).
1452         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
1453         $(LIBINTL).
1454         * modules/openat-tests (Makefile.am): Link test-fchmodat against
1455         $(LIBINTL).
1456         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
1457
1458 2011-10-08  Bruno Haible  <bruno@clisp.org>
1459
1460         pow tests: Defeat compiler optimizations.
1461         * tests/test-pow.c (main): Assign arguments to x and y before use.
1462
1463 2011-10-08  Bruno Haible  <bruno@clisp.org>
1464
1465         gnulib-tool: Improve last commit.
1466         * gnulib-tool (func_modules_transitive_closure): Simplify code.
1467         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
1468         ignore dependencies that are not among the modules list.
1469
1470 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
1471
1472         gnulib-tool: don't follow dependencies to avoided modules
1473         This fixes a bug that is related to the previous one.
1474         * gnulib-tool (func_modules_transitive_closure)
1475         (func_emit_autoconf_snippets):
1476         Check whether a dependency is acceptable before using it.
1477         (--extract-dependencies): Report an error if --avoid is also used,
1478         since this combination of options is not yet supported.
1479
1480         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
1481         Problem reported by Peter Dyballa in
1482         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
1483         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
1484         when echoing "$condition".
1485
1486 2011-10-07  Bruno Haible  <bruno@clisp.org>
1487
1488         Fix documentation about math functions on MacOS X.
1489         * doc/posix-functions/exp2.texi: Don't say the function is missing on
1490         MacOS X 10.5.
1491         * doc/posix-functions/fdim.texi: Likewise.
1492         * doc/posix-functions/feclearexcept.texi: Likewise.
1493         * doc/posix-functions/fegetenv.texi: Likewise.
1494         * doc/posix-functions/fegetround.texi: Likewise.
1495         * doc/posix-functions/feholdexcept.texi: Likewise.
1496         * doc/posix-functions/feraiseexcept.texi: Likewise.
1497         * doc/posix-functions/fesetenv.texi: Likewise.
1498         * doc/posix-functions/fesetround.texi: Likewise.
1499         * doc/posix-functions/fetestexcept.texi: Likewise.
1500         * doc/posix-functions/feupdateenv.texi: Likewise.
1501         * doc/posix-functions/fmax.texi: Likewise.
1502         * doc/posix-functions/fmin.texi: Likewise.
1503         * doc/posix-functions/log2.texi: Likewise.
1504         * doc/posix-functions/modff.texi: Likewise.
1505         * doc/posix-functions/nan.texi: Likewise.
1506         * doc/posix-functions/nanf.texi: Likewise.
1507         * doc/posix-functions/nextafterf.texi: Likewise.
1508         * doc/posix-functions/remquo.texi: Likewise.
1509
1510 2011-10-07  Bruno Haible  <bruno@clisp.org>
1511
1512         modff: Drop assumption about library that defines modff.
1513         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
1514         AC_CHECK_FUNCS.
1515         * modules/modff (Files): Add m4/mathfunc.m4.
1516
1517 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
1518
1519         raise tests: Avoid a GCC warning.
1520         * tests/test-raise.c (handler): Use _Noreturn.
1521
1522 2011-10-07  Bruno Haible  <bruno@clisp.org>
1523
1524         Tests for module 'ldexpf'.
1525         * modules/ldexpf-tests: New file.
1526         * tests/test-ldexpf.c: New file.
1527
1528         New module 'ldexpf'.
1529         * lib/math.in.h (ldexpf): New declaration.
1530         * lib/ldexpf.c: New file.
1531         * m4/ldexpf.m4: New file.
1532         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
1533         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
1534         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
1535         * modules/ldexpf: New file.
1536         * tests/test-math-c++.cc: Check the declaration of ldexpf.
1537         * doc/posix-functions/ldexpf.texi: Mention the new module.
1538
1539 2011-10-06  Bruno Haible  <bruno@clisp.org>
1540
1541         frexpf: Work around problems on IRIX and mingw.
1542         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
1543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
1544         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
1545         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
1546         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
1547         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
1548         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
1549
1550 2011-10-06  Bruno Haible  <bruno@clisp.org>
1551
1552         fabsf: Drop assumption about library that defines fabsf.
1553         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
1554         AC_CHECK_FUNCS.
1555         * modules/fabsf (Files): Add m4/mathfunc.m4.
1556
1557 2011-10-06  Bruno Haible  <bruno@clisp.org>
1558
1559         frexpf: Drop assumption about library that defines frexpf.
1560         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
1561         'int *', 'float *', 'long double *', 'float', 'long double'.
1562         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
1563         AC_CHECK_FUNCS.
1564         * modules/frexpf (Files): Add m4/mathfunc.m4.
1565
1566         Tests for module 'frexpf'.
1567         * modules/frexpf-tests: New file.
1568         * tests/test-frexpf.c: New file.
1569
1570         New module 'frexpf'.
1571         * lib/math.in.h (frexpf): New declaration.
1572         * lib/frexpf.c: New file.
1573         * m4/frexpf.m4: New file.
1574         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
1575         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
1576         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
1577         * modules/frexpf: New file.
1578         * tests/test-math-c++.cc: Check the declaration of frexpf.
1579         * doc/posix-functions/frexpf.texi: Mention the new module.
1580
1581 2011-10-06  Bruno Haible  <bruno@clisp.org>
1582
1583         math: Sort function declarations of math.in.h.
1584         * lib/math.in.h (frexp, logb): Move declarations.
1585
1586 2011-10-05  Bruno Haible  <bruno@clisp.org>
1587
1588         Tests for module 'modff'.
1589         * modules/modff-tests: New file.
1590         * tests/test-modff.c: New file.
1591
1592         New module 'modff'.
1593         * lib/math.in.h (modff): New declaration.
1594         * lib/modff.c: New file.
1595         * m4/modff.m4: New file.
1596         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
1597         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
1598         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
1599         * modules/modff: New file.
1600         * tests/test-math-c++.cc: Check the declaration of modff.
1601         * doc/posix-functions/modff.texi: Mention the new module.
1602
1603         modf tests: Make test sharper.
1604         * tests/test-modf.c (main): Strengthen upper bound.
1605
1606         modf: Use a .m4 file.
1607         * m4/modf.m4: New file.
1608         * modules/modf (Files): Add it.
1609         (configure.ac): Just invoke gl_FUNC_MODF.
1610
1611 2011-10-05  Bruno Haible  <bruno@clisp.org>
1612
1613         Tests for module 'fmodf'.
1614         * modules/fmodf-tests: New file.
1615         * tests/test-fmodf.c: New file.
1616
1617         New module 'fmodf'.
1618         * lib/math.in.h (fmodf): New declaration.
1619         * lib/fmodf.c: New file.
1620         * m4/fmodf.m4: New file.
1621         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
1622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
1623         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
1624         * modules/fmodf: New file.
1625         * tests/test-math-c++.cc: Check the declaration of fmodf.
1626         * doc/posix-functions/fmodf.texi: Mention the new module.
1627
1628         fmod: Use a .m4 file.
1629         * m4/fmod.m4: New file.
1630         * modules/fmod (Files): Add it.
1631         (configure.ac): Just invoke gl_FUNC_FMOD.
1632
1633 2011-10-05  Bruno Haible  <bruno@clisp.org>
1634
1635         Tests for module 'fabsf'.
1636         * modules/fabsf-tests: New file.
1637         * tests/test-fabsf.c: New file.
1638
1639         New module 'fabsf'.
1640         * lib/math.in.h (fabsf): New declaration.
1641         * lib/fabsf.c: New file.
1642         * m4/fabsf.m4: New file.
1643         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
1644         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
1645         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
1646         * modules/fabsf: New file.
1647         * tests/test-math-c++.cc: Check the declaration of fabsf.
1648         * doc/posix-functions/fabsf.texi: Mention the new module.
1649
1650         fabs: Use a .m4 file.
1651         * m4/fabs.m4: New file.
1652         * modules/fabs (Files): Add it.
1653         (configure.ac): Just invoke gl_FUNC_FABS.
1654
1655 2011-10-05  Jim Meyering  <meyering@redhat.com>
1656
1657         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
1658         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
1659         ls -lL regression introduced in coreutils-8.12, it does so at the
1660         cost of an additional stat call in the common case.  Besides, now
1661         that the kernel change that prompted commit 95f7c57f has been reverted
1662         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
1663         we have no use for commit 95f7c57f, "file-has-acl: use
1664         acl_extended_file_nofollow if available".
1665
1666 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
1667
1668         file-has-acl: revert unintended change in behavior of ls -L
1669         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
1670         derived from...
1671         (file_has_acl): ...code here.  Call it.
1672         This problem was introduced with 2011-07-22 commit 95f7c57f,
1673         "file-has-acl: use acl_extended_file_nofollow if available".
1674         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
1675
1676 2011-10-03  Bruno Haible  <bruno@clisp.org>
1677
1678         poll: Avoid link errors on MSVC.
1679         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
1680         * modules/poll (Depends-on): Add sockets.
1681         (Link): New section.
1682         * NEWS: Mention the change.
1683         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
1684         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
1685         $(LIB_POLL) instead of $(LIBSOCKET).
1686
1687 2011-10-03  Bruno Haible  <bruno@clisp.org>
1688
1689         sys_select tests: Fix link error on MSVC 9.
1690         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
1691         with $(LIB_SELECT) instead of $(LIBSOCKET).
1692
1693 2011-10-03  Bruno Haible  <bruno@clisp.org>
1694
1695         sys_select: Fix compilation error on mingw.
1696         * lib/sys_select.in.h: On native Windows, include <io.h>.
1697
1698 2011-10-03  Bruno Haible  <bruno@clisp.org>
1699
1700         wmemset: Support for MSVC.
1701         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
1702         whether wmemset() exists.
1703
1704 2011-10-03  Bruno Haible  <bruno@clisp.org>
1705
1706         wmemmove: Support for MSVC.
1707         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
1708         whether wmemmove() exists.
1709
1710 2011-10-03  Bruno Haible  <bruno@clisp.org>
1711
1712         wmemcpy: Support for MSVC.
1713         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
1714         whether wmemcpy() exists.
1715
1716 2011-10-03  Bruno Haible  <bruno@clisp.org>
1717
1718         wmemcmp: Support for MSVC.
1719         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
1720         whether wmemcmp() exists.
1721
1722 2011-10-03  Bruno Haible  <bruno@clisp.org>
1723
1724         wmemchr: Support for MSVC.
1725         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
1726         whether wmemchr() exists.
1727
1728 2011-10-03  Bruno Haible  <bruno@clisp.org>
1729
1730         glthread/*, strsignal: Support for MSVC.
1731         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
1732         including <winsock.h> on MSVC 9.
1733         * lib/glthread/lock.h: Likewise.
1734         * lib/glthread/thread.h: Likewise.
1735         * lib/glthread/tls.h: Likewise.
1736         * lib/glthread/yield.h: Likewise.
1737         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
1738         if HAVE_UNISTD_H is false.
1739         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
1740
1741 2011-10-03  Bruno Haible  <bruno@clisp.org>
1742
1743         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
1744         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
1745         Set to 100000.
1746
1747 2011-10-03  Bruno Haible  <bruno@clisp.org>
1748
1749         acl: Fix specification.
1750         * lib/file-has-acl.c (file_has_acl): Fix specification.
1751
1752 2011-10-03  Bruno Haible  <bruno@clisp.org>
1753
1754         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
1755         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
1756         (compute_curr_prefix, shared_library_fullname,
1757         find_shared_library_fullname, get_shared_library_fullname, relocate):
1758         Use it together with PIC && INSTALLDIR.
1759         Reported by <jojelino@gmail.com>
1760         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
1761
1762 2011-10-01  Jim Meyering  <meyering@redhat.com>
1763
1764         maint.mk: adjust a release-related rule not to require use of gzip
1765         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
1766         Instead, check each file in $(DIST_ARCHIVES).  This is better for
1767         projects that build only .tar.xz files.  Also fix an erroneous test.
1768
1769         test-linkat: don't leave behind a temporary file
1770         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
1771         Otherwise, coreutils' "make distcheck" would fail with this:
1772           Only in /c/cu/tests/torture/coreutils/test/\
1773             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
1774           make[2]: *** [my-distcheck] Error 1
1775
1776         float, math: add omitted file
1777         * lib/itold.c: Add file, required for yesterday's float change.
1778
1779 2011-10-01  Bruno Haible  <bruno@clisp.org>
1780
1781         isinf: Fix for OpenBSD/x86.
1782         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
1783         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
1784         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
1785
1786 2011-10-01  Bruno Haible  <bruno@clisp.org>
1787
1788         isfinite: Fix syntax error in configure test.
1789         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
1790
1791         isfinite: Fix typo.
1792         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
1793         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
1794
1795 2011-10-01  Bruno Haible  <bruno@clisp.org>
1796
1797         nonblocking tests: Fix test failure on Linux/IA-64.
1798         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
1799         Set to 270000.
1800
1801 2011-10-01  Bruno Haible  <bruno@clisp.org>
1802
1803         mkfifoat tests: Fix a test failure on mingw.
1804         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
1805         with error ENOSYS.
1806
1807 2011-09-30  Bruno Haible  <bruno@clisp.org>
1808
1809         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
1810         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
1811         'long double'. Set REPLACE_ITOLD.
1812         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
1813         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
1814         * lib/itold.c: New file.
1815         * modules/float (Files): Add lib/itold.c.
1816         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
1817         (Makefile.am): Substitute REPLACE_ITOLD.
1818         * modules/math (Depends-on): Add float.
1819         (Makefile.am): Substitute REPLACE_ITOLD.
1820         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
1821         * doc/posix-headers/math.texi: Likewise.
1822         * doc/posix-functions/logl.texi: Likewise.
1823
1824 2011-09-30  Bruno Haible  <bruno@clisp.org>
1825
1826         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
1827         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
1828         Set to 140000.
1829
1830 2011-09-30  Bruno Haible  <bruno@clisp.org>
1831
1832         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
1833         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
1834         invocation, say "right after AC_PROG_CC_STDC", not "right after
1835         AC_PROG_CC".
1836         Reported by Gary V. Vaughan <gary@gnu.org>.
1837
1838 2011-09-30  Bruno Haible  <bruno@clisp.org>
1839
1840         Centralize C99 requirement.
1841         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
1842         * modules/stdarg (configure.ac-early): Invoke it instead of
1843         AC_PROG_CC_STDC.
1844         Reported by Gary V. Vaughan and Paul Eggert.
1845
1846 2011-09-29  Bruno Haible  <bruno@clisp.org>
1847
1848         float: Fix LDBL_MAX value on Linux/PowerPC.
1849         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
1850         on Linux/PowerPC.
1851         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
1852         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
1853         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
1854         platform.
1855         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
1856
1857 2011-09-29  Bruno Haible  <bruno@clisp.org>
1858
1859         doc: Improve doc about gl_EARLY.
1860         * doc/gnulib-tool.texi (Initial import): Mention where to place an
1861         AC_PROG_CC_STDC invocation.
1862         Reported by Gary V. Vaughan <gary@gnu.org>.
1863
1864 2011-09-28  Bruno Haible  <bruno@clisp.org>
1865
1866         fgetc, fputc, fread, fwrite tests: Fix link error.
1867         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
1868         on non-MSVC platforms.
1869         * tests/test-fputc.c (main): Likewise.
1870         * tests/test-fread.c (main): Likewise.
1871         * tests/test-fwrite.c (main): Likewise.
1872         Reported by Jim Meyering.
1873
1874 2011-09-27  Bruno Haible  <bruno@clisp.org>
1875
1876         fputc, fwrite tests: Avoid test failure on MSVC.
1877         * tests/test-fgetc.c: Include msvc-inval.h.
1878         (main): Invoke gl_msvc_inval_ensure_handler.
1879         * tests/test-fputc.c: Include msvc-inval.h.
1880         (main): Invoke gl_msvc_inval_ensure_handler.
1881         * tests/test-fread.c: Include msvc-inval.h.
1882         (main): Invoke gl_msvc_inval_ensure_handler.
1883         * tests/test-fwrite.c: Include msvc-inval.h.
1884         (main): Invoke gl_msvc_inval_ensure_handler.
1885         * modules/fgetc-tests (Depends-on): Add msvc-inval.
1886         * modules/fputc-tests (Depends-on): Likewise.
1887         * modules/fread-tests (Depends-on): Likewise.
1888         * modules/fwrite-tests (Depends-on): Likewise.
1889
1890 2011-09-27  Bruno Haible  <bruno@clisp.org>
1891
1892         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
1893         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
1894         (raise): Remove older, duplicated declaration.
1895         (_gl_raise_SIGPIPE): New declaration.
1896         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
1897         (rpl_raise): Remove function.
1898         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
1899         a gnulib-defined SIGPIPE here.
1900         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
1901         'sigprocmask' has detected missing signal-blocking and the module
1902         'sigpipe' is enabled.
1903         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1904
1905 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
1906
1907         base64-tests: avoid memory leak
1908         * tests/test-base64.c (main): Plug memory leak.
1909
1910         base32: new module
1911         * modules/base32: New module.
1912         * lib/base32.c: New file.
1913         * lib/base32.h: Likewise.
1914         * m4/base32.m4: Likewise.
1915         * modules/base32-tests: New test.
1916         * tests/test-base32.c: Likewise.
1917         * MODULES.html.sh (Misc): Mention it.
1918
1919 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1920
1921         gnulib: use more-standard license notice wording
1922         * gnulib-tool (func_emit_copyright_notice): When emitting a
1923         license notice into a file, use the standard wording as suggested
1924         by the current information for GNU maintainers, except say "file"
1925         rather than "program".  The new wording gives a license version
1926         number, which addresses an issue raised by Glenn Morris in
1927         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
1928         * m4/onceonly.m4: Use that same wording here, too.
1929
1930         dup2: minor simplification
1931         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
1932         as lib/dup2.c no longer uses 'inline'.
1933
1934 2011-09-25  Bruno Haible  <bruno@clisp.org>
1935
1936         strings: Fix compilation error on MSVC.
1937         * lib/strings.in.h: Include <stddef.h> for size_t.
1938
1939 2011-09-25  Bruno Haible  <bruno@clisp.org>
1940
1941         fflush et al.: Document limitation on MSVC.
1942         * doc/posix-functions/fflush.texi: Document possible crash in handling
1943         mode other than DEFAULT_HANDLING.
1944         * doc/posix-functions/fgetc.texi: Likewise.
1945         * doc/posix-functions/fputc.texi: Likewise.
1946         * doc/posix-functions/fread.texi: Likewise.
1947         * doc/posix-functions/fwrite.texi: Likewise.
1948
1949 2011-09-25  Bruno Haible  <bruno@clisp.org>
1950
1951         msvc-inval: Allow three invalid parameter handling modes.
1952         * lib/msvc-inval.h: Don't include <stdlib.h> here.
1953         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
1954         macros.
1955         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
1956         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
1957         SANE_LIBRARY_HANDLING as a no-op.
1958         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
1959         <stdlib.h>.
1960         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
1961
1962 2011-09-25  Bruno Haible  <bruno@clisp.org>
1963
1964         msvc-inval: Make handler multithread-safe.
1965         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
1966         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
1967         declarations.
1968         (gl_msvc_inval_current): New declaration.
1969         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1970         Operate on the structure returned by gl_msvc_inval_current().
1971         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
1972         Remove varaiables.
1973         (tls_index, tls_initialized): New variables.
1974         (not_per_thread): New variable.
1975         (gl_msvc_inval_current): New function.
1976         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
1977         returned by gl_msvc_inval_current().
1978
1979 2011-09-25  Bruno Haible  <bruno@clisp.org>
1980
1981         msvc-inval: Install handler globally.
1982         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
1983         !_MSC_VER.
1984         (gl_msvc_invalid_parameter_handler): Remove declaration.
1985         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
1986         declarations.
1987         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1988         Install the handler globally, don't uninstall it.
1989         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
1990         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
1991         currently valid, call RaiseException instead.
1992         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
1993         for !_MSC_VER.
1994
1995 2011-09-25  Bruno Haible  <bruno@clisp.org>
1996
1997         strerror_r-posix: Fix for MSVC 9.
1998         * lib/strerror_r.c (local_snprintf): New function.
1999         (snprintf): Define to local_snprintf, not to _snprintf.
2000
2001 2011-09-25  Bruno Haible  <bruno@clisp.org>
2002
2003         ftruncate: Support for MSVC 9.
2004         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2005         (chsize_nothrow): New function.
2006         (chsize): Redefine as a macro.
2007         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2008         * modules/ftruncate (Depends-on): Add msvc-inval.
2009
2010 2011-09-25  Bruno Haible  <bruno@clisp.org>
2011
2012         New module 'fstat'.
2013         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2014         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2015         * lib/fchdir.c (rpl_fstat): Remove function.
2016         * m4/fstat.m4: New file.
2017         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2018         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2019         declared.
2020         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2021         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2022         * modules/fstat: New file.
2023         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2024         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2025         is set.
2026         * doc/posix-functions/fstat.texi: Mention the new module and the
2027         problem on MSVC.
2028         * NEWS: Mention the change.
2029         * modules/acl (Depends-on): Add fstat.
2030         * modules/chdir-safer (Depends-on): Likewise.
2031         * modules/chown (Depends-on): Likewise.
2032         * modules/copy-file (Depends-on): Likewise.
2033         * modules/fchdir (Depends-on): Likewise.
2034         * modules/fdopendir (Depends-on): Likewise.
2035         * modules/fopen (Depends-on): Likewise.
2036         * modules/fts (Depends-on): Likewise.
2037         * modules/getcwd (Depends-on): Likewise.
2038         * modules/isapipe (Depends-on): Likewise.
2039         * modules/linkat (Depends-on): Likewise.
2040         * modules/lseek (Depends-on): Likewise.
2041         * modules/mkdir-p (Depends-on): Likewise.
2042         * modules/open (Depends-on): Likewise.
2043         * modules/openat (Depends-on): Likewise.
2044         * modules/read-file (Depends-on): Likewise.
2045         * modules/renameat (Depends-on): Likewise.
2046         * modules/utimens (Depends-on): Likewise.
2047
2048 2011-09-25  Bruno Haible  <bruno@clisp.org>
2049
2050         linkat: Fix compilation on MSVC 9.
2051         * lib/linkat.c: Don't include <stdint.h>.
2052
2053 2011-09-25  Bruno Haible  <bruno@clisp.org>
2054
2055         fclose: Support for MSVC 9.
2056         * lib/fclose.c: Include msvc-inval.h.
2057         (fclose_nothrow): New function.
2058         (rpl_fclose): Use it.
2059         * modules/fclose (Depends-on): Add msvc-inval.
2060         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2061
2062 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2063
2064         dup2: minor simplifications
2065         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2066         that it's a performance win.
2067         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2068         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2069
2070 2011-09-24  Jim Meyering  <meyering@redhat.com>
2071
2072         test-futimens: avoid a warning from gcc -Wshadow
2073         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2074         to avoid a shadowing warning.
2075
2076 2011-09-24  Bruno Haible  <bruno@clisp.org>
2077
2078         fdopen: Support for MSVC 9.
2079         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2080         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2081         * lib/fdopen.c: Include msvc-inval.h.
2082         (fdopen_nothrow): New function.
2083         (rpl_fdopen): Use it.
2084         * modules/fdopen (Depends-on): Add msvc-inval.
2085         * modules/fclose-tests (Depends-on): Add fdopen.
2086         * modules/fflush-tests (Depends-on): Likewise.
2087         * modules/fgetc-tests (Depends-on): Likewise.
2088         * modules/fputc-tests (Depends-on): Likewise.
2089         * modules/fread-tests (Depends-on): Likewise.
2090         * modules/freopen-tests (Depends-on): Likewise.
2091         * modules/fseeko-tests (Depends-on): Likewise.
2092         * modules/ftello-tests (Depends-on): Likewise.
2093         * modules/fwrite-tests  (Depends-on): Likewise.
2094         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2095
2096 2011-09-24  Bruno Haible  <bruno@clisp.org>
2097
2098         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2099         * modules/fgetc-tests (Depends-on): Add unistd.
2100         * modules/fputc-tests (Depends-on): Likewise.
2101         * modules/fread-tests (Depends-on): Likewise.
2102         * modules/fwrite-tests (Depends-on): Likewise.
2103
2104 2011-09-24  Bruno Haible  <bruno@clisp.org>
2105
2106         dup: Simplify autoconf test.
2107         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2108         on gl_MSVC_INVAL's result.
2109
2110 2011-09-24  Bruno Haible  <bruno@clisp.org>
2111
2112         Tests for function fwrite().
2113         * modules/fwrite-tests: New file.
2114         * tests/test-fwrite.c: New file.
2115         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2116
2117         Tests for function fread().
2118         * modules/fread-tests: New file.
2119         * tests/test-fread.c: New file.
2120         * modules/stdio-tests (Depends-on): Add fread-tests.
2121
2122         Activate fputc tests.
2123         * modules/stdio-tests (Depends-on): Add fputc-tests.
2124
2125         Enhance fgetc, fputc tests.
2126         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2127         * tests/test-fputc.c (main): Likewise.
2128
2129 2011-09-24  Bruno Haible  <bruno@clisp.org>
2130
2131         write: Support for MSVC 9.
2132         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2133         is not 1.
2134         * lib/write.c (write_nothrow): New function.
2135         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2136         not 1. Use write_nothrow.
2137         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2138         invalid parameter handler.
2139         (gl_PREREQ_WRITE): New macro.
2140         * modules/write (Depends-on): Add msvc-inval.
2141         (configure.ac): Invoke gl_PREREQ_WRITE.
2142         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2143
2144 2011-09-24  Bruno Haible  <bruno@clisp.org>
2145
2146         read: Fix last commit.
2147         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2148
2149 2011-09-24  Bruno Haible  <bruno@clisp.org>
2150
2151         dup2: Fix last commit.
2152         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2153         (rpl_dup2): Disable fcntl workaround on native Windows.
2154
2155         sigprocmask: Make code safer.
2156         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2157         section that changes macro definitions for this compilation unit.
2158
2159 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2160
2161         dup2: clarify by coalescing Windows-specific material
2162         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2163         "msvc-nothrow.h"' to the Windows-specific section, so that the
2164         Emacs source need not contain these include files.
2165         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2166         Windows-specific fixes into this function rather than just the
2167         nothrow fix, as this shortens and clarifies the code.  Always
2168         define as a function, as that's a bit cleaner than having it be
2169         sometimes a function and sometimes a macro.
2170         (rpl_dup2): Move the Windows-specific stuff out of here and into
2171         ms_windows_dup2.  Don't protect the Haiku-related fix with
2172         "#if !defined __linux__", as the same code also works around
2173         a Linux kernel bug, and it doesn't add any system calls on any
2174         platform.  Add comment about FreeBSD 6.1.
2175
2176         sigprocmask: move #include directive
2177         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2178         Windows-specific section, so that the Emacs source need not
2179         contain msvc-inval.h.
2180
2181 2011-09-23  Bruno Haible  <bruno@clisp.org>
2182
2183         read: Support for MSVC 9.
2184         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2185         is not 1.
2186         * lib/read.c (read_nothrow): New function.
2187         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2188         read_nothrow.
2189         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2190         invalid parameter handler.
2191         (gl_PREREQ_READ): New macro.
2192         * modules/read (Depends-on): Add msvc-inval.
2193         (configure.ac): Invoke gl_PREREQ_READ.
2194         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2195
2196 2011-09-23  Bruno Haible  <bruno@clisp.org>
2197
2198         close: Support for MSVC 9.
2199         * lib/close.c: Include <errno.h>, msvc-inval.h.
2200         (close_nothrow): New function.
2201         (rpl_close): Use it.
2202         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2203         invalid parameter handler.
2204         * modules/close (Depends-on): Add msvc-inval.
2205         * modules/dup2-tests (Depends-on): Add close.
2206         * modules/dup3-tests (Depends-on): Likewise.
2207         * modules/fcntl-tests (Depends-on): Likewise.
2208         * modules/spawn-pipe-tests (Depends-on): Likewise.
2209         * modules/unistd-safer-tests (Depends-on): Likewise.
2210         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2211
2212 2011-09-23  Bruno Haible  <bruno@clisp.org>
2213
2214         New module 'dup'.
2215         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2216         Allow replacement.
2217         * lib/dup.c: New file.
2218         * lib/fchdir.c (rpl_dup): Remove function.
2219         * m4/dup.m4: New file.
2220         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2221         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2222         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2223         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2224         * modules/dup: New file.
2225         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2226         'dup' module is in use.
2227         * modules/fdopendir (Depends-on): Add dup.
2228         * modules/fdutimensat-tests (Depends-on): Likewise.
2229         * modules/fts (Depends-on): Likewise.
2230         * modules/futimens-tests (Depends-on): Likewise.
2231         * modules/posix_spawnp-tests (Depends-on): Likewise.
2232         * modules/unistd-safer-tests (Depends-on): Likewise.
2233         * modules/utimens-tests (Depends-on): Likewise.
2234         * doc/posix-functions/dup.texi: Mention the new module and the problem
2235         on MSVC.
2236
2237 2011-09-23  Bruno Haible  <bruno@clisp.org>
2238
2239         getdtablesize: Support for MSVC 9.
2240         * lib/getdtablesize.c: Include msvc-inval.h.
2241         (_setmaxstdio_nothrow): New function.
2242         (_setmaxstdio): Redefine it.
2243         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2244         * modules/getdtablesize (Depends-on): Add msvc-inval.
2245         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
2246
2247 2011-09-23  Bruno Haible  <bruno@clisp.org>
2248
2249         signal-h: Rename from signal.
2250         * modules/signal-h: Renamed from modules/signal.
2251         * modules/pthread_sigmask (Depends-on): Update.
2252         * modules/raise (Depends-on): Likewise.
2253         * modules/sigaction (Depends-on): Likewise.
2254         * modules/sigpipe (Depends-on): Likewise.
2255         * modules/sigprocmask (Depends-on): Likewise.
2256         * modules/sys_select (Depends-on): Likewise.
2257         * modules/signal-h-tests: Renamed from modules/signal-tests.
2258         (Files, Depends-on, Makefile.am): Update.
2259         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
2260         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
2261         (Files, Makefile.am): Update.
2262         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
2263         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
2264         * modules/signal: New placeholder file.
2265         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
2266         * doc/posix-headers/signal.texi: Update.
2267         * NEWS: Mention the change.
2268
2269 2011-09-23  Bruno Haible  <bruno@clisp.org>
2270
2271         sigprocmask: Avoid crashes through signal() on MSVC 9.
2272         * lib/sigprocmask.c: Include msvc-inval.h.
2273         (signal_nothrow): New function.
2274         (signal): Redefine it.
2275         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
2276         * modules/sigprocmask (Depends-on): Add msvc-inval.
2277         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
2278
2279 2011-09-23  Bruno Haible  <bruno@clisp.org>
2280
2281         Tests for module 'raise'.
2282         * modules/raise-tests: New file.
2283         * tests/test-raise.c: New file.
2284
2285         raise: Support for MSVC.
2286         * lib/signal.in.h (raise): New declaration.
2287         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
2288         for native Windows platforms.
2289         * m4/raise.m4: New file.
2290         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
2291         HAVE_RAISE, REPLACE_RAISE.
2292         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
2293         REPLACE_RAISE.
2294         * modules/raise (Status, Notice): Remove fields.
2295         (Files): Add m4/raise.m4.
2296         (Depends-on): Add signal, msvc-inval.
2297         (configure.ac): Use the common idioms.
2298         (Maintainer): Add me.
2299         * tests/test-signal-c++.cc: Check the signature of raise.
2300         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
2301
2302 2011-09-23  Bruno Haible  <bruno@clisp.org>
2303
2304         pipe2: Fix compilation on pre-C99 compilers.
2305         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
2306
2307 2011-09-23  Bruno Haible  <bruno@clisp.org>
2308
2309         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
2310         * lib/msvc-nothrow.h: New file.
2311         * lib/msvc-nothrow.c: New file.
2312         * m4/msvc-nothrow.m4: New file.
2313         * modules/msvc-nothrow: New file.
2314         * lib/dup2.c: Include msvc-nothrow.h.
2315         (rpl_dup2): No need to protect _get_osfhandle call here.
2316         * lib/accept4.c: Include msvc-nothrow.h.
2317         * lib/error.c: Likewise.
2318         * lib/fcntl.c: Likewise.
2319         * lib/lseek.c: Likewise.
2320         * lib/nonblocking.c: Likewise.
2321         * lib/poll.c: Likewise.
2322         * lib/read.c: Likewise.
2323         * lib/select.c: Likewise.
2324         * lib/sockets.h: Likewise.
2325         * lib/sockets.c: Likewise.
2326         * lib/stdio-read.c: Likewise.
2327         * lib/stdio-write.c: Likewise.
2328         * lib/write.c: Likewise.
2329         * lib/w32sock.h: Likewise.
2330         * lib/w32spawn.h: Likewise.
2331         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
2332         * lib/fsync.c: Likewise.
2333         * lib/isapipe.c: Likewise.
2334         * modules/dup2 (Depends-on): Add msvc-nothrow.
2335         * modules/accept4 (Depends-on): Likewise.
2336         * modules/error (Depends-on): Likewise.
2337         * modules/fcntl (Depends-on): Likewise.
2338         * modules/lseek (Depends-on): Likewise.
2339         * modules/nonblocking (Depends-on): Likewise.
2340         * modules/poll (Depends-on): Likewise.
2341         * modules/read (Depends-on): Likewise.
2342         * modules/select (Depends-on): Likewise.
2343         * modules/sockets (Depends-on): Likewise.
2344         * modules/sigpipe (Depends-on): Likewise.
2345         * modules/write (Depends-on): Likewise.
2346         * modules/accept (Depends-on): Likewise.
2347         * modules/bind (Depends-on): Likewise.
2348         * modules/connect (Depends-on): Likewise.
2349         * modules/gethostname (Depends-on): Likewise.
2350         * modules/getpeername (Depends-on): Likewise.
2351         * modules/getsockname (Depends-on): Likewise.
2352         * modules/getsockopt (Depends-on): Likewise.
2353         * modules/ioctl (Depends-on): Likewise.
2354         * modules/listen (Depends-on): Likewise.
2355         * modules/recv (Depends-on): Likewise.
2356         * modules/recvfrom (Depends-on): Likewise.
2357         * modules/send (Depends-on): Likewise.
2358         * modules/sendto (Depends-on): Likewise.
2359         * modules/setsockopt (Depends-on): Likewise.
2360         * modules/shutdown (Depends-on): Likewise.
2361         * modules/socket (Depends-on): Likewise.
2362         * modules/execute (Depends-on): Likewise.
2363         * modules/spawn-pipe (Depends-on): Likewise.
2364         * modules/flock (Depends-on): Likewise.
2365         * modules/fsync (Depends-on): Likewise.
2366         * modules/isapipe (Depends-on): Likewise.
2367         * tests/test-cloexec.c: Include msvc-nothrow.h.
2368         * tests/test-dup-safer.c: Likewise.
2369         * tests/test-dup2.c: Likewise.
2370         * tests/test-dup3.c: Likewise.
2371         * tests/test-fcntl.c: Likewise.
2372         * tests/test-pipe.c: Likewise.
2373         * tests/test-pipe2.c: Likewise.
2374         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
2375         * modules/unistd-safer-tests (Depends-on): Likewise.
2376         * modules/dup2-tests (Depends-on): Likewise.
2377         * modules/dup3-tests (Depends-on): Likewise.
2378         * modules/fcntl-tests (Depends-on): Likewise.
2379         * modules/pipe-posix-tests (Depends-on): Likewise.
2380         * modules/pipe2-tests (Depends-on): Likewise.
2381
2382 2011-09-23  Bruno Haible  <bruno@clisp.org>
2383
2384         dup2: Make code more maintainable.
2385         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
2386         (rpl_dup2): Use it.
2387         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
2388         * modules/dup2 (configure.ac): Invoke it.
2389         Reported by Paul Eggert.
2390
2391 2011-09-23  Bruno Haible  <bruno@clisp.org>
2392
2393         msvc-inval: Fix compilation error.
2394         * lib/msvc-inval.h: Include <excpt.h>.
2395
2396 2011-09-23  Bruno Haible  <bruno@clisp.org>
2397
2398         mkdir: Tweak for MSVC 9.
2399         * lib/sys_stat.in.h: Update comments.
2400         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
2401
2402         Tests for module 'chdir'.
2403         * modules/chdir-tests: New file.
2404         * tests/test-chdir.c: New file.
2405
2406         New module 'chdir'.
2407         * modules/chdir: New file.
2408         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
2409         (chdir): New declaration.
2410         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
2411         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
2412         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
2413         * tests/test-unistd-c++.cc: Check signature of chdir.
2414         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2415         * modules/chdir-long (Depends-on): Add chdir.
2416         * modules/fchdir (Depends-on): Likewise.
2417         * modules/rename (Depends-on): Likewise.
2418         * modules/savewd (Depends-on): Likewise.
2419
2420         rmdir: Support for mingw, MSVC 9.
2421         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
2422         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
2423
2424         getcwd: Tweak for MSVC 9.
2425         * lib/unistd.in.h: Update comments.
2426         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
2427
2428 2011-09-22  Bruno Haible  <bruno@clisp.org>
2429
2430         strerror_r-posix: Avoid a link error on MSVC.
2431         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
2432         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
2433
2434 2011-09-22  Bruno Haible  <bruno@clisp.org>
2435
2436         select: Avoid link errors on MSVC.
2437         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
2438         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
2439         * modules/pselect (Link): Likewise.
2440         * NEWS: Mention the change.
2441         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
2442         test-select-stdin against $(LIB_SELECT).
2443         * modules/pselect-tests (Makefile.am): Link test-pselect against
2444         $(LIB_SELECT).
2445
2446 2011-09-22  Bruno Haible  <bruno@clisp.org>
2447
2448         select: Avoid compilation error on MSVC.
2449         * lib/select.c: Don't include <stdbool.h>.
2450
2451 2011-09-21  Bruno Haible  <bruno@clisp.org>
2452
2453         Consolidate all uses of PATH_MAX in *.m4 files.
2454         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
2455         macros.
2456         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
2457         and gl_PATHMAX_SNIPPET.
2458         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2459         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2460         * modules/chdir-long (Files): Add m4/pathmax.m4.
2461         * modules/getcwd (Files): Likewise.
2462
2463 2011-09-21  Bruno Haible  <bruno@clisp.org>
2464
2465         ftruncate: Un-deprecate, concentrate on Win32 support.
2466         * modules/ftruncate (Status, Notice): Remove sections.
2467         (Depends-on): Add largefile.
2468         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
2469         non-mingw platforms.
2470         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
2471         include <io.h>.
2472         * modules/perror-tests (Depends-on): Add ftruncate.
2473         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
2474         'ftruncate' module.
2475
2476 2011-09-21  Bruno Haible  <bruno@clisp.org>
2477
2478         Add dependencies to new dirent related modules.
2479         * modules/opendir (Depends-on): Add closedir.
2480         * modules/getcwd (Depends-on): Add opendir, closedir.
2481         * modules/dirent-safer-tests (Depends-on): Likewise.
2482         * modules/fdopendir-tests (Depends-on): Likewise.
2483         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
2484         * modules/renameat-tests (Depends-on): Likewise.
2485
2486 2011-09-21  Bruno Haible  <bruno@clisp.org>
2487
2488         opendir: Avoid compilation error on mingw.
2489         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
2490         * modules/opendir (Depends-on): Add unistd.
2491
2492 2011-09-21  Bruno Haible  <bruno@clisp.org>
2493
2494         ftruncate tests: Avoid a test failure on mingw.
2495         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
2496
2497 2011-09-21  Bruno Haible  <bruno@clisp.org>
2498
2499         select tests: Avoid test failures on OSF/1 5.1 and mingw.
2500         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
2501         native Windows.
2502
2503 2011-09-21  Bruno Haible  <bruno@clisp.org>
2504
2505         New module 'fdopen'.
2506         * lib/stdio.in.h (fdopen): New declaration.
2507         * lib/fdopen.c: New file.
2508         * m4/fdopen.m4: New file.
2509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
2510         REPLACE_FDOPEN.
2511         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
2512         REPLACE_FDOPEN.
2513         * modules/fdopen: New file.
2514         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
2515         * tests/test-stdio-c++.cc: Check signature of fdopen.
2516         * doc/posix-functions/fdopen.texi: Mention the new module.
2517
2518 2011-09-21  Bruno Haible  <bruno@clisp.org>
2519
2520         unlockpt tests: Avoid test failure on NetBSD 5.1.
2521         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
2522         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
2523
2524 2011-09-21  Bruno Haible  <bruno@clisp.org>
2525
2526         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
2527         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
2528         * tests/test-getlogin_r.c (main): Likewise.
2529
2530 2011-09-20  Bruno Haible  <bruno@clisp.org>
2531
2532         time tests: Don't require pid_t.
2533         * doc/posix-headers/time.texi: Revert last change.
2534         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
2535         * tests/test-time.c: Comment out the check for pid_t.
2536
2537 2011-09-20  Bruno Haible  <bruno@clisp.org>
2538
2539         fsync tests: Avoid a test failure on mingw.
2540         * tests/test-fsync.c (main): Allow a failure with EIO.
2541
2542 2011-09-20  Bruno Haible  <bruno@clisp.org>
2543
2544         euidaccess: Update comments.
2545         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
2546
2547 2011-09-20  Bruno Haible  <bruno@clisp.org>
2548
2549         Ensure EBADF returns for socket functions on mingw.
2550         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
2551         descriptor is invalid.
2552         * lib/bind.c (rpl_bind): Likewise.
2553         * lib/connect.c (rpl_connect): Likewise.
2554         * lib/getpeername.c (rpl_getpeername): Likewise.
2555         * lib/getsockname.c (rpl_getsockname): Likewise.
2556         * lib/getsockopt.c (rpl_getsockopt): Likewise.
2557         * lib/listen.c (rpl_listen): Likewise.
2558         * lib/recv.c (rpl_recv): Likewise.
2559         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2560         * lib/send.c (rpl_send): Likewise.
2561         * lib/sendto.c (rpl_sendto): Likewise.
2562         * lib/setsockopt.c (rpl_setsockopt): Likewise.
2563         * lib/shutdown.c (rpl_shutdown): Likewise.
2564
2565 2011-09-20  Bruno Haible  <bruno@clisp.org>
2566
2567         select tests: EBADF tests.
2568         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
2569         test_bad_fd): New functions.
2570         (test_function): Invoke also test_bad_fd.
2571
2572 2011-09-20  Bruno Haible  <bruno@clisp.org>
2573
2574         Tests for module 'posix_spawn_file_actions_addopen.
2575         * modules/posix_spawn_file_actions_addopen-tests: New file.
2576         * tests/test-posix_spawn_file_actions_addopen.c: New file.
2577
2578         Tests for module 'posix_spawn_file_actions_adddup2'.
2579         * modules/posix_spawn_file_actions_adddup2-tests: New file.
2580         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
2581
2582         Tests for module 'posix_spawn_file_actions_addclose'.
2583         * modules/posix_spawn_file_actions_addclose-tests: New file.
2584         * tests/test-posix_spawn_file_actions_addclose.c: New file.
2585
2586 2011-09-20  Bruno Haible  <bruno@clisp.org>
2587
2588         Tests for module 'unlockpt'.
2589         * modules/unlockpt-tests: New file.
2590         * tests/test-unlockpt.c: New file.
2591         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
2592
2593         Tests for module 'grantpt'.
2594         * modules/grantpt-tests: New file.
2595         * tests/test-grantpt.c: New file.
2596         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
2597
2598 2011-09-20  Bruno Haible  <bruno@clisp.org>
2599
2600         freopen tests: EBADF tests.
2601         * tests/test-freopen.c: Include errno.h, unistd.h.
2602         (main): Add tests for EBADF, commented out for the moment.
2603
2604         fclose tests: EBADF tests.
2605         * tests/test-fclose.c (main): Add tests for EBADF.
2606
2607         fflush tests: EBADF tests.
2608         * tests/test-fflush.c: Include errno.h, macros.h.
2609         (main): Add tests for EBADF.
2610
2611         ftello tests: EBADF tests.
2612         * tests/test-ftello4.sh: New file.
2613         * tests/test-ftello4.c: New file.
2614         * modules/ftello-tests (Files): Add them.
2615         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
2616
2617         fseeko tests: EBADF tests.
2618         * tests/test-fseeko4.sh: New file.
2619         * tests/test-fseeko4.c: New file.
2620         * modules/fseeko-tests (Files): Add them.
2621         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
2622
2623         Tests for function fputc().
2624         * modules/fputc-tests: New file.
2625         * tests/test-fputc.c: New file.
2626         * modules/stdio-tests (Depends-on): Add fputc-tests.
2627
2628         Tests for function fgetc().
2629         * modules/fgetc-tests: New file.
2630         * tests/test-fgetc.c: New file.
2631         * modules/stdio-tests (Depends-on): Add fgetc-tests.
2632
2633         Tests for function fdopen().
2634         * modules/fdopen-tests: New file.
2635         * tests/test-fdopen.c: New file.
2636         * modules/stdio-tests (Depends-on): Add fdopen-tests.
2637
2638         Tests for module 'vdprintf'.
2639         * modules/vdprintf-tests: New file.
2640         * tests/test-vdprintf.c: New file.
2641
2642         Tests for module 'dprintf'.
2643         * modules/dprintf-tests: New file.
2644         * tests/test-dprintf.c: New file.
2645
2646 2011-09-20  Bruno Haible  <bruno@clisp.org>
2647
2648         Tests for module 'ioctl'.
2649         * modules/ioctl-tests: New file.
2650         * tests/test-ioctl.c: New file.
2651
2652 2011-09-20  Bruno Haible  <bruno@clisp.org>
2653
2654         fcntl tests: EBADF tests.
2655         * tests/test-fcntl.c (main): Add more tests for EBADF.
2656
2657 2011-09-20  Bruno Haible  <bruno@clisp.org>
2658
2659         utimensat tests: EBADF tests.
2660         * tests/test-utimensat.c (main): Add tests for EBADF.
2661
2662         renameat tests: EBADF tests.
2663         * tests/test-renameat.c (main): Add tests for EBADF.
2664
2665         mkfifoat tests: EBADF tests.
2666         * tests/test-mkfifoat.c (main): Add tests for EBADF.
2667
2668         readlinkat tests: EBADF tests.
2669         * tests/test-readlinkat.c (main): Add tests for EBADF.
2670
2671         symlinkat tests: EBADF tests.
2672         * tests/test-symlinkat.c (main): Add tests for EBADF.
2673
2674         linkat tests: EBADF tests.
2675         * tests/test-linkat.c (main): Add tests for EBADF.
2676
2677         Tests for module 'faccessat'.
2678         * modules/faccessat-tests: New file.
2679         * tests/test-faccessat.c: New file.
2680
2681         fdopendir tests: EBADF tests.
2682         * tests/test-fdopendir.c (main): Add more tests for EBADF.
2683
2684         openat tests: EBADF tests.
2685         * tests/test-fchownat.c (main): Add tests for EBADF.
2686         * tests/test-fstatat.c (main): Likewise.
2687         * tests/test-mkdirat.c (main): Likewise.
2688         * tests/test-openat.c (main): Likewise.
2689         * tests/test-unlinkat.c (main): Likewise.
2690         * tests/test-fchmodat.c: New file.
2691         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
2692         (Makefile.am): Also run 'test-fchmodat'.
2693
2694 2011-09-20  Bruno Haible  <bruno@clisp.org>
2695
2696         utimens, futimens, fdutimensat tests: EBADF tests.
2697         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
2698
2699         Tests for function fstat().
2700         * modules/fstat-tests: New file.
2701         * tests/test-fstat.c: New file.
2702         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
2703
2704 2011-09-20  Bruno Haible  <bruno@clisp.org>
2705
2706         test-ttyname_r tests: EBADF tests.
2707         * tests/test-ttyname_r.c (main): Add tests for EBADF.
2708
2709         Tests for module 'isatty'.
2710         * modules/isatty-tests: New file.
2711         * tests/test-isatty.c: New file.
2712
2713         Tests for module 'write'.
2714         * modules/write-tests: New file.
2715         * tests/test-write.c: New file.
2716
2717         Tests for module 'read'.
2718         * modules/read-tests: New file.
2719         * tests/test-read.c: New file.
2720
2721         pwrite tests: EBADF tests.
2722         * tests/test-pwrite.c (main): Add tests for EBADF.
2723
2724         pread tests: EBADF tests.
2725         * tests/test-pread.c (main): Add tests for EBADF.
2726
2727         lseek tests: EBADF tests.
2728         * tests/test-lseek.c (main): Add more tests for EBADF.
2729
2730         Tests for module 'ftruncate'.
2731         * modules/ftruncate-tests: New file.
2732         * tests/test-ftruncate.sh: New file.
2733         * tests/test-ftruncate.c: New file.
2734
2735         fsync tests: EBADF tests.
2736         * tests/test-fsync.c (main): Add more tests for EBADF.
2737
2738         fdatasync tests: EBADF tests.
2739         * tests/test-fdatasync.c (main): Add more tests for EBADF.
2740
2741         Tests for module 'fchown'.
2742         * modules/fchown-tests: New file.
2743         * tests/test-fchown.c: New file.
2744
2745         Tests for module 'fchmod'.
2746         * modules/fchmod-tests: New file.
2747         * tests/test-fchmod.c: New file.
2748
2749         fchdir tests: EBADF tests.
2750         * tests/test-fchdir.c (main): Add more tests for EBADF.
2751
2752         dup2 tests: EBADF tests.
2753         * tests/test-dup2.c (main): Add more tests for EBADF.
2754
2755         Tests for module 'dup'.
2756         * modules/dup-tests: New file.
2757         * tests/test-dup.c: New file.
2758
2759         Tests for module 'close'.
2760         * modules/close-tests: New file.
2761         * tests/test-close.c: New file.
2762
2763 2011-09-20  Bruno Haible  <bruno@clisp.org>
2764
2765         Tests for module 'shutdown'.
2766         * modules/shutdown-tests: New file.
2767         * tests/test-shutdown.c: New file.
2768
2769         Tests for module 'setsockopt'.
2770         * modules/setsockopt-tests: New file.
2771         * tests/test-setsockopt.c: New file.
2772
2773         Tests for module 'sendto'.
2774         * modules/sendto-tests: New file.
2775         * tests/test-sendto.c: New file.
2776
2777         Tests for module 'send'.
2778         * modules/send-tests: New file.
2779         * tests/test-send.c: New file.
2780
2781         Tests for module 'recvfrom'.
2782         * modules/recvfrom-tests: New file.
2783         * tests/test-recvfrom.c: New file.
2784
2785         Tests for module 'recv'.
2786         * modules/recv-tests: New file.
2787         * tests/test-recv.c: New file.
2788
2789         Tests for module 'listen'.
2790         * modules/listen-tests: New file.
2791         * tests/test-listen.c: New file.
2792
2793         Tests for module 'getsockopt'.
2794         * modules/getsockopt-tests: New file.
2795         * tests/test-getsockopt.c: New file.
2796
2797         Tests for module 'getsockname'.
2798         * modules/getsockname-tests: New file.
2799         * tests/test-getsockname.c: New file.
2800
2801         Tests for module 'getpeername'.
2802         * modules/getpeername-tests: New file.
2803         * tests/test-getpeername.c: New file.
2804
2805         Tests for module 'connect'.
2806         * modules/connect-tests: New file.
2807         * tests/test-connect.c: New file.
2808
2809         Tests for module 'bind'.
2810         * modules/bind-tests: New file.
2811         * tests/test-bind.c: New file.
2812
2813         accept4 tests: Fix for native Windows.
2814         * tests/test-accept4.c: Include sockets.h.
2815         (main): Invoke gl_sockets_startup.
2816         * modules/accept4-tests (Depends-on): Add sockets.
2817
2818         accept tests: Fix for native Windows.
2819         * tests/test-accept.c: Include sockets.h.
2820         (main): Invoke gl_sockets_startup.
2821         * modules/accept-tests (Depends-on): Add sockets.
2822
2823 2011-09-19  Bruno Haible  <bruno@clisp.org>
2824
2825         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
2826         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
2827         do...while(0).
2828         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
2829         Suggested by Paul Eggert.
2830
2831 2011-09-19  Bruno Haible  <bruno@clisp.org>
2832
2833         sched: Ensure pid_t is defined.
2834         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
2835         not define pid_t.
2836         * lib/sched.in.h: Include <sys/types.h>.
2837         * doc/posix-headers/sched.texi: Mention the pid_t problem.
2838         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2839
2840 2011-09-19  Bruno Haible  <bruno@clisp.org>
2841
2842         msvc-inval: Ensure the entire expansion is a single statement.
2843         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
2844         of braces.
2845
2846 2011-09-19  Jim Meyering  <meyering@redhat.com>
2847
2848         tests: use printf, not echo in init.sh's warn_ function
2849         * tests/init.sh (warn_): Use printf, not echo.  The latter would
2850         misbehave when given strings containing a backslash or starting
2851         with e.g., -n.  James Youngman suggested setting IFS.
2852
2853 2011-09-19  Eric Blake  <eblake@redhat.com>
2854
2855         futimens: enhance test
2856         * tests/test-futimens.h (test_futimens): Also check for EBADF on
2857         closed non-negative fd.
2858
2859         date: accept 'hence' as opposite of 'ago'
2860         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
2861         * tests/test-parse-datetime.c (main): Enhance test.
2862         Suggested by Jesse Wilson.
2863
2864 2011-09-19  Jim Meyering  <meyering@redhat.com>
2865
2866         getcwd: don't fail in a deep directory on a system without openat
2867         Before this change, getcwd would fail when called from a directory
2868         of depth PATH_MAX / 3 or greater.  That was due to the fact that
2869         the non-openat implementation used "..", "../..", "../../..", etc.
2870         to access ancestor directories.  With too many, that string would
2871         be longer than PATH_MAX.
2872         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
2873         using gnulib's openat replacement.
2874         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
2875         we're using the replacement function.
2876
2877 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
2878
2879         maint.mk: avoid warnings from perl about missing files
2880         * top/maint.mk (def_sym_regex): Ignore files listed in
2881         $(gl_other_headers_) that do not exist, say because a project
2882         does not use a corresponding module.
2883
2884 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2885
2886         stat: use pathmax.h only if needed
2887         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
2888         This is better for Emacs, which does not have a mingw port and
2889         therefore can avoid the pathmax module.
2890
2891         utimens: remove dependency on dup2
2892         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
2893         to work around the Linux kernel bug.
2894         * modules/utimens (Depends-on): Remove dup2.
2895
2896 2011-09-18  Bruno Haible  <bruno@clisp.org>
2897
2898         inet_ntop, inet_pton: Look for it also in libresolv.
2899         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
2900         libnsl, search for it in libresolv.
2901         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2902         Needed on Solaris 7.
2903
2904 2011-09-18  Bruno Haible  <bruno@clisp.org>
2905
2906         accept, accept4 tests: Avoid link error on Solaris.
2907         * modules/accept-tests (Makefile.am): Link test-accept against
2908         $(LIBSOCKET).
2909         * modules/accept4-tests (Makefile.am): Link test-accept4 against
2910         $(LIBSOCKET).
2911
2912         accept4: Avoid link error on Solaris.
2913         * modules/accept4 (Link): New section.
2914
2915         socket functions: Avoid link errors on Solaris.
2916         * modules/accept (Depends-on): Add socketlib.
2917         (Link): New section.
2918         * modules/bind (Depends-on): Add socketlib.
2919         (Link): New section.
2920         * modules/connect (Depends-on): Add socketlib.
2921         (Link): New section.
2922         * modules/getpeername (Depends-on): Add socketlib.
2923         (Link): New section.
2924         * modules/getsockname (Depends-on): Add socketlib.
2925         (Link): New section.
2926         * modules/getsockopt (Depends-on): Add socketlib.
2927         (Link): New section.
2928         * modules/listen (Depends-on): Add socketlib.
2929         (Link): New section.
2930         * modules/recv (Depends-on): Add socketlib.
2931         (Link): New section.
2932         * modules/recvfrom (Depends-on): Add socketlib.
2933         (Link): New section.
2934         * modules/send (Depends-on): Add socketlib.
2935         (Link): New section.
2936         * modules/sendto (Depends-on): Add socketlib.
2937         (Link): New section.
2938         * modules/setsockopt (Depends-on): Add socketlib.
2939         (Link): New section.
2940         * modules/shutdown (Depends-on): Add socketlib.
2941         (Link): New section.
2942         * modules/socket (Depends-on): Add socketlib.
2943         (Link): New section.
2944
2945 2011-09-18  Bruno Haible  <bruno@clisp.org>
2946
2947         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
2948         * tests/test-ptsname.c (main): Terminate the test if it takes longer
2949         than 5 seconds.
2950         * modules/ptsname-tests (configure.ac): Test for alarm.
2951
2952 2011-09-18  Bruno Haible  <bruno@clisp.org>
2953
2954         posix_spawn_file_actions_add*: Fix module dependencies.
2955         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
2956         posix_spawn_file_actions_init.
2957         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
2958         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
2959
2960 2011-09-18  Bruno Haible  <bruno@clisp.org>
2961
2962         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
2963         * tests/test-rename.h (test_rename): Allow error code EEXIST.
2964         * tests/test-renameat.c (main): Likewise.
2965
2966 2011-09-18  Bruno Haible  <bruno@clisp.org>
2967
2968         Tests for module 'accept4'.
2969         * modules/accept4-tests: New file.
2970         * tests/test-accept4.c: New file.
2971
2972 2011-09-18  Bruno Haible  <bruno@clisp.org>
2973
2974         Tests for module 'accept'.
2975         * modules/accept-tests: New file.
2976         * tests/test-accept.c: New file.
2977
2978 2011-09-18  Bruno Haible  <bruno@clisp.org>
2979
2980         dup2: Support for MSVC.
2981         * lib/dup2.c: Include msvc-inval.h.
2982         (rpl_dup2): Handle invalid parameter notifications during dup2 and
2983         _get_osfhandle calls.
2984         * modules/dup2 (Depends-on): Add msvc-inval.
2985         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
2986
2987         New module 'msvc-inval'.
2988         * lib/msvc-inval.h: New file.
2989         * lib/msvc-inval.c: New file.
2990         * m4/msvc-inval.m4: New file.
2991         * modules/msvc-inval: New file.
2992
2993 2011-09-17  Bruno Haible  <bruno@clisp.org>
2994
2995         Tests for module 'pclose'.
2996         * modules/pclose-tests: New file.
2997
2998         New module 'pclose'.
2999         * lib/stdio.in.h (pclose): New declaration.
3000         * lib/pclose.c: New file.
3001         * m4/pclose.m4: New file.
3002         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3003         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3004         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3005         * modules/pclose: New file.
3006         * modules/popen-tests (Depends-on): Add pclose.
3007         * modules/popen-safer-tests (Depends-on): Likewise.
3008         * doc/posix-functions/pclose.texi: Mention the new module.
3009
3010 2011-09-17  Bruno Haible  <bruno@clisp.org>
3011
3012         popen: Support for MSVC.
3013         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3014         * lib/popen.c (popen): Provide alternate definition for native Windows.
3015         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3017         * modules/popen (Depends-on, configure.ac): Update condition.
3018         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3019         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3020         fixed.
3021
3022 2011-09-17  Bruno Haible  <bruno@clisp.org>
3023
3024         isnanl, isnand, isnanf: Work around MSVC bug.
3025         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3026
3027 2011-09-17  Bruno Haible  <bruno@clisp.org>
3028
3029         sys_socket tests: Fix recent mistake.
3030         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3031
3032 2011-09-17  Bruno Haible  <bruno@clisp.org>
3033
3034         putenv: Support for MSVC.
3035         * modules/putenv (Depends-on): Add environ.
3036         * lib/putenv.c (environ): Disable declaration.
3037         * lib/unistd.in.h: Update comment.
3038
3039 2011-09-17  Bruno Haible  <bruno@clisp.org>
3040
3041         math: Avoid macro redefinition warnings on MSVC.
3042         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3043         Undefine before redefining.
3044
3045 2011-09-17  Bruno Haible  <bruno@clisp.org>
3046
3047         doc: Mention functions which are declared as macros.
3048         * doc/posix-functions/*[fl].texi: Mention that some functions are
3049         defined as macros with arguments only.
3050
3051 2011-09-17  Bruno Haible  <bruno@clisp.org>
3052
3053         Add dependencies to new dirent related modules.
3054         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3055         * modules/fts (Depends-on): Likewise.
3056         * modules/glob (Depends-on): Likewise.
3057         * modules/savedir (Depends-on): Likewise.
3058         * modules/scandir (Depends-on): Likewise.
3059         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3060         * modules/fdopendir (Depends-on): Add opendir.
3061
3062 2011-09-17  Bruno Haible  <bruno@clisp.org>
3063
3064         inet_pton: Support for MSVC on Windows Vista or newer.
3065         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3066         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3067         HAVE_DECL_INET_PTON is defined.
3068         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3069         On platforms with <winsock2.h>, test whether inet_pton is declared in
3070         <ws2tcpip.h>. If so, arrange to replace it.
3071         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3072         REPLACE_INET_PTON.
3073         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3074         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3075         (Depends-on, configure.ac): Update condition.
3076         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3077
3078 2011-09-17  Bruno Haible  <bruno@clisp.org>
3079
3080         inet_ntop: Support for MSVC on Windows Vista or newer.
3081         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3082         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3083         HAVE_DECL_INET_NTOP is defined.
3084         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3085         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3086         <ws2tcpip.h>. If so, arrange to replace it.
3087         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3088         REPLACE_INET_NTOP.
3089         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3090         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3091         (Depends-on, configure.ac): Update condition.
3092         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3093
3094 2011-09-16  Eric Blake  <eblake@redhat.com>
3095
3096         test-fsync: yet another enhancement
3097         * tests/test-fsync.c (main): Also test behavior on read-only text
3098         file.
3099
3100 2011-09-16  Bruno Haible  <bruno@clisp.org>
3101
3102         Enhance fsync, fdatasync tests.
3103         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3104         * tests/test-fdatasync.c (main): Likewise.
3105
3106 2011-09-16  Bruno Haible  <bruno@clisp.org>
3107
3108         Support for MSVC compiler: Ensure mode_t gets defined.
3109         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3110         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3111         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3112         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3113         * tests/test-fcntl-h.c: Check that mode_t is defined.
3114         * tests/test-sys_stat.c: Likewise.
3115         * tests/test-sys_types.c: Likewise.
3116         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3117         * doc/posix-headers/sys_stat.texi: Likewise.
3118         * doc/posix-headers/sys_types.texi: Likewise.
3119
3120 2011-09-16  Bruno Haible  <bruno@clisp.org>
3121
3122         sys_stat: Support for MSVC.
3123         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3124         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3125         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3126         MSVC.
3127
3128 2011-09-16  Bruno Haible  <bruno@clisp.org>
3129
3130         Support for MSVC compiler: Ensure off_t gets defined.
3131         * lib/unistd.in.h: Include <sys/types.h>.
3132         * tests/test-fcntl-h.c: Check that off_t is defined.
3133         * tests/test-sys_stat.c: Likewise.
3134         * tests/test-sys_types.c: Likewise.
3135
3136 2011-09-16  Eric Blake  <eblake@redhat.com>
3137
3138         fdatasync: port to Solaris
3139         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3140         * modules/fdatasync (Link): Document it.
3141         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3142
3143         fdatasync: port to MacOS X 10.7
3144         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3145         declared.
3146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3147         * modules/unistd (Makefile.am): Substitute it.
3148         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3149         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3150
3151         fdatasync: minor improvements
3152         * modules/fdatasync (Depends-on): Add condition for fsync.
3153         * lib/fdatasync.c (fdatasync): Add comment.
3154         * tests/test-unistd-c++.cc: Test fdatasync.
3155
3156         unistd: update refs to newer POSIX
3157         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3158         Suggested by Bruno Haible.
3159
3160         fdatasync: new module
3161         * modules/fsync (Description): Document difference to fdatasync.
3162         * modules/fdatasync: New module.
3163         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3164         * lib/fdatasync.c (fdatasync): Likewise.
3165         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3166         defaults.
3167         * modules/unistd (Makefile.am): Set witnesses.
3168         * lib/unistd.in.h (fdatasync): Declare.
3169         * MODULES.html.sh: Document it.
3170         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3171         * modules/fdatasync-tests: New test.
3172         * tests/test-fdatasync.c: Likewise.
3173
3174 2011-09-16  Eric Blake  <eblake@redhat.com>
3175
3176         test-fsync: enhance tests
3177         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3178         * tests/test-fsync.c (main): Enhance test.
3179
3180 2011-09-15  Bruno Haible  <bruno@clisp.org>
3181
3182         Support for MSVC compiler: Ensure ssize_t gets defined.
3183         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3184         * doc/posix-headers/stdio.texi: Likewise.
3185         * modules/stdio (Depends-on): Add ssize_t.
3186         * modules/sys_socket (Depends-on): Likewise.
3187         * modules/sys_types (Depends-on): Likewise.
3188         * modules/sys_uio (Depends-on): Likewise.
3189         * modules/unistd (Depends-on): Likewise.
3190         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3191         * tests/test-sys_types.c: Check that ssize_t is defined.
3192
3193 2011-09-14  Bruno Haible  <bruno@clisp.org>
3194
3195         Avoid using #, the m4 comment starter character, near brackets.
3196         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3197         delimiter character in sed expressions.
3198         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3199         Suggested by Eric Blake.
3200
3201         Properly quote AC_CHECK_DECLS' 4th argument.
3202         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3203         argument.
3204         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3205         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3206         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3207         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3208         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3209         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3210         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3211         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3212         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3213         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3214         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3215         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3216         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3217         * m4/isinf.m4 (gl_ISINF): Likewise.
3218         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3219         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3220         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3221         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3222         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3223         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3224         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3225         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3226         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3227         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3228         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3229         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3230         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3231         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3232         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3233         Reported by Eric Blake.
3234
3235         Properly quote AC_CHECK_DECL's 4th argument.
3236         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3237         argument.
3238         * m4/argp.m4 (gl_ARGP): Likewise.
3239         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3240         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3241         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3242         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3243         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3244         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3245         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3246         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3247         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3248         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3249         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3250         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3251         Reported by Eric Blake.
3252
3253 2011-09-14  Eric Blake  <eblake@redhat.com>
3254
3255         opendir: avoid compile warning
3256         * lib/opendir.c (includes): Always include errno.h.
3257         Reported by Tatsuro MATSUOKA.
3258
3259 2011-09-14  Jim Meyering  <meyering@redhat.com>
3260
3261         maint.mk: sc_tight_scope: propagate failure from sub-make
3262         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
3263         Reported by Martin von Gagern.
3264
3265 2011-09-13  Bruno Haible  <bruno@clisp.org>
3266
3267         tempname: Support for MSVC.
3268         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
3269         MSVC.
3270         * modules/tempname (Depends-on): Add fcntl-h.
3271
3272 2011-09-13  Bruno Haible  <bruno@clisp.org>
3273
3274         sys_time: Support for MSVC.
3275         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
3276         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
3277         include <winsock2.h>.
3278         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
3279         function declarations that collide with POSIX.
3280         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
3281         (Makefile.am): Substitute HAVE_WINSOCK2_H.
3282
3283 2011-09-13  Bruno Haible  <bruno@clisp.org>
3284
3285         stat: Support for MSVC.
3286         * lib/stat.c: Include pathmax.h.
3287         * modules/stat (Depends-on): Add pathmax.
3288
3289         pathmax: Support for native Windows.
3290         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
3291
3292 2011-09-12  Bruno Haible  <bruno@clisp.org>
3293
3294         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
3295         * lib/dirent.in.h (struct dirent): New type.
3296         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
3297         DT_WHT): New macros.
3298         (DIR): New type.
3299         (opendir, closedir): Declare only if the module 'opendir' is enabled.
3300         (readdir, rewinddir): New declarations.
3301         * lib/dirent-private.h: New file.
3302         * lib/opendir.c: New file.
3303         * lib/readdir.c: New file.
3304         * lib/rewinddir.c: New file.
3305         * lib/closedir.c: New file.
3306         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
3307         * m4/opendir.m4: New file.
3308         * m4/readdir.m4: New file.
3309         * m4/rewinddir.m4: New file.
3310         * m4/closedir.m4: New file.
3311         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
3312         REPLACE_CLOSEDIR here.
3313         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
3314         readdir, rewinddir are declared.
3315         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
3316         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
3317         HAVE_REWINDDIR, HAVE_CLOSEDIR.
3318         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
3319         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
3320         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
3321         * modules/opendir: New file.
3322         * modules/readdir: New file.
3323         * modules/rewinddir: New file.
3324         * modules/closedir: New file.
3325         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
3326         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
3327         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
3328         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
3329         * NEWS: Mention the 'fchdir' change.
3330
3331 2011-09-11  Bruno Haible  <bruno@clisp.org>
3332
3333         asm-underscore.m4: Support for MSVC.
3334         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
3335         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
3336
3337 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
3338
3339         Doc about crypt functions.
3340         * doc/posix-functions/crypt.texi: Expand range of glibc versions
3341         needing for _GNU_SOURCE to get crypt.
3342         * doc/posix-functions/encrypt.texi: Likewise.
3343         * doc/posix-functions/setkey.texi: Likewise.
3344
3345 2011-09-11  Bruno Haible  <bruno@clisp.org>
3346
3347         doc: Update regarding MSVC 9.
3348         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3349         tested".
3350         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3351         * doc/posix-headers/*.texi: Likewise.
3352         * doc/pastposix-functions/*.texi: Likewise.
3353         * doc/glibc-functions/*.texi: Likewise.
3354         * doc/glibc-headers/*.texi: Likewise.
3355
3356 2011-09-11  Bruno Haible  <bruno@clisp.org>
3357
3358         unistd et al.: Don't assume <unistd.h> exists.
3359         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3360         does not exist.
3361         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3362         exist. But include <stdlib.h>.
3363         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3364         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3365         symlink() does not exist.
3366         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3367         include <io.h> instead.
3368         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3369         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3370         include <direct.h> instead.
3371         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3372         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3373         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3374         <io.h> instead.
3375         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
3376         correctly if the system does not have hard links.
3377         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
3378         <direct.h> instead.
3379         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
3380         it when looking for function declarations.
3381         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
3382         <direct.h> and <io.h> instead.
3383         * doc/posix-headers/unistd.texi: More details about MSVC problem.
3384
3385 2011-09-11  Bruno Haible  <bruno@clisp.org>
3386
3387         strcase: Support for MSVC.
3388         * modules/strcase (Status, Notice): Remove obsoletion mark.
3389         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
3390         * doc/posix-functions/strncasecmp.texi: Likewise.
3391
3392         strings: Don't assume <strings.h> exists.
3393         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
3394         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
3395         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
3396         * doc/posix-headers/strings.texi: Mention the MSVC problem.
3397
3398 2011-09-11  Bruno Haible  <bruno@clisp.org>
3399
3400         dirent: Don't assume <dirent.h> exists.
3401         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
3402         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
3403         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
3404         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
3405
3406 2011-09-11  Bruno Haible  <bruno@clisp.org>
3407
3408         Fix wint_t on MSVC.
3409         * lib/wchar.in.h (wint_t): On MSVC, override it.
3410         * lib/wctype.in.h (wint_t): Likewise.
3411         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
3412         MSVC.
3413         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3414         * doc/posix-headers/wctype.texi: Likewise.
3415
3416 2011-09-11  Bruno Haible  <bruno@clisp.org>
3417
3418         sys_types: Fix typo.
3419         * lib/sys_types.in.h: Fix typo in comment.
3420         Reported by Paul Eggert.
3421
3422         Support for MSVC compiler: Ensure size_t gets defined.
3423         * modules/strings (Depends-on): Add 'sys_types'.
3424         * modules/sys_uio (Depends-on): Likewise.
3425         * lib/sys_uio.in.h: Update comment.
3426
3427         C++ tests for module 'sys_types'.
3428         * modules/sys_types-c++-tests: New file.
3429         * tests/test-sys_types-c++.cc: New file.
3430
3431         Tests for module 'sys_types'.
3432         * modules/sys_types-tests: New file.
3433         * tests/test-sys_types.c: New file.
3434
3435         New module 'sys_types'.
3436         * lib/sys_types.in.h: New file.
3437         * m4/sys_types_h.m4: New file.
3438         * modules/sys_types: New file.
3439         * doc/posix-headers/sys_types.texi: Mention the new module and the
3440         size_t problem on MSVC 9.
3441
3442 2011-09-11  Bruno Haible  <bruno@clisp.org>
3443
3444         Support for MSVC compiler: Avoid division by a literal 0.
3445         * lib/math.in.h (NAN): Define through a function call also on MSVC.
3446         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
3447         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
3448         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
3449         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
3450         * tests/infinity.h: New file.
3451         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
3452         on MSVC.
3453         * tests/test-ceilf1.c: Include infinity.h.
3454         (main): Use Infinityf.
3455         * tests/test-ceil1.c: Include infinity.h.
3456         (main): Use Infinityd.
3457         * tests/test-ceill.c: Include infinity.h.
3458         (main): Use Infinityl.
3459         * tests/test-dprintf-posix.c: Include infinity.h.
3460         (test_function): Use Infinityd.
3461         * tests/test-floorf1.c: Include infinity.h.
3462         (main): Use Infinityf.
3463         * tests/test-floor1.c: Include infinity.h.
3464         (main): Use Infinityd.
3465         * tests/test-floorl.c: Include infinity.h.
3466         (main): Use Infinityl.
3467         * tests/test-fprintf-posix.c: Include infinity.h.
3468         (test_function): Use Infinityd.
3469         * tests/test-frexp.c: Include infinity.h.
3470         (main): Use Infinityd.
3471         * tests/test-frexpl.c: Include infinity.h.
3472         (main): Use Infinityl.
3473         * tests/test-isfinite.c: Include infinity.h.
3474         (test_isfinitef): Use Infinityf.
3475         (test_isfinited): Use Infinityd.
3476         (test_isfinitel): Use Infinityl.
3477         * tests/test-isinf.c: Include infinity.h.
3478         (test_isinff): Use Infinityf.
3479         (test_isinfd): Use Infinityd.
3480         (test_isinfl): Use Infinityl.
3481         * tests/test-isnan.c: Include infinity.h.
3482         (test_float): Use Infinityf.
3483         (test_double): Use Infinityd.
3484         (test_long_double): Use Infinityl.
3485         * tests/test-isnanf.h: Include infinity.h.
3486         (main): Use Infinityf.
3487         * tests/test-isnand.h: Include infinity.h.
3488         (main): Use Infinityd.
3489         * tests/test-isnanl.h: Include infinity.h.
3490         (main): Use Infinityl.
3491         * tests/test-ldexpl.c: Include infinity.h.
3492         (main): Use Infinityl.
3493         * tests/test-printf-posix.h: Include infinity.h.
3494         (test_function): Use Infinityd.
3495         * tests/test-roundf1.c: Include infinity.h.
3496         (main): Use Infinityf.
3497         * tests/test-round1.c: Include infinity.h.
3498         (main): Use Infinityd.
3499         * tests/test-roundl.c: Include infinity.h.
3500         (main): Use Infinityl.
3501         * tests/test-signbit.c: Include infinity.h.
3502         (test_signbitf): Use Infinityf.
3503         (test_signbitd): Use Infinityd.
3504         (test_signbitl): Use Infinityl.
3505         * tests/test-snprintf-posix.h: Include infinity.h.
3506         (test_function): Use Infinityd, Infinityl.
3507         * tests/test-sprintf-posix.h: Include infinity.h.
3508         (test_function): Use Infinityd, Infinityl.
3509         * tests/test-truncf1.c: Include infinity.h.
3510         (main): Use Infinityf.
3511         * tests/test-trunc1.c: Include infinity.h.
3512         (main): Use Infinityd.
3513         * tests/test-truncl.c: Include infinity.h.
3514         (main): Use Infinityl.
3515         * tests/test-vasnprintf-posix.c: Include infinity.h.
3516         (test_function): Use Infinityd, Infinityl.
3517         * tests/test-vasprintf-posix.c: Include infinity.h.
3518         (test_function): Use Infinityd, Infinityl.
3519         * modules/ceilf-tests (Files): Add tests/infinity.h.
3520         * modules/ceil-tests (Files): Likewise.
3521         * modules/ceill-tests (Files): Likewise.
3522         * modules/dprintf-posix-tests (Files): Likewise.
3523         * modules/floorf-tests (Files): Likewise.
3524         * modules/floor-tests (Files): Likewise.
3525         * modules/floorl-tests (Files): Likewise.
3526         * modules/fprintf-posix-tests (Files): Likewise.
3527         * modules/frexp-tests (Files): Likewise.
3528         * modules/frexp-nolibm-tests (Files): Likewise.
3529         * modules/frexpl-tests (Files): Likewise.
3530         * modules/frexpl-nolibm-tests (Files): Likewise.
3531         * modules/isfinite-tests (Files): Likewise.
3532         * modules/isinf-tests (Files): Likewise.
3533         * modules/isnan-tests (Files): Likewise.
3534         * modules/isnanf-tests (Files): Likewise.
3535         * modules/isnanf-nolibm-tests (Files): Likewise.
3536         * modules/isnand-tests (Files): Likewise.
3537         * modules/isnand-nolibm-tests (Files): Likewise.
3538         * modules/isnanl-tests (Files): Likewise.
3539         * modules/isnanl-nolibm-tests (Files): Likewise.
3540         * modules/ldexpl-tests (Files): Likewise.
3541         * modules/printf-posix-tests (Files): Likewise.
3542         * modules/roundf-tests (Files): Likewise.
3543         * modules/round-tests (Files): Likewise.
3544         * modules/roundl-tests (Files): Likewise.
3545         * modules/signbit-tests (Files): Likewise.
3546         * modules/snprintf-posix-tests (Files): Likewise.
3547         * modules/sprintf-posix-tests (Files): Likewise.
3548         * modules/truncf-tests (Files): Likewise.
3549         * modules/trunc-tests (Files): Likewise.
3550         * modules/truncl-tests (Files): Likewise.
3551         * modules/vasnprintf-posix-tests (Files): Likewise.
3552         * modules/vasprintf-posix-tests (Files): Likewise.
3553         * modules/vdprintf-posix-tests (Files): Likewise.
3554         * modules/vfprintf-posix-tests (Files): Likewise.
3555         * modules/vprintf-posix-tests (Files): Likewise.
3556         * modules/vsnprintf-posix-tests (Files): Likewise.
3557         * modules/vsprintf-posix-tests (Files): Likewise.
3558         * modules/xprintf-posix-tests (Files): Likewise.
3559
3560 2011-09-11  Bruno Haible  <bruno@clisp.org>
3561
3562         Ensure pid_t gets defined.
3563         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
3564         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3565         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3566         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3567         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
3568         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3569         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
3570         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3571         * tests/test-fcntl-h.c: Check that pid_t is defined.
3572         * tests/test-sched.c: Likewise.
3573         * tests/test-termios.c: Likewise.
3574         * tests/test-time.c: Likewise.
3575         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
3576         * doc/posix-headers/signal.texi: Likewise.
3577         * doc/posix-headers/sys_types.texi: Likewise.
3578         * doc/posix-headers/time.texi: Likewise.
3579
3580 2011-09-11  Bruno Haible  <bruno@clisp.org>
3581
3582         acl: Fix compilation on Solaris 10 (older version).
3583         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
3584         of ACE_EVERYONE.
3585         * lib/set-mode-acl.c (qset_acl): Likewise.
3586         Reported by Christian Jullien <eligis@orange.fr>.
3587
3588 2011-09-10  Bruno Haible  <bruno@clisp.org>
3589
3590         iconv, unsetenv: Add support for MSVC compiler.
3591         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
3592         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
3593
3594 2011-09-10  Bruno Haible  <bruno@clisp.org>
3595
3596         *printf: Add support for MSVC compiler.
3597         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
3598         handles the exception caused by the %n directive. When cross-compiling,
3599         guess no on native Windows.
3600         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3601         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
3602         emulate it through vsnprintf.
3603         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
3604         * doc/posix-functions/dprintf.texi: Update documentation regarding
3605         MSVC 9.
3606         * doc/posix-functions/fprintf.texi: Likewise.
3607         * doc/posix-functions/printf.texi: Likewise.
3608         * doc/posix-functions/snprintf.texi: Likewise.
3609         * doc/posix-functions/sprintf.texi: Likewise.
3610         * doc/posix-functions/swprintf.texi: Likewise.
3611         * doc/posix-functions/vdprintf.texi: Likewise.
3612         * doc/posix-functions/vfprintf.texi: Likewise.
3613         * doc/posix-functions/vprintf.texi: Likewise.
3614         * doc/posix-functions/vsnprintf.texi: Likewise.
3615         * doc/posix-functions/vsprintf.texi: Likewise.
3616         * doc/glibc-functions/asprintf.texi: Likewise.
3617         * doc/glibc-functions/obstack_printf.texi: Likewise.
3618         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3619         * doc/glibc-functions/vasprintf.texi: Likewise.
3620
3621 2011-09-10  Bruno Haible  <bruno@clisp.org>
3622
3623         nocrash: Add support for native Windows.
3624         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
3625
3626 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
3627             Bruno Haible  <bruno@clisp.org>
3628
3629         absolute-header, include-next: Add support for MSVC compiler.
3630         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
3631         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
3632         directory separator in #line directives.
3633         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
3634         recognize also backslash as directory separator in #line directives.
3635
3636 2011-09-08  Jim Meyering  <meyering@redhat.com>
3637
3638         maint.mk: mark the post-release commit log with "maint: " prefix
3639         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
3640         one-line commit-log summary.
3641
3642 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
3643             Bruno Haible  <bruno@clisp.org>
3644
3645         Doc about crypt functions.
3646         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
3647         systems.
3648         * doc/posix-functions/encrypt.texi: Likewise.
3649         * doc/posix-functions/setkey.texi: Likewise.
3650
3651 2011-09-08  Simon Josefsson  <simon@josefsson.org>
3652
3653         * lib/gc.h: Fix copyright header.
3654
3655 2011-09-07  Bruno Haible  <bruno@clisp.org>
3656
3657         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
3658         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
3659         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
3660
3661 2011-09-07  Bruno Haible  <bruno@clisp.org>
3662
3663         openat: Work around compilation error with OSF/1 5.1 DTK cc.
3664         * lib/fopen.c: Use different syntax for include of <stdio.h>.
3665         * lib/freopen.c: Likewise.
3666         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
3667         * lib/lstat.c: Likewise.
3668         * lib/stat.c: Likewise.
3669         * lib/open.c: Use different syntax for include of <fcntl.h>.
3670         * lib/openat.c: Include fcntl.h again, explicitly.
3671
3672 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
3673
3674         parse-datetime: document the newly accepted format
3675         * doc/parse-datetime.texi (Combined date and time of day items):
3676         New section.
3677
3678 2011-09-06  Bruno Haible  <bruno@clisp.org>
3679
3680         acl: Fix a test failure on newer Solaris 10 with ZFS.
3681         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
3682         ENOSYS as no ACL.
3683         Reported by Jim Meyering.
3684
3685 2011-09-06  Bruno Haible  <bruno@clisp.org>
3686
3687         acl: Update for AIX >= 5.3 with NFS.
3688         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
3689         ENOSYS as no ACL.
3690
3691         acl: Fix a test failure on AIX >= 5.3 with NFS.
3692         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
3693         as no ACL.
3694
3695 2011-09-06  Bruno Haible  <bruno@clisp.org>
3696
3697         acl: Fix a test failure on IRIX 6.5 with NFS.
3698         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
3699         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
3700         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
3701         * lib/copy-acl.c (qcopy_acl): Likewise.
3702
3703 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3704
3705         openat: port to AIX 7.1 with large files
3706         AIX 7.1 does a "#define openat open64at" if large files are in use,
3707         so we can't simply #undef openat.  Use the orig_openat trick (similar
3708         to orig_open in lib/open.c) to work around the problem.  Problem
3709         reported by Kevin Brott for GNU tar, in the thread containing
3710         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
3711         * lib/openat.c (__need_system_fcntl_h): Define first.
3712         Include <fcntl.h> and <sys/types.h> before undefining.
3713         (orig_openat) [HAVE_OPENAT]: New inline function.
3714         (openat) [HAVE_OPENAT]: Do not undef.
3715         (rpl_openat): Use orig_openat, not openat.
3716
3717 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3718             Bruno Haible  <bruno@clisp.org>
3719
3720         acl: Avoid errors on NonStop Kernel.
3721         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
3722         ENOTSUP errors.
3723
3724 2011-09-05  Bruno Haible  <bruno@clisp.org>
3725
3726         acl: Clean up Solaris code.
3727         * lib/acl-internal.h: Remove no-op #if.
3728         * lib/file-has-acl.c: Likewise.
3729         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
3730         * lib/copy-acl.c (qcopy_acl): Likewise.
3731
3732 2011-09-05  Bruno Haible  <bruno@clisp.org>
3733
3734         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
3735         binaries built on the original Solaris 10.
3736         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
3737         trivial.
3738
3739 2011-09-05  Bruno Haible  <bruno@clisp.org>
3740
3741         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3742         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
3743         10.
3744         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
3745         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
3746         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
3747         instead of acl_get, facl_get, acl_set, facl_set.
3748
3749 2011-09-05  Bruno Haible  <bruno@clisp.org>
3750
3751         copy-file: Try unit tests on more file systems.
3752         * tests/test-copy-file-1.sh: New file.
3753         * tests/test-copy-file-2.sh: New file.
3754         * modules/copy-file-tests (Files): Add them.
3755         (Makefile.am): Add them to TESTS.
3756
3757         acl: Try unit tests on more file systems.
3758         * tests/test-file-has-acl-1.sh: New file.
3759         * tests/test-file-has-acl-2.sh: New file.
3760         * tests/test-set-mode-acl-1.sh: New file.
3761         * tests/test-set-mode-acl-2.sh: New file.
3762         * tests/test-copy-acl-1.sh: New file.
3763         * tests/test-copy-acl-2.sh: New file.
3764         * modules/acl-tests (Files): Add them.
3765         (Makefile.am): Add them to TESTS.
3766
3767 2011-09-04  Bruno Haible  <bruno@clisp.org>
3768
3769         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3770         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
3771         10.
3772         (OLD_ALLOW, OLD_DENY): New macros.
3773         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
3774         ACE_ACCESS_ALLOWED_ACE_TYPE.
3775         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
3776         ACE_ACCESS_DENIED_ACE_TYPE.
3777         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
3778         (NEW_ACE_EXECUTE): Fix value.
3779         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
3780         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
3781         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
3782         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
3783         NEW_ACE_SYNCHRONIZE): New macros.
3784         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
3785         instead of acl_fromtext, acl_set, facl_set.
3786         Fixes a coreutils/tests/cp/perm failure.
3787
3788 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
3789
3790         openat: test for fstatat (..., 0) bug
3791         Further testing with tar suggests that fstatat (..., 0)
3792         does not work in general, on AIX 7.1; see
3793         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
3794         So, give up entirely on AIX 7.1's fstatat, and fall back on our
3795         replacement fstatat (which is what older AIX releases were using
3796         anyway).
3797         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
3798         use is now changed to orig_fstatat.  This was probably the right
3799         thing to do anyway.
3800         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
3801         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
3802         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
3803         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
3804         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
3805         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
3806         if the bug is found.
3807
3808         openat: test for fstatat (AT_FDCWD, ..., 0) bug
3809         This tests for another fstatat bug on AIX 7.1:
3810         fstatat (AT_FDCWD, ..., 0) does not work.  See
3811         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
3812         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
3813         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
3814         (rpl_fstatat): Adjust so that it works around either (or both)
3815         bugs if present.
3816         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
3817
3818 2011-09-03  Karl Berry  <karl@gnu.org>
3819
3820         * doc/regex.texi (Character Class Operators): Avoid literal ":"
3821         in index entries.
3822
3823 2011-09-02  Bruno Haible  <bruno@clisp.org>
3824
3825         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
3826         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
3827         values of AR, ARFLAGS, RANLIB.
3828         Reported by John W. Eaton <jwe@gnu.org> for Octave.
3829
3830 2011-09-02  Bruno Haible  <bruno@clisp.org>
3831
3832         Find 'ar' program that fits with --host argument.
3833         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
3834
3835 2011-09-02  Bruno Haible  <bruno@clisp.org>
3836
3837         tests: init.sh: Support any non-GNU diff.
3838         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
3839         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
3840         Solaris 8.
3841
3842 2011-09-02  Bruno Haible  <bruno@clisp.org>
3843
3844         tests: init.sh: work also with any non-GNU diff that supports -u
3845         * tests/init.sh: Relax check for diff -u support.
3846         Rather than checking for GNU diff via --version, simply check
3847         for support for -u itself.  Useful at least on OpenBSD 4.9,
3848         AIX 7.1, IRIX 6.5, and Solaris 10.
3849
3850 2011-09-01  Bruno Haible  <bruno@clisp.org>
3851
3852         strtoimax, strtoumax: Document problem on HP-UX 11.
3853         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
3854         * doc/posix-functions/strtoumax.texi: Likewise.
3855
3856 2011-09-01  Bruno Haible  <bruno@clisp.org>
3857
3858         strtoumax: Avoid link error on OSF/1 with DTK cc.
3859         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
3860         defined as a function.
3861         * modules/strtoumax (Depends-on, configure.ac): Test only whether
3862         strtoumax is defined, not whether it is declared.
3863
3864 2011-09-01  Bruno Haible  <bruno@clisp.org>
3865
3866         strtoimax: Avoid link error on OSF/1 with DTK cc.
3867         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
3868         defined as a function.
3869         * modules/strtoimax (Depends-on, configure.ac): Test only whether
3870         strtoimax is defined, not whether it is declared.
3871
3872 2011-09-01  Bruno Haible  <bruno@clisp.org>
3873
3874         imaxdiv: Avoid link error on OSF/1 with DTK cc.
3875         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
3876         as a function.
3877         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
3878         whether it is declared.
3879
3880 2011-09-01  Bruno Haible  <bruno@clisp.org>
3881
3882         imaxabs: Avoid link error on OSF/1 with DTK cc.
3883         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
3884         as a function.
3885         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
3886         whether it is declared.
3887
3888 2011-09-01  Bruno Haible  <bruno@clisp.org>
3889
3890         Tests for module 'strtoumax'.
3891         * modules/strtoumax-tests: New file.
3892         * tests/test-strtoumax.c: New file.
3893
3894         Tests for module 'strtoimax'.
3895         * modules/strtoimax-tests: New file.
3896         * tests/test-strtoimax.c: New file.
3897
3898         Tests for module 'imaxdiv'.
3899         * modules/imaxdiv-tests: New file.
3900         * tests/test-imaxdiv.c: New file.
3901
3902         Tests for module 'imaxabs'.
3903         * modules/imaxabs-tests: New file.
3904         * tests/test-imaxabs.c: New file.
3905
3906 2011-09-01  Bruno Haible  <bruno@clisp.org>
3907
3908         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
3909         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
3910         pthread_create.
3911
3912 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3913
3914         openat: work around AIX 7.1 fstatat issue
3915         This should fix the problem that was not properly fixed
3916         in the previous change, dated 2011-08-30.
3917         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
3918         __need_system_stat_h defined.
3919         (orig_fstatat) [HAVE_FSTATAT]: New function.
3920         (rpl_fstatat): Go back to the old way of doing things,
3921         except call orig_fstatat instead of fstatat.
3922         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
3923         Remove unnecessary check whether fstatat fills in st_size etc.
3924
3925 2011-09-01  Bruno Haible  <bruno@clisp.org>
3926
3927         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
3928         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
3929         just include the system's header.
3930
3931 2011-08-31  Jim Meyering  <meyering@redhat.com>
3932
3933         tests: avoid spurious assertion failure in test-float.c on ppc64
3934         * tests/test-float.c (test_long_double): Comment out an assertion,
3935         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
3936         with gcc-4.4.4.
3937
3938         maint: indent with spaces, not TABs
3939         I need to get in the habit of running gnulib's "make check".
3940         Both of these would have been caught.
3941         * m4/largefile.m4: Indent with spaces, not TABs.
3942         * lib/parse-datetime.y (iso_8601_time): Likewise.
3943         Spotted by Pádraig Brady.
3944
3945         test-parse-datetime.c: accommodate a relatively strict gcc warning
3946         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
3947         to avoid a warning from gcc's -Werror=missing-declarations.
3948         Insert a few spaces-before-funcall-parenthesis.
3949
3950 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
3951
3952         parse-datetime: accept ISO 8601 date and time rep with "T" separator
3953         The parser now accepts ISO 8601 date-time strings with "T" as the
3954         separator.  It has long parsed dates like "2004-02-29 16:21:42"
3955         with a space between the date and time strings.  Now it also parses
3956         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
3957         variants like "2004-02-29T16:21:42.333-07:00"
3958         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
3959         of day representation using the 'T' separator character.
3960         * doc/parse-datetime.texi (General date syntax): replace use of
3961         deprecated --iso-8601 option with --rfc-3339 in example of date
3962         command output formats that can be parsed.
3963         * tests/test-parse-datetime.c (tm_diff): New function, taken from
3964         lib/parse-datetime.y.
3965         (gmt_offset): New function.
3966         (main): Add additional test cases to validate ISO8601 extended
3967         date and time of day parsing.
3968
3969 2011-08-31  Bruno Haible  <bruno@clisp.org>
3970
3971         freopen: Documentation.
3972         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
3973         name.
3974         Reported by Claudio Bley <claudio.bley@gmail.com>.
3975
3976 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
3977
3978         freopen: Don't crash if the filename argument is NULL.
3979         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
3980         NULL.
3981
3982 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3983
3984         openat: work around AIX 7.1 fstatat bug
3985         Problem reported by Kevin Brott for GNU tar, in the thread containing
3986         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
3987         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
3988         FSTATAT_ST_SIZE_ETC_BROKEN.
3989         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
3990         rpl_fstatat.
3991         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
3992         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
3993         AC_CHECK_FUNCS_ONCE for fstatat.
3994         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
3995         fchmodat, mkdirat, openat and unlinkat.
3996
3997 2011-08-30  Bruno Haible  <bruno@clisp.org>
3998
3999         Avoid endless recursions if config.h includes some header files.
4000         * lib/fopen.c (__need_FILE): Define already before including config.h.
4001         * lib/freopen.c (__need_FILE): Likewise.
4002         * lib/open.c (__need_system_fcntl_h): Likewise.
4003         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4004         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4005         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4006
4007 2011-08-25  Karl Berry  <karl@gnu.org>
4008
4009         * config/srclist.txt (ylwrap): new try.
4010         * build-aux/ylwrap: new file.
4011
4012 2011-08-23  Bruno Haible  <bruno@clisp.org>
4013
4014         tmpdir: Use a good default directory on native Windows.
4015         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4016         (P_tmpdir): Default to _P_tmpdir on native Windows.
4017         (path_search): On native Windows, try the value returned by GetTempPath
4018         before trying P_tmpdir.
4019         * modules/tmpdir (Depends-on): Add pathmax.
4020         Suggested by John Darrington <john@darrington.wattle.id.au>.
4021
4022 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4023
4024         doc: fix typo in README-release
4025         * top/README-release: Capitalize first word of a sentence.
4026
4027 2011-08-19  Jim Meyering  <meyering@redhat.com>
4028
4029         fts: do not exhaust memory when processing million-entry directories
4030         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4031         directory would require about 256*N bytes of memory.  Thus, it was
4032         easy to construct a directory too large to be processed by any of
4033         those tools.  With this change, fts' maximum memory utilization is
4034         now limited to around 30MB.
4035         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4036         (fts_read): When we've processed the final entry (i.e., when
4037         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4038         using the parent entry to read any remaining entries.  Dispatch
4039         depending on what fts_build returns:
4040         - NULL+stop, aka failure: stop
4041         - NULL otherwise: move up in the dir hierarchy
4042         - non-NULL: handle this new entry
4043         (fts_build): Declare and use new local, continue_readdir.
4044         Prepare to be called from fts_read, when the entries
4045         from a partially-read directory have just been exhausted.
4046         In that case, we'll skip the opendir and instead use the parent's
4047         fts_dirp and derive dir_fd from that.
4048         Finally, in the readdir loop, if we read max_entries entries,
4049         exit the loop ensuring *not* to call closedir.  This is required
4050         so that fts_dirp can be reused on a subsequent call.
4051         Prompted by Ben England's report of memory exhaustion in find
4052         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4053
4054         maint: fts: move decl of `dp' down into while loop; split a long line
4055         * lib/fts.c (fts_build): No semantic change.
4056
4057         fts: add/use new struct member, fts_dirp
4058         We are about to use this to manage any directory with
4059         too many entries to read all of them into memory at once.
4060         To do that, we'll need to save the DIR* pointer in each
4061         affected FTSENT struct.
4062         * lib/fts_.h: Include <dirent.h>.
4063         (struct FTSENT) [fts_dirp]: New member.
4064         * lib/fts.c (closedir_and_clear): Define.
4065         Use it in place of closedir so that we are sure to
4066         clear the new fts_dirp member when done with it.
4067         (fts_alloc): Initialize the new member.
4068         (fts_lfree): Free, if needed.
4069
4070         maint: fts: give __opendir2 a new parameter and rename
4071         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4072         than surreptitiously using sole caller's "dir_fd".
4073         (fts_opendir): Rename from __opendir2.
4074
4075         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4076         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4077
4078         maint: fts.c: correct off-by-one indentation
4079         * lib/fts.c (fts_build): Correct indentation, change style
4080         of a couple of block comments, and bracing style.
4081
4082         maint: fts.c: move __opendir2 #define "up" out of function body
4083         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4084
4085         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4086         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4087         out for a long time and besides was useful only on BSD systems.
4088
4089 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4090
4091         regex: port to Stratus OpenVOS
4092         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4093         define to empty, rather than attempting nonportable optimizations.
4094         Problem reported by Paul Green in:
4095         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4096         and fix suggested by Eric Blake in:
4097         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4098
4099 2011-08-17  Eric Blake  <eblake@redhat.com>
4100
4101         getcwd: fix test failures on mingw
4102         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4103         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4104         test if long directory cannot be created, and allow mingw errno.
4105
4106         getcwd-lgpl: fix m4 to match relaxed test for BSD
4107         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4108         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4109         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4110         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4111         signature problem.
4112
4113         getcwd: fix compilation on mingw64
4114         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4115         getcwd.
4116         Reported by Marc-André Lureau.
4117
4118         pipe2: silence compiler warning
4119         * lib/pipe2.c (pipe2): Hide label if it is not used.
4120
4121 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4122
4123         relocatable-prog: fix link error
4124         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4125         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4126         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4127         into modules/relocatable-lib without noticing that
4128         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4129         also needs to build relocatable.c.
4130
4131 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4132
4133         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4134         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4135         shell code: it contained a 'break' that was not in a loop.
4136         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4137         via a shell-language loop; this may have been true in old Autoconf
4138         versions, but it's not true in Autoconf 2.68.  I found this bug
4139         when testing coreutils git on Solaris 8, whose shell complains
4140         about the syntax error.
4141
4142 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4143
4144         * lib/base64.c: Fix comment to reference RFC 4648.
4145         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4146         <gvtulder@gmail.com>.
4147
4148 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4149
4150         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4151
4152         po/Makefile.in.in: fix make -q problem
4153         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4154         rule, since there's no file named 'check-macro-version' and its
4155         use as a file breaks make -q.
4156         (all): Don't depend on check-macro-version.
4157         (CHECK_MACRO_VERSION): New macro.
4158         (stamp-po): Use it.
4159
4160         configmake: fix make -q problem
4161         * modules/configmake (configmake.h): Update configmake.h's time stamp
4162         even if the file does not change.  Otherwise, 'make -q' fails.
4163         Problem reported by Simon Josefsson in
4164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4165
4166 2011-08-11  Jim Meyering  <meyering@redhat.com>
4167
4168         git-version-gen: correct the advice in a comment
4169         * build-aux/git-version-gen: Correct comment.
4170         Don't recommend to list .tarball-version in .gitignore.
4171
4172 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4173
4174         base64: fix off-by-one buffer size bug
4175         Problem and (trivial) fix reported by Gijs van Tulder in
4176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4177         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4178         * tests/test-base64.c (main): Catch the bug.
4179
4180 2011-08-10  Eric Blake  <eblake@redhat.com>
4181
4182         closein: correct comments
4183         * lib/closein.c (close_stdin): Improve comments.
4184
4185 2011-08-09  Bruno Haible  <bruno@clisp.org>
4186
4187         More tests for 'fseeko'.
4188         * tests/test-fseeko3.c: New file, from Eric Blake.
4189         * tests/test-fseeko3.sh: New file.
4190         * modules/fseeko-tests (Files): Add them.
4191         (TESTS): Add test-fseeko3.sh.
4192         (check_PROGRAMS): Add test-fseeko3.
4193
4194 2011-08-09  Eric Blake  <eblake@redhat.com>
4195
4196         fseeko: remove unneeded hack
4197         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4198
4199         fseeko: fix bug on glibc
4200         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4201         Reported by John W. Eaton.
4202
4203 2011-08-08  Bruno Haible  <bruno@clisp.org>
4204
4205         unictype/base: Fix interoperability with preinstalled libunistring.
4206         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4207         Reported by Simon Josefsson.
4208
4209 2011-08-08  Bruno Haible  <bruno@clisp.org>
4210
4211         iswblank: Detect declaration correctly.
4212         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4213         AC_CHECK_DECLS invocation.
4214
4215 2011-08-08  Bruno Haible  <bruno@clisp.org>
4216
4217         tcgetsid: Detect declaration correctly.
4218         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4219         AC_CHECK_DECLS invocation.
4220         Reported by Simon Josefsson.
4221
4222 2011-08-08  Eric Blake  <eblake@redhat.com>
4223
4224         largefile: fix typo that regressed large file support
4225         * modules/largefile (configure.ac-early): Fix section name.
4226
4227 2011-08-06  Karl Berry  <karl@gnu.org>
4228
4229         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4230         a separate module.
4231
4232 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4233
4234         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4235         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4236         get prototype for free.
4237
4238 2011-08-04  Bruno Haible  <bruno@clisp.org>
4239
4240         Tests for module 'pathmax'.
4241         * modules/pathmax-tests: New file.
4242         * tests/test-pathmax.c: New file.
4243
4244         canonicalize-lgpl: Support larger filenames on the Hurd.
4245         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
4246         Reported by Paul Eggert.
4247
4248         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
4249         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
4250         * lib/chdir-long.h: Include pathmax.h.
4251         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
4252         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
4253         (PATH_MAX): Remove code that is done by pathmax.h.
4254         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
4255         * lib/tmpfile.c: Add a comment.
4256         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
4257         * modules/chdir-long (Depends-on): Add pathmax.
4258         * modules/getcwd (Depends-on): Add pathmax.
4259         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
4260         is not defined.
4261         * doc/posix-headers/limits.texi: Mention the pathmax module.
4262         * NEWS: Mention the change.
4263
4264 2011-08-02  Bruno Haible  <bruno@clisp.org>
4265
4266         pthread_sigmask: Actually use results of gl_THREADLIB.
4267         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
4268         gl_THREADLIB, not gl_[]THREADLIB.
4269         Reported by Eric Blake.
4270
4271 2011-08-02  Jim Meyering  <meyering@redhat.com>
4272
4273         maint.mk: relax the default _gl_TS_function_match regexp
4274         * top/maint.mk (_gl_TS_function_match): Don't require at least one
4275         space between function name and "(" in an "extern" declaration.
4276         That would fail to match a decl with no space there: extern void foo();
4277
4278 2011-07-31  Iain Nicol  <iain@thenicols.net>
4279
4280         git-version-gen: document that EXTRA_DIST must include .version
4281         * build-aux/git-version-gen: In the how-to-use comment, document
4282         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
4283         will fail when run from an unpacked distribution tarball.
4284
4285 2011-08-01  Bruno Haible  <bruno@clisp.org>
4286
4287         wctype-h: Fix last change.
4288         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
4289         REPLACE_TOWLOWER to 0.
4290         Reported by Sam Steingold <sds@gnu.org>.
4291
4292 2011-07-31  Bruno Haible  <bruno@clisp.org>
4293
4294         frexpl: Update autoconf test.
4295         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
4296         according to changes of 2011-06-20.
4297
4298 2011-07-31  Bruno Haible  <bruno@clisp.org>
4299
4300         sys_utsname: Add support for Minix.
4301         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
4302         <sys/utsname.h>.
4303         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4304         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
4305
4306 2011-07-31  Bruno Haible  <bruno@clisp.org>
4307
4308         strings: Add support for Minix.
4309         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
4310         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4311         * doc/posix-headers/strings.texi: Document the Minix problem.
4312
4313 2011-07-31  Bruno Haible  <bruno@clisp.org>
4314
4315         wctype-h: Add support for Minix.
4316         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
4317         REPLACE_TOWLOWER.
4318         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
4319         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
4320         REPLACE_ISWCNTRL.
4321
4322 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
4323
4324         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
4325         This is a performance improvement for 64-bit hosts: it causes the
4326         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
4327
4328 2011-07-31  Bruno Haible  <bruno@clisp.org>
4329
4330         stdioext: Add support for Minix.
4331         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
4332         * lib/fpurge.c (fpurge): Likewise.
4333         * lib/freadahead.c (freadahead): Likewise.
4334         * lib/freadable.c (freadable): Likewise.
4335         * lib/freading.c (freading): Likewise.
4336         * lib/freadptr.c (freadptr): Likewise.
4337         * lib/freadseek.c (freadptrinc): Likewise.
4338         * lib/fseeko.c (rpl_fseeko): Likewise.
4339         * lib/fseterr.c (fseterr): Likewise.
4340         * lib/fwritable.c (fwritable): Likewise.
4341         * lib/fwriting.c (fwriting): Likewise.
4342         * lib/fflush.c (clear_ungetc_buffer): Update comment.
4343         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4344
4345 2011-07-31  Bruno Haible  <bruno@clisp.org>
4346
4347         errno: Port to Minix.
4348         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4349         ECONNABORTED are defined.
4350         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4351         GNULIB_defined_ECONNABORTED): New macros.
4352         * lib/strerror-override.h (strerror_override): Test also
4353         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4354         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4355         ECONNABORTED.
4356         * doc/posix-headers/errno.texi: Mention the Minix problem.
4357
4358 2011-07-31  Bruno Haible  <bruno@clisp.org>
4359
4360         Work around declaration collisions on Minix.
4361         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4362         defined, set REPLACE_MBSINIT.
4363         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4364         defined, set REPLACE_MBRTOWC.
4365         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4366         set REPLACE_MBRLEN.
4367         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4368         defined, set REPLACE_MBSRTOWCS.
4369         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4370         defined, set REPLACE_WCRTOMB.
4371         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4372         defined, set REPLACE_WCSRTOMBS.
4373
4374 2011-07-31  Bruno Haible  <bruno@clisp.org>
4375
4376         Add support for Minix with ACK compiler.
4377         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
4378         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
4379         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
4380
4381 2011-07-31  Bruno Haible  <bruno@clisp.org>
4382
4383         Documentation about Minix.
4384         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
4385         * doc/glibc-headers/*.texi: Likewise.
4386         * doc/posix-functions/*.texi: Likewise.
4387         * doc/glibc-functions/*.texi: Likewise.
4388
4389 2011-07-31  Bruno Haible  <bruno@clisp.org>
4390
4391         snippet/warn-on-use: Fix indentation.
4392         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
4393
4394 2011-07-25  Jim Meyering  <meyering@redhat.com>
4395
4396         tests: test-update-copyright.sh: remove unnecessary "rm" commands
4397         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
4398         commands.
4399
4400 2011-07-27  Jim Meyering  <meyering@redhat.com>
4401
4402         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
4403         * top/maint.mk (gl_extract_significant_defines_): Now that
4404         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
4405         gnulib/lib/signal.in.h, and now that we recommend to
4406         define-if-undefined those two symbols in application code,
4407         we must filter them out of the "significant" list.
4408         This avoids a "make syntax-check" failure in coreutils.
4409
4410 2011-07-26  Eric Blake  <eblake@redhat.com>
4411
4412         warnings: add comments about previous patch
4413         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4414         * m4/include_next.m4: Likewise.
4415         * m4/warn-on-use.m4: Likewise.
4416         * m4/warnings.m4: Likewise, and simplify use.
4417         Suggested by Stefano Lattarini.
4418
4419         include-next, warnings: support older autoconf
4420         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
4421         AS_VAR_PUSHDEF in a way that works with older autoconf.
4422         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
4423         Reported by Daniel P. Berrange.
4424
4425 2011-07-25  Bruno Haible  <bruno@clisp.org>
4426
4427         fseek, ftell: Fix doc.
4428         * doc/posix-functions/fseek.texi: Reword statement about
4429         AC_SYS_LARGEFILE.
4430         * doc/posix-functions/ftell.texi: Likewise.
4431
4432 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4433             Bruno Haible  <bruno@clisp.org>
4434
4435         Add dependencies to the 'largefile' module.
4436         * modules/fopen (Depends-on): Add 'largefile'.
4437         * modules/freopen (Depends-on): Likewise.
4438         * modules/fseeko (Depends-on): Likewise.
4439         * modules/ftello (Depends-on): Likewise.
4440         * modules/glob (Depends-on): Likewise.
4441         * modules/lseek (Depends-on): Likewise.
4442         * modules/lstat (Depends-on): Likewise.
4443         * modules/mkostemp (Depends-on): Likewise.
4444         * modules/mkostemps (Depends-on): Likewise.
4445         * modules/mkstemp (Depends-on): Likewise.
4446         * modules/mkstemps (Depends-on): Likewise.
4447         * modules/open (Depends-on): Likewise.
4448         * modules/openat (Depends-on): Likewise.
4449         * modules/pread (Depends-on): Likewise.
4450         * modules/pwrite (Depends-on): Likewise.
4451         * modules/scandir (Depends-on): Likewise.
4452         * modules/stat (Depends-on): Likewise.
4453         * modules/tmpfile (Depends-on): Likewise.
4454         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
4455         since the containing module now depends on the largefile module.
4456         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
4457         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
4458         off_t is fixed by gnulib.
4459         * doc/posix-functions/freopen.texi: Likewise.
4460         * doc/posix-functions/fseeko.texi: Likewise.
4461         * doc/posix-functions/fstatat.texi: Likewise.
4462         * doc/posix-functions/ftello.texi: Likewise.
4463         * doc/posix-functions/glob.texi: Likewise.
4464         * doc/posix-functions/lseek.texi: Likewise.
4465         * doc/posix-functions/lstat.texi: Likewise.
4466         * doc/posix-functions/mkstemp.texi: Likewise.
4467         * doc/posix-functions/open.texi: Likewise.
4468         * doc/posix-functions/openat.texi: Likewise.
4469         * doc/posix-functions/pread.texi: Likewise.
4470         * doc/posix-functions/pwrite.texi: Likewise.
4471         * doc/posix-functions/scandir.texi: Likewise.
4472         * doc/posix-functions/stat.texi: Likewise.
4473         * doc/posix-functions/tmpfile.texi: Likewise.
4474         * doc/glibc-functions/mkostemp.texi: Likewise.
4475         * doc/glibc-functions/mkostemps.texi: Likewise.
4476         * doc/glibc-functions/mkstemps.texi: Likewise.
4477
4478 2011-07-25  Bruno Haible  <bruno@clisp.org>
4479
4480         fcntl: Move AC_LIBOBJ invocation to module description.
4481         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
4482         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
4483
4484         fcntl: Remove call-in from fchdir.m4.
4485         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
4486         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
4487
4488         dup3: Remove potential call-in from fchdir.m4.
4489         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
4490         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
4491
4492         dup2: Move AC_LIBOBJ invocation to module description.
4493         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
4494         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
4495         Don't invoke AC_LIBOBJ.
4496         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
4497
4498         dup2: Remove call-in from fchdir.m4.
4499         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
4500         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
4501
4502         fclose: Move AC_LIBOBJ invocation to module description.
4503         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
4504         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
4505         to 1.
4506         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
4507
4508         fclose: Remove call-in from close.m4.
4509         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
4510         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
4511
4512         close: Move AC_LIBOBJ invocation to module description.
4513         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
4514         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
4515         1.
4516         * modules/close (configure.ac): Invoke AC_LIBOBJ.
4517
4518         close: Remove call-in from fchdir.m4.
4519         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
4520         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
4521
4522         open: Move AC_LIBOBJ invocation to module description.
4523         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
4524         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
4525         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
4526
4527         open: Remove call-in from fchdir.m4.
4528         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
4529         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
4530
4531         fchdir: Start to remove gl_REPLACE_* idiom.
4532         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
4533         (gl_FUNC_FCHDIR): Invoke it.
4534
4535 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4536
4537         * lib/ftell.c (ftell): Comment out cast.
4538
4539         close: use gl_REPLACE_FCLOSE only if defined
4540         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
4541         is defined.  The close module doesn't depend on the fclose module
4542         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
4543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
4544         I reproduced the problem with "./gnulib-tool --test close sys_socket".
4545
4546 2011-07-24  Jim Meyering  <meyering@redhat.com>
4547
4548         test-select.h: avoid warning when using gcc's -Wmissing-declarations
4549         * tests/test-select.h (test_function): Declare as "static".
4550
4551 2011-07-24  Bruno Haible  <bruno@clisp.org>
4552
4553         doc: Mention the effects of AC_SYS_LARGEFILE.
4554         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
4555         on this function.
4556         * doc/posix-functions/aio_error.texi: Likewise.
4557         * doc/posix-functions/aio_fsync.texi: Likewise.
4558         * doc/posix-functions/aio_read.texi: Likewise.
4559         * doc/posix-functions/aio_return.texi: Likewise.
4560         * doc/posix-functions/aio_suspend.texi: Likewise.
4561         * doc/posix-functions/aio_write.texi: Likewise.
4562         * doc/posix-functions/fgetpos.texi: Likewise.
4563         * doc/posix-functions/fopen.texi: Likewise.
4564         * doc/posix-functions/freopen.texi: Likewise.
4565         * doc/posix-functions/fsetpos.texi: Likewise.
4566         * doc/posix-functions/fstatvfs.texi: Likewise.
4567         * doc/posix-functions/ftruncate.texi: Likewise.
4568         * doc/posix-functions/ftw.texi: Likewise.
4569         * doc/posix-functions/getrlimit.texi: Likewise.
4570         * doc/posix-functions/glob.texi: Likewise.
4571         * doc/posix-functions/lio_listio.texi: Likewise.
4572         * doc/posix-functions/lockf.texi: Likewise.
4573         * doc/posix-functions/mkstemp.texi: Likewise.
4574         * doc/posix-functions/mmap.texi: Likewise.
4575         * doc/posix-functions/nftw.texi: Likewise.
4576         * doc/posix-functions/openat.texi: Likewise.
4577         * doc/posix-functions/opendir.texi: Likewise.
4578         * doc/posix-functions/posix_fadvise.texi: Likewise.
4579         * doc/posix-functions/posix_fallocate.texi: Likewise.
4580         * doc/posix-functions/pread.texi: Likewise.
4581         * doc/posix-functions/pwrite.texi: Likewise.
4582         * doc/posix-functions/readdir.texi: Likewise.
4583         * doc/posix-functions/readdir_r.texi: Likewise.
4584         * doc/posix-functions/rewinddir.texi: Likewise.
4585         * doc/posix-functions/scandir.texi: Likewise.
4586         * doc/posix-functions/seekdir.texi: Likewise.
4587         * doc/posix-functions/setrlimit.texi: Likewise.
4588         * doc/posix-functions/statvfs.texi: Likewise.
4589         * doc/posix-functions/telldir.texi: Likewise.
4590         * doc/posix-functions/tmpfile.texi: Likewise.
4591         * doc/posix-functions/truncate.texi: Likewise.
4592         * doc/glibc-functions/fallocate.texi: Likewise.
4593         * doc/glibc-functions/fstatfs.texi: Likewise.
4594         * doc/glibc-functions/fts_children.texi: Likewise.
4595         * doc/glibc-functions/fts_read.texi: Likewise.
4596         * doc/glibc-functions/getdirentries.texi: Likewise.
4597         * doc/glibc-functions/mkostemp.texi: Likewise.
4598         * doc/glibc-functions/mkostemps.texi: Likewise.
4599         * doc/glibc-functions/mkstemps.texi: Likewise.
4600         * doc/glibc-functions/preadv.texi: Likewise.
4601         * doc/glibc-functions/pwritev.texi: Likewise.
4602         * doc/glibc-functions/sendfile.texi: Likewise.
4603         * doc/glibc-functions/statfs.texi: Likewise.
4604
4605 2011-07-24  Bruno Haible  <bruno@clisp.org>
4606
4607         doc: Fix typo.
4608         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
4609
4610 2011-07-24  Bruno Haible  <bruno@clisp.org>
4611
4612         doc: Mention fsusage.
4613         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
4614
4615 2011-07-24  Bruno Haible  <bruno@clisp.org>
4616
4617         doc: Mention new glibc headers and functions.
4618         * doc/glibc-headers/gshadow.texi: New file.
4619         * doc/glibc-functions/endsgent.texi: New file.
4620         * doc/glibc-functions/fgetsgent.texi: New file.
4621         * doc/glibc-functions/fgetsgent_r.texi: New file.
4622         * doc/glibc-functions/getsgent.texi: New file.
4623         * doc/glibc-functions/getsgent_r.texi: New file.
4624         * doc/glibc-functions/getsgnam.texi: New file.
4625         * doc/glibc-functions/getsgnam_r.texi: New file.
4626         * doc/glibc-functions/putsgent.texi: New file.
4627         * doc/glibc-functions/setsgent.texi: New file.
4628         * doc/glibc-functions/sgetsgent.texi: New file.
4629         * doc/glibc-functions/sgetsgent_r.texi: New file.
4630         * doc/glibc-functions/malloc_info.texi: New file.
4631         * doc/glibc-functions/preadv.texi: New file.
4632         * doc/glibc-functions/pwritev.texi: New file.
4633         * doc/glibc-functions/register_printf_modifier.texi: New file.
4634         * doc/glibc-functions/register_printf_specifier.texi: New file.
4635         * doc/glibc-functions/register_printf_type.texi: New file.
4636         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
4637         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
4638         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
4639         * doc/glibc-functions/pthread_getname_np.texi: New file.
4640         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
4641         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
4642         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
4643         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
4644         * doc/glibc-functions/pthread_setname_np.texi: New file.
4645         * doc/glibc-functions/pthread_sigqueue.texi: New file.
4646         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
4647         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
4648         * doc/glibc-functions/qsort_r.texi: New file.
4649         * doc/glibc-functions/quick_exit.texi: New file.
4650         * doc/glibc-functions/syncfs.texi: New file.
4651         * doc/gnulib.texi: Include them.
4652         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
4653         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
4654         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
4655         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
4656         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
4657         * doc/glibc-functions/execvpe.texi: Likewise.
4658
4659 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4660
4661         ftell: don't include <unistd.h>
4662         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
4663         guaranteed to define off_t, and the ftell module depends on the
4664         stdio module.
4665
4666         ftell: do not assume wraparound signed arithmetic
4667         * lib/ftell.c: Include <limits.h>.
4668         (ftell): Don't assume wraparound signed arithmetic.
4669
4670 2011-07-24  Bruno Haible  <bruno@clisp.org>
4671
4672         close: No longer depend on module 'fclose'.
4673         * modules/close (Depends-on): Remove fclose.
4674         * NEWS: Mention the change.
4675         Suggested by Sam Steingold <sds@gnu.org>.
4676
4677 2011-07-24  Bruno Haible  <bruno@clisp.org>
4678
4679         fsusage: Enable large volume support on AIX >= 5.2.
4680         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
4681         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
4682         instead of STAT_STATVFS.
4683         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
4684
4685         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
4686         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
4687         f_blocks field only on MacOS X.
4688
4689         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
4690         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
4691         * modules/fsusage (Depends-on): Add largefile.
4692
4693 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4694
4695         * README: Modernize discussion of signed integers.
4696         Assuming overflow wraparound is no longer safe.
4697         Mention ones' complement and signed magnitude.
4698
4699 2011-07-22  Bruno Haible  <bruno@clisp.org>
4700
4701         select tests, pselect tests: Refactor.
4702         * tests/test-select.h: New file, extracted from tests/test-select.c.
4703         (select_fn): New type.
4704         (test, do_select, do_select_nowait, do_select_wait, test_tty,
4705         test_connect_first, test_accept_first, test_pair, test_socket_pair,
4706         test_pipe): Add my_select argument.
4707         (test_function): Renamed from main. Add my_select argument.
4708         * tests/test-select.c: Move most code to tests/test-select.h. Include
4709         test-select.h.
4710         * modules/select-tests (Files): Add tests/test-select.h.
4711         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
4712         (my_select, main): New functions.
4713         * modules/pselect-tests (Files): Add tests/test-select.h,
4714         tests/macros.h, tests/signature.h.
4715         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
4716         (configure.ac): Check for <sys/wait.h>.
4717
4718 2011-07-22  Bruno Haible  <bruno@clisp.org>
4719
4720         sys_select tests: Check the signature of FD_*.
4721         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
4722         signature tests from here...
4723         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
4724         here.
4725         * modules/sys_select-tests (Files): Add tests/signature.h.
4726
4727 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4728
4729         largefile: new module, replacing large-inode
4730         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
4731         * MODULES.html.sh: Add largefile, remove large-inode.
4732         * modules/largefile, m4/largefile.m4: New files.
4733         * modules/large-inode, m4/large-inode.m4: Remove.
4734
4735         fsusage: port to MacOS X 10.7 with 4 TiB file systems
4736         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
4737         implementations that use only 32 bits to count blocks.
4738         On typical hosts with 1024-byte blocks, this fails with file
4739         systems as small as 4 TiB.  Problem reported by Herb Wartens
4740         <http://debbugs.gnu.org/9140> and this should also fix a similar
4741         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
4742
4743         large-inode: New module
4744         * MODULES.html.sh: Add it.
4745         * modules/large-inode, m4/large-inode.m4: New files.
4746
4747         extensions: Enable extensions on MacOS X 10.5 and later.
4748         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
4749
4750 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
4751
4752         file-has-acl: use acl_extended_file_nofollow if available
4753         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
4754         (acl_extended_file): New macro.
4755         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
4756         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
4757
4758 2011-07-21  Bruno Haible  <bruno@clisp.org>
4759
4760         Declare system functions in a way that works with C++.
4761         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
4762         declare fdopendir as extern "C".
4763         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
4764         declare frexpl as extern "C".
4765         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
4766         declare gai_strerror as extern "C".
4767         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
4768         programs, declare gai_strerror as extern "C".
4769         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
4770         declare getlogin_r as extern "C".
4771         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
4772         as extern "C".
4773         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
4774         declare ldexpl as extern "C".
4775         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
4776         as extern "C".
4777         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
4778         program, declare getmntinfo as extern "C".
4779         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
4780         stpncpy as extern "C".
4781         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
4782         program, declare __xpg_strerror_r as extern "C".
4783         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
4784         strndup as extern "C".
4785         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
4786         declare memset and bzero as extern "C".
4787         Reported by Sam Steingold <sds@gnu.org>.
4788
4789 2011-07-12  Jim Meyering  <meyering@redhat.com>
4790
4791         maint.mk: prohibit inclusion of "verify.h" without use
4792         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
4793
4794 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4795
4796         timer-time: A new module to check for timer_settime()
4797         * m4/timer_time.m4: Check for the posix function.
4798         * modules/timer-time: Add the new module.
4799         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
4800         Mention it.
4801
4802 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
4803             Bruno Haible  <bruno@clisp.org>
4804
4805         pthread_sigmask: assume POSIX threads if --avoid=threadlib
4806         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
4807         not defined, assume POSIX threads and look for pthread_sigmask in
4808         $LIBS, without changing $CPPFLAGS.
4809
4810 2011-07-19  Bruno Haible  <bruno@clisp.org>
4811
4812         strstr: Update cross-compilation guess.
4813         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
4814         CPUs, guess no, in view of glibc
4815         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
4816         Suggested by Eric Blake. Reported by Reuben Thomas.
4817
4818 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4819
4820         getopt-gnu: suppress core dumps from detection code
4821         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
4822         to suppress core dumps that may well occur on glibc systems.
4823         * modules/getopt-gnu: Depend on nocrash.
4824
4825 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4826
4827         pthread_sigmask: ensure usleep is declared
4828         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
4829         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
4830
4831 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4832
4833         doc: Document NonStop portability issues.
4834         * doc/posix-functions/sigaction.texi (sigaction):
4835         * doc/posix-headers/signal.texi (signal.h):
4836         Document NonStop.  See Joachim Schmitz in
4837         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
4838
4839 2011-07-15  Bruno Haible  <bruno@clisp.org>
4840
4841         ffsl, ffsll: Avoid unportable behaviour.
4842         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
4843
4844 2011-07-15  Bruno Haible  <bruno@clisp.org>
4845
4846         ffs: More tests.
4847         * tests/test-ffs.c (NBITS): New macro.
4848         (main): Add more tests.
4849         * tests/test-ffsl.c (NBITS): New macro.
4850         (main): Add more tests.
4851         * tests/test-ffsll.c (NBITS): New macro.
4852         (main): Add more tests.
4853
4854 2011-07-15  Eric Blake  <eblake@redhat.com>
4855
4856         ffsl, ffsll: new modules
4857         * modules/ffsl: New file.
4858         * modules/ffsll: Likewise.
4859         * m4/ffsl.m4: Likewise.
4860         * m4/ffsll.m4: Likewise.
4861         * lib/ffsl.c: Likewise.
4862         * lib/ffsl.h: Likewise.
4863         * lib/ffsll.c: Likewise.
4864         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
4865         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
4866         * modules/string (Makefile.am): Substitute witnesses.
4867         * lib/strings.in.h (ffsl, ffsll): Declare.
4868         * modules/ffsl-tests: New test file.
4869         * modules/ffsll-tests: Likewise.
4870         * tests/test-ffsl.c: Likewise.
4871         * tests/test-ffsll.c: Likewise.
4872         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4873         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
4874         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
4875
4876         ffs: fix m4 prerequisite
4877         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
4878
4879         ffs: avoid undefined behavior
4880         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
4881         * tests/test-ffs.c (naive, main): Avoid signed shifts.
4882         Reported by Bruno Haible.
4883
4884 2011-07-12  Bruno Haible  <bruno@clisp.org>
4885
4886         pthread_sigmask: Rely on module 'threadlib'.
4887         * modules/pthread_sigmask (Depends-on): Add threadlib.
4888         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
4889         is defined.
4890
4891 2011-07-12  Bruno Haible  <bruno@clisp.org>
4892
4893         regex: Depend on module 'strcase'.
4894         * modules/regex (Depends-on): Add strcase, for strcasecmp().
4895
4896 2011-07-12  Jim Meyering  <meyering@redhat.com>
4897
4898         warn-on-use: fix typo in file name
4899         * modules/snippet/warn-on-use (Files): Correct file name:
4900         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
4901
4902 2011-07-12  Bruno Haible  <bruno@clisp.org>
4903
4904         strings: Document module.
4905         * doc/posix-headers/strings.texi: Mention module 'strings'.
4906
4907 2011-07-12  Bruno Haible  <bruno@clisp.org>
4908
4909         Rename module '_Noreturn' to 'snippet/_Noreturn'.
4910         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
4911         (Files, Makefile.am): Update.
4912         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
4913         * modules/stdlib (Depends-on): Update.
4914
4915 2011-07-12  Bruno Haible  <bruno@clisp.org>
4916
4917         * NEWS: Mention the changes.
4918
4919         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
4920         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
4921         (Files, Makefile.am): Update.
4922         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
4923         * modules/arpa_inet (Depends-on): Update.
4924         * modules/ctype (Depends-on): Update.
4925         * modules/dirent (Depends-on): Update.
4926         * modules/fcntl-h (Depends-on): Update.
4927         * modules/glob (Depends-on): Update.
4928         * modules/iconv-h (Depends-on): Update.
4929         * modules/inttypes-incomplete (Depends-on): Update.
4930         * modules/langinfo (Depends-on): Update.
4931         * modules/locale (Depends-on): Update.
4932         * modules/math (Depends-on): Update.
4933         * modules/netdb (Depends-on): Update.
4934         * modules/poll-h (Depends-on): Update.
4935         * modules/pty (Depends-on): Update.
4936         * modules/search (Depends-on): Update.
4937         * modules/signal (Depends-on): Update.
4938         * modules/spawn (Depends-on): Update.
4939         * modules/stdio (Depends-on): Update.
4940         * modules/stdlib (Depends-on): Update.
4941         * modules/string (Depends-on): Update.
4942         * modules/strings (Depends-on): Update.
4943         * modules/sys_file (Depends-on): Update.
4944         * modules/sys_ioctl (Depends-on): Update.
4945         * modules/sys_select (Depends-on): Update.
4946         * modules/sys_socket (Depends-on): Update.
4947         * modules/sys_stat (Depends-on): Update.
4948         * modules/sys_time (Depends-on): Update.
4949         * modules/sys_times (Depends-on): Update.
4950         * modules/sys_utsname (Depends-on): Update.
4951         * modules/sys_wait (Depends-on): Update.
4952         * modules/termios (Depends-on): Update.
4953         * modules/time (Depends-on): Update.
4954         * modules/unistd (Depends-on): Update.
4955         * modules/wchar (Depends-on): Update.
4956         * modules/wctype-h (Depends-on): Update.
4957         * MODULES.html.sh (Support for building libraries and executables):
4958         Update.
4959
4960         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
4961         * modules/snippet/unused-parameter: Renamed from
4962         modules/unused-parameter.
4963         (Files, Makefile.am): Update.
4964         * build-aux/snippet/unused-parameter.h: Renamed from
4965         build-aux/unused-parameter.h.
4966         * modules/selinux-h (Depends-on): Update.
4967         * modules/unistr/base (Depends-on): Update.
4968         * MODULES.html.sh (Core language properties): Update.
4969
4970         Rename module 'link-warning' to 'snippet/link-warning'.
4971         * modules/snippet/link-warning: Renamed from modules/link-warning.
4972         (Files, Makefile.am): Update.
4973         * build-aux/snippet/link-warning.h: Renamed from
4974         build-aux/link-warning.h.
4975         * MODULES.html.sh (Support for building libraries and executables):
4976         Update.
4977
4978         Rename module 'c++defs' to 'snippet/c++defs'.
4979         * modules/snippet/c++defs: Renamed from modules/c++defs.
4980         (Files, Makefile.am): Update.
4981         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
4982         * modules/arpa_inet (Depends-on): Update.
4983         * modules/ctype (Depends-on): Update.
4984         * modules/dirent (Depends-on): Update.
4985         * modules/fcntl-h (Depends-on): Update.
4986         * modules/glob (Depends-on): Update.
4987         * modules/iconv-h (Depends-on): Update.
4988         * modules/langinfo (Depends-on): Update.
4989         * modules/locale (Depends-on): Update.
4990         * modules/math (Depends-on): Update.
4991         * modules/netdb (Depends-on): Update.
4992         * modules/poll-h (Depends-on): Update.
4993         * modules/pty (Depends-on): Update.
4994         * modules/search (Depends-on): Update.
4995         * modules/signal (Depends-on): Update.
4996         * modules/spawn (Depends-on): Update.
4997         * modules/stdio (Depends-on): Update.
4998         * modules/stdlib (Depends-on): Update.
4999         * modules/string (Depends-on): Update.
5000         * modules/strings (Depends-on): Update.
5001         * modules/sys_ioctl (Depends-on): Update.
5002         * modules/sys_select (Depends-on): Update.
5003         * modules/sys_socket (Depends-on): Update.
5004         * modules/sys_stat (Depends-on): Update.
5005         * modules/sys_time (Depends-on): Update.
5006         * modules/sys_wait (Depends-on): Update.
5007         * modules/termios (Depends-on): Update.
5008         * modules/time (Depends-on): Update.
5009         * modules/unistd (Depends-on): Update.
5010         * modules/wchar (Depends-on): Update.
5011         * modules/wctype-h (Depends-on): Update.
5012
5013         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5014         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5015         (Files, Makefile.am): Update.
5016         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5017         * modules/argv-iter (Depends-on): Update.
5018         * modules/arpa_inet (Depends-on): Update.
5019         * modules/dirent (Depends-on): Update.
5020         * modules/fcntl-h (Depends-on): Update.
5021         * modules/fnmatch (Depends-on): Update.
5022         * modules/getopt-posix (Depends-on): Update.
5023         * modules/glob (Depends-on): Update.
5024         * modules/iconv-h (Depends-on): Update.
5025         * modules/inttypes-incomplete (Depends-on): Update.
5026         * modules/locale (Depends-on): Update.
5027         * modules/math (Depends-on): Update.
5028         * modules/netdb (Depends-on): Update.
5029         * modules/search (Depends-on): Update.
5030         * modules/signal (Depends-on): Update.
5031         * modules/spawn (Depends-on): Update.
5032         * modules/stdio (Depends-on): Update.
5033         * modules/stdlib (Depends-on): Update.
5034         * modules/string (Depends-on): Update.
5035         * modules/strings (Depends-on): Update.
5036         * modules/sys_socket (Depends-on): Update.
5037         * modules/sys_stat (Depends-on): Update.
5038         * modules/sys_time (Depends-on): Update.
5039         * modules/sys_times (Depends-on): Update.
5040         * modules/sys_utsname (Depends-on): Update.
5041         * modules/time (Depends-on): Update.
5042         * modules/unistd (Depends-on): Update.
5043         * modules/wchar (Depends-on): Update.
5044         * MODULES.html.sh (Support for building libraries and executables):
5045         Update.
5046
5047 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5048
5049         Improvements on _Noreturn and related modules.
5050
5051         modules/_Exit-tests: test _Noreturn too
5052         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5053         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5054         (main): Use them.
5055
5056         stdnoreturn, stdnoreturn-tests: remove modules
5057         They're not needed here and a bit premature for use elsewhere.  See
5058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5059         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5060         * tests/test-stdnoreturn.c: Remove files.
5061         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5062         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5063         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5064         and using noreturn.
5065         * modules/openat, modules/sigpipe-die, modules/xalloc:
5066         * modules/xmemdup0, modules/xstrtol:
5067         Remove dependency on stdnoreturn.
5068
5069         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5070         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5071         Reparenthesize to avoid GCC warning.
5072         Support Microsoft's syntax.
5073         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5074
5075         _Noreturn-tests: remove module
5076         * modules/_Noreturn-tests: Remove.
5077         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5078         * tests/test-_Noreturn.c: Remove.
5079         * tests/test-stdnoreturn.c: Merge from the old
5080         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5081
5082 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5083
5084         _Noreturn, stdnoreturn, and related modules.
5085
5086         * top/maint.mk: Adjust to new noreturn support.
5087         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5088         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5089
5090         xalloc: use stdnoreturn.h
5091         * lib/xalloc.h: Include <stdnoreturn.h>.
5092         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5093         * modules/xalloc (Depends-on): Add stdnoreturn.
5094
5095         xstrtol: use stdnoreturn.h
5096         * lib/xstrtol.h: Include <stdnoreturn.h>.
5097         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5098         * modules/xstrtol (Depends-on): Add stdnoreturn.
5099
5100         xmemdup0: use stdnoreturn.h
5101         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5102         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5103         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5104
5105         sigpipe-die: use stdnoreturn.h
5106         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5107         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5108         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5109
5110         openat: use stdnoreturn.h
5111         * lib/openat.h: Include <stdnoreturn.h>.
5112         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5113         * modules/openat (Depends-on): Add stdnoreturn.
5114
5115         * lib/openat-die.c (openat_save_fail): Modernize comment.
5116
5117         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5118
5119         * lib/glthread/thread.h: Modernize comment.
5120
5121         obstack: use _Noreturn
5122         * lib/obstack.c (__attribute__): Remove macro.
5123         (print_and_abort): Use _Noreturn.
5124
5125         c-stack: use _Noreturn
5126         * lib/c-stack.c (die, overflow_handler, segv_handler):
5127         Use _Noreturn rather than __attribute__((noreturn)).
5128
5129         argmatch-tests, exclude_tests: use _Noreturn
5130         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5131         Remove.
5132         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5133
5134         stdlib: use _Noreturn
5135         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5136         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5137         * modules/stdlib (Depends-on): Add _Noreturn.
5138         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5139
5140         stdnoreturn-tests: new module
5141         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5142
5143         stdnoreturn: new module
5144         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5145         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5146
5147         _Noreturn-tests: new module
5148         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5149
5150         _Noreturn: new module
5151         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5152         New section, mentioning it.
5153         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5154
5155         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5156
5157 2011-07-11  Eric Blake  <eblake@redhat.com>
5158
5159         ffs: new module
5160         * modules/ffs: New file.
5161         * m4/ffs.m4: Likewise.
5162         * lib/ffs.c: Likewise.
5163         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5164         * modules/strings (Makefile.am): Substitute witness.
5165         (Depends-on): Add c++defs.
5166         * lib/strings.in.h (ffs): Declare.
5167         * modules/ffs-tests: New test file.
5168         * tests/test-ffs.c: Test new module.
5169         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5170         * doc/posix-functions/ffs.texi (ffs): Likewise.
5171
5172         regex: avoid compiler warning
5173         * lib/regex.c (includes): Include <strings.h>, for use of
5174         strcasecmp in regcomp.c.
5175         Reported by Joachim Schmitz.
5176
5177 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5178
5179         stdint: respect system's intmax_t if INTMAX_MAX
5180         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5181         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5182         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5183         long but int64_t is long long, and where we will clash with the
5184         system intmax_t if we override it.  See
5185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5186         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5187         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5188         similarly for UINTMAX_C.
5189
5190 2011-07-08  Bruno Haible  <bruno@clisp.org>
5191
5192         pthread_sigmask tests: Avoid a compiler warning.
5193         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5194         non-zero.
5195
5196         sigprocmask tests: A better way to avoid a compiler warning.
5197         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5198         (main): Complain if system() returns non-zero.
5199         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5200
5201 2011-07-08  Bruno Haible  <bruno@clisp.org>
5202
5203         pthread_sigmask: Work around IRIX bug.
5204         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5205         bug.
5206         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5207         there may be unblocked pending signals.
5208         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5209
5210 2011-07-08  Bruno Haible  <bruno@clisp.org>
5211
5212         pthread_sigmask: Work around Cygwin bug.
5213         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5214         bug.
5215         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5216         the system's pthread_sigmask function.
5217         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5218
5219 2011-07-08  Bruno Haible  <bruno@clisp.org>
5220
5221         pthread_sigmask: Work around bug in single-threaded implementation.
5222         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5223         FreeBSD, HP-UX, Solaris bug.
5224         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5225         * lib/pthread_sigmask.c: Include <stddef.h>.
5226         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5227         the system's pthread_sigmask function.
5228         * modules/pthread_sigmask (configure.ac): Invoke
5229         gl_PREREQ_PTHREAD_SIGMASK.
5230         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5231         HP-UX, Solaris.
5232
5233 2011-07-08  Eric Blake  <eblake@redhat.com>
5234
5235         test-sigprocmask: avoid compiler warning
5236         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5237         * tests/test-sigprocmask.c (main): Use it to silence warning.
5238         Reported by Jim Meyering.
5239
5240         test-snprintf: avoid compiler warning
5241         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5242         * tests/test-vsnprintf.c (main): Likewise.
5243         Reported by Jim Meyering.
5244
5245 2011-07-08  Bruno Haible  <bruno@clisp.org>
5246
5247         Tests for module 'pthread_sigmask'.
5248         * modules/pthread_sigmask-tests: New file.
5249         * tests/test-pthread_sigmask1.c: New file, based on
5250         tests/test-sigprocmask.c.
5251         * tests/test-pthread_sigmask2.c: New file.
5252
5253 2011-07-08  Jim Meyering  <meyering@redhat.com>
5254
5255         test-getopt.h: avoid warning about an unused variable
5256         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
5257
5258 2011-07-07  Jim Meyering  <meyering@redhat.com>
5259
5260         maint: reduce list of files exempt from sc_prohibit_leading_TABs
5261         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
5262         now that it no longer contains leading TABs.
5263         Remove unused "url=FIXME" statement.
5264
5265 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5266
5267         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
5268         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5269         When gl_THREADLIB is not in use, assume that the POSIX sematics
5270         are desired.  This is better for Emacs, which uses POSIX semantics
5271         on GNUish and/or POSIXish platforms, and does not use threads at
5272         all otherwise.
5273
5274         pthread_sigmask: fix typo when testing for libraries
5275         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5276         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
5277
5278 2011-07-08  Eric Blake  <eblake@redhat.com>
5279
5280         fts: introduce FTS_NOATIME
5281         * lib/fts_.h (FTS_NOATIME): New bit flag.
5282         (FTS_OPTIONMASK): Adjust.
5283         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
5284         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
5285
5286 2011-07-08  Bruno Haible  <bruno@clisp.org>
5287
5288         Tests for module 'thread'.
5289         * modules/thread-tests: New file.
5290         * tests/test-thread_self.c: New file.
5291         * tests/test-thread_create.cc: New file.
5292
5293 2011-07-08  Bruno Haible  <bruno@clisp.org>
5294
5295         thread: Avoid gcc warnings when using gl_thread_self().
5296         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
5297         'void *'.
5298         (gl_thread_self_pointer): Update.
5299
5300 2011-07-07  Bruno Haible  <bruno@clisp.org>
5301
5302         signal-c++-tests: Check declaration of pthread_sigmask.
5303         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
5304         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
5305         $(LIB_PTHREAD_SIGMASK).
5306
5307 2011-07-07  Bruno Haible  <bruno@clisp.org>
5308
5309         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
5310         * lib/signal.in.h (pthread_sigmask): Override if
5311         REPLACE_PTHREAD_SIGMASK is 1.
5312         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5313         REPLACE_PTHREAD_SIGMASK.
5314         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
5315         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
5316         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
5317         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5318         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
5319
5320 2011-07-07  Bruno Haible  <bruno@clisp.org>
5321
5322         pthread_sigmask: Ensure declaration in <signal.h>.
5323         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
5324         include <pthread.h>.
5325         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
5326         problem.
5327
5328 2011-07-07  Bruno Haible  <bruno@clisp.org>
5329
5330         pthread_sigmask: Document the module.
5331         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
5332
5333 2011-07-07  Bruno Haible  <bruno@clisp.org>
5334
5335         pthread_sigmask: Follow gnulib conventions.
5336         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
5337         gl_PTHREAD_SIGMASK.
5338         * modules/pthread_sigmask (configure.ac): Update.
5339
5340 2011-07-07  Bruno Haible  <bruno@clisp.org>
5341
5342         pthread_sigmask: Make declaration C++ safe.
5343         * lib/signal.in.h: In two special conditions, just do an #include_next.
5344         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5345         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5346         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5347         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5348         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5349         not REPLACE_PTHREAD_MASK.
5350         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5351         not REPLACE_PTHREAD_MASK.
5352         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5353
5354 2011-07-07  Bruno Haible  <bruno@clisp.org>
5355
5356         pthread_sigmask: Fix return value.
5357         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5358         * lib/pthread_sigmask.c: New file.
5359         * modules/pthread_sigmask (Files): Add it.
5360         (configure.ac): Invoke AC_LIBOBJ.
5361
5362 2011-07-07  Eric Blake  <eblake@redhat.com>
5363
5364         getopt: more portable argv creation
5365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5366         const, use char arrays rather than strings.
5367         Suggested by Paul Eggert.
5368
5369 2011-07-07  Bruno Haible  <bruno@clisp.org>
5370
5371         Tests for module 'sigprocmask'.
5372         * modules/sigprocmask-tests: New file.
5373         * tests/test-sigprocmask.c: New file.
5374
5375 2011-07-07  Bruno Haible  <bruno@clisp.org>
5376
5377         float tests: Tweak.
5378         * tests/test-float.c (main): Tweak skip message.
5379
5380 2011-07-07  Eric Blake  <eblake@redhat.com>
5381
5382         getopt: avoid compiler warning during configure
5383         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
5384         assigning string literals to non-const pointer.
5385
5386         getopt-gnu: avoid crash in glibc getopt
5387         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
5388         * tests/test-getopt.h (test_getopt): Enhance test.
5389         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5390         * doc/posix-functions/getopt.texi (getopt): Document it.
5391         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5392         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5393         Likewise.
5394
5395 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
5396
5397         getopt: handle W; without long options in getopt [BZ #12922]
5398         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
5399         but no long options are defined, just return 'W'.
5400
5401 2011-07-07  Bruno Haible  <bruno@clisp.org>
5402
5403         Avoid literal tabs.
5404         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
5405         variable containing a tab instead of a literal tab.
5406         Reported by Jim Meyering.
5407
5408 2011-07-07  Bruno Haible  <bruno@clisp.org>
5409
5410         Comments.
5411         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
5412
5413 2011-07-06  Bruno Haible  <bruno@clisp.org>
5414
5415         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5416         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5417         <winsock2.h>.
5418         (rpl_fd_isset, FD_ISSET): New definitions, copied from
5419         lib/sys_socket.in.h.
5420         (close, gethostname): Hide declarations from <winsock2.h>.
5421         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5422         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
5423         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
5424         (select): Don't override if gnulib's <sys/select.h> was already
5425         included.
5426         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5427         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5428         setsockopt, shutdown, select): Tweak indentation.
5429
5430 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5431
5432         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
5433         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
5434         in an application that does not use the sys_select module.
5435
5436 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
5437
5438         poll: do not return 0 on timeout=-1
5439         * lib/poll.c: Loop with yield if no events occured
5440
5441 2011-07-06  Eric Blake  <eblake@redhat.com>
5442
5443         pthread_sigmask: always replace when not using pthread
5444         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
5445         replacement when using some threading other than pthread.  Fix
5446         logic bug.
5447
5448 2011-07-06  Bruno Haible  <bruno@clisp.org>
5449
5450         Comments.
5451         * m4/printf.m4: Update comments about mingw.
5452
5453 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5454
5455         sys_select: define sigset_t more portably
5456         * lib/sys_select.in.h: Always include <sys/types.h>, since
5457         we now need sigset_t and mingw defines it there.
5458         Include <signal.h> before split inclusion guard, to avoid
5459         mishaps on Solaris, whose <signal.h> eventually includes us.
5460         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
5461         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
5462         which come from ...
5463         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
5464         gl_CHECK_TYPE_SIGSET_T.
5465         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
5466         does the real work.
5467         * modules/sys_select (Depends-on): Add 'signal'.
5468
5469         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
5470         Suggested by Bruno Haible.
5471
5472         pselect: Use pthread_sigmask, not sigprocmask.
5473         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
5474         multithreaded apps better than sigprocmask does.
5475         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
5476         sigprocmask directly.
5477
5478 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5479
5480         * lib/pselect.c (pselect): Use plain name, without "rpl_".
5481         Don't #undef,  since we don't need any underlying pselect.
5482         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
5483         (Depends-on): Add select.
5484         (Link): Add $(LIBSOCKET).
5485         These changes suggested by Bruno Haible.
5486
5487         pselect: document better
5488         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5489         * doc/posix-functions/pselect.texi (pselect): Document new module.
5490
5491         pthread_sigmask: new module
5492         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5493         * doc/posix-functions/pthread_sigmask.texi: Document new module.
5494         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
5495         This is done only as a macro; I don't know how well that'll
5496         work for C++.  Move <sys/types.h> include before the include_next,
5497         to avoid mishap on Solaris.
5498         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
5499         * modules/signal (Makefile.am): Substitute the check's results.
5500         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
5501
5502         test-pselect: new module
5503         * modules/pselect-tests, tests/test-pselect.c: New files.
5504         * tests/test-select.c, tests/test-sys_select-c++.cc:
5505         If TEST_PSELECT is defined, test pselect instead of testing select.
5506
5507         * tests/test-sys_select.c (sigset_t): Test for it, too.
5508         Suggested by Bruno Haible.
5509
5510 2011-07-05  Eric Blake  <eblake@redhat.com>
5511
5512         snprintf: guarantee %1$d, for libintl
5513         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
5514         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5515         * doc/posix-functions/snprintf.texi (snprintf): Update.
5516         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5517         * tests/test-snprintf.c (main): Enhance test.
5518         * tests/test-vsnprintf.c (main): Likewise.
5519
5520 2011-07-05  Jim Meyering  <meyering@redhat.com>
5521
5522         maint: exempt stdio-read.c and stdio-write.c from the cppi check
5523         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
5524         per Bruno's request, to accommodate this idiom (no space after "#")
5525         even when the function is inside an #if block:
5526         char *
5527         gets (char *s)
5528         #undef gets
5529         {
5530           ...
5531         }
5532
5533 2011-07-04  Jim Meyering  <meyering@redhat.com>
5534
5535         maint: indent with spaces, not TABs, and add a rule to check this
5536         * tests/test-userspec.c: Indent with spaces, not TABs.
5537         * tests/test-argp.c: Likewise.
5538         * tests/test-c-stack2.sh: Likewise.
5539         * tests/test-parse-duration.sh: Likewise
5540         * m4/strtod.m4: Likewise.
5541         * m4/alloca.m4: Likewise.
5542         * m4/pselect.m4: Likewise.
5543         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
5544
5545 2011-07-03  Jim Meyering  <meyering@redhat.com>
5546
5547         maint.mk: correct omissions in prohibit_argmatch_without_use check
5548         This rule would mistakenly report that argmatch.h is included without
5549         use even when both the argmatch and invalid_arg macro were used.
5550         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
5551         of argmatch and invalid_arg.
5552
5553 2011-07-03  Bruno Haible  <bruno@clisp.org>
5554
5555         Comments about EINTR.
5556         * lib/safe-read.h: Explain the purpose of this module.
5557         * lib/safe-write.h: Likewise.
5558         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
5559         module.
5560         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
5561         module.
5562         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5563
5564 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5565
5566         xnanosleep: Rewrite to use new dtotimespec module.
5567         It has the conversion code that used to be in xnanosleep.
5568         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
5569         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
5570         (TIME_T_MAX): Remove.
5571         (xnanosleep): Rewrite in terms of dtotimespec.
5572         * modules/xnanosleep (Depends-on): Add dtotimespec.
5573         Remove intprops, stdbool.
5574
5575         timespec-add, timespec-sub: new modules
5576         * lib/timespec.h (timespec_add, timespec_sub): New decls.
5577         * lib/timespec-add.c, lib/timespec-sub.c:
5578         * modules/timespec-add, modules/timespec-sub: New files.
5579
5580         dtotimespec: new module
5581         * lib/timespec.h (dtotimespec): New decl.
5582         * lib/dtotimespec.c, modules/dtotimespec: New files.
5583
5584         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
5585
5586         pselect: new module
5587         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
5588         (pselect): New decls.
5589         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
5590         since the standard pselect decl uses 'restrict'.
5591         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
5592         HAVE_PSELECT, REPLACE_PSELECT.
5593         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
5594         HAVE_PSELECT, REPLACE_PSELECT.
5595         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
5596
5597         sys_select: don't depend on sys_socket
5598         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
5599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
5600         This fix works on GNU and GNU-like platforms, but has not been tested
5601         on native Windows.
5602         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
5603         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
5604         gl_HEADER_SYS_SOCKET.
5605         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
5606         gl_PREREQ_SYS_H_WINSOCK2.
5607
5608 2011-06-29  Eric Blake  <eblake@redhat.com>
5609
5610         pipe2: fix C89 compile problem
5611         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
5612         Reported by Bruno Haible.
5613
5614         pipe, pipe2: don't corrupt fd on error
5615         * lib/pipe.c (pipe): Leave fd unchanged on error.
5616         * lib/pipe2.c (pipe2): Likewise.
5617         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
5618         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5619
5620 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
5621
5622         mmap-anon: do not use regular expressions inadvertently
5623         * m4/mmap-anon.m4: Remove trailing period from strings sought
5624         in the output.
5625
5626 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
5627
5628         nanosleep: fix integer overflow problem
5629         * lib/nanosleep.c (my_usleep): Don't assume signed integer
5630         arithmetic wraps around on overflow.
5631
5632         nanosleep: simplify carrying
5633         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
5634         first call to the underyling nanosleep, not for the last one.
5635         This doesn't fix any bugs, but it simplifies the computation of
5636         the remaining delay.  Found while auditing integer overflow issues.
5637
5638         dup2: remove test for existence of fcntl
5639         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
5640         "#if HAVE_FCNTL", in the configure-time test program.
5641         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
5642         and therefore speeds up "configure" a bit.  Found while
5643         adding the dup2 module to Emacs.
5644
5645 2011-06-24  Eric Blake  <eblake@redhat.com>
5646
5647         maint.mk: enhance useless header checks
5648         * top/maint.mk (_sc_header_without_use): Check both include
5649         styles.
5650         (sc_prohibit_assert_without_use)
5651         (sc_prohibit_close_stream_without_use)
5652         (sc_prohibit_getopt_without_use)
5653         (sc_prohibit_quotearg_without_use)
5654         (sc_prohibit_quote_without_use)
5655         (sc_prohibit_long_options_without_use)
5656         (sc_prohibit_inttostr_without_use)
5657         (sc_prohibit_ignore_value_without_use)
5658         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
5659         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
5660         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
5661         (sc_prohibit_hash_pjw_without_use)
5662         (sc_prohibit_safe_read_without_use)
5663         (sc_prohibit_argmatch_without_use)
5664         (sc_prohibit_canonicalize_without_use)
5665         (sc_prohibit_root_dev_ino_without_use)
5666         (sc_prohibit_openat_without_use)
5667         (sc_prohibit_c_ctype_without_use)
5668         (sc_prohibit_signal_without_use)
5669         (sc_prohibit_stdio--_without_use)
5670         (sc_prohibit_stdio-safer_without_use)
5671         (sc_prohibit_strings_without_use)
5672         (sc_prohibit_intprops_without_use)
5673         (sc_prohibit_stddef_without_use)
5674         (sc_prohibit_xfreopen_without_use): Update clients.
5675
5676 2011-06-24  Jim Meyering  <meyering@redhat.com>
5677
5678         syntax-check: keep one maint.mk rule in sync with its header
5679         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
5680         of the bug Eric has just fixed, with today's commit 25e4c2ec.
5681         I prefer to avoid temporary files here, so use <(...), but that
5682         is not supported by /bin/sh, so...
5683         (SHELL): Define to /bin/bash.
5684
5685 2011-06-24  Eric Blake  <eblake@redhat.com>
5686
5687         maint.mk: update sc_prohibit_intprops_without_use
5688         * top/maint.mk (_intprops_names): Match recent changes.
5689
5690 2011-06-24  Bruno Haible  <bruno@clisp.org>
5691
5692         strerror-override: No-op tweak.
5693         * lib/strerror-override.h (strerror_override): Reorder conditions,
5694         for consistency with lib/strerror-override.c.
5695
5696 2011-06-23  Eric Blake  <eblake@redhat.com>
5697
5698         maint.mk: test further PATH_MAX issues
5699         * top/maint.mk (sc_prohibit_path_max_array): Rename...
5700         (sc_prohibit_path_max_allocation): ...and also test alloca.
5701         Suggested by Jim Meyering.
5702
5703 2011-06-22  Eric Blake  <eblake@redhat.com>
5704
5705         maint.mk: add syntax-check to avoid char[PATH_MAX]
5706         * top/maint.mk (sc_prohibit_path_max_array): New rule.
5707
5708         stat: be robust to PATH_MAX definition
5709         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
5710         * modules/stat (Depends-on): Add verify.
5711
5712         link: work around IRIX bug
5713         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
5714         * lib/link.c (rpl_link): Work around it.
5715         * tests/test-link.h (test_link): Enhance test.
5716         * doc/posix-functions/link.texi (link): Document the bug.
5717
5718         getopt: silence clang warning
5719         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
5720         dereference.
5721         Reported by Gustavo Martin Domato.
5722
5723 2011-06-22  Jim Meyering  <meyering@redhat.com>
5724
5725         bootstrap: do not insert a blank line into each .gitignore file
5726         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
5727
5728 2011-06-21  Eric Blake  <eblake@redhat.com>
5729
5730         perror: test for output mismatch
5731         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
5732         perror on IRIX.
5733
5734         strerror_r: fix OpenBSD behavior on out-of-range
5735         * lib/strerror_r.c (strerror_r): Always use maximal string.
5736         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5737
5738         strerror_r: fix OpenBSD behavior on 0
5739         * lib/strerror-override.c (strerror_override): Also override 0
5740         when needed.
5741         * lib/strerror-override.h (strerror_override): Likewise.
5742         * lib/strerror.c (strerror): Simplify, now that 0 override is done
5743         earlier.
5744         * lib/strerror_r.c (strerror_r): Likewise.
5745         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
5746         behavior...
5747         (gl_FUNC_STRERROR_0): ...into new macro.
5748         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
5749         is overridden.
5750         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
5751         * modules/strerror-override (Files): Add strerror.m4.
5752         (configure.ac): Also provide override for 0 when needed.
5753         * doc/posix-functions/strerror.texi (strerror): Document this.
5754         * doc/posix-functions/perror.texi (perror): Likewise.
5755
5756         perror: adjust array size
5757         * modules/perror (Depends-on): Add strerror-override.
5758         * lib/perror.c (perror): Use it to avoid magic number.
5759
5760         strerror-override: reduce size
5761         * lib/strerror-override.c (strerror_override): Use fewer lines.
5762
5763 2011-06-20  Bruno Haible  <bruno@clisp.org>
5764
5765         pathmax: Ensure correct value for PATH_MAX on HP-UX.
5766         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
5767
5768 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5769
5770         alloca: port to compilers that can optimize like GCC 4.6.0
5771         * lib/alloca.c (find_stack_direction): New signature, taken from
5772         Autoconf git.  This works with GCC 4.6.0.  This code should never
5773         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
5774         be used with other compilers that optimize as well as GCC 4.6.0 does.
5775         (alloca): Adjust to new signature.
5776         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
5777         New macro, which patches Autoconf in a similar way.
5778
5779         c-stack: stop worrying about stack direction
5780         * lib/c-stack.c (find_stack_direction): Remove.
5781         (segv_handler): Don't worry about stack direction growth, as it's
5782         too much of a pain to configure this correctly, given how compilers
5783         are optimizing-away our stack-growth detection code.  Instead, assume
5784         that any access to just before or just after the stack is OK.
5785         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
5786         Don't require AC_FUNC_ALLOCA; no longer needed.
5787
5788 2011-06-20  Eric Blake  <eblake@redhat.com>
5789
5790         test-stat: don't allocate PATH_MAX bytes
5791         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
5792         PATH_MAX-sized buffer.
5793         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
5794         * modules/stat-tests (Depends-on): Likewise.
5795         * tests/test-fstatat.c (includes): Drop pathmax.h.
5796         * tests/test-stat.c (includes): Likewise.
5797         Reported by Bruno Haible.
5798
5799 2011-06-20  Bruno Haible  <bruno@clisp.org>
5800
5801         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
5802         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
5803         * lib/float.c: New file.
5804         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
5805         REPLACE_FLOAT_LDBL.
5806         * modules/float (Files): Add lib/float.c.
5807         (configure.ac): Invoke AC_LIBOBJ.
5808         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
5809
5810 2011-06-20  Bruno Haible  <bruno@clisp.org>
5811
5812         Tests for module 'float'.
5813         * modules/float-tests: New file.
5814         * tests/test-float.c: New file.
5815
5816 2011-06-19  Bruno Haible  <bruno@clisp.org>
5817
5818         isinf: Coding style.
5819         * lib/isinf.c: Use GNU coding style.
5820
5821 2011-06-19  Bruno Haible  <bruno@clisp.org>
5822
5823         linkat test: Avoid test failure on AIX 7.1.
5824         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
5825         * tests/test-link.h (test_link): Likewise.
5826
5827 2011-06-19  Bruno Haible  <bruno@clisp.org>
5828
5829         pread test: Avoid test failure on OpenBSD 4.9.
5830         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
5831
5832 2011-06-19  Bruno Haible  <bruno@clisp.org>
5833
5834         sprintf-posix: Fix test failure on AIX 7.1.
5835         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
5836         * doc/posix-functions/dprintf.texi: Mention limited precision problem
5837         on AIX.
5838         * doc/posix-functions/fprintf.texi: Likewise.
5839         * doc/posix-functions/printf.texi: Likewise.
5840         * doc/posix-functions/snprintf.texi: Likewise.
5841         * doc/posix-functions/sprintf.texi: Likewise.
5842         * doc/posix-functions/vdprintf.texi: Likewise.
5843         * doc/posix-functions/vfprintf.texi: Likewise.
5844         * doc/posix-functions/vprintf.texi: Likewise.
5845         * doc/posix-functions/vsnprintf.texi: Likewise.
5846         * doc/posix-functions/vsprintf.texi: Likewise.
5847
5848 2011-06-19  Bruno Haible  <bruno@clisp.org>
5849
5850         roundl-ieee: Fix test failure on AIX 7.1.
5851         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
5852         * doc/posix-functions/roundl.texi: Mention problem with negative
5853         arguments.
5854
5855 2011-06-19  Bruno Haible  <bruno@clisp.org>
5856
5857         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5858         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
5859         * doc/posix-functions/round.texi: Mention problem with negative
5860         arguments.
5861         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
5862
5863 2011-06-19  Bruno Haible  <bruno@clisp.org>
5864
5865         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5866         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
5867         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
5868         * doc/posix-functions/roundf.texi: Mention problem with negative
5869         arguments.
5870         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
5871
5872 2011-06-19  Bruno Haible  <bruno@clisp.org>
5873
5874         ceilf-ieee: Work around bug on MacOS X 10.5.
5875         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
5876
5877         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
5878         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
5879         IEEE compliant, avoid compiler optimizations.
5880         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5881         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5882         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
5883         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5884         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5885         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5886         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5887         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5888         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5889         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5890
5891 2011-06-19  Bruno Haible  <bruno@clisp.org>
5892
5893         ceilf-ieee: Work around bug on AIX 7.1.
5894         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
5895         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
5896
5897 2011-06-19  Bruno Haible  <bruno@clisp.org>
5898
5899         ceil-ieee: Work around bug on AIX 7.1.
5900         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
5901         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
5902
5903 2011-06-18  Bruno Haible  <bruno@clisp.org>
5904
5905         fsync test: Avoid test failure on MacOS X and AIX.
5906         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
5907         EINVAL.
5908
5909 2011-06-18  Bruno Haible  <bruno@clisp.org>
5910
5911         openat, fdopendir tests: Fix link errors.
5912         * modules/openat-tests (Depends-on): Add progname.
5913         * modules/fdopendir-tests (Depends-on): Likewise.
5914         * tests/test-fchownat.c: Include progname.h.
5915         (main): Call set_program_name.
5916         * tests/test-fstatat.c: Include progname.h.
5917         (main): Call set_program_name.
5918         * tests/test-mkdirat.c: Include progname.h.
5919         (main): Call set_program_name.
5920         * tests/test-openat.c: Include progname.h.
5921         (main): Call set_program_name.
5922         * tests/test-unlinkat.c: Include progname.h.
5923         (main): Call set_program_name.
5924         * tests/test-fdopendir.c: Include progname.h.
5925         (main): Call set_program_name.
5926
5927 2011-06-18  Bruno Haible  <bruno@clisp.org>
5928
5929         Doc update.
5930         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
5931         HP-UX.
5932         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
5933
5934 2011-06-18  Bruno Haible  <bruno@clisp.org>
5935
5936         getcwd tests: Avoid compilation error on HP-UX 11.31.
5937         * modules/getcwd-tests (Depends-on): Add pathmax.
5938         * tests/test-getcwd.c: Include pathmax.h.
5939
5940 2011-06-18  Bruno Haible  <bruno@clisp.org>
5941
5942         isfinite, isinf: Fix link error on AIX 6 and 7.
5943         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
5944         needed, also test the macro with a 'float' argument.
5945         * m4/isinf.m4 (gl_ISINF): Likewise.
5946
5947 2011-06-18  Bruno Haible  <bruno@clisp.org>
5948
5949         getloadavg: Don't clobber LIBS. Regression from previous commit.
5950         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
5951         AC_CHECK_LIB from here...
5952         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
5953         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
5954         gl_func_getloadavg_done.
5955         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5956
5957 2011-06-18  Bruno Haible  <bruno@clisp.org>
5958
5959         clean-temp: Improve documentation.
5960         * lib/clean-temp.h: Explain better how to use this module.
5961         Reported by John Darrington <john@darrington.wattle.id.au>.
5962
5963 2011-06-17  Bruno Haible  <bruno@clisp.org>
5964
5965         pread, pwrite: Avoid cc warning on AIX.
5966         * lib/unistd.in.h (pread): Undefine before defining as a macro.
5967         (pwrite): Likewise.
5968
5969 2011-06-17  Bruno Haible  <bruno@clisp.org>
5970
5971         spawn-pipe tests: Fix link error.
5972         * tests/test-spawn-pipe-child.c: Undefine fprintf.
5973         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5974
5975 2011-06-17  Bruno Haible  <bruno@clisp.org>
5976
5977         Tests: Remove unnecessary dependency.
5978         * modules/canonicalize-tests (Depends-on): Remove progname.
5979         * modules/chown-tests (Depends-on): Likewise.
5980         * modules/dirname-tests (Depends-on): Likewise.
5981         * modules/fdopendir-tests (Depends-on): Likewise.
5982         * modules/fdutimensat-tests (Depends-on): Likewise.
5983         * modules/hash-tests (Depends-on): Likewise.
5984         * modules/lchown-tests (Depends-on): Likewise.
5985         * modules/linkat-tests (Depends-on): Likewise.
5986         * modules/renameat-tests (Depends-on): Likewise.
5987         * modules/spawn-pipe-tests (Depends-on): Likewise.
5988         * modules/utimensat-tests (Depends-on): Likewise.
5989
5990 2011-06-17  Bruno Haible  <bruno@clisp.org>
5991
5992         spawn-pipe tests: Fix link error.
5993         * tests/test-spawn-pipe-child.c: Undefine fflush.
5994
5995 2011-06-17  Bruno Haible  <bruno@clisp.org>
5996
5997         Fix tests link errors.
5998         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
5999         * modules/chown-tests (Makefile.am): Don't link test-chown with
6000         LIBINTL.
6001         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6002         LIBINTL.
6003         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6004         LIBINTL.
6005         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6006         LIBINTL.
6007
6008 2011-06-16  Bruno Haible  <bruno@clisp.org>
6009
6010         crypto/gc-sha1: Fix recent regression.
6011         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6012         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6013
6014         crypto/gc-md5: Fix recent regression.
6015         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6016
6017         crypto/gc-md4: Fix recent regression.
6018         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6019         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6020
6021         crypto/gc-arctwo: Fix recent regression.
6022         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6023         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6024
6025         crypto/gc-rijndael: Fix recent regression.
6026         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6027         (configure.ac): Invoke AC_LIBOBJ here.
6028         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6029         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6030
6031         crypto/gc-hmac-sha1: Fix recent regression.
6032         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6033         (configure.ac): Invoke AC_LIBOBJ here.
6034         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6035         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6036
6037         crypto/gc-hmac-md5: Fix recent regression.
6038         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6039         (configure.ac): Invoke AC_LIBOBJ here.
6040         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6041         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6042
6043         crypto/gc-des: Fix recent regression.
6044         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6045         (configure.ac): Invoke AC_LIBOBJ here.
6046         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6047         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6048
6049         crypto/gc-arcfour: Fix recent regression.
6050         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6051         (configure.ac): Invoke AC_LIBOBJ here.
6052         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6053         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6054
6055 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6056
6057         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6058         After the 2011-05-21 change, this macro requires
6059         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6060         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6061
6062 2011-06-16  Bruno Haible  <bruno@clisp.org>
6063
6064         fprintftime: Move AC_LIBOBJ invocations to module description.
6065         * m4/fprintftime.m4: Remove file.
6066         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6067         (configure.ac): Remove gl_FPRINTFTIME call.
6068         (Makefile.am): Augment lib_SOURCES.
6069         Reported by Jim Meyering.
6070
6071 2011-06-16  Bruno Haible  <bruno@clisp.org>
6072
6073         tmpfile-safer: Finish 2011-05-23 commit.
6074         * m4/stdio-safer.m4: Really remove file.
6075         Reported by Jim Meyering.
6076
6077 2011-06-16  Bruno Haible  <bruno@clisp.org>
6078
6079         syntax-check: Fix typo.
6080         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6081         printf-posix.m4.
6082         Reported by Jim Meyering.
6083
6084 2011-06-13  Jim Meyering  <meyering@redhat.com>
6085
6086         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6087         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6088
6089 2011-05-23  Bruno Haible  <bruno@clisp.org>
6090
6091         yesno: Move AC_LIBOBJ invocations to module description.
6092         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6093         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6094
6095 2011-05-23  Bruno Haible  <bruno@clisp.org>
6096
6097         xstrtol: Move AC_LIBOBJ invocations to module description.
6098         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6099         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6100
6101 2011-05-23  Bruno Haible  <bruno@clisp.org>
6102
6103         xstrtold: Move AC_LIBOBJ invocations to module description.
6104         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6105         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6106
6107 2011-05-23  Bruno Haible  <bruno@clisp.org>
6108
6109         xstrtod: Move AC_LIBOBJ invocations to module description.
6110         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6111         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6112
6113 2011-05-23  Bruno Haible  <bruno@clisp.org>
6114
6115         xnanosleep: Move AC_LIBOBJ invocations to module description.
6116         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6117         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6118
6119 2011-05-23  Bruno Haible  <bruno@clisp.org>
6120
6121         xgetcwd: Move AC_LIBOBJ invocations to module description.
6122         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6123         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6124
6125 2011-05-23  Bruno Haible  <bruno@clisp.org>
6126
6127         xalloc: Move AC_LIBOBJ invocations to module description.
6128         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6129         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6130
6131 2011-05-23  Bruno Haible  <bruno@clisp.org>
6132
6133         write-any-file: Move AC_LIBOBJ invocations to module description.
6134         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6135         invocation.
6136         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6137
6138 2011-05-23  Bruno Haible  <bruno@clisp.org>
6139
6140         utimens: Move AC_LIBOBJ invocations to module description.
6141         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6142         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6143
6144 2011-05-23  Bruno Haible  <bruno@clisp.org>
6145
6146         utimecmp: Move AC_LIBOBJ invocations to module description.
6147         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6148         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6149
6150 2011-05-23  Bruno Haible  <bruno@clisp.org>
6151
6152         userspec: Move AC_LIBOBJ invocations to module description.
6153         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6154         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6155
6156 2011-05-23  Bruno Haible  <bruno@clisp.org>
6157
6158         unlinkdir: Move AC_LIBOBJ invocations to module description.
6159         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6160         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6161
6162 2011-05-23  Bruno Haible  <bruno@clisp.org>
6163
6164         unistd-safer: Move AC_LIBOBJ invocations to module description.
6165         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6166         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6167
6168 2011-05-23  Bruno Haible  <bruno@clisp.org>
6169
6170         tempname: Move AC_LIBOBJ invocations to module description.
6171         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6172         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6173
6174 2011-05-23  Bruno Haible  <bruno@clisp.org>
6175
6176         strftime: Move AC_LIBOBJ invocations to module description.
6177         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6178         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6179
6180 2011-05-23  Bruno Haible  <bruno@clisp.org>
6181
6182         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6183         * m4/stdlib-safer.m4: Remove file.
6184         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6185         (configure.ac): Remove gl_STDLIB_SAFER call.
6186         (Makefile.am): Augment lib_SOURCES.
6187
6188 2011-05-23  Bruno Haible  <bruno@clisp.org>
6189
6190         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6191         * m4/stdio-safer.m4: Remove file.
6192         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6193         (configure.ac): Remove gl_TMPFILE_SAFER call.
6194         (Makefile.am): Augment lib_SOURCES.
6195
6196 2011-05-23  Bruno Haible  <bruno@clisp.org>
6197
6198         popen-safer: Move AC_LIBOBJ invocations to module description.
6199         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6200         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6201         (configure.ac): Remove gl_POPEN_SAFER call.
6202         (Makefile.am): Augment lib_SOURCES.
6203
6204 2011-05-23  Bruno Haible  <bruno@clisp.org>
6205
6206         freopen-safer: Move AC_LIBOBJ invocations to module description.
6207         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6208         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6209         (configure.ac): Remove gl_FREOPEN_SAFER call.
6210         (Makefile.am): Augment lib_SOURCES.
6211
6212 2011-05-23  Bruno Haible  <bruno@clisp.org>
6213
6214         fopen-safer: Move AC_LIBOBJ invocations to module description.
6215         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6216         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6217         (configure.ac): Remove gl_FOPEN_SAFER call.
6218         (Makefile.am): Augment lib_SOURCES.
6219
6220 2011-05-23  Bruno Haible  <bruno@clisp.org>
6221
6222         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6223         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6224         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6225
6226 2011-05-23  Bruno Haible  <bruno@clisp.org>
6227
6228         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6229         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6230         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6231
6232 2011-05-23  Bruno Haible  <bruno@clisp.org>
6233
6234         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6235         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6236         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6237
6238 2011-05-23  Bruno Haible  <bruno@clisp.org>
6239
6240         settime: Move AC_LIBOBJ invocations to module description.
6241         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6242         * modules/settime (Makefile.am): Augment lib_SOURCES.
6243
6244 2011-05-23  Bruno Haible  <bruno@clisp.org>
6245
6246         savedir: Move AC_LIBOBJ invocations to module description.
6247         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
6248         * modules/savedir (Makefile.am): Augment lib_SOURCES.
6249
6250 2011-05-23  Bruno Haible  <bruno@clisp.org>
6251
6252         save-cwd: Move AC_LIBOBJ invocations to module description.
6253         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
6254         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6255
6256 2011-05-23  Bruno Haible  <bruno@clisp.org>
6257
6258         same: Move AC_LIBOBJ invocations to module description.
6259         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
6260         * modules/same (Makefile.am): Augment lib_SOURCES.
6261
6262 2011-05-23  Bruno Haible  <bruno@clisp.org>
6263
6264         safe-write: Move AC_LIBOBJ invocations to module description.
6265         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
6266         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
6267         instead of gl_SAFE_WRITE.
6268         (Makefile.am): Augment lib_SOURCES.
6269
6270 2011-05-23  Bruno Haible  <bruno@clisp.org>
6271
6272         safe-read: Move AC_LIBOBJ invocations to module description.
6273         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
6274         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
6275         of gl_SAFE_READ.
6276         (Makefile.am): Augment lib_SOURCES.
6277
6278 2011-05-23  Bruno Haible  <bruno@clisp.org>
6279
6280         safe-alloc: Move AC_LIBOBJ invocations to module description.
6281         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
6282         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
6283
6284 2011-05-23  Bruno Haible  <bruno@clisp.org>
6285
6286         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
6287         * m4/rijndael.m4: Remove file.
6288         * modules/crypto/rijndael (Files): Remove it.
6289         (configure.ac): Remove gl_RIJNDAEL call.
6290         (Makefile.am): Augment lib_SOURCES.
6291
6292 2011-05-23  Bruno Haible  <bruno@clisp.org>
6293
6294         readtokens: Move AC_LIBOBJ invocations to module description.
6295         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
6296         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
6297
6298 2011-05-23  Bruno Haible  <bruno@clisp.org>
6299
6300         read-file: Move AC_LIBOBJ invocations to module description.
6301         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
6302         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
6303         of gl_FUNC_READ_FILE.
6304         (Makefile.am): Augment lib_SOURCES.
6305
6306 2011-05-23  Bruno Haible  <bruno@clisp.org>
6307
6308         quotearg: Move AC_LIBOBJ invocations to module description.
6309         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
6310         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
6311
6312 2011-05-23  Bruno Haible  <bruno@clisp.org>
6313
6314         quote: Move AC_LIBOBJ invocations to module description.
6315         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
6316         * modules/quote (Makefile.am): Augment lib_SOURCES.
6317
6318 2011-05-23  Bruno Haible  <bruno@clisp.org>
6319
6320         posixver: Move AC_LIBOBJ invocations to module description.
6321         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
6322         * modules/posixver (Makefile.am): Augment lib_SOURCES.
6323
6324 2011-05-23  Bruno Haible  <bruno@clisp.org>
6325
6326         posixtm: Move AC_LIBOBJ invocations to module description.
6327         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
6328         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
6329
6330 2011-05-23  Bruno Haible  <bruno@clisp.org>
6331
6332         physmem: Move AC_LIBOBJ invocations to module description.
6333         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
6334         * modules/physmem (Makefile.am): Augment lib_SOURCES.
6335
6336 2011-05-23  Bruno Haible  <bruno@clisp.org>
6337
6338         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
6339         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
6340         invocation.
6341         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
6342
6343 2011-05-23  Bruno Haible  <bruno@clisp.org>
6344
6345         mpsort: Move AC_LIBOBJ invocations to module description.
6346         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6347         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6348
6349 2011-05-23  Bruno Haible  <bruno@clisp.org>
6350
6351         modechange: Move AC_LIBOBJ invocations to module description.
6352         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6353         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6354
6355 2011-05-23  Bruno Haible  <bruno@clisp.org>
6356
6357         mkdir-p: Move AC_LIBOBJ invocations to module description.
6358         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6359         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6360
6361 2011-05-23  Bruno Haible  <bruno@clisp.org>
6362
6363         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6364         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6365         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6366
6367 2011-05-23  Bruno Haible  <bruno@clisp.org>
6368
6369         mgetgroups: Move AC_LIBOBJ invocations to module description.
6370         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6371         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6372
6373 2011-05-23  Bruno Haible  <bruno@clisp.org>
6374
6375         memxor: Move AC_LIBOBJ invocations to module description.
6376         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
6377         * modules/memxor (Makefile.am): Augment lib_SOURCES.
6378
6379 2011-05-23  Bruno Haible  <bruno@clisp.org>
6380
6381         memcoll: Move AC_LIBOBJ invocations to module description.
6382         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
6383         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
6384
6385 2011-05-23  Bruno Haible  <bruno@clisp.org>
6386
6387         memcasecmp: Move AC_LIBOBJ invocations to module description.
6388         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
6389         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
6390
6391 2011-05-23  Bruno Haible  <bruno@clisp.org>
6392
6393         crypto/md5: Move AC_LIBOBJ invocations to module description.
6394         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
6395         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
6396
6397 2011-05-23  Bruno Haible  <bruno@clisp.org>
6398
6399         crypto/md4: Move AC_LIBOBJ invocations to module description.
6400         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
6401         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
6402
6403 2011-05-23  Bruno Haible  <bruno@clisp.org>
6404
6405         crypto/md2: Move AC_LIBOBJ invocations to module description.
6406         * m4/md2.m4: Remove file.
6407         * modules/crypto/md2 (Files): Remove it.
6408         (configure.ac): Remove gl_MD2 call.
6409         (Makefile.am): Augment lib_SOURCES.
6410
6411 2011-05-23  Bruno Haible  <bruno@clisp.org>
6412
6413         long-options: Move AC_LIBOBJ invocations to module description.
6414         * m4/long-options.m4: Remove file.
6415         * modules/long-options (Files): Remove it.
6416         (configure.ac): Remove gl_LONG_OPTIONS call.
6417         (Makefile.am): Augment lib_SOURCES.
6418
6419 2011-05-23  Bruno Haible  <bruno@clisp.org>
6420
6421         i-ring: Move AC_LIBOBJ invocations to module description.
6422         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
6423         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
6424
6425 2011-05-23  Bruno Haible  <bruno@clisp.org>
6426
6427         idcache: Move AC_LIBOBJ invocations to module description.
6428         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
6429         * modules/idcache (Makefile.am): Augment lib_SOURCES.
6430
6431 2011-05-23  Bruno Haible  <bruno@clisp.org>
6432
6433         human: Move AC_LIBOBJ invocations to module description.
6434         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
6435         * modules/human (Makefile.am): Augment lib_SOURCES.
6436
6437 2011-05-23  Bruno Haible  <bruno@clisp.org>
6438
6439         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
6440         * m4/hmac-sha1.m4: Remove file.
6441         * modules/crypto/hmac-sha1 (Files): Remove it.
6442         (configure.ac): Remove gl_HMAC_SHA1 call.
6443         (Makefile.am): Augment lib_SOURCES.
6444
6445 2011-05-23  Bruno Haible  <bruno@clisp.org>
6446
6447         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
6448         * m4/hmac-md5.m4: Remove file.
6449         * modules/crypto/hmac-md5 (Files): Remove it.
6450         (configure.ac): Remove gl_HMAC_MD5 call.
6451         (Makefile.am): Augment lib_SOURCES.
6452
6453 2011-05-23  Bruno Haible  <bruno@clisp.org>
6454
6455         hash: Move AC_LIBOBJ invocations to module description.
6456         * m4/hash.m4: Remove file.
6457         * modules/hash (Files): Remove it.
6458         (configure.ac): Remove gl_HASH call.
6459         (Makefile.am): Augment lib_SOURCES.
6460
6461 2011-05-23  Bruno Haible  <bruno@clisp.org>
6462
6463         hard-locale: Move AC_LIBOBJ invocations to module description.
6464         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
6465         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
6466
6467 2011-05-23  Bruno Haible  <bruno@clisp.org>
6468
6469         getugroups: Move AC_LIBOBJ invocations to module description.
6470         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
6471         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
6472
6473 2011-05-23  Bruno Haible  <bruno@clisp.org>
6474
6475         gettime: Move AC_LIBOBJ invocations to module description.
6476         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
6477         * modules/gettime (Makefile.am): Augment lib_SOURCES.
6478
6479 2011-05-23  Bruno Haible  <bruno@clisp.org>
6480
6481         getndelim2: Move AC_LIBOBJ invocations to module description.
6482         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
6483         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
6484
6485 2011-05-23  Bruno Haible  <bruno@clisp.org>
6486
6487         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
6488         * m4/gc-pbkdf2-sha1.m4: Remove file.
6489         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
6490         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
6491         (Makefile.am): Augment lib_SOURCES.
6492
6493 2011-05-23  Bruno Haible  <bruno@clisp.org>
6494
6495         fts: Move AC_LIBOBJ invocations to module description.
6496         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
6497         * modules/fts (configure.ac): ... to here.
6498
6499 2011-05-23  Bruno Haible  <bruno@clisp.org>
6500
6501         file-type: Move AC_LIBOBJ invocations to module description.
6502         * m4/file-type.m4: Remove file.
6503         * modules/file-type (Files): Remove it.
6504         (configure.ac): Remove gl_FILE_TYPE call.
6505         (Makefile.am): Augment lib_SOURCES.
6506
6507 2011-05-23  Bruno Haible  <bruno@clisp.org>
6508
6509         filenamecat*: Respect rules for use of AC_LIBOBJ.
6510         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
6511         Remove AC_LIBOBJ invocation.
6512         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
6513         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
6514
6515 2011-05-23  Bruno Haible  <bruno@clisp.org>
6516
6517         filemode: Move AC_LIBOBJ invocations to module description.
6518         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
6519         * modules/filemode (Makefile.am): Augment lib_SOURCES.
6520
6521 2011-05-23  Bruno Haible  <bruno@clisp.org>
6522
6523         openat-safer: Move AC_LIBOBJ invocations to module description.
6524         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
6525         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
6526
6527 2011-05-23  Bruno Haible  <bruno@clisp.org>
6528
6529         fcntl-safer: Move AC_LIBOBJ invocations to module description.
6530         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
6531         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
6532
6533 2011-05-23  Bruno Haible  <bruno@clisp.org>
6534
6535         exclude: Move AC_LIBOBJ invocations to module description.
6536         * m4/exclude.m4: Remove file.
6537         * modules/exclude (Files): Remove it.
6538         (configure.ac): Remove gl_EXCLUDE call.
6539         (Makefile.am): Augment lib_SOURCES.
6540
6541 2011-05-23  Bruno Haible  <bruno@clisp.org>
6542
6543         dirname*: Respect rules for use of AC_LIBOBJ.
6544         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
6545         invocations.
6546         * modules/dirname (Makefile.am): Augment lib_SOURCES.
6547         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
6548
6549 2011-05-23  Bruno Haible  <bruno@clisp.org>
6550
6551         dirent-safer: Move AC_LIBOBJ invocations to module description.
6552         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
6553         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
6554
6555 2011-05-23  Bruno Haible  <bruno@clisp.org>
6556
6557         crypto/des: Move AC_LIBOBJ invocations to module description.
6558         * m4/des.m4: Remove file.
6559         * modules/crypto/des (Files): Remove it.
6560         (configure.ac): Remove gl_DES call.
6561         (Makefile.am): Augment lib_SOURCES.
6562
6563 2011-05-23  Bruno Haible  <bruno@clisp.org>
6564
6565         cycle-check: Move AC_LIBOBJ invocations to module description.
6566         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
6567         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
6568
6569 2011-05-23  Bruno Haible  <bruno@clisp.org>
6570
6571         c-strtold: Move AC_LIBOBJ invocations to module description.
6572         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
6573         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
6574
6575 2011-05-23  Bruno Haible  <bruno@clisp.org>
6576
6577         c-strtod: Move AC_LIBOBJ invocations to module description.
6578         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
6579         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
6580
6581 2011-05-23  Bruno Haible  <bruno@clisp.org>
6582
6583         crc: Move AC_LIBOBJ invocations to module description.
6584         * m4/crc.m4: Remove file.
6585         * modules/crc (Files): Remove it.
6586         (configure.ac): Remove gl_CRC call.
6587         (Makefile.am): Augment lib_SOURCES.
6588
6589 2011-05-23  Bruno Haible  <bruno@clisp.org>
6590
6591         close-stream: Move AC_LIBOBJ invocations to module description.
6592         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
6593         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
6594
6595 2011-05-23  Bruno Haible  <bruno@clisp.org>
6596
6597         closeout: Move AC_LIBOBJ invocations to module description.
6598         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
6599         * modules/closeout (Makefile.am): Augment lib_SOURCES.
6600
6601 2011-05-23  Bruno Haible  <bruno@clisp.org>
6602
6603         closein: Move AC_LIBOBJ invocations to module description.
6604         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
6605         * modules/closein (Makefile.am): Augment lib_SOURCES.
6606
6607 2011-05-23  Bruno Haible  <bruno@clisp.org>
6608
6609         cloexec: Move AC_LIBOBJ invocations to module description.
6610         * m4/cloexec.m4: Remove file.
6611         * modules/cloexec (Files): Remove it.
6612         (configure.ac): Remove gl_CLOEXEC call.
6613         (Makefile.am): Augment lib_SOURCES.
6614
6615 2011-05-23  Bruno Haible  <bruno@clisp.org>
6616
6617         check-version: Move AC_LIBOBJ invocations to module description.
6618         * m4/check-version.m4: Remove file.
6619         * modules/check-version (Files): Remove it.
6620         (configure.ac): Remove gl_CHECK_VERSION call.
6621         (Makefile.am): Augment lib_SOURCES.
6622
6623 2011-05-23  Bruno Haible  <bruno@clisp.org>
6624
6625         chdir-safer: Move AC_LIBOBJ invocations to module description.
6626         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
6627         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
6628
6629 2011-05-23  Bruno Haible  <bruno@clisp.org>
6630
6631         canonicalize: Move AC_LIBOBJ invocations to module description.
6632         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
6633         AC_LIBOBJ invocation.
6634         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
6635
6636 2011-05-23  Bruno Haible  <bruno@clisp.org>
6637
6638         canon-host: Move AC_LIBOBJ invocations to module description.
6639         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
6640         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
6641         instead of gl_CANON_HOST.
6642         (Makefile.am): Augment lib_SOURCES.
6643
6644 2011-05-23  Bruno Haible  <bruno@clisp.org>
6645
6646         backupfile: Move AC_LIBOBJ invocations to module description.
6647         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
6648         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
6649
6650 2011-05-23  Bruno Haible  <bruno@clisp.org>
6651
6652         argmatch: Move AC_LIBOBJ invocations to module description.
6653         * m4/argmatch.m4: Remove file.
6654         * modules/argmatch (Files): Remove it.
6655         (configure.ac): Remove gl_ARGMATCH call.
6656         (Makefile.am): Augment lib_SOURCES.
6657
6658 2011-05-23  Bruno Haible  <bruno@clisp.org>
6659
6660         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
6661         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
6662         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
6663
6664 2011-05-23  Bruno Haible  <bruno@clisp.org>
6665
6666         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
6667         * m4/arcfour.m4: Remove file.
6668         * modules/crypto/arcfour (Files): Remove it.
6669         (configure.ac): Remove gl_ARCFOUR call.
6670         (Makefile.am): Augment lib_SOURCES.
6671
6672 2011-05-22  Bruno Haible  <bruno@clisp.org>
6673
6674         write: Move AC_LIBOBJ invocations to module description.
6675         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
6676         * modules/write (configure.ac): ... to here.
6677
6678 2011-05-22  Bruno Haible  <bruno@clisp.org>
6679
6680         wmemset: Move AC_LIBOBJ invocations to module description.
6681         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
6682         here...
6683         * modules/wmemset (configure.ac): ... to here.
6684
6685 2011-05-22  Bruno Haible  <bruno@clisp.org>
6686
6687         wmemmove: Move AC_LIBOBJ invocations to module description.
6688         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
6689         here...
6690         * modules/wmemmove (configure.ac): ... to here.
6691
6692 2011-05-22  Bruno Haible  <bruno@clisp.org>
6693
6694         wmemcpy: Move AC_LIBOBJ invocations to module description.
6695         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
6696         here...
6697         * modules/wmemcpy (configure.ac): ... to here.
6698
6699 2011-05-22  Bruno Haible  <bruno@clisp.org>
6700
6701         wmemcmp: Move AC_LIBOBJ invocations to module description.
6702         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
6703         here...
6704         * modules/wmemcmp (configure.ac): ... to here.
6705
6706 2011-05-22  Bruno Haible  <bruno@clisp.org>
6707
6708         wmemchr: Move AC_LIBOBJ invocations to module description.
6709         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
6710         here...
6711         * modules/wmemchr (configure.ac): ... to here.
6712
6713 2011-05-22  Bruno Haible  <bruno@clisp.org>
6714
6715         wcswidth: Move AC_LIBOBJ invocations to module description.
6716         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
6717         here...
6718         * modules/wcswidth (configure.ac): ... to here.
6719
6720 2011-05-22  Bruno Haible  <bruno@clisp.org>
6721
6722         wcwidth: Respect rules for use of AC_LIBOBJ.
6723         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
6724         invocation from here...
6725         * modules/wcwidth (configure.ac): ... to here.
6726         (Depends-on): Update conditions.
6727
6728 2011-05-22  Bruno Haible  <bruno@clisp.org>
6729
6730         wctype: Move AC_LIBOBJ invocations to module description.
6731         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
6732         invocation from here...
6733         * modules/wctype (configure.ac): ... to here.
6734         (Depends-on): Update conditions.
6735
6736 2011-05-22  Bruno Haible  <bruno@clisp.org>
6737
6738         wctrans: Move AC_LIBOBJ invocations to module description.
6739         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
6740         invocation from here...
6741         * modules/wctrans (configure.ac): ... to here.
6742
6743 2011-05-22  Bruno Haible  <bruno@clisp.org>
6744
6745         wctomb: Move AC_LIBOBJ invocations to module description.
6746         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
6747         invocations from here...
6748         * modules/wctomb (configure.ac): ... to here.
6749
6750 2011-05-22  Bruno Haible  <bruno@clisp.org>
6751
6752         wctob: Move AC_LIBOBJ invocations to module description.
6753         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
6754         gl_PREREQ_WCTOB invocations from here...
6755         * modules/wctob (configure.ac): ... to here.
6756         (Depends-on): Update conditions.
6757
6758 2011-05-22  Bruno Haible  <bruno@clisp.org>
6759
6760         wcsxfrm: Move AC_LIBOBJ invocations to module description.
6761         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
6762         here...
6763         * modules/wcsxfrm (configure.ac): ... to here.
6764
6765 2011-05-22  Bruno Haible  <bruno@clisp.org>
6766
6767         wcstok: Move AC_LIBOBJ invocations to module description.
6768         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
6769         * modules/wcstok (configure.ac): ... to here.
6770
6771 2011-05-22  Bruno Haible  <bruno@clisp.org>
6772
6773         wcsstr: Move AC_LIBOBJ invocations to module description.
6774         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
6775         * modules/wcsstr (configure.ac): ... to here.
6776
6777 2011-05-22  Bruno Haible  <bruno@clisp.org>
6778
6779         wcsspn: Move AC_LIBOBJ invocations to module description.
6780         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
6781         * modules/wcsspn (configure.ac): ... to here.
6782
6783 2011-05-22  Bruno Haible  <bruno@clisp.org>
6784
6785         wcsrtombs: Move AC_LIBOBJ invocations to module description.
6786         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
6787         gl_PREREQ_WCSRTOMBS invocations from here...
6788         * modules/wcsrtombs (configure.ac): ... to here.
6789
6790 2011-05-22  Bruno Haible  <bruno@clisp.org>
6791
6792         wcsrchr: Move AC_LIBOBJ invocations to module description.
6793         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
6794         here...
6795         * modules/wcsrchr (configure.ac): ... to here.
6796
6797 2011-05-22  Bruno Haible  <bruno@clisp.org>
6798
6799         wcspbrk: Move AC_LIBOBJ invocations to module description.
6800         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
6801         here...
6802         * modules/wcspbrk (configure.ac): ... to here.
6803
6804 2011-05-22  Bruno Haible  <bruno@clisp.org>
6805
6806         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
6807         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
6808         gl_PREREQ_WCSNRTOMBS invocations from here...
6809         * modules/wcsnrtombs (configure.ac): ... to here.
6810
6811 2011-05-22  Bruno Haible  <bruno@clisp.org>
6812
6813         wcsnlen: Move AC_LIBOBJ invocations to module description.
6814         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
6815         here...
6816         * modules/wcsnlen (configure.ac): ... to here.
6817
6818 2011-05-22  Bruno Haible  <bruno@clisp.org>
6819
6820         wcsncpy: Move AC_LIBOBJ invocations to module description.
6821         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
6822         here...
6823         * modules/wcsncpy (configure.ac): ... to here.
6824
6825 2011-05-22  Bruno Haible  <bruno@clisp.org>
6826
6827         wcsncmp: Move AC_LIBOBJ invocations to module description.
6828         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
6829         here...
6830         * modules/wcsncmp (configure.ac): ... to here.
6831
6832 2011-05-22  Bruno Haible  <bruno@clisp.org>
6833
6834         wcsncat: Move AC_LIBOBJ invocations to module description.
6835         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
6836         here...
6837         * modules/wcsncat (configure.ac): ... to here.
6838
6839 2011-05-22  Bruno Haible  <bruno@clisp.org>
6840
6841         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
6842         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
6843         from here...
6844         * modules/wcsncasecmp (configure.ac): ... to here.
6845
6846 2011-05-22  Bruno Haible  <bruno@clisp.org>
6847
6848         wcslen: Move AC_LIBOBJ invocations to module description.
6849         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
6850         * modules/wcslen (configure.ac): ... to here.
6851
6852 2011-05-22  Bruno Haible  <bruno@clisp.org>
6853
6854         wcsdup: Move AC_LIBOBJ invocations to module description.
6855         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
6856         * modules/wcsdup (configure.ac): ... to here.
6857
6858 2011-05-22  Bruno Haible  <bruno@clisp.org>
6859
6860         wcscspn: Move AC_LIBOBJ invocations to module description.
6861         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
6862         here...
6863         * modules/wcscspn (configure.ac): ... to here.
6864
6865 2011-05-22  Bruno Haible  <bruno@clisp.org>
6866
6867         wcscpy: Move AC_LIBOBJ invocations to module description.
6868         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
6869         * modules/wcscpy (configure.ac): ... to here.
6870
6871 2011-05-22  Bruno Haible  <bruno@clisp.org>
6872
6873         wcscoll: Move AC_LIBOBJ invocations to module description.
6874         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
6875         here...
6876         * modules/wcscoll (configure.ac): ... to here.
6877
6878 2011-05-22  Bruno Haible  <bruno@clisp.org>
6879
6880         wcscmp: Move AC_LIBOBJ invocations to module description.
6881         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
6882         * modules/wcscmp (configure.ac): ... to here.
6883
6884 2011-05-22  Bruno Haible  <bruno@clisp.org>
6885
6886         wcschr: Move AC_LIBOBJ invocations to module description.
6887         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
6888         * modules/wcschr (configure.ac): ... to here.
6889
6890 2011-05-22  Bruno Haible  <bruno@clisp.org>
6891
6892         wcscat: Move AC_LIBOBJ invocations to module description.
6893         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
6894         * modules/wcscat (configure.ac): ... to here.
6895
6896 2011-05-22  Bruno Haible  <bruno@clisp.org>
6897
6898         wcscasecmp: Move AC_LIBOBJ invocations to module description.
6899         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
6900         here...
6901         * modules/wcscasecmp (configure.ac): ... to here.
6902
6903 2011-05-22  Bruno Haible  <bruno@clisp.org>
6904
6905         wcrtomb: Move AC_LIBOBJ invocations to module description.
6906         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
6907         invocations from here...
6908         * modules/wcrtomb (configure.ac): ... to here.
6909
6910 2011-05-22  Bruno Haible  <bruno@clisp.org>
6911
6912         wcpncpy: Move AC_LIBOBJ invocations to module description.
6913         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
6914         here...
6915         * modules/wcpncpy (configure.ac): ... to here.
6916
6917 2011-05-22  Bruno Haible  <bruno@clisp.org>
6918
6919         wcpcpy: Move AC_LIBOBJ invocations to module description.
6920         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
6921         * modules/wcpcpy (configure.ac): ... to here.
6922
6923 2011-05-22  Bruno Haible  <bruno@clisp.org>
6924
6925         waitpid: Move AC_LIBOBJ invocations to module description.
6926         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
6927         invocation from here...
6928         * modules/waitpid (configure.ac): ... to here.
6929
6930 2011-05-22  Bruno Haible  <bruno@clisp.org>
6931
6932         utimensat: Move AC_LIBOBJ invocations to module description.
6933         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
6934         here...
6935         * modules/utimensat (configure.ac): ... to here.
6936
6937 2011-05-22  Bruno Haible  <bruno@clisp.org>
6938
6939         usleep: Move AC_LIBOBJ invocations to module description.
6940         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
6941         here...
6942         * modules/usleep (configure.ac): ... to here.
6943
6944 2011-05-22  Bruno Haible  <bruno@clisp.org>
6945
6946         unlockpt: Move AC_LIBOBJ invocations to module description.
6947         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
6948         gl_PREREQ_UNLOCKPT invocations from here...
6949         * modules/unlockpt (configure.ac): ... to here.
6950
6951 2011-05-22  Bruno Haible  <bruno@clisp.org>
6952
6953         unlink: Respect rules for use of AC_LIBOBJ.
6954         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
6955         * modules/unlink (configure.ac): ... to here.
6956
6957 2011-05-22  Bruno Haible  <bruno@clisp.org>
6958
6959         uname: Move AC_LIBOBJ invocations to module description.
6960         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
6961         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
6962         here...
6963         * modules/uname (configure.ac): ... to here.
6964
6965 2011-05-22  Bruno Haible  <bruno@clisp.org>
6966
6967         ttyname_r: Move AC_LIBOBJ invocations to module description.
6968         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
6969         gl_PREREQ_TTYNAME_R invocations from here...
6970         * modules/ttyname_r (configure.ac): ... to here.
6971
6972 2011-05-22  Bruno Haible  <bruno@clisp.org>
6973
6974         tsearch: Move AC_LIBOBJ invocations to module description.
6975         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
6976         invocations from here...
6977         * modules/tsearch (configure.ac): ... to here.
6978
6979 2011-05-22  Bruno Haible  <bruno@clisp.org>
6980
6981         towctrans: Move AC_LIBOBJ invocations to module description.
6982         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
6983         AC_LIBOBJ invocation from here...
6984         * modules/towctrans (configure.ac): ... to here.
6985
6986 2011-05-22  Bruno Haible  <bruno@clisp.org>
6987
6988         tmpfile: Move AC_LIBOBJ invocations to module description.
6989         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
6990         invocations from here...
6991         * modules/tmpfile (configure.ac): ... to here.
6992
6993 2011-05-22  Bruno Haible  <bruno@clisp.org>
6994
6995         times: Move AC_LIBOBJ invocations to module description.
6996         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
6997         * modules/times (configure.ac): ... to here.
6998
6999 2011-05-22  Bruno Haible  <bruno@clisp.org>
7000
7001         time_r: Move AC_LIBOBJ invocations to module description.
7002         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7003         invocations from here...
7004         * modules/time_r (configure.ac): ... to here.
7005
7006 2011-05-22  Bruno Haible  <bruno@clisp.org>
7007
7008         timegm: Move AC_LIBOBJ invocations to module description.
7009         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7010         invocations from here...
7011         * modules/timegm (configure.ac): ... to here.
7012
7013 2011-05-22  Bruno Haible  <bruno@clisp.org>
7014
7015         tcgetsid: Move AC_LIBOBJ invocations to module description.
7016         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7017         and gl_PREREQ_TCGETSID invocations from here...
7018         * modules/tcgetsid (configure.ac): ... to here.
7019         (Depends-on): Update conditions.
7020
7021 2011-05-22  Bruno Haible  <bruno@clisp.org>
7022
7023         symlinkat: Move AC_LIBOBJ invocations to module description.
7024         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7025         here...
7026         * modules/symlinkat (configure.ac): ... to here.
7027
7028 2011-05-22  Bruno Haible  <bruno@clisp.org>
7029
7030         symlink: Move AC_LIBOBJ invocations to module description.
7031         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7032         here...
7033         * modules/symlink (configure.ac): ... to here.
7034
7035 2011-05-22  Bruno Haible  <bruno@clisp.org>
7036
7037         strverscmp: Move AC_LIBOBJ invocations to module description.
7038         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7039         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7040         from here...
7041         * modules/strverscmp (configure.ac): ... to here.
7042
7043 2011-05-22  Bruno Haible  <bruno@clisp.org>
7044
7045         strtok_r: Move AC_LIBOBJ invocations to module description.
7046         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7047         and gl_PREREQ_STRTOK_R invocations from here...
7048         * modules/strtok_r (configure.ac): ... to here.
7049         (Depends-on): Update conditions.
7050
7051 2011-05-22  Bruno Haible  <bruno@clisp.org>
7052
7053         strtoumax: Move AC_LIBOBJ invocations to module description.
7054         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7055         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7056         from here...
7057         * modules/strtoumax (configure.ac): ... to here.
7058
7059 2011-05-22  Bruno Haible  <bruno@clisp.org>
7060
7061         strtoimax: Move AC_LIBOBJ invocations to module description.
7062         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7063         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7064         from here...
7065         * modules/strtoimax (configure.ac): ... to here.
7066
7067 2011-05-22  Bruno Haible  <bruno@clisp.org>
7068
7069         strtoull: Move AC_LIBOBJ invocations to module description.
7070         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7071         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7072         from here...
7073         * modules/strtoull (configure.ac): ... to here.
7074
7075 2011-05-22  Bruno Haible  <bruno@clisp.org>
7076
7077         strtoll: Move AC_LIBOBJ invocations to module description.
7078         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7079         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7080         here...
7081         * modules/strtoll (configure.ac): ... to here.
7082
7083 2011-05-22  Bruno Haible  <bruno@clisp.org>
7084
7085         strtoul: Move AC_LIBOBJ invocations to module description.
7086         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7087         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7088         * modules/strtoul (configure.ac): ... to here.
7089
7090 2011-05-22  Bruno Haible  <bruno@clisp.org>
7091
7092         strtol: Move AC_LIBOBJ invocations to module description.
7093         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7094         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7095         * modules/strtol (configure.ac): ... to here.
7096
7097 2011-05-22  Bruno Haible  <bruno@clisp.org>
7098
7099         strtod: Move AC_LIBOBJ invocations to module description.
7100         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7101         invocations from here...
7102         * modules/strtod (configure.ac): ... to here.
7103
7104 2011-05-22  Bruno Haible  <bruno@clisp.org>
7105
7106         strstr*: Move AC_LIBOBJ invocations to module description.
7107         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7108         invocations from here...
7109         * modules/strstr-simple (configure.ac): ... to here.
7110         * modules/strstr (configure.ac): ... and here.
7111
7112 2011-05-22  Bruno Haible  <bruno@clisp.org>
7113
7114         strsignal: Move AC_LIBOBJ invocations to module description.
7115         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7116         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7117         * modules/strsignal (configure.ac): ... to here.
7118         (Depends-on): Update conditions.
7119
7120 2011-05-22  Bruno Haible  <bruno@clisp.org>
7121
7122         strsep: Move AC_LIBOBJ invocations to module description.
7123         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7124         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7125         here...
7126         * modules/strsep (configure.ac): ... to here.
7127
7128 2011-05-22  Bruno Haible  <bruno@clisp.org>
7129
7130         strptime: Move AC_LIBOBJ invocations to module description.
7131         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7132         gl_PREREQ_STRPTIME invocations from here...
7133         * modules/strptime (configure.ac): ... to here.
7134
7135 2011-05-22  Bruno Haible  <bruno@clisp.org>
7136
7137         strpbrk: Move AC_LIBOBJ invocations to module description.
7138         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7139         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7140         here...
7141         * modules/strpbrk (configure.ac): ... to here.
7142
7143 2011-05-22  Bruno Haible  <bruno@clisp.org>
7144
7145         strnlen: Move AC_LIBOBJ invocations to module description.
7146         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7147         invocations from here...
7148         * modules/strnlen (configure.ac): ... to here.
7149
7150 2011-05-22  Bruno Haible  <bruno@clisp.org>
7151
7152         strndup: Move AC_LIBOBJ invocations to module description.
7153         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7154         invocations from here...
7155         * modules/strndup (configure.ac): ... to here.
7156         (Depends-on): Update conditions.
7157
7158 2011-05-22  Bruno Haible  <bruno@clisp.org>
7159
7160         strncat: Move AC_LIBOBJ invocations to module description.
7161         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7162         invocations from here...
7163         * modules/strncat (configure.ac): ... to here.
7164
7165 2011-05-22  Bruno Haible  <bruno@clisp.org>
7166
7167         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7168         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7169         invocations from here...
7170         * modules/strdup (configure.ac): ... to here.
7171         * modules/strdup-posix (configure.ac): ... and here.
7172
7173 2011-05-22  Bruno Haible  <bruno@clisp.org>
7174
7175         strcspn: Move AC_LIBOBJ invocations to module description.
7176         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7177         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7178         here...
7179         * modules/strcspn (configure.ac): ... to here.
7180
7181 2011-05-22  Bruno Haible  <bruno@clisp.org>
7182
7183         strchrnul: Move AC_LIBOBJ invocations to module description.
7184         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7185         gl_PREREQ_STRCHRNUL invocations from here...
7186         * modules/strchrnul (configure.ac): ... to here.
7187
7188 2011-05-22  Bruno Haible  <bruno@clisp.org>
7189
7190         strcasestr*: Move AC_LIBOBJ invocations to module description.
7191         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7192         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7193         * modules/strcasestr-simple (configure.ac): ... to here.
7194         * modules/strcasestr (configure.ac): ... and here.
7195
7196 2011-05-22  Bruno Haible  <bruno@clisp.org>
7197
7198         strcase: Move AC_LIBOBJ invocations to module description.
7199         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7200         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7201         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7202         gl_PREREQ_STRNCASECMP invocations from here...
7203         * modules/strcase (configure.ac): ... to here.
7204
7205 2011-05-22  Bruno Haible  <bruno@clisp.org>
7206
7207         stpncpy: Move AC_LIBOBJ invocations to module description.
7208         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7209         here...
7210         * modules/stpncpy (configure.ac): ... to here.
7211
7212 2011-05-22  Bruno Haible  <bruno@clisp.org>
7213
7214         stpcpy: Move AC_LIBOBJ invocations to module description.
7215         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7216         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7217         here...
7218         * modules/stpcpy (configure.ac): ... to here.
7219
7220 2011-05-21  Bruno Haible  <bruno@clisp.org>
7221
7222         stat: Move AC_LIBOBJ invocations to module description.
7223         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7224         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7225         here...
7226         * modules/stat (configure.ac): ... to here.
7227
7228 2011-05-21  Bruno Haible  <bruno@clisp.org>
7229
7230         sleep: Move AC_LIBOBJ invocations to module description.
7231         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7232         * modules/sleep (configure.ac): ... to here.
7233
7234 2011-05-21  Bruno Haible  <bruno@clisp.org>
7235
7236         signbit: Move AC_LIBOBJ invocations to module description.
7237         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7238         * modules/signbit (configure.ac): ... to here.
7239
7240 2011-05-21  Bruno Haible  <bruno@clisp.org>
7241
7242         sigprocmask: Move AC_LIBOBJ invocations to module description.
7243         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7244         gl_PREREQ_SIGPROMASK invocations from here...
7245         * modules/sigprocmask (configure.ac): ... to here.
7246
7247 2011-05-21  Bruno Haible  <bruno@clisp.org>
7248
7249         sigaction: Move AC_LIBOBJ invocations to module description.
7250         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
7251         gl_PREREQ_SIGACTION invocations from here...
7252         * modules/sigaction (configure.ac): ... to here.
7253
7254 2011-05-21  Bruno Haible  <bruno@clisp.org>
7255
7256         sig2str: Move AC_LIBOBJ invocations to module description.
7257         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
7258         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
7259         here...
7260         * modules/sig2str (configure.ac): ... to here.
7261
7262 2011-05-21  Bruno Haible  <bruno@clisp.org>
7263
7264         setlocale: Move AC_LIBOBJ invocations to module description.
7265         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
7266         gl_PREREQ_SETLOCALE invocations from here...
7267         * modules/setlocale (configure.ac): ... to here.
7268
7269 2011-05-21  Bruno Haible  <bruno@clisp.org>
7270
7271         unsetenv: Move AC_LIBOBJ invocations to module description.
7272         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
7273         and gl_PREREQ_UNSETENV invocations from here...
7274         * modules/unsetenv (configure.ac): ... to here.
7275         (Depends-on): Update.
7276
7277 2011-05-21  Bruno Haible  <bruno@clisp.org>
7278
7279         setenv: Move AC_LIBOBJ invocations to module description.
7280         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
7281         here...
7282         * modules/setenv (configure.ac): ... to here.
7283
7284 2011-05-21  Bruno Haible  <bruno@clisp.org>
7285
7286         selinux-h: Move AC_LIBOBJ invocations to module description.
7287         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
7288         AC_LIBOBJ invocation from here...
7289         * modules/selinux-h (configure.ac): ... to here.
7290
7291 2011-05-21  Bruno Haible  <bruno@clisp.org>
7292
7293         select: Respect rules for use of AC_LIBOBJ.
7294         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
7295         here...
7296         * modules/select (configure.ac): ... to here.
7297
7298 2011-05-21  Bruno Haible  <bruno@clisp.org>
7299
7300         scandir: Move AC_LIBOBJ invocations to module description.
7301         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
7302         invocations from here...
7303         * modules/scandir (configure.ac): ... to here.
7304
7305 2011-05-21  Bruno Haible  <bruno@clisp.org>
7306
7307         rpmatch: Move AC_LIBOBJ invocations to module description.
7308         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
7309         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
7310         here...
7311         * modules/rpmatch (configure.ac): ... to here.
7312
7313 2011-05-21  Bruno Haible  <bruno@clisp.org>
7314
7315         rmdir: Respect rules for use of AC_LIBOBJ.
7316         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
7317         * modules/rmdir (configure.ac): ... to here.
7318
7319 2011-05-21  Bruno Haible  <bruno@clisp.org>
7320
7321         renameat: Move AC_LIBOBJ invocations to module description.
7322         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
7323         here...
7324         * modules/renameat (configure.ac): ... to here.
7325
7326 2011-05-21  Bruno Haible  <bruno@clisp.org>
7327
7328         rename: Respect rules for use of AC_LIBOBJ.
7329         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
7330         here...
7331         * modules/rename (configure.ac): ... to here.
7332
7333 2011-05-21  Bruno Haible  <bruno@clisp.org>
7334
7335         remove: Move AC_LIBOBJ invocations to module description.
7336         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
7337         here...
7338         * modules/remove (configure.ac): ... to here.
7339
7340 2011-05-21  Bruno Haible  <bruno@clisp.org>
7341
7342         relocatable-lib: Move AC_LIBOBJ invocations to module description.
7343         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7344         macro.
7345         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7346         * modules/relocatable-lib (configure.ac): ... to here.
7347         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7348         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7349
7350 2011-05-21  Bruno Haible  <bruno@clisp.org>
7351
7352         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7353         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7354         here...
7355         * modules/relocatable-prog (configure.ac): ... to here.
7356
7357 2011-05-21  Bruno Haible  <bruno@clisp.org>
7358
7359         regex: Move AC_LIBOBJ invocations to module description.
7360         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7361         invocations from here...
7362         * modules/regex (configure.ac): ... to here.
7363
7364 2011-05-21  Bruno Haible  <bruno@clisp.org>
7365
7366         realloc-*: Move AC_LIBOBJ invocations to module description.
7367         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7368         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7369         AC_LIBOBJ invocations from here...
7370         * modules/realloc-gnu (configure.ac): ... to here.
7371         * modules/realloc-posix (configure.ac): ... and here.
7372
7373 2011-05-21  Bruno Haible  <bruno@clisp.org>
7374
7375         readutmp: Move AC_LIBOBJ invocations to module description.
7376         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
7377         * modules/readutmp (configure.ac): ... to here.
7378
7379 2011-05-21  Bruno Haible  <bruno@clisp.org>
7380
7381         readlinkat: Move AC_LIBOBJ invocations to module description.
7382         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
7383         here...
7384         * modules/readlinkat (configure.ac): ... to here.
7385
7386 2011-05-21  Bruno Haible  <bruno@clisp.org>
7387
7388         readlink: Move AC_LIBOBJ invocations to module description.
7389         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
7390         gl_PREREQ_READLINK invocations from here...
7391         * modules/readlink (configure.ac): ... to here.
7392
7393 2011-05-21  Bruno Haible  <bruno@clisp.org>
7394
7395         readline: Move AC_LIBOBJ invocations to module description.
7396         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
7397         gl_PREREQ_READLINE invocations from here...
7398         * modules/readline (configure.ac): ... to here.
7399
7400 2011-05-21  Bruno Haible  <bruno@clisp.org>
7401
7402         read: Move AC_LIBOBJ invocations to module description.
7403         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
7404         * modules/read (configure.ac): ... to here.
7405
7406 2011-05-21  Bruno Haible  <bruno@clisp.org>
7407
7408         rawmemchr: Move AC_LIBOBJ invocations to module description.
7409         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
7410         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
7411         from here...
7412         * modules/rawmemchr (configure.ac): ... to here.
7413
7414 2011-05-21  Bruno Haible  <bruno@clisp.org>
7415
7416         random_r: Move AC_LIBOBJ invocations to module description.
7417         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
7418         gl_PREREQ_RANDOM_R invocations from here...
7419         * modules/random_r (configure.ac): ... to here.
7420
7421 2011-05-21  Bruno Haible  <bruno@clisp.org>
7422
7423         pwrite: Move AC_LIBOBJ invocations to module description.
7424         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
7425         * modules/pwrite (configure.ac): ... to here.
7426
7427 2011-05-21  Bruno Haible  <bruno@clisp.org>
7428
7429         putenv: Move AC_LIBOBJ invocations to module description.
7430         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
7431         * modules/putenv (configure.ac): ... to here.
7432
7433 2011-05-21  Bruno Haible  <bruno@clisp.org>
7434
7435         login_tty: Move AC_LIBOBJ invocations to module description.
7436         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
7437         * modules/login_tty (configure.ac): ... to here.
7438
7439 2011-05-21  Bruno Haible  <bruno@clisp.org>
7440
7441         openpty: Move AC_LIBOBJ invocations to module description.
7442         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
7443         * modules/openpty (configure.ac): ... to here.
7444
7445 2011-05-21  Bruno Haible  <bruno@clisp.org>
7446
7447         forkpty: Move AC_LIBOBJ invocations to module description.
7448         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
7449         * modules/forkpty (configure.ac): ... to here.
7450
7451 2011-05-21  Bruno Haible  <bruno@clisp.org>
7452
7453         ptsname: Move AC_LIBOBJ invocations to module description.
7454         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
7455         invocations from here...
7456         * modules/ptsname (configure.ac): ... to here.
7457
7458 2011-05-21  Bruno Haible  <bruno@clisp.org>
7459
7460         pread: Move AC_LIBOBJ invocations to module description.
7461         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
7462         * modules/pread (configure.ac): ... to here.
7463
7464 2011-05-21  Bruno Haible  <bruno@clisp.org>
7465
7466         posix_spawn*: Move AC_LIBOBJ invocations to module description.
7467         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
7468         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
7469         * modules/posix_spawn (configure.ac): ... to here.
7470         * modules/posix_spawnp (configure.ac): ... and here.
7471
7472 2011-05-21  Bruno Haible  <bruno@clisp.org>
7473
7474         popen: Move AC_LIBOBJ invocations to module description.
7475         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
7476         invocations from here...
7477         * modules/popen (configure.ac): ... to here.
7478
7479 2011-05-21  Bruno Haible  <bruno@clisp.org>
7480
7481         poll: Move AC_LIBOBJ invocations to module description.
7482         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
7483         invocations from here...
7484         * modules/poll (configure.ac): ... to here.
7485
7486 2011-05-21  Bruno Haible  <bruno@clisp.org>
7487
7488         pipe-posix: Move AC_LIBOBJ invocations to module description.
7489         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
7490         * modules/pipe-posix (configure.ac): ... to here.
7491
7492 2011-05-21  Bruno Haible  <bruno@clisp.org>
7493
7494         openat: Respect rules for use of AC_LIBOBJ.
7495         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
7496         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7497         * modules/openat (configure.ac): ... to here.
7498
7499 2011-05-21  Bruno Haible  <bruno@clisp.org>
7500
7501         obstack-printf*: Move AC_LIBOBJ invocations to module description.
7502         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
7503         invocation from here...
7504         * modules/obstack-printf (configure.ac): ... to here.
7505         * modules/obstack-printf-posix (configure.ac): ... and here.
7506
7507 2011-05-21  Bruno Haible  <bruno@clisp.org>
7508
7509         nl_langinfo: Move AC_LIBOBJ invocations to module description.
7510         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
7511         from here...
7512         * modules/nl_langinfo (configure.ac): ... to here.
7513
7514 2011-05-21  Bruno Haible  <bruno@clisp.org>
7515
7516         nanosleep: Move AC_LIBOBJ invocations to module description.
7517         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
7518         gl_PREREQ_NANOSLEEP invocations from here...
7519         * modules/nanosleep (configure.ac): ... to here.
7520
7521 2011-05-21  Bruno Haible  <bruno@clisp.org>
7522
7523         mountlist: Move AC_LIBOBJ invocations to module description.
7524         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
7525         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
7526         * modules/mountlist (configure.ac): ... to here.
7527
7528 2011-05-21  Bruno Haible  <bruno@clisp.org>
7529
7530         mktime: Respect rules for use of AC_LIBOBJ.
7531         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
7532         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
7533         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
7534         (gl_FUNC_MKTIME_INTERNAL): ... and here...
7535         * modules/mktime (configure.ac): ... to here.
7536         * modules/mktime-internal (configure.ac): ... and here.
7537         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
7538
7539 2011-05-21  Bruno Haible  <bruno@clisp.org>
7540
7541         mkstemps: Move AC_LIBOBJ invocations to module description.
7542         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
7543         here...
7544         * modules/mkstemps (configure.ac): ... to here.
7545
7546 2011-05-21  Bruno Haible  <bruno@clisp.org>
7547
7548         mkstemp: Move AC_LIBOBJ invocations to module description.
7549         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
7550         gl_PREREQ_MKSTEMP invocations from here...
7551         * modules/mkstemp (configure.ac): ... to here.
7552
7553 2011-05-21  Bruno Haible  <bruno@clisp.org>
7554
7555         mkostemps: Move AC_LIBOBJ invocations to module description.
7556         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
7557         here...
7558         * modules/mkostemps (configure.ac): ... to here.
7559
7560 2011-05-21  Bruno Haible  <bruno@clisp.org>
7561
7562         mkostemp: Move AC_LIBOBJ invocations to module description.
7563         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
7564         gl_PREREQ_MKOSTEMP invocations from here...
7565         * modules/mkostemp (configure.ac): ... to here.
7566
7567 2011-05-21  Bruno Haible  <bruno@clisp.org>
7568
7569         mknod: Move AC_LIBOBJ invocations to module description.
7570         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
7571         * modules/mknod (configure.ac): ... to here.
7572
7573 2011-05-21  Bruno Haible  <bruno@clisp.org>
7574
7575         mkfifoat: Move AC_LIBOBJ invocations to module description.
7576         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
7577         here...
7578         * modules/mkfifoat (configure.ac): ... to here.
7579
7580 2011-05-21  Bruno Haible  <bruno@clisp.org>
7581
7582         mkfifo: Respect rules for use of AC_LIBOBJ.
7583         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
7584         here...
7585         * modules/mkfifo (configure.ac): ... to here.
7586
7587 2011-05-21  Bruno Haible  <bruno@clisp.org>
7588
7589         mkdtemp: Move AC_LIBOBJ invocations to module description.
7590         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
7591         invocations from here...
7592         * modules/mkdtemp (configure.ac): ... to here.
7593
7594 2011-05-21  Bruno Haible  <bruno@clisp.org>
7595
7596         mkdir: Move AC_LIBOBJ invocations to module description.
7597         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
7598         * modules/mkdir (configure.ac): ... to here.
7599
7600 2011-05-21  Bruno Haible  <bruno@clisp.org>
7601
7602         memset: Move AC_LIBOBJ invocations to module description.
7603         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
7604         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
7605         here...
7606         * modules/memset (configure.ac): ... to here.
7607
7608 2011-05-21  Bruno Haible  <bruno@clisp.org>
7609
7610         memrchr: Move AC_LIBOBJ invocations to module description.
7611         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
7612         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
7613         here...
7614         * modules/memrchr (configure.ac): ... to here.
7615
7616 2011-05-21  Bruno Haible  <bruno@clisp.org>
7617
7618         mempcpy: Move AC_LIBOBJ invocations to module description.
7619         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
7620         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
7621         here...
7622         * modules/mempcpy (configure.ac): ... to here.
7623
7624 2011-05-21  Bruno Haible  <bruno@clisp.org>
7625
7626         memmove: Move AC_LIBOBJ invocations to module description.
7627         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
7628         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
7629         here...
7630         * modules/memmove (configure.ac): ... to here.
7631
7632 2011-05-21  Bruno Haible  <bruno@clisp.org>
7633
7634         memmem*: Move AC_LIBOBJ invocations to module description.
7635         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
7636         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
7637         here...
7638         (gl_FUNC_MEMMEM): ... and here...
7639         * modules/memmem-simple (configure.ac): ... to here.
7640         * modules/memmem (configure.ac): ... and here.
7641
7642 2011-05-21  Bruno Haible  <bruno@clisp.org>
7643
7644         memcpy: Move AC_LIBOBJ invocations to module description.
7645         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
7646         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
7647         here...
7648         * modules/memcpy (configure.ac): ... to here.
7649
7650 2011-05-21  Bruno Haible  <bruno@clisp.org>
7651
7652         memcmp: Simplify autoconf macro.
7653         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
7654         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
7655         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
7656
7657 2011-05-21  Bruno Haible  <bruno@clisp.org>
7658
7659         memcmp: Move AC_LIBOBJ invocations to module description.
7660         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
7661         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
7662         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
7663         * modules/memcmp (configure.ac): ... to here.
7664         (Depends-on): Update conditions.
7665
7666 2011-05-21  Bruno Haible  <bruno@clisp.org>
7667
7668         memchr: Respect rules for use of AC_LIBOBJ.
7669         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
7670         invocations from here...
7671         * modules/memchr (configure.ac): ... to here.
7672
7673 2011-05-21  Bruno Haible  <bruno@clisp.org>
7674
7675         mbtowc: Move AC_LIBOBJ invocations to module description.
7676         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
7677         invocations from here...
7678         * modules/mbtowc (configure.ac): ... to here.
7679
7680 2011-05-21  Bruno Haible  <bruno@clisp.org>
7681
7682         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
7683         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
7684         gl_PREREQ_MBSRTOWCS invocations from here...
7685         * modules/mbsrtowcs (configure.ac): ... to here.
7686
7687 2011-05-21  Bruno Haible  <bruno@clisp.org>
7688
7689         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
7690         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
7691         gl_PREREQ_MBSNRTOWCS invocations from here...
7692         * modules/mbsnrtowcs (configure.ac): ... to here.
7693
7694 2011-05-21  Bruno Haible  <bruno@clisp.org>
7695
7696         mbsinit: Move AC_LIBOBJ invocations to module description.
7697         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
7698         invocations from here...
7699         * modules/mbsinit (configure.ac): ... to here.
7700
7701 2011-05-21  Bruno Haible  <bruno@clisp.org>
7702
7703         mbrlen: Move AC_LIBOBJ invocations to module description.
7704         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
7705         invocations from here...
7706         * modules/mbrlen (configure.ac): ... to here.
7707
7708 2011-05-21  Bruno Haible  <bruno@clisp.org>
7709
7710         mbrtowc: Respect rules for use of AC_LIBOBJ.
7711         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
7712         invocations from here...
7713         * modules/mbrtowc (configure.ac): ... to here.
7714
7715 2011-05-21  Bruno Haible  <bruno@clisp.org>
7716
7717         malloc-*: Move AC_LIBOBJ invocations to module description.
7718         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
7719         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
7720         AC_LIBOBJ invocations from here...
7721         * modules/malloc-gnu (configure.ac): ... to here.
7722         * modules/malloc-posix (configure.ac): ... and here.
7723
7724 2011-05-21  Bruno Haible  <bruno@clisp.org>
7725
7726         lstat, openat: Respect rules for use of AC_LIBOBJ.
7727         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
7728         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
7729         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
7730         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
7731         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
7732         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
7733         here.
7734         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
7735
7736 2011-05-21  Bruno Haible  <bruno@clisp.org>
7737
7738         lseek: Move AC_LIBOBJ invocations to module description.
7739         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
7740         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7741         * modules/lseek (configure.ac): ... to here.
7742
7743 2011-05-21  Bruno Haible  <bruno@clisp.org>
7744
7745         linkat: Move AC_LIBOBJ invocations to module description.
7746         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
7747         here...
7748         * modules/linkat (configure.ac): ... to here.
7749
7750 2011-05-21  Bruno Haible  <bruno@clisp.org>
7751
7752         link: Respect rules for use of AC_LIBOBJ.
7753         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
7754         * modules/link (configure.ac): ... to here.
7755
7756 2011-05-21  Bruno Haible  <bruno@clisp.org>
7757
7758         lchown: Move AC_LIBOBJ invocations to module description.
7759         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7760         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7761         * modules/lchown (configure.ac): ... to here.
7762
7763 2011-05-21  Bruno Haible  <bruno@clisp.org>
7764
7765         iswctype: Move AC_LIBOBJ invocations to module description.
7766         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
7767         here...
7768         * modules/iswctype (configure.ac): ... to here.
7769
7770 2011-05-21  Bruno Haible  <bruno@clisp.org>
7771
7772         iswblank: Move AC_LIBOBJ invocations to module description.
7773         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
7774         here...
7775         * modules/iswblank (configure.ac): ... to here.
7776
7777 2011-05-21  Bruno Haible  <bruno@clisp.org>
7778
7779         atanl: Move AC_LIBOBJ invocations to module description.
7780         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
7781         * modules/atanl (configure.ac): ... to here.
7782
7783 2011-05-21  Bruno Haible  <bruno@clisp.org>
7784
7785         acosl: Move AC_LIBOBJ invocations to module description.
7786         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
7787         * modules/acosl (configure.ac): ... to here.
7788
7789 2011-05-21  Bruno Haible  <bruno@clisp.org>
7790
7791         asinl: Respect rules for use of AC_LIBOBJ.
7792         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
7793         * modules/asinl (configure.ac): ... to here.
7794
7795 2011-05-21  Bruno Haible  <bruno@clisp.org>
7796
7797         tanl: Move AC_LIBOBJ invocations to module description.
7798         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
7799         * modules/tanl (configure.ac): ... to here.
7800
7801 2011-05-21  Bruno Haible  <bruno@clisp.org>
7802
7803         cosl: Move AC_LIBOBJ invocations to module description.
7804         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
7805         * modules/cosl (configure.ac): ... to here.
7806
7807 2011-05-21  Bruno Haible  <bruno@clisp.org>
7808
7809         sinl: Move AC_LIBOBJ invocations to module description.
7810         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
7811         * modules/sinl (configure.ac): ... to here.
7812
7813 2011-05-21  Bruno Haible  <bruno@clisp.org>
7814
7815         logl: Move AC_LIBOBJ invocations to module description.
7816         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
7817         * modules/logl (configure.ac): ... to here.
7818
7819 2011-05-21  Bruno Haible  <bruno@clisp.org>
7820
7821         expl: Move AC_LIBOBJ invocations to module description.
7822         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
7823         * modules/expl (configure.ac): ... to here.
7824
7825 2011-05-21  Bruno Haible  <bruno@clisp.org>
7826
7827         roundl: Move AC_LIBOBJ invocations to module description.
7828         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
7829         * modules/roundl (configure.ac): ... to here.
7830
7831 2011-05-21  Bruno Haible  <bruno@clisp.org>
7832
7833         round: Move AC_LIBOBJ invocations to module description.
7834         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
7835         * modules/round (configure.ac): ... to here.
7836
7837 2011-05-21  Bruno Haible  <bruno@clisp.org>
7838
7839         roundf: Move AC_LIBOBJ invocations to module description.
7840         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
7841         * modules/roundf (configure.ac): ... to here.
7842
7843 2011-05-21  Bruno Haible  <bruno@clisp.org>
7844
7845         truncl: Move AC_LIBOBJ invocations to module description.
7846         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
7847         * modules/truncl (configure.ac): ... to here.
7848
7849 2011-05-21  Bruno Haible  <bruno@clisp.org>
7850
7851         trunc: Move AC_LIBOBJ invocations to module description.
7852         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
7853         * modules/trunc (configure.ac): ... to here.
7854
7855 2011-05-21  Bruno Haible  <bruno@clisp.org>
7856
7857         truncf: Move AC_LIBOBJ invocations to module description.
7858         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
7859         * modules/truncf (configure.ac): ... to here.
7860
7861 2011-05-21  Bruno Haible  <bruno@clisp.org>
7862
7863         ceill: Move AC_LIBOBJ invocations to module description.
7864         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
7865         * modules/ceill (configure.ac): ... to here.
7866
7867 2011-05-21  Bruno Haible  <bruno@clisp.org>
7868
7869         ceil: Move AC_LIBOBJ invocations to module description.
7870         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
7871         * modules/ceil (configure.ac): ... to here.
7872
7873 2011-05-21  Bruno Haible  <bruno@clisp.org>
7874
7875         ceilf: Move AC_LIBOBJ invocations to module description.
7876         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
7877         * modules/ceilf (configure.ac): ... to here.
7878
7879 2011-05-21  Bruno Haible  <bruno@clisp.org>
7880
7881         floorl: Respect rules for use of AC_LIBOBJ.
7882         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
7883         * modules/floorl (configure.ac): ... to here.
7884
7885 2011-05-21  Bruno Haible  <bruno@clisp.org>
7886
7887         floor: Respect rules for use of AC_LIBOBJ.
7888         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
7889         * modules/floor (configure.ac): ... to here.
7890
7891 2011-05-21  Bruno Haible  <bruno@clisp.org>
7892
7893         floorf: Move AC_LIBOBJ invocations to module description.
7894         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
7895         * modules/floorf (configure.ac): ... to here.
7896
7897 2011-05-20  Bruno Haible  <bruno@clisp.org>
7898
7899         sqrtl: Respect rules for use of AC_LIBOBJ.
7900         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
7901         * modules/sqrtl (configure.ac): ... to here.
7902
7903 2011-05-20  Bruno Haible  <bruno@clisp.org>
7904
7905         ldexpl: Respect rules for use of AC_LIBOBJ.
7906         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
7907         * modules/ldexpl (configure.ac): ... to here.
7908
7909 2011-05-20  Bruno Haible  <bruno@clisp.org>
7910
7911         frexpl*: Respect rules for use of AC_LIBOBJ.
7912         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
7913         invocation from here...
7914         * modules/frexpl (configure.ac): ... to here.
7915         * modules/frexpl-nolibm (configure.ac): ... and here.
7916
7917 2011-05-20  Bruno Haible  <bruno@clisp.org>
7918
7919         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
7920         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
7921         invocation from here...
7922         * modules/frexp (configure.ac): ... to here.
7923         * modules/frexp-nolibm (configure.ac): ... and here.
7924
7925 2011-05-20  Bruno Haible  <bruno@clisp.org>
7926
7927         isnan: Respect rules for use of AC_LIBOBJ.
7928         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
7929         invocations here.
7930         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
7931         REPLACE_ISNAN.
7932         * modules/isnand (configure.ac): Likewise.
7933         * modules/isnanl (configure.ac): Likewise.
7934
7935 2011-05-20  Bruno Haible  <bruno@clisp.org>
7936
7937         isnanl*: Respect rules for use of AC_LIBOBJ.
7938         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
7939         invocation from here...
7940         * modules/isnanl (configure.ac): ... to here.
7941         * modules/isnanl-nolibm (configure.ac): ... and here.
7942
7943 2011-05-20  Bruno Haible  <bruno@clisp.org>
7944
7945         isnand*: Move AC_LIBOBJ invocations to module description.
7946         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
7947         invocation from here...
7948         * modules/isnand (configure.ac): ... to here.
7949         * modules/isnand-nolibm (configure.ac): ... and here.
7950
7951 2011-05-20  Bruno Haible  <bruno@clisp.org>
7952
7953         isnanf*: Move AC_LIBOBJ invocations to module description.
7954         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
7955         invocation from here...
7956         * modules/isnanf (configure.ac): ... to here.
7957         * modules/isnanf-nolibm (configure.ac): ... and here.
7958
7959 2011-05-20  Bruno Haible  <bruno@clisp.org>
7960
7961         isnan*: Separate the AC_LIBOBJ invocations.
7962         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
7963         AC_LIBOBJ invocation.
7964         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
7965         here.
7966         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
7967         AC_LIBOBJ invocation.
7968         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
7969         here.
7970         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
7971         AC_LIBOBJ invocation.
7972         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
7973         here.
7974         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
7975
7976 2011-05-08  Bruno Haible  <bruno@clisp.org>
7977
7978         isinf: Move AC_LIBOBJ invocations to module description.
7979         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
7980         * modules/isinf (configure.ac): ... to here.
7981
7982 2011-05-08  Bruno Haible  <bruno@clisp.org>
7983
7984         isfinite: Move AC_LIBOBJ invocations to module description.
7985         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
7986         * modules/isfinite (configure.ac): ... to here.
7987
7988 2011-05-08  Bruno Haible  <bruno@clisp.org>
7989
7990         isblank: Move AC_LIBOBJ invocations to module description.
7991         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
7992         here...
7993         * modules/isblank (configure.ac): ... to here.
7994
7995 2011-05-08  Bruno Haible  <bruno@clisp.org>
7996
7997         isapipe: Move AC_LIBOBJ invocations to module description.
7998         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
7999         gl_PREREQ_ISAPIPE invocations from here...
8000         * modules/isapipe (configure.ac): ... to here.
8001         (Depends-on): Update condition.
8002
8003 2011-05-08  Bruno Haible  <bruno@clisp.org>
8004
8005         ioctl: Move AC_LIBOBJ invocations to module description.
8006         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8007         invocations from here...
8008         * modules/ioctl (configure.ac): ... to here.
8009         (Depends-on): Update condition.
8010
8011 2011-05-08  Bruno Haible  <bruno@clisp.org>
8012
8013         imaxdiv: Move AC_LIBOBJ invocations to module description.
8014         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8015         invocations from here...
8016         * modules/imaxdiv (configure.ac): ... to here.
8017
8018 2011-05-08  Bruno Haible  <bruno@clisp.org>
8019
8020         imaxabs: Move AC_LIBOBJ invocations to module description.
8021         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8022         invocations from here...
8023         * modules/imaxabs (configure.ac): ... to here.
8024
8025 2011-05-08  Bruno Haible  <bruno@clisp.org>
8026
8027         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8028         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8029         AC_LIBOBJ invocations from here...
8030         * modules/getaddrinfo (configure.ac): ... to here.
8031         (Depends-on): Add conditions.
8032
8033 2011-05-08  Bruno Haible  <bruno@clisp.org>
8034
8035         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8036         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8037         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8038         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8039         (gl_PREREQ_INET_PTON): ... from here.
8040         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8041         gl_PREREQ_INET_PTON here.
8042         (Depends-on): Update condition.
8043
8044 2011-05-08  Bruno Haible  <bruno@clisp.org>
8045
8046         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8047         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8048         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8049         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8050         (gl_PREREQ_INET_NTOP): ... from here.
8051         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8052         gl_PREREQ_INET_NTOP here.
8053         (Depends-on): Update condition.
8054
8055 2011-05-08  Bruno Haible  <bruno@clisp.org>
8056
8057         iconv_open: Move AC_LIBOBJ invocations to module description.
8058         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8059         AC_LIBOBJ invocations from here...
8060         * modules/iconv_open (configure.ac): ... to here.
8061
8062 2011-05-08  Bruno Haible  <bruno@clisp.org>
8063
8064         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8065         If module 'iconv_open' is among the main modules and module
8066         'iconv_open-utf' is among the tests dependencies, then
8067         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8068         return the special iconv_t values. Therefore iconv() and iconv_close()
8069         must support these special iconv_t values, already in lib, not only in
8070         tests.
8071         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8072         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8073         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8074         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8075         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8076         (Depends-on): Add the dependencies of iconv_open-utf.
8077         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8078         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8079         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8080
8081 2011-05-08  Bruno Haible  <bruno@clisp.org>
8082
8083         group-member: Move AC_LIBOBJ invocations to module description.
8084         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8085         gl_PREREQ_GROUP_MEMBER invocations from here...
8086         * modules/group-member (configure.ac): ... to here.
8087
8088 2011-05-08  Bruno Haible  <bruno@clisp.org>
8089
8090         grantpt: Move AC_LIBOBJ invocations to module description.
8091         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8092         invocations from here...
8093         * modules/grantpt (configure.ac): ... to here.
8094
8095 2011-05-08  Bruno Haible  <bruno@clisp.org>
8096
8097         glob: Move AC_LIBOBJ invocations to module description.
8098         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8099         from here...
8100         * modules/glob (configure.ac): ... to here.
8101
8102 2011-05-08  Bruno Haible  <bruno@clisp.org>
8103
8104         getusershell: Move AC_LIBOBJ invocations to module description.
8105         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8106         Move AC_LIBOBJ invocation from here...
8107         * modules/getusershell (configure.ac): ... to here.
8108         (Depends-on): Update condition.
8109
8110 2011-05-08  Bruno Haible  <bruno@clisp.org>
8111
8112         gettimeofday: Move AC_LIBOBJ invocations to module description.
8113         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8114         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8115         gl_PREREQ_GETTIMEOFDAY invocations from here...
8116         * modules/gettimeofday (configure.ac): ... to here.
8117
8118 2011-05-08  Bruno Haible  <bruno@clisp.org>
8119
8120         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8121         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8122         just gl_FUNC_TZSET.
8123         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8124         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8125         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8126         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8127
8128 2011-05-08  Bruno Haible  <bruno@clisp.org>
8129
8130         getsubopt: Move AC_LIBOBJ invocations to module description.
8131         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8132         gl_PREREQ_GETSUBOPT invocations from here...
8133         * modules/getsubopt (configure.ac): ... to here.
8134
8135 2011-05-08  Bruno Haible  <bruno@clisp.org>
8136
8137         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8138         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8139         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8140         * modules/getpass-gnu (configure.ac): ... to here.
8141
8142 2011-05-08  Bruno Haible  <bruno@clisp.org>
8143
8144         getpass: Move AC_LIBOBJ invocations to module description.
8145         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8146         gl_PREREQ_GETPASS invocations from here...
8147         * modules/getpass (configure.ac): ... to here.
8148
8149 2011-05-08  Bruno Haible  <bruno@clisp.org>
8150
8151         getpagesize: Move AC_LIBOBJ invocations to module description.
8152         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8153         from here...
8154         * modules/getpagesize (configure.ac): ... to here.
8155
8156 2011-05-08  Bruno Haible  <bruno@clisp.org>
8157
8158         getopt: Move AC_LIBOBJ invocations to module description.
8159         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8160         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8161         invocations from here...
8162         * modules/getopt-gnu (configure.ac): ... to here.
8163         * modules/getopt-posix (configure.ac): ... and here.
8164         (Depends-on): Update condition.
8165
8166 2011-05-08  Bruno Haible  <bruno@clisp.org>
8167
8168         getopt, argp: Respect rules for use of AC_LIBOBJ.
8169         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8170         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8171         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8172         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8173
8174 2011-05-08  Bruno Haible  <bruno@clisp.org>
8175
8176         getlogin_r: Move AC_LIBOBJ invocations to module description.
8177         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8178         gl_PREREQ_GETLOGIN_R invocations from here...
8179         * modules/getlogin_r (configure.ac): ... to here.
8180
8181 2011-05-08  Bruno Haible  <bruno@clisp.org>
8182
8183         getlogin: Move AC_LIBOBJ invocations to module description.
8184         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8185         here...
8186         * modules/getlogin (configure.ac): ... to here.
8187
8188 2011-05-08  Bruno Haible  <bruno@clisp.org>
8189
8190         getloadavg: Move AC_LIBOBJ invocations to module description.
8191         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8192         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8193         * modules/getloadavg (configure.ac): ... to here.
8194
8195 2011-05-08  Bruno Haible  <bruno@clisp.org>
8196
8197         gethrxtime: Move AC_LIBOBJ invocations to module description.
8198         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8199         LIB_GETHRXTIME from here...
8200         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8201         invocations from here...
8202         * modules/gethrxtime (configure.ac): ... to here.
8203
8204 2011-05-08  Bruno Haible  <bruno@clisp.org>
8205
8206         gethostname: Move AC_LIBOBJ invocations to module description.
8207         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8208         gl_PREREQ_GETHOSTNAME invocations from here...
8209         * modules/gethostname (configure.ac): ... to here.
8210
8211 2011-05-08  Bruno Haible  <bruno@clisp.org>
8212
8213         getgroups: Move AC_LIBOBJ invocations to module description.
8214         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8215         here...
8216         * modules/getgroups (configure.ac): ... to here.
8217
8218 2011-05-08  Bruno Haible  <bruno@clisp.org>
8219
8220         getdtablesize: Move AC_LIBOBJ invocations to module description.
8221         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8222         invocation from here...
8223         * modules/getdtablesize (configure.ac): ... to here.
8224
8225 2011-05-08  Bruno Haible  <bruno@clisp.org>
8226
8227         getdomainname: Move AC_LIBOBJ invocations to module description.
8228         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8229         gl_PREREQ_GETDOMAINNAME invocations from here...
8230         * modules/getdomainname (configure.ac): ... to here.
8231
8232 2011-05-08  Bruno Haible  <bruno@clisp.org>
8233
8234         getline: Move AC_LIBOBJ invocations to module description.
8235         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8236         invocations from here...
8237         * modules/getline (configure.ac): ... to here.
8238
8239 2011-05-08  Bruno Haible  <bruno@clisp.org>
8240
8241         getline: Simplify.
8242         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8243         It's already handled through the module dependency.
8244
8245 2011-05-08  Bruno Haible  <bruno@clisp.org>
8246
8247         getdelim: Move AC_LIBOBJ invocations to module description.
8248         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
8249         and gl_PREREQ_GETDELIM invocations from here...
8250         * modules/getdelim (configure.ac): ... to here.
8251         (Depends-on): Fix condition.
8252
8253 2011-05-08  Bruno Haible  <bruno@clisp.org>
8254
8255         getcwd: Move AC_LIBOBJ invocations to module description.
8256         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
8257         invocations from here...
8258         * modules/getcwd (configure.ac): ... to here.
8259
8260 2011-05-08  Bruno Haible  <bruno@clisp.org>
8261
8262         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
8263         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
8264         here...
8265         * modules/getcwd-lgpl (configure.ac): ... to here.
8266
8267 2011-05-07  Bruno Haible  <bruno@clisp.org>
8268
8269         crypto/gc: Move AC_LIBOBJ invocations to module description.
8270         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
8271         * modules/crypto/gc (configure.ac): ... to here.
8272
8273 2011-05-07  Bruno Haible  <bruno@clisp.org>
8274
8275         fwriting: Move AC_LIBOBJ invocations to module description.
8276         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
8277         here...
8278         * modules/fwriting (configure.ac): ... to here.
8279
8280 2011-05-07  Bruno Haible  <bruno@clisp.org>
8281
8282         fwritable: Move AC_LIBOBJ invocations to module description.
8283         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
8284         here...
8285         * modules/fwritable (configure.ac): ... to here.
8286
8287 2011-05-07  Bruno Haible  <bruno@clisp.org>
8288
8289         futimens: Move AC_LIBOBJ invocations to module description.
8290         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
8291         here...
8292         * modules/futimens (configure.ac): ... to here.
8293
8294 2011-05-07  Bruno Haible  <bruno@clisp.org>
8295
8296         ftruncate: Move AC_LIBOBJ invocations to module description.
8297         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
8298         gl_PREREQ_FTRUNCATE invocations from here...
8299         * modules/ftruncate (configure.ac): ... to here.
8300
8301 2011-05-07  Bruno Haible  <bruno@clisp.org>
8302
8303         fsync: Move AC_LIBOBJ invocations to module description.
8304         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
8305         invocations from here...
8306         * modules/fsync (configure.ac): ... to here.
8307
8308 2011-05-07  Bruno Haible  <bruno@clisp.org>
8309
8310         fsusage: Move AC_LIBOBJ invocations to module description.
8311         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
8312         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
8313         * modules/fsusage (configure.ac): ... to here.
8314
8315 2011-05-07  Bruno Haible  <bruno@clisp.org>
8316
8317         freopen: Move AC_LIBOBJ invocations to module description.
8318         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
8319         invocations from here...
8320         * modules/freopen (configure.ac): ... to here.
8321
8322 2011-05-07  Bruno Haible  <bruno@clisp.org>
8323
8324         free: Move AC_LIBOBJ invocations to module description.
8325         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
8326         invocations from here...
8327         * modules/free (configure.ac): ... to here.
8328
8329 2011-05-07  Bruno Haible  <bruno@clisp.org>
8330
8331         freadable: Move AC_LIBOBJ invocations to module description.
8332         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
8333         here...
8334         * modules/freadable (configure.ac): ... to here.
8335
8336 2011-05-07  Bruno Haible  <bruno@clisp.org>
8337
8338         fpurge: Move AC_LIBOBJ invocations to module description.
8339         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
8340         invocations from here...
8341         * modules/fpurge (configure.ac): ... to here.
8342
8343 2011-05-07  Bruno Haible  <bruno@clisp.org>
8344
8345         fpending: Move AC_LIBOBJ invocations to module description.
8346         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8347         gl_FUNC_FPENDING.
8348         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8349         invocations from here...
8350         * modules/fpending (configure.ac): ... to here.
8351
8352 2011-05-07  Bruno Haible  <bruno@clisp.org>
8353
8354         fopen: Move AC_LIBOBJ invocations to module description.
8355         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8356         invocations from here...
8357         * modules/fopen (configure.ac): ... to here.
8358
8359 2011-05-07  Bruno Haible  <bruno@clisp.org>
8360
8361         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8362         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8363         gl_FUNC_FNMATCH_POSIX.
8364         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8365         invocations from here...
8366         * modules/fnmatch (configure.ac): ... to here.
8367         * modules/fnmatch-gnu (configure.ac): ... and here.
8368
8369 2011-05-07  Bruno Haible  <bruno@clisp.org>
8370
8371         flock: Move AC_LIBOBJ invocations to module description.
8372         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8373         invocations from here...
8374         * modules/flock (configure.ac): ... to here.
8375
8376 2011-05-07  Bruno Haible  <bruno@clisp.org>
8377
8378         fileblocks: Move AC_LIBOBJ invocations to module description.
8379         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
8380         gl_PREREQ_FILEBLOCKS invocations from here...
8381         * modules/fileblocks (configure.ac): ... to here.
8382
8383 2011-05-06  Bruno Haible  <bruno@clisp.org>
8384
8385         fflush: Move AC_LIBOBJ invocations to module description.
8386         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
8387         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
8388         invocations from here...
8389         * modules/fflush (configure.ac): ... to here.
8390
8391 2011-05-06  Bruno Haible  <bruno@clisp.org>
8392
8393         fdopendir: Move AC_LIBOBJ invocations to module description.
8394         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
8395         here...
8396         * modules/fdopendir (configure.ac): ... to here.
8397         (Depends-on): Improve conditions.
8398
8399 2011-05-06  Bruno Haible  <bruno@clisp.org>
8400
8401         _Exit: Move AC_LIBOBJ invocations to module description.
8402         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
8403         invocations from here...
8404         * modules/_Exit (configure.ac): ... to here.
8405
8406 2011-05-21  Bruno Haible  <bruno@clisp.org>
8407
8408         euidaccess: Respect rules for use of AC_LIBOBJ.
8409         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8410         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
8411         from here...
8412         * modules/euidaccess (configure.ac): ... to here.
8413
8414 2011-05-06  Bruno Haible  <bruno@clisp.org>
8415
8416         error: Move AC_LIBOBJ invocations to module description.
8417         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
8418         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
8419         invocations from here...
8420         * modules/error (configure.ac): ... to here.
8421
8422 2011-05-06  Bruno Haible  <bruno@clisp.org>
8423
8424         duplocale: Move AC_LIBOBJ invocations to module description.
8425         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
8426         gl_PREREQ_DUPLOCALE invocations from here...
8427         * modules/duplocale (configure.ac): ... to here.
8428
8429 2011-05-05  Bruno Haible  <bruno@clisp.org>
8430
8431         dirfd: Move AC_LIBOBJ invocations to module description.
8432         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
8433         gl_FUNC_DIRFD.
8434         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
8435         here...
8436         * modules/dirfd (configure.ac): ... to here.
8437         (Depends-on): Fix condition.
8438
8439 2011-05-05  Bruno Haible  <bruno@clisp.org>
8440
8441         chown: Respect rules for use of AC_LIBOBJ.
8442         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
8443         * modules/chown (configure.ac): ... to here.
8444
8445 2011-05-05  Bruno Haible  <bruno@clisp.org>
8446
8447         chdir-long: Move AC_LIBOBJ invocations to module description.
8448         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
8449         gl_PREREQ_CHDIR_LONG invocations from here...
8450         * modules/chdir-long (configure.ac): ... to here.
8451
8452 2011-05-05  Bruno Haible  <bruno@clisp.org>
8453
8454         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
8455         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
8456         from here...
8457         * modules/canonicalize-lgpl (configure.ac): ... to here.
8458
8459 2011-05-05  Bruno Haible  <bruno@clisp.org>
8460
8461         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
8462         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
8463         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
8464         REPLACE_CALLOC.
8465         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
8466         * modules/calloc-gnu (configure.ac): Likewise.
8467
8468 2011-05-05  Bruno Haible  <bruno@clisp.org>
8469
8470         btowc: Move AC_LIBOBJ invocations to module description.
8471         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
8472         invocations from here...
8473         * modules/btowc (configure.ac): ... to here.
8474
8475 2011-05-21  Bruno Haible  <bruno@clisp.org>
8476
8477         atexit: Move AC_LIBOBJ invocations to module description.
8478         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
8479         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
8480         here...
8481         * modules/atexit (configure.ac): ... to here.
8482
8483 2011-05-05  Bruno Haible  <bruno@clisp.org>
8484
8485         atoll: Move AC_LIBOBJ invocations to module description.
8486         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
8487         invocations from here...
8488         * modules/atoll (configure.ac): ... to here.
8489
8490 2011-05-05  Bruno Haible  <bruno@clisp.org>
8491
8492         argz: Move AC_LIBOBJ invocations to module description.
8493         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
8494         * modules/argz (configure.ac): ... to here.
8495
8496 2011-05-05  Bruno Haible  <bruno@clisp.org>
8497
8498         alphasort: Move AC_LIBOBJ invocations to module description.
8499         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
8500         gl_PREREQ_ALPHASORT invocations from here...
8501         * modules/alphasort (configure.ac): ... to here.
8502
8503 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8504
8505         verify: new macro verify_expr; verify_true deprecated
8506         * NEWS: Mention this.
8507         * doc/verify.texi (Compile-time Assertions): Document this.
8508         * lib/verify.h (verify_true): Deprecate.
8509         (verify_expr): New macro.
8510         * tests/test-verify.c (function): Test verify_expr.
8511
8512 2011-06-14  Jim Meyering  <meyering@redhat.com>
8513
8514         init.sh: give more portable redirection-related advice in a comment
8515         * tests/init.sh (stderr_fileno_): Update the advice in comments.
8516         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
8517         for lots of discussion.  Stefano Lattarini suggested the solution
8518         of putting "9>&2" after the command.  Reported by Bruno Haible.
8519
8520 2011-06-13  Bruno Haible  <bruno@clisp.org>
8521
8522         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
8523         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
8524         'none'.
8525
8526 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8527
8528         ftoastr: use strtof only if HAVE_STRTOF
8529         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
8530         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
8531         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
8532         * modules/ftoastr (configure.ac): Check for strtof.
8533
8534 2011-06-13  Bruno Haible  <bruno@clisp.org>
8535
8536         gnulib-tool: Addendum to 2011-06-08 commit.
8537         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
8538         and --witness-c-macro have been given, augment AM_CPPFLAGS.
8539
8540 2011-06-13  Bruno Haible  <bruno@clisp.org>
8541
8542         fseeko: Provide a non-inline replacement of fseek().
8543         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
8544         * modules/fseeko (Depends-on): Add fseek.
8545         * modules/fseek (License): Change to LGPLv2+.
8546
8547 2011-06-13  Bruno Haible  <bruno@clisp.org>
8548
8549         ftello: Provide a non-inline replacement of ftell().
8550         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
8551         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
8552         not have ftello() (such as on mingw).
8553         * modules/ftello (Depends-on): Add ftell.
8554         * modules/ftell (License): Change to LGPLv2+.
8555
8556 2011-05-07  Bruno Haible  <bruno@clisp.org>
8557
8558         ftell: Move AC_LIBOBJ invocations to module description.
8559         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
8560         * modules/ftell (configure.ac): ... to here.
8561
8562 2011-05-07  Bruno Haible  <bruno@clisp.org>
8563
8564         ftello: Respect rules for use of AC_LIBOBJ.
8565         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
8566         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
8567         here...
8568         * modules/ftello (configure.ac): ... to here.
8569
8570 2011-05-07  Bruno Haible  <bruno@clisp.org>
8571
8572         fseeko: Simplify.
8573         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
8574         (gl_FUNC_FSEEKO): Inline it here.
8575
8576 2011-05-07  Bruno Haible  <bruno@clisp.org>
8577
8578         fseek: Move AC_LIBOBJ invocations to module description.
8579         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
8580         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8581         * modules/fseek (configure.ac): ... to here.
8582
8583 2011-05-07  Bruno Haible  <bruno@clisp.org>
8584
8585         fseek: Respect rules for use of AC_LIBOBJ.
8586         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
8587         here...
8588         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
8589
8590 2011-05-07  Bruno Haible  <bruno@clisp.org>
8591
8592         fseeko: Respect rules for use of AC_LIBOBJ.
8593         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
8594         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
8595         here...
8596         * modules/fseeko (configure.ac): ... to here.
8597
8598 2011-06-13  Bruno Haible  <bruno@clisp.org>
8599
8600         gnulib-tool: Allow comments in the 'Depends-on' section.
8601         * doc/gnulib.texi (Module description): Mention comment syntax in the
8602         Depends-on section.
8603         * gnulib-tool (func_get_dependencies): Filter out comment lines.
8604
8605 2011-06-13  Bruno Haible  <bruno@clisp.org>
8606
8607         file-set.h: guard __attibute__ use, now that it's not always defined
8608         * lib/file-set.h (record_file): Use __attribute__ only with compiler
8609         versions that support it.  This fixes a coreutils build failure with
8610         the vendor cc on HP-UX 11.31.
8611
8612 2011-06-12  Bruno Haible  <bruno@clisp.org>
8613
8614         acl: Add support for HP-UX >= 11.11 JFS ACLs.
8615         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
8616         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
8617         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
8618         (acl, aclsort): New declarations.
8619         (aclv_nontrivial): New declaration.
8620         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
8621         (file_has_acl): Read also the second kind of HP-UX ACLs.
8622         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
8623         kind of HP-UX ACLs if the first kind fails.
8624         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
8625         second kind of HP-UX ACLs.
8626         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
8627         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
8628         agree.
8629         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8630         hpuxjfs.
8631         Handle hpuxjfs.
8632         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8633         hpuxjfs.
8634         Handle hpuxjfs.
8635         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8636         (func_test_same_acls): Use both lsacl and getacl.
8637         Handle hpuxjfs.
8638         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8639         (func_test_same_acls): Use both lsacl and getacl.
8640         Handle hpuxjfs.
8641
8642 2011-06-12  Bruno Haible  <bruno@clisp.org>
8643
8644         acl: Complete the 2010-08-10 fix.
8645         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
8646         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
8647         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
8648         explicitly.
8649         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
8650         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
8651
8652 2011-06-12  Bruno Haible  <bruno@clisp.org>
8653
8654         spawn-pipe tests: Comments.
8655         * tests/test-spawn-pipe-child.c (main): Update comment.
8656         Reported by James Youngman <jay@gnu.org>.
8657
8658 2011-06-11  James Youngman  <jay@gnu.org>
8659
8660         New module 'stat-size'.
8661         * modules/stat-size: New module.  Provides macros for accessing
8662         file size information in instances of struct stat.  Depends on the
8663         fileblocks module because it calls st_blocks.
8664         * lib/stat-size.h: New file, adapted from coreutils' system.h.
8665         * doc/gnulib.texi: Include stat-size.texi.
8666         * doc/stat-size.texi: Documentation for this module.
8667         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
8668         * m4/fileblocks.m4: Mention that stat-size depends on the call to
8669         AC_STRUCT_ST_BLOCKS.
8670
8671 2011-06-09  Bruno Haible  <bruno@clisp.org>
8672
8673         thread: Support pthreads-win32.
8674         * lib/glthread/thread.h (gl_thread_self): Define differently on
8675         pthreads-win32.
8676         (gl_null_thread): New declaration.
8677         (gl_thread_self_pointer): New macro.
8678         * lib/glthread/thread.c (gl_null_thread): New constant.
8679         * tests/test-lock.c: Use gl_thread_self_pointer instead of
8680         gl_thread_self.
8681         * tests/test-tls.c: Likewise.
8682         Suggested by Paul Eggert. Reported by Eric Blake.
8683
8684 2011-06-09  Bruno Haible  <bruno@clisp.org>
8685
8686         thread: Fix confusion between NULL and 0.
8687         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
8688         Reported by Paul Eggert.
8689
8690 2011-06-09  Bruno Haible  <bruno@clisp.org>
8691
8692         spawn-pipe tests: Avoid test failure on HP-UX 11.
8693         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
8694         is closed.
8695
8696 2011-06-09  Bruno Haible  <bruno@clisp.org>
8697
8698         acl tests: Fix compilation error on HP-UX 11.
8699         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
8700
8701 2011-06-09  Bruno Haible  <bruno@clisp.org>
8702
8703         rmdir: Avoid test failure on HP-UX 10.20.
8704         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
8705         EEXIST.
8706
8707 2011-06-08  Eric Blake  <eblake@redhat.com>
8708
8709         perror: fix test on mingw
8710         * modules/perror-tests (Depends-on): Add dup2.
8711
8712         strerror_r-posix: fix on MacOS
8713         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
8714         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
8715         logic bug.
8716         * lib/strerror_r.c (strerror_r): Fix the bug.
8717         * lib/strerror.c (strerror): Likewise.
8718         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8719         problem.
8720         * doc/posix-functions/strerror.texi (strerror): Likewise.
8721         * doc/posix-functions/perror.texi (perror): Likewise.
8722         * tests/test-strerror.c (main): Enhance test.
8723         * tests/test-strerror_r.c (main): Likewise.
8724
8725 2011-06-08  Bruno Haible  <bruno@clisp.org>
8726
8727         gnulib-tool: Better isolation between different gnulib-tool invocations.
8728         * gnulib-tool: New option --witness-c-macro.
8729         (witness_c_macro): New variable.
8730         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
8731         AM_CPPFLAGS define it as a C macro.
8732         (func_emit_tests_Makefile_am): Likewise.
8733         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
8734         read it from there.
8735         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
8736         m4_define, not AC_DEFUN.
8737         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
8738         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
8739         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
8740         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
8741         s|...|...|, to substitute the values of the GNULIB_* module indicator
8742         variables.
8743         * modules/dirent (Makefile.am): Likewise.
8744         * modules/fcntl-h (Makefile.am): Likewise.
8745         * modules/iconv-h (Makefile.am): Likewise.
8746         * modules/langinfo (Makefile.am): Likewise.
8747         * modules/locale (Makefile.am): Likewise.
8748         * modules/math (Makefile.am): Likewise.
8749         * modules/netdb (Makefile.am): Likewise.
8750         * modules/poll-h (Makefile.am): Likewise.
8751         * modules/pty (Makefile.am): Likewise.
8752         * modules/search (Makefile.am): Likewise.
8753         * modules/signal (Makefile.am): Likewise.
8754         * modules/spawn (Makefile.am): Likewise.
8755         * modules/stdio (Makefile.am): Likewise.
8756         * modules/stdlib (Makefile.am): Likewise.
8757         * modules/string (Makefile.am): Likewise.
8758         * modules/sys_ioctl (Makefile.am): Likewise.
8759         * modules/sys_select (Makefile.am): Likewise.
8760         * modules/sys_socket (Makefile.am): Likewise.
8761         * modules/sys_stat (Makefile.am): Likewise.
8762         * modules/sys_times (Makefile.am): Likewise.
8763         * modules/sys_utsname (Makefile.am): Likewise.
8764         * modules/sys_wait (Makefile.am): Likewise.
8765         * modules/termios (Makefile.am): Likewise.
8766         * modules/time (Makefile.am): Likewise.
8767         * modules/unistd (Makefile.am): Likewise.
8768         * modules/wchar (Makefile.am): Likewise.
8769
8770 2011-06-08  Eric Blake  <eblake@redhat.com>
8771
8772         strerror: simplify replacement
8773         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
8774         * modules/strerror (configure.ac): No prereqs needed here...
8775         * modules/strerror-override (configure.ac): ...but this needs it.
8776         (Files): Add file for needed prereq macro.
8777
8778 2011-06-08  Bruno Haible  <bruno@clisp.org>
8779
8780         strerror_r-posix: Tweaks.
8781         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
8782         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
8783         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
8784         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
8785         (gl_FUNC_STRERROR_R): ... to here.
8786         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
8787
8788 2011-06-07  Eric Blake  <eblake@redhat.com>
8789
8790         perror: document fixed bugs
8791         * doc/posix-functions/perror.texi (perror): Document recent
8792         patches.
8793
8794 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8795
8796         stat-time: get_stat_birthtime failure is better-defined
8797         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
8798         return a timestamp whose tv_sec and tv_nsec values are both -1.
8799         Previously, the spec said only that the tv_nsec value was negative.
8800         This upward-compatible change simplifies GNU tar a bit.
8801
8802 2011-06-07  Eric Blake  <eblake@redhat.com>
8803
8804         strerror_r-posix: work around cygwin 1.7.9
8805         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
8806         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
8807         bug without replacing strerror_r.
8808         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
8809         strerror_r is buggy, but without requiring strerror_r compilation.
8810         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
8811
8812         test-perror: relax test to ignore cygwin bug
8813         * tests/test-perror2.c (main): Relax test on requiring detection
8814         of stream errors, and use unbuffered stream.
8815         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
8816         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
8817         * doc/posix-functions/fputc.texi (fputc): Likewise.
8818         * doc/posix-functions/fputs.texi (fputs): Likewise.
8819         * doc/posix-functions/fputws.texi (fputws): Likewise.
8820         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
8821         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
8822         * doc/posix-functions/getopt.texi (getopt): Likewise.
8823         * doc/posix-functions/perror.texi (perror): Likewise.
8824         * doc/posix-functions/printf.texi (printf): Likewise.
8825         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
8826         * doc/posix-functions/psignal.texi (psignal): Likewise.
8827         * doc/posix-functions/putc.texi (putc): Likewise.
8828         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
8829         Likewise.
8830         * doc/posix-functions/putchar.texi (putchar): Likewise.
8831         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
8832         Likewise.
8833         * doc/posix-functions/puts.texi (puts): Likewise.
8834         * doc/posix-functions/putwc.texi (putwc): Likewise.
8835         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8836         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8837         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8838         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8839         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8840         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8841         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8842         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8843
8844 2011-05-22  Bruno Haible  <bruno@clisp.org>
8845
8846         strerror: Move AC_LIBOBJ invocations to module description.
8847         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
8848         gl_PREREQ_STRERROR invocations from here...
8849         * modules/strerror (configure.ac): ... to here.
8850
8851 2011-05-21  Bruno Haible  <bruno@clisp.org>
8852
8853         perror: Use common idiom.
8854         * modules/perror (configure.ac): Reorder statements.
8855
8856 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8857
8858         tests: fix usage message in 'mktempd_'
8859         * tests/init.sh (mktempd_): In the usage message, use literal
8860         'mktempd_', not '$ME' (which is even undefined), as the name of
8861         the subroutine.
8862
8863 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8864
8865         tests init: new function 'fatal_', for hard errors
8866         Before this patch, the only way offered by tests/init.sh to
8867         properly signal a hard error was the `framework_failure_'
8868         function.  But the error message issued by that function,
8869         as its name would suggest, refers to a set-up failure in the
8870         testsuite, while hard errors can obviously also be due to
8871         other reasons.  The best way to fix this inconsistency is to
8872         introduce a new function with a more general error message.
8873         * tests/init.sh (fatal_): New function.
8874
8875 2011-06-06  Eric Blake  <eblake@redhat.com>
8876
8877         canonicalize-lgpl: use common idiom
8878         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
8879         over newer POSIX -Rf.
8880         Reported by Bruno Haible.
8881
8882         canonicalize-lgpl: work around AIX realpath bug
8883         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
8884         * doc/posix-functions/realpath.texi (realpath): Document it.
8885         Reported by Bruno Haible.
8886
8887         strerror: work around FreeBSD bug
8888         * lib/strerror.c (strerror): Special case 0.
8889         Reported by Bruno Haible.
8890
8891         strerror-override: avoid bloating errno module
8892         * modules/errno (Files, configure.ac): Move replacement strings...
8893         * modules/strerror-override: ...to new module.
8894         * modules/strerror (Depends-on): Add strerror-override.
8895         * modules/strerror_r-posix (Depends-on): Likewise.
8896         * MODULES.html.sh: Document new module.
8897         Reported by Bruno Haible.
8898
8899 2011-06-06  Bruno Haible  <bruno@clisp.org>
8900
8901         spawn-pipe tests: Rename program.
8902         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
8903         * tests/test-spawn-pipe-child.c: Update comment.
8904         * tests/test-spawn-pipe.sh: Update.
8905         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
8906
8907         spawn-pipe tests: Link the child program only against libc.
8908         * tests/test-spawn-pipe-child.c: New file, extracted from
8909         tests/test-spawn-pipe.c.
8910         (main): Expect only one argument.
8911         (is_open): New function, copied from tests/test-pipe.c.
8912         * tests/test-spawn-pipe.c: Don't include <errno.h>.
8913         (child_main): Remove function.
8914         (test_pipe): Pass only one argument to the child program.
8915         (main): Remove child process code. Expect the child program's name as
8916         first argument.
8917         * tests/test-spawn-pipe.sh: Pass the child program's name as first
8918         argument.
8919         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
8920         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
8921         test-spawn-pipe-child against no libraries.
8922
8923 2011-06-06  Bruno Haible  <bruno@clisp.org>
8924
8925         careadlinkat: Avoid mismatch between ssize_t and int.
8926         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
8927         * lib/careadlinkat.c (careadlinkatcwd): Define always.
8928
8929 2011-06-06  Jim Meyering  <meyering@redhat.com>
8930
8931         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
8932         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
8933         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
8934
8935 2011-06-05  Bruno Haible  <bruno@clisp.org>
8936
8937         ansi-c++-opt: Interoperability with libtool.
8938         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
8939         set the variable to "no", not to ":".
8940         * NEWS: Mention the change.
8941
8942 2011-06-05  Bruno Haible  <bruno@clisp.org>
8943
8944         acl: Fix test failure on AIX 7.
8945         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
8946         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
8947
8948 2011-06-05  Bruno Haible  <bruno@clisp.org>
8949
8950         pipe-filter-ii: Fix test failure on AIX and IRIX.
8951         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
8952         with EAGAIN, retry with a smaller buffer size.
8953
8954 2011-06-05  Bruno Haible  <bruno@clisp.org>
8955
8956         localename: Fix link dependencies.
8957         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
8958         * modules/localename-tests (Makefile.am): Link test-localename with
8959         $(LIBTHREAD).
8960
8961 2011-06-05  Bruno Haible  <bruno@clisp.org>
8962
8963         error: Avoid gcc warning.
8964         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
8965
8966 2011-06-05  Bruno Haible  <bruno@clisp.org>
8967
8968         unsetenv: Avoid gcc warning.
8969         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
8970
8971 2011-06-05  Bruno Haible  <bruno@clisp.org>
8972
8973         setenv: Avoid gcc warning.
8974         * lib/setenv.c (setenv): Provide declaration if system lacks it.
8975
8976 2011-06-05  Bruno Haible  <bruno@clisp.org>
8977
8978         sys_select: Ensure memset is declared also on AIX 7.
8979         * lib/sys_select.in.h: Include <string.h> also on AIX.
8980         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
8981         self-contained also on AIX 7.1.
8982
8983 2011-06-04  Jim Meyering  <meyering@redhat.com>
8984
8985         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
8986         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
8987         function name, "error".
8988         (_gl_translatable_diag_func_re): New configurable variable.
8989
8990 2011-06-04  Bruno Haible  <bruno@clisp.org>
8991
8992         getopt: Avoid gcc warning.
8993         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
8994
8995 2011-06-04  Bruno Haible  <bruno@clisp.org>
8996
8997         strerror_r: Fix comments.
8998         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
8999         commit.
9000
9001 2011-06-04  Bruno Haible  <bruno@clisp.org>
9002
9003         perror: Fix compilation error.
9004         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9005         Undefine fprintf, not sprintf.
9006         * modules/perror (Depends-on): Remove intprops, verify.
9007
9008 2011-06-04  Bruno Haible  <bruno@clisp.org>
9009
9010         setlocale: Enable replacement on Cygwin 1.5.
9011         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9012         Cygwin 1.5.x.
9013         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9014         LC_CTYPE category also exists on Cygwin 1.5.x.
9015
9016 2011-06-04  Bruno Haible  <bruno@clisp.org>
9017
9018         strerror-override: Don't disable symbol renamings.
9019         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9020         * lib/strerror-override.c: Include config.h.
9021         (strerror_override): Don't undefine.
9022
9023 2011-06-03  Bruno Haible  <bruno@clisp.org>
9024
9025         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9026         * lib/localename.h: Update copyright header.
9027         * lib/localename.c: Likewise.
9028         * lib/relocatable.h: Likewise.
9029         * lib/relocatable.c: Likewise.
9030
9031 2011-06-02  Bruno Haible  <bruno@clisp.org>
9032
9033         doc: Fix a module name.
9034         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9035
9036 2011-06-02  Bruno Haible  <bruno@clisp.org>
9037
9038         pipe2: Remove dependency on 'nonblocking' module.
9039         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9040         O_NONBLOCK is defined by gnulib.
9041         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9042         is zero.
9043         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9044         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9045         defined by gnulib.
9046         (get_nonblocking_flag): New function.
9047         (main): Test O_NONBLOCK flag only if it is nonzero.
9048         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9049
9050 2011-06-03  Jim Meyering  <meyering@redhat.com>
9051
9052         maint: three new prohibit-header-without-use rules
9053         Prohibit use of cloexec.h, posixver.h, same.h without use.
9054         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9055         (sc_prohibit_posixver_without_use): Likewise.
9056         (sc_prohibit_same_without_use): Likewise.
9057
9058 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9059
9060         allocator: 'die' routine is now given requested size
9061         * lib/allocator.h (struct allocator.die): New size arg.
9062         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9063         If the actual problem is an ssize_t limitation, not a size_t or
9064         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9065
9066 2011-06-01  Eric Blake  <eblake@redhat.com>
9067
9068         strerror: drop strerror_r dependency
9069         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9070         * lib/strerror-override.c (strerror_override): ...to new file.
9071         * lib/strerror-override.h: Add prototype.
9072         * lib/strerror-impl.h: Delete.
9073         * lib/strerror.c (strerror): New implementation.
9074         * modules/errno (Files): Add new files.
9075         (configure.ac): Compile new file as appropriate.
9076         * modules/strerror (Files): Drop unused file.
9077         (Depends-on): Drop strerror_r-posix.
9078         * MODULES.html.sh: Document strerror_r-posix.
9079         Requested by Sam Steingold.
9080
9081         perror: call strerror_r directly
9082         * modules/perror (Files): Drop strerror-impl.h.
9083         * lib/perror.c (perror): Use our own stack buffer, rather than
9084         calling a wrapper that uses static storage.
9085         * doc/posix-functions/perror.texi (perror): Document a limitation
9086         of our replacement.
9087
9088         strerror_r: fix includes for FreeBSD
9089         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9090         since we use abort on some platforms.
9091         Reported by Matthias Bolte.
9092
9093 2011-05-31  Bruno Haible  <bruno@clisp.org>
9094
9095         Fix link errors in tests: openat-die uses gettext-h.
9096         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9097         against $(LIBINTL).
9098         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9099         against $(LIBINTL).
9100         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9101         $(LIBINTL).
9102         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9103         against $(LIBINTL).
9104         * modules/linkat-tests (Makefile.am): Link test-linkat against
9105         $(LIBINTL).
9106         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9107         $(LIBINTL).
9108         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9109         against $(LIBINTL).
9110         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9111         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9112         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9113         $(LIBINTL).
9114         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9115         $(LIBINTL).
9116         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9117         $(LIBINTL).
9118         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9119
9120 2011-05-31  Bruno Haible  <bruno@clisp.org>
9121
9122         Fix link errors in tests: wait-process uses gettext-h.
9123         * modules/nonblocking-pipe-tests (Makefile.am): Set
9124         test_nonblocking_pipe_main_LDADD.
9125         * modules/nonblocking-socket-tests (Makefile.am): Link
9126         test-nonblocking-socket-main against $(LIBINTL).
9127         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9128
9129 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9130
9131         assert-h: work around 'verify' incompatibility
9132         * lib/verify.h: Use @...@ directives, not ifdef.
9133         * modules/assert-h (assert.h): Implement the directives.
9134         (assert.h): Substitute the symbol-prefix more consistently.
9135
9136 2011-05-29  Jim Meyering  <meyering@redhat.com>
9137
9138         trim: remove three superfluous assignments
9139         * lib/trim.c (trim2): Remove three superfluous assignments
9140         and correct brace positioning.
9141
9142 2011-05-29  Bruno Haible  <bruno@clisp.org>
9143
9144         wctype-h: Avoid namespace pollution on Solaris 2.6.
9145         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9146         identifiers.
9147         * doc/posix-headers/wctype.texi: Mention the problem.
9148         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9149
9150 2011-05-28  Jim Meyering  <meyering@redhat.com>
9151
9152         parse-datetime.y: accommodate -Wstrict-overflow
9153         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9154         placate -Wstrict-overflow.
9155
9156         trim: avoid a warning from -O2 -Wstrict-overflow
9157         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9158
9159 2011-05-29  Bruno Haible  <bruno@clisp.org>
9160
9161         gnulib-tool: Fix bug in yesterday's commit.
9162         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9163         twice.
9164
9165 2011-05-29  Bruno Haible  <bruno@clisp.org>
9166
9167         Allow multiple gnulib generated include files to be combined.
9168         * gnulib-tool (func_compute_include_guard_prefix): New function.
9169         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9170         ${gl_include_guard_prefix} references.
9171         (func_import, func_create_testdir): Invoke
9172         func_compute_include_guard_prefix.
9173         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9174         * lib/ctype.in.h: Likewise.
9175         * lib/dirent.in.h: Likewise.
9176         * lib/errno.in.h: Likewise.
9177         * lib/fcntl.in.h: Likewise.
9178         * lib/float.in.h: Likewise.
9179         * lib/getopt.in.h: Likewise.
9180         * lib/iconv.in.h: Likewise.
9181         * lib/langinfo.in.h: Likewise.
9182         * lib/locale.in.h: Likewise.
9183         * lib/math.in.h: Likewise.
9184         * lib/netdb.in.h: Likewise.
9185         * lib/netinet_in.in.h: Likewise.
9186         * lib/poll.in.h: Likewise.
9187         * lib/pthread.in.h: Likewise.
9188         * lib/pty.in.h: Likewise.
9189         * lib/sched.in.h: Likewise.
9190         * lib/se-selinux.in.h: Likewise.
9191         * lib/search.in.h: Likewise.
9192         * lib/signal.in.h: Likewise.
9193         * lib/spawn.in.h: Likewise.
9194         * lib/stdarg.in.h: Likewise.
9195         * lib/stddef.in.h: Likewise.
9196         * lib/stdint.in.h: Likewise.
9197         * lib/stdio.in.h: Likewise.
9198         * lib/stdlib.in.h: Likewise.
9199         * lib/string.in.h: Likewise.
9200         * lib/strings.in.h: Likewise.
9201         * lib/sys_file.in.h: Likewise.
9202         * lib/sys_ioctl.in.h: Likewise.
9203         * lib/sys_select.in.h: Likewise.
9204         * lib/sys_socket.in.h: Likewise.
9205         * lib/sys_stat.in.h: Likewise.
9206         * lib/sys_time.in.h: Likewise.
9207         * lib/sys_times.in.h: Likewise.
9208         * lib/sys_uio.in.h: Likewise.
9209         * lib/sys_utsname.in.h: Likewise.
9210         * lib/sys_wait.in.h: Likewise.
9211         * lib/sysexits.in.h: Likewise.
9212         * lib/termios.in.h: Likewise.
9213         * lib/time.in.h: Likewise.
9214         * lib/unistd.in.h: Likewise.
9215         * lib/wchar.in.h: Likewise.
9216         * lib/wctype.in.h: Likewise.
9217         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9218         * modules/ctype (Makefile.am): Likewise.
9219         * modules/dirent (Makefile.am): Likewise.
9220         * modules/errno (Makefile.am): Likewise.
9221         * modules/fcntl-h (Makefile.am): Likewise.
9222         * modules/float (Makefile.am): Likewise.
9223         * modules/getopt-posix (Makefile.am): Likewise.
9224         * modules/iconv-h (Makefile.am): Likewise.
9225         * modules/langinfo (Makefile.am): Likewise.
9226         * modules/locale (Makefile.am): Likewise.
9227         * modules/math (Makefile.am): Likewise.
9228         * modules/netdb (Makefile.am): Likewise.
9229         * modules/netinet_in (Makefile.am): Likewise.
9230         * modules/poll-h (Makefile.am): Likewise.
9231         * modules/pthread (Makefile.am): Likewise.
9232         * modules/pty (Makefile.am): Likewise.
9233         * modules/sched (Makefile.am): Likewise.
9234         * modules/search (Makefile.am): Likewise.
9235         * modules/selinux-h (Makefile.am): Likewise.
9236         * modules/signal (Makefile.am): Likewise.
9237         * modules/spawn (Makefile.am): Likewise.
9238         * modules/stdarg (Makefile.am): Likewise.
9239         * modules/stddef (Makefile.am): Likewise.
9240         * modules/stdint (Makefile.am): Likewise.
9241         * modules/stdio (Makefile.am): Likewise.
9242         * modules/stdlib (Makefile.am): Likewise.
9243         * modules/string (Makefile.am): Likewise.
9244         * modules/strings (Makefile.am): Likewise.
9245         * modules/sys_file (Makefile.am): Likewise.
9246         * modules/sys_ioctl (Makefile.am): Likewise.
9247         * modules/sys_select (Makefile.am): Likewise.
9248         * modules/sys_socket (Makefile.am): Likewise.
9249         * modules/sys_stat (Makefile.am): Likewise.
9250         * modules/sys_time (Makefile.am): Likewise.
9251         * modules/sys_times (Makefile.am): Likewise.
9252         * modules/sys_uio (Makefile.am): Likewise.
9253         * modules/sys_utsname (Makefile.am): Likewise.
9254         * modules/sys_wait (Makefile.am): Likewise.
9255         * modules/sysexits (Makefile.am): Likewise.
9256         * modules/termios (Makefile.am): Likewise.
9257         * modules/time (Makefile.am): Likewise.
9258         * modules/unistd (Makefile.am): Likewise.
9259         * modules/wchar (Makefile.am): Likewise.
9260         * modules/wctype-h (Makefile.am): Likewise.
9261         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
9262
9263 2011-05-29  Bruno Haible  <bruno@clisp.org>
9264
9265         assert-h: Allow multiple gnulib generated replacements to coexist.
9266         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
9267
9268 2011-05-29  Bruno Haible  <bruno@clisp.org>
9269
9270         argp: Allow coexistence with strerror_r-posix module.
9271         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
9272         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
9273         by gnulib's <string.h> replacement), assume it has the POSIX signature,
9274         not the glibc signature.
9275
9276 2011-05-28  Bruno Haible  <bruno@clisp.org>
9277
9278         gnulib-tool: Alternative structure of testdirs, similar to --import.
9279         * gnulib-tool: New option --single-configure.
9280         (func_usage): Document it.
9281         (single_configure): New variable.
9282         (func_modules_transitive_closure_separately,
9283         func_modules_transitive_closure_separately,
9284         func_determine_use_libtests, func_modules_add_dummy_separately,
9285         func_modules_to_filelist_separately): New functions, extracted from
9286         func_import.
9287         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
9288         (func_import): Use the new functions.
9289         (func_create_testdir): Set final_modules. Handle $single_configure =
9290         true case.
9291
9292 2011-05-28  Bruno Haible  <bruno@clisp.org>
9293
9294         getloadavg: Remove an unreliable safety check.
9295         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
9296         getloadavg.c is in place.
9297         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
9298         Reported by Sam Steingold <sds@gnu.org>.
9299
9300 2011-05-28  Bruno Haible  <bruno@clisp.org>
9301
9302         doc: Cleanup yet another file produced by texinfo.tex.
9303         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
9304
9305 2011-05-28  Bruno Haible  <bruno@clisp.org>
9306
9307         Finish the conditional dependencies mechanism.
9308         * gnulib-tool: New option --no-conditional-dependencies.
9309         (func_usage): Document it. Don't mark --conditional-dependencies as
9310         experimental.
9311         (cond_dependencies): The possible values can now be true, false, empty.
9312         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
9313         (func_import): Store setting in gnulib-cache.m4 and read it from there.
9314         * doc/gnulib-tool.texi (Conditional dependencies): New section.
9315
9316 2011-05-28  Bruno Haible  <bruno@clisp.org>
9317
9318         doc: Use a recent texinfo.tex.
9319         * doc/Makefile (tex_opts): New variable.
9320         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
9321
9322 2011-05-28  Jim Meyering  <meyering@redhat.com>
9323
9324         intprops.h: adjust comment to match code change
9325         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
9326         only once, it *may* have side effects.  Also fix an unrelated typo.
9327         (_GL_INT_SIGNED): Likewise.
9328
9329 2011-05-26  Simon Josefsson  <simon@josefsson.org>
9330
9331         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
9332
9333 2011-05-26  Bruno Haible  <bruno@clisp.org>
9334
9335         mbsrchr: Avoid collision with system function on Interix.
9336         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
9337         Reported by Markus Duft <mduft@gentoo.org>.
9338
9339 2011-05-15  James Youngman  <jay@gnu.org>
9340
9341         getopt: for ambiguous options, enumerate the possibilities.
9342         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
9343         the ambiguous options when an ambiguous prefix is given. This was
9344         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9345         glibc change was
9346         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9347
9348 2011-05-25  Eric Blake  <eblake@redhat.com>
9349
9350         getcwd: work around mingw bug
9351         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9352         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9353         Reported by Matthias Bolte.
9354
9355 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9356
9357         test-intprops: disable -Wtype-limits diagnostics
9358         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9359         diagnostics.  Otherwise, the integer overflow macros generate many
9360         diagnostics.  Reported by Jim Meyering in
9361         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9362
9363         intprops: shorten, to pacify gcc -Woverlength-strings
9364         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9365         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9366         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9367         likely to run afoul of C compiler limits for string constant lengths.
9368         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9369
9370 2011-05-24  Eric Blake  <eblake@redhat.com>
9371
9372         docs: document recently fixed glibc printf bug
9373         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9374         * doc/posix-functions/printf.texi (printf): Likewise.
9375         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9376         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9377
9378         closein-tests: convert to init.sh
9379         * modules/closein-tests (Files): Add init.sh
9380         * tests/test-closein.sh Use it.
9381
9382         yesno-tests: convert to init.sh
9383         * modules/yesno-tests (Files): Add init.sh.
9384         * tests/test-yesno.sh: Use it.
9385
9386         atexit-tests: ensure reliable exit status
9387         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
9388         Reported by Bruno Haible.
9389
9390 2011-05-24  Bruno Haible  <bruno@clisp.org>
9391
9392         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
9393         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
9394         gl_PREREQ_STRERROR_R invocations from here...
9395         * modules/strerror_r-posix (configure.ac): ... to here.
9396
9397 2011-05-24  Eric Blake  <eblake@redhat.com>
9398
9399         strerror_r: fix missing header
9400         * lib/strerror_r.c: Avoid compiler warning about snprintf.
9401
9402         strerror_r: fix AIX test failures
9403         * lib/strerror_r.c (strerror_r): Convert silent truncation to
9404         ERANGE failure.
9405
9406         strerror_r: fix Solaris test failures
9407         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
9408         failures.
9409         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9410
9411         strerror_r: enforce POSIX recommendations
9412         * lib/strerror_r.c (safe_copy): New helper method.
9413         (strerror_r): Guarantee a non-empty string.
9414         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9415         recent POSIX rulings and to match our strerror guarantees.
9416         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9417
9418 2011-05-24  Jim Meyering  <meyering@redhat.com>
9419
9420         test-perror2.c: avoid warning about unused variable
9421         * tests/test-perror2.c (main): Remove declaration of unused "fp".
9422
9423 2011-05-24  Eric Blake  <eblake@redhat.com>
9424
9425         perror: avoid spurious test failure on HP-UX
9426         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
9427
9428         tests: fix logic bug in init.sh
9429         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
9430         shell.
9431
9432 2011-05-24  Jim Meyering  <meyering@redhat.com>
9433
9434         utimensat: do not reference an out-of-scope buffer
9435         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
9436         declared in an inner scope, yet "times" would be dereferenced outside
9437         the scope in which "ts" was valid.
9438         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
9439         of ts[2] "out/up", so that the use of aliased "times" (via
9440         "times = ts;") does not end up referencing an out-of-scope "ts"
9441
9442         opendir-safer.c: don't clobber errno; don't close negative FD
9443         * lib/opendir-safer.c (opendir_safer):
9444         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
9445         file descriptor, and more importantly, don't clobber the
9446         offending errno value with EINVAL.  Before, upon failure
9447         of dup_safer, we would pass the negative file descriptor to
9448         fdopendir, which would clobber errno.
9449
9450 2011-05-23  Bruno Haible  <bruno@clisp.org>
9451
9452         idcache: Fix module description.
9453         * modules/idcache (Include): Set to "idcache.h".
9454
9455 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9456
9457         gnulib-tool: fix portability problem with MacOS sed
9458         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
9459         before the "}".  Problem reported by Leo in
9460         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
9461         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
9462         sed_extract_condition1, sed_extract_condition2.
9463
9464 2011-05-23  Bruno Haible  <bruno@clisp.org>
9465
9466         hash: Simplify autoconf macro.
9467         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
9468
9469 2011-05-23  Bruno Haible  <bruno@clisp.org>
9470
9471         getugroups: Fix module description.
9472         * modules/getugroups (Include): Set to "getugroups.h".
9473
9474 2011-05-23  Bruno Haible  <bruno@clisp.org>
9475
9476         linkat: Simplify autoconf macro.
9477         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
9478
9479 2011-05-23  Bruno Haible  <bruno@clisp.org>
9480             Eric Blake  <eblake@redhat.com>
9481
9482         linkat, renameat: Update dependencies.
9483         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
9484         * modules/linkat (Depends-on): Likewise. Remove also readlink,
9485         symlinkat.
9486
9487 2011-05-23  Jim Meyering  <meyering@redhat.com>
9488
9489         maint.mk: more tight_scope improvements
9490         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
9491         (_gl_TS_headers): Define only in if-0'd block.
9492         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
9493         sometimes we must *not* use it.  Adjust uses accordingly.
9494         (sc_tight_scope): Use much simpler grep-based test to determine
9495         whether we skip this rule.
9496
9497         maint.mk: generalize/improve the tight-scope rule
9498         * top/maint.mk: Emit a warning when the test is skipped.
9499         (_gl_TS_dir): Add $(srcdir)/ prefix.
9500         (_gl_TS_function_match): Simplify, rather than trying
9501         to enumerate common types.  Otherwise, it would fail to match an
9502         "extern unsigned char const *" declaration in idutils.
9503         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
9504         a way to support use of that type of macro.
9505         (_gl_TS_var_match): Simplify regexp.
9506         (_gl_TS_obj_files): New configurable variable.
9507         (_gl_TS_headers): Likewise.
9508
9509 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9510
9511         verify: fix bug when gnulib <assert.h> is also included
9512         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
9513         is defined, not if _GL_STATIC_ASSERT_H is not defined.
9514         Perhaps there's a better way, but this fixes the immediate problem.
9515         Problem reported by Bruno Haible in
9516         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
9517
9518 2011-05-22  Bruno Haible  <bruno@clisp.org>
9519
9520         xgetcwd: Simplify autoconf macro.
9521         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
9522
9523 2011-05-22  Bruno Haible  <bruno@clisp.org>
9524
9525         New module 'mktime-internal'.
9526         * modules/mktime-internal: New file.
9527         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
9528         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
9529         mktime_internal as a C macro if libc has __mktime_internal.
9530         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
9531         conditions.
9532         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
9533
9534 2011-05-22  Bruno Haible  <bruno@clisp.org>
9535
9536         timegm: Correct mktime replacement statements.
9537         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
9538         defining mktime as a C macro. This completes a 2009-07-28 commit.
9539
9540 2011-05-22  Bruno Haible  <bruno@clisp.org>
9541
9542         timegm: Simplify autoconf macro.
9543         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
9544
9545 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9546
9547         clock-time: change to LGPLv2+.
9548         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
9549         BSD-like but we have no mark for that; this is good enough for now.
9550
9551 2011-05-21  Bruno Haible  <bruno@clisp.org>
9552
9553         strerror_r: Fix comments.
9554         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
9555
9556 2011-05-21  Bruno Haible  <bruno@clisp.org>
9557
9558         relocatable-prog-wrapper: Fix possible link error.
9559         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
9560         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
9561         (gl_FUNC_SETENV): ... to here.
9562         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
9563         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
9564
9565 2011-05-21  Bruno Haible  <bruno@clisp.org>
9566
9567         relocatable-prog-wrapper: Assume strerror() exists.
9568         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
9569         m4/strerror.m4.
9570         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
9571         * lib/relocwrapper.c: Remove mention of strerror module.
9572         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
9573         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
9574         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
9575         C macro.
9576
9577 2011-05-21  Bruno Haible  <bruno@clisp.org>
9578
9579         select: Simplify replacement idiom.
9580         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
9581         Win32 platforms.
9582         * lib/sys_select.in.h (select): Simplify accordingly.
9583         * modules/select (Depends-on): Likewise.
9584
9585 2011-05-21  Bruno Haible  <bruno@clisp.org>
9586
9587         mkdir-p: Simplify autoconf macro.
9588         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
9589         gl_FUNC_LCHOWN.
9590
9591 2011-05-21  Eric Blake  <eblake@redhat.com>
9592
9593         strerror_r: avoid clobbering strerror on cygwin
9594         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
9595         fall back instead to sys_errlist.
9596         * modules/strerror (configure.ac): Add witness.
9597         * tests/test-strerror_r.c (main): Enhance test.
9598         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9599         * tests/test-perror2.c (main): Free memory before exit.
9600
9601 2011-05-21  Bruno Haible  <bruno@clisp.org>
9602
9603         mkdtemp: Use gnulib naming conventions.
9604         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
9605         * modules/mkdtemp (configure.ac): Update.
9606
9607 2011-05-20  Eric Blake  <eblake@redhat.com>
9608
9609         strerror_r: avoid corrupting errno on Solaris
9610         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
9611         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9612
9613         strerror_r: avoid compiler warning
9614         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
9615
9616         strerror_r: simplify AIX code
9617         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
9618
9619         test-perror: avoid spurious failure on FreeBSD
9620         * modules/perror-tests (Depends-on): Add strerror, now that
9621         strerror_r no longer pulls it in.
9622
9623 2011-05-20  Bruno Haible  <bruno@clisp.org>
9624
9625         strerror_r-posix: Remove unused dependencies.
9626         * modules/strerror_r-posix (Depends-on): Remove strerror.
9627         Reported by Eric Blake.
9628
9629 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
9630
9631         intprops: remove assumption about A|B representation
9632         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
9633         is a valid integer if both A and B are.  Although this is true for
9634         all known practical hosts, the C standard doesn't guarantee it,
9635         and the code need not assume it.  Also, this change may work around
9636         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
9637         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
9638
9639 2011-05-20  Eric Blake  <eblake@redhat.com>
9640
9641         perror: work around FreeBSD bug
9642         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
9643         is broken.  Move AC_LIBOBJ...
9644         * modules/perror (configure.ac): Here.
9645         * doc/posix-functions/perror.texi (perror): Document this.
9646         * tests/test-perror2.c (main): Enhance test.
9647
9648         test-perror: check for strerror interactions
9649         * tests/macros.h (STREQ): Add macro.
9650         * modules/perror-tests (Files): Add second test.
9651         * tests/test-perror2.c (main): New file.
9652         * doc/posix-functions/perror.texi (perror): Document glibc bug.
9653
9654         test-perror: rewrite to use init script
9655         * modules/perror-tests (Files): Add init.sh.
9656         * tests/test-perror.sh: Use temporary directory.
9657
9658 2011-05-20  Jim Meyering  <meyering@redhat.com>
9659
9660         maint: replace misused "a" with "an"
9661         * doc/intprops.texi: "a integer"
9662         * doc/regex.texi: "a explanation"
9663         * lib/alignof.h: "a object"
9664         * lib/argmatch.h: "a explanation"
9665         * lib/argp-help.c: "a option" and "a OPTION_DOC"
9666         * lib/stdint.in.h: "a integer"
9667         * lib/userspec.c: "a owner"
9668         * doc/gnulib.texi: Fix "a idea", and reword.
9669
9670 2011-05-19  Jim Meyering  <meyering@redhat.com>
9671
9672         maint: correct misuse of "a" and "an"
9673         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
9674         * lib/argp-help.c: "an docum...": s/an/a/
9675         * lib/argp-parse.c: "An vector": s/An/A/
9676         * lib/execute.c: "an native": s/an/a/
9677         * lib/spawn-pipe.c: Likewise.
9678         * lib/gc.h: "an Gc_rc": s/an/a/
9679         * lib/unigbrk.in.h: "an grapheme": s/an/a/
9680         * lib/fts.c: "an stat.st_dev": s/an/a/
9681
9682 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9683
9684         intprops-tests: work around HP-UX 11.23 cc bug with constants
9685         * tests/test-intprops.c (VERIFY): New macro.
9686         (main): Use it, instead of verify, to work around the compiler bug; see
9687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9688
9689         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
9690         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
9691         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
9692         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
9693         (_GL_REMAINDER_OVERFLOW): Use it.
9694
9695         intprops-tests: revert unsigned part of previous change
9696         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
9697         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
9698         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
9699         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
9700
9701 2011-05-19  Bruno Haible  <bruno@clisp.org>
9702
9703         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
9704         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
9705         strerror_r() returned without filling the buffer.
9706         Reported by Eric Blake.
9707
9708 2011-05-19  Eric Blake  <eblake@redhat.com>
9709
9710         strerror_r: guarantee unchanged errno
9711         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
9712         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
9713         failure.
9714         * tests/test-strerror_r.c (main): Enhance test.
9715
9716 2011-05-19  Bruno Haible  <bruno@clisp.org>
9717
9718         strerror_r: Reorder #if blocks.
9719         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
9720         for consistency with the previous commit.
9721
9722 2011-05-19  Bruno Haible  <bruno@clisp.org>
9723
9724         perror: Avoid clobbering the strerror buffer when possible.
9725         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
9726         * lib/strerror.c: Include it.
9727         * modules/strerror (Files): Add lib/strerror-impl.h.
9728         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
9729         (my_strerror): New function, defined through lib/strerror-impl.h.
9730         (perror): Use it instead of strerror.
9731         * modules/perror (Files): Add lib/strerror-impl.h.
9732         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
9733
9734 2011-05-19  Eric Blake  <eblake@redhat.com>
9735
9736         strerror_r: fix on newer cygwin
9737         * lib/strerror_r.c (strerror_r): Cygwin now has
9738         __xpg_strerror_r, use it.
9739
9740 2011-05-19  Bruno Haible  <bruno@clisp.org>
9741
9742         strerror_r: Avoid clobbering the strerror buffer when possible.
9743         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
9744         (sys_nerr, sys_errlist): New declarations.
9745         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
9746         HP-UX, native Win32, IRIX, and 32-bit Solaris.
9747         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
9748
9749 2011-05-19  Bruno Haible  <bruno@clisp.org>
9750
9751         strerror_r: Fix test failure on mingw.
9752         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
9753         EXTEND_STRERROR_R.
9754         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
9755         macros from errno.in.h instead.
9756
9757 2011-05-19  Eric Blake  <eblake@redhat.com>
9758
9759         strerror: relax test for Solaris
9760         * tests/test-strerror.c (main): Permit Solaris behavior.
9761         * tests/test-strerror_r.c (main): Likewise.
9762
9763         strerror: enforce POSIX ruling on strerror(0)
9764         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
9765         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9766         * lib/strerror_r.c (rpl_strerror_r): Work around it.
9767         * doc/posix-functions/strerror.texi (strerror): Document it.
9768         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
9769         * tests/test-strerror.c (main): Strengthen test.
9770         * tests/test-strerror_r.c (main): Likewise.
9771
9772 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9773
9774         intprop-tests: port to older and more-pedantic compilers
9775         * modules/intprops-tests (Files): Add tests/macros.h.
9776         * tests/test-intprops.c: Include macros.h.
9777         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
9778         it's no longer documented to expand to an integer constant expression.
9779         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
9780         argument is floating point, as it's no longer documented to expand
9781         to an integer constant expression in that case.
9782         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
9783         compiler bugs reported by Bruno Haible.  See
9784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9785         (U0, U1): New constants, to work around the same bugs.  Also,
9786         in tests, use e.g., "(unsigned int) 39" rather than "39u".
9787
9788         intprops: work around C compiler bugs
9789         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
9790         bug in Sun C 5.11 2010/08/13 and other compilers; see
9791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9792
9793         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
9794         * doc/intprops.texi (Integer Type Determination): Fix
9795         documentation for TYPE_IS_INTEGER: it returns an constant
9796         expression, not an integer constant expression.  Fix doc for
9797         TYPE_SIGNED: it returns an integer constant expression only if its
9798         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
9799         hardly worth documented that way....)
9800
9801 2011-05-18  Bruno Haible  <bruno@clisp.org>
9802
9803         strerror_r: Avoid clobbering the strerror buffer when possible.
9804         * lib/strerror_r.c (strerror_r): Merge the three implementations.
9805         Handle gnulib defined errno values here. When strerror() returns NULL
9806         or an empty string, return EINVAL.
9807         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
9808         gnulib defined errno values here.
9809         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
9810
9811 2011-05-18  Eric Blake  <eblake@redhat.com>
9812
9813         fnmatch: avoid compiler warning
9814         * lib/fnmatch_loop.c (FCT): Use correct type.
9815         Reported by Matthias Bolte.
9816
9817 2011-05-13  Jim Meyering  <meyering@redhat.com>
9818
9819         maint.mk: three new prohibit_<HDR>_without_use rules
9820         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
9821         (sc_prohibit_stdio-safer_without_use): Likewise.
9822         (sc_prohibit_xfreopen_without_use): Likewise.
9823
9824 2011-05-17  Jim Meyering  <meyering@redhat.com>
9825
9826         announce-gen: fail if the NEWS delta is empty
9827         If there's nothing noteworthy in NEWS, then either you forgot
9828         or you shouldn't be releasing.
9829         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
9830
9831 2011-05-17  Pádraig Brady <P@draigBrady.com>
9832
9833         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
9834         reserved symbols starting with double underscore from the check.
9835
9836 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9837
9838         intprops: add doc
9839         * doc/intprops.texi: New file, documenting intprops.
9840         * doc/gnulib.texi (Particular Modules): Include it.
9841
9842         verify: add doc to gnulib manual and fix example
9843         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
9844         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
9845         (Compile-time Assertions): Fix example so it can't overflow.
9846
9847 2011-05-17  Jim Meyering  <meyering@redhat.com>
9848
9849         warnings.m4: don't usurp save_CPPFLAGS variable name
9850         * m4/warnings.m4: Prefix local temporary variable name with gl_.
9851
9852         doc: fix typo
9853         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
9854
9855 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9856             Bruno Haible  <bruno@clisp.org>
9857
9858         doc: Tweak recent change.
9859         * README (Portability guidelines): Tweak new text.
9860         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
9861         Interix 6.1.
9862
9863 2011-05-16  Eric Blake  <eblake@redhat.com>
9864
9865         inttypes: avoid autoconf warning
9866         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
9867         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9868
9869 2011-05-16  Sam Steingold <sds@gnu.org>
9870         and Eric Blake  <eblake@redhat.com>
9871
9872         vc-list-files: accept multiple directory operands
9873         * build-aux/vc-list-files: Iterate over all remaining operands.
9874
9875 2011-05-16  Bruno Haible  <bruno@clisp.org>
9876
9877         Fix confusion regarding deprecated modules.
9878         * modules/calloc (Status, Notice): Mark module as deprecated, not
9879         obsolete.
9880         * modules/fnmatch-posix (Status, Notice): Likewise.
9881         * modules/getdate (Status, Notice): Likewise.
9882         * modules/getopt (Status, Notice): Likewise.
9883         * modules/malloc (Status, Notice): Likewise.
9884         * modules/pipe (Status, Notice): Likewise.
9885         * modules/realloc (Status, Notice): Likewise.
9886         * modules/rename-dest-slash (Status, Notice): Likewise.
9887         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
9888         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
9889         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
9890         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
9891         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
9892
9893 2011-05-16  Bruno Haible  <bruno@clisp.org>
9894
9895         doc: List the target platforms.
9896         * doc/gnulib-intro.texi (Target Platforms): New section.
9897         * doc/gnulib.texi (Introduction): Update menu.
9898         * README (Portability guidelines): Refer to the new section. Update
9899         statement about oldest supported environment. Remove rationale why
9900         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
9901         unportable C89 function.
9902         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
9903         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
9904
9905 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9906
9907         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
9908
9909 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
9910
9911         intprops-tests: new module
9912         * modules/intprops-tests, tests/test-intprops.c: New files.
9913
9914         intprops: add safe, portable integer overflow checking
9915         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
9916         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
9917         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
9918         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
9919         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
9920         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
9921         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
9922         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
9923         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
9924         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
9925         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
9926
9927 2011-05-12  James Youngman  <jay@gnu.org>
9928
9929         Add a test for glibc's Bugzilla bug #12378.
9930         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
9931         doesn't allow the literal matching of a lone "[" (which is
9932         required by POSIX).
9933         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
9934
9935 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9936
9937         Sync glibc change fixing Bugzilla bug #12378.
9938         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
9939         beginning and fall back to matching as normal character if the
9940         string ends before the matching ']' is found.  This is what POSIX
9941         requires.
9942
9943 2011-05-13  Eric Blake  <eblake@redhat.com>
9944
9945         getcwd-lgpl: relax test for FreeBSD
9946         * doc/posix-functions/getcwd.texi (getcwd): Document portability
9947         issue.
9948         * tests/test-getcwd-lgpl.c (main): Relax test.
9949         Reported by Matthias Bolte.
9950
9951 2011-05-11  Eric Blake  <eblake@redhat.com>
9952
9953         test-fflush: silence compiler warning
9954         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
9955
9956 2011-05-11  Bruno Haible  <bruno@clisp.org>
9957
9958         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
9959         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
9960         * modules/canonicalize (Depends-on): Add 'nocrash'.
9961         * modules/canonicalize-lgpl (Depends-on): Likewise.
9962         * doc/posix-functions/realpath.texi: Update platforms list.
9963         Reported by Ryan Schmidt <ryandesign@macports.org>.
9964
9965 2011-05-11  Bruno Haible  <bruno@clisp.org>
9966
9967         group-member: Declare function in <unistd.h>.
9968         * lib/unistd.in.h (group_member): New declaration.
9969         * lib/group-member.h: Remove file.
9970         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
9971         * tests/test-unistd-c++.cc: Check signature of group_member.
9972         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
9973         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
9974         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
9975         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
9976         HAVE_GROUP_MEMBER.
9977         * modules/group-member (Files): Remove lib/group-member.h.
9978         (Depends-on): Add unistd. Specify conditions.
9979         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9980         (Include): Change to <unistd.h>.
9981         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
9982         HAVE_GROUP_MEMBER.
9983         * NEWS: Mention the change.
9984         * lib/euidaccess.c: Don't include group-member.h.
9985
9986 2011-05-11  Bruno Haible  <bruno@clisp.org>
9987
9988         group-member: Document module.
9989         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
9990         module.
9991
9992 2011-05-11  Bruno Haible  <bruno@clisp.org>
9993
9994         fclose: Fix mistake earlier today.
9995         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
9996
9997 2011-05-11  Eric Blake  <eblake@redhat.com>
9998
9999         fclose: preserve fflush errors
10000         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10001         Reported by Jim Meyering.
10002
10003         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10004         * build-aux/bootstrap (check_versions): When no specific version
10005         is required, merely check that the app produces an exit status
10006         that indicates its existence.
10007
10008         maint.mk: drop redundant check
10009         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10010         the same but better.
10011
10012 2011-05-11  Bruno Haible  <bruno@clisp.org>
10013
10014         fclose: Fix possible link error.
10015         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10016         unregister_shadow_fd. Improve comments.
10017         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10018         Eric Blake.
10019
10020 2011-05-11  Jim Meyering  <meyering@redhat.com>
10021
10022         maint.mk: improve "can not" detection and generalize rule name
10023         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10024         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10025         Use the same technique as in sc_prohibit_doubled_word, so that
10026         we recognize "can not" also when the words are separated by a newline.
10027         Suggested by Eric Blake.
10028         (perl_filename_lineno_text_): Define.  Factored out of...
10029         (prohibit_doubled_word_): ...here.  Use the new definition.
10030         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10031         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10032         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10033
10034 2011-05-10  Eric Blake  <eblake@redhat.com>
10035
10036         fclose: avoid double close race when possible
10037         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10038         all but WINDOWS_SOCKETS.
10039
10040 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10041
10042         openat: correct new comment
10043         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10044
10045 2011-05-10  Jim Meyering  <meyering@redhat.com>
10046
10047         openat: add comments
10048         * lib/openat-proc.c (openat_proc_name): Add comments,
10049         mostly from Eric Blake.
10050
10051 2011-05-09  Eric Blake  <eblake@redhat.com>
10052
10053         openat: reduce syscalls in first probe of /proc
10054         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10055         be a directory.  Simplify the probe for .. bugs.
10056         * modules/openat (Depends-on): Drop same-inode.
10057         Reported by Bastien ROUCARIES.
10058
10059 2011-05-09  Jim Meyering  <meyering@redhat.com>
10060
10061         maint.mk: change semantics/name of tight_scope variables
10062         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10063         Rename variables to align with semantics that make them more useful.
10064
10065         maint.mk: tweak new rule's name not to impinge
10066         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10067         (sc_tight_scope): Use new rule name rather than $@-0.
10068
10069         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10070         * top/maint.mk (sc_tight_scope): New rule.
10071         (sc_tight_scope-0): New rule, ifdef'd out.
10072         (_gl_TS_dir): Default.
10073         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10074         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10075
10076 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10077
10078         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10079         Haible <bruno@clisp.org>.
10080
10081 2011-05-08  Bruno Haible  <bruno@clisp.org>
10082
10083         Comments.
10084         * m4/isnanf.m4: Add comment.
10085         * m4/isnanl.m4: Likewise.
10086
10087 2011-05-08  Bruno Haible  <bruno@clisp.org>
10088
10089         glob: Remove obsolete macro.
10090         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10091
10092 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10093
10094         intprops: Sun C 5.11 supports __typeof__
10095         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10096         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10097         which is new.
10098         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10099
10100         intprops: switch to usual gnulib indenting and naming
10101         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10102         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10103
10104         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10105
10106 2011-05-08  Jim Meyering  <meyering@redhat.com>
10107
10108         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10109         * top/maint.mk (release-prep): Use make's --no-print-directory
10110         option when generating the announcement.  This eliminates the
10111         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10112         generated announcement template.
10113
10114 2011-05-08  Bruno Haible  <bruno@clisp.org>
10115
10116         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10117         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10118         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10119
10120 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10121
10122         ignore-value, verify: Omit include files from lib_SOURCES.
10123         * modules/ignore-value, modules/verify (Makefile.am):
10124         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10125         that leads Automake to duplicate use of am__objects_... variables
10126         in Makefile.in.  See
10127         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10128
10129 2011-05-07  Bruno Haible  <bruno@clisp.org>
10130
10131         fclose: Simplify autoconf macro.
10132         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10133         defined.
10134
10135 2011-05-07  Bruno Haible  <bruno@clisp.org>
10136
10137         canonicalize-lgpl: Fix autoconf macro ordering bug.
10138         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10139         gl_STDLIB_H_DEFAULTS.
10140
10141 2011-05-06  Eric Blake  <eblake@redhat.com>
10142
10143         maintainer-makefile: make sc_po_check easier to tune
10144         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10145         to probe for strings, such as an alternate location for gnulib.
10146
10147         fclose: guarantee behavior on seekable stdin
10148         * modules/fclose (Depends-on): Add fflush.
10149         * doc/posix-functions/fclose.texi (fclose): Document this.
10150         * tests/test-fclose.c (main): Make test for this unconditional.
10151
10152 2011-05-06  Bruno Haible  <bruno@clisp.org>
10153
10154         fflush, fpurge: Relicense under LGPLv2+.
10155         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10156         * modules/fpurge (License): Likewise.
10157         With permission from Eric Blake and Jim Meyering.
10158         Suggested by Eric Blake.
10159
10160 2011-05-06  Karl Berry  <karl@gnu.org>
10161
10162         * MODULES.html.sh (func_all_modules): remove exit.
10163
10164 2011-05-06  Jim Meyering  <meyering@redhat.com>
10165
10166         maint.mk: use info-gnu@ as the default only for a stable release
10167         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10168         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10169         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10170         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10171
10172 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10173
10174         assert-h: new module, which supports C1X-style static_assert
10175         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10176         * lib/verify.h: Revamp so that this can be copied into assert.h,
10177         while retaining the ability to use it standalone as before.
10178         Rename private identifiers so as not to encroach on the
10179         standard C namespace, since this is now used by assert.h.
10180         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10181         the old verify_true.
10182         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10183         the old verify_true.  Use _GL_VERIFY_TYPE.
10184         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10185         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10186         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10187         defined when this file is copied into the replacement assert.h.
10188         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10189         and _Static_assert is not built in.
10190         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10191         defined, and use the new macros mentioned above.
10192         * doc/posix-headers/assert.texi: Document this.
10193
10194 2011-05-05  Bruno Haible  <bruno@clisp.org>
10195
10196         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10197         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10198         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10199         gl_REPLACE_FCLOSE here.
10200         * modules/fflush (Depends-on): Remove fclose.
10201         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10202         combination with module 'fclose'.
10203
10204 2011-05-05  Bruno Haible  <bruno@clisp.org>
10205
10206         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10207         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10208         gl_FUNC_FFLUSH.
10209         (gl_FUNC_FFLUSH): Use it.
10210         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10211         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10212         gl_REPLACE_FSEEKO here.
10213
10214 2011-05-05  Bruno Haible  <bruno@clisp.org>
10215
10216         tzset: Relicense under LGPL.
10217         * modules/tzset (License): Change to LGPL.
10218         No agreement needed; it's a no-op.
10219
10220         strtoimax, strtoumax: Relicense under LGPL.
10221         * modules/strtoimax (License): Change to LGPL.
10222         * modules/strtoumax (License): Likewise.
10223         With permission from Jim Meyering, Paul Eggert:
10224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10225         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10226
10227         getgroups: Relicense under LGPL.
10228         * modules/getgroups (License): Change to LGPL.
10229         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10231         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10233
10234         nanosleep: Relicense under LGPL.
10235         * modules/nanosleep (License): Change to LGPL.
10236         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10237         Haible:
10238         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10240         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10242
10243         futimens: Relicense under LGPL.
10244         * modules/futimens (License): Change to LGPL.
10245         With permission from Eric Blake:
10246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10247
10248         fflush: Relicense under LGPL.
10249         * modules/fflush (License): Change to LGPL.
10250         With permission from Eric Blake, Bruno Haible, Jim Meyering:
10251         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10253         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
10254
10255         tmpfile: Relicense under LGPL.
10256         * modules/tmpfile (License): Change to LGPL.
10257         With permission from Ben Pfaff:
10258         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10259
10260         isfinite: Relicense under LGPL.
10261         * modules/isfinite (License): Change to LGPL.
10262         With permission from Ben Pfaff, Bruno Haible:
10263         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
10265
10266         acosl..tanl: Relicense under LGPL.
10267         * modules/acosl (License): Change to LGPL.
10268         * modules/asinl (License): Likewise.
10269         * modules/atanl (License): Likewise.
10270         * modules/cosl (License): Likewise.
10271         * modules/expl (License): Likewise.
10272         * modules/logl (License): Likewise.
10273         * modules/sinl (License): Likewise.
10274         * modules/sqrtl (License): Likewise.
10275         * modules/tanl (License): Likewise.
10276         Source code originally from glibc and Paolo Bonzini. Agreements:
10277         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
10278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
10279
10280 2011-05-05  Bruno Haible  <bruno@clisp.org>
10281
10282         signal: Define sighandler_t.
10283         * lib/signal.in.h (sighandler_t): New type.
10284         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
10285         whether sighandler_t is defined.
10286         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
10287         * modules/signal (Depends-on): Add extensions.
10288         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
10289         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
10290         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
10291
10292 2011-05-05  Eric Blake  <eblake@redhat.com>
10293
10294         maint: remove useless REPLACE_*_H macros
10295         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
10296         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10297         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10298         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
10299         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10300         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10301         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
10302         * m4/btowc.m4: Update callers.
10303         * m4/dirfd.m4: Likewise.
10304         * m4/duplocale.m4: Likewise.
10305         * m4/fchdir.m4: Likewise.
10306         * m4/fdopendir.m4: Likewise.
10307         * m4/inet_ntop.m4: Likewise.
10308         * m4/inet_pton.m4: Likewise.
10309         * m4/ioctl.m4: Likewise.
10310         * m4/mbrlen.m4: Likewise.
10311         * m4/mbrtowc.m4: Likewise.
10312         * m4/mbsinit.m4: Likewise.
10313         * m4/mbsnrtowcs.m4: Likewise.
10314         * m4/mbsrtowcs.m4: Likewise.
10315         * m4/poll.m4: Likewise.
10316         * m4/setlocale.m4: Likewise.
10317         * m4/wcrtomb.m4: Likewise.
10318         * m4/wcsnrtombs.m4: Likewise.
10319         * m4/wcsrtombs.m4: Likewise.
10320         * m4/wctob.m4: Likewise.
10321         * m4/wcwidth.m4: Likewise.
10322         * modules/posix_spawn: Likewise.
10323         * modules/posix_spawn_file_actions_addclose: Likewise.
10324         * modules/posix_spawn_file_actions_adddup2: Likewise.
10325         * modules/posix_spawn_file_actions_addopen: Likewise.
10326         * modules/posix_spawn_file_actions_destroy: Likewise.
10327         * modules/posix_spawn_file_actions_init: Likewise.
10328         * modules/posix_spawnattr_destroy: Likewise.
10329         * modules/posix_spawnattr_getflags: Likewise.
10330         * modules/posix_spawnattr_getpgroup: Likewise.
10331         * modules/posix_spawnattr_getschedparam: Likewise.
10332         * modules/posix_spawnattr_getschedpolicy: Likewise.
10333         * modules/posix_spawnattr_getsigdefault: Likewise.
10334         * modules/posix_spawnattr_getsigmask: Likewise.
10335         * modules/posix_spawnattr_init: Likewise.
10336         * modules/posix_spawnattr_setflags: Likewise.
10337         * modules/posix_spawnattr_setpgroup: Likewise.
10338         * modules/posix_spawnattr_setschedparam: Likewise.
10339         * modules/posix_spawnattr_setschedpolicy: Likewise.
10340         * modules/posix_spawnattr_setsigdefault: Likewise.
10341         * modules/posix_spawnattr_setsigmask: Likewise.
10342         * modules/posix_spawnp: Likewise.
10343
10344 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10345
10346         Add option to do-release-commit-and-tag to specify branch.
10347         * build-aux/do-release-commit-and-tag: Add --branch.
10348
10349 2011-05-03  Bruno Haible  <bruno@clisp.org>
10350
10351         Avoid unnecessary compilation units, through conditional dependencies.
10352         * modules/accept (Depends-on): Add conditions to the dependencies.
10353         * modules/acosl (Depends-on): Likewise.
10354         * modules/argz (Depends-on): Likewise.
10355         * modules/asinl (Depends-on): Likewise.
10356         * modules/atanl (Depends-on): Likewise.
10357         * modules/atoll (Depends-on): Likewise.
10358         * modules/bind (Depends-on): Likewise.
10359         * modules/btowc (Depends-on): Likewise.
10360         * modules/canonicalize-lgpl (Depends-on): Likewise.
10361         * modules/ceil (Depends-on): Likewise.
10362         * modules/ceilf (Depends-on): Likewise.
10363         * modules/ceill (Depends-on): Likewise.
10364         * modules/chdir-long (Depends-on): Likewise.
10365         * modules/chown (Depends-on): Likewise.
10366         * modules/close (Depends-on): Likewise.
10367         * modules/connect (Depends-on): Likewise.
10368         * modules/cosl (Depends-on): Likewise.
10369         * modules/dirfd (Depends-on): Likewise.
10370         * modules/dprintf (Depends-on): Likewise.
10371         * modules/dprintf-posix (Depends-on): Likewise.
10372         * modules/error (Depends-on): Likewise.
10373         * modules/euidaccess (Depends-on): Likewise.
10374         * modules/expl (Depends-on): Likewise.
10375         * modules/faccessat (Depends-on): Likewise.
10376         * modules/fchdir (Depends-on): Likewise.
10377         * modules/fclose (Depends-on): Likewise.
10378         * modules/fcntl (Depends-on): Likewise.
10379         * modules/fdopendir (Depends-on): Likewise.
10380         * modules/fflush (Depends-on): Likewise.
10381         * modules/floor (Depends-on): Likewise.
10382         * modules/floorf (Depends-on): Likewise.
10383         * modules/floorl (Depends-on): Likewise.
10384         * modules/fnmatch (Depends-on): Likewise.
10385         * modules/fopen (Depends-on): Likewise.
10386         * modules/fprintf-posix (Depends-on): Likewise.
10387         * modules/frexp (Depends-on): Likewise.
10388         * modules/frexp-nolibm (Depends-on): Likewise.
10389         * modules/frexpl (Depends-on): Likewise.
10390         * modules/frexpl-nolibm (Depends-on): Likewise.
10391         * modules/fseek (Depends-on): Likewise.
10392         * modules/fsusage (Depends-on): Likewise.
10393         * modules/ftell (Depends-on): Likewise.
10394         * modules/ftello (Depends-on): Likewise.
10395         * modules/futimens (Depends-on): Likewise.
10396         * modules/getcwd (Depends-on): Likewise.
10397         * modules/getcwd-lgpl (Depends-on): Likewise.
10398         * modules/getdelim (Depends-on): Likewise.
10399         * modules/getdomainname (Depends-on): Likewise.
10400         * modules/getgroups (Depends-on): Likewise.
10401         * modules/gethostname (Depends-on): Likewise.
10402         * modules/getline (Depends-on): Likewise.
10403         * modules/getlogin_r (Depends-on): Likewise.
10404         * modules/getopt-posix (Depends-on): Likewise.
10405         * modules/getpeername (Depends-on): Likewise.
10406         * modules/getsockname (Depends-on): Likewise.
10407         * modules/getsockopt (Depends-on): Likewise.
10408         * modules/getsubopt (Depends-on): Likewise.
10409         * modules/getusershell (Depends-on): Likewise.
10410         * modules/glob (Depends-on): Likewise.
10411         * modules/grantpt (Depends-on): Likewise.
10412         * modules/iconv_open (Depends-on): Likewise.
10413         * modules/iconv_open-utf (Depends-on): Likewise.
10414         * modules/inet_ntop (Depends-on): Likewise.
10415         * modules/inet_pton (Depends-on): Likewise.
10416         * modules/ioctl (Depends-on): Likewise.
10417         * modules/isapipe (Depends-on): Likewise.
10418         * modules/isfinite (Depends-on): Likewise.
10419         * modules/isinf (Depends-on): Likewise.
10420         * modules/lchown (Depends-on): Likewise.
10421         * modules/ldexpl (Depends-on): Likewise.
10422         * modules/link (Depends-on): Likewise.
10423         * modules/linkat (Depends-on): Likewise.
10424         * modules/listen (Depends-on): Likewise.
10425         * modules/logl (Depends-on): Likewise.
10426         * modules/lstat (Depends-on): Likewise.
10427         * modules/mbrlen (Depends-on): Likewise.
10428         * modules/mbrtowc (Depends-on): Likewise.
10429         * modules/mbsinit (Depends-on): Likewise.
10430         * modules/mbsnrtowcs (Depends-on): Likewise.
10431         * modules/mbsrtowcs (Depends-on): Likewise.
10432         * modules/mbtowc (Depends-on): Likewise.
10433         * modules/memcmp (Depends-on): Likewise.
10434         * modules/mkdir (Depends-on): Likewise.
10435         * modules/mkdtemp (Depends-on): Likewise.
10436         * modules/mkfifo (Depends-on): Likewise.
10437         * modules/mkfifoat (Depends-on): Likewise.
10438         * modules/mknod (Depends-on): Likewise.
10439         * modules/mkostemp (Depends-on): Likewise.
10440         * modules/mkostemps (Depends-on): Likewise.
10441         * modules/mkstemp (Depends-on): Likewise.
10442         * modules/mkstemps (Depends-on): Likewise.
10443         * modules/mktime (Depends-on): Likewise.
10444         * modules/nanosleep (Depends-on): Likewise.
10445         * modules/open (Depends-on): Likewise.
10446         * modules/openat (Depends-on): Likewise.
10447         * modules/perror (Depends-on): Likewise.
10448         * modules/poll (Depends-on): Likewise.
10449         * modules/popen (Depends-on): Likewise.
10450         * modules/posix_spawn (Depends-on): Likewise.
10451         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
10452         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10453         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10454         * modules/posix_spawnp (Depends-on): Likewise.
10455         * modules/pread (Depends-on): Likewise.
10456         * modules/printf-posix (Depends-on): Likewise.
10457         * modules/ptsname (Depends-on): Likewise.
10458         * modules/putenv (Depends-on): Likewise.
10459         * modules/pwrite (Depends-on): Likewise.
10460         * modules/readline (Depends-on): Likewise.
10461         * modules/readlink (Depends-on): Likewise.
10462         * modules/readlinkat (Depends-on): Likewise.
10463         * modules/recv (Depends-on): Likewise.
10464         * modules/recvfrom (Depends-on): Likewise.
10465         * modules/regex (Depends-on): Likewise.
10466         * modules/remove (Depends-on): Likewise.
10467         * modules/rename (Depends-on): Likewise.
10468         * modules/renameat (Depends-on): Likewise.
10469         * modules/rmdir (Depends-on): Likewise.
10470         * modules/round (Depends-on): Likewise.
10471         * modules/roundf (Depends-on): Likewise.
10472         * modules/roundl (Depends-on): Likewise.
10473         * modules/rpmatch (Depends-on): Likewise.
10474         * modules/select (Depends-on): Likewise.
10475         * modules/send (Depends-on): Likewise.
10476         * modules/sendto (Depends-on): Likewise.
10477         * modules/setenv (Depends-on): Likewise.
10478         * modules/setlocale (Depends-on): Likewise.
10479         * modules/setsockopt (Depends-on): Likewise.
10480         * modules/shutdown (Depends-on): Likewise.
10481         * modules/sigaction (Depends-on): Likewise.
10482         * modules/signbit (Depends-on): Likewise.
10483         * modules/sigprocmask (Depends-on): Likewise.
10484         * modules/sinl (Depends-on): Likewise.
10485         * modules/sleep (Depends-on): Likewise.
10486         * modules/snprintf (Depends-on): Likewise.
10487         * modules/snprintf-posix (Depends-on): Likewise.
10488         * modules/socket (Depends-on): Likewise.
10489         * modules/sprintf-posix (Depends-on): Likewise.
10490         * modules/sqrtl (Depends-on): Likewise.
10491         * modules/stat (Depends-on): Likewise.
10492         * modules/strchrnul (Depends-on): Likewise.
10493         * modules/strdup-posix (Depends-on): Likewise.
10494         * modules/strerror (Depends-on): Likewise.
10495         * modules/strerror_r-posix (Depends-on): Likewise.
10496         * modules/strndup (Depends-on): Likewise.
10497         * modules/strnlen (Depends-on): Likewise.
10498         * modules/strptime (Depends-on): Likewise.
10499         * modules/strsep (Depends-on): Likewise.
10500         * modules/strsignal (Depends-on): Likewise.
10501         * modules/strstr-simple (Depends-on): Likewise.
10502         * modules/strtod (Depends-on): Likewise.
10503         * modules/strtoimax (Depends-on): Likewise.
10504         * modules/strtok_r (Depends-on): Likewise.
10505         * modules/strtoumax (Depends-on): Likewise.
10506         * modules/symlink (Depends-on): Likewise.
10507         * modules/symlinkat (Depends-on): Likewise.
10508         * modules/tanl (Depends-on): Likewise.
10509         * modules/tcgetsid (Depends-on): Likewise.
10510         * modules/tmpfile (Depends-on): Likewise.
10511         * modules/trunc (Depends-on): Likewise.
10512         * modules/truncf (Depends-on): Likewise.
10513         * modules/truncl (Depends-on): Likewise.
10514         * modules/uname (Depends-on): Likewise.
10515         * modules/unlink (Depends-on): Likewise.
10516         * modules/unlockpt (Depends-on): Likewise.
10517         * modules/unsetenv (Depends-on): Likewise.
10518         * modules/usleep (Depends-on): Likewise.
10519         * modules/utimensat (Depends-on): Likewise.
10520         * modules/vasprintf (Depends-on): Likewise.
10521         * modules/vdprintf (Depends-on): Likewise.
10522         * modules/vdprintf-posix (Depends-on): Likewise.
10523         * modules/vfprintf-posix (Depends-on): Likewise.
10524         * modules/vprintf-posix (Depends-on): Likewise.
10525         * modules/vsnprintf (Depends-on): Likewise.
10526         * modules/vsnprintf-posix (Depends-on): Likewise.
10527         * modules/vsprintf-posix (Depends-on): Likewise.
10528         * modules/wcrtomb (Depends-on): Likewise.
10529         * modules/wcscasecmp (Depends-on): Likewise.
10530         * modules/wcscspn (Depends-on): Likewise.
10531         * modules/wcsdup (Depends-on): Likewise.
10532         * modules/wcsncasecmp (Depends-on): Likewise.
10533         * modules/wcsnrtombs (Depends-on): Likewise.
10534         * modules/wcspbrk (Depends-on): Likewise.
10535         * modules/wcsrtombs (Depends-on): Likewise.
10536         * modules/wcsspn (Depends-on): Likewise.
10537         * modules/wcsstr (Depends-on): Likewise.
10538         * modules/wcstok (Depends-on): Likewise.
10539         * modules/wcswidth (Depends-on): Likewise.
10540         * modules/wctob (Depends-on): Likewise.
10541         * modules/wctomb (Depends-on): Likewise.
10542         * modules/wctype (Depends-on): Likewise.
10543         * modules/wcwidth (Depends-on): Likewise.
10544         * modules/write (Depends-on): Likewise.
10545
10546 2011-05-03  Bruno Haible  <bruno@clisp.org>
10547
10548         Support for conditional dependencies.
10549         * doc/gnulib.texi (Module description): Document the syntax of
10550         conditional dependencies.
10551         * gnulib-tool: New option --conditional-dependencies.
10552         (func_usage): Document it.
10553         (cond_dependencies): New variable.
10554         (func_get_automake_snippet_conditional,
10555         func_get_automake_snippet_unconditional): New functions, extracted from
10556         func_get_automake_snippet.
10557         (func_get_automake_snippet): Use them.
10558         (sed_first_32_chars): New variable.
10559         (func_module_shellfunc_name): New function.
10560         (func_module_shellvar_name): New function.
10561         (func_module_conditional_name): New function.
10562         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
10563         func_cond_module_condition): New functions.
10564         (func_modules_transitive_closure): Add support for conditional
10565         dependencies.
10566         (func_emit_lib_Makefile_am): For a conditional module, enclose the
10567         conditional automake snippet in an automake conditional.
10568         (func_emit_autoconf_snippets): Emit shell functions that contain the
10569         code for conditional modules.
10570         (func_import, func_create_testdir): Update specification.
10571
10572 2011-05-03  Eric Blake  <eblake@redhat.com>
10573
10574         test-getaddrinfo: report error information
10575         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
10576
10577 2011-05-03  Jim Meyering  <meyering@redhat.com>
10578
10579         bootstrap: avoid build failure when $GZIP is set
10580         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
10581         program name.  If defined at all, it is supposed to list gzip options.
10582         Reported by Alan Curry in http://debbugs.gnu.org/8609
10583
10584 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
10585
10586         readme-release: new module with release instructions
10587         * modules/readme-release: New module.
10588         * top/README-release: New file, from coreutils, grep, diffutils.
10589         * MODULES.html.sh (Support for maintaining and releasing): Add it.
10590
10591 2011-05-02  Eric Blake  <eblake@redhat.com>
10592
10593         fflush: also replace fclose when fixing fflush
10594         * modules/fflush (Depends-on): Add fclose.
10595         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
10596         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
10597         memstreams with no backing fd.
10598         * doc/posix-functions/fclose.texi (fclose): Document the use of
10599         fflush module to fix the bug.
10600         * tests/test-fclose.c (main): Relax test when fclose is used in
10601         isolation.
10602
10603         fclose: add some tests
10604         * modules/fclose-tests: New test module.
10605         * tests/test-fclose.c: New file.
10606         * doc/posix-functions/fclose.texi (fclose): Document the bug.
10607
10608         fclose: reduced dependencies
10609         * modules/fclose (Depends-on): Switch from fflush/fseeko to
10610         simpler lseek.
10611         * lib/fclose.c (rpl_fclose): Likewise.
10612         Reported by Simon Josefsson.
10613
10614         exit: drop remaining clients
10615         * modules/argmatch (Depends-on): Replace exit with stdlib.
10616         * modules/copy-file (Depends-on): Likewise.
10617         * modules/execute (Depends-on): Likewise.
10618         * modules/exitfail (Depends-on): Likewise.
10619         * modules/obstack (Depends-on): Likewise.
10620         * modules/pagealign_alloc (Depends-on): Likewise.
10621         * modules/pipe-filter-gi (Depends-on): Likewise.
10622         * modules/pipe-filter-ii (Depends-on): Likewise.
10623         * modules/savewd (Depends-on): Likewise.
10624         * modules/spawn-pipe (Depends-on): Likewise.
10625         * modules/wait-process (Depends-on): Likewise.
10626         * modules/xsetenv (Depends-on): Likewise.
10627         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
10628         * modules/git-merge-changelog (Depends-on): Likewise.
10629         * modules/long-options (Depends-on): Likewise.
10630         * modules/pt_chown (Depends-on): Likewise.
10631         * modules/sysexits (Depends-on): Likewise.
10632
10633         freading: relax license from LGPLv3+ to LGPLv2+
10634         * modules/freading (License): Relax LGPL version.
10635
10636 2011-05-02  Bruno Haible  <bruno@clisp.org>
10637
10638         fchdir: Remove unused dependencies.
10639         * modules/fchdir (Depends-on): Remove include_next.
10640
10641 2011-05-02  Bruno Haible  <bruno@clisp.org>
10642
10643         gnulib-tool: Refactor.
10644         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
10645         from func_emit_autoconf_snippets.
10646         (func_emit_autoconf_snippets): Use it.
10647
10648 2011-05-02  Simon Josefsson  <simon@josefsson.org>
10649
10650         * NEWS: Document removal of 'exit'.
10651         * modules/exit: Remove file.
10652
10653 2011-05-01  Bruno Haible  <bruno@clisp.org>
10654
10655         Update DEPENDENCIES.
10656         * DEPENDENCIES (gettext): Recommend the newest release.
10657         Reported by Simon Josefsson.
10658
10659 2011-05-01  Bruno Haible  <bruno@clisp.org>
10660
10661         gnulib-tool: Reduce code duplication.
10662         * gnulib-tool (func_emit_autoconf_snippets): New function.
10663         (func_import, func_create_testdir): Use it.
10664
10665 2011-04-30  Eric Blake  <eblake@redhat.com>
10666
10667         fclose: don't fail on non-seekable input stream
10668         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
10669         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
10670         since fflush is allowed to fail in that case.
10671
10672 2011-04-30  Bruno Haible  <bruno@clisp.org>
10673
10674         dup3: cleanup
10675         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
10676
10677 2011-04-30  Bruno Haible  <bruno@clisp.org>
10678
10679         netdb: Make it work in C++ mode.
10680         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
10681         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
10682         module.
10683         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
10684         gl_MODULE_INDICATOR_FOR_TESTS.
10685         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
10686         * modules/netdb-c++-tests: New file.
10687         * tests/test-netdb-c++.cc: New file.
10688
10689 2011-04-30  Bruno Haible  <bruno@clisp.org>
10690
10691         New modules 'vfscanf', 'vscanf'.
10692         * modules/vfscanf: New file.
10693         * modules/vscanf: New file.
10694         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
10695         here.
10696         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
10697         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
10698
10699 2011-04-30  Bruno Haible  <bruno@clisp.org>
10700
10701         passfd: Add comments.
10702         * lib/passfd.c: Add comments about platforms.
10703
10704 2011-04-30  Bruno Haible  <bruno@clisp.org>
10705
10706         sys_uio: Make <sys/uio.h> self-contained.
10707         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
10708         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
10709
10710 2011-04-30  Bruno Haible  <bruno@clisp.org>
10711
10712         sys_socket: Ensure 'struct iovec' definition.
10713         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
10714         <sys/socket.h>.
10715         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
10716
10717 2011-04-30  Bruno Haible  <bruno@clisp.org>
10718
10719         sys_uio: Protect definition of 'struct iovec'.
10720         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
10721         it as a C struct.
10722
10723 2011-04-30  Bruno Haible  <bruno@clisp.org>
10724
10725         manywarnings: fix indentation
10726         * m4/manywarnings.m4: Indent by 2 spaces consistently.
10727
10728 2011-04-30  Pádraig Brady <P@draigBrady.com>
10729
10730         manywarnings: add -Wno-missing-field-initializers if needed.
10731         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
10732         option if it's needed to allow initialization with { 0, }
10733
10734 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
10735
10736         announce-gen: cosmetic improvement
10737         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
10738
10739 2011-04-29  Jim Meyering  <meyering@redhat.com>
10740
10741         vc-list-files: indent with spaces, not TABs
10742         * build-aux/vc-list-files: Convert leading TABs to spaces,
10743         to match the style of most other files in gnulib.
10744
10745         announce-gen: indent with spaces, not TABs
10746         * build-aux/announce-gen: Convert all TABs to spaces, to match
10747         the style of most other files in gnulib.
10748
10749 2011-04-29  Eric Blake  <eblake@redhat.com>
10750
10751         quotearg: avoid uninitialized variable use
10752         * lib/quotearg.c (quoting_options_from_style): Initialize
10753         remaining fields, and ensure that custom styles are only used via
10754         quoting_options rather than quoting_style.
10755
10756 2011-04-29  Jim Meyering  <meyering@redhat.com>
10757
10758         maint.mk: remove unused VC-tag variable
10759         * top/maint.mk (VC-tag): Remove unused variable.
10760
10761 2011-04-29  Bruno Haible  <bruno@clisp.org>
10762
10763         netdb: fix gai_strerror replacements
10764         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
10765         * modules/netdb: Substitute it.
10766
10767 2011-04-29  Jim Meyering  <meyering@redhat.com>
10768
10769         test-getcwd.c: avoid new set-but-not-used warning
10770         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
10771         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
10772         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
10773         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
10774
10775         test-hash.c: avoid a new shadowing warning
10776         * tests/test-hash.c (main): Don't shadow "dup".
10777
10778 2011-04-28  Eric Blake  <eblake@redhat.com>
10779
10780         getaddrinfo: fix gai_strerror signature
10781         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
10782         and work around mingw with UNICODE defined.
10783         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
10784         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
10785         * modules/netdb (Makefile.am): Substitute it.
10786         * lib/netdb.in.h (gai_strerror): Declare replacement.
10787         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
10788         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
10789         the fix.
10790
10791         getsockopt: avoid compiler warning
10792         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
10793         Reported by Matthias Bolte.
10794
10795         tests: drop unused link dependency
10796         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
10797         * modules/dirent-safer-tests (Makefile.am): Likewise.
10798         * modules/fdopendir-tests (Makefile.am): Likewise.
10799         * modules/mkfifoat-tests (Makefile.am): Likewise.
10800         * modules/openat-safer-tests (Makefile.am): Likewise.
10801         * modules/openat-tests (Makefile.am): Likewise.
10802         * modules/readlinkat-tests (Makefile.am): Likewise.
10803         * modules/symlinkat-tests (Makefile.am): Likewise.
10804         * modules/linkat-tests (Makefile.am): Likewise.
10805         (Depends-on): Switch to filenamecat-lgpl.
10806         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
10807         LIBINTL.
10808         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
10809         * tests/test-linkat.c (main): Don't require xalloc.
10810
10811         hash, mgetgroups: drop xalloc dependency
10812         * lib/hash.c (includes): Adjust includes.
10813         * lib/mgetgroups.c (includes): Likewise.
10814         (xgetgroups): Move...
10815         * lib/xgetgroups.c: ...to new file.
10816         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
10817         * modules/xgetgroups: New file, split from...
10818         * modules/mgetgroups: ...here.
10819         (Depends-on): Add xalloc-oversized.
10820         * modules/hash (Depends-on): Likewise.
10821         * modules/hash-tests (Depends-on): Drop xalloc.
10822         (test_hash_LDADD): Drop unused library.
10823         * tests/test-hash.c (main): Break xalloc dependency.
10824         (includes): Drop unused include.
10825
10826         xalloc-oversized: new module
10827         * modules/xalloc-oversized: New module.
10828         * modules/xalloc (Depends-on): Add it.
10829         * lib/xalloc.h (xalloc_oversized): Move...
10830         * lib/xalloc-oversized.h: ...into new file.
10831
10832         utimecmp: drop dependency on xmalloc
10833         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
10834         due to memory pressure.
10835         * modules/utimecmp (Depends-on): Drop xalloc.
10836
10837 2011-04-27  Eric Blake  <eblake@redhat.com>
10838
10839         getcwd: fix mingw bugs
10840         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
10841         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
10842         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
10843
10844 2011-04-27  Bruno Haible  <bruno@clisp.org>
10845
10846         mkstemps: Ensure declaration on MacOS X 10.5.
10847         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
10848         * doc/glibc-functions/mkstemps.texi: Document header file problem on
10849         MacOS X.
10850
10851 2011-04-27  Bruno Haible  <bruno@clisp.org>
10852
10853         mkstemp: More documentation.
10854         * doc/posix-functions/mkstemp.texi: Document header file problem on
10855         MacOS X.
10856
10857 2011-04-27  Bruno Haible  <bruno@clisp.org>
10858
10859         mkstemp: Tweak configure message when cross-compiling.
10860         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
10861         result as a guess.
10862
10863 2011-04-27  Bruno Haible  <bruno@clisp.org>
10864
10865         clean-temp: Clarify what it does.
10866         * lib/clean-temp.h: Add more comments.
10867         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
10868         module.
10869         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
10870         * doc/glibc-functions/mkstemps.texi: Likewise.
10871         * doc/glibc-functions/mkostemps.texi: Likewise.
10872
10873 2011-04-27  Eric Blake  <eblake@redhat.com>
10874
10875         fchdir: avoid extra chdir and fix test
10876         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
10877         getcwd-lgpl.
10878         * lib/fchdir.c (get_name): Any absolute name will do; it does not
10879         have to be canonical.
10880         (canonicalize_file_name): Drop unused macro.
10881         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
10882
10883         filenamecat-lgpl: fix licence
10884         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
10885         when it was first created.
10886
10887         linkat, renameat: add missing dependency
10888         * modules/linkat (Depends-on): Require getcwd-lgpl.
10889         * modules/renameat (Depends-on): Likewise.
10890
10891         tests: reduce dependencies
10892         * tests/test-linkat.c (main): Use lighter-weight getcwd.
10893         * tests/test-renameat.c (main): Likewise.
10894         * modules/linkat-tests (Depends-on): Relax dependency.
10895         * modules/renameat-tests (Depends-on): Likewise.
10896         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
10897         dependency explicit.
10898
10899         save-cwd: reduce default dependency
10900         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
10901         * lib/save-cwd.c: Update comments.
10902         * NEWS: Document the semantic change.
10903
10904         getcwd: enhance tests
10905         * tests/test-getcwd-lgpl.c: New file, taken from...
10906         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
10907         repeat long path stress tests from m4 probe.
10908         * modules/getcwd-lgpl-tests: New module.
10909         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
10910         * m4/getcwd-abort-bug.m4: Update comment.
10911         * m4/getcwd-path-max.m4: Likewise.
10912
10913         getcwd-lgpl: new module
10914         * modules/getcwd-lgpl: New module.
10915         * lib/getcwd-lgpl.c: New file.
10916         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10917         * MODULES.html.sh (lacking POSIX:2008): Likewise.
10918         * modules/getcwd (configure.ac): Set C witness.
10919         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
10920
10921         getcwd: tweak comments
10922         * m4/getcwd-abort-bug.m4: Fix comments.
10923         * m4/getcwd-path-max.m4: Likewise.
10924         * m4/getcwd.m4: Likewise.
10925
10926 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10927         and Eric Blake  <eblake@redhat.com>
10928
10929         mkstemp: replace if system version uses wrong permissions
10930         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
10931         read/write mode bits set in file created by mkstemp.
10932         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
10933
10934 2011-04-27  Eric Blake  <eblake@redhat.com>
10935
10936         passfd: avoid compiler warning
10937         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
10938         Reported by Laine Stump.
10939
10940 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
10941
10942         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
10943         required by the NetBSD (and perhaps other 4.4BSD derived) join.
10944
10945 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10946         and Eric Blake  <eblake@redhat.com>
10947
10948         mkstemp: mention clean-temp module
10949         * lib/mkstemp.c: Add comment.
10950         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
10951
10952 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
10953
10954         inttypes: also provide default values for 32-bit tests
10955         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
10956         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
10957
10958 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
10959
10960         strtoumax: remove dependency on strtoimax
10961         This is like the strtoull change of yesterday.
10962         * modules/strtoumax (Files): Add lib/strtoimax.c.
10963         (Depends-on): Remove strtoimax and add verify.
10964
10965         inttypes-incomplete: new module
10966         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
10967         all but the PRI* and SCN* parts of gl_INTTYPES_H.
10968         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
10969         of gl_INTTYPES_H.
10970         (gl_INTTYPES_H): Rewrite in terms of these new macros.
10971         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
10972         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
10973         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
10974         * modules/strtoumax, modules/xstrtol (Depends-on):
10975         Depend on inttypes-incomplete, not inttypes.
10976         * modules/inttypes-incomplete: New module, containing the contents
10977         of the old modules/inttypes module, except that the Files: section
10978         omits m4/inttypes-pri.m4, and the configure.ac section invokes
10979         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
10980         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
10981         (Depends-on): Depend only on inttypes-incomplete.
10982         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
10983
10984         inttypes: omit now-redundant strtoimax and strtoumax work
10985         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
10986         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
10987
10988         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
10989         This supports apps that need pointers to strtoimax and strtoumax,
10990         and ports to HP-UX 11.00 64.bit, which has macros that expand to
10991         nonexistent functions.  See
10992         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
10993         et seq.
10994         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
10995         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
10996         a macro.
10997         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10998
10999 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11000
11001         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11002
11003 2011-04-25  Bruno Haible  <bruno@clisp.org>
11004
11005         strtol, strtoul: Mark modules as obsolete.
11006         * modules/strtol (Status, Notice): New sections.
11007         * modules/strtoul (Status, Notice): New sections.
11008
11009 2011-04-25  Bruno Haible  <bruno@clisp.org>
11010
11011         strtod: Remove check for strtod, unless supporting old platforms.
11012         * modules/strtod-obsolete: New file.
11013         * m4/strtod-obsolete.m4: New file.
11014         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11015         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11016         * modules/strtod (Depends-on): Add strtod-obsolete.
11017         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11018
11019 2011-04-25  Bruno Haible  <bruno@clisp.org>
11020
11021         strcase: Make module obsolete.
11022         * modules/strcase (Status, Notice): New sections.
11023
11024 2011-04-25  Bruno Haible  <bruno@clisp.org>
11025
11026         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11027         * modules/dup2-obsolete: New file.
11028         * m4/dup2-obsolete.m4: New file.
11029         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11030         gl_FUNC_DUP2_OBSOLETE is not also defined.
11031         * modules/dup2 (Depends-on): Add dup2-obsolete.
11032         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11033
11034 2011-04-25  Bruno Haible  <bruno@clisp.org>
11035
11036         strnlen: Avoid memchr related link error on old obsolete platforms.
11037         * modules/memchr-obsolete: New file.
11038         * m4/memchr-obsolete.m4: New file.
11039         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11040         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11041         * modules/memchr (Depends-on): Add memchr-obsolete.
11042         * modules/strnlen (Depends-on): Likewise.
11043         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11044
11045 2011-04-25  Jim Meyering  <meyering@redhat.com>
11046
11047         maint.mk: makefile_at_at_check extend and clean up
11048         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11049         in addition to */Makefile.am.
11050         Exempt legitimate uses of @VAR@ notation, e.g.,
11051         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11052         Remove obsolete coreutils-specific comment.
11053         Prompted by discussion here:
11054         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11055
11056 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11057
11058         strtoul: remove dependency on strtol
11059         This is so that 'configure' need not check for strtol merely because
11060         the application needs strtoul.
11061         * modules/strtoul (Files): Add lib/strtol.c.
11062         (Depends-on): Remove strtol.
11063
11064         strtoull: remove dependency on strtoul
11065         This is like the strtoll change.
11066         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11067         (Depends-on): Remove strtoul.
11068
11069         strtoll: remove dependency on strtol
11070         This is so that 'configure' need not check for strtol merely because
11071         the application needs strtoll.
11072         * modules/strtoll (Files): Add lib/strtol.c.
11073         (Depends-on): Remove strtol.
11074
11075 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11076
11077         inttypes: Move some configure check to module 'imaxdiv'.
11078         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11079         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11080         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11081
11082 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11083
11084         inttypes: Move some configure check to module 'imaxabs'.
11085         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11086         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11087         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11088
11089 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11090
11091         inttypes: Remove configure tests that are not needed since 2009-12-31.
11092         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11093         gl_cv_header_working_inttypes_h.
11094
11095 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11096
11097         * modules/strnlen (Depends-on): Remove memchr.
11098         The strnlen implementation doesn't need the memchr module's fixes; see
11099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11100
11101         strtol: remove dependency on wchar
11102         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11103         * modules/strtol (Depends-on): Remove wchar.
11104
11105 2011-04-21  Eric Blake  <eblake@redhat.com>
11106
11107         passfd: fix test regression on Linux
11108         * modules/passfd-tests (configure.ac): Correct socketpair check.
11109
11110         passfd: speed up configure and drop unused code
11111         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11112         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11113         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11114         Instead of probing at configure for unix_scm_rights_bsd44_way,
11115         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11116         check to a struct member probe.
11117         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11118         (sendfd, recvfd): Update preprocessor checks.
11119         * modules/passfd (Files): Reflect rename, and drop unused file.
11120         (Depends-on): Drop unused dependency.
11121
11122         passfd: allow compilation on mingw
11123         * modules/sys_socket (Depends-on): Add sys_uio.
11124         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11125         iovec and a minimal struct msghdr.
11126         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11127         * tests/test-sys_socket.c (main): Enhance test.
11128         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11129         guaranteed to provide what we need.
11130         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11131         * modules/passfd-tests (Depends-on): Add sys_wait.
11132         * tests/test-passfd.c (main): Skip test on mingw, for now.
11133         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11134         partial 'struct msghdr' implementation.
11135
11136         sys_uio: new module
11137         * modules/sys_uio: New module.
11138         * modules/sys_uio-tests: Likewise.
11139         * lib/sys_uio.in.h: New file.
11140         * m4/sys_uio_h.m4: Likewise.
11141         * tests/test-sys_uio.c: Likewise.
11142         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11143         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11144
11145 2011-04-20  Jim Meyering  <meyering@redhat.com>
11146
11147         useless-if-before-free: avoid false-positive
11148         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11149         disjunct so that it too requires a terminating ";".  Without that,
11150         this script would identify as useless one statement from gcc that
11151         was not:
11152           if (aligned_ptr)
11153             free (((void **) aligned_ptr) [-1]);
11154
11155 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11156
11157         doc: update users.txt.
11158         * users.txt: Add barcode.
11159
11160 2011-04-19  Bruno Haible  <bruno@clisp.org>
11161
11162         ioctl: Remove link dependency on native Windows.
11163         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11164         (gl_close_fn, gl_ioctl_fn): New types.
11165         (struct fd_hook): Renamed from struct close_hook. Change type of
11166         private_close_fn field. Add private_ioctl_fn field.
11167         (close_hook_fn): Add parameter for primary close method.
11168         (execute_close_hooks, execute_all_close_hooks): Likewise.
11169         (ioctl_hook_fn): New type.
11170         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11171         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11172         argument.
11173         (unregister_fd_hook): Renamed from unregister_close_hook.
11174         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11175         Don't include <unistd.h>.
11176         (close): Remove undef.
11177         (anchor): Update.
11178         (execute_close_hooks): Add argument for primary close method.
11179         (execute_all_close_hooks): Likewise.
11180         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11181         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11182         argument. Allow each argument to be NULL.
11183         (unregister_fd_hook): Renamed from unregister_close_hook.
11184         * lib/close.c (rpl_close): Pass 'close' function pointer to
11185         execute_all_close_hooks.
11186         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11187         (primary_ioctl): New function.
11188         (ioctl): Don't call ioctlsocket here. Instead, call
11189         execute_all_ioctl_hooks.
11190         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11191         close method.
11192         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11193         (fd_sockets_hook): Renamed from close_sockets_hook.
11194         (gl_sockets_startup, gl_sockets_cleanup): Update.
11195         * modules/fd-hook: Renamed from modules/close-hook. Update.
11196         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11197         * modules/sockets (Depends-on): Likewise.
11198         * modules/ioctl (Depends-on): Add fd-hook.
11199         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11200         GNULIB_SOCKET.
11201
11202 2011-04-19  Bruno Haible  <bruno@clisp.org>
11203
11204         Move the support of O_NONBLOCK in open() to the 'open' module.
11205         * modules/nonblocking (Depends-on): Remove 'open'.
11206         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11207         gl_cv_have_open_O_NONBLOCK.
11208         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11209         O_NONBLOCK support.
11210         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11211
11212 2011-04-17  Bruno Haible  <bruno@clisp.org>
11213
11214         pipe2: Simplify code.
11215         * lib/pipe2.c (pipe2): Reduce code duplication.
11216
11217 2011-04-17  Bruno Haible  <bruno@clisp.org>
11218
11219         nonblocking: Add comment.
11220         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11221
11222 2011-04-17  Bruno Haible  <bruno@clisp.org>
11223
11224         nonblocking: Add tests for sockets.
11225         * tests/test-nonblocking-socket.sh: New file.
11226         * tests/test-nonblocking-socket-main.c: New file.
11227         * tests/test-nonblocking-socket-child.c: New file.
11228         * tests/test-nonblocking-socket.h: New file.
11229         * tests/socket-server.h: New file.
11230         * tests/socket-client.h: New file.
11231         * modules/nonblocking-socket-tests: New file.
11232         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11233
11234 2011-04-17  Bruno Haible  <bruno@clisp.org>
11235
11236         nonblocking: Add tests for pipes.
11237         * tests/test-nonblocking-pipe.sh: New file.
11238         * tests/test-nonblocking-pipe-main.c: New file.
11239         * tests/test-nonblocking-pipe-child.c: New file.
11240         * tests/test-nonblocking-pipe.h: New file.
11241         * tests/test-nonblocking-writer.h: New file.
11242         * tests/test-nonblocking-reader.h: New file.
11243         * tests/test-nonblocking-misc.h: New file.
11244         * modules/nonblocking-pipe-tests: New file.
11245         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
11246
11247 2011-04-16  Bruno Haible  <bruno@clisp.org>
11248
11249         gettext: Clarify the needed programmer actions.
11250         * modules/gettext (Notice): New field.
11251         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
11252
11253 2011-04-16  Bruno Haible  <bruno@clisp.org>
11254
11255         strchrnul: Tweak last commit.
11256         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
11257         bug.
11258         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
11259         as in _GL_FUNCDECL_SYS.
11260         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
11261         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
11262
11263 2011-04-15  Eric Blake  <eblake@redhat.com>
11264
11265         strchrnul: work around cygwin bug
11266         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
11267         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
11268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
11269         * modules/string (Makefile.am): Substitute it.
11270         * lib/string.in.h (strchrnul): Use it.
11271
11272 2011-04-15  Bruno Haible  <bruno@clisp.org>
11273
11274         Don't require lib/stdio-write.c when only module 'stdio' is used.
11275         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
11276         invocation.
11277         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
11278
11279 2011-04-14  Bruno Haible  <bruno@clisp.org>
11280
11281         Support non-blocking pipe I/O in read() on native Windows.
11282         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
11283         (read): New declaration.
11284         * lib/read.c: New file.
11285         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
11286         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
11287         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
11288         vscanf): New declarations.
11289         * lib/stdio-read.c: New file.
11290         * m4/read.m4: New file.
11291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
11292         REPLACE_READ.
11293         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
11294         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11295         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
11296         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
11297         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
11298         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11299         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11300         * modules/read: New file.
11301         * modules/nonblocking (Files): Add lib/stdio-read.c.
11302         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
11303         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
11304         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11305         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11306         * modules/pread (Depends-on): Add read.
11307         * modules/safe-read (Depends-on): Likewise.
11308         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
11309         gets, scanf, vfscanf, vscanf): Verify signatures.
11310         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
11311         problem with non-blocking pipes.
11312         * doc/posix-functions/fgetc.texi: Likewise.
11313         * doc/posix-functions/fgets.texi: Likewise.
11314         * doc/posix-functions/fread.texi: Likewise.
11315         * doc/posix-functions/fscanf.texi: Likewise.
11316         * doc/posix-functions/getc.texi: Likewise.
11317         * doc/posix-functions/getchar.texi: Likewise.
11318         * doc/posix-functions/gets.texi: Likewise.
11319         * doc/posix-functions/scanf.texi: Likewise.
11320         * doc/posix-functions/vfscanf.texi: Likewise.
11321         * doc/posix-functions/vscanf.texi: Likewise.
11322
11323 2011-04-14  Bruno Haible  <bruno@clisp.org>
11324
11325         Support non-blocking pipe I/O in write() on native Windows.
11326         * lib/write.c (rpl_write): Split a write request that failed merely
11327         because the byte count was larger than the pipe buffer's size.
11328         * doc/posix-functions/write.texi: Mention the problem with large byte
11329         counts.
11330
11331 2011-04-14  Bruno Haible  <bruno@clisp.org>
11332
11333         wchar: Ensure that wchar_t gets defined on uClibc.
11334         * lib/wchar.in.h: On uClibc, include <stddef.h>.
11335         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
11336
11337 2011-04-13  Bruno Haible  <bruno@clisp.org>
11338
11339         safe-write, full-read: Avoid unnecessary compilation units.
11340         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
11341         (Depends-on): Remove safe-read. Add ssize_t.
11342         * modules/full-read (Files): Add lib/full-write.c.
11343         (Depends-on): Add full-write.
11344
11345 2011-04-13  Bruno Haible  <bruno@clisp.org>
11346
11347         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11348         * modules/pwrite (Depends-on): Add 'write'.
11349
11350 2011-04-13  Bruno Haible  <bruno@clisp.org>
11351
11352         Support non-blocking pipe I/O in write() on native Windows.
11353         * lib/unistd.in.h (write): Enable replacement also if
11354         GNULIB_UNISTD_H_NONBLOCKING is 1.
11355         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11356         (rpl_write): When failing to write on a non-blocking pipe, change
11357         errno from ENOSPC to EAGAIN.
11358         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11359         putchar, puts, vfprintf, vprintf): Enable replacement also if
11360         GNULIB_STDIO_H_NONBLOCKING is 1.
11361         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11362         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11363         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11364         CALL_WITH_SIGPIPE_EMULATION.
11365         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11366         * m4/nonblocking.m4: New file.
11367         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11368         for non-blocking I/O support.
11369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11370         GNULIB_UNISTD_H_NONBLOCKING.
11371         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11372         required for non-blocking I/O support.
11373         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11374         * modules/nonblocking (Files): Add m4/nonblocking.m4,
11375         lib/stdio-write.c, m4/asm-underscore.m4.
11376         (Depends-on): Add stdio, unistd.
11377         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
11378         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
11379         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
11380         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
11381         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
11382         problem with non-blocking pipes.
11383         * doc/posix-functions/fputc.texi: Likewise.
11384         * doc/posix-functions/fputs.texi: Likewise.
11385         * doc/posix-functions/fwrite.texi: Likewise.
11386         * doc/posix-functions/printf.texi: Likewise.
11387         * doc/posix-functions/putc.texi: Likewise.
11388         * doc/posix-functions/putchar.texi: Likewise.
11389         * doc/posix-functions/puts.texi: Likewise.
11390         * doc/posix-functions/vfprintf.texi: Likewise.
11391         * doc/posix-functions/vprintf.texi: Likewise.
11392         * doc/posix-functions/write.texi: Likewise.
11393
11394 2011-04-10  Jim Meyering  <meyering@redhat.com>
11395
11396         maint.mk: prohibit doubled words
11397         Detect them also when they're separated by a newline.
11398         There are 3 ways to customize it:
11399           - disable the test on a per file basis, as usual with rules using
11400             $(VC_LIST_EXCEPT)
11401           - replace the default doubled-word-selecting regexp (affects all files)
11402           - ignore a particular file-vs-doubled-word match
11403         I nearly used that last one to ignore the "is is" match in
11404         coreutils' NEWS file, since the text was "ls -is is ..."
11405         To do that, I would have added this line to cfg.mk:
11406           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
11407         but it would have ignored any "is is" match in NEWS.
11408         Low probability, but still...
11409         Instead, I changed the text, slightly:
11410           -  ls -is is now consistent with ls -lis in ignoring values returned
11411           +  "ls -is" is now consistent with ls -lis in ignoring values returned
11412         * top/maint.mk (prohibit_double_word_RE_): Provide default.
11413         (prohibit_doubled_word_): Define.
11414         (sc_prohibit_doubled_word): New rule.
11415         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11416
11417 2011-04-10  Jim Meyering  <meyering@redhat.com>
11418
11419         maint: fix doubled-word typo in comment
11420         * m4/gethostname.m4: s/is is/it is/
11421         * m4/getdomainname.m4: Likewise.
11422
11423 2011-04-10  Jim Meyering  <meyering@redhat.com>
11424
11425         maint: remove doubled word: s/it it/it/
11426         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
11427
11428 2011-04-10  Jim Meyering  <meyering@redhat.com>
11429
11430         maint.mk: remove useless semicolon and backslash
11431         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
11432         semicolon and backslash.
11433
11434 2011-04-10  Bruno Haible  <bruno@clisp.org>
11435
11436         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
11437         * modules/stdint-tests (Depends-on): Add wchar.
11438
11439 2011-04-10  Jim Meyering  <meyering@redhat.com>
11440
11441         maint: remove doubled words in comments, e.g., s/a a/a/
11442         * lib/strptime.c (day_of_the_week): s/the the/the/
11443         * tests/test-chown.h (test_chown): s/a a/a/
11444
11445         test-chown.h: correct a cast
11446         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
11447         when the destination is a stat.st_gid.
11448
11449 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
11450
11451         getaddrinfo: Fix test for sa_len member.
11452         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11453         include <sys/types.h> before <sys/socket.h>.
11454
11455 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11456
11457         maint: change "can not" to "cannot"
11458         * doc/posix-functions/iconv.texi (iconv): This one crossed line
11459         boundaries.
11460
11461 2011-04-09  Jim Meyering  <meyering@redhat.com>
11462
11463         maint: change "a a" to "a"
11464         * tests/test-lchown.h (test_lchown): s/a a/a/
11465
11466         maint.mk: prohibit \<the the\>
11467         * top/maint.mk (sc_prohibit_the_the): New rule.
11468
11469         maint: fix "the the" in comment
11470         * lib/count-one-bits.h: s/the the/the/
11471
11472         maint: change "can not" to "cannot"
11473         But do not change the occurrences in maintain.texi or in
11474         build-aux/po/Makefile.in.in, which I presume comes from gettext.
11475         * doc/gnulib-tool.texi: s/can not/cannot/
11476         * doc/posix-functions/accept.texi (accept): Likewise.
11477         * doc/posix-functions/socket.texi (socket): Likewise.
11478         * lib/mbrtowc.c: Likewise.
11479
11480         maint.mk: prohibit use of "can not"
11481         * top/maint.mk (sc_prohibit_can_not): New rule.
11482         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
11483
11484 2011-04-09  Bruno Haible  <bruno@clisp.org>
11485
11486         careadlinkat: Guard against misuse of careadlinkatcwd.
11487         * lib/careadlinkat.c: Include <stdlib.h>.
11488         (careadlinkatcwd): Check that the fd argument is as expected.
11489
11490 2011-04-09  Bruno Haible  <bruno@clisp.org>
11491
11492         careadlinkat: Use common coding style.
11493         * lib/careadlinkat.c: Move gnulib includes after system includes.
11494
11495 2011-04-09  Bruno Haible  <bruno@clisp.org>
11496
11497         careadlinkat: Clarify specification.
11498         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
11499         (careadlinkatcwd): Add comment.
11500         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
11501
11502 2011-04-09  Bruno Haible  <bruno@clisp.org>
11503
11504         areadlinkat: Avoid link error on many platforms.
11505         * modules/areadlinkat (Depends-on): Add areadlink.
11506
11507 2011-04-09  Bruno Haible  <bruno@clisp.org>
11508
11509         allocator, careadlinkat: Fix double-inclusion guard.
11510         * lib/allocator.h: Fix double-inclusion guard.
11511         * lib/careadlinkat.h: Likewise.
11512
11513 2011-04-09  Bruno Haible  <bruno@clisp.org>
11514
11515         relocatable-prog-wrapper: Update after module 'areadlink' changed.
11516         * lib/relocwrapper.c: Update dependencies hierarchy.
11517         * build-aux/install-reloc: Update list of files to be compiled.
11518         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
11519         lib/allocator.[hc].
11520
11521 2011-04-08  Eric Blake  <eblake@redhat.com>
11522
11523         strftime: silence gnulib-tool warning
11524         * modules/strftime-tests (Depends-on): Drop automatic dependency.
11525
11526 2011-04-08  Bruno Haible  <bruno@clisp.org>
11527
11528         verify: Fix syntax error with GCC 4.6 in C++ mode.
11529         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
11530         (HAVE_STATIC_ASSERT): New macro.
11531         (verify_true, verify): Use 'static_assert' if it is supported and
11532         '_Static_assert' is not supported.
11533
11534 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11535
11536         allocator: New module.
11537         * modules/allocator, lib/allocator.c: New files.
11538         * lib/allocator.h (stdlib_allocator): New decl.
11539         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
11540         Remove.  Do not include <stdlib.h>.
11541         (careadlinkat): Use stdlib_allocator instead of rolling our own.
11542         * modules/careadlinkat (Files): Remove lib/allocator.h.
11543         (Depends-on): Add allocator.
11544
11545         stdlib: let modules use system malloc, realloc
11546         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
11547         if !_GL_USE_STDLIB_ALLOC.
11548         (malloc, realloc): Limit this change to a smaller scope.
11549
11550         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
11551         (malloc, realloc): Don't #undef; no longer needed.
11552         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11553         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11554         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11555         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11556         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11557         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11558         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11559         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11560
11561         careadlinkat: rename members to avoid problem
11562         * lib/allocator.h (struct allocator): Rename members from
11563         malloc/realloc to allocate/reallocate, to avoid problems if malloc
11564         and realloc are #define'd.  Reported by Eric Blake in
11565         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
11566         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
11567
11568 2011-04-08  Eric Blake  <eblake@redhat.com>
11569
11570         nonblocking: reduce dependency
11571         * tests/test-nonblocking.c: Only test sockets when in use.
11572         * modules/nonblocking-tests (Depends-on): Drop socket.
11573         (Makefile.am): Link even if sockets are not present.
11574         * modules/pipe2-tests (Makefile.am): Likewise.
11575         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
11576
11577         pipe2: fix O_NONBLOCK support on mingw
11578         * modules/pipe2 (Depends-on): Add nonblocking.
11579         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
11580         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
11581         * tests/test-nonblocking.c (main): Likewise.
11582         * modules/pipe2-tests (Makefile.am): Avoid link failure.
11583
11584         fcntl-h: fix O_ACCMODE on cygwin
11585         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
11586         * lib/fcntl.in.h (O_ACCMODE): Fix it.
11587
11588         pipe-filter: drop O_NONBLOCK workarounds
11589         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
11590         * modules/pipe-filter-ii (Depends-on): Likewise.
11591         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
11592
11593         nonblocking: provide O_NONBLOCK for mingw
11594         * modules/nonblocking (Depends-on): Add open.
11595         (configure.ac): Set new witness macro.
11596         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
11597         * modules/fcntl-h (Makefile.am): Substitute it.
11598         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
11599         nonblocking module is in use.
11600         * lib/nonblocking.c: Adjust portability test.
11601         * lib/open.c (open): Don't let native open see gnulib flag.
11602         * tests/test-fcntl-h.c (main): Enhance test.
11603         * tests/test-open.h (test_open): Likewise.
11604         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
11605
11606         careadlinkat: fix compilation error on mingw
11607         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
11608         within struct allocator.
11609
11610 2011-04-06  Eric Blake  <eblake@redhat.com>
11611
11612         binary-io: relicense under LGPLv2+
11613         * modules/binary-io (License): Relax to LGPLv2+.
11614         Requested for libvirt, and required by pipe2.
11615
11616 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
11617
11618         verify: use _Static_assert if available
11619         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
11620         (verify_true, verify): Use it if available.  This generates better
11621         diagnostics with GCC 4.6.0 and later.
11622
11623 2011-04-05  Bruno Haible  <bruno@clisp.org>
11624
11625         Remove leftover generated .h files after config.status changed.
11626
11627         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
11628         GL_GENERATE_ALLOCA_H.
11629         * modules/alloca-opt (Makefile.am): Remove alloca.h if
11630         GL_GENERATE_ALLOCA_H evaluates to false.
11631
11632         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
11633         GL_GENERATE_ARGZ_H.
11634         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
11635         evaluates to false.
11636
11637         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
11638         GL_GENERATE_BYTESWAP_H.
11639         * modules/byteswap (Makefile.am): Remove byteswap.h if
11640         GL_GENERATE_BYTESWAP_H evaluates to false.
11641
11642         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
11643         GL_GENERATE_ERRNO_H.
11644         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
11645         evaluates to false.
11646
11647         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
11648         GL_GENERATE_FLOAT_H.
11649         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
11650         evaluates to false.
11651
11652         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
11653         GL_GENERATE_FNMATCH_H.
11654         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
11655         GL_GENERATE_FNMATCH_H evaluates to false.
11656
11657         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
11658         GL_GENERATE_GLOB_H.
11659         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
11660         evaluates to false.
11661
11662         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
11663         automake conditional GL_GENERATE_ICONV_H.
11664         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
11665         evaluates to false.
11666
11667         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
11668         GL_GENERATE_NETINET_IN_H.
11669         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
11670         GL_GENERATE_NETINET_IN_H evaluates to false.
11671
11672         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
11673         conditional GL_GENERATE_PTHREAD_H.
11674         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
11675         * modules/pthread (Makefile.am): Remove pthread.h if
11676         GL_GENERATE_PTHREAD_H evaluates to false.
11677
11678         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
11679         GL_GENERATE_SCHED_H.
11680         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
11681         evaluates to false.
11682
11683         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
11684         conditional GL_GENERATE_SELINUX_CONTEXT_H.
11685         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
11686         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
11687
11688         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
11689         GL_GENERATE_STDARG_H.
11690         * modules/stdarg (Makefile.am): Remove stdarg.h if
11691         GL_GENERATE_STDARG_H evaluates to false.
11692
11693         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
11694         GL_GENERATE_STDBOOL_H.
11695         * modules/stdbool (Makefile.am): Remove stdbool.h if
11696         GL_GENERATE_STDBOOL_H evaluates to false.
11697
11698         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
11699         conditional GL_GENERATE_STDDEF_H.
11700         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
11701         * modules/stddef (Makefile.am): Remove stddef.h if
11702         GL_GENERATE_STDDEF_H evaluates to false.
11703
11704         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
11705         GL_GENERATE_STDINT_H.
11706         * modules/stdint (Makefile.am): Remove stdint.h if
11707         GL_GENERATE_STDINT_H evaluates to false.
11708
11709         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
11710         GL_GENERATE_SYSEXITS_H.
11711         * modules/sysexits (Makefile.am): Remove sysexits.h if
11712         GL_GENERATE_SYSEXITS_H evaluates to false.
11713
11714         Reported by Karl Berry and Ralf Wildenhues.
11715
11716 2011-04-05  Bruno Haible  <bruno@clisp.org>
11717
11718         Ensure to rebuild generated .h files when config.status has changed.
11719         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
11720         config.status.
11721         * modules/ctype (Makefile.am): Likewise.
11722         * modules/dirent (Makefile.am): Likewise.
11723         * modules/errno (Makefile.am): Likewise.
11724         * modules/fcntl-h (Makefile.am): Likewise.
11725         * modules/float (Makefile.am): Likewise.
11726         * modules/getopt-posix (Makefile.am): Likewise.
11727         * modules/glob (Makefile.am): Likewise.
11728         * modules/iconv-h (Makefile.am): Likewise.
11729         * modules/inttypes (Makefile.am): Likewise.
11730         * modules/langinfo (Makefile.am): Likewise.
11731         * modules/locale (Makefile.am): Likewise.
11732         * modules/math (Makefile.am): Likewise.
11733         * modules/netdb (Makefile.am): Likewise.
11734         * modules/netinet_in (Makefile.am): Likewise.
11735         * modules/poll-h (Makefile.am): Likewise.
11736         * modules/pthread (Makefile.am): Likewise.
11737         * modules/pty (Makefile.am): Likewise.
11738         * modules/sched (Makefile.am): Likewise.
11739         * modules/search (Makefile.am): Likewise.
11740         * modules/selinux-h (Makefile.am): Likewise.
11741         * modules/signal (Makefile.am): Likewise.
11742         * modules/spawn (Makefile.am): Likewise.
11743         * modules/stdarg (Makefile.am): Likewise.
11744         * modules/stdbool (Makefile.am): Likewise.
11745         * modules/stddef (Makefile.am): Likewise.
11746         * modules/stdint (Makefile.am): Likewise.
11747         * modules/stdio (Makefile.am): Likewise.
11748         * modules/stdlib (Makefile.am): Likewise.
11749         * modules/string (Makefile.am): Likewise.
11750         * modules/strings (Makefile.am): Likewise.
11751         * modules/sys_file (Makefile.am): Likewise.
11752         * modules/sys_ioctl (Makefile.am): Likewise.
11753         * modules/sys_select (Makefile.am): Likewise.
11754         * modules/sys_socket (Makefile.am): Likewise.
11755         * modules/sys_stat (Makefile.am): Likewise.
11756         * modules/sys_time (Makefile.am): Likewise.
11757         * modules/sys_times (Makefile.am): Likewise.
11758         * modules/sys_utsname (Makefile.am): Likewise.
11759         * modules/sys_wait (Makefile.am): Likewise.
11760         * modules/sysexits (Makefile.am): Likewise.
11761         * modules/termios (Makefile.am): Likewise.
11762         * modules/time (Makefile.am): Likewise.
11763         * modules/unistd (Makefile.am): Likewise.
11764         * modules/wchar (Makefile.am): Likewise.
11765         * modules/wctype-h (Makefile.am): Likewise.
11766         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
11767
11768 2011-04-05  Bruno Haible  <bruno@clisp.org>
11769
11770         pipe2: Relicense under LGPLv2+.
11771         * modules/pipe2 (License): Change to LGPLv2+.
11772         Requested by Eric Blake, for libvirt.
11773
11774 2011-04-05  Bruce Korb  <bkorb@gnu.org>
11775
11776         bootstrap: compute gnulib_extra_files after updating build_aux
11777         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
11778         change build_aux or also supply gnulib_extra_files.  Handle correctly.
11779
11780 2011-04-05  Eric Blake  <eblake@redhat.com>
11781
11782         bootstrap: preserve git whitelist item sorting
11783         * build-aux/bootstrap (sort_patterns): New function.
11784         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
11785
11786 2011-04-05  Simon Josefsson  <simon@josefsson.org>
11787
11788         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
11789         sc_space_tab check.
11790
11791 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11792
11793         areadlink, areadlinkat: rewrite in terms of careadlinkat
11794         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
11795         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
11796         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
11797         (malloc, realloc): Remove #undefs.
11798         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
11799         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
11800         readlink, ssize_t, stdint, unistd.
11801         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
11802         areadlink, stdint.
11803
11804         careadlinkat: new module
11805         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
11806         * modules/careadlinkat: New files, written by me with
11807         a review and feedback from Ben Pfaff in
11808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
11809
11810 2011-04-01  Bruno Haible  <bruno@clisp.org>
11811
11812         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
11813         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
11814         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
11815         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
11816         Reported by Bruce Korb <bruce.korb@gmail.com>.
11817
11818 2011-04-01  Bruno Haible  <bruno@clisp.org>
11819
11820         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
11821         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
11822         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
11823         * modules/wcpcpy (Depends-on): Add extensions.
11824         * modules/wcpncpy (Depends-on): Likewise.
11825         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
11826         systems.
11827         * doc/posix-functions/wcpncpy.texi: Likewise.
11828         * doc/posix-functions/wcwidth.texi: Likewise.
11829
11830 2011-03-31  Eric Blake  <eblake@redhat.com>
11831
11832         nonblocking: fix mingw test failures
11833         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
11834         non-blocking flag on regular file.
11835         (get_nonblocking_flag): Set errno on invalid fd.
11836         * tests/test-nonblocking.c (main): Avoid test failure on
11837         directories if fchdir is not active.
11838         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
11839
11840 2011-03-31  Bruno Haible  <bruno@clisp.org>
11841
11842         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
11843         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
11844         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
11845         Reported by Simon Josefsson <simon@josefsson.org>.
11846
11847 2011-03-31  Bruno Haible  <bruno@clisp.org>
11848         and Eric Blake  <eblake@redhat.com>
11849
11850         nonblocking: new module
11851         * modules/nonblocking: New module.
11852         * modules/nonblocking-tests: Likewise.
11853         * lib/nonblocking.h: New file.
11854         * lib/nonblocking.c: Likewise.
11855         * tests/test-nonblocking.c: New test.
11856         * lib/ioctl.c (ioctl) [mingw]: Update comment.
11857
11858 2011-03-30  Bruno Haible  <bruno@clisp.org>
11859
11860         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
11861         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
11862         instead of 'printf' format for GCC >= 4.4.
11863         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
11864         (fprintf, printf, vfprintf, vprintf): Declare with
11865         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
11866         the system's vfprintf() function.
11867         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
11868
11869 2011-03-30  Eric Blake  <eblake@redhat.com>
11870
11871         passfd: fix scoping bug
11872         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
11873         before sendmsg/recvmsg.
11874
11875         passfd: standardize coding conventions
11876         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
11877         can be learned at compile time.
11878         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
11879         ifdefs.
11880         (sendfd, recvfd): Follow gnulib code conventions.
11881
11882         passfd: fix incorrect sendmsg arguments
11883         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
11884         incorrect msg_controllen value.
11885         * modules/passfd-tests (Depends-on): Check for alarm.
11886         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
11887         Reported by Bastien ROUCARIES.
11888
11889 2011-03-30  Bruno Haible  <bruno@clisp.org>
11890
11891         c-strcasestr: Relicense under LGPLv2+.
11892         * modules/c-strcasestr (License): Change to LGPLv2+.
11893         Requested by Eric Blake, for libvirt.
11894
11895 2011-03-30  Simon Josefsson  <simon@josefsson.org>
11896
11897         * users.txt: Add libidn2.  Fix libtasn1 link.
11898
11899 2011-03-30  Jim Meyering  <meyering@redhat.com>
11900
11901         tests: readlink* ("",... fails with EINVAL on newer kernels
11902         readlink and readlinkat have typically failed with ENOENT for
11903         the invalid, empty file name,  "".  However, with the advent
11904         of linux-2.6.39, they fail with EINVAL.
11905         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
11906         when operating on the empty file name.
11907         * tests/test-readlink.h (test_readlink): Likewise.
11908
11909 2011-03-29  Bruno Haible  <bruno@clisp.org>
11910
11911         Relicense some modules under LGPLv2+, for libidn2.
11912         * modules/array-mergesort (License): Change to LGPLv2+.
11913         * modules/c-strcaseeq (License): Likewise.
11914         * modules/striconveh (License): Likewise.
11915         * modules/striconveha (License): Likewise.
11916         * modules/uniconv/base (License): Likewise.
11917         * modules/uniconv/u8-conv-from-enc (License): Likewise.
11918         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
11919         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
11920         * modules/unictype/base (License): Likewise.
11921         * modules/unictype/bidiclass-of (License): Likewise.
11922         * modules/unictype/category-M (License): Likewise.
11923         * modules/unictype/category-none (License): Likewise.
11924         * modules/unictype/category-of (License): Likewise.
11925         * modules/unictype/category-test (License): Likewise.
11926         * modules/unictype/category-test-withtable (License): Likewise.
11927         * modules/unictype/combining-class (License): Likewise.
11928         * modules/unictype/joiningtype-of (License): Likewise.
11929         * modules/unictype/scripts (License): Likewise.
11930         * modules/uninorm/base (License): Likewise.
11931         * modules/uninorm/canonical-decomposition (License): Likewise.
11932         * modules/uninorm/composition (License): Likewise.
11933         * modules/uninorm/decompose-internal (License): Likewise.
11934         * modules/uninorm/decomposition-table (License): Likewise.
11935         * modules/uninorm/nfc (License): Likewise.
11936         * modules/uninorm/nfd (License): Likewise.
11937         * modules/uninorm/u32-normalize (License): Likewise.
11938         * modules/unistr/base (License): Likewise.
11939         * modules/unistr/u32-cpy (License): Likewise.
11940         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
11941         * modules/unistr/u32-to-u8 (License): Likewise.
11942         * modules/unistr/u32-uctomb (License): Likewise.
11943         * modules/unistr/u8-check (License): Likewise.
11944         * modules/unistr/u8-mblen (License): Likewise.
11945         * modules/unistr/u8-mbtouc (License): Likewise.
11946         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
11947         * modules/unistr/u8-mbtoucr (License): Likewise.
11948         * modules/unistr/u8-prev (License): Likewise.
11949         * modules/unistr/u8-strlen (License): Likewise.
11950         * modules/unistr/u8-to-u32 (License): Likewise.
11951         * modules/unistr/u8-uctomb (License): Likewise.
11952         * modules/unitypes (License): Likewise.
11953         Requested by Simon Josefsson.
11954
11955 2011-03-29  Simon Josefsson  <simon@josefsson.org>
11956
11957         lib-symbol-visibility: Add a notice.
11958         * modules/lib-symbol-visibility (Notice): New field.
11959
11960 2011-03-29  Bruno Haible  <bruno@clisp.org>
11961
11962         getaddrinfo: Doc fix.
11963         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
11964         section "fixed in Gnulib".
11965
11966 2011-03-28  Simon Josefsson  <simon@josefsson.org>
11967
11968         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
11969         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
11970
11971 2011-03-26  Bruno Haible  <bruno@clisp.org>
11972
11973         unictype/property-byname: Reduce the number of load-time relocations.
11974         * lib/unictype/pr_byname.c: Include <stdlib.h>.
11975         (UC_PROPERTY_INDEX_*): New enumeration values.
11976         (uc_property_byname): Convert an index from the lookup table to an
11977         uc_property_t.
11978         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
11979         values.
11980
11981 2011-03-26  Bruno Haible  <bruno@clisp.org>
11982
11983         unictype/property-byname: Allow omitted word separators and aliases.
11984         * lib/unictype/pr_byname.gperf: Add property names without word
11985         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
11986         for 'space'.
11987
11988 2011-03-26  Bruno Haible  <bruno@clisp.org>
11989
11990         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
11991         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
11992         also hyphens to space.
11993         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
11994         without spaces.
11995         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
11996
11997 2011-03-26  Bruno Haible  <bruno@clisp.org>
11998
11999         unictype/joiningtype-byname: Recognize long names as well.
12000         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12001         a long name.
12002         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12003         unictype/joiningtype_byname.h.
12004         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12005         * lib/unictype/joiningtype_byname.gperf: New file.
12006         * modules/unictype/joiningtype-byname (Files): Add
12007         lib/unictype/joiningtype_byname.gperf.
12008         (Depends-on): Add gperf.
12009         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12010         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12011         long names.
12012
12013         Tests for module 'unictype/joiningtype-longname'.
12014         * modules/unictype/joiningtype-longname-tests: New file.
12015         * tests/unictype/test-joiningtype_longname.c: New file.
12016
12017         New module 'unictype/joiningtype-longname'.
12018         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12019         * lib/unictype/joiningtype_longname.c: New file.
12020         * modules/unictype/joiningtype-longname: New file.
12021         * modules/unictype/joiningtype-all (Depends-on): Add
12022         unictype/joiningtype-longname.
12023
12024 2011-03-26  Bruno Haible  <bruno@clisp.org>
12025
12026         unictype/bidiclass-byname: Recognize long names as well.
12027         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12028         name.
12029         * lib/unictype/bidi_byname.c: Include <string.h>,
12030         unictype/bidi_byname.h.
12031         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12032         * lib/unictype/bidi_byname.gperf: New file.
12033         * modules/unictype/bidiclass-byname (Files): Add
12034         lib/unictype/bidi_byname.gperf.
12035         (Depends-on): Add gperf.
12036         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12037         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12038         long names.
12039
12040         Tests for module 'unictype/bidiclass-longname'.
12041         * modules/unictype/bidiclass-longname-tests: New file.
12042         * tests/unictype/test-bidi_longname.c: New file.
12043
12044         New module 'unictype/bidiclass-longname'.
12045         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12046         * lib/unictype/bidi_longname.c: New file.
12047         * modules/unictype/bidiclass-longname: New file.
12048         * modules/unictype/bidiclass-all (Depends-on): Add
12049         unictype/bidiclass-longname.
12050
12051 2011-03-26  Bruno Haible  <bruno@clisp.org>
12052
12053         unictype/bidi*: Rename modules.
12054         * modules/unictype/bidiclass-all: Renamed from
12055         modules/unictype/bidicategory-all.
12056         * modules/unictype/bidiclass-name: Renamed from
12057         modules/unictype/bidiclass-name.
12058         (Description): Update.
12059         * modules/unictype/bidiclass-name-tests: Renamed from
12060         modules/unictype/bidicategory-name-tests.
12061         * modules/unictype/bidiclass-byname: Renamed from
12062         modules/unictype/bidicategory-byname.
12063         (Description): Update.
12064         * modules/unictype/bidiclass-byname-tests: Renamed from
12065         modules/unictype/bidicategory-byname-tests.
12066         * modules/unictype/bidiclass-of: Renamed from
12067         modules/unictype/bidicategory-of.
12068         (Description): Update.
12069         * modules/unictype/bidiclass-of-tests: Renamed from
12070         modules/unictype/bidicategory-of-tests.
12071         * modules/unictype/bidiclass-test: Renamed from
12072         modules/unictype/bidicategory-test.
12073         (Description): Update.
12074         * modules/unictype/bidiclass-test-tests: Renamed from
12075         modules/unictype/bidicategory-test-tests.
12076         * modules/unictype/bidicategory-all: New file, a simple redirection.
12077         * modules/unictype/bidicategory-name: Likewise.
12078         * modules/unictype/bidicategory-byname: Likewise.
12079         * modules/unictype/bidicategory-of: Likewise.
12080         * modules/unictype/bidicategory-test: Likewise.
12081         * modules/unictype/property-bidi-* (Dependencies): Update.
12082         * lib/unictype/bidi_*.c: Update comment.
12083
12084 2011-03-26  Bruno Haible  <bruno@clisp.org>
12085
12086         unictype/bidi*: Rename functions, part 2.
12087         * modules/unictype/bidicategory-name (configure.ac): Update required
12088         libunistring version.
12089         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12090
12091 2011-03-25  Bruno Haible  <bruno@clisp.org>
12092
12093         New module 'unictype/combining-class-all'.
12094         * modules/unictype/combining-class-all: New file.
12095
12096         Tests for module 'unictype/combining-class-byname'.
12097         * modules/unictype/combining-class-byname-tests: New file.
12098         * tests/unictype/test-combiningclass_byname.c: New file.
12099
12100         New module 'unictype/combining-class-byname'.
12101         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12102         * lib/unictype/combiningclass_byname.c: New file.
12103         * lib/unictype/combiningclass_byname.gperf: New file.
12104         * modules/unictype/combining-class-byname: New file.
12105
12106         Tests for module 'unictype/combining-class-longname'.
12107         * modules/unictype/combining-class-longname-tests: New file.
12108         * tests/unictype/test-combiningclass_longname.c: New file.
12109
12110         New module 'unictype/combining-class-longname'.
12111         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12112         * lib/unictype/combiningclass_longname.c: New file.
12113         * modules/unictype/combining-class-longname: New file.
12114
12115         Tests for module 'unictype/combining-class-name'.
12116         * modules/unictype/combining-class-name-tests: New file.
12117         * tests/unictype/test-combiningclass_name.c: New file.
12118
12119         New module 'unictype/combining-class-name'.
12120         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12121         * lib/unictype/combiningclass_name.c: New file.
12122         * modules/unictype/combining-class-name: New file.
12123
12124 2011-03-25  Bruno Haible  <bruno@clisp.org>
12125
12126         unictype/combining-class: Rename source files.
12127         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12128         of unictype/combining.h.
12129         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12130         Update.
12131         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12132         * modules/unictype/combining-class (Description): Fix.
12133         (Files, Makefile.am): Update.
12134         * tests/unictype/test-combiningclass.c: Renamed from
12135         tests/unictype/test-combining.c.
12136         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12137
12138 2011-03-25  Bruno Haible  <bruno@clisp.org>
12139
12140         unictype: Update list of canonical combining classes.
12141         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12142
12143 2011-03-25  Bruno Haible  <bruno@clisp.org>
12144
12145         unictype/category-byname: Recognize long names as well.
12146         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12147         a long name.
12148         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12149         unictype/categ_byname.h.
12150         (UC_CATEGORY_INDEX_*): New enumeration values.
12151         (uc_general_category_byname): Use uc_general_category_lookup and
12152         convert from index to value.
12153         * lib/unictype/categ_byname.gperf: New file.
12154         * modules/unictype/category-byname (Files): Add
12155         lib/unictype/categ_byname.gperf.
12156         (Depends-on): Add gperf.
12157         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12158         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12159         long names.
12160
12161         Tests for module 'unictype/category-longname'.
12162         * modules/unictype/category-longname-tests: New file.
12163         * tests/unictype/test-categ_longname.c: New file.
12164
12165         New module 'unictype/category-longname'.
12166         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12167         * lib/unictype/categ_longname.c: New file.
12168         * modules/unictype/category-longname: New file.
12169         * modules/unictype/category-all (Depends-on): Add it.
12170
12171 2011-03-25  Bruno Haible  <bruno@clisp.org>
12172
12173         Tests for module 'unictype/category-LC'.
12174         * modules/unictype/category-LC-tests: New file.
12175         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12176
12177         New module 'unictype/category-LC'.
12178         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12179         (UC_CATEGORY_LC): New declaration.
12180         (UC_CASED_LETTER): New macro.
12181         * lib/gen-uni-tables.c (is_category_LC): New function.
12182         (output_categories): Also handle category LC.
12183         (UC_CATEGORY_MASK_LC): New enumeration value.
12184         (general_category_byname): Also handle category LC.
12185         * lib/unictype/categ_LC.c: New file.
12186         * lib/unictype/categ_LC.h: New file, automatically generated.
12187         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12188         category LC.
12189         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12190         * modules/unictype/category-LC: New file.
12191         * modules/unictype/category-byname (Depends-on): Add
12192         unictype/category-LC.
12193         * modules/unictype/category-all (Depends-on): Likewise.
12194
12195 2011-03-25  Eric Blake  <eblake@redhat.com>
12196
12197         xmalloc: revert yesterday's regression
12198         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12199         realloc's underlying behavior (allowing allocation of zero-size
12200         objects, especially if malloc-gnu is also in use).
12201
12202 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12203
12204         maint.mk: add missing version to VC-tag
12205         * top/maint.mk: git tag was missing actual tag name; add it.
12206
12207         valgrind: do leak checking, and exit with code 1 on error (not 0)
12208         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12209         to VALGRIND.
12210
12211 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12212
12213         posix-modules: say what it does.
12214         * posix-modules: Add a line to the --help output saying what it does.
12215
12216 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12217
12218         xmalloc: Do not leak if underlying realloc is C99 compatible.
12219         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12220         This avoids a leak on C99-based systems.  See
12221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12222
12223 2011-03-24  Eric Blake  <eblake@redhat.com>
12224
12225         realloc: document portability problem
12226         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12227         passing 0 size to realloc.
12228
12229 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12230
12231         doc: update users.txt
12232         * users.txt: Add cvsps, tmpwatch
12233
12234 2011-03-23  Matt Rice  <ratmice@gmail.com>
12235
12236         doc: update users.txt
12237         * users.txt: Add gdb.
12238
12239 2011-03-23  Jim Meyering  <meyering@redhat.com>
12240
12241         doc: update users.txt
12242         Looking through matches up to the following URL (there are still
12243         several more pages), I found several projects that use gnulib:
12244         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
12245         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
12246         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
12247
12248 2011-03-22  Bruno Haible  <bruno@clisp.org>
12249
12250         unictype/bidi*: Rename functions.
12251         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
12252         uc_bidi_class, uc_is_bidi_class): New declarations.
12253         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
12254         uc_bidi_category_byname.
12255         (uc_bidi_category_byname): New function.
12256         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
12257         u_bidi_category_name.
12258         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
12259         (uc_bidi_category_name): New function.
12260         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
12261         uc_bidi_category.
12262         (uc_bidi_category): New function.
12263         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
12264         uc_is_bidi_category. Invoke uc_bidi_class.
12265         (uc_is_bidi_category): New function.
12266         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
12267         instead of uc_bidi_category_byname.
12268         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
12269         instead of uc_bidi_category_name.
12270         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
12271         uc_bidi_category.
12272         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
12273         instead of uc_is_bidi_category.
12274
12275 2011-03-21  Bruno Haible  <bruno@clisp.org>
12276
12277         New module 'unictype/joininggroup-all'.
12278         * modules/unictype/joininggroup-all: New file.
12279
12280         Tests for module 'unictype/joininggroup-of'.
12281         * modules/unictype/joininggroup-of-tests: New file.
12282         * tests/unictype/test-joininggroup_of.c: New file.
12283         * tests/unictype/test-joininggroup_of.h: New file, automatically
12284         generated by gen-uni-tables.
12285
12286         New module 'unictype/joininggroup-of'.
12287         * modules/unictype/joininggroup-of: New file.
12288         * lib/unictype/joininggroup_of.c: New file.
12289         * lib/unictype/joininggroup_of.h: New file, automatically generated by
12290         gen-uni-tables.
12291
12292         Tests for module 'unictype/joininggroup-byname'.
12293         * modules/unictype/joininggroup-byname-tests: New file.
12294         * tests/unictype/test-joininggroup_byname.c: New file.
12295
12296         New module 'unictype/joininggroup-byname'.
12297         * modules/unictype/joininggroup-byname: New file.
12298         * lib/unictype/joininggroup_byname.c: New file.
12299         * lib/unictype/joininggroup_byname.gperf: New file.
12300
12301         Tests for module 'unictype/joininggroup-name'.
12302         * modules/unictype/joininggroup-name-tests: New file.
12303         * tests/unictype/test-joininggroup_name.c: New file.
12304
12305         New module 'unictype/joininggroup-name'.
12306         * modules/unictype/joininggroup-name: New file.
12307         * lib/unictype/joininggroup_name.c: New file.
12308         * lib/unictype/joininggroup_name.h: New file.
12309
12310         New module 'unictype/joiningtype-all'.
12311         * modules/unictype/joiningtype-all: New file.
12312
12313         Tests for module 'unictype/joiningtype-of'.
12314         * modules/unictype/joiningtype-of-tests: New file.
12315         * tests/unictype/test-joiningtype_of.c: New file.
12316         * tests/unictype/test-joiningtype_of.h: New file, automatically
12317         generated by gen-uni-tables.
12318
12319         New module 'unictype/joiningtype-of'.
12320         * modules/unictype/joiningtype-of: New file.
12321         * lib/unictype/joiningtype_of.c: New file.
12322         * lib/unictype/joiningtype_of.h: New file, automatically generated by
12323         gen-uni-tables.
12324
12325         Tests for module 'unictype/joiningtype-byname'.
12326         * modules/unictype/joiningtype-byname-tests: New file.
12327         * tests/unictype/test-joiningtype_byname.c: New file.
12328
12329         New module 'unictype/joiningtype-byname'.
12330         * modules/unictype/joiningtype-byname: New file.
12331         * lib/unictype/joiningtype_byname.c: New file.
12332
12333         Tests for module 'unictype/joiningtype-name'.
12334         * modules/unictype/joiningtype-name-tests: New file.
12335         * tests/unictype/test-joiningtype_name.c: New file.
12336
12337         New module 'unictype/joiningtype-name'.
12338         * modules/unictype/joiningtype-name: New file.
12339         * lib/unictype/joiningtype_name.c: New file.
12340
12341         unictype: Add support for Arabic shaping properties.
12342         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
12343         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12344         declarations.
12345         (UC_JOINING_GROUP_*): New enumeration values.
12346         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12347         declarations.
12348         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12349         (unicode_joining_type): New variable.
12350         (UC_JOINING_GROUP_*): New enumeration values.
12351         (unicode_joining_group): New variable.
12352         (fill_arabicshaping, joining_type_as_c_identifier,
12353         output_joining_type_test, output_joining_type,
12354         joining_group_as_c_identifier, output_joining_group_test,
12355         output_joining_group): New functions.
12356         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12357         fill_arabicshaping and output_joining_type_test, output_joining_type,
12358         output_joining_group_test, output_joining_group.
12359         Reported by Simon Josefsson.
12360
12361 2011-03-21  Jim Meyering  <meyering@redhat.com>
12362
12363         strftime: fix a bug in yesterday's change
12364         * lib/strftime.c (add): Accommodate width's initial value of -1.
12365         Otherwise, nstrftime would copy uninitialized data into
12366         the result buffer.
12367
12368 2011-03-21  Jim Meyering  <meyering@redhat.com>
12369
12370         tests: add strftime-tests module
12371         * tests/test-strftime.c: New file.
12372         * modules/strftime-tests: New module.
12373
12374 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12375
12376         strftime: don't assume a byte count fits in 'int'
12377         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
12378         found this problem by static analysis, using gcc -Wstrict-overflow
12379         (GCC 4.5.2, x86-64).  This reported an optimization that depended
12380         on an integer overflow having undefined behavior, but it turns out
12381         that the argument is a size, which might not fit in 'int' anyway,
12382
12383 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12384
12385         stdio: don't require ignore_value around fwrite
12386
12387         This patch works around libc bug 11959
12388         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
12389         Without this patch, applications must often write
12390         ignore_value (fwrite (...)) even though the ignore_value is
12391         not helpful here.  It's common to write many objects, using
12392         fwrite/printf/etc., and then use ferror to detect output error.
12393
12394         I considered making this patch optional, but decided against it,
12395         because libc is obviously being inconsistent here: there is no
12396         reason libc should insist that user code must inspect fwrite
12397         return's value without also insisting that it inspect printf's,
12398         putchar's, etc.  If user code wants to have a strict style where
12399         all these functions' values are checked (so that ferror need not
12400         be checked), we could add support for that style in a new gnulib
12401         module, but in the meantime it's better to be consistent and to
12402         support common usage.
12403
12404         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
12405         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
12406         that we are compiling in checking mode, and if not C++, and
12407         if not already wrapping fwrite for some other reason.
12408         (fwrite): #define to rpl_fwrite if the latter is defined.
12409
12410 2011-03-20  Bruno Haible  <bruno@clisp.org>
12411
12412         verror: Fix compilation error introduced on 2011-02-13.
12413         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12414         instead of __attribute__.
12415         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12416
12417 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12418             Bruno Haible  <bruno@clisp.org>
12419
12420         socklen: do not depend on sys_socket
12421         While trying to modify Emacs to use gnulib's socklen module,
12422         I discovered a circular dependency: socklen depends on sys_socket
12423         and vice versa.  Emacs can use socklen, but it does not need
12424         sys_socket because it has its own substitute for sys/socket.h.
12425         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
12426         gl_TYPE_SOCKLEN_T.
12427         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
12428         gl_PREREQ_SYS_H_SOCKET.
12429         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
12430         gl_PREREQ_SYS_H_SOCKET.
12431         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
12432         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
12433         * modules/socklen (Depends-on): Do not depend on sys_socket.
12434         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
12435
12436 2011-03-20  Jim Meyering  <meyering@redhat.com>
12437
12438         maint.mk: sort file names *after* new transformation
12439         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
12440         prefix would have led to an unwarranted failure in GNU parted.
12441         Sort after that transformation.
12442
12443 2011-03-19  Jim Meyering  <meyering@redhat.com>
12444
12445         maint.mk: fix po-file syntax-check rule
12446         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
12447         Patch by Bruno Haible.
12448
12449 2011-03-19  Bruno Haible  <bruno@clisp.org>
12450
12451         socklen: Update comment.
12452         * m4/socklen.m4: Update comment about platforms.
12453
12454 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12455             Bruno Haible  <bruno@clisp.org>
12456
12457         inet_ntop, inet_pton: Simplify.
12458         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
12459         documented to provide socklen_t and we already depend on sys_socket.
12460         * modules/inet_pton (Depends-on): Likewise.
12461         * lib/arpa_inet.in.h: Adjust comment.
12462
12463 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12464             Bruno Haible  <bruno@clisp.org>
12465
12466         netdb: Simplify.
12467         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
12468         documented to provide socklen_t and we already depend on sys_socket.
12469         * lib/netdb.in.h: Adjust comment.
12470
12471 2011-03-19  Bruno Haible  <bruno@clisp.org>
12472
12473         sys_socket, netdb: Document problem with socklen_t.
12474         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
12475         platforms.
12476         * doc/posix-headers/netdb.texi: Likewise.
12477
12478 2011-03-18  Eric Blake  <eblake@redhat.com>
12479
12480         maint.mk: let po check work in VPATH build
12481         * top/maint.mk (po_file): Allow cfg.mk override.
12482         (sc_po_check): Allow VPATH use.
12483         Reported by Jiri Denemark.
12484
12485 2011-03-16  Jim Meyering  <meyering@redhat.com>
12486
12487         maint.mk: allow fine-grained syntax-check exclusion via Make variables
12488         Before, you would have had to create one .x-sc_ file per rule in order
12489         to exempt offending files.  Now, you may instead use a Make variable --
12490         usually defined in cfg.mk -- whose name identifies the affected rule.
12491         * top/maint.mk (_sc_excl): Define.
12492         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
12493         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
12494
12495 2011-03-13  Bruno Haible  <bruno@clisp.org>
12496
12497         ignore-value tests: Avoid warnings.
12498         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
12499         empty for gcc < 3.4.
12500
12501 2011-03-13  Bruno Haible  <bruno@clisp.org>
12502
12503         passfd: Fix link error on Solaris.
12504         * modules/passfd (Description): Correct.
12505         (Depends-on): Add socketlib.
12506         (Link): New section.
12507         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
12508
12509 2011-03-13  Bruno Haible  <bruno@clisp.org>
12510
12511         passfd: Fix link error on AIX 5.2.
12512         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
12513
12514 2011-03-13  Bruno Haible  <bruno@clisp.org>
12515
12516         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
12517         * lib/sys_socket.in.h: Include <stddef.h>.
12518         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
12519         CMSG_FIRSTHDR. Remove unused variable.
12520
12521 2011-03-13  Bruno Haible  <bruno@clisp.org>
12522
12523         passfd: Fix compilation error on OpenBSD.
12524         * lib/passfd.c: Include <sys/uio.h>.
12525
12526 2011-03-13  Bruno Haible  <bruno@clisp.org>
12527
12528         passfd test: Fix warnings.
12529         * tests/test-passfd.c: Include <sys/wait.h>.
12530         (main): Fix typo.
12531
12532 2011-03-13  Bruno Haible  <bruno@clisp.org>
12533
12534         passfd module, part 4, tweaks.
12535         * tests/test-passfd.c: Reorder includes.
12536         (main): Fix perror and printf calls.
12537
12538 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12539
12540         passfd module, part 4.
12541         * modules/passfd-tests: New file.
12542         * tests/test-passfd.c: New file.
12543
12544 2011-03-13  Jim Meyering  <meyering@redhat.com>
12545
12546         Makefile: rely on GNU make; derive syntax-check rule names
12547         Rather than requiring that each sc_ rule be listed as a dependent
12548         of "check", use features of GNU make to derive the list.
12549         * Makefile (syntax-check-rules): Define.
12550         (check): Depend on the new variable, not the hard-coded list.
12551
12552 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
12553             Bruno Haible  <bruno@clisp.org>
12554
12555         passfd module, part 3.
12556         * lib/passfd.h (recvfd): Add a flags argument.
12557         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
12558         (recvfd): Add a flags argument.
12559         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
12560         exists.
12561         * modules/passfd (Depends-on): Add cloexec.
12562         Suggested by Eric Blake.
12563
12564 2011-03-13  Bruno Haible  <bruno@clisp.org>
12565
12566         passfd module, part 2, tweaks.
12567         * modules/passfd (Files): Reorder.
12568         (Depends-on): Remove errno.
12569         (Include): Remove <sys/socket.h>, <sys/un.h>.
12570         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
12571         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
12572         specification header. Include <sys/socket.h> always. Don't include
12573         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
12574         (sendfd): Clarify that it sets errno when it fails.
12575         (recvfd): Fix specification.
12576
12577 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12578
12579         passfd module, part 2.
12580         * modules/passfd: New file.
12581         * lib/passfd.h: New file.
12582         * lib/passfd.c: New file.
12583
12584 2011-03-12  Bruno Haible  <bruno@clisp.org>
12585
12586         wcswidth, mbswidth: Avoid integer overflow.
12587         * lib/wcswidth.c: Include <limits.h>.
12588         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
12589         * lib/mbswidth.c: Include <limits.h>.
12590         (mbsnwidth): Avoid 'int' overflow.
12591         Reported by Jim Meyering.
12592
12593 2011-03-12  Bruno Haible  <bruno@clisp.org>
12594
12595         futimens, utimensat: Avoid endless recursion on Solaris 10.
12596         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
12597         Solaris.
12598         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
12599         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
12600
12601 2011-03-11  Jim Meyering  <meyering@redhat.com>
12602
12603         maint.mk: relax a regexp to accommodate other formatting styles
12604         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
12605         between "ngettext" and the following "(".
12606
12607 2011-03-11  Pádraig Brady <P@draigBrady.com>
12608
12609         maint.mk: suppress a false positive warning
12610         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
12611         diagnostics are marked with ngettext.
12612
12613 2011-03-10  Eric Blake  <eblake@redhat.com>
12614
12615         wchar: add explicit dependencies, for Tru64
12616         * modules/mbmemcasecoll (Depends-on): Add wchar.
12617         * modules/mbtowc (Depends-on): Likewise.
12618         * modules/vasnprintf (Depends-on): Likewise.
12619         * modules/unistdio/u-printf-args (Depends-on): Likewise.
12620         * modules/wctomb (Depends-on): Likewise.
12621         Reported by Peter O'Gorman.
12622
12623 2011-03-08  Bruno Haible  <bruno@clisp.org>
12624
12625         passfd module, part 1, tweaks.
12626         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
12627         Improve indentation. Improve AC_MSG_CHECKING messages.
12628         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
12629         gl_SOCKET_FAMILIES.
12630
12631 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12632
12633         passfd module, part 1.
12634         * m4/afunix.m4: New file.
12635         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
12636         sockets.
12637
12638 2011-03-08  Bruno Haible  <bruno@clisp.org>
12639
12640         regex-quote: New API.
12641         * lib/regex-quote.h: Include <stdbool.h>.
12642         (struct regex_quote_spec): New type.
12643         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12644         New declarations.
12645         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12646         'const struct regex_quote_spec *' argument.
12647         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
12648         (pcre_special): New constant.
12649         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12650         New functions.
12651         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12652         'const struct regex_quote_spec *' argument.
12653         * modules/regex-quote (Depends-on): Add stdbool.
12654         * tests/test-regex-quote.c (check): Update for new API. Add test for
12655         anchored results.
12656         * NEWS: Mention the API change.
12657         Reported by Reuben Thomas and Eric Blake.
12658
12659 2011-03-06  Bruno Haible  <bruno@clisp.org>
12660
12661         regex-quote: Fix creation of POSIX extended regular expressions.
12662         * lib/regex-quote.c (ere_special): Add grouping and alternation
12663         operators.
12664
12665 2011-03-05  Bruno Haible  <bruno@clisp.org>
12666
12667         doc: Improve doc regarding autopoint vs. gnulib.
12668         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
12669         disable autopoint while running autoreconf.
12670         Suggested by Ralf Wildenhues.
12671
12672 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12673
12674         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
12675         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
12676
12677 2011-03-03  Bruce Korb  <bkorb@gnu.org>
12678
12679         parse-duration: remove xalloc.h dependency
12680         * lib/parse-duration.c (parse_period): handle NULL return from
12681         strdup instead of calling xstrdup().
12682         * modules/parse-duration: remove "xalloc" dependency
12683
12684 2011-03-03  Matthew Booth  <mbooth@redhat.com>
12685
12686         bootstrap: honor m4_base when running aclocal
12687         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
12688
12689 2011-03-02  Jim Meyering  <meyering@redhat.com>
12690
12691         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
12692         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
12693         on request from Matt Booth.
12694
12695 2011-03-01  Eric Blake  <eblake@redhat.com>
12696
12697         test-link: work on Hurd
12698         * tests/test-link.h (test_link): Hurd rejects linking directories
12699         with EISDIR instead of the POSIX-mandated EPERM.
12700
12701 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
12702
12703         stdio: simplify by moving files to printf-posix, sigpipe
12704         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
12705         since this symbol is needed only if printf is replaced.
12706         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
12707         Require gl_ASM_SYMBOL_PREFIX.
12708         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
12709         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
12710         (Depends-on): Add 'raise'.
12711         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
12712         * modules/stdio (Files): Remove lib/stdio-write.c,
12713         m4/asm-underscore.m4.
12714         (Depends-on): Remove 'raise'.
12715
12716         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
12717         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
12718         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
12719         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
12720
12721 2011-02-28  Bruno Haible  <bruno@clisp.org>
12722
12723         localcharset: Assume ANSI C behaviour of free().
12724         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
12725         calling free().
12726         Suggested by Simon Josefsson <simon@josefsson.org>.
12727
12728 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
12729             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
12730             Bruno Haible  <bruno@clisp.org>  (tiny change)
12731
12732         On Cygwin, use /proc file system instead of win32 API.
12733         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
12734         Win32 file names.
12735         (DllMain): Simplify by removing Cygwin specific code.
12736         (find_shared_library_fullname): Use Linux specific implementation also
12737         for Cygwin.
12738         (get_shared_library_fullname): Update accordingly.
12739         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
12740         Win32 file names.
12741         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
12742         Cygwin specific code.
12743
12744 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
12745             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
12746
12747         Fix OpenMP flag detection for various Fortran compilers.
12748         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
12749         OpenMP-conditional compilation construct, to force compile
12750         failure with missing OpenMP flag.
12751         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
12752
12753 2011-02-25  Eric Blake  <eblake@redhat.com>
12754
12755         strstr: expand test coverage
12756         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
12757         compilation.
12758         * tests/test-memmem.c (main): Duplicate tests.
12759         * tests/test-strcasestr.c (main): Likewise.
12760         * tests/test-c-strcasestr.c (main): Likewise.
12761
12762 2011-02-25  Jim Meyering  <meyering@redhat.com>
12763
12764         maint.mk: detect missing-NL-at-EOF, too
12765         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
12766         it also detects when a file lacks a newline at EOF.
12767         (require_exactly_one_NL_at_EOF_): Renamed from
12768         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
12769         since people may well have .x-sc_... file names tied to the
12770         existing name.  Suggested by Eric Blake.
12771
12772 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12773
12774         dirname: move m4/dos.m4 functionality into lib/dosname.h
12775
12776         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
12777         extracts symbols from it, puts them into config.h; but it's much
12778         easier to use the symbols directly.  filename.h already does this,
12779         but it disagrees with dos.m4 in some respects.  This patch
12780         introduces a different include file dosname.h that packages up
12781         dos.m4, and then later we can work on merging filename.h and
12782         dosname.h.  Applications that need only the easy-to-configure
12783         symbols should consider including dosname.h rather than dirname.h.
12784         * NEWS: Mention incompatible changes.
12785         * m4/dos.m4: Remove.
12786         * lib/dosname.h, modules/dosname: New files.
12787         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
12788         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
12789         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
12790         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
12791         Include dosname.h, not dirname.h.
12792         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
12793         Include dosname.h, for definitions of symbols like ISSLASH
12794         that used to be in config.h.
12795         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
12796         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12797         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12798         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12799         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
12800         * modules/rmdir (Files): Likewise.
12801         * modules/stat (Files): Likewise.
12802         * modules/unlink (Files): Likewise.
12803         * modules/dirname-lgpl (Depends-on): Add dosname.
12804         * modules/lstat (Depends-on): Likewise.
12805         * modules/openat (Depends-on): Likewise.
12806         * modules/rmdir (Depends-on): Likewise.
12807         * modules/savewd (Depends-on): Likewise.
12808         * modules/stat (Depends-on): Likewise.
12809         * modules/unlink (Depends-on): Likewise.
12810         * modules/openat (Depends-on): Remove dirname-lgpl.
12811         * modules/savewd (Depends-on): Likewise.
12812         * tests/test-dirname.c: Do not use removed symbols like
12813         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
12814         the remaining symbols, e.g., ISSLASH ('\\').
12815
12816 2011-02-25  Eric Blake  <eblake@redhat.com>
12817
12818         strstr: revert patches that introduced bug and pessimization
12819         * lib/str-two-way.h: Add another reference.
12820         (two_way_short_needle, two_way_long_needle): Revert changes from
12821         2011-02-24; they pessimize search speed.
12822         (critical_factorization): Partially revert changes from
12823         2010-06-22; they violate the requirement that the left half of the
12824         needle be smaller than the period of the needle.
12825
12826 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12827
12828         filenamecat: remove unnecessary dependency on dirname-lgpl
12829         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
12830         is no direct dependency, just an indirect one via filenamecat-lgpl.
12831
12832         remove: remove unnecessary use of m4/dos.m4
12833         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
12834         * modules/remove (FILES): Remove m4/dos.m4.
12835
12836         * lib/openat-proc.c: Don't include dirname.h; not needed.
12837
12838         backupfile: remove unnecessary use of m4/dos.m4
12839         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
12840         of its symbols are used by the backupfile code.  backupfile.c does
12841         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
12842         for the rare case of programs that want all their backup file
12843         names to live within 8+3 limits, and dos.m4 doesn't address that.
12844         * modules/backupfile (Files): Remove m4/dos.m4.
12845
12846 2011-02-24  Jim Meyering  <meyering@redhat.com>
12847
12848         strstr: fix a bug whereby strstr would mistakenly return NULL
12849         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
12850         in period calculation.
12851         (two_way_long_needle): Likewise.
12852         The original problem was reported by Mike Stump in
12853         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
12854         Ralf Wildenhues provided the short needle and haystack.
12855         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
12856         Add a more involved test to trigger the bug in two_way_long_needle.
12857
12858 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12859
12860         gnulib-tool: remove use of bold display in help screen
12861         * gnulib-tool (func_usage): Do not use bold display anymore in the
12862         help screen.  That was just meant to be a temporary emphasis for a
12863         backward-incompatible change.
12864
12865 2011-02-23  Bruno Haible  <bruno@clisp.org>
12866
12867         Fix misindentation of preprocessor directives.
12868         * lib/argp-namefrob.h: Reindent preprocessor directives.
12869         * lib/getopt_int.h (struct _getopt_data): Likewise.
12870         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
12871         * lib/vasnprintf.c (decode_long_double): Likewise.
12872         * tests/test-argmatch.c: Insert blank lines, for clarity.
12873         * tests/test-exclude.c: Likewise.
12874
12875 2011-02-22  Bruno Haible  <bruno@clisp.org>
12876
12877         ioctl: Fix for MacOS X in 64-bit mode.
12878         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
12879         value.
12880         Suggested by Eric Blake.
12881         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
12882
12883 2011-02-22  Jim Meyering  <meyering@redhat.com>
12884
12885         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
12886         * Makefile (sc_cpp_indent_check): Don't limit the check to files
12887         in lib/.
12888
12889 2011-02-22  Eric Blake  <eblake@redhat.com>
12890
12891         maint: avoid any CDPATH issue
12892         * Makefile (sc_cpp_indent_check): Anchor cd argument.
12893
12894         maint: adjust cpp indentation for my modules, as well
12895         * Makefile (sc_cpp_indent_check): Add my name.
12896         * lib/fbufmode.c: Filter through cppi.
12897         * lib/fpurge.c: Likewise.
12898         * lib/freadable.c: Likewise.
12899         * lib/freading.c: Likewise.
12900         * lib/fwritable.c: Likewise.
12901         * lib/fwriting.c: Likewise.
12902         * lib/sigaction.c: Likewise.
12903
12904 2011-02-22  Jim Meyering  <meyering@redhat.com>
12905
12906         maint: adjust cpp indentation to reflect nesting depth
12907         I.e., in a block of code that begins with an unnested "#if",
12908         put one space between the "#" in column 1 and following token.
12909         For example,
12910         -#include <sys/vfs.h>
12911         +# include <sys/vfs.h>
12912         Do this only in .c files that are part of a module I maintain.
12913         * lib/linkat.c: Filter through cppi.
12914         * lib/nanosleep.c: Likewise.
12915         * lib/openat.c: Likewise.
12916         * lib/openat-die.c: Likewise.
12917         * lib/dup3.c: Likewise.
12918         * lib/fchownat.c: Likewise.
12919         * lib/flock.c: Likewise.
12920         * lib/fsync.c: Likewise.
12921         * lib/fts.c: Likewise.
12922         * lib/getpass.c: Likewise.
12923         * lib/gettimeofday.c: Likewise.
12924         * lib/userspec.c: Likewise.
12925         * Makefile (sc_cpp_indent_check): New rule, to check this.
12926
12927 2011-02-22  Bruno Haible  <bruno@clisp.org>
12928
12929         New module 'wctomb'.
12930         * lib/stdlib.in.h (wctomb): New declaration.
12931         * lib/wctomb.c: New file.
12932         * lib/wctomb-impl.h: New file.
12933         * m4/wctomb.m4: New file.
12934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
12935         REPLACE_WCTOMB.
12936         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
12937         REPLACE_WCTOMB.
12938         * modules/wctomb: New file.
12939         * tests/test-stdlib-c++.cc: Test signature of wctomb.
12940         * doc/posix-functions/wctomb.texi: Mention the new module.
12941         * modules/wctob (Depends-on): Add wctomb.
12942
12943 2011-02-22  Bruno Haible  <bruno@clisp.org>
12944
12945         New module 'mbtowc'.
12946         * lib/stdlib.in.h (mbtowc): New declaration.
12947         * lib/mbtowc.c: New file.
12948         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
12949         * m4/mbtowc.m4: New file.
12950         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
12951         REPLACE_MBTOWC.
12952         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
12953         REPLACE_MBTOWC.
12954         * modules/mbtowc: New file.
12955         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
12956         * doc/posix-functions/mbtowc.texi: Mention the new module.
12957         * modules/btowc (Depends-on): Add mbtowc.
12958
12959 2011-02-22  Bruno Haible  <bruno@clisp.org>
12960
12961         wcrtomb: Add more tests for native Windows platforms.
12962         * tests/test-wcrtomb-w32-1.sh: New file.
12963         * tests/test-wcrtomb-w32-2.sh: New file.
12964         * tests/test-wcrtomb-w32-3.sh: New file.
12965         * tests/test-wcrtomb-w32-4.sh: New file.
12966         * tests/test-wcrtomb-w32-5.sh: New file.
12967         * tests/test-wcrtomb-w32.c: New file.
12968         * modules/wcrtomb-tests (Files): Add them.
12969         (Makefile.am): Arrange to run these tests.
12970         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
12971         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
12972
12973 2011-02-20  Bruno Haible  <bruno@clisp.org>
12974
12975         wcrtomb: Enhance test.
12976         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
12977
12978 2011-02-20  Bruno Haible  <bruno@clisp.org>
12979
12980         mbrtowc: Tiny optimization.
12981         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
12982
12983 2011-02-20  Jim Meyering  <meyering@redhat.com>
12984
12985         test-exclude.c: remove unmatched #endif
12986         * tests/test-exclude.c: Remove stray #endif, left over from
12987         the change of a week ago.
12988
12989 2011-02-19  Jim Meyering  <meyering@redhat.com>
12990
12991         git-version-gen: skip "-dirty" check when appropriate
12992         * build-aux/git-version-gen: Don't run any git commands when the
12993         version string comes from .tarball-version.  Prior to this, we
12994         would run git update-index --refresh even from a just-unpacked
12995         tarball directory, and that could affect a .git/ directory in a
12996         parent of the build directory.  Reported by Mike Frysinger.
12997
12998 2011-02-19  Bruno Haible  <bruno@clisp.org>
12999
13000         unictype/property-byname: Reduce the size of the 'data' segment.
13001         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13002
13003 2011-02-19  Bruno Haible  <bruno@clisp.org>
13004
13005         unictype/scripts: Reduce the size of the 'data' segment.
13006         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13007         '%pic'.
13008         * lib/unictype/scripts_byname.gperf: Regenerated.
13009
13010 2011-02-19  Bruno Haible  <bruno@clisp.org>
13011
13012         stdint: Update documentation.
13013         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13014
13015 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13016
13017         stdint: omit redundant check for wchar.h
13018         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13019         always tests whether wchar.h exists, so remove the now-redundant test.
13020
13021 2011-02-18  Bruno Haible  <bruno@clisp.org>
13022
13023         stdint: Cut dependency to module 'wchar'.
13024         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13025         include the necessary prerequisites.
13026         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13027         * modules/stdint (Depends-on): Remove wchar.
13028         (Makefile.am): Substitute HAVE_WCHAR_H.
13029         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13030
13031 2011-02-18  Eric Blake  <eblake@redhat.com>
13032
13033         longlong: skip, rather than fail, on cross-compilation
13034         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13035         when cross-compiling; regression from 2011-02-16.
13036
13037 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13038
13039         * NEWS: Mention 2011-02-08 change to stdlib.
13040
13041 2011-02-17  Bruno Haible  <bruno@clisp.org>
13042
13043         getloadavg: Add comments about platforms.
13044         * m4/getloadavg.m4: Add comment.
13045         * lib/getloadavg.c: Likewise.
13046
13047 2011-02-17  Bruno Haible  <bruno@clisp.org>
13048
13049         getloadavg: Fix link error on Solaris 2.6.
13050         * modules/getloadavg (Link): New section.
13051         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13052         linking test-getloadavg.
13053         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13054         getloadavg.
13055
13056 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13057
13058         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13059         It was 'int', but this doesn't match the IRIX 6.5 manual.
13060         Suggested by Bruno Haible in
13061         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13062
13063 2011-02-17  Bruno Haible  <bruno@clisp.org>
13064
13065         havelib: Fix comments.
13066         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13067         change.
13068
13069 2011-02-17  Bruno Haible  <bruno@clisp.org>
13070
13071         havelib: Update config.rpath.
13072         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13073
13074 2011-02-17  Bruno Haible  <bruno@clisp.org>
13075
13076         getloadavg test: Add some plausibility checks.
13077         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13078         is improbable.
13079
13080 2011-02-16  Eric Blake  <eblake@redhat.com>
13081
13082         maintainer-makefile: make syntax-check a no-op from tarballs
13083         * top/maint.mk (no-vc-detected): New rule.
13084         (local-checks-available): Use it to avoid hanging if someone tries
13085         'make syntax-check' from a tarball.  Also append to any non-syntax
13086         checks already defined in cfg.mk.
13087
13088 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13089
13090         longlong: tune, particularly for common case of c99
13091
13092         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13093         or running anything if c99, or if unsigned long long int does not
13094         work.  In either case, we know the answer without further tests.
13095         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13096         it at most once, and use its results for both long long int and
13097         unsigned long long int.  This is more likely to be efficient in
13098         the common case where the program wants to check for both long
13099         long int and unsigned long long int.
13100         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13101         since the answer is already known.
13102
13103 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13104
13105         getloadavg: set errno
13106         * lib/getloadavg.c: Set errno when returning -1.  If no other
13107         error number looks appropriate, set it to ENOSYS if the getloadavg
13108         looks like it can't possibly ever work, ENOTSUP otherwise.
13109         Suggested by Bruno Haible in
13110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13111
13112         getloadavg: trim unused parts and speed up 'configure'
13113         * NEWS: Document this.
13114         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13115         always compiled if getloadavg is absent.
13116         Move test code to ...
13117         * tests/test-getloadavg.c: New file, containing previous
13118         contents of test from lib/getloadavg.c.  It also contains
13119         suggestions by Bruno Haible in
13120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13121         * modules/getloadavg-tests: New file.
13122         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13123         Do tests in the same order as they're needed for getloadavg.c.
13124         Omit setgid-related tests that generate symbols KMEM_GROUP,
13125         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13126         Do only the tests that are needed to see whether the system has
13127         getloadavg, moving the other tests into ...
13128         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13129         NLIST_NAME_UNION; nobody should be using it.  Do not define
13130         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13131         relevant, as the user of this module shouldn't care how getloadavg
13132         is implemented.
13133
13134         getloadavg: omit unused var
13135         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13136
13137 2011-02-15  Jim Meyering  <meyering@redhat.com>
13138
13139         doc: update users.txt
13140         * users.txt: Update iwhd's URL.
13141
13142 2011-02-13  Bruno Haible  <bruno@clisp.org>
13143
13144         Consistent macro naming for macros that use GCC __attribute__.
13145         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13146         _ATTRIBUTE_NONNULL_.
13147         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13148         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13149         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13150         ATTRIBUTE_DEPRECATED.
13151         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13152         ATTRIBUTE_NORETURN.
13153         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13154         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13155         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13156         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13157         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13158         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13159         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13160         ATTRIBUTE_SENTINEL.
13161         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13162         ATTRIBUTE_RETURN_CHECK.
13163         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13164         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13165         ATTRIBUTE_NORETURN.
13166         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13167         Reported by Paul Eggert.
13168
13169 2011-02-13  Bruno Haible  <bruno@clisp.org>
13170
13171         Don't interfere with a program's definition of __attribute__.
13172         * lib/argp.h (__attribute__): Remove definition.
13173         (_GL_ATTRIBUTE_FORMAT): New macro.
13174         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13175         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13176         (_GL_ATTRIBUTE_FORMAT): New macro.
13177         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13178         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13179         GCC 3 or newer.
13180         * lib/error.h (__attribute__): Remove definition.
13181         (_GL_ATTRIBUTE_FORMAT): New macro.
13182         (error, error_at_line): Use it.
13183         * lib/hash.h (__attribute__): Remove definition.
13184         (ATTRIBUTE_WUR): Update definition. Define always.
13185         * lib/openat.h (__attribute__): Remove definition.
13186         (ATTRIBUTE_NORETURN): Update definition. Define always.
13187         * lib/sigpipe-die.h (__attribute__): Remove definition.
13188         (ATTRIBUTE_NORETURN): Update definition. Define always.
13189         * lib/vasnprintf.h (__attribute__): Remove definition.
13190         (_GL_ATTRIBUTE_FORMAT): New macro.
13191         (asnprintf, vasnprintf): Use it.
13192         * lib/xalloc.h (__attribute__): Remove definition.
13193         (ATTRIBUTE_NORETURN): Update definition. Define always.
13194         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13195         * lib/xmemdup0.h (__attribute__): Remove definition.
13196         (ATTRIBUTE_NORETURN): Update definition. Define always.
13197         * lib/xprintf.h (__attribute__): Remove definition.
13198         (_GL_ATTRIBUTE_FORMAT): New macro.
13199         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13200         * lib/xstrtol.h (__attribute__): Remove definition.
13201         (ATTRIBUTE_NORETURN): Update definition. Define always.
13202         * lib/xvasprintf.h (__attribute__): Remove definition.
13203         (_GL_ATTRIBUTE_FORMAT): New macro.
13204         (xasprintf, xvasprintf): Use it.
13205         * tests/test-argmatch.c (__attribute__): Remove definition.
13206         (ATTRIBUTE_NORETURN): Update definition. Define always.
13207         * tests/test-exclude.c (__attribute__): Remove definition.
13208         (ATTRIBUTE_NORETURN): Update definition. Define always.
13209         Reported by Paul Eggert.
13210
13211 2011-02-13  Bruno Haible  <bruno@clisp.org>
13212
13213         mbrtowc: Add more tests for native Windows platforms.
13214         * tests/test-mbrtowc-w32-1.sh: New file.
13215         * tests/test-mbrtowc-w32-2.sh: New file.
13216         * tests/test-mbrtowc-w32-3.sh: New file.
13217         * tests/test-mbrtowc-w32-4.sh: New file.
13218         * tests/test-mbrtowc-w32-5.sh: New file.
13219         * tests/test-mbrtowc-w32.c: New file.
13220         * modules/mbrtowc-tests (Files): Add them.
13221         (Makefile.am): Arrange to run these tests.
13222         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13223         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13224
13225 2011-02-13  Bruno Haible  <bruno@clisp.org>
13226
13227         mbrtowc: Work around native Windows bug.
13228         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13229         guess when no suitable locale for testing was found.
13230         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13231
13232 2011-02-13  Bruno Haible  <bruno@clisp.org>
13233
13234         mbsinit: Work around mingw bug.
13235         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13236         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13237         Windows.
13238         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13239
13240 2011-02-13  Bruno Haible  <bruno@clisp.org>
13241
13242         mbsinit: Don't crash for a NULL argument.
13243         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13244         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
13245
13246 2011-02-13  Bruno Haible  <bruno@clisp.org>
13247
13248         Don't interfere with a program's definition of __attribute__.
13249         * lib/stdio.in.h (__attribute__): Remove definition.
13250         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
13251         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13252         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
13253         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
13254         * lib/string.in.h (__attribute__): Remove definition.
13255         Reported by Paul Eggert.
13256
13257 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13258
13259         stdlib: don't get in the way of non-GCC __attribute__
13260         See thread starting at
13261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
13262         Revert previous stdlib change, installing the following instead:
13263         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
13264         to get in the way of a non-GCC compiler that supports __attribute__.
13265         (_GL_ATTRIBUTE_RETURN): New macro.
13266         (_Exit): Use it instead of __attribute__.
13267
13268 2011-02-12  Bruno Haible  <bruno@clisp.org>
13269
13270         quotearg test: Avoid test failure on mingw.
13271         * tests/test-quotearg.sh: Convert the locale identifier from native
13272         Windows syntax to Unix syntax.
13273
13274 2011-02-12  Bruno Haible  <bruno@clisp.org>
13275
13276         setlocale: Prefer gnulib's override over libintl's override.
13277         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
13278         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
13279         GNULIB_defined_setlocale is set.
13280
13281 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13282
13283         stdlib: support non-GCC __attribute__
13284
13285         Fix a serious and tricky problem encountered when attempting to
13286         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
13287         5.5, but it crashed due to memory corruption on Solaris 10 with
13288         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
13289         bits that are otherwise zero.  This tagging is optional inside
13290         Emacs but is preferred and is used when __attribute__ ((__aligned
13291         (8))) works, as it does with both recent-enough GCC and with Sun C
13292         5.11.  However, Sun C 5.11 is not GCC and does not #define
13293         __GNUC__ and __GNUC_MINOR__.
13294
13295         When I added the getloadavg module to Emacs, it brought in
13296         stdlib.in.h, which contained this fragment:
13297
13298            #ifndef __attribute__
13299            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
13300            #  define __attribute__(Spec)   /* empty */
13301            # endif
13302            #endif
13303
13304         When files that include <stdlib.h> were compiled with Sun C 5.11,
13305         the above code disabled __attribute__ ((__aligned (8))), which
13306         caused variables to not be properly aligned, which eventually led
13307         to the pointer corruption mentioned above.  (This was a bit hard
13308         to diagnose, unfortunately.)
13309
13310         Several "#define __attribute__(X) /* empty */" code snippets need
13311         to be eradicated from Gnulib to work with non-GCC compilers that
13312         support __attribute__.  The Autoconf way to do this is to test for
13313         each kind of attribute that we want support for, and selectively
13314         enable that in source code.
13315
13316         Fix this problem just for stdlib.h, by adding a test for the
13317         __noreturn__ attribute, and change stdlib.in.h to use that test
13318         when needed.  This technique can be easily generalized to the
13319         other *.in.h files and attributes, and a similar technique can be
13320         used for *.h and *.c files.  This patch is enough to solve the
13321         problem for Emacs + getloadavg, and I thought I'd publish it for
13322         feedback before undertaking further, similar fixes in other
13323         modules.
13324
13325         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
13326         because it's not needed for stdlib.h.  It merely substitutes the
13327         value directly into stdlib.h.  We may well need to #define it, or
13328         similar symbols, for other modules, but it's nice to also have an
13329         option to not #define it for applications like Emacs that do not
13330         need it.
13331
13332         * lib/stdlib.in.h (__attribute__): Do not #define.
13333         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
13334         be defined only if the _Exit module is also used.
13335         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
13336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
13337         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
13338         platforms.
13339         * modules/_Exit (Files): Add m4/attribute.m4.
13340         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
13341         * m4/attribute.m4: New file.
13342
13343 2011-02-12  Bruno Haible  <bruno@clisp.org>
13344
13345         wcsrtombs: Work around bug on native Windows.
13346         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13347         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13348         instead of len.
13349         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13350
13351 2011-02-12  Bruno Haible  <bruno@clisp.org>
13352
13353         mbsrtowcs: Work around bug on native Windows.
13354         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13355         against mingw bug.
13356         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13357
13358 2011-02-12  Bruno Haible  <bruno@clisp.org>
13359
13360         Avoid setlocale bugs in tests.
13361         * modules/btowc (Dependencies): Add setlocale.
13362         * modules/c-strcase (Dependencies): Likewise.
13363         * modules/mbmemcasecmp (Dependencies): Likewise.
13364         * modules/mbmemcasecoll (Dependencies): Likewise.
13365         * modules/mbrtowc (Dependencies): Likewise.
13366         * modules/mbscasecmp (Dependencies): Likewise.
13367         * modules/mbscasestr (Dependencies): Likewise.
13368         * modules/mbschr (Dependencies): Likewise.
13369         * modules/mbscspn (Dependencies): Likewise.
13370         * modules/mbsinit (Dependencies): Likewise.
13371         * modules/mbsncasecmp (Dependencies): Likewise.
13372         * modules/mbsnrtowcs (Dependencies): Likewise.
13373         * modules/mbspbrk (Dependencies): Likewise.
13374         * modules/mbspcasecmp (Dependencies): Likewise.
13375         * modules/mbsrchr (Dependencies): Likewise.
13376         * modules/mbsrtowcs (Dependencies): Likewise.
13377         * modules/mbsspn (Dependencies): Likewise.
13378         * modules/mbsstr (Dependencies): Likewise.
13379         * modules/nl_langinfo (Dependencies): Likewise.
13380         * modules/quotearg (Dependencies): Likewise.
13381         * modules/unicase/locale-language (Dependencies): Likewise.
13382         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
13383         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
13384         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
13385         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
13386         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
13387         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
13388         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
13389         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
13390         * modules/vasnprintf-posix (Dependencies): Likewise.
13391         * modules/wcrtomb (Dependencies): Likewise.
13392         * modules/wcsnrtombs (Dependencies): Likewise.
13393         * modules/wcsrtombs (Dependencies): Likewise.
13394
13395 2011-02-12  Bruno Haible  <bruno@clisp.org>
13396
13397         setlocale: Workaround native Windows bug.
13398         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
13399         succeeds but sets LC_CTYPE to "C", report a failure.
13400         * tests/test-setlocale2.sh: New file.
13401         * tests/test-setlocale2.c: New file.
13402         * modules/setlocale-tests (Files): Add the new files.
13403         (Makefile.am): Enable test-setlocale2.sh test.
13404         * doc/posix-functions/setlocale.texi: Mention workaround.
13405
13406 2011-02-11  Bruno Haible  <bruno@clisp.org>
13407
13408         Tests for module 'setlocale'.
13409         * modules/setlocale-tests: New file.
13410         * tests/test-setlocale1.sh: New file.
13411         * tests/test-setlocale1.c: New file.
13412
13413         New module 'setlocale'.
13414         * lib/locale.in.h (setlocale): New declaration.
13415         * lib/setlocale.c: New file, based on
13416         gettext/gettext-runtime/intl/setlocale.c.
13417         * m4/setlocale.m4: New file.
13418         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
13419         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
13420         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
13421         REPLACE_SETLOCALE.
13422         * modules/setlocale: New file.
13423         * tests/test-locale-c++.cc: Test the declaration of setlocale.
13424         * doc/posix-functions/setlocale.texi: Mention the new module.
13425
13426 2011-02-11  Bruno Haible  <bruno@clisp.org>
13427
13428         Prepare for locale dependent tests on mingw.
13429         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
13430         because it has the wrong locale encoding.
13431         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
13432         French_France.1252 instead of "fr".
13433         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
13434         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
13435         because it has the wrong locale encoding.
13436         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
13437         native Windows, try Turkish_Turkey.65001.
13438         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
13439         Chinese_China.54936.
13440
13441         Prepare for locale dependent tests on mingw.
13442         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
13443         differently.
13444         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
13445         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
13446         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13447         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13448
13449 2011-02-11  Eric Blake  <eblake@redhat.com>
13450
13451         strptime: avoid compiler warnings
13452         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
13453         compiler warnings about dead code.
13454         Reported by Daniel P. Berrange.
13455
13456 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
13457
13458         doc: update users.txt
13459         * users.txt: Add rcs.
13460
13461 2011-02-10  John W. Eaton  <jwe@gnu.org>
13462
13463         doc: update users.txt
13464         * users.txt: Add octave.
13465
13466 2011-02-10  Jim Meyering  <meyering@redhat.com>
13467
13468         doc: update users.txt
13469         * users.txt: Add iwhd.
13470
13471 2011-02-09  Bruno Haible  <bruno@clisp.org>
13472
13473         gnulib-tool: Make copyright notice adjustment more robust.
13474         * gnulib-tool (func_import): In sed_transform_main_lib_file,
13475         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
13476         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
13477         License".
13478         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
13479
13480 2011-02-06  Bruno Haible  <bruno@clisp.org>
13481
13482         New module 'towctrans'.
13483         * modules/towctrans: New file.
13484         * lib/wctype.in.h (towctrans): New declaration.
13485         * lib/towctrans.c: New file.
13486         * lib/towctrans-impl.h: New file.
13487         * m4/towctrans.m4: New file.
13488         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
13489         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
13490         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
13491         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
13492         * doc/posix-functions/towctrans.texi: Mention the new module.
13493
13494 2011-02-06  Bruno Haible  <bruno@clisp.org>
13495
13496         New module 'wctrans'.
13497         * modules/wctrans: New file.
13498         * lib/wctype.in.h (wctrans): New declaration.
13499         * lib/wctrans.c: New file.
13500         * lib/wctrans-impl.h: New file.
13501         * m4/wctrans.m4: New file.
13502         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
13503         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
13504         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
13505         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
13506         * doc/posix-functions/wctrans.texi: Mention the new module.
13507
13508 2011-02-06  Bruno Haible  <bruno@clisp.org>
13509
13510         New module 'iswctype'.
13511         * modules/iswctype: New file.
13512         * lib/wctype.in.h (iswctype): New declaration.
13513         * lib/iswctype.c: New file.
13514         * lib/iswctype-impl.h: New file.
13515         * m4/iswctype.m4: New file.
13516         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
13517         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
13518         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
13519         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
13520         * doc/posix-functions/iswctype.texi: Mention the new module and the
13521         HP-UX 11.00 problem.
13522
13523 2011-02-06  Bruno Haible  <bruno@clisp.org>
13524
13525         New module 'wctype'.
13526         * modules/wctype: Change to represent the wctype() substitute.
13527         * lib/wctype.in.h (wctype): New declaration.
13528         * lib/wctype.c: New file.
13529         * lib/wctype-impl.h: New file.
13530         * m4/wctype.m4: New file.
13531         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
13532         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
13533         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
13534         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
13535         * doc/posix-functions/wctype.texi: Mention the new module and the
13536         HP-UX 11.00 problem.
13537
13538 2011-02-06  Bruno Haible  <bruno@clisp.org>
13539
13540         wctype-h: Ensure wctype_t and wctrans_t are defined.
13541         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
13542         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13543         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13544         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
13545         HAVE_WCTRANS_T.
13546         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
13547
13548 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13549
13550         flock: fix license typo
13551
13552         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
13553         omitted.
13554
13555 2011-02-08  Bruno Haible  <bruno@clisp.org>
13556
13557         Split large sed scripts, for HP-UX sed.
13558         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
13559         to avoid HP-UX limit of 99 commands, in the near future.
13560         * modules/stdlib (Makefile.am): Likewise.
13561         * modules/unistd (Makefile.am): Likewise.
13562         * modules/wchar (Makefile.am): Likewise.
13563         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13564         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
13565         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
13566
13567 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13568             Bruno Haible  <bruno@clisp.org>
13569
13570         stdlib: improve random_r modularization
13571         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
13572         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
13573         you also need the random_r module to get this material right.
13574         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
13575         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
13576         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
13577
13578 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13579
13580         stdlib: don't depend on stdint
13581         * lib/stdlib.in.h: Don't include <stdint.h> merely because
13582         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
13583         be independent of whether stdint.h is needed.
13584         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
13585         here, instead of ...
13586         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
13587         struct random_data should be using the random_r module, not just
13588         the stdlib module (which wouldn't make sense: what package needs
13589         just struct random_data without also needing random_r?).
13590         * modules/stdlib (Depends-on): Remove stdint.
13591
13592         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
13593         See the thread rooted at
13594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
13595         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
13596         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
13597         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
13598         __VMS)); previously it was always included (via fcntl--.h).
13599         (getloadavg): Do not use c_strtod.  Instead, approximate it by
13600         hand; this is good enough for load averages.  Also, do not use
13601         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
13602         flags directly if available and don't bother otherwise.  (Packages
13603         that need the extra reliability should use the modules that define
13604         these flags on older platforms that lack them.)
13605         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
13606         fcntl-safer.
13607
13608 2011-02-08  Jim Meyering  <meyering@redhat.com>
13609
13610         di-set.h, ino-map.h: add multiple-inclusion guard
13611         Technically, the guard is required only for ino-map.h, due to its
13612         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
13613         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
13614         * lib/ino-map.h: Likewise.
13615
13616 2011-02-06  Bruno Haible  <bruno@clisp.org>
13617
13618         iswblank: Ensure declaration on glibc systems.
13619         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
13620         * modules/iswblank (Dependencies): Add 'extensions'.
13621         * doc/posix-functions/iswblank.texi: Document the glibc problem.
13622
13623 2011-02-06  Bruno Haible  <bruno@clisp.org>
13624
13625         New module 'iswblank'.
13626         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
13627         * modules/iswblank: New file.
13628         * modules/wctype-h (Files): Remove lib/iswblank.c.
13629         (Makefile.am): Substitute GNULIB_ISWBLANK.
13630         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
13631         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
13632         (gl_WCTYPE_H_DEFAULTS): New macro.
13633         (gl_WCTYPE_H): Require it. Remove iswblank related code.
13634         * modules/iswblank-tests: New file.
13635         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
13636         * tests/test-wctype-h.c (main): Remove iswblank tests.
13637         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
13638         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
13639         of 'wctype-h'.
13640         * NEWS: Mention the change.
13641         * modules/mbchar (Depends-on): Add iswblank.
13642
13643 2011-02-08  Bruno Haible  <bruno@clisp.org>
13644
13645         di-set tests: Refactor.
13646         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
13647         unnecessary includes.
13648         (ASSERT): Remove macro.
13649         (main): Make C90 compliant by avoiding variable declaration after
13650         statement.
13651         * modules/di-set-tests (Files): Add tests/macros.h.
13652
13653 2011-02-08  Bruno Haible  <bruno@clisp.org>
13654
13655         ino-map tests: Refactor.
13656         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
13657         unnecessary includes.
13658         (ASSERT): Remove macro.
13659         (main): Make C90 compliant by avoiding variable declaration after
13660         statement.
13661         * modules/ino-map-tests (Files): Add tests/macros.h.
13662
13663 2011-02-08  Jim Meyering  <meyering@redhat.com>
13664
13665         di-set: add "const" to a cast
13666         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
13667         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
13668
13669 2011-02-06  Bruno Haible  <bruno@clisp.org>
13670
13671         Rename module 'wctype' to 'wctype-h'.
13672         * modules/wctype-h: Renamed from modules/wctype.
13673         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
13674         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
13675         (Files, Depends-on, Makefile.am): Update.
13676         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
13677         (Files, Makefile.am): Update.
13678         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
13679         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
13680         * doc/posix-headers/wctype.texi: Update.
13681         * doc/posix-functions/iswalnum.texi: Update.
13682         * doc/posix-functions/iswalpha.texi: Update.
13683         * doc/posix-functions/iswblank.texi: Update.
13684         * doc/posix-functions/iswcntrl.texi: Update.
13685         * doc/posix-functions/iswdigit.texi: Update.
13686         * doc/posix-functions/iswgraph.texi: Update.
13687         * doc/posix-functions/iswlower.texi: Update.
13688         * doc/posix-functions/iswprint.texi: Update.
13689         * doc/posix-functions/iswpunct.texi: Update.
13690         * doc/posix-functions/iswspace.texi: Update.
13691         * doc/posix-functions/iswupper.texi: Update.
13692         * doc/posix-functions/iswxdigit.texi: Update.
13693         * doc/posix-functions/towlower.texi: Update.
13694         * doc/posix-functions/towupper.texi: Update.
13695         * NEWS: Mention the change.
13696         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
13697         * modules/mbchar (Dependencies): Likewise.
13698         * modules/mbswidth (Dependencies): Likewise.
13699         * modules/quotearg (Dependencies): Likewise.
13700         * modules/regex (Dependencies): Likewise.
13701         * modules/wcscasecmp (Dependencies): Likewise.
13702         * modules/wcsncasecmp (Dependencies): Likewise.
13703         * modules/wcwidth (Dependencies): Likewise.
13704
13705 2011-02-06  Bruno Haible  <bruno@clisp.org>
13706
13707         New module 'wcswidth'.
13708         * modules/wcswidth: New file.
13709         * lib/wchar.in.h (wcswidth): New declaration.
13710         * lib/wcswidth.c: New file.
13711         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
13712         * m4/wcswidth.m4: New file.
13713         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
13714         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
13715         REPLACE_WCSWIDTH.
13716         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
13717         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
13718         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
13719         * doc/posix-functions/wcswidth.texi: Mention the new module.
13720
13721 2011-02-06  Bruno Haible  <bruno@clisp.org>
13722
13723         New module 'wcstok'.
13724         * modules/wcstok: New file.
13725         * lib/wchar.in.h (wcstok): New declaration.
13726         * lib/wcstok.c: New file.
13727         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
13728         * m4/wcstok.m4: New file.
13729         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
13730         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
13731         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
13732         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
13733         * doc/posix-functions/wcstok.texi: Mention the new module.
13734
13735 2011-02-06  Bruno Haible  <bruno@clisp.org>
13736
13737         New module 'wcsstr'.
13738         * modules/wcsstr: New file.
13739         * lib/wchar.in.h (wcsstr): New declaration.
13740         * lib/wcsstr.c: New file.
13741         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
13742         * m4/wcsstr.m4: New file.
13743         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
13744         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
13745         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
13746         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
13747         * doc/posix-functions/wcsstr.texi: Mention the new module.
13748
13749 2011-02-06  Bruno Haible  <bruno@clisp.org>
13750
13751         New module 'wcspbrk'.
13752         * modules/wcspbrk: New file.
13753         * lib/wchar.in.h (wcspbrk): New declaration.
13754         * lib/wcspbrk.c: New file.
13755         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
13756         * m4/wcspbrk.m4: New file.
13757         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
13758         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
13759         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
13760         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
13761         * doc/posix-functions/wcspbrk.texi: Mention the new module.
13762
13763 2011-02-06  Bruno Haible  <bruno@clisp.org>
13764
13765         New module 'wcsspn'.
13766         * modules/wcsspn: New file.
13767         * lib/wchar.in.h (wcsspn): New declaration.
13768         * lib/wcsspn.c: New file.
13769         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
13770         * m4/wcsspn.m4: New file.
13771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
13772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
13773         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
13774         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
13775         * doc/posix-functions/wcsspn.texi: Mention the new module.
13776
13777 2011-02-06  Bruno Haible  <bruno@clisp.org>
13778
13779         New module 'wcscspn'.
13780         * modules/wcscspn: New file.
13781         * lib/wchar.in.h (wcscspn): New declaration.
13782         * lib/wcscspn.c: New file.
13783         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
13784         * m4/wcscspn.m4: New file.
13785         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
13786         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
13787         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
13788         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
13789         * doc/posix-functions/wcscspn.texi: Mention the new module.
13790
13791 2011-02-06  Bruno Haible  <bruno@clisp.org>
13792
13793         New module 'wcsrchr'.
13794         * modules/wcsrchr: New file.
13795         * lib/wchar.in.h (wcsrchr): New declaration.
13796         * lib/wcsrchr.c: New file.
13797         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
13798         * m4/wcsrchr.m4: New file.
13799         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
13800         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
13801         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
13802         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
13803         * doc/posix-functions/wcsrchr.texi: Mention the new module.
13804
13805 2011-02-06  Bruno Haible  <bruno@clisp.org>
13806
13807         New module 'wcschr'.
13808         * modules/wcschr: New file.
13809         * lib/wchar.in.h (wcschr): New declaration.
13810         * lib/wcschr.c: New file.
13811         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
13812         * m4/wcschr.m4: New file.
13813         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
13814         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
13815         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
13816         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
13817         * doc/posix-functions/wcschr.texi: Mention the new module.
13818
13819 2011-02-06  Bruno Haible  <bruno@clisp.org>
13820
13821         New module 'wcsdup'.
13822         * modules/wcsdup: New file.
13823         * lib/wchar.in.h (wcsdup): New declaration.
13824         * lib/wcsdup.c: New file.
13825         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
13826         * m4/wcsdup.m4: New file.
13827         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
13828         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
13829         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
13830         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
13831         * doc/posix-functions/wcsdup.texi: Mention the new module.
13832
13833 2011-02-06  Bruno Haible  <bruno@clisp.org>
13834
13835         New module 'wcsxfrm'.
13836         * modules/wcsxfrm: New file.
13837         * lib/wchar.in.h (wcsxfrm): New declaration.
13838         * lib/wcsxfrm.c: New file.
13839         * lib/wcsxfrm-impl.h: New file.
13840         * m4/wcsxfrm.m4: New file.
13841         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
13842         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
13843         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
13844         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
13845         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
13846
13847 2011-02-06  Bruno Haible  <bruno@clisp.org>
13848
13849         New module 'wcscoll'.
13850         * modules/wcscoll: New file.
13851         * lib/wchar.in.h (wcscoll): New declaration.
13852         * lib/wcscoll.c: New file.
13853         * lib/wcscoll-impl.h: New file.
13854         * m4/wcscoll.m4: New file.
13855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
13856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
13857         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
13858         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
13859         * doc/posix-functions/wcscoll.texi: Mention the new module.
13860
13861 2011-02-06  Bruno Haible  <bruno@clisp.org>
13862
13863         New module 'wcsncasecmp'.
13864         * modules/wcsncasecmp: New file.
13865         * lib/wchar.in.h (wcsncasecmp): New declaration.
13866         * lib/wcsncasecmp.c: New file.
13867         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
13868         * m4/wcsncasecmp.m4: New file.
13869         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
13870         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
13871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
13872         HAVE_WCSNCASECMP.
13873         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
13874         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
13875
13876 2011-02-06  Bruno Haible  <bruno@clisp.org>
13877
13878         New module 'wcscasecmp'.
13879         * modules/wcscasecmp: New file.
13880         * lib/wchar.in.h (wcscasecmp): New declaration.
13881         * lib/wcscasecmp.c: New file.
13882         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
13883         * m4/wcscasecmp.m4: New file.
13884         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
13885         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
13886         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
13887         HAVE_WCSCASECMP.
13888         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
13889         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
13890
13891 2011-02-05  Bruno Haible  <bruno@clisp.org>
13892
13893         New module 'wcsncmp'.
13894         * modules/wcsncmp: New file.
13895         * lib/wchar.in.h (wcsncmp): New declaration.
13896         * lib/wcsncmp.c: New file.
13897         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
13898         * m4/wcsncmp.m4: New file.
13899         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
13900         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
13901         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
13902         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
13903         * doc/posix-functions/wcsncmp.texi: Mention the new module.
13904
13905 2011-02-05  Bruno Haible  <bruno@clisp.org>
13906
13907         New module 'wcscmp'.
13908         * modules/wcscmp: New file.
13909         * lib/wchar.in.h (wcscmp): New declaration.
13910         * lib/wcscmp.c: New file.
13911         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
13912         * m4/wcscmp.m4: New file.
13913         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
13914         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
13915         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
13916         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
13917         * doc/posix-functions/wcscmp.texi: Mention the new module.
13918
13919 2011-02-05  Bruno Haible  <bruno@clisp.org>
13920
13921         New module 'wcsncat'.
13922         * modules/wcsncat: New file.
13923         * lib/wchar.in.h (wcsncat): New declaration.
13924         * lib/wcsncat.c: New file.
13925         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
13926         * m4/wcsncat.m4: New file.
13927         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
13928         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
13929         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
13930         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
13931         * doc/posix-functions/wcsncat.texi: Mention the new module.
13932
13933 2011-02-05  Bruno Haible  <bruno@clisp.org>
13934
13935         New module 'wcscat'.
13936         * modules/wcscat: New file.
13937         * lib/wchar.in.h (wcscat): New declaration.
13938         * lib/wcscat.c: New file.
13939         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
13940         * m4/wcscat.m4: New file.
13941         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
13942         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
13943         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
13944         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
13945         * doc/posix-functions/wcscat.texi: Mention the new module.
13946
13947 2011-02-05  Bruno Haible  <bruno@clisp.org>
13948
13949         New module 'wcpncpy'.
13950         * modules/wcpncpy: New file.
13951         * lib/wchar.in.h (wcpncpy): New declaration.
13952         * lib/wcpncpy.c: New file.
13953         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
13954         * m4/wcpncpy.m4: New file.
13955         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
13956         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
13957         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
13958         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
13959         * doc/posix-functions/wcpncpy.texi: Mention the new module.
13960
13961 2011-02-05  Bruno Haible  <bruno@clisp.org>
13962
13963         New module 'wcsncpy'.
13964         * modules/wcsncpy: New file.
13965         * lib/wchar.in.h (wcsncpy): New declaration.
13966         * lib/wcsncpy.c: New file.
13967         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
13968         * m4/wcsncpy.m4: New file.
13969         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
13970         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
13971         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
13972         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
13973         * doc/posix-functions/wcsncpy.texi: Mention the new module.
13974
13975 2011-02-05  Bruno Haible  <bruno@clisp.org>
13976
13977         New module 'wcpcpy'.
13978         * modules/wcpcpy: New file.
13979         * lib/wchar.in.h (wcpcpy): New declaration.
13980         * lib/wcpcpy.c: New file.
13981         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
13982         * m4/wcpcpy.m4: New file.
13983         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
13984         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
13985         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
13986         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
13987         * doc/posix-functions/wcpcpy.texi: Mention the new module.
13988
13989 2011-02-05  Bruno Haible  <bruno@clisp.org>
13990
13991         New module 'wcscpy'.
13992         * modules/wcscpy: New file.
13993         * lib/wchar.in.h (wcscpy): New declaration.
13994         * lib/wcscpy.c: New file.
13995         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
13996         * m4/wcscpy.m4: New file.
13997         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
13998         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
13999         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14000         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14001         * doc/posix-functions/wcscpy.texi: Mention the new module.
14002
14003 2011-02-05  Bruno Haible  <bruno@clisp.org>
14004
14005         New module 'wcsnlen'.
14006         * modules/wcsnlen: New file.
14007         * lib/wchar.in.h (wcsnlen): New declaration.
14008         * lib/wcsnlen.c: New file.
14009         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14010         * m4/wcsnlen.m4: New file.
14011         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14012         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14013         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14014         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14015         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14016
14017 2011-02-05  Bruno Haible  <bruno@clisp.org>
14018
14019         New module 'wcslen'.
14020         * modules/wcslen: New file.
14021         * lib/wchar.in.h (wcslen): New declaration.
14022         * lib/wcslen.c: New file.
14023         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14024         * m4/wcslen.m4: New file.
14025         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14026         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14027         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14028         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14029         * doc/posix-functions/wcslen.texi: Mention the new module.
14030
14031 2011-02-05  Bruno Haible  <bruno@clisp.org>
14032
14033         New module 'wmemset'.
14034         * modules/wmemset: New file.
14035         * lib/wchar.in.h (wmemset): New declaration.
14036         * lib/wmemset.c: New file.
14037         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14038         * m4/wmemset.m4: New file.
14039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14041         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14042         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14043         * doc/posix-functions/wmemset.texi: Mention the new module.
14044
14045 2011-02-05  Bruno Haible  <bruno@clisp.org>
14046
14047         New module 'wmemmove'.
14048         * modules/wmemmove: New file.
14049         * lib/wchar.in.h (wmemmove): New declaration.
14050         * lib/wmemmove.c: New file.
14051         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14052         * m4/wmemmove.m4: New file.
14053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14055         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14056         HAVE_WMEMMOVE.
14057         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14058         * doc/posix-functions/wmemmove.texi: Mention the new module.
14059
14060 2011-02-05  Bruno Haible  <bruno@clisp.org>
14061
14062         New module 'wmemcpy'.
14063         * modules/wmemcpy: New file.
14064         * lib/wchar.in.h (wmemcpy): New declaration.
14065         * lib/wmemcpy.c: New file.
14066         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14067         * m4/wmemcpy.m4: New file.
14068         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14069         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14070         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14071         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14072         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14073
14074 2011-02-05  Bruno Haible  <bruno@clisp.org>
14075
14076         New module 'wmemcmp'.
14077         * modules/wmemcmp: New file.
14078         * lib/wchar.in.h (wmemcmp): New declaration.
14079         * lib/wmemcmp.c: New file.
14080         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14081         * m4/wmemcmp.m4: New file.
14082         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14083         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14084         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14085         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14086         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14087
14088 2011-02-07  Jim Meyering  <meyering@redhat.com>
14089
14090         di-set, ino-map: new modules, from coreutils
14091         * lib/di-set.c: New file.
14092         * lib/di-set.h: Likewise.
14093         * lib/ino-map.c: Likewise.
14094         * lib/ino-map.h: Likewise.
14095         * modules/di-set: Likewise.
14096         * modules/di-set-tests: Likewise.
14097         * modules/ino-map: Likewise.
14098         * modules/ino-map-tests: Likewise.
14099         * tests/test-di-set.c: Likewise.
14100         * tests/test-ino-map.c: Likewise.
14101
14102 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14103
14104         getloadavg: merge minor changes from Emacs
14105
14106         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14107         (getloadavg): Use memset, not bzero.
14108
14109         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14110         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14111         clash (bug#86).
14112
14113 2010-11-14  Bruno Haible  <bruno@clisp.org>
14114
14115         Allow multiple gnulib generated replacements to coexist.
14116         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14117         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14118         * lib/langinfo.in.h (nl_item): Likewise.
14119         * lib/math.in.h (_NaN, NAN): Likewise.
14120         * lib/netdb.in.h (struct addrinfo): Likewise.
14121         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14122         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14123         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14124         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14125         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14126         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14127         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14128         pthread_mutexattr_init, pthread_mutexattr_settype,
14129         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14130         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14131         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14132         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14133         * lib/sched.in.h (struct sched_param): Likewise.
14134         * lib/se-selinux.in.h (security_class_t, security_context_t,
14135         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14136         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14137         lsetfilecon, fsetfilecon, security_check_context,
14138         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14139         Likewise.
14140         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14141         Likewise.
14142         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14143         _gl_function_taking_int_returning_void_t, union sigval,
14144         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14145         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14146         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14147         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14148         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14149         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14150         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14151         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14152         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14153         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14154         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14155         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14156         socklen_t, rpl_fd_isset): Likewise.
14157         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14158         * lib/sys_time.in.h (struct timeval): Likewise.
14159         * lib/sys_times.in.h (struct tms): Likewise.
14160         * lib/sys_utsname.in.h (struct utsname):
14161         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14162         * lib/unistd.in.h (getpagesize): Likewise.
14163         * lib/wchar.in.h (mbstate_t): Likewise.
14164         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14165         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14166         towlower, towupper): Likewise.
14167         Reported by Sam Steingold <sds@gnu.org>.
14168
14169 2011-02-05  Eric Blake  <eblake@redhat.com>
14170
14171         unsetenv: work around Haiku issues
14172         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14173         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14174
14175 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14176
14177         libposix: avoid calling error() within libposix
14178         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14179         is defined.
14180
14181 2011-02-05  Eric Blake  <eblake@redhat.com>
14182
14183         strerror_r-posix: port to cygwin
14184         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14185         implementation.
14186         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14187         * tests/test-strerror_r.c (main): Fix test.
14188         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14189         issue.
14190
14191 2011-02-05  Bruno Haible  <bruno@clisp.org>
14192
14193         New module 'wmemchr'.
14194         * modules/wmemchr: New file.
14195         * lib/wchar.in.h (wmemchr): New declaration.
14196         * lib/wmemchr.c: New file.
14197         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14198         * m4/wmemchr.m4: New file.
14199         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14200         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14201         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14202         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14203         * doc/posix-functions/wmemchr.texi: Mention the new module.
14204
14205 2011-02-04  Eric Blake  <eblake@redhat.com>
14206
14207         fdopendir: detect FreeBSD bug
14208         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14209         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14210
14211 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14212
14213         stdbool: do not define HAVE_STDBOOL_H
14214         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14215         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14216         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14217         imported from the latest Autoconf git.  It was motivated by Emacs,
14218         which uses gnulib but does not need HAVE_STDBOOL_H.
14219
14220 2011-02-04  Bruno Haible  <bruno@clisp.org>
14221
14222         wcsnrtombs: Prepare for new module wwcsnrtombs.
14223         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14224         * lib/wcsnrtombs.c: Include it.
14225         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14226
14227         wcsrtombs: Prepare for new module wwcsrtombs.
14228         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14229         * lib/wcsrtombs.c: Include it.
14230         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14231
14232         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14233         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14234         * lib/mbsnrtowcs.c: Include it.
14235         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14236
14237         mbsrtowcs: Prepare for new module mbsrtowwcs.
14238         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14239         * lib/mbsrtowcs.c: Include it.
14240         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14241
14242 2011-02-04  Bruno Haible  <bruno@clisp.org>
14243
14244         vasnprintf: Reduce use of malloc for small format strings.
14245         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
14246         (arguments): Add room for the first 7 arguments.
14247         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14248         (char_directives, u8_directives, u16_directives, u32_directives): Add
14249         room for the first 7 directives.
14250         * lib/printf-parse.c: Include <string.h>.
14251         (PRINTF_PARSE): Change memory handling code so that it uses the first
14252         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
14253         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
14254         Reported by Pádraig Brady <P@draigbrady.com>.
14255
14256 2011-01-31  Eric Blake  <eblake@redhat.com>
14257
14258         dup2: work around Haiku bug
14259         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
14260         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
14261         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14262         * tests/test-dup2.c (main): Enhance test.
14263
14264 2011-01-31  Simon Josefsson  <simon@josefsson.org>
14265
14266         doc: off_t is not available in eglibc 2.11.2 stdio.h.
14267         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
14268         declared by eglibc 2.11.2.
14269         * lib/stdio.in.h: Likewise.
14270
14271 2011-01-31  Eric Blake  <eblake@redhat.com>
14272
14273         ignore-value: add missing test dependency
14274         * tests/test-ignore-value.c: Revert previous change; stdio.h
14275         provides off_t.
14276         * modules/ignore-value-tests (Depends-on): Add missing dependency.
14277
14278 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14279
14280         mktime: clarify long_int width checking
14281         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
14282         the top level, to make it clearer that the assumption about
14283         long_int width is being checked.  See
14284         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
14285
14286 2011-01-30  Simon Josefsson  <simon@josefsson.org>
14287
14288         ignore-value: Fix self-test.
14289         * tests/test-ignore-value.c: Include sys/types.h for off_t.
14290
14291 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14292
14293         TYPE_MAXIMUM: avoid theoretically undefined behavior
14294         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
14295         negative number, which the C Standard says has undefined behavior.
14296         In practice this is not a problem, but might as well do it by the book.
14297         Reported by Rich Felker and Eric Blake; see
14298         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
14299         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
14300         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14301         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14302         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
14303         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14304         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
14305
14306         mktime: #undef mktime before #defining it
14307         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
14308
14309         mktime: systematically normalize tm_isdst comparisons
14310         * lib/mktime.c (isdst_differ): New function.
14311         (__mktime_internal): Use it systematically for all isdst comparisons.
14312         This completes the fix for libc BZ #6723, and removes the need for
14313         normalizing tm_isdst.  See
14314         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
14315         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
14316
14317         mktime: fix some integer overflow issues and sidestep the rest
14318
14319         This was prompted by a bug report by Benjamin Lindner for MinGW
14320         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
14321         His bug is due to signed integer overflow (0 - INT_MIN), and I
14322         I scanned through mktime.c looking for other integer overflow
14323         problems, fixing all the bugs I found.
14324
14325         Although the C Standard says the resulting code is still not safe
14326         in the presence of integer overflow, in practice it should be good
14327         enough for all real-world two's-complement implementations, except
14328         for debugging environments that deliberately trap on integer
14329         overflow (e.g., gcc -ftrapv).
14330
14331         * lib/mktime.c (WRAPV): New macro.
14332         (SHR): Also check that long_int and time_t shift right in the
14333         usual way, before using the fast-but-unportable method.
14334         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
14335         used.  The code already assumed two's complement, so there's
14336         no need to test for alternatives.  All uses removed.
14337         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
14338         the C standard.  Problem reported by Rich Felker in
14339         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
14340         (twos_complement_arithmetic): Also check long_int and time_t.
14341         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
14342         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
14343         (__mktime_internal): Avoid integer overflow with unary subtraction
14344         in two instances where -1 - X is an adequate replacement for -X,
14345         since the calculations are approximate.
14346
14347 2011-01-29  Eric Blake  <eblake@redhat.com>
14348
14349         mktime: avoid infinite loop
14350         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14351         type; behavior is still undefined but portable to all known targets.
14352         Reported by Rich Felker.
14353
14354 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14355
14356         rename, unlink, same-inode: Relicense.
14357         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14358         * modules/unlink (License): Likewise.
14359         * modules/same-inode (License): Likewise.
14360
14361 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14362
14363         mktime: avoid problems on NetBSD 5 / i386
14364         * lib/mktime.c (long_int): New type.  This works around a problem
14365         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14366         but time_t is 64 bits, and where I expect the existing code is
14367         wrong in some cases.
14368         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14369         (ydhms_diff): Bring back the compile-time check for wide-enough
14370         year and yday.
14371
14372         mktime: fix misspelling in comment
14373         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14374         This merges all recent glibc changes of importance.
14375
14376 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14377
14378         move-if-change: cope with concurrent mv of identical file.
14379         * build-aux/move-if-change (CMPPROG): Accept environment
14380         variable as an override for `cmp'.
14381         (usage): Document CMPPROG.
14382         Adjust comparison to drop stdout.  Cope with failure of mv if
14383         the target file exists and is identical to the source, for
14384         parallel builds.
14385         Report from H.J. Lu against binutils in PR binutils/12283.
14386
14387 2011-01-28  Bruce Korb  <bkorb@gnu.org>
14388
14389         * users.txt: Mention sharutils.
14390
14391 2011-01-28  Simon Josefsson  <simon@josefsson.org>
14392
14393         * users.txt: Mention OATH Toolkit.
14394
14395 2011-01-27  Bruno Haible  <bruno@clisp.org>
14396
14397         Prepare for supporting FreeBSD 10.
14398         * build-aux/config.libpath: Remove handling of freebsd1*.
14399
14400 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
14401
14402         Prepare for supporting FreeBSD 10.
14403         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
14404         match FreeBSD 10.0.
14405
14406 2011-01-27  Bruno Haible  <bruno@clisp.org>
14407
14408         vma-iter, get-rusage-as: Add OpenBSD support.
14409         * modules/vma-iter (configure.ac): Test for mquery.
14410         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
14411         * lib/vma-iter.c: Include <sys/mman.h>.
14412         (vma_iterate): Add an implementation based on mquery().
14413         * lib/resource-ext.h (get_rusage_as): Update comments.
14414         * lib/get-rusage-as.c: Likewise.
14415         * lib/get-rusage-data.c: Likewise.
14416
14417 2011-01-26  Karl Berry  <karl@gnu.org>
14418
14419         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
14420         variables to make it easier to override the makeinfo program used.
14421
14422 2011-01-26  Eric Blake  <eblake@redhat.com>
14423
14424         fcntl: work around Haiku F_DUPFD bugs
14425         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
14426         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
14427         cloexec bit on duplication.
14428         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
14429
14430 2011-01-26  Bruno Haible  <bruno@clisp.org>
14431
14432         Enable memory leak tests on AIX.
14433         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
14434         * tests/test-fprintf-posix3.c (main): Likewise.
14435
14436 2011-01-26  Bruno Haible  <bruno@clisp.org>
14437
14438         Tests for module 'get-rusage-data'.
14439         * modules/get-rusage-data-tests: New file.
14440         * tests/test-get-rusage-data.c: New file.
14441
14442         New module 'get-rusage-data'.
14443         * lib/resource-ext.h (get_rusage_data): New declaration.
14444         * lib/get-rusage-data.c: New file.
14445         * modules/get-rusage-data: New file.
14446
14447 2011-01-25  Bruno Haible  <bruno@clisp.org>
14448
14449         get-rusage-as: Allow for easier testing.
14450         * lib/resource-ext.h (get_rusage_as): Add comment.
14451         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
14452         (main): New function for interactive testing.
14453
14454 2011-01-25  Bruno Haible  <bruno@clisp.org>
14455
14456         vma-iter: Treat Haiku like BeOS.
14457         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
14458         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
14459
14460 2011-01-25  Eric Blake  <eblake@redhat.com>
14461
14462         c-stack: fix regression on cygwin when libsigsegv is present
14463         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
14464
14465 2011-01-24  Bruno Haible  <bruno@clisp.org>
14466
14467         vma-iter: Avoid empty intervals.
14468         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
14469         on an empty interval.
14470
14471 2011-01-24  Jim Meyering  <meyering@redhat.com>
14472
14473         u64: remove unnecessary #include
14474         * lib/u64.h: Don't include <stddef.h>.  It was not used.
14475
14476 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14477
14478         Allow the user to avoid the HAVE_RAW_DECL_* macros.
14479         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
14480
14481 2011-01-23  Bruno Haible  <bruno@clisp.org>
14482
14483         New module 'vma-iter'.
14484         * lib/vma-iter.h: New file.
14485         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
14486         * modules/vma-iter: New file.
14487         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
14488         for get_rusage_as_via_iterator.
14489         (vma_iterate_callback): New function.
14490         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
14491         * modules/get-rusage-as (Depends-on): Add vma-iter.
14492
14493 2011-01-23  Bruno Haible  <bruno@clisp.org>
14494
14495         uninorm: Tweak includes.
14496         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
14497         Reported by Jim Meyering.
14498
14499 2011-01-23  Bruno Haible  <bruno@clisp.org>
14500
14501         get-rusage-as: Improve on NetBSD.
14502         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
14503         /proc, like on FreeBSD.
14504
14505 2011-01-23  Jim Meyering  <meyering@redhat.com>
14506
14507         xreadlink.h: remove unnecessary #include
14508         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
14509
14510         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
14511         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
14512
14513 2011-01-23  Bruno Haible  <bruno@clisp.org>
14514
14515         get-rusage-as: Fix bug.
14516         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
14517         original limit when aborting the first loop.
14518
14519 2011-01-23  Bruno Haible  <bruno@clisp.org>
14520
14521         wctype: Ensure valid C syntax.
14522         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
14523         unconditionally, instead of gl_NEXT_HEADERS conditionally.
14524
14525 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14526
14527         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
14528         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
14529         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
14530         as they are needed only for configure's test case.
14531         This removes two unnecessary symbols from config.h.
14532
14533         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
14534         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
14535         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
14536         AC_CHECK_HEADERS_ONCE on a header that we also invoke
14537         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
14538         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
14539         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
14540         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14541         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14542         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14543         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14544         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14545         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14546         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14547         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14548         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14549         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14550         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14551
14552 2011-01-21  Eric Blake  <eblake@redhat.com>
14553
14554         maintainer-makefile: work with older git for submodule check
14555         * top/maint.mk (public-submodule-commit): Rewrite to avoid
14556         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
14557         Reported by Matthias Bolte.
14558
14559         bootstrap: minor portability fixes
14560         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
14561         (usage): Omit leading capital and trailing . on help phrases, per
14562         GNU Coding Standards.
14563         (check_versions, top level): Prefix messages with script name.
14564
14565 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
14566
14567         bootstrap: support --no-git option
14568         * build-aux/bootstrap: Add --no-git option, to be used when
14569         --gnulib-srcdir points to the exact desired checkout.
14570
14571 2011-01-21  Eric Blake  <eblake@redhat.com>
14572
14573         strerror_r-posix: work with glibc 2.13
14574         * lib/strerror_r.c (strerror_r): Fix return type.
14575
14576 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14577             Bruno Haible  <bruno@clisp.org>
14578
14579         uN_strstr: New unit tests.
14580         * modules/unistr/u8-strstr-tests: New file.
14581         * modules/unistr/u16-strstr-tests: New file.
14582         * modules/unistr/u32-strstr-tests: New file.
14583         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
14584         * tests/unistr/test-u8-strstr.c: New file.
14585         * tests/unistr/test-u16-strstr.c: New file.
14586         * tests/unistr/test-u32-strstr.c: New file.
14587
14588 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14589             Bruno Haible  <bruno@clisp.org>
14590
14591         Make uN_strstr functions O(n) worst-case.
14592         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
14593         16-bit and 32-bit unit cases, use the unibyte algorithm from
14594         lib/mbsstr.c.
14595         * lib/unistr/u8-strstr.c: Include <string.h>.
14596         (UNIT_IS_UINT8_T): New macro.
14597         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
14598         (U_STRLEN, U_STRNLEN): New macros.
14599         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
14600         (U_STRLEN, U_STRNLEN): New macros.
14601         * modules/unistr/u8-strstr (Depends-on): Add strstr.
14602         (configure.ac): Update required libunistring version.
14603         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
14604         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
14605         malloca.
14606         (configure.ac): Update required libunistring version.
14607         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
14608         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
14609         malloca.
14610         (configure.ac): Update required libunistring version.
14611
14612 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14613             Bruno Haible  <bruno@clisp.org>
14614
14615         Prepare for faster uN_strstr functions.
14616         * lib/str-kmp.h: Support definable UNITs.
14617         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
14618         needle_len argument.
14619         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
14620         * lib/mbscasestr.c (mbscasestr): Likewise.
14621
14622 2011-01-21  Pádraig Brady <P@draigBrady.com>
14623
14624         malloca-tests: make faster by unsetting MALLOC_PERTURB_
14625         * tests/test-malloca.c (main): Unset the environment variable
14626         to greatly speed up the test.
14627         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
14628         * modules/malloca-tests: Depend on unsetenv.
14629
14630 2011-01-21  Pádraig Brady <P@draigBrady.com>
14631
14632         ignore-value: remove stdint dependency
14633         * lib/ignore-value.h: Remove <stdint.h>
14634         * modules/ignore-value: Remove stdint dependency.
14635
14636 2011-01-21  Jim Meyering  <meyering@redhat.com>
14637
14638         maint.mk: adjust variable name to be consistent with other gl_ vars
14639         * top/maint.mk (gl_public_submodule_commit): Rename the variable
14640         to be lower case.
14641
14642 2011-01-20  Jim Meyering  <meyering@redhat.com>
14643
14644         maint.mk: make "check" depend on public-submodule-commit by default
14645         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
14646
14647 2011-01-20  Bruno Haible  <bruno@clisp.org>
14648
14649         mbfile, mbiter: Complete change from 2008-12-21.
14650         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
14651         * m4/mbiter.m4 (gl_MBITER): Likewise.
14652
14653 2011-01-20  Jim Meyering  <meyering@redhat.com>
14654
14655         init.sh: insert space between each function name and "()"
14656         * tests/init.sh: Make it a little easier to see that a function's
14657         name is "warn_", and not "warn" when looking at the first part of
14658         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
14659
14660 2011-01-20  Jim Meyering  <meyering@redhat.com>
14661
14662         mountlist: clean up code formatting
14663         * lib/mountlist.c (read_file_system_list): Split a long line,
14664         correct bracing style, use NULL in place of "(struct statfs *)0",
14665         don't parenthesize return value, add spaces around "=" and after
14666         ";-in-for-stmt".
14667
14668 2011-01-14  Markus Duft <mduft@gentoo.org>
14669
14670         mountlist: add support for Interix
14671         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
14672         Apply statvfs to all entries of /dev/fs.
14673         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
14674         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
14675
14676 2011-01-20  Jim Meyering  <meyering@redhat.com>
14677
14678         maint.mk: improve the public-submodule-commit rule
14679         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
14680         to suppress printing of its commands... unless V=1.
14681         Add git submodule's --quiet option to suppress printing of e.g.,
14682         "Entering gnulib" output.
14683         "cd" into $(srcdir) before running git submodule.
14684
14685 2011-01-20  Bruno Haible  <bruno@clisp.org>
14686
14687         include_next: Fix bug introduced on 2011-01-18.
14688         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
14689         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
14690         ac_cv_header_... variable if the second argument is not 'check'.
14691         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
14692         gl_NEXT_HEADERS_INTERNAL.
14693
14694 2011-01-20  Bruno Haible  <bruno@clisp.org>
14695
14696         Allow the user to avoid the GNULIB_TEST_* macros.
14697         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
14698         Suggested by Paul Eggert.
14699
14700 2011-01-14  Jim Meyering  <meyering@redhat.com>
14701
14702         bootstrap: avoid failure when there is no .gitmodules file
14703         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
14704         has been assigned to, even when its value is the empty string.
14705         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
14706         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
14707         Reported by John W. Eaton <jwe@gnu.org>.
14708
14709 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14710
14711         assume <ctype.h>, ..., <time.h> exist
14712         For years gnulib has been assuming the existence of the headers
14713         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
14714         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
14715         them, since they don't appear to be needed.
14716         * README (Portability guidelines): Document this.
14717         * lib/flock.c: Assume <fcntl.h> exists.
14718         * lib/regex_internal.h: Assume <locale.h> exists.
14719         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
14720         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
14721         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
14722         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
14723         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
14724         * m4/regex.m4 (gl_REGEX): Likewise.
14725         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
14726         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
14727         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
14728         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
14729         * tests/test-argp.c: Likewise.
14730         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
14731
14732         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
14733         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
14734         AA_APPLE_UNIVERSAL_BUILD.  See
14735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
14736         * NEWS: Document this.
14737
14738 2011-01-19  Eric Blake  <eblake@redhat.com>
14739
14740         c-stack: assume stack overflow if SA_SIGINFO unsupported
14741         * lib/c-stack.c (SIGACTION_WORKS): Rename...
14742         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
14743         sigaction will work.
14744         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
14745         behavior match Linux.
14746         * tests/test-c-stack.c (main): Prefer NULL for pointers.
14747
14748         stdbool-tests: accomodate Haiku
14749         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
14750
14751         binary-io: fix O_TEXT on Haiku
14752         * modules/binary-io (Depends-on): Add fcntl-h.
14753         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
14754         than blindly undefining O_TEXT.
14755         Reported by Scott McCreary.
14756
14757 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14758
14759         include_next: do not check for standard headers like stddef.h
14760
14761         I found this problem when modifying Emacs to use gnulib.
14762         I noticed that it added HAVE_STDDEF_H to config.h, even though
14763         gnulib always assumes <stddef.h> exists as per README and this
14764         symbol is unnecessary.
14765         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
14766         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
14767         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
14768         faster for headers like stddef.h that are known to exist.
14769         (gl_CHECK_NEXT_HEADERS): Use it.
14770         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
14771         rather than gl_CHECK_NEXT_HEADERS.
14772         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
14773         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
14774
14775 2011-01-18  Eric Blake  <eblake@redhat.com>
14776
14777         ansi-c++-opt: skip C++ dependency style if C++ is unused
14778         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
14779         tests when we know C++ compilation is not desired.
14780         Reported by Scott McCreary.
14781
14782 2011-01-18  Bruno Haible  <bruno@clisp.org>
14783
14784         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
14785         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
14786         (main): Perform test also when getrlimit and setrlimit don't exist or
14787         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
14788         limiting the address space size using setrlimit, compare the address
14789         space size before and after the the test.
14790         * tests/test-dprintf-posix2.c: Likewise.
14791         * tests/test-fprintf-posix3.sh: Update skip messages.
14792         * tests/test-dprintf-posix2.sh: Likewise.
14793         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
14794         * modules/dprintf-posix-tests (Depends-on): Likewise.
14795         Reported by Bruce Korb <bkorb@gnu.org> and
14796         Gary V. Vaughan <gary@gnu.org>.
14797
14798 2011-01-18  Bruno Haible  <bruno@clisp.org>
14799
14800         get-rusage-as: Improvement for Cygwin.
14801         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
14802         areas that are merely reserved.
14803
14804 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14805
14806         strftime: remove dependencies on multibyte modules
14807
14808         strftime depended on mbrlen, mbsinit, and wchar, but these modules
14809         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
14810         only if __osf__ is defined, and I suspect OSF doesn't need these
14811         other modules.  If my guess is wrong, we'll need to come up with a
14812         variant of strftime that doesn't need the multibyte modules.
14813
14814         I discovered this problem when attempting modify Emacs to use the
14815         strftime module.  With the previous gnulib, this caused Emacs to
14816         need 31 new files, ranging from lib/config.charset to
14817         m4/wint_t.m4.  This was overkill and I expect would be offputting
14818         to the Emacs maintainers.  After this change, only 6 new files are
14819         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
14820         stdbool.m4, and tm_gmtoff.m4.
14821
14822         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
14823         Suggested by Bruno Haible in
14824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
14825         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
14826         and do not check for wchar.h.
14827         * modules/strftime (Files): Remove m4/mbstate_t.m4.
14828         (Depends-on): Remove mbrlen, mbsinit, wchar.
14829
14830 2011-01-18  Bruno Haible  <bruno@clisp.org>
14831
14832         Tests for module 'get-rusage-as'.
14833         * modules/get-rusage-as-tests: New file.
14834         * tests/test-get-rusage-as.c: New file.
14835
14836         New module 'get-rusage-as'.
14837         * modules/get-rusage-as: New file.
14838         * lib/resource-ext.h: New file.
14839         * lib/get-rusage-as.c: New file.
14840
14841 2011-01-17  Eric Blake  <eblake@redhat.com>
14842
14843         sigaction: relax license from LGPLv3+ to LGPLv2+
14844         * modules/sigaction (License): Relax to LGPLv2+.
14845
14846 2011-01-14  Bruno Haible  <bruno@clisp.org>
14847
14848         filemode: Make function declarations usable in C++ mode.
14849         * lib/filemode.h: Enclose function declarations in extern "C" block.
14850         Reported by John W. Eaton <jwe@gnu.org>.
14851
14852 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
14853
14854         save-cwd: no longer include "xgetcwd.h"
14855         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
14856         This avoids a compilation failure in projects that use save-cwd
14857         without also using the xgetcwd module.
14858
14859 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14860
14861         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
14862         This is so that a program like Emacs, which needs only dtoastr,
14863         does not have to bother with distributing and compiling ftoastr
14864         and ldtoastr.
14865         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
14866         * modules/dtoastr, modules/ldtoastr: New files.
14867         * modules/ftoastr: Now works just for 'float'.
14868         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
14869         (Makefile.am): Remove ftoastr.h (not needed and no effect),
14870         dtoastr.c, ldtoastr.c.
14871
14872 2011-01-11  Jim Meyering  <meyering@redhat.com>
14873
14874         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
14875         There is no need to work around the lack of the fchdir function,
14876         since gnulib can now provide a replacement when required.
14877         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
14878         * modules/save-cwd (Depends-on): Add fchdir.
14879
14880 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14881
14882         openat, save-cwd: avoid xmalloc
14883
14884         This removes a direct (but undocumented) dependency of openat on
14885         xalloc, along with an indirect dependency via save-cwd.  It also
14886         removes a dependency of save-cwd on xgetcwd, and thereby
14887         indirectly on xalloc.  This change causes the openat substitute
14888         to fall back on save_cwd when memory is tight, and for save_cwd to
14889         fail instead of dying when memory is tight, but that's good enough.
14890         Problem and initial idea for fix reported by Bastien Roucaries in
14891         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
14892
14893         * lib/openat-proc.c: Include stdlib.h (for malloc), not
14894         xalloc.h (for xmalloc).
14895         (openat_proc_name): Use malloc, not xmalloc.
14896         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
14897         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
14898
14899         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
14900         This avoids heap allocation for file names whose lengths are in
14901         the range 512..1023, with the upper bound increasing to at most
14902         4031 depending on the platform's PATH_MAX.  (We do not want
14903         pathmax.h here as it might supply a non-constant PATH_MAX.)
14904         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
14905         Perhaps they should be moved to malloca.h?
14906         (OPENAT_BUFFER_SIZE): Use them.
14907
14908 2011-01-10  Bruno Haible  <bruno@clisp.org>
14909
14910         doc: Update users.txt.
14911         * users.txt: Add recutils.
14912
14913 2011-01-09  Karl Berry  <karl@gnu.org>
14914
14915         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
14916
14917         * doc/configmake.texi: New file.
14918         * doc/gnulib.texi: Include it.
14919         * modules/configmake: Move documentation from here.
14920
14921 2011-01-09  Bruno Haible  <bruno@clisp.org>
14922
14923         Update to Unicode 6.0.0.
14924         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
14925         (get_lbp): Update for Unicode 6.0.0.
14926         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
14927         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
14928         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
14929         U+11001, U+11038..U+11046. Remove U+06DE.
14930         (uc_width): Fix bounds of planes.
14931         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14932         lib/uniwidth/width.c.
14933         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
14934         trailing whitespace removed.
14935         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
14936         without comments, but with the original copyright notice.
14937         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
14938         * lib/unicase/ignorable.h: Likewise.
14939         * lib/unicase/tocasefold.h: Likewise.
14940         * lib/unicase/tolower.h: Likewise.
14941         * lib/unicase/totitle.h: Likewise.
14942         * lib/unicase/toupper.h: Likewise.
14943         * lib/unictype/bidi_of.h: Likewise.
14944         * lib/unictype/blocks.h: Likewise.
14945         * lib/unictype/categ_C.h: Likewise.
14946         * lib/unictype/categ_Cn.h: Likewise.
14947         * lib/unictype/categ_L.h: Likewise.
14948         * lib/unictype/categ_Ll.h: Likewise.
14949         * lib/unictype/categ_Lm.h: Likewise.
14950         * lib/unictype/categ_Lo.h: Likewise.
14951         * lib/unictype/categ_Lu.h: Likewise.
14952         * lib/unictype/categ_M.h: Likewise.
14953         * lib/unictype/categ_Mc.h: Likewise.
14954         * lib/unictype/categ_Me.h: Likewise.
14955         * lib/unictype/categ_Mn.h: Likewise.
14956         * lib/unictype/categ_N.h: Likewise.
14957         * lib/unictype/categ_Nd.h: Likewise.
14958         * lib/unictype/categ_No.h: Likewise.
14959         * lib/unictype/categ_P.h: Likewise.
14960         * lib/unictype/categ_Po.h: Likewise.
14961         * lib/unictype/categ_S.h: Likewise.
14962         * lib/unictype/categ_Sc.h: Likewise.
14963         * lib/unictype/categ_Sk.h: Likewise.
14964         * lib/unictype/categ_Sm.h: Likewise.
14965         * lib/unictype/categ_So.h: Likewise.
14966         * lib/unictype/categ_of.h: Likewise.
14967         * lib/unictype/combining.h: Likewise.
14968         * lib/unictype/ctype_alnum.h: Likewise.
14969         * lib/unictype/ctype_alpha.h: Likewise.
14970         * lib/unictype/ctype_graph.h: Likewise.
14971         * lib/unictype/ctype_lower.h: Likewise.
14972         * lib/unictype/ctype_print.h: Likewise.
14973         * lib/unictype/ctype_punct.h: Likewise.
14974         * lib/unictype/ctype_upper.h: Likewise.
14975         * lib/unictype/decdigit.h: Likewise.
14976         * lib/unictype/digit.h: Likewise.
14977         * lib/unictype/numeric.h: Likewise.
14978         * lib/unictype/pr_alphabetic.h: Likewise.
14979         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14980         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14981         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14982         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14983         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14984         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14985         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14986         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14987         * lib/unictype/pr_case_ignorable.h: Likewise.
14988         * lib/unictype/pr_cased.h: Likewise.
14989         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
14990         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
14991         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
14992         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
14993         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
14994         * lib/unictype/pr_combining.h: Likewise.
14995         * lib/unictype/pr_composite.h: Likewise.
14996         * lib/unictype/pr_currency_symbol.h: Likewise.
14997         * lib/unictype/pr_decimal_digit.h: Likewise.
14998         * lib/unictype/pr_deprecated.h: Likewise.
14999         * lib/unictype/pr_format_control.h: Likewise.
15000         * lib/unictype/pr_grapheme_base.h: Likewise.
15001         * lib/unictype/pr_grapheme_extend.h: Likewise.
15002         * lib/unictype/pr_grapheme_link.h: Likewise.
15003         * lib/unictype/pr_id_continue.h: Likewise.
15004         * lib/unictype/pr_id_start.h: Likewise.
15005         * lib/unictype/pr_ideographic.h: Likewise.
15006         * lib/unictype/pr_lowercase.h: Likewise.
15007         * lib/unictype/pr_math.h: Likewise.
15008         * lib/unictype/pr_numeric.h: Likewise.
15009         * lib/unictype/pr_other_alphabetic.h: Likewise.
15010         * lib/unictype/pr_other_id_continue.h: Likewise.
15011         * lib/unictype/pr_other_math.h: Likewise.
15012         * lib/unictype/pr_punctuation.h: Likewise.
15013         * lib/unictype/pr_sentence_terminal.h: Likewise.
15014         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15015         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15016         * lib/unictype/pr_unified_ideograph.h: Likewise.
15017         * lib/unictype/pr_uppercase.h: Likewise.
15018         * lib/unictype/pr_xid_continue.h: Likewise.
15019         * lib/unictype/pr_xid_start.h: Likewise.
15020         * lib/unictype/scripts.h: Likewise.
15021         * lib/unictype/scripts_byname.gperf: Likewise.
15022         * lib/unictype/sy_java_ident.h: Likewise.
15023         * lib/unigbrk/gbrkprop.h: Likewise.
15024         * lib/unilbrk/lbrkprop1.h: Likewise.
15025         * lib/unilbrk/lbrkprop2.h: Likewise.
15026         * lib/uninorm/decomposition-table2.h: Likewise.
15027         * lib/uniwbrk/wbrkprop.h: Likewise.
15028         * tests/unicase/test-cased.c: Likewise.
15029         * tests/unicase/test-ignorable.c: Likewise.
15030         * tests/unicase/test-uc_tolower.c: Likewise.
15031         * tests/unicase/test-uc_totitle.c: Likewise.
15032         * tests/unicase/test-uc_toupper.c: Likewise.
15033         * tests/unictype/test-categ_C.c: Likewise.
15034         * tests/unictype/test-categ_Cn.c: Likewise.
15035         * tests/unictype/test-categ_L.c: Likewise.
15036         * tests/unictype/test-categ_Ll.c: Likewise.
15037         * tests/unictype/test-categ_Lm.c: Likewise.
15038         * tests/unictype/test-categ_Lo.c: Likewise.
15039         * tests/unictype/test-categ_Lu.c: Likewise.
15040         * tests/unictype/test-categ_M.c: Likewise.
15041         * tests/unictype/test-categ_Mc.c: Likewise.
15042         * tests/unictype/test-categ_Me.c: Likewise.
15043         * tests/unictype/test-categ_Mn.c: Likewise.
15044         * tests/unictype/test-categ_N.c: Likewise.
15045         * tests/unictype/test-categ_Nd.c: Likewise.
15046         * tests/unictype/test-categ_No.c: Likewise.
15047         * tests/unictype/test-categ_P.c: Likewise.
15048         * tests/unictype/test-categ_Po.c: Likewise.
15049         * tests/unictype/test-categ_S.c: Likewise.
15050         * tests/unictype/test-categ_Sc.c: Likewise.
15051         * tests/unictype/test-categ_Sk.c: Likewise.
15052         * tests/unictype/test-categ_Sm.c: Likewise.
15053         * tests/unictype/test-categ_So.c: Likewise.
15054         * tests/unictype/test-ctype_alnum.c: Likewise.
15055         * tests/unictype/test-ctype_alpha.c: Likewise.
15056         * tests/unictype/test-ctype_graph.c: Likewise.
15057         * tests/unictype/test-ctype_lower.c: Likewise.
15058         * tests/unictype/test-ctype_print.c: Likewise.
15059         * tests/unictype/test-ctype_punct.c: Likewise.
15060         * tests/unictype/test-ctype_upper.c: Likewise.
15061         * tests/unictype/test-decdigit.h: Likewise.
15062         * tests/unictype/test-digit.h: Likewise.
15063         * tests/unictype/test-numeric.h: Likewise.
15064         * tests/unictype/test-pr_alphabetic.c: Likewise.
15065         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15066         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15067         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15068         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15069         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15070         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15071         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15072         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15073         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15074         * tests/unictype/test-pr_cased.c: Likewise.
15075         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15076         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15077         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15078         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15079         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15080         * tests/unictype/test-pr_combining.c: Likewise.
15081         * tests/unictype/test-pr_composite.c: Likewise.
15082         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15083         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15084         * tests/unictype/test-pr_deprecated.c: Likewise.
15085         * tests/unictype/test-pr_format_control.c: Likewise.
15086         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15087         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15088         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15089         * tests/unictype/test-pr_id_continue.c: Likewise.
15090         * tests/unictype/test-pr_id_start.c: Likewise.
15091         * tests/unictype/test-pr_ideographic.c: Likewise.
15092         * tests/unictype/test-pr_lowercase.c: Likewise.
15093         * tests/unictype/test-pr_math.c: Likewise.
15094         * tests/unictype/test-pr_numeric.c: Likewise.
15095         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15096         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15097         * tests/unictype/test-pr_other_math.c: Likewise.
15098         * tests/unictype/test-pr_punctuation.c: Likewise.
15099         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15100         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15101         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15102         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15103         * tests/unictype/test-pr_uppercase.c: Likewise.
15104         * tests/unictype/test-pr_xid_continue.c: Likewise.
15105         * tests/unictype/test-pr_xid_start.c: Likewise.
15106         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15107         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15108         changes.
15109         * lib/unictype/categ_Cc.h: Likewise.
15110         * lib/unictype/categ_Cf.h: Likewise.
15111         * lib/unictype/categ_Co.h: Likewise.
15112         * lib/unictype/categ_Cs.h: Likewise.
15113         * lib/unictype/categ_Lt.h: Likewise.
15114         * lib/unictype/categ_Nl.h: Likewise.
15115         * lib/unictype/categ_Pc.h: Likewise.
15116         * lib/unictype/categ_Pd.h: Likewise.
15117         * lib/unictype/categ_Pe.h: Likewise.
15118         * lib/unictype/categ_Pf.h: Likewise.
15119         * lib/unictype/categ_Pi.h: Likewise.
15120         * lib/unictype/categ_Ps.h: Likewise.
15121         * lib/unictype/categ_Z.h: Likewise.
15122         * lib/unictype/categ_Zl.h: Likewise.
15123         * lib/unictype/categ_Zp.h: Likewise.
15124         * lib/unictype/categ_Zs.h: Likewise.
15125         * lib/unictype/ctype_blank.h: Likewise.
15126         * lib/unictype/ctype_cntrl.h: Likewise.
15127         * lib/unictype/ctype_digit.h: Likewise.
15128         * lib/unictype/ctype_space.h: Likewise.
15129         * lib/unictype/ctype_xdigit.h: Likewise.
15130         * lib/unictype/mirror.h: Likewise.
15131         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15132         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15133         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15134         * lib/unictype/pr_bidi_control.h: Likewise.
15135         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15136         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15137         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15138         * lib/unictype/pr_bidi_pdf.h: Likewise.
15139         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15140         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15141         * lib/unictype/pr_dash.h: Likewise.
15142         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15143         * lib/unictype/pr_diacritic.h: Likewise.
15144         * lib/unictype/pr_extender.h: Likewise.
15145         * lib/unictype/pr_hex_digit.h: Likewise.
15146         * lib/unictype/pr_hyphen.h: Likewise.
15147         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15148         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15149         * lib/unictype/pr_ignorable_control.h: Likewise.
15150         * lib/unictype/pr_iso_control.h: Likewise.
15151         * lib/unictype/pr_join_control.h: Likewise.
15152         * lib/unictype/pr_left_of_pair.h: Likewise.
15153         * lib/unictype/pr_line_separator.h: Likewise.
15154         * lib/unictype/pr_logical_order_exception.h: Likewise.
15155         * lib/unictype/pr_non_break.h: Likewise.
15156         * lib/unictype/pr_not_a_character.h: Likewise.
15157         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15158         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15159         * lib/unictype/pr_other_id_start.h: Likewise.
15160         * lib/unictype/pr_other_lowercase.h: Likewise.
15161         * lib/unictype/pr_other_uppercase.h: Likewise.
15162         * lib/unictype/pr_paired_punctuation.h: Likewise.
15163         * lib/unictype/pr_paragraph_separator.h: Likewise.
15164         * lib/unictype/pr_pattern_syntax.h: Likewise.
15165         * lib/unictype/pr_pattern_white_space.h: Likewise.
15166         * lib/unictype/pr_private_use.h: Likewise.
15167         * lib/unictype/pr_quotation_mark.h: Likewise.
15168         * lib/unictype/pr_radical.h: Likewise.
15169         * lib/unictype/pr_soft_dotted.h: Likewise.
15170         * lib/unictype/pr_space.h: Likewise.
15171         * lib/unictype/pr_titlecase.h: Likewise.
15172         * lib/unictype/pr_variation_selector.h: Likewise.
15173         * lib/unictype/pr_white_space.h: Likewise.
15174         * lib/unictype/pr_zero_width.h: Likewise.
15175         * lib/unictype/sy_c_ident.h: Likewise.
15176         * lib/unictype/sy_c_whitespace.h: Likewise.
15177         * lib/unictype/sy_java_whitespace.h: Likewise.
15178         * lib/uninorm/composition-table.gperf: Likewise.
15179         * lib/uninorm/decomposition-table1.h: Likewise.
15180         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15181         LB8.
15182         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15183         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15184         * modules/unictype/*: Bump version number of expected libunistring
15185         version.
15186
15187 2011-01-09  Bruno Haible  <bruno@clisp.org>
15188
15189         Update to Unicode 5.2.0.
15190         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15191         trailing whitespace removed.
15192
15193 2011-01-09  Bruno Haible  <bruno@clisp.org>
15194
15195         New Unicode character properties, from Unicode 5.2.0.
15196         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15197         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15198         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15199         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15200         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15201         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15202         uc_is_property_cased, uc_is_property_case_ignorable,
15203         uc_is_property_changes_when_lowercased,
15204         uc_is_property_changes_when_uppercased,
15205         uc_is_property_changes_when_titlecased,
15206         uc_is_property_changes_when_casefolded,
15207         uc_is_property_changes_when_casemapped): New declarations.
15208         * lib/unictype/pr_byname.gperf: Add the new properties.
15209         * modules/unictype/property-byname (Depends-on): Depend on the new
15210         properties modules.
15211         * modules/unictype/property-all (Depends-on): Likewise.
15212         * MODULES.html.sh (Unicode string functions): Add
15213         unictype/property-case-ignorable, unictype/property-cased,
15214         unictype/property-changes-when-casefolded,
15215         unictype/property-changes-when-casemapped,
15216         unictype/property-changes-when-lowercased,
15217         unictype/property-changes-when-titlecased,
15218         unictype/property-changes-when-uppercased.
15219
15220         New module 'unictype/property-changes-when-casemapped'.
15221         * modules/unictype/property-changes-when-casemapped: New file.
15222         * lib/unictype/pr_changes_when_casemapped.c: New file.
15223         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15224         generated by gen-uni-tables.
15225         * modules/unictype/property-changes-when-casemapped-tests: New file.
15226         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15227         automatically generated by gen-uni-tables.
15228
15229         New module 'unictype/property-changes-when-casefolded'.
15230         * modules/unictype/property-changes-when-casefolded: New file.
15231         * lib/unictype/pr_changes_when_casefolded.c: New file.
15232         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15233         generated by gen-uni-tables.
15234         * modules/unictype/property-changes-when-casefolded-tests: New file.
15235         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15236         automatically generated by gen-uni-tables.
15237
15238         New module 'unictype/property-changes-when-titlecased'.
15239         * modules/unictype/property-changes-when-titlecased: New file.
15240         * lib/unictype/pr_changes_when_titlecased.c: New file.
15241         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15242         generated by gen-uni-tables.
15243         * modules/unictype/property-changes-when-titlecased-tests: New file.
15244         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
15245         automatically generated by gen-uni-tables.
15246
15247         New module 'unictype/property-changes-when-uppercased'.
15248         * modules/unictype/property-changes-when-uppercased: New file.
15249         * lib/unictype/pr_changes_when_uppercased.c: New file.
15250         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
15251         generated by gen-uni-tables.
15252         * modules/unictype/property-changes-when-uppercased-tests: New file.
15253         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
15254         automatically generated by gen-uni-tables.
15255
15256         New module 'unictype/property-changes-when-lowercased'.
15257         * modules/unictype/property-changes-when-lowercased: New file.
15258         * lib/unictype/pr_changes_when_lowercased.c: New file.
15259         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
15260         generated by gen-uni-tables.
15261         * modules/unictype/property-changes-when-lowercased-tests: New file.
15262         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
15263         automatically generated by gen-uni-tables.
15264
15265         New module 'unictype/property-case-ignorable'.
15266         * modules/unictype/property-case-ignorable: New file.
15267         * lib/unictype/pr_case_ignorable.c: New file.
15268         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
15269         by gen-uni-tables.
15270         * modules/unictype/property-case-ignorable-tests: New file.
15271         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
15272         generated by gen-uni-tables.
15273
15274         New module 'unictype/property-cased'.
15275         * modules/unictype/property-cased: New file.
15276         * lib/unictype/pr_cased.c: New file.
15277         * lib/unictype/pr_cased.h: New file, automatically generated by
15278         gen-uni-tables.
15279         * modules/unictype/property-cased-tests: New file.
15280         * tests/unictype/test-pr_cased.c: New file, automatically generated by
15281         gen-uni-tables.
15282
15283 2011-01-09  Bruno Haible  <bruno@clisp.org>
15284
15285         Update to Unicode 5.2.0.
15286         * lib/gen-uni-tables.c (output_predicate, output_category,
15287         output_combclass, output_bidi_category, output_decimal_digit_test,
15288         output_decimal_digit, output_digit_test, output_digit,
15289         output_numeric_test, output_numeric, output_mirror, output_scripts,
15290         output_scripts_byname, output_blocks, output_ident_category): Fix
15291         comment header.
15292         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
15293         get_wbp.
15294         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
15295         items.
15296         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
15297         Changes_When_Lowercased, Changes_When_Uppercased,
15298         Changes_When_Titlecased, Changes_When_Casefolded,
15299         Changes_When_Casemapped.
15300         (is_property_alphabetic, is_property_default_ignorable_code_point):
15301         Update for Unicode 5.2.0.
15302         (is_property_cased, is_property_case_ignorable,
15303         is_property_changes_when_lowercased,
15304         is_property_changes_when_uppercased,
15305         is_property_changes_when_titlecased,
15306         is_property_changes_when_casefolded,
15307         is_property_changes_when_casemapped): New functions.
15308         (output_properties): Output also the properties cased, case_ignorable,
15309         changes_when_lowercased, changes_when_uppercased,
15310         changes_when_titlecased, changes_when_casefolded,
15311         changes_when_casemapped.
15312         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
15313         Unicode TR#11 revision 17 -> 19.
15314         (LBP_CP): New enumeration value.
15315         (LBP_*): Adjust values accordingly.
15316         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15317         TR#14 revision 22 -> 24.
15318         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
15319         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
15320         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15321         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
15322         is_WBP_MIDLETTER.
15323         (output_composition_tables): Allow for 24 bits instead of 16 bits in
15324         the code1 and code2 of each composition rule.
15325         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
15326         * lib/unicase/ignorable.h: Likewise.
15327         * lib/unicase/tocasefold.h: Likewise.
15328         * lib/unicase/tolower.h: Likewise.
15329         * lib/unicase/totitle.h: Likewise.
15330         * lib/unicase/toupper.h: Likewise.
15331         * lib/unictype/bidi_of.h: Likewise.
15332         * lib/unictype/blocks.h: Likewise.
15333         * lib/unictype/categ_C.h: Likewise.
15334         * lib/unictype/categ_Cf.h: Likewise.
15335         * lib/unictype/categ_Cn.h: Likewise.
15336         * lib/unictype/categ_L.h: Likewise.
15337         * lib/unictype/categ_Ll.h: Likewise.
15338         * lib/unictype/categ_Lm.h: Likewise.
15339         * lib/unictype/categ_Lo.h: Likewise.
15340         * lib/unictype/categ_Lu.h: Likewise.
15341         * lib/unictype/categ_M.h: Likewise.
15342         * lib/unictype/categ_Mc.h: Likewise.
15343         * lib/unictype/categ_Mn.h: Likewise.
15344         * lib/unictype/categ_N.h: Likewise.
15345         * lib/unictype/categ_Nd.h: Likewise.
15346         * lib/unictype/categ_Nl.h: Likewise.
15347         * lib/unictype/categ_No.h: Likewise.
15348         * lib/unictype/categ_P.h: Likewise.
15349         * lib/unictype/categ_Pd.h: Likewise.
15350         * lib/unictype/categ_Po.h: Likewise.
15351         * lib/unictype/categ_S.h: Likewise.
15352         * lib/unictype/categ_Sc.h: Likewise.
15353         * lib/unictype/categ_So.h: Likewise.
15354         * lib/unictype/categ_of.h: Likewise.
15355         * lib/unictype/combining.h: Likewise.
15356         * lib/unictype/ctype_alnum.h: Likewise.
15357         * lib/unictype/ctype_alpha.h: Likewise.
15358         * lib/unictype/ctype_graph.h: Likewise.
15359         * lib/unictype/ctype_lower.h: Likewise.
15360         * lib/unictype/ctype_print.h: Likewise.
15361         * lib/unictype/ctype_punct.h: Likewise.
15362         * lib/unictype/ctype_upper.h: Likewise.
15363         * lib/unictype/decdigit.h: Likewise.
15364         * lib/unictype/digit.h: Likewise.
15365         * lib/unictype/numeric.h: Likewise.
15366         * lib/unictype/pr_alphabetic.h: Likewise.
15367         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15368         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15369         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15370         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15371         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15372         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15373         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15374         * lib/unictype/pr_combining.h: Likewise.
15375         * lib/unictype/pr_composite.h: Likewise.
15376         * lib/unictype/pr_currency_symbol.h: Likewise.
15377         * lib/unictype/pr_dash.h: Likewise.
15378         * lib/unictype/pr_decimal_digit.h: Likewise.
15379         * lib/unictype/pr_deprecated.h: Likewise.
15380         * lib/unictype/pr_diacritic.h: Likewise.
15381         * lib/unictype/pr_extender.h: Likewise.
15382         * lib/unictype/pr_grapheme_base.h: Likewise.
15383         * lib/unictype/pr_grapheme_extend.h: Likewise.
15384         * lib/unictype/pr_grapheme_link.h: Likewise.
15385         * lib/unictype/pr_id_continue.h: Likewise.
15386         * lib/unictype/pr_id_start.h: Likewise.
15387         * lib/unictype/pr_ideographic.h: Likewise.
15388         * lib/unictype/pr_ignorable_control.h: Likewise.
15389         * lib/unictype/pr_logical_order_exception.h: Likewise.
15390         * lib/unictype/pr_lowercase.h: Likewise.
15391         * lib/unictype/pr_numeric.h: Likewise.
15392         * lib/unictype/pr_other_alphabetic.h: Likewise.
15393         * lib/unictype/pr_punctuation.h: Likewise.
15394         * lib/unictype/pr_sentence_terminal.h: Likewise.
15395         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15396         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15397         * lib/unictype/pr_unified_ideograph.h: Likewise.
15398         * lib/unictype/pr_uppercase.h: Likewise.
15399         * lib/unictype/pr_xid_continue.h: Likewise.
15400         * lib/unictype/pr_xid_start.h: Likewise.
15401         * lib/unictype/pr_zero_width.h: Likewise.
15402         * lib/unictype/scripts.h: Likewise.
15403         * lib/unictype/scripts_byname.gperf: Likewise.
15404         * lib/unictype/sy_java_ident.h: Likewise.
15405         * lib/unigbrk/gbrkprop.h: Likewise.
15406         * lib/unilbrk/lbrkprop1.h: Likewise.
15407         * lib/unilbrk/lbrkprop2.h: Likewise.
15408         * lib/unilbrk/lbrktables.h: Likewise.
15409         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
15410         LBP_CP. Implement rule LB30.
15411         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
15412         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
15413         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15414         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15415         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15416         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15417         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
15418         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
15419         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
15420         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
15421         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
15422         bits instead of 16 bits in the code1 and code2 of each composition
15423         rule.
15424         (uc_composition): Update for Unicode 5.2.0.
15425         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
15426         * lib/uninorm/decomposition-table2.h: Likewise.
15427         * lib/uniwbrk/wbrkprop.h: Likewise.
15428         * tests/unicase/test-cased.c: Likewise.
15429         * tests/unicase/test-ignorable.c: Likewise.
15430         * tests/unicase/test-uc_tolower.c: Likewise.
15431         * tests/unicase/test-uc_totitle.c: Likewise.
15432         * tests/unicase/test-uc_toupper.c: Likewise.
15433         * tests/unictype/test-categ_C.c: Likewise.
15434         * tests/unictype/test-categ_Cf.c: Likewise.
15435         * tests/unictype/test-categ_Cn.c: Likewise.
15436         * tests/unictype/test-categ_L.c: Likewise.
15437         * tests/unictype/test-categ_Ll.c: Likewise.
15438         * tests/unictype/test-categ_Lm.c: Likewise.
15439         * tests/unictype/test-categ_Lo.c: Likewise.
15440         * tests/unictype/test-categ_Lu.c: Likewise.
15441         * tests/unictype/test-categ_M.c: Likewise.
15442         * tests/unictype/test-categ_Mc.c: Likewise.
15443         * tests/unictype/test-categ_Mn.c: Likewise.
15444         * tests/unictype/test-categ_N.c: Likewise.
15445         * tests/unictype/test-categ_Nd.c: Likewise.
15446         * tests/unictype/test-categ_Nl.c: Likewise.
15447         * tests/unictype/test-categ_No.c: Likewise.
15448         * tests/unictype/test-categ_P.c: Likewise.
15449         * tests/unictype/test-categ_Pd.c: Likewise.
15450         * tests/unictype/test-categ_Po.c: Likewise.
15451         * tests/unictype/test-categ_S.c: Likewise.
15452         * tests/unictype/test-categ_Sc.c: Likewise.
15453         * tests/unictype/test-categ_So.c: Likewise.
15454         * tests/unictype/test-ctype_alnum.c: Likewise.
15455         * tests/unictype/test-ctype_alpha.c: Likewise.
15456         * tests/unictype/test-ctype_graph.c: Likewise.
15457         * tests/unictype/test-ctype_lower.c: Likewise.
15458         * tests/unictype/test-ctype_print.c: Likewise.
15459         * tests/unictype/test-ctype_punct.c: Likewise.
15460         * tests/unictype/test-ctype_upper.c: Likewise.
15461         * tests/unictype/test-decdigit.h: Likewise.
15462         * tests/unictype/test-digit.h: Likewise.
15463         * tests/unictype/test-numeric.h: Likewise.
15464         * tests/unictype/test-pr_alphabetic.c: Likewise.
15465         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15466         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15467         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
15468         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15469         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15470         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15471         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15472         * tests/unictype/test-pr_combining.c: Likewise.
15473         * tests/unictype/test-pr_composite.c: Likewise.
15474         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15475         * tests/unictype/test-pr_dash.c: Likewise.
15476         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15477         * tests/unictype/test-pr_deprecated.c: Likewise.
15478         * tests/unictype/test-pr_diacritic.c: Likewise.
15479         * tests/unictype/test-pr_extender.c: Likewise.
15480         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15481         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15482         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15483         * tests/unictype/test-pr_id_continue.c: Likewise.
15484         * tests/unictype/test-pr_id_start.c: Likewise.
15485         * tests/unictype/test-pr_ideographic.c: Likewise.
15486         * tests/unictype/test-pr_ignorable_control.c: Likewise.
15487         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
15488         * tests/unictype/test-pr_lowercase.c: Likewise.
15489         * tests/unictype/test-pr_numeric.c: Likewise.
15490         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15491         * tests/unictype/test-pr_punctuation.c: Likewise.
15492         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15493         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15494         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15495         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15496         * tests/unictype/test-pr_uppercase.c: Likewise.
15497         * tests/unictype/test-pr_xid_continue.c: Likewise.
15498         * tests/unictype/test-pr_xid_start.c: Likewise.
15499         * tests/unictype/test-pr_zero_width.c: Likewise.
15500         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15501         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
15502         changed behaviour: line breaking is now disallowed between a letter
15503         or '=' and '('.
15504         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15505         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15506         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15507         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
15508         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15509         lib/uniwidth/width.c.
15510         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
15511         without comments, but with the original copyright notice.
15512         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15513         changes.
15514         * lib/unictype/categ_Cc.h: Likewise.
15515         * lib/unictype/categ_Co.h: Likewise.
15516         * lib/unictype/categ_Cs.h: Likewise.
15517         * lib/unictype/categ_Lt.h: Likewise.
15518         * lib/unictype/categ_Me.h: Likewise.
15519         * lib/unictype/categ_Pc.h: Likewise.
15520         * lib/unictype/categ_Pe.h: Likewise.
15521         * lib/unictype/categ_Pf.h: Likewise.
15522         * lib/unictype/categ_Pi.h: Likewise.
15523         * lib/unictype/categ_Ps.h: Likewise.
15524         * lib/unictype/categ_Sk.h: Likewise.
15525         * lib/unictype/categ_Sm.h: Likewise.
15526         * lib/unictype/categ_Z.h: Likewise.
15527         * lib/unictype/categ_Zl.h: Likewise.
15528         * lib/unictype/categ_Zp.h: Likewise.
15529         * lib/unictype/categ_Zs.h: Likewise.
15530         * lib/unictype/ctype_blank.h: Likewise.
15531         * lib/unictype/ctype_cntrl.h: Likewise.
15532         * lib/unictype/ctype_digit.h: Likewise.
15533         * lib/unictype/ctype_space.h: Likewise.
15534         * lib/unictype/ctype_xdigit.h: Likewise.
15535         * lib/unictype/mirror.h: Likewise.
15536         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15537         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15538         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15539         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15540         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15541         * lib/unictype/pr_bidi_control.h: Likewise.
15542         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15543         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15544         * lib/unictype/pr_bidi_pdf.h: Likewise.
15545         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15546         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15547         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15548         * lib/unictype/pr_format_control.h: Likewise.
15549         * lib/unictype/pr_hex_digit.h: Likewise.
15550         * lib/unictype/pr_hyphen.h: Likewise.
15551         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15552         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15553         * lib/unictype/pr_iso_control.h: Likewise.
15554         * lib/unictype/pr_join_control.h: Likewise.
15555         * lib/unictype/pr_left_of_pair.h: Likewise.
15556         * lib/unictype/pr_line_separator.h: Likewise.
15557         * lib/unictype/pr_math.h: Likewise.
15558         * lib/unictype/pr_non_break.h: Likewise.
15559         * lib/unictype/pr_not_a_character.h: Likewise.
15560         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15561         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15562         * lib/unictype/pr_other_id_continue.h: Likewise.
15563         * lib/unictype/pr_other_id_start.h: Likewise.
15564         * lib/unictype/pr_other_lowercase.h: Likewise.
15565         * lib/unictype/pr_other_math.h: Likewise.
15566         * lib/unictype/pr_other_uppercase.h: Likewise.
15567         * lib/unictype/pr_paired_punctuation.h: Likewise.
15568         * lib/unictype/pr_paragraph_separator.h: Likewise.
15569         * lib/unictype/pr_pattern_syntax.h: Likewise.
15570         * lib/unictype/pr_pattern_white_space.h: Likewise.
15571         * lib/unictype/pr_private_use.h: Likewise.
15572         * lib/unictype/pr_quotation_mark.h: Likewise.
15573         * lib/unictype/pr_radical.h: Likewise.
15574         * lib/unictype/pr_soft_dotted.h: Likewise.
15575         * lib/unictype/pr_space.h: Likewise.
15576         * lib/unictype/pr_titlecase.h: Likewise.
15577         * lib/unictype/pr_variation_selector.h: Likewise.
15578         * lib/unictype/pr_white_space.h: Likewise.
15579         * lib/unictype/sy_c_ident.h: Likewise.
15580         * lib/unictype/sy_c_whitespace.h: Likewise.
15581         * lib/unictype/sy_java_whitespace.h: Likewise.
15582         * modules/uni*/*: Bump version number of expected libunistring version.
15583         Reported by Simon Josefsson.
15584
15585 2011-01-09  Karl Heuer  <kwzh@gnu.org>
15586
15587         useless-if-before-free: fix typo in --help and make the internal,
15588         automatic version date update process work once again.
15589         --help output contained a NUL character instead of the
15590         backslash-zero that was intended.  Also, the "must lie within
15591         the first 8 lines" line is on line 9, and hence not getting
15592         automatically updated.
15593         * build-aux/useless-if-before-free: Fix the former by adding a
15594         backslash, and the latter by condensing the three lines of what-it-does
15595         to a single line, leaving one line of slack for the future.
15596
15597 2011-01-09  Bruno Haible  <bruno@clisp.org>
15598
15599         uniwidth/width: Fix width of U+1D173..U+1D17A.
15600         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
15601         symbolic_width, output_width_property_test): New functions.
15602         (main): Invoke output_nonspacing_property, output_width_property_test.
15603         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
15604         U+1D173..U+1D17A.
15605         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
15606         1.
15607         * modules/uniwidth/*: Bump version number of expected libunistring
15608         version.
15609         * modules/unilbrk/*: Likewise.
15610
15611 2011-01-08  Bruno Haible  <bruno@clisp.org>
15612
15613         uninorm tests: Preserve copyright of Unicode data file.
15614         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
15615         Mention modifications.
15616
15617 2011-01-08  Bruno Haible  <bruno@clisp.org>
15618
15619         gen-uni-tables: Prepare for Unicode 5.2.0.
15620         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
15621         (debug_output_lbp, output_lbp): Update.
15622
15623 2011-01-08  Bruno Haible  <bruno@clisp.org>
15624
15625         unilbrk: Clarify gen-uni-tables.c code.
15626         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
15627         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
15628         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
15629
15630 2011-01-07  Bruno Haible  <bruno@clisp.org>
15631
15632         strtod: Restore errno when successfully parsing Infinity or NaN.
15633         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
15634         restore the original errno.
15635
15636 2011-01-07  Bruno Haible  <bruno@clisp.org>
15637
15638         remove test: Avoid failure on HP-UX 11.
15639         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
15640
15641 2011-01-07  Bruno Haible  <bruno@clisp.org>
15642
15643         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
15644         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
15645         error code.
15646
15647 2011-01-07  Pádraig Brady <P@draigBrady.com>
15648
15649         ignore-value: fixup comments, and add Eric Blake
15650         as an author since he rewrote the macros.
15651         * lib/ignore-value.h (ignore_value):  State that
15652         we now support aggregates.  Also specify exactly
15653         when the GCC warn_unused_result feature was added.
15654
15655 2011-01-06  Eric Blake  <eblake@redhat.com>
15656
15657         ignore-value: support aggregate types
15658         * lib/ignore-value.h (ignore_value): Provide separate gcc
15659         definition.
15660         * modules/ignore-value-tests: New test module.
15661         * tests/test-ignore-value.c: New test.
15662
15663         maint.mk: improve sc_prohibit_strcmp regex
15664         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
15665         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
15666         definition of STRNEQ.
15667
15668         signal: work around Haiku issue with SIGBUS
15669         * lib/siglist.h: Add comment.
15670         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
15671         strsignal's favoring of SIGSEGV.
15672         * tests/test-signal.c (main): Avoid test failure.
15673         * doc/posix-headers/signal.texi (signal.h): Document the issue.
15674         Reported by Scott McCreary.
15675
15676         maint.mk: add pre-release check to ensure submodule commits are public
15677         * top/maint.mk (public-submodule-commit): New rule.
15678         (submodule-checks): New variable.
15679         (alpha beta stable): Depend on the variable.
15680
15681 2011-01-05  Pádraig Brady <P@draigBrady.com>
15682         and Jim Meyering  <meyering@redhat.com>
15683
15684         ignore-value: make ignore_value more generic; deprecate ignore_ptr
15685         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
15686         (ATTRIBUTE_DEPRECATED): Define.
15687         (_ignore_case): New function.
15688         (ignore_value): New macro, to replace the old function.
15689         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
15690         * modules/ignore-value (Depends-on): Add stdint.
15691
15692 2011-01-04  Eric Blake  <eblake@redhat.com>
15693
15694         doc: regenerate INSTALL
15695         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
15696         @firstparagraphindent support, now that autoconf dropped it.
15697         (INSTALL_PRELUDE): Reinstate old macro.
15698         * doc/install.texi: Resync from autoconf.
15699         * doc/INSTALL: Reflect recent autoconf update.
15700         * doc/INSTALL.ISO: Likewise.
15701         * doc/INSTALL.UTF-8: Likewise.
15702         Reported by Karl Berry.
15703
15704 2011-01-04  Bruce Korb  <address@hidden>
15705
15706         git-version-gen: avoid a sub-shell
15707         * build-aux/git-version-gen: Redirect stderr in `...` via
15708         "exec 2>...", rather than via an added sub-shell.
15709
15710 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
15711
15712         git-version-gen: use (...) rather than sh -c '...'
15713         * build-aux/git-version-gen: Rather than hard-coding a shell's name
15714         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
15715
15716 2011-01-03  Jim Meyering  <meyering@redhat.com>
15717
15718         git-version-gen: convert leading TABs to spaces
15719         * build-aux/git-version-gen: Expand leading TABs.
15720
15721         git-version-gen: handle failed "git rev-list"
15722         * build-aux/git-version-gen: Rather than leaking a "fatal" error
15723         from git and proceeding as if it had succeeded but printed no SHA1
15724         checksums, suppress the diagnostic and handle the failure.
15725         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
15726
15727         git-version-gen: include command name in one more diagnostic
15728         * build-aux/git-version-gen: When the required .tarball-version file
15729         was missing or unreadable, you might see the diagnostic from "cat",
15730         but no trace of the name of the invoking script.  Now, you still see
15731         the diagnostic from cat, but also get one from "git-version-gen: ".
15732         Inspired by a patch from Bruce Korb.
15733
15734         update-copyright: adjust test to match changed code
15735         * tests/test-update-copyright.sh: Change test's expected output
15736         to match new actual output.
15737
15738 2011-01-02  Bruno Haible  <bruno@clisp.org>
15739
15740         getlogin_r: Avoid test failure on HP-UX 11.
15741         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
15742         ERANGE when the second argument is zero.
15743         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
15744         portability problem.
15745
15746 2011-01-02  Bruce Korb  <bkorb@gnu.org>
15747
15748         * build-aux/update-copyright: doc Simon's changes
15749
15750 2011-01-02  Simon Josefsson  <simon@josefsson.org>
15751
15752         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
15753         environment variable.
15754
15755 2011-01-02  Bruno Haible  <bruno@clisp.org>
15756
15757         unigbrk: Avoid gcc warnings.
15758         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
15759         unused variable.
15760         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
15761         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
15762         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
15763         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
15764         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
15765         Change type of first argument to 'const char *'.
15766         (main): Remove unused variable.
15767         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
15768         type of first argument to 'const char *'.
15769         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
15770         Likewise.
15771         (main): Change type of variable 's'.
15772         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
15773         to 'int'.
15774
15775 2011-01-02  Bruno Haible  <bruno@clisp.org>
15776
15777         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
15778         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
15779         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
15780         bug.
15781         * lib/pwrite.c: Undo 2010-12-31 patch.
15782         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
15783
15784 2011-01-02  Bruno Haible  <bruno@clisp.org>
15785
15786         pread: Fix test whether it works.
15787         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
15788
15789 2011-01-02  Bruno Haible  <bruno@clisp.org>
15790
15791         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
15792         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
15793         ends in "6". Don't require a specific month name. Try also the locale
15794         names found on HP-UX 11 and Solaris 7.
15795
15796 2011-01-02  Bruno Haible  <bruno@clisp.org>
15797
15798         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
15799         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
15800         C linkage.
15801         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
15802
15803 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15804
15805         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
15806         for consistency, since the "cluster" term is not used elsewhere.
15807         * lib/unigbrk.in.h: Update name.
15808         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
15809         * lib/unigbrk/u16-grapheme-next.c: Update name.
15810         * lib/unigbrk/u16-grapheme-prev.c: Update name.
15811         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
15812         * lib/unigbrk/u32-grapheme-next.c: Update name.
15813         * lib/unigbrk/u32-grapheme-prev.c: Update name.
15814         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
15815         * lib/unigbrk/u8-grapheme-next.c: Update name.
15816         * lib/unigbrk/u8-grapheme-prev.c: Update name.
15817         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
15818         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
15819         Suggested by Bruno Haible.
15820
15821 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15822
15823         Remove module 'u8-grapheme-len' as too redundant with
15824         'u8-grapheme-next'.
15825         * modules/unigbrk/u8-grapheme-len: Delete file.
15826         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
15827         * lib/unigbrk.in.h: Remove prototype for deleted function.
15828         * lib/unigbrk/u8-grapheme-len.c: Delete file.
15829         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
15830
15831         Remove module 'u16-grapheme-len' as too redundant with
15832         'u16-grapheme-next'.
15833         * modules/unigbrk/u16-grapheme-len: Delete file.
15834         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
15835         * lib/unigbrk.in.h: Remove prototype for deleted function.
15836         * lib/unigbrk/u16-grapheme-len.c: Delete file.
15837         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
15838
15839         Remove module 'u32-grapheme-len' as too redundant with
15840         'u32-grapheme-next'.
15841         * modules/unigbrk/u32-grapheme-len: Delete file.
15842         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
15843         * lib/unigbrk.in.h: Remove prototype for deleted function.
15844         * lib/unigbrk/u32-grapheme-len.c: Delete file.
15845         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
15846
15847         Suggested by Bruno Haible.
15848
15849 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15850
15851         * unigbrk.in.h: Fix typo: "ben" => "been".
15852         Reported by Bruno Haible.
15853
15854 2011-01-01  Jim Meyering  <meyering@redhat.com>
15855
15856         maint: update almost all copyright ranges to include 2011
15857         Run the new "make update-copyright" rule.
15858
15859 2011-01-01  Jim Meyering  <meyering@redhat.com>
15860
15861         maint: update-copyright: exempt doc/INSTALL*
15862         * Makefile (update-copyright): Also exclude doc/INSTALL*,
15863         since they are generated.  Suggested by Bruno Haible.
15864
15865 2011-01-01  Jim Meyering  <meyering@redhat.com>
15866
15867         maint: refine the update-copyright rule
15868         * Makefile (update-copyright): Also exclude any file that includes
15869         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
15870         code that merely generates the comment.
15871
15872 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15873
15874         New module 'u8-grapheme-len'.
15875         * modules/unigbrk/u8-grapheme-len: New file.
15876         * modules/unigbrk/u8-grapheme-len-tests: New file.
15877         * lib/unigbrk.in.h: Add prototype for new function.
15878         * lib/unigbrk/u8-grapheme-len.c: New file.
15879         * tests/unigbrk/test-u8-grapheme-len.c: New file.
15880
15881         New module 'u16-grapheme-len'.
15882         * modules/unigbrk/u16-grapheme-len: New file.
15883         * modules/unigbrk/u16-grapheme-len-tests: New file.
15884         * lib/unigbrk.in.h: Add prototype for new function.
15885         * lib/unigbrk/u16-grapheme-len.c: New file.
15886         * tests/unigbrk/test-u16-grapheme-len.c: New file.
15887
15888         New module 'u32-grapheme-len'.
15889         * modules/unigbrk/u32-grapheme-len: New file.
15890         * modules/unigbrk/u32-grapheme-len-tests: New file.
15891         * lib/unigbrk.in.h: Add prototype for new function.
15892         * lib/unigbrk/u32-grapheme-len.c: New file.
15893         * tests/unigbrk/test-u32-grapheme-len.c: New file.
15894
15895         New module 'u8-grapheme-next'.
15896         * modules/unigbrk/u8-grapheme-next: New file.
15897         * modules/unigbrk/u8-grapheme-next-tests: New file.
15898         * lib/unigbrk.in.h: Add prototype for new function.
15899         * lib/unigbrk/u8-grapheme-next.c: New file.
15900         * tests/unigbrk/test-u8-grapheme-next.c: New file.
15901
15902         New module 'u16-grapheme-next'.
15903         * modules/unigbrk/u16-grapheme-next: New file.
15904         * modules/unigbrk/u16-grapheme-next-tests: New file.
15905         * lib/unigbrk.in.h: Add prototype for new function.
15906         * lib/unigbrk/u16-grapheme-next.c: New file.
15907         * tests/unigbrk/test-u16-grapheme-next.c: New file.
15908
15909         New module 'u32-grapheme-next'.
15910         * modules/unigbrk/u32-grapheme-next: New file.
15911         * modules/unigbrk/u32-grapheme-next-tests: New file.
15912         * lib/unigbrk.in.h: Add prototype for new function.
15913         * lib/unigbrk/u32-grapheme-next.c: New file.
15914         * tests/unigbrk/test-u32-grapheme-next.c: New file.
15915
15916         New module 'u8-grapheme-prev'.
15917         * modules/unigbrk/u8-grapheme-prev: New file.
15918         * modules/unigbrk/u8-grapheme-prev-tests: New file.
15919         * lib/unigbrk.in.h: Add prototype for new function.
15920         * lib/unigbrk/u8-grapheme-prev.c: New file.
15921         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
15922
15923         New module 'u16-grapheme-prev'.
15924         * modules/unigbrk/u16-grapheme-prev: New file.
15925         * modules/unigbrk/u16-grapheme-prev-tests: New file.
15926         * lib/unigbrk.in.h: Add prototype for new function.
15927         * lib/unigbrk/u16-grapheme-prev.c: New file.
15928         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
15929
15930         New module 'u32-grapheme-prev'.
15931         * modules/unigbrk/u32-grapheme-prev: New file.
15932         * modules/unigbrk/u32-grapheme-prev-tests: New file.
15933         * lib/unigbrk.in.h: Add prototype for new function.
15934         * lib/unigbrk/u32-grapheme-prev.c: New file.
15935         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
15936
15937         New module 'u8-grapheme-breaks'.
15938         * modules/unigbrk/u8-grapheme-breaks: New file.
15939         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
15940         * lib/unigbrk.in.h: Add prototype for new function.
15941         * lib/unigbrk/u8-grapheme-breaks.c: New file.
15942         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
15943
15944         New module 'u16-grapheme-breaks'.
15945         * modules/unigbrk/u16-grapheme-breaks: New file.
15946         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
15947         * lib/unigbrk.in.h: Add prototype for new function.
15948         * lib/unigbrk/u16-grapheme-breaks.c: New file.
15949         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
15950
15951         New module 'u32-grapheme-breaks'.
15952         * modules/unigbrk/u32-grapheme-breaks: New file.
15953         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
15954         * lib/unigbrk.in.h: Add prototype for new function.
15955         * lib/unigbrk/u32-grapheme-breaks.c: New file.
15956         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
15957
15958         New module 'ulc-grapheme-breaks'.
15959         * modules/unigbrk/ulc-grapheme-breaks: New file.
15960         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
15961         * m4/locale-ar.m4: New file.
15962         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
15963         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
15964         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
15965
15966 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15967
15968         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
15969         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
15970         modified how this file was generated before I initially submitted
15971         the module, but failed to regenerate it.  This meant that several
15972         of the level2 entries were wrong.
15973         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
15974         Remove the division-by-2 that is folded into the table now that
15975         gbrkprop.h has been regenerated properly.  Now -1 entries are
15976         handled correctly.
15977
15978         New module 'unigbrk/uc-gbrk-prop-tests'.
15979         * modules/unigbrk/uc-gbrk-prop-tests: New file.
15980         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
15981         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
15982         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
15983
15984 2011-01-01  Bruno Haible  <bruno@clisp.org>
15985
15986         Avoid use of hexadecimal escapes.
15987         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
15988         instead of hexadecimal escapes.
15989
15990 2011-01-01  Jim Meyering  <meyering@redhat.com>
15991
15992         maint: new rule to update copyright year ranges
15993         * Makefile (update-copyright): New rule.
15994
15995         maint: indent with TABs in Makefile
15996         * Makefile: Expand leading sequences of spaces to TABs
15997
15998         version-etc: update the copyright year it reports
15999         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16000
16001 2010-12-31  Bruno Haible  <bruno@clisp.org>
16002
16003         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16004         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16005         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16006         zero.
16007
16008 2010-12-31  Bruno Haible  <bruno@clisp.org>
16009
16010         pwrite: Work around HP-UX 11.11 bug.
16011         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16012         works and set REPLACE_PWRITE if not.
16013         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16014         function.
16015         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16016
16017 2010-12-31  Bruno Haible  <bruno@clisp.org>
16018
16019         pread: Work around HP-UX 11 bugs.
16020         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16021         and set REPLACE_PREAD if not.
16022         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16023
16024 2010-12-31  Eric Blake  <eblake@redhat.com>
16025
16026         nl_langinfo: fix YESEXPR on Irix 6.5
16027         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16028         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16029         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16030         it.
16031
16032 2010-12-31  Bruno Haible  <bruno@clisp.org>
16033
16034         iconv: Document HP-UX 11 bug.
16035         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16036
16037 2010-12-31  Bruno Haible  <bruno@clisp.org>
16038
16039         ldexpl: Fix link error on HP-UX 11.
16040         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16041         LDEXPL_LIBM, using $ISNANL_LIBM.
16042
16043 2010-12-31  Eric Blake  <eblake@redhat.com>
16044
16045         ftello: avoid compilation failure with SunStudio c89
16046         * lib/ftello.c (ftello): Use lseek, not llseek.
16047
16048         tests: avoid failing coreutils tests on cygwin
16049         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16050         (create_exe_shims_): Return 0 when skipping.
16051
16052 2010-12-31  Bruno Haible  <bruno@clisp.org>
16053
16054         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16055         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16056
16057 2010-12-31  Bruno Haible  <bruno@clisp.org>
16058
16059         waitpid: Fix link error in C++ mode.
16060         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16061
16062 2010-12-31  Bruno Haible  <bruno@clisp.org>
16063
16064         isnan: Use GCC built-ins when possible.
16065         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16066         __builtin_isnan.
16067         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16068         (isnan): Define using GCC built-ins for GCC >= 4.0.
16069
16070 2010-12-31  Bruno Haible  <bruno@clisp.org>
16071
16072         isnand: Fix mistake.
16073         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16074         __builtin_isnand.
16075
16076 2010-12-31  Bruno Haible  <bruno@clisp.org>
16077
16078         open: Avoid C++ error on HP-UX 11.
16079         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16080
16081 2010-12-31  Bruno Haible  <bruno@clisp.org>
16082
16083         time_r: Add missing declarations on HP-UX 11.
16084         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16085         instead of HAVE_LOCALTIME_R.
16086         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16087         HAVE_LOCALTIME_R always.
16088         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16089         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16090         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16091         HAVE_LOCALTIME_R.
16092         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16093         * doc/posix-functions/localtime_r.texi: Likewise.
16094
16095 2010-12-29  Eric Blake  <eblake@redhat.com>
16096
16097         mountlist: tweak previous commit
16098         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16099         Reported by Paul Eggert.
16100
16101         mountlist: fix local drive detection on cygwin
16102         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16103         that works for cygwin.
16104
16105 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16106
16107         ftoastr, snprintf: ftoastr + snprintf module
16108         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16109         since the snprintf module now should be good enough here.
16110         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16111         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16112         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16113         GNULIB_SNPRINTF only for the test directory, and the latter
16114         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16115         seems to suffice by itself.
16116
16117 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16118
16119         alloca: one step towards thread-safety
16120         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16121         need for a static variable.  All callers changed.  This does not
16122         make the alloca replacement thread-safe, but it's one step.
16123
16124         tests: minor indenting change
16125         * tests/init.sh: Sync from coreutils housekeeping patch
16126         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16127         to keep lines within 80 columns.
16128
16129 2010-12-28  Jim Meyering  <meyering@redhat.com>
16130
16131         regex: don't infloop on persistent failing calloc
16132         * lib/regexec.c (build_trtable): Return failure indication upon
16133         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16134         In glibc, this was fixed for version 2.13:
16135         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16136
16137 2010-12-28  Bruno Haible  <bruno@clisp.org>
16138             Paul Eggert <eggert@cs.ucla.edu>
16139
16140         linkat: Make implementation robust against system behaviour variations.
16141         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16142         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16143         way, and to -2 if it needs a generic runtime test.
16144         * lib/linkat.c (solaris_optimized_link_immediate,
16145         solaris_optimized_link_follow): New functions.
16146         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16147         (check_same_link): Use it.
16148
16149 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16150
16151         New module 'unigbrk/base'.
16152         * modules/unigbrk/base: New file.
16153         * lib/unigbrk.in.h: New file.
16154
16155         New module 'unigbrk/uc-gbrk-prop'.
16156         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16157         * modules/unigbrk/uc-gbrk-prop: New file.
16158         * lib/unigbrk/gbrkprop.h: New file.
16159         * lib/unigbrk/uc-gbrk-prop.c: New file.
16160
16161         New module 'unigbrk/uc-is-grapheme-break'.
16162         * modules/unigbrk/uc-is-grapheme-break: New file.
16163         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16164         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16165         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16166         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16167         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16168
16169         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16170
16171 2010-12-27  Bruno Haible  <bruno@clisp.org>
16172
16173         linkat test: Avoid failure on Solaris 11 2010-11.
16174         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16175
16176 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16177
16178         utimens: work around glibc rounding bug on more platforms
16179         * lib/utimens.c (fdutimens): Work around rounding bug even if
16180         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16181         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16182
16183 2010-12-27  Bruno Haible  <bruno@clisp.org>
16184
16185         select tests: Improve comments.
16186         * tests/test-select.c (do_select): Add comments.
16187
16188 2010-12-27  Bruno Haible  <bruno@clisp.org>
16189
16190         select tests: Safer way of handling timeout.
16191         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16192         at every invocation.
16193
16194 2010-12-27  Bruno Haible  <bruno@clisp.org>
16195
16196         select tests: Use 'bool' where appropriate.
16197         * tests/test-select.c (connect_to_socket): Change argument type to
16198         'bool'.
16199
16200 2010-12-27  Bruno Haible  <bruno@clisp.org>
16201
16202         select tests: Use existing modules.
16203         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16204         (configure.ac): Don't test for unistd.h.
16205         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16206         declared in <unistd.h>.
16207
16208 2010-12-27  Bruno Haible  <bruno@clisp.org>
16209
16210         mbrtowc: Work around a Solaris 7 bug.
16211         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16212         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16213         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16214         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16215         MBRTOWC_NULL_ARG1_BUG.
16216         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16217         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16218         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16219         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16220
16221 2010-12-27  Jim Meyering  <meyering@redhat.com>
16222
16223         read-file.c: tweak syntax
16224         * lib/read-file.c (fread_file): Remove space after "*" in function
16225         definitions.
16226
16227 2010-12-27  Bruno Haible  <bruno@clisp.org>
16228
16229         times test: Avoid gcc warnings on OSF/1.
16230         * tests/test-times.c (main): Cast printf arguments from clock_t to
16231         'long int'.
16232
16233 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16234
16235         utimens: work around glibc rounding bug on older Linux kernels
16236         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16237         on Linux with a glibc whose utimes might not work, then work
16238         around a longstanding glibc bug involving rounding rather than
16239         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16240         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16241
16242 2010-12-26  Bruno Haible  <bruno@clisp.org>
16243
16244         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
16245         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
16246         _GL_CXXALIAS_SYS.
16247         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16248
16249 2010-12-26  Bruno Haible  <bruno@clisp.org>
16250
16251         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
16252         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
16253         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16254         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
16255         looking for the declaration.
16256         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16257         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
16258         problem.
16259         * doc/posix-functions/inet_pton.texi: Likewise.
16260
16261 2010-12-26  Bruno Haible  <bruno@clisp.org>
16262
16263         arpa_inet: Use the common idioms with C++ support.
16264         * lib/arpa_inet.in.h: Include c++defs.h.
16265         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
16266         support.
16267         * modules/arpa_inet (Depends-on): Add c++defs.
16268         (Makefile.am): Substitute the contents of c++defs.h.
16269         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
16270         * modules/arpa_inet-c++-tests: New file.
16271         * tests/test-arpa_inet-c++.cc: New file.
16272
16273 2010-12-25  Bruno Haible  <bruno@clisp.org>
16274
16275         Fix more C++ link errors on Solaris 8.
16276         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
16277         $(LIB_EACCESS).
16278         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
16279         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
16280         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
16281         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
16282         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
16283
16284 2010-12-25  Bruno Haible  <bruno@clisp.org>
16285
16286         printf-posix: Fix link error when a non-GCC compiler is used.
16287         * lib/stdio.in.h (printf): When not using GCC, override printf
16288         correctly.
16289         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16290
16291 2010-12-25  Bruno Haible  <bruno@clisp.org>
16292
16293         strerror_r-posix: Update doc.
16294         * doc/posix-functions/strerror_r.texi: Update doc about the return
16295         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
16296
16297 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16298
16299         utimens: simplify the logic of the previous change
16300         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
16301         This should not affect whether the test succeeds or fails.
16302
16303         utimens: configure better on hosts with NFS clock skew
16304         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
16305         uses the clock of the local host.  It might use the clock of the
16306         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
16307         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16308
16309 2010-12-25  Bruno Haible  <bruno@clisp.org>
16310
16311         ptsname test: Avoid failure on Solaris.
16312         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
16313         open a pseudo-terminal; don't use BSD-style ptys.
16314         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
16315
16316 2010-12-25  Bruno Haible  <bruno@clisp.org>
16317
16318         ptsname: Avoid ERANGE failure on some systems.
16319         * lib/ptsname.c (buffer): Increase size.
16320
16321 2010-12-25  Bruno Haible  <bruno@clisp.org>
16322
16323         rename, renameat: Avoid test failures at NFS mounted locations.
16324         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
16325         so that subsequent mkdir calls succeed.
16326
16327 2010-12-25  Bruno Haible  <bruno@clisp.org>
16328
16329         iswblank: Fix C++ link error on Solaris 8.
16330         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
16331         _GL_FUNCDECL_SYS.
16332
16333 2010-12-25  Bruno Haible  <bruno@clisp.org>
16334
16335         unistd: Fix C++ link error on Solaris 8.
16336         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
16337
16338 2010-12-25  Bruno Haible  <bruno@clisp.org>
16339
16340         readlink doc: Mention an old glibc bug.
16341         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16342
16343 2010-12-25  Bruno Haible  <bruno@clisp.org>
16344
16345         fcntl-h: Fix for use of C++ on glibc systems.
16346         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16347         also on glibc systems in C++ mode.
16348         Reported by Gary V. Vaughan <gary@gnu.org>.
16349
16350 2010-12-25  Bruno Haible  <bruno@clisp.org>
16351
16352         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16353         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16354
16355 2010-12-25  Bruno Haible  <bruno@clisp.org>
16356
16357         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16358         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16359         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16360         test whether truncl works according to ISO C 99 with IEC 60559.
16361         * m4/truncl-ieee.m4: New file.
16362         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16363         m4/signbit.m4.
16364         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16365
16366 2010-12-25  Bruno Haible  <bruno@clisp.org>
16367
16368         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16369         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16370         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16371         test whether ceill works according to ISO C 99 with IEC 60559.
16372         * m4/ceill-ieee.m4: New file.
16373         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16374         m4/signbit.m4.
16375         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
16376
16377 2010-12-25  Bruno Haible  <bruno@clisp.org>
16378
16379         Ensure all prerequisites of <wchar.h> are included.
16380         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16381         before <wchar.h>.
16382         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16383         gl_MBRLEN_NUL_RETVAL): Likewise.
16384         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16385         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
16386         AC_FUNC_MBRTOWC): Likewise.
16387         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16388         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16389         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16390         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16391         Likewise.
16392         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16393         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
16394         (gl_WCHAR_H): Improve comments.
16395         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16396
16397 2010-12-25  Bruno Haible  <bruno@clisp.org>
16398
16399         strtok_r: Fix C syntax error in autoconf macro.
16400         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
16401         characters in test program.
16402
16403 2010-12-24  Bruno Haible  <bruno@clisp.org>
16404
16405         ceil, trunc, round: Fix gcc warnings.
16406         * lib/ceil.c (MIN): Undefine before redefining.
16407         * lib/trunc.c (MIN): Likewise.
16408         * lib/round.c (MIN): Likewise.
16409         Include <math.h> first.
16410
16411 2010-12-24  Bruno Haible  <bruno@clisp.org>
16412
16413         select tests: Avoid failures on OSF/1 5.1.
16414         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16415         failure of closing the last socket; it may fail with ECONNRESET.
16416
16417 2010-12-24  Eric Blake  <eblake@redhat.com>
16418
16419         stdint: avoid HP-UX 10.20 preprocessor bug
16420         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
16421         than #if.
16422         * tests/test-floor2.c (main): Likewise.
16423         Reported by Peter O'Gorman.
16424
16425         pipe: make obsoletion transition easier
16426         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
16427         * modules/pipe (Files): Include revived file.
16428         (Include): Drop reference, to mirror getdate's behavior.
16429
16430 2010-12-24  Bruno Haible  <bruno@clisp.org>
16431
16432         sys_socket: Hide mismatch of declarations on NonStop Kernel.
16433         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
16434         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
16435         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16436
16437 2010-12-24  Bruno Haible  <bruno@clisp.org>
16438
16439         gethostname: Ensure declaration on NonStop Kernel.
16440         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
16441         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16442
16443 2010-12-24  Bruno Haible  <bruno@clisp.org>
16444
16445         sys_select: Ensure all necessary types on NonStop Kernel.
16446         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
16447         include <sys/time.h>.
16448         * doc/posix-headers/sys_select.texi: Mention that it's missing on
16449         NonStop Kernel.
16450         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16451
16452 2010-12-24  Bruno Haible  <bruno@clisp.org>
16453
16454         sys_select: Remove unneeded include.
16455         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
16456         have <sys/select.h>.
16457
16458 2010-12-24  Bruno Haible  <bruno@clisp.org>
16459
16460         gethostname: Provide a fallback for HOST_NAME_MAX.
16461         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
16462         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
16463         instead.
16464         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16465
16466 2010-12-24  Bruno Haible  <bruno@clisp.org>
16467
16468         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
16469         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
16470         (SA_RESTART): Likewise.
16471         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16472
16473 2010-12-24  Bruno Haible  <bruno@clisp.org>
16474
16475         signal: Define NSIG.
16476         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
16477         * tests/test-signal.c (nsig): New variable.
16478         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16479
16480 2010-12-24  Bruno Haible  <bruno@clisp.org>
16481
16482         rename, renameat: Avoid test failures on OSF/1 5.1.
16483         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
16484         alternative error codes.
16485         * tests/test-renameat.c (main): Likewise.
16486
16487 2010-12-24  Bruno Haible  <bruno@clisp.org>
16488
16489         *printf: Detect large precisions bug on Solaris 10/SPARC.
16490         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
16491         by Paul Eggert.
16492         * tests/test-snprintf-posix.h (test_function): Add this test code here
16493         too.
16494         * tests/test-sprintf-posix.h (test_function): Likewise.
16495         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16496         * tests/test-vasprintf-posix.c (test_function): Likewise.
16497         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
16498         around by gnulib.
16499         * doc/posix-functions/printf.texi: Likewise.
16500         * doc/posix-functions/snprintf.texi: Likewise.
16501         * doc/posix-functions/sprintf.texi: Likewise.
16502         * doc/posix-functions/vfprintf.texi: Likewise.
16503         * doc/posix-functions/vprintf.texi: Likewise.
16504         * doc/posix-functions/vsnprintf.texi: Likewise.
16505         * doc/posix-functions/vsprintf.texi: Likewise.
16506         * doc/posix-functions/dprintf.texi: Undo last commit.
16507         * doc/posix-functions/vdprintf.texi: Likewise.
16508
16509 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16510
16511         tests: port test-fdutimensat.c to Solaris 8
16512         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
16513         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
16514         On Solaris 8, it fails with errno == ENOSYS, because there is no
16515         futimens (so it can't use the fd), and there is no lutimens (so it
16516         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
16517
16518         vsnprintf: make more consistent with snprintf; doc fixes
16519
16520         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
16521         the byte count return problem was promoted from the snprintf-posix
16522         to the snprintf module.
16523         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16524         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
16525         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
16526         * tests/test-snprintf.c (main): Check the byte count returned.
16527         * tests/test-vsnprintf.c (main): Likewise.
16528
16529 2010-12-23  Eric Blake  <eblake@redhat.com>
16530
16531         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
16532         * modules/sigpipe (License): Relax license.
16533
16534 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16535
16536         doc: document Solaris printf bug with large float precisions
16537         * doc/posix-functions/dprintf.texi (dprintf):
16538         * doc/posix-functions/fprintf.texi (fprintf):
16539         * doc/posix-functions/printf.texi (printf):
16540         * doc/posix-functions/snprintf.texi (snprintf):
16541         * doc/posix-functions/sprintf.texi (sprintf):
16542         * doc/posix-functions/vdprintf.texi (vdprintf):
16543         * doc/posix-functions/vfprintf.texi (vfprintf):
16544         * doc/posix-functions/vprintf.texi (vprintf):
16545         * doc/posix-functions/vsnprintf.texi (vsnprintf):
16546         * doc/posix-functions/vsprintf.texi (vsprintf):
16547         Mention that these functions mishandle large floating point
16548         precisions on Solaris 10.  The same bug is also present in Solaris
16549         8, and I assume earlier.  This causes "cd gnulib-tests; make
16550         check" to fail on Solaris 8 (and I assume, later) when building
16551         the latest coreutils, in test-vasprintf-posix's call to
16552         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
16553         the wide flavors (e.g., wprintf) so this patch just updates the
16554         documentation for the narrow ones.
16555
16556         test-posixtm.c: add two tests
16557         * tests/test-posixtm.c: Add two tests, to highlight the
16558         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
16559         around this bug; this is merely to document it.
16560
16561 2010-12-22  Bruno Haible  <bruno@clisp.org>
16562
16563         getlogin_r: Work around portability problem on OSF/1.
16564         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
16565         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
16566         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
16567         test for a truncated result.
16568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
16569         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
16570         * modules/getlogin_r (Depends-on): Add memchr.
16571         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
16572
16573 2010-12-22  Bruno Haible  <bruno@clisp.org>
16574
16575         ptsname: Avoid test failure on OSF/1 5.1.
16576         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
16577         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
16578         (same_slave): New function.
16579         (main): Use it to compare ptsname's result with the expected file name.
16580
16581 2010-12-22  Bruno Haible  <bruno@clisp.org>
16582
16583         Port extended stdio modules to HP NonStop Kernel.
16584         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
16585         macros.
16586         * lib/fbufmode.c: Update comments.
16587         * lib/fflush.c: Likewise.
16588         * lib/fpurge.c: Likewise.
16589         * lib/freadable.c: Likewise.
16590         * lib/freadahead.c: Likewise.
16591         * lib/freading.c: Likewise.
16592         * lib/freadptr.c: Likewise.
16593         * lib/freadseek.c: Likewise.
16594         * lib/fseeko.c: Likewise.
16595         * lib/fseterr.c: Likewise.
16596         * lib/fwritable.c: Likewise.
16597         * lib/fwriting.c: Likewise.
16598         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16599
16600 2010-12-22  Bruno Haible  <bruno@clisp.org>
16601
16602         ttyname_r: Work around bug on OSF/1 5.1.
16603         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
16604         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
16605         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
16606         present.
16607         * lib/ttyname_r.c (ttyname_r): Update comments.
16608
16609 2010-12-22  Bruno Haible  <bruno@clisp.org>
16610
16611         round: Implement result sign according to IEEE 754.
16612         * lib/round.c (MIN, MINUS_ZERO): New macros.
16613         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
16614         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
16615         * tests/test-round-ieee.c (main): Likewise.
16616         * tests/test-roundl-ieee.c (main): Likewise.
16617
16618         trunc: Implement result sign according to IEEE 754.
16619         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
16620         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
16621         * tests/test-trunc2.c: Include minus-zero.h.
16622         (MINUS_ZERO): New macro.
16623         (trunc_reference): Keep in sync with lib/trunc.c.
16624         * tests/test-truncf2.c: Include minus-zero.h.
16625         (MINUS_ZERO): New macro.
16626         (truncf_reference): Keep in sync with lib/trunc.c.
16627         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
16628         * tests/test-trunc-ieee.c (main): Likewise.
16629         * tests/test-truncl-ieee.c (main): Likewise.
16630
16631         ceil: Implement result sign according to IEEE 754.
16632         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
16633         (FUNC): Return -0.0 for -1 < x < 0.
16634         * tests/test-ceil2.c: Include minus-zero.h.
16635         (MINUS_ZERO): New macro.
16636         (ceil_reference): Keep in sync with lib/ceil.c.
16637         * tests/test-ceilf2.c: Include minus-zero.h.
16638         (MINUS_ZERO): New macro.
16639         (ceilf_reference): Keep in sync with lib/ceil.c.
16640         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
16641         * tests/test-ceil-ieee.c (main): Likewise.
16642         * tests/test-ceill-ieee.c (main): Likewise.
16643
16644         floor: Implement result sign according to IEEE 754.
16645         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
16646         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
16647         * tests/test-floorf2.c (floorf_reference): Likewise.
16648         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
16649         * tests/test-floor-ieee.c (main): Likewise.
16650         * tests/test-floorl-ieee.c (main): Likewise.
16651
16652 2010-12-22  Bruno Haible  <bruno@clisp.org>
16653
16654         getaddrinfo: Update doc.
16655         * doc/posix-functions/gai_strerror.texi: Return type is also different
16656         on AIX and HP-UX.
16657
16658 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16659
16660         getaddrinfo, inet_ntop: Update doc for Solaris.
16661         * doc/posix-functions/gai_strerror.texi: Return type is also an
16662         issue on Solaris 9 and earlier.
16663         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
16664         on Solaris 10 and earlier.
16665
16666 2010-12-21  Bruno Haible  <bruno@clisp.org>
16667
16668         New module 'roundl-ieee'.
16669         * modules/roundl-ieee: New file.
16670         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
16671         test whether roundl works according to ISO C 99 with IEC 60559.
16672         * m4/roundl-ieee.m4: New file.
16673         * modules/roundl-ieee-tests: New file.
16674         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
16675         * tests/test-roundl.c (main): Remove signbit tests.
16676         * modules/roundl-tests (Depends-on): Remove signbit.
16677         * doc/posix-functions/roundl.texi: Mention the new module.
16678
16679 2010-12-21  Bruno Haible  <bruno@clisp.org>
16680
16681         New module 'truncl-ieee'.
16682         * modules/truncl-ieee: New file.
16683         * modules/truncl-ieee-tests: New file.
16684         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
16685         * tests/test-truncl.c (main): Remove signbit tests.
16686         * modules/truncl-tests (Depends-on): Remove signbit.
16687         * doc/posix-functions/truncl.texi: Mention the new module.
16688
16689 2010-12-21  Bruno Haible  <bruno@clisp.org>
16690
16691         New module 'ceill-ieee'.
16692         * modules/ceill-ieee: New file.
16693         * modules/ceill-ieee-tests: New file.
16694         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
16695         * tests/test-ceill.c (main): Remove signbit tests.
16696         * modules/ceill-tests (Depends-on): Remove signbit.
16697         * doc/posix-functions/ceill.texi: Mention the new module.
16698
16699 2010-12-21  Bruno Haible  <bruno@clisp.org>
16700
16701         New module 'floorl-ieee'.
16702         * modules/floorl-ieee: New file.
16703         * modules/floorl-ieee-tests: New file.
16704         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
16705         * tests/test-floorl.c (main): Remove signbit tests.
16706         * modules/floorl-tests (Depends-on): Remove signbit.
16707         * doc/posix-functions/floorl.texi: Mention the new module.
16708
16709 2010-12-21  Bruno Haible  <bruno@clisp.org>
16710
16711         New module 'round-ieee'.
16712         * modules/round-ieee: New file.
16713         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
16714         whether round works according to ISO C 99 with IEC 60559.
16715         * m4/round-ieee.m4: New file.
16716         * modules/round-ieee-tests: New file.
16717         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
16718         * tests/test-round1.c (main): Remove signbit tests.
16719         * modules/round-tests (Depends-on): Remove 'signbit'.
16720         * doc/posix-functions/round.texi: Mention the new module.
16721
16722 2010-12-21  Bruno Haible  <bruno@clisp.org>
16723
16724         New module 'trunc-ieee'.
16725         * modules/trunc-ieee: New file.
16726         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
16727         whether trunc works according to ISO C 99 with IEC 60559.
16728         * m4/trunc-ieee.m4: New file.
16729         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
16730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
16731         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
16732         * modules/trunc-ieee-tests: New file.
16733         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
16734         * tests/test-trunc1.c (main): Remove signbit tests.
16735         * modules/trunc-tests (Depends-on): Remove 'signbit'.
16736         * doc/posix-functions/trunc.texi: Mention the new module.
16737
16738 2010-12-21  Bruno Haible  <bruno@clisp.org>
16739
16740         New module 'ceil-ieee'.
16741         * modules/ceil-ieee: New file.
16742         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
16743         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
16744         ISO C 99 with IEC 60559.
16745         * m4/ceil-ieee.m4: New file.
16746         * modules/ceil (Files): Add lib/ceil.c.
16747         (Depends-on): Add 'float'.
16748         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16749         * lib/math.in.h (ceil): New declaration.
16750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
16751         REPLACE_CEIL.
16752         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
16753         * modules/ceil-ieee-tests: New file.
16754         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
16755         * tests/test-math-c++.cc: Check the signature of 'ceil'.
16756         * doc/posix-functions/ceil.texi: Mention the new module.
16757
16758 2010-12-21  Bruno Haible  <bruno@clisp.org>
16759
16760         New module 'floor-ieee'.
16761         * modules/floor-ieee: New file.
16762         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
16763         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
16764         ISO C 99 with IEC 60559.
16765         * m4/floor-ieee.m4: New file.
16766         * modules/floor (Files): Add lib/floor.c.
16767         (Depends-on): Add 'float'.
16768         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16769         * lib/math.in.h (floor): New declaration.
16770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
16771         REPLACE_FLOOR.
16772         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
16773         * modules/floor-ieee-tests: New file.
16774         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
16775         * tests/test-math-c++.cc: Check the signature of 'floor'.
16776         * doc/posix-functions/floor.texi: Mention the new module.
16777
16778 2010-12-21  Bruno Haible  <bruno@clisp.org>
16779
16780         New module 'roundf-ieee'.
16781         * modules/roundf-ieee: New file.
16782         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
16783         test whether roundf works according to ISO C 99 with IEC 60559.
16784         * m4/roundf-ieee.m4: New file.
16785         * modules/roundf-ieee-tests: New file.
16786         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
16787         * tests/test-roundf1.c (main): Remove signbit tests.
16788         * modules/roundf-tests (Depends-on): Remove 'signbit'.
16789         * doc/posix-functions/roundf.texi: Mention the new module.
16790
16791 2010-12-21  Bruno Haible  <bruno@clisp.org>
16792
16793         New module 'truncf-ieee'.
16794         * modules/truncf-ieee: New file.
16795         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
16796         test whether truncf works according to ISO C 99 with IEC 60559.
16797         * m4/truncf-ieee.m4: New file.
16798         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
16799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
16800         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
16801         * modules/truncf-ieee-tests: New file.
16802         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
16803         * tests/test-truncf1.c (main): Remove signbit tests.
16804         * modules/truncf-tests (Depends-on): Remove 'signbit'.
16805         * doc/posix-functions/truncf.texi: Mention the new module.
16806
16807 2010-12-21  Bruno Haible  <bruno@clisp.org>
16808
16809         New module 'ceilf-ieee'.
16810         * modules/ceilf-ieee: New file.
16811         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
16812         test whether ceilf works according to ISO C 99 with IEC 60559.
16813         * m4/ceilf-ieee.m4: New file.
16814         * modules/ceilf-ieee-tests: New file.
16815         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
16816         * tests/test-ceilf1.c (main): Remove signbit tests.
16817         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
16818         * doc/posix-functions/ceilf.texi: Mention the new module.
16819
16820 2010-12-21  Bruno Haible  <bruno@clisp.org>
16821
16822         New module 'floorf-ieee'.
16823         * modules/floorf-ieee: New file.
16824         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
16825         test whether floorf works according to ISO C 99 with IEC 60559.
16826         * m4/floorf-ieee.m4: New file.
16827         * modules/floorf-ieee-tests: New file.
16828         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
16829         * tests/test-floorf1.c (main): Remove signbit tests.
16830         * modules/floorf-tests (Depends-on): Remove 'signbit'.
16831         * doc/posix-functions/floorf.texi: Mention the new module.
16832
16833 2010-12-21  Bruno Haible  <bruno@clisp.org>
16834
16835         Support for minus zero in autoconf macros.
16836         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
16837         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
16838         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
16839         * tests/minus-zero.h: Update comments.
16840
16841 2010-12-21  Bruno Haible  <bruno@clisp.org>
16842
16843         Tests for module 'ceil'.
16844         * modules/ceil-tests: New file.
16845         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
16846         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
16847
16848 2010-12-21  Bruno Haible  <bruno@clisp.org>
16849
16850         Tests for module 'floor'.
16851         * modules/floor-tests: New file.
16852         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
16853         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
16854
16855 2010-12-21  Bruno Haible  <bruno@clisp.org>
16856
16857         math: Fix indentation.
16858         * lib/math.in.h (floorf): Fix indentation.
16859
16860 2010-12-21  Bruno Haible  <bruno@clisp.org>
16861
16862         Fix cross-compilation guesses on Solaris.
16863         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
16864         not match "solaris2.10".
16865         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16866         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
16867         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
16868
16869 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16870
16871         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
16872         This fixes a problem observed with the latest coreutils snapshot
16873         that caused a test to fail on Solaris 8.  src/csplit.c's call
16874         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
16875         earlier, instead of returning the number of bytes that would have
16876         been generated; this causes csplit to incorrectly report memory
16877         exhaustion.
16878         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
16879         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
16880         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
16881         comments to match.
16882         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
16883         Fix typo in matching older versions of Solaris: "solaris2.10"
16884         is matched by the shell pattern "solaris2.[0-9]*".  This matters
16885         only for guessing while cross-compiling.
16886         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
16887
16888 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16889
16890         ftoastr: fix comment again
16891         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16892         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
16893         Also, simplify example a bit by using flags = 0.
16894
16895 2010-12-20  Bruno Haible  <bruno@clisp.org>
16896
16897         round*, trunc*: Update documentation regarding glibc.
16898         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
16899         * doc/posix-functions/round.texi: Likewise.
16900         * doc/posix-functions/roundl.texi: Likewise.
16901         * doc/posix-functions/truncf.texi: Likewise.
16902         * doc/posix-functions/trunc.texi: Likewise.
16903         * doc/posix-functions/truncl.texi: Likewise.
16904
16905 2010-12-20  Bruno Haible  <bruno@clisp.org>
16906
16907         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
16908         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
16909         * doc/posix-functions/round.texi: Likewise.
16910         * doc/posix-functions/roundl.texi: Likewise.
16911
16912 2010-12-20  Bruno Haible  <bruno@clisp.org>
16913
16914         ttyname_r: Add missing declaration on HP-UX 11.
16915         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
16916         HAVE_TTYNAME_R.
16917         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
16918         declared. Set HAVE_TTYNAME_R always.
16919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16920         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
16921         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
16922         HAVE_TTYNAME_R.
16923         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
16924
16925 2010-12-20  Bruno Haible  <bruno@clisp.org>
16926
16927         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
16928         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
16929         * doc/posix-functions/getlogin_r.texi: Likewise.
16930         * tests/test-getlogin.c: Include <errno.h>.
16931         (main): Avoid test failure on HP-UX 11.11.
16932         * tests/test-getlogin_r.c (main): Likewise.
16933
16934 2010-12-20  Bruno Haible  <bruno@clisp.org>
16935
16936         getlogin_r: Add missing declaration on HP-UX 11.
16937         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
16938         declared also when it exists as a function.
16939         * doc/posix-functions/getlogin_r.texi: Document this workaround.
16940
16941 2010-12-20  Bruno Haible  <bruno@clisp.org>
16942
16943         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
16944         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
16945         through wcrtomb.
16946
16947 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16948
16949         ftoastr: fix comment
16950         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16951         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
16952
16953 2010-12-19  Bruno Haible  <bruno@clisp.org>
16954
16955         isnan: Ensure it is a macro.
16956         * lib/math.in.h (isnan): Define as a macro if not already a macro.
16957         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
16958         Solaris.
16959
16960 2010-12-19  Bruno Haible  <bruno@clisp.org>
16961
16962         ldexpl test: Fix link error on OSF/1 5.1.
16963         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
16964
16965 2010-12-19  Bruno Haible  <bruno@clisp.org>
16966
16967         wctype: Make it work in C++ mode on OSF/1 5.1.
16968         * lib/wctype.in.h (iswblank): Declare but not define here.
16969         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
16970         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
16971         * modules/wctype (Files): Add lib/iswblank.c.
16972
16973 2010-12-19  Bruno Haible  <bruno@clisp.org>
16974
16975         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
16976         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
16977         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
16978
16979 2010-12-19  Bruno Haible  <bruno@clisp.org>
16980
16981         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
16982         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
16983         _POSIX_PII_SOCKET.
16984         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
16985         * doc/posix-functions/recvfrom.texi: Likewise.
16986         * doc/posix-functions/send.texi: Likewise.
16987         * doc/posix-functions/sendto.texi: Likewise.
16988
16989 2010-12-19  Bruno Haible  <bruno@clisp.org>
16990
16991         tcgetsid: Add missing declaration on OSF/1 5.1.
16992         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
16993         HAVE_TCGETSID.
16994         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
16995         Don't set HAVE_TCGETSID.
16996         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
16997         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
16998         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
16999         HAVE_TCGETSID.
17000         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17001
17002 2010-12-19  Bruno Haible  <bruno@clisp.org>
17003
17004         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17005         * lib/stdio.in.h: During the include_next statement, let recursive
17006         includes of this file include only the system header file.
17007
17008 2010-12-19  Bruno Haible  <bruno@clisp.org>
17009
17010         iconv_open: Fix regression from 2010-12-04.
17011         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17012         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17013
17014 2010-12-19  Bruno Haible  <bruno@clisp.org>
17015
17016         stdbool test: Avoid a gcc warning.
17017         * tests/test-stdbool.c (main): Fail if e1 is false.
17018         Reported by Jim Meyering.
17019
17020 2010-12-19  Jim Meyering  <meyering@redhat.com>
17021
17022         setenv: restore to working order
17023         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17024         mistakenly removed.
17025         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17026         HAVE_SETENV.
17027         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17028         HAVE_SETENV.
17029
17030 2010-12-19  Bruno Haible  <bruno@clisp.org>
17031
17032         Document some different function declarations on OSF/1 5.1.
17033         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17034         * doc/posix-functions/inet_ntop.texi: Likewise.
17035         * doc/posix-functions/gethostname.texi: Likewise.
17036         * lib/unistd.in.h (gethostname): Update comment.
17037
17038 2010-12-19  Bruno Haible  <bruno@clisp.org>
17039
17040         doc: Mention vasprintf-posix module.
17041         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17042         the 'vasprintf-posix' module.
17043         * doc/glibc-functions/vasprintf.texi: Likewise.
17044
17045 2010-12-19  Bruno Haible  <bruno@clisp.org>
17046
17047         unsetenv: Add missing declaration on OSF/1 5.1.
17048         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17049         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17050         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17052         not HAVE_UNSETENV.
17053         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17054         HAVE_UNSETENV.
17055         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17056
17057 2010-12-19  Bruno Haible  <bruno@clisp.org>
17058
17059         setenv: Add missing declaration on OSF/1 5.1.
17060         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17061         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17062         declared. Don't set HAVE_SETENV.
17063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17064         not HAVE_SETENV.
17065         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17066         HAVE_SETENV.
17067         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17068
17069 2010-12-19  Bruno Haible  <bruno@clisp.org>
17070
17071         nl_langinfo tests: Avoid gcc warning.
17072         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17073
17074 2010-12-19  Bruno Haible  <bruno@clisp.org>
17075
17076         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17077         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17078         _GL_CXXALIAS_SYS.
17079
17080 2010-12-19  Bruno Haible  <bruno@clisp.org>
17081
17082         stdbool: Relax test.
17083         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17084         address to 'bool' work in static initializer, for compilers other than
17085         GCC.
17086
17087 2010-12-19  Bruno Haible  <bruno@clisp.org>
17088
17089         ftello: Add missing declaration on OSF/1 5.1.
17090         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17091         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17093         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17094         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17095
17096 2010-12-19  Bruno Haible  <bruno@clisp.org>
17097
17098         fseeko: Add missing declaration on OSF/1 5.1.
17099         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17100         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17101         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17102         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17103         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17104
17105 2010-12-19  Bruno Haible  <bruno@clisp.org>
17106
17107         fchdir: Add missing declaration on OSF/1 5.1.
17108         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17109         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17111         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17112         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17113
17114 2010-12-19  Bruno Haible  <bruno@clisp.org>
17115
17116         relocatable-prog-wrapper: Separate from relocatable-prog.
17117         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17118         uninstall-relocwrapper rule here.
17119         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17120         Reported by Ian Beckwith <ianb@erislabs.net>.
17121
17122 2010-12-19  Bruno Haible  <bruno@clisp.org>
17123
17124         unistr/u8-mbsnlen: Add missing dependency.
17125         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17126         Reported by Ian Beckwith <ianb@erislabs.net>.
17127
17128 2010-12-19  Bruno Haible  <bruno@clisp.org>
17129
17130         iconv: Make it possible again to use this module without 'iconv-h'.
17131         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17132         if it is not defined.
17133         Reported by Ian Beckwith <ianb@erislabs.net>.
17134
17135 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17136
17137         acl: port to Solaris 8 when copying from tmpfs to ufs
17138         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17139         error number.  Problem observed on Solaris 8 with latest
17140         coreutils, with "mv A B", where A is on a tmpfs file system and B
17141         is on a ufs file system.  This caused coreutils' mv/part-symlink
17142         test to fail.
17143
17144         tests: set fail=0 at start
17145         * tests/init.sh (setup_): Move fail=0 initialization here ...
17146         (mktempd_): ... from here, so that tests can rely on fail being
17147         set to 0 initially.  This fixes a problem in coreutils; see:
17148         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17149
17150 2010-12-18  Bruno Haible  <bruno@clisp.org>
17151
17152         memmem-simple: Stylistic changes.
17153         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17154         Fix preprocessor directive indentation.
17155
17156 2010-12-15  Pádraig Brady <P@draigBrady.com>
17157
17158         memmem, memmem-simple: reorganize and expand empty needle check
17159         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17160         functional checks to memmem-simple so that one has a fully functional
17161         memmem by using just this module.
17162         Restrict the performance only check to the memmem module.
17163         Also expand the empty needle check to ensure the correct
17164         pointer is returned, not just a non NULL pointer.
17165         * doc/glibc-functions/memmem.texi: Rearrange the portability
17166         documentation to correlate with the rearranged checks.
17167         Clarify exactly how the memmem and memmem-simple modules
17168         relate to each other.
17169
17170 2010-12-15  Pádraig Brady <P@draigBrady.com>
17171             Bruno Haible  <bruno@clisp.org>
17172
17173         Improve cross-compilation guesses for uClibc.
17174         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17175         that uClibc does not have the glibc bug.
17176         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17177         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17178
17179 2010-12-14  Eric Blake  <eblake@redhat.com>
17180
17181         configmake: provide fallbacks for oldest supported autotools
17182         * m4/configmake.m4: New file.
17183         * modules/configmake (Files): Ship it.
17184         (configure.ac): Use it to guarantee fallbacks.
17185
17186 2010-12-13  Pádraig Brady <P@draigBrady.com>
17187
17188         read-file: Improve handling of large files
17189         * lib/read-file.c (fread_file): Minimize realloc()s
17190         for regular files, and better manage sizes around SIZE_MAX.
17191
17192 2010-12-13  Eric Blake  <eblake@redhat.com>
17193
17194         cloexec, fcntl: relax license
17195         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17196         consent from all contributors.
17197         * modules/fcntl (License): Likewise.
17198
17199 2010-12-10  Bruno Haible  <bruno@clisp.org>
17200
17201         Tests for module 'pipe-posix'.
17202         * modules/pipe-posix-tests: New file.
17203         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17204
17205 2010-12-10  Bruno Haible  <bruno@clisp.org>
17206
17207         pipe-posix: Make it work in C++ mode.
17208         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17209         (pipe): Use common idiom, not a macro definition.
17210         * lib/pipe.c: New file.
17211         * m4/pipe.m4: New file.
17212         * modules/pipe-posix (Description): Enhance.
17213         (Files): Add lib/pipe.c, m4/pipe.m4.
17214         (configure.ac): Invoke gl_FUNC_PIPE.
17215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17216         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17217         * tests/test-unistd-c++.cc: Check the signature of pipe.
17218
17219 2010-12-10  Bruno Haible  <bruno@clisp.org>
17220
17221         Rename module 'pipe' to 'spawn-pipe'.
17222         * modules/spawn-pipe: New file, renamed from modules/pipe.
17223         (Files, configure.ac, Makefile.am): Update.
17224         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17225         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17226         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17227         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17228         "spawn-pipe.h" instead of "pipe.h".
17229         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17230         to gl_SPAWN_PIPE.
17231         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17232         (Files, Makefile.am): Update.
17233         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17234         Update.
17235         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17236         Include "spawn-pipe.h" instead of "pipe.h".
17237         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17238         * lib/javacomp.c: Likewise.
17239         * lib/javaversion.c: Likewise.
17240         * lib/pipe-filter-gi.c: Likewise.
17241         * lib/pipe-filter-ii.c: Likewise.
17242         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17243         * modules/javacomp (Depends-on): Likewise.
17244         * modules/javaversion (Depends-on): Likewise.
17245         * modules/pipe-filter-gi (Depends-on): Likewise.
17246         * modules/pipe-filter-ii (Depends-on): Likewise.
17247         * MODULES.html.sh (Executing programs): Update.
17248         * NEWS: Mention the change.
17249
17250 2010-12-10  Eric Blake  <eblake@redhat.com>
17251
17252         pipe-posix: new module
17253         * modules/pipe-posix: New file.
17254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
17255         (gl_UNISTD_H): Check for declaration.
17256         * modules/unistd (Makefile.am): Substitute it.
17257         * lib/unistd.in.h (pipe): Provide it for mingw.
17258         * doc/posix-functions/pipe.texi (pipe): Update documentation.
17259         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
17260
17261 2010-12-07  Bruno Haible  <bruno@clisp.org>
17262
17263         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
17264         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
17265         u8_strcmp_gnu.
17266         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
17267
17268 2010-12-06  Bruno Haible  <bruno@clisp.org>
17269
17270         Update internal documentation.
17271         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
17272
17273 2010-12-04  Bruno Haible  <bruno@clisp.org>
17274
17275         Put more information about failed tests into the test return codes.
17276         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
17277         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
17278         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
17279         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
17280         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17281         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17282         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17283         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17284         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
17285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17286         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
17287         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
17288         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
17289         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17290         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
17291         returns a bit mask.
17292         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
17293         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
17294         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
17295         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
17296         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17297         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17298         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17299         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17300         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17301         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17302         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17303         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17304         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17305         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17306         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17307         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17308         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
17309         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
17310         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17311         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
17312         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17313         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17314         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
17315         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17316         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17317         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17318         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
17319         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17320         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17321         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
17322         gl_PRINTF_PRECISION): Likewise.
17323         * m4/regex.m4 (gl_REGEX): Likewise.
17324         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17325         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17326         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
17327         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17328         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17329         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17330         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17331         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
17332         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17333         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17334         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17335         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17336         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17337         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17338         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17339         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17340         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17341         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17342         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17343         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17344         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17345         enumerated value.
17346         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17347
17348 2010-12-04  Bruno Haible  <bruno@clisp.org>
17349
17350         Update for Solaris 11 2010-11.
17351         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17352         Express, released in November 2010.
17353
17354 2010-12-04  Bruno Haible  <bruno@clisp.org>
17355
17356         nproc: Relax license.
17357         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17358         and Paul Eggert.
17359         Requested by Ludovic Courtès <ludo@gnu.org>.
17360
17361 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17362
17363         utimecmp: fine-grained src to nearby coarse-grained dest
17364
17365         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17366         and the source is on a file system with higher-resolution time
17367         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17368         not work, and the time stamps are close together, the algorithm to
17369         determine the exact resolution from the read-back mtime was buggy:
17370         it had a "!=" where it should have had an "==".  This bug has been
17371         in the code ever since it was introduced to gnulib.
17372         Problem reported by Dan Jacobson in
17373         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17374
17375 2010-11-30  Bruno Haible  <bruno@clisp.org>
17376
17377         strerror_r-posix: Fix autoconf test.
17378         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
17379
17380 2010-11-28  Bruno Haible  <bruno@clisp.org>
17381             Paul Eggert  <eggert@cs.ucla.edu>
17382
17383         Tests for module 'getdomainname'.
17384         * modules/getdomainname-tests: New file.
17385         * tests/test-getdomainname.c: New file, based on
17386         tests/test-gethostname.c.
17387
17388 2010-11-28  Bruno Haible  <bruno@clisp.org>
17389             Paul Eggert  <eggert@cs.ucla.edu>
17390
17391         getdomainname: Use the system function when possible.
17392         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
17393         (getdomainname): Replace if needed. Provide the declaration if it is
17394         missing. Don't use _GL_CXXALIAS_SYS_CAST.
17395         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
17396         (getdomainname): When the system has getdomainname, call the system
17397         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
17398         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17399         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
17400         found in libnsl. Look for the declaration also in <netdb.h>. Replace
17401         the function if its second argument is of type 'int' or if it is found
17402         in libnsl.
17403         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
17404         <sys/systeminfo.h> and sysinfo().
17405         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
17406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17407         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
17408         HAVE_GETDOMAINNAME.
17409         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
17410         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
17411         * doc/glibc-functions/getdomainname.texi: Document the problems with
17412         the getdomainname declaration.
17413
17414 2010-11-28  Bruno Haible  <bruno@clisp.org>
17415
17416         sys_socket: Ensure ss_family field on AIX.
17417         * lib/sys_socket.in.h (ss_family): New macro definition.
17418         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
17419         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
17420         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17421         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17422         * modules/sys_socket (Makefile.am): Substitute
17423         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17424         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
17425
17426 2010-11-27  Bruno Haible  <bruno@clisp.org>
17427
17428         readline: Improve configure output.
17429         * m4/readline.m4 (gl_FUNC_READLINE): Make the
17430         "checking for readline..." result understandable.
17431
17432 2010-11-27  Bruno Haible  <bruno@clisp.org>
17433
17434         *printf-posix: Detect a bug on Solaris 10/x86.
17435         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
17436         for floating-point output.
17437         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
17438         directive.
17439         * tests/test-snprintf-posix.h (test_function): Likewise.
17440         * tests/test-sprintf-posix.h (test_function): Likewise.
17441         * tests/test-vasprintf-posix.c (test_function): Likewise.
17442         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
17443         * doc/posix-functions/printf.texi: Likewise.
17444         * doc/posix-functions/snprintf.texi: Likewise.
17445         * doc/posix-functions/sprintf.texi: Likewise.
17446         * doc/posix-functions/vfprintf.texi: Likewise.
17447         * doc/posix-functions/vprintf.texi: Likewise.
17448         * doc/posix-functions/vsnprintf.texi: Likewise.
17449         * doc/posix-functions/vsprintf.texi: Likewise.
17450         * doc/glibc-functions/obstack_printf.texi: Likewise.
17451         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
17452
17453 2010-11-27  Bruno Haible  <bruno@clisp.org>
17454
17455         Fix link error when module libunistring-optional is in use.
17456         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
17457         * modules/striconveha-tests (Makefile.am): Likewise.
17458
17459 2010-11-27  Bruno Haible  <bruno@clisp.org>
17460
17461         regex: Mention link dependencies.
17462         * modules/regex (Link): New section.
17463         * modules/rpmatch (Link): Likewise.
17464         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
17465
17466 2010-11-27  Bruno Haible  <bruno@clisp.org>
17467
17468         ftoastr: Fix compilation error on Solaris.
17469         * lib/ftoastr.c: Include <config.h>.
17470
17471 2010-11-27  Bruno Haible  <bruno@clisp.org>
17472
17473         getloadavg: Update documentation.
17474         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
17475
17476 2010-11-27  Bruno Haible  <bruno@clisp.org>
17477
17478         sys_socket: Fix test whether the functions are declared.
17479         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
17480         not <sys/select.h>.
17481
17482 2010-11-27  Bruno Haible  <bruno@clisp.org>
17483
17484         getpass: Make sure to get system declaration on some platforms.
17485         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
17486         gl_USE_SYSTEM_EXTENSIONS.
17487         * modules/getpass (Depends-on): Add extensions.
17488
17489 2010-11-26  Bruno Haible  <bruno@clisp.org>
17490
17491         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
17492         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
17493         'iconv' module is present.
17494         (ICONV_CONST): New macro.
17495         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
17496         ICONV_CONST.
17497         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
17498         set ICONV_CONST.
17499         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
17500         here.
17501         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
17502         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
17503         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
17504         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
17505         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
17506         present.
17507
17508 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17509
17510         ftoastr: comment fix
17511         * lib/ftoastr.c: "little" -> "little or no" in comment
17512
17513 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17514
17515         stdint: port to GCC 4.3 + OSX + Octave
17516         On this platform, stdint.h is buggy and defines int64_t to long
17517         long int.  The replacement defined it to long int, causing
17518         problems with C++ style name mangling.  Instead, trust the system
17519         definition if INT64_MAX is defined, and likewise for the unsigned
17520         variant.   Problem reported by Jarno Rajahalme in
17521         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
17522         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
17523         and don't mess with int64_t and INT64_MAX in this case.
17524         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
17525
17526 2010-11-24  Bruno Haible  <bruno@clisp.org>
17527
17528         doc: Corrections regarding MacOS X 10.4 and 10.5.
17529         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
17530         MacOS X.
17531         Reported by Simon Josefsson.
17532
17533 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
17534
17535         Uninstall ".bin" files installed by relocwrapper.
17536         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
17537         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
17538         unless it is already there.
17539
17540 2010-11-21  Bruno Haible  <bruno@clisp.org>
17541
17542         Update for NetBSD 5.0.
17543         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17544         NetBSD; the test fails on NetBSD 5.0.
17545         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17546         about NetBSD.
17547
17548 2010-11-21  Bruno Haible  <bruno@clisp.org>
17549
17550         Update for HP-UX 11.23 and HP-UX 11.31.
17551         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
17552         HP-UX.
17553
17554 2010-11-21  Bruno Haible  <bruno@clisp.org>
17555
17556         Update for MacOS X 10.5.
17557         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17558         MacOS X; the test fails on MacOS X 10.5.8.
17559         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17560         about MacOS X.
17561
17562 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
17563
17564         bootstrap: add bootstrap_sync option.
17565         See discussion at
17566         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
17567         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
17568         * build-aux/bootstrap: Accept --bootstrap-sync to update
17569         bootstrap if it is not identical to the local gnulib's
17570         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
17571         enable this by default.  Accept --no-bootstrap-sync to disable
17572         it.
17573
17574 2010-11-20  Bruno Haible  <bruno@clisp.org>
17575
17576         Ensure that <features.h> is included before __GLIBC__ is tested.
17577         * lib/printf-parse.h: Include <features.h>.
17578         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
17579         Reported by Mike Frysinger <vapier@gentoo.org>.
17580
17581         Ensure that <features.h> is included before __GLIBC__ is tested.
17582         * lib/wchar.in.h: Include <features.h>.
17583         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
17584         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
17585         Reported by Mike Frysinger <vapier@gentoo.org>.
17586
17587         Ensure that <features.h> is included before __GLIBC__ is tested.
17588         * lib/arpa_inet.in.h: Include <features.h>.
17589         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
17590         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
17591         Reported by Mike Frysinger <vapier@gentoo.org>.
17592
17593         Ensure that <features.h> is included before __GLIBC__ is tested.
17594         * build-aux/link-warning.h: Include <features.h>.
17595         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
17596         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
17597         Reported by Mike Frysinger <vapier@gentoo.org>.
17598
17599         Ensure that <features.h> is included before __GLIBC__ is tested.
17600         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
17601         Reported by Mike Frysinger <vapier@gentoo.org>.
17602
17603 2010-11-20  Bruno Haible  <bruno@clisp.org>
17604
17605         memmem: Fix autoconf test.
17606         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
17607
17608 2010-11-20  Bruno Haible  <bruno@clisp.org>
17609
17610         Port to uClibc.
17611         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
17612         * lib/fcntl.in.h: Likewise.
17613         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
17614         * lib/mbrtowc.c (mbrtowc): Likewise.
17615         * lib/relocatable.c (find_shared_library_fullname): Likewise.
17616         * lib/strerror_r.c: Likewise.
17617         * lib/unistr/u8-strnlen.c: Likewise.
17618         * lib/vasnprintf.c (decimal_point_char): Likewise.
17619         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17620         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17621         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17622         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17623         * tests/test-sigaction.c (handler, main): Likewise.
17624         * lib/freading.h: Treat uClibc like a non-glibc platform.
17625         * lib/freading.c: Likewise.
17626         * lib/gettext.h: Likewise.
17627         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
17628         Likewise.
17629         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
17630         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
17631         * lib/propername.c (proper_name_utf8): Likewise.
17632         * lib/spawn.in.h: Likewise.
17633         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
17634         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
17635         mem_cd_iconveh_internal): Likewise.
17636         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
17637         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17638         strstr, strcasestr): Likewise.
17639         * lib/unicodeio.c (unicode_to_mb): Likewise.
17640         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
17641         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
17642         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
17643         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
17644         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
17645         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
17646         * lib/unistr/u8-stpncpy.c: Likewise.
17647         * lib/vasnprintf.c (VASNPRINTF): Likewise.
17648         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
17649         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17650         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17651         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17652         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
17653         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
17654         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
17655         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17656         Likewise.
17657         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17658         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17659         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17660         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17661         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17662         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17663         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17664         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17665         * tests/test-getopt.h (OPTIND_MIN): Likewise.
17666         * tests/test-striconveha.c (main): Likewise.
17667         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17668         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
17669         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
17670         * doc/posix-functions/getline.texi: Likewise.
17671         Reported by Mike Frysinger <vapier@gentoo.org>.
17672
17673 2010-11-20  Bruno Haible  <bruno@clisp.org>
17674
17675         nproc: Fix condition.
17676         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
17677         HAVE_PTHREAD_AFFINITY_NP.
17678
17679 2010-11-20  Bruno Haible  <bruno@clisp.org>
17680
17681         Fix a comment.
17682         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
17683
17684 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
17685
17686         ftoastr: don't assume snprintf
17687         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
17688         Implement a subset of snprintf here, by using sprintf safely.
17689         * modules/ftoastr (Depends-on): Remove snprintf.
17690
17691 2010-11-19  Jim Meyering  <meyering@redhat.com>
17692
17693         test-rename.h: fix compilation failure
17694         * tests/test-rename.h (test_rename): Add omitted "}".
17695
17696 2010-11-17  Jim Meyering  <meyering@redhat.com>
17697
17698         maint.mk: add a URL discussing the no-@acronym policy
17699         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
17700
17701 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
17702
17703         ftoastr: depend on snprintf, improve comments
17704         * lib/ftoastr.c: Also mention Loitsch's draft.
17705         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
17706         needed in the current implementation, but it might simplify
17707         speeding up the code later.
17708         * modules/ftoastr: Depend on snprintf; this improves portability.
17709         Suggested by Bruno Haible in the same email.
17710
17711         ftoastr: port to hosts lacking strtof and strtold
17712         Problem reported by Bruno Haible in
17713         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
17714         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
17715         environment and strtold (and presumably strtof) are not available.
17716         * modules/ftoastr (Files): Add m4/c-strtod.m4.
17717         (configure.ac): Require gl_C99_STRTOLD.
17718
17719 2010-11-18  Bruno Haible  <bruno@clisp.org>
17720
17721         c-strtold: Avoid link error on AIX 7.
17722         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
17723         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
17724         (gl_C_STRTOLD): Test whether strtold_l exists.
17725         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17726
17727 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
17728
17729         intprops: new macro INT_BITS_STRLEN_BOUND
17730         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
17731         ftoastr.h.  This exposes an internal of intprops.h that was formerly
17732         not exposed.  Also, it uses a slightly tighter bound than before;
17733         though this makes no practical difference, we might as well be as
17734         tight as we easily can.
17735
17736         ftoastr: new module, for lossless conversion of floats to short strings
17737         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
17738         * modules/ftoastr: New files.
17739
17740 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17741
17742         bootstrap: port to Solaris sed
17743         * build-aux/bootstrap (get_version): Port to Solaris sed.
17744         See Ralf Wildenhues's note in
17745         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
17746
17747 2010-11-14  Jim Meyering  <meyering@redhat.com>
17748
17749         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
17750         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
17751         and move definition closer to sole use.
17752
17753 2010-11-13  Jim Meyering  <meyering@redhat.com>
17754
17755         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
17756         Now we require at least autoconf-2.59, which means the work-around
17757         is no longer needed.
17758         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
17759         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17760         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17761         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
17762         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17763
17764 2010-11-13  Bruno Haible  <bruno@clisp.org>
17765
17766         rename, renameat: Avoid test failures at NFS mounted locations.
17767         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
17768         functions.
17769         (test_rename): Use assert_nonexistent.
17770         * tests/test-rename.c: Include <dirent.h>.
17771         * tests/test-renameat.c: Likewise.
17772         Reported by Gary V. Vaughan <gary@gnu.org>.
17773
17774         rename, renameat: Document Linux bug with NFS
17775         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
17776         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
17777         * doc/posix-functions/renameat.texi: Likewise.
17778         Suggested by Eric Blake.
17779
17780 2010-11-13  Bruno Haible  <bruno@clisp.org>
17781
17782         rename test: Add comments.
17783         * tests/test-rename.h (test_rename): Add structure and comments.
17784
17785 2010-11-13  Eric Blake  <eblake@redhat.com>
17786
17787         maintainer-makefile: cover a few more files
17788         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
17789         scripts generated within C files, for libvirt.
17790
17791 2010-11-13  Bruno Haible  <bruno@clisp.org>
17792
17793         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
17794         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
17795         character, return the number of bytes that belong together, not always
17796         1.
17797         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
17798         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
17799         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
17800         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
17801         number of bytes of an invalid character.
17802         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
17803         (main): Invoke it.
17804         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
17805         results.
17806         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
17807         malformed byte sequences.
17808         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
17809         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
17810         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
17811         Reported by Ben Pfaff and Paolo Bonzini.
17812
17813 2010-11-13  Bruno Haible  <bruno@clisp.org>
17814
17815         openat: Work around glibc bug with fchownat() and empty file names.
17816         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
17817         (gl_FUNC_FCHOWNAT): Invoke it.
17818         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
17819         * doc/posix-functions/fchownat.texi: Document the glibc bug.
17820         Reported by Gary V. Vaughan <gary@gnu.org>.
17821
17822 2010-11-13  Bruno Haible  <bruno@clisp.org>
17823
17824         openat: Ensure autoconf macro ordering.
17825         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
17826         gl_USE_SYSTEM_EXTENSIONS.
17827         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
17828
17829 2010-11-13  Bruno Haible  <bruno@clisp.org>
17830
17831         Update comments.
17832         * lib/unistr/u8-check.c: Update file name in comments.
17833         * lib/unistr/u8-mblen.c: Likewise.
17834         * lib/unistr/u8-prev.c: Likewise.
17835         * lib/unistr/u8-strmblen.c: Likewise.
17836         * lib/unistr/u8-strmbtouc.c: Likewise.
17837
17838 2010-11-13  Jim Meyering  <meyering@redhat.com>
17839
17840         tests: avoid test failure on Solaris 10 due to lack of PATH export
17841         * tests/test-update-copyright.sh: Don't forget to export PATH.
17842
17843         init.sh: ensure that IFS is defined, just in case...
17844         * tests/init.sh (setup_): Ensure that IFS is defined,
17845         so that saving and restoring it works as expected.  This
17846         appears to be useful at least for an old version of dash
17847         from a long time ago (RH 6).  See here for details:
17848         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
17849
17850         maint.mk: tighten "test a == b" check
17851         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
17852         test to files that contain something like #!/bin/sh.
17853         Without this, coreutils would get two false positives in
17854         the comments of C source files.
17855
17856 2010-11-12  Eric Blake  <eblake@redhat.com>
17857
17858         bootstrap: fix typo in previous attempt
17859         * build-aux/bootstrap (buildreq): Correct the grouping.
17860         Reported by Paul Eggert.
17861
17862         maintainer-makefile: prohibit test x == x
17863         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
17864         Based on a report by Matthias Bolte.
17865
17866         bootstrap: allow FreeBSD gzip
17867         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
17868         which has no '.' and goes to stderr.
17869         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
17870         Reported by Matthias Bolte.
17871
17872         maintainer-makefile: check for i18n setup
17873         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
17874         will likely work.
17875
17876 2010-11-12  Bruno Haible  <bruno@clisp.org>
17877
17878         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
17879         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
17880         * lib/nanosleep.c (nanosleep): Likewise.
17881
17882 2010-11-11  Bruno Haible  <bruno@clisp.org>
17883
17884         fcntl-h: Fix for use of C++ on glibc systems.
17885         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17886         also on glibc systems in C++ mode.
17887         Reported by Gary V. Vaughan <gary@gnu.org>.
17888
17889 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17890
17891         mknod: avoid false failure with dash
17892         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
17893
17894 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17895
17896         unlink: Fix "is it should" typo in diagnostic.
17897         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
17898         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
17899
17900 2010-11-11  Bruno Haible  <bruno@clisp.org>
17901
17902         Tests for module 'strerror_r-posix'.
17903         * modules/strerror_r-posix-tests: New file.
17904         * tests/test-strerror_r.c: New file.
17905         * tests/test-string-c++.cc: Check the signature of strerror_r.
17906
17907         New module 'strerror_r-posix'.
17908         * lib/string.in.h (strerror_r): New declaration.
17909         * lib/strerror_r.c: New file.
17910         * m4/strerror_r.m4: New file.
17911         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
17912         of strerror_r.
17913         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
17914         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17915         * modules/strerror_r-posix: New file.
17916         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
17917         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17918         * doc/posix-functions/strerror_r.texi: Mention the new module and the
17919         portability problems.
17920
17921 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
17922
17923         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
17924         line is also considered for output. Quoted function name in shell
17925         command, so temporary files for functions like MyClass::operator()
17926         are removed correctly without errors.
17927
17928 2010-11-09  Bruno Haible  <bruno@clisp.org>
17929
17930         * doc/posix-functions/strerror.texi: List more failing platforms.
17931
17932         * doc/posix-functions/strerror.texi: Add a comment.
17933
17934 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17935
17936         fdopendir: fix bug on MacOS X when low on file descriptors
17937
17938         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
17939         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
17940         All callers changed.
17941         (fdopendir): Invoke save_cwd at the top level, not after using
17942         multiple dup() calls to use up file descriptors.  Then retry
17943         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
17944         less than the maximum number of open file descriptors, because
17945         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
17946         on Mac OS X 10.6.4 for tar 1.24
17947         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
17948         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
17949         and for tar 1.25
17950         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
17951
17952 2010-11-07  Bruno Haible  <bruno@clisp.org>
17953
17954         vasnprintf: Support I flag on glibc systems.
17955         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
17956         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
17957         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
17958         snprintf function.
17959         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
17960         glibc systems.
17961         * tests/test-vasnprintf-posix3.c: New file.
17962         * modules/vasnprintf-posix-tests (Files): Add it.
17963         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
17964
17965 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17966
17967         [html] Fix copy/paste bug: Use unique name for compiler warnings.
17968         * MODULES.html.sh: For compiler warnings, use name
17969         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
17970
17971 2010-11-05  Eric Blake  <eblake@redhat.com>
17972
17973         ceil, floor: avoid spurious failure with icc
17974         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
17975         [denormals-as-zero] when optimizing without -mieee-fp option.
17976         * tests/test-floorf2.c (floorf_reference): Likewise.
17977         * tests/test-ceilf1.c (dummy): New function.
17978         (main): Use it to outsmart icc's optimization.
17979         * tests/test-floorf1.c (dummy, main): Likewise.
17980
17981         tests: require working signbit
17982         * modules/ceilf-tests (Depends-on): Add signbit.
17983         * modules/ceill-tests (Depends-on): Likewise.
17984         * modules/floorf-tests (Depends-on): Likewise.
17985         * modules/floorl-tests (Depends-on): Likewise.
17986         * modules/round-tests (Depends-on): Likewise.
17987         * modules/roundf-tests (Depends-on): Likewise.
17988         * modules/roundl-tests (Depends-on): Likewise.
17989         * modules/trunc-tests (Depends-on): Likewise.
17990         * modules/truncf-tests (Depends-on): Likewise.
17991         * modules/truncl-tests (Depends-on): Likewise.
17992
17993         strtod: work around icc bug
17994         * lib/strtod.c (minus_zero): Define to working value.
17995         (strtod): Use it to avoid icc bug.
17996
17997         copysign: enhance tests
17998         * modules/copysign-tests (Files): Add minus-zero.h.
17999         * tests/test-copysign.c (main): Also test zeros.
18000
18001 2010-11-04  Eric Blake  <eblake@redhat.com>
18002
18003         ceil, floor, round, trunc: enhance tests of -0
18004         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18005         * tests/test-ceill.c (main): Likewise.
18006         * tests/test-floorf1.c (main): Likewise.
18007         * tests/test-floorl.c (main): Likewise.
18008         * tests/test-round1.c (main): Likewise.
18009         * tests/test-roundf1.c (main): Likewise.
18010         * tests/test-roundl.c (main): Likewise.
18011         * tests/test-trunc1.c (main): Likewise.
18012         * tests/test-truncf1.c (main): Likewise.
18013         * tests/test-truncl.c (main): Likewise.
18014
18015 2010-11-04  Eric Blake  <eblake@redhat.com>
18016
18017         frexp, tests: work around ICC bug with -zero
18018         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18019         works with more compilers.
18020         * tests/minus-zero.h: New file.
18021         * modules/ceilf-tests (Files): Include it.
18022         * modules/ceill-tests (Files): Likewise.
18023         * modules/floorf-tests (Files): Likewise.
18024         * modules/floorl-tests (Files): Likewise.
18025         * modules/frexp-nolibm-tests (Files): Likewise.
18026         * modules/frexp-tests (Files): Likewise.
18027         * modules/frexpl-nolibm-tests (Files): Likewise.
18028         * modules/frexpl-tests (Files): Likewise.
18029         * modules/isnan-tests (Files): Likewise.
18030         * modules/isnand-nolibm-tests (Files): Likewise.
18031         * modules/isnand-tests (Files): Likewise.
18032         * modules/isnanf-nolibm-tests (Files): Likewise.
18033         * modules/isnanf-tests (Files): Likewise.
18034         * modules/isnanl-nolibm-tests (Files): Likewise.
18035         * modules/isnanl-tests (Files): Likewise.
18036         * modules/round-tests (Files): Likewise.
18037         * modules/roundf-tests (Files): Likewise.
18038         * modules/roundl-tests (Files): Likewise.
18039         * modules/ldexpl-tests (Files): Likewise.
18040         * modules/signbit-tests (Files): Likewise.
18041         * modules/snprintf-posix-tests (Files): Likewise.
18042         * modules/sprintf-posix-tests (Files): Likewise.
18043         * modules/strtod-tests (Files): Likewise.
18044         * modules/trunc-tests (Files): Likewise.
18045         * modules/truncf-tests (Files): Likewise.
18046         * modules/truncl-tests (Files): Likewise.
18047         * modules/vsnprintf-posix-tests (Files): Likewise.
18048         * modules/vsprintf-posix-tests (Files): Likewise.
18049         * modules/vasnprintf-posix-tests (Files): Likewise.
18050         * modules/vasprintf-posix-tests (Files): Likewise.
18051         * tests/test-ceilf1.c (main): Use it.
18052         * tests/test-ceill.c (main): Likewise.
18053         * tests/test-floorf1.c (main): Likewise.
18054         * tests/test-floorl.c (main): Likewise.
18055         * tests/test-frexp.c (main): Likewise.
18056         * tests/test-frexpl.c (main): Likewise.
18057         * tests/test-isnan.c (main): Likewise.
18058         * tests/test-isnand.h (main): Likewise.
18059         * tests/test-isnanf.h (main): Likewise.
18060         * tests/test-isnanl.h (main): Likewise.
18061         * tests/test-ldexpl.c (main): Likewise.
18062         * tests/test-round.c (main): Likewise.
18063         * tests/test-roundf.c (main): Likewise.
18064         * tests/test-roundl.c (main): Likewise.
18065         * tests/test-signbit.c (test_signbitf, test_signbitd)
18066         (test_signbitl): Likewise.
18067         * tests/test-snprintf-posix.h (test_function): Likewise.
18068         * tests/test-sprintf-posix.h (test_function): Likewise.
18069         * tests/test-strtod.c (main): Likewise.
18070         * tests/test-trunc1.c (main): Likewise.
18071         * tests/test-truncf1.c (main): Likewise.
18072         * tests/test-truncl.c (main): Likewise.
18073
18074         isnanl: work around icc bug
18075         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18076
18077 2010-11-03  Eric Blake  <eblake@redhat.com>
18078
18079         tests: fix compiler warnings
18080         * tests/test-getopt.h (test_getopt): Fix condition.
18081         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18082         * tests/test-pipe2.c (main): Likewise.
18083         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18084
18085         utimens: fix broken m4 test
18086         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18087
18088 2010-10-28  Bruno Haible  <bruno@clisp.org>
18089
18090         posix_spawn*, getdtablesize: Relax license.
18091         * modules/posix_spawn (License): Change to LGPLv2+.
18092         * modules/posix_spawnp (License): Likewise.
18093         * modules/posix_spawn-internal (License): Likewise.
18094         * modules/posix_spawnattr_init (License): Likewise.
18095         * modules/posix_spawnattr_getflags (License): Likewise.
18096         * modules/posix_spawnattr_setflags (License): Likewise.
18097         * modules/posix_spawnattr_getpgroup (License): Likewise.
18098         * modules/posix_spawnattr_setpgroup (License): Likewise.
18099         * modules/posix_spawnattr_getschedparam (License): Likewise.
18100         * modules/posix_spawnattr_setschedparam (License): Likewise.
18101         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18102         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18103         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18104         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18105         * modules/posix_spawnattr_getsigmask (License): Likewise.
18106         * modules/posix_spawnattr_setsigmask (License): Likewise.
18107         * modules/posix_spawnattr_destroy (License): Likewise.
18108         * modules/posix_spawn_file_actions_init (License): Likewise.
18109         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18110         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18111         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18112         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18113         * modules/getdtablesize (License): Likewise.
18114         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18115
18116 2010-10-26  Bruno Haible  <bruno@clisp.org>
18117
18118         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18119         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18120         Cygwin and mingw.
18121         Suggested by Eric Blake.
18122
18123 2010-10-26  Bruno Haible  <bruno@clisp.org>
18124
18125         stdio: Work around compilation error due to renameat() on Solaris 10.
18126         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18127         * lib/renameat.c: Don't include <unistd.h> here.
18128         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18129         Reported by Paul Eggert and Eric Blake.
18130
18131 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18132
18133         renameat: port to Solaris 10, which declares renameat in unistd.h
18134
18135         * lib/renameat.c: Include unistd.h before stdio.h, because
18136         Solaris 10 declares renameat in unistd.h.  Problem encountered
18137         when building GNU tar 1.24 on Solaris 10.
18138
18139 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18140
18141         fdopendir: fix C89 compilation
18142         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18143         compilers.
18144
18145 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18146
18147         inttostr: simplify by removing unnecessary redundancy
18148         * lib/anytostr.c: Don't include verify.h.
18149         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18150         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18151         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18152         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18153         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18154         Likewise.
18155         * modules/inttostr (Depends-on): Remove 'verify'.
18156
18157 2010-10-23  Bruno Haible  <bruno@clisp.org>
18158
18159         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18160         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18161         Reported by Eric Blake.
18162
18163 2010-10-23  Bruno Haible  <bruno@clisp.org>
18164
18165         Tests: Fix LOCALE_JA on MirBSD 10.
18166         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18167         to an UTF-8 locale.
18168         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18169         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18170         Reported by Eric Blake.
18171
18172 2010-10-21  Bruno Haible  <bruno@clisp.org>
18173
18174         nl_langinfo test: Avoid test failure on NetBSD 5.
18175         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18176         Reported by Eric Blake.
18177
18178 2010-10-21  Eric Blake  <eblake@redhat.com>
18179
18180         c-stack: work around libsigsegv 2.8 bug
18181         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18182         overflow on at least PowerPC64.
18183
18184 2010-10-17  Bruno Haible  <bruno@clisp.org>
18185
18186         userspec: Drop redundant file.
18187         * modules/userspec (Files): Remove lib/inttostr.h.
18188
18189 2010-10-17  Bruno Haible  <bruno@clisp.org>
18190
18191         nl_langinfo tests: Silence some warnings.
18192         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18193         Reported by Jim Meyering.
18194
18195 2010-10-17  Bruno Haible  <bruno@clisp.org>
18196
18197         Make use of GCC's attribute __alloc_size__.
18198         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18199         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18200         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18201         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18202         __alloc_size__.
18203         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18204         Suggested by Jim Meyering.
18205
18206 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18207
18208         bootstrap: anchor .gitignore entries.
18209         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18210         with...
18211         (insert_vc_ignore): ... this new function, which prepends `/' to
18212         all .gitignore entries before passing them to
18213         insert_sorted_if_absent.
18214
18215 2010-10-16  Bruno Haible  <bruno@clisp.org>
18216
18217         nextafter: Fix configure check.
18218         * modules/nextafter (configure.ac): Correct expected prototype.
18219
18220 2010-10-16  Bruno Haible  <bruno@clisp.org>
18221
18222         termios: Update documentation.
18223         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18224
18225 2010-10-16  Bruno Haible  <bruno@clisp.org>
18226
18227         tests: Make them compile with TinyCC.
18228         * tests/test-strstr.c (main): Remove parentheses around array
18229         initializer.
18230
18231 2010-10-15  Eric Blake  <eblake@redhat.com>
18232
18233         ignore-value: make header idempotent
18234         * lib/ignore-value.h: Add double-inclusion guards.
18235         Reported by Stefan Berger.
18236
18237 2010-10-15  Jim Meyering  <meyering@redhat.com>
18238
18239         GNUmakefile: handle "stable" target, not "major"
18240         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18241         lists in maint.mk and announce-gen.  Without this, "make stable"
18242         would fail to ensure that $(VERSION) is up to date.
18243
18244 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
18245
18246         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
18247         & co.
18248
18249 2010-10-14  Bruno Haible  <bruno@clisp.org>
18250
18251         vasnprintf: Don't set errno to 0.
18252         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
18253         block that sets it to 0.
18254         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18255
18256 2010-10-14  Bruno Haible  <bruno@clisp.org>
18257
18258         socketlib: Fix.
18259         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
18260         gl_PREREQ_SYS_H_WINSOCK2.
18261         Reported by Ian Beckwith <ianb@erislabs.net>.
18262
18263 2010-10-13  Jim Meyering  <meyering@redhat.com>
18264
18265         test-select-stdin.c: avoid warn_unused_result warnings
18266         * tests/test-select-stdin.c: Include "macros.h".
18267         ASSERT that read and fflush succeed.
18268
18269 2010-10-13  Jim Meyering  <meyering@redhat.com>
18270
18271         git-version-gen: do require git-VC'd files in cwd
18272         * build-aux/git-version-gen: Reject a git version string
18273         if there are no commits associated with the current directory.
18274         This avoids an unlikely false-positive (unrelated dir whose parent
18275         repository also contains a tag matching v*), as pointed out
18276         by Giuseppe Scrivano in
18277         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
18278
18279 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18280
18281         argv-iter: omit nonconforming declaration
18282         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
18283         enum arg_iter_err declaration, which doesn't conform to C99.
18284         Solaris 10 cc warns about this.
18285
18286 2010-10-13  Eric Blake  <eblake@redhat.com>
18287
18288         termios: fix compilation on mingw
18289         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
18290         (gl_TERMIOS_H): Adjust it on mingw.
18291         * modules/termios (Makefile.am): Substitute new key.
18292         * lib/termios.in.h (includes): Make include_next conditional.
18293         * doc/posix-headers/termios.texi (termios.h): Update
18294         documentation.
18295         Reported by Daniel P. Berrange.
18296
18297 2010-10-13  Jim Meyering  <meyering@redhat.com>
18298
18299         git-version-gen: don't require that .git/ be in the current dir
18300         * build-aux/git-version-gen: Adjust this script so that it works
18301         when run from any working directory beneath the top-level .git/-
18302         containing directory.  Inspired by a patch from Giuseppe Scrivano,
18303         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
18304
18305         test-select: avoid warn_unused_result warnings
18306         * tests/test-select.c: Include "macros.h".
18307         ASSERT that each call to read, write, and pipe succeeds.
18308         While not technically required, also check each "close".
18309         * modules/select-tests (Files): Add tests/macros.h.
18310
18311         test-symlinkat: remove declaration of unused local
18312         * tests/test-symlinkat.c (main): Remove unused local, "buf".
18313
18314         test-inttostr: avoid shadowing warnings
18315         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
18316         and use malloc rather than the stack for the same reason as
18317         mentioned in the comment justifying the other allocation.
18318
18319 2010-10-11  Bruno Haible  <bruno@clisp.org>
18320
18321         stdlib: Allow multiple gnulib generated replacements to coexist.
18322         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
18323         Reported by Sam Steingold <sds@gnu.org>.
18324
18325 2010-10-11  Jim Meyering  <meyering@redhat.com>
18326
18327         fix a documentation typo
18328         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
18329
18330 2010-10-11  Eric Blake  <eblake@redhat.com>
18331
18332         futimens: work around Solaris 11 bug
18333         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
18334         * tests/test-futimens.h (test_futimens): Enhance, rather than
18335         weaken test.
18336         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18337
18338 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18339
18340         Indentation.
18341         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
18342         higher-level operators more to the left.
18343
18344 2010-10-11  Jim Meyering  <meyering@redhat.com>
18345
18346         test-futimens: avoid unwarranted test failure on Solaris 5.11
18347         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18348         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18349         because it tries to dereference the NULL name argument.
18350
18351 2010-10-11  Bruno Haible  <bruno@clisp.org>
18352
18353         Indentation.
18354         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18355         indentation.
18356
18357 2010-10-11  Jim Meyering  <meyering@redhat.com>
18358
18359         spawn.in.h: make indentation consistent with parentheses
18360         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18361         Make indentation consistent with parentheses.
18362
18363 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18364
18365         Fix mismatched parens in previous commit
18366         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18367         parens.
18368
18369 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18370
18371         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18372
18373         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18374         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
18375         * lib/malloca.c: Include "verify.h".
18376         (verify1): Remove, replacing with a verify call.
18377         * lib/relocwrapper.c (verify1): Likewise.
18378         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
18379         Likewise.
18380         * modules/malloca (Depends-on): Add 'verify'.
18381         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
18382         * modules/vasnprintf (Depends-on): Add 'verify'.
18383         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18384         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18385         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18386         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18387         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18388         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18389         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18390
18391         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
18392
18393         Formerly the style was sometimes 2*X - 1, because the C standard
18394         was wrongly thought to disallow ?: in integral constant expressions.
18395         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
18396         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
18397         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18398         * lib/stdint.in.h (_verify_intmax_size): Likewise.
18399         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
18400         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
18401         verify that time_t cannot be floating.
18402
18403 2010-10-08  Eric Blake  <eblake@redhat.com>
18404
18405         time: enforce recent POSIX ruling that time_t is integral
18406         * lib/time.in.h (__time_t_must_be_integral): Detect any
18407         problematic systems, allowing the rest of gnulib to assume POSIX.
18408
18409 2010-10-08  Jim Meyering  <meyering@redhat.com>
18410
18411         fdopendir: fix a bug on systems lacking openat and /proc support
18412         OpenBSD 4.7 is one such system.  The most noticeable effect was
18413         failure of any application making nontrivial use of fts: rm, du,
18414         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18415           ./rm: traversal failed: `a': Bad file descriptor
18416         Debugging that, you see that even though FD 6 was closed just
18417         prior to the opendir call in fd_clone_opendir, its resulting
18418         dir->dd_fd was 8, rather than the expected value of 6:
18419
18420         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
18421         93                close (fd);
18422         (gdb) n
18423         94                dir = fd_clone_opendir (dupfd);
18424         (gdb) n
18425         95                saved_errno = errno;
18426         (gdb) p dir->dd_fd
18427         $11 = 8
18428
18429         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
18430         The problem is that on OpenBSD, fd_clone_opendir has to resort
18431         to using the old-style save/restore CWD mechanism, due to its
18432         lack of openat/proc support, and *that* would steal the FD (6)
18433         that opendir was supposed to use.
18434
18435         The fix is to squirrel away the desired FD so that save_cwd uses a
18436         different one, and then free the dest FD right before calling opendir.
18437         That guarantees opendir will use the required file descriptor.
18438
18439         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
18440
18441 2010-10-08  Bruno Haible  <bruno@clisp.org>
18442
18443         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
18444         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
18445
18446 2010-10-08  Bruno Haible  <bruno@clisp.org>
18447
18448         nanosleep: Make replacement POSIX compliant.
18449         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
18450         is out of range.
18451         Reported by Jim Meyering.
18452
18453 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18454
18455         bootstrap: add hook for altering gnulib.mk, for Bison
18456         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
18457         the Bison bootstrapping process can rewrite file names and variables
18458         in this file before later parts of 'bootstrap' use the file.
18459         Bison wants to include lib/gnulib.mk from the top-level makefile,
18460         so it needs the file names in this file to be relative to the top
18461         level, not relative to lib; plus it needs variable names to be
18462         rewritten.
18463         (slurp): Use the new function.
18464
18465         bootstrap: reformat for readability
18466         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
18467
18468 2010-10-08  Eric Blake  <eblake@redhat.com>
18469
18470         docs: update cygwin progress
18471         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
18472         1.7.7.
18473         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
18474         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
18475         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
18476         * doc/posix-functions/carg.texi (carg): Likewise.
18477         * doc/posix-functions/cargf.texi (cargf): Likewise.
18478         * doc/posix-functions/casin.texi (casin): Likewise.
18479         * doc/posix-functions/casinf.texi (casinf): Likewise.
18480         * doc/posix-functions/casinh.texi (casinh): Likewise.
18481         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
18482         * doc/posix-functions/catan.texi (catan): Likewise.
18483         * doc/posix-functions/catanf.texi (catanf): Likewise.
18484         * doc/posix-functions/catanh.texi (catanh): Likewise.
18485         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
18486         * doc/posix-functions/ccos.texi (ccos): Likewise.
18487         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
18488         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
18489         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
18490         * doc/posix-functions/cexp.texi (cexp): Likewise.
18491         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
18492         * doc/posix-functions/cimag.texi (cimag): Likewise.
18493         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
18494         * doc/posix-functions/clog.texi (clog): Likewise.
18495         * doc/posix-functions/clogf.texi (clogf): Likewise.
18496         * doc/posix-functions/conj.texi (conj): Likewise.
18497         * doc/posix-functions/conjf.texi (conjf): Likewise.
18498         * doc/posix-functions/cpow.texi (cpow): Likewise.
18499         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
18500         * doc/posix-functions/cproj.texi (cproj): Likewise.
18501         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
18502         * doc/posix-functions/creal.texi (creal): Likewise.
18503         * doc/posix-functions/crealf.texi (crealf): Likewise.
18504         * doc/posix-functions/csin.texi (csin): Likewise.
18505         * doc/posix-functions/csinf.texi (csinf): Likewise.
18506         * doc/posix-functions/csinh.texi (csinh): Likewise.
18507         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
18508         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
18509         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
18510         * doc/posix-functions/ctan.texi (ctan): Likewise.
18511         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
18512         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
18513         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
18514         * doc/posix-headers/complex.texi (complex.h): Likewise.
18515
18516 2010-10-07  Jim Meyering  <meyering@redhat.com>
18517
18518         parse-datetime: avoid compilation failure on OpenBSD 4.7
18519         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
18520         This works around a compilation failure on OpenBSD 4.7:
18521         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
18522
18523 2010-10-07  Eric Blake  <eblake@redhat.com>
18524
18525         docs: update cygwin progress
18526         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
18527         1.7.6.
18528         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18529         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
18530         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
18531         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
18532         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
18533         Likewise.
18534         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
18535         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
18536         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
18537         Likewise.
18538         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
18539         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
18540         Likewise.
18541         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
18542         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
18543         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
18544         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
18545         Likewise.
18546         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
18547         Likewise.
18548         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
18549
18550         docs: update parse-datetime history
18551         * doc/parse-datetime.texi (Authors of parse_datetime): Better
18552         documentation of this function's history and alternatives.
18553
18554         cygwin: use more robust version check
18555         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
18556         exclude an eventual cygwin 1.9.1.
18557         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18558         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18559         (gl_FUNC_STRCASESTR): Likewise.
18560         Reported by Bruno Haible.
18561
18562 2010-10-06  Bruno Haible  <bruno@clisp.org>
18563
18564         string, sys_select: Avoid #including large headers unless necessary.
18565         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
18566         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
18567         OSF/1, BeOS, Haiku.
18568         Reported by Jim Meyering.
18569
18570 2010-10-05  Eric Blake  <eblake@redhat.com>
18571
18572         memmem, strstr, strcasestr: fix bug with long periodic needle
18573         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
18574         periodic needle having false positive.
18575         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
18576         and cygwin 1.7.7.
18577         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
18578         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18579         (gl_FUNC_STRCASESTR): Likewise.
18580         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18581         * tests/test-memmem.c (main): Expose the bug.
18582         * tests/test-strcasestr.c (main): Likewise.
18583         * tests/test-strstr.c (main): Likewise.
18584         * tests/test-c-strcasestr.c (main): Likewise.
18585         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
18586         * doc/posix-functions/strstr.texi (strstr): Likewise.
18587         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18588         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
18589
18590 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18591
18592         parse-datetime: do some more renaming
18593         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
18594         parse_datetime, not get_date.  Mention the renaming.
18595         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
18596         in comments.
18597         * m4/bison.m4: Likewise.
18598
18599 2010-10-05  Eric Blake  <eblake@redhat.com>
18600
18601         parse-datetime: better name than get_date
18602         * NEWS: Reword the deprecation notice.
18603         * modules/get_date: Rename to modules/parse-datetime.
18604         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
18605         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
18606         * lib/get_date.y: Rename to lib/parse-datetime.y.
18607         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
18608         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
18609         * doc/getdate.texi: Provide fallback wrapper.
18610         * lib/getdate.h: Move guts, and wrap...
18611         * lib/parse-datetime.h: ...new file.
18612         * lib/parse-datetime.y (get_date): Rename...
18613         (parse_datetime): ...to this.
18614         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
18615         (gl_PARSE_DATETIME): ...to this.
18616         * doc/posix-functions/getdate.texi (get_date): Provide fallback
18617         documentation.
18618         * modules/getdate (Files): Provide fallback docs and header.
18619         (Notice, Depends-on): Update references.
18620         * tests/test-parse-datetime.c: Likewise.
18621         * DEPENDENCIES: Likewise.
18622         * MODULES.html.sh (Date and time <time.h>): Likewise.
18623         * doc/parse-datetime.texi (Date input formats)
18624         (Authors of parse_datetime): Likewise.
18625         * modules/parse-datetime (Files, configure.ac, Makefile.am)
18626         (Include): Likewise.
18627         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
18628         * gnulib-tool: Likewise.
18629         * m4/bison.m4 (gl_BISON): Likewise.
18630         Suggested by Bruno Haible.
18631
18632 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18633
18634         more ports to Solaris tr, which needs [] around ranges
18635         * gnulib-tool: Solaris tr needs [] around ranges.
18636         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18637         * tests/test-pipe-filter-gi1.c (main): Likewise.
18638         * tests/test-pipe-filter-ii1.c (main): Likewise.
18639
18640 2010-10-05  Eric Blake  <eblake@redhat.com>
18641
18642         bootstrap: fix Solaris regression
18643         * build-aux/bootstrap (check_versions): Solaris tr still needs []
18644         around ranges.
18645         Reported by Pádraig Brady.
18646
18647         bootstrap: work with pkg-config
18648         * build-aux/bootstrap (check_versions): Also transliterate - in
18649         prerequisite name.
18650         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
18651         prerequisites that were already found, to avoid confusion.
18652         Reported by Justin Clift.
18653
18654         faccessat: remove unused wrappers
18655         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
18656         presence of these wrappers dragged in -lgen on Solaris.
18657         Reported by Clemens Brogi; fix suggested by Paul Eggert.
18658
18659 2010-10-05  Jim Meyering  <meyering@redhat.com>
18660
18661         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
18662         * Makefile (sc_pragma_columns): New syntax-check rule.
18663
18664 2010-10-04  Bruno Haible  <bruno@clisp.org>
18665
18666         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
18667         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
18668         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
18669         Reported by Bruce Korb and Eric Blake.
18670
18671 2010-10-04  Bruno Haible  <bruno@clisp.org>
18672
18673         threadlib: Make option --with-libpth-prefix work.
18674         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
18675         use $LIBPTH, not just -lpth.
18676
18677 2010-10-04  Bruno Haible  <bruno@clisp.org>
18678
18679         Avoid line length limitation from HP NonStop system header files.
18680         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
18681         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
18682         * lib/ctype.in.h: Likewise.
18683         * lib/dirent.in.h: Likewise.
18684         * lib/errno.in.h: Likewise.
18685         * lib/fcntl.in.h: Likewise.
18686         * lib/float.in.h: Likewise.
18687         * lib/getopt.in.h: Likewise.
18688         * lib/iconv.in.h: Likewise.
18689         * lib/inttypes.in.h: Likewise.
18690         * lib/langinfo.in.h: Likewise.
18691         * lib/locale.in.h: Likewise.
18692         * lib/math.in.h: Likewise.
18693         * lib/netdb.in.h: Likewise.
18694         * lib/netinet_in.in.h: Likewise.
18695         * lib/poll.in.h: Likewise.
18696         * lib/pthread.in.h: Likewise.
18697         * lib/pty.in.h: Likewise.
18698         * lib/sched.in.h: Likewise.
18699         * lib/se-selinux.in.h: Likewise.
18700         * lib/search.in.h: Likewise.
18701         * lib/signal.in.h: Likewise.
18702         * lib/spawn.in.h: Likewise.
18703         * lib/stdarg.in.h: Likewise.
18704         * lib/stddef.in.h: Likewise.
18705         * lib/stdint.in.h: Likewise.
18706         * lib/stdio.in.h: Likewise.
18707         * lib/stdlib.in.h: Likewise.
18708         * lib/string.in.h: Likewise.
18709         * lib/strings.in.h: Likewise.
18710         * lib/sys_file.in.h: Likewise.
18711         * lib/sys_ioctl.in.h: Likewise.
18712         * lib/sys_select.in.h: Likewise.
18713         * lib/sys_socket.in.h: Likewise.
18714         * lib/sys_stat.in.h: Likewise.
18715         * lib/sys_time.in.h: Likewise.
18716         * lib/sys_times.in.h: Likewise.
18717         * lib/sys_utsname.in.h: Likewise.
18718         * lib/sys_wait.in.h: Likewise.
18719         * lib/sysexits.in.h: Likewise.
18720         * lib/termios.in.h: Likewise.
18721         * lib/time.in.h: Likewise.
18722         * lib/unistd.in.h: Likewise.
18723         * lib/wchar.in.h: Likewise.
18724         * lib/wctype.in.h: Likewise.
18725         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
18726         * modules/ctype (Makefile.am): Likewise.
18727         * modules/dirent (Makefile.am): Likewise.
18728         * modules/errno (Makefile.am): Likewise.
18729         * modules/fcntl-h (Makefile.am): Likewise.
18730         * modules/float (Makefile.am): Likewise.
18731         * modules/getopt-posix (Makefile.am): Likewise.
18732         * modules/iconv-h (Makefile.am): Likewise.
18733         * modules/inttypes (Makefile.am): Likewise.
18734         * modules/langinfo (Makefile.am): Likewise.
18735         * modules/locale (Makefile.am): Likewise.
18736         * modules/math (Makefile.am): Likewise.
18737         * modules/netdb (Makefile.am): Likewise.
18738         * modules/netinet_in (Makefile.am): Likewise.
18739         * modules/poll-h (Makefile.am): Likewise.
18740         * modules/pthread (Makefile.am): Likewise.
18741         * modules/pty (Makefile.am): Likewise.
18742         * modules/sched (Makefile.am): Likewise.
18743         * modules/search (Makefile.am): Likewise.
18744         * modules/selinux-h (Makefile.am): Likewise.
18745         * modules/signal (Makefile.am): Likewise.
18746         * modules/spawn (Makefile.am): Likewise.
18747         * modules/stdarg (Makefile.am): Likewise.
18748         * modules/stddef (Makefile.am): Likewise.
18749         * modules/stdint (Makefile.am): Likewise.
18750         * modules/stdio (Makefile.am): Likewise.
18751         * modules/stdlib (Makefile.am): Likewise.
18752         * modules/string (Makefile.am): Likewise.
18753         * modules/strings (Makefile.am): Likewise.
18754         * modules/sys_file (Makefile.am): Likewise.
18755         * modules/sys_ioctl (Makefile.am): Likewise.
18756         * modules/sys_select (Makefile.am): Likewise.
18757         * modules/sys_socket (Makefile.am): Likewise.
18758         * modules/sys_stat (Makefile.am): Likewise.
18759         * modules/sys_time (Makefile.am): Likewise.
18760         * modules/sys_times (Makefile.am): Likewise.
18761         * modules/sys_utsname (Makefile.am): Likewise.
18762         * modules/sys_wait (Makefile.am): Likewise.
18763         * modules/sysexits (Makefile.am): Likewise.
18764         * modules/termios (Makefile.am): Likewise.
18765         * modules/time (Makefile.am): Likewise.
18766         * modules/unistd (Makefile.am): Likewise.
18767         * modules/wchar (Makefile.am): Likewise.
18768         * modules/wctype (Makefile.am): Likewise.
18769
18770 2010-10-04  Bruno Haible  <bruno@clisp.org>
18771
18772         read-file tests: Avoid a test failure on NonStop Kernel.
18773         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
18774         a regular file.
18775         Reported by Joachim Schmitz <schmitz@hp.com>.
18776
18777 2010-10-03  Bruno Haible  <bruno@clisp.org>
18778
18779         gnulib-tool: Fixes for --create-testdir with --libtool.
18780         * gnulib-tool (func_get_automake_snippet): Don't augment
18781         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
18782         an executable.
18783         (func_create_testdir): Handle module 'alloca' like func_import.
18784         Reported by Bruce Korb <bruce.korb@gmail.com>.
18785
18786 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
18787
18788         Avoid some lines longer than 80 characters.
18789         * lib/stdint.in.h: Break long comment lines.
18790         * lib/math.in.h: Likewise.
18791         (_GL_NUM_UINT_WORDS): New macro, for readability.
18792         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
18793         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
18794         * lib/stdlib.in.h: Likewise.
18795         * lib/spawn.in.h: Likewise.
18796         * lib/sys_socket.in.h: Update an URL.
18797         * lib/sys_stat.in.h: Break long line.
18798
18799 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
18800
18801         Improve pmccabe2html.
18802         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
18803         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
18804         when the sources change. Remove the line in the HTML about "Used
18805         ranges" (which implied that there might be other unused ranges),
18806         rename "Resume" to "Summary" (easier to understand for more users).
18807         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
18808         styles, and some unnecessary blank lines.
18809
18810 2010-10-03  Bruno Haible  <bruno@clisp.org>
18811             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
18812
18813         acl: Add support for ACLs on NonStop Kernel.
18814         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
18815         Check whether the function aclsort() exists.
18816         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
18817         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
18818         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18819         (acl_nontrivial [HAVE_ACLSORT]: New function.
18820         (file_has_acl): Implement for NonStop Kernel.
18821         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18822         (qset_acl): Implement for NonStop Kernel.
18823         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
18824         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18825         (main): Implement for NonStop Kernel.
18826         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
18827         Kernel. Handle this flavor.
18828         * tests/test-set-mode-acl.sh: Likewise.
18829         * tests/test-copy-acl.sh: Likewise.
18830         * tests/test-copy-file.sh: Likewise.
18831
18832 2010-10-03  Bruno Haible  <bruno@clisp.org>
18833
18834         Info about ACLs on NonStop Kernel.
18835         * doc/acl-resources.txt: Add info about NonStop Kernel.
18836         References by Joachim Schmitz <schmitz@hp.com>.
18837
18838 2010-10-02  Bruno Haible  <bruno@clisp.org>
18839
18840         Define missing EDQUOT on NonStop Kernel.
18841         * lib/errno.in.h (EDQUOT): Assign a value if missing.
18842         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
18843         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
18844         missing.
18845         * doc/posix-headers/errno.texi: Mention the NSK bug.
18846         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
18847         Reported by Joachim Schmitz <schmitz@hp.com>.
18848
18849 2010-10-02  Bruno Haible  <bruno@clisp.org>
18850
18851         Update doc for POSIX:2008.
18852         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
18853         Update URL of POSIX specification.
18854
18855 2010-10-02  Bruno Haible  <bruno@clisp.org>
18856
18857         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
18858         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
18859         from gnulib, not from Automake.
18860
18861 2010-10-02  Bruno Haible  <bruno@clisp.org>
18862
18863         New module 'system-posix'.
18864         * modules/system-posix: New file.
18865         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
18866         module is present.
18867         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18868         GNULIB_SYSTEM_POSIX.
18869         * modules/stdlib (Depends-on): Remove sys_wait.
18870         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
18871         * doc/posix-functions/system.texi: Mention the new module.
18872         * doc/posix-headers/stdlib.texi: Likewise.
18873         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
18874         define test_sys_wait_macros to a no-op.
18875         Reported by Sam Steingold <sds@gnu.org>.
18876
18877 2010-09-30  Bruno Haible  <bruno@clisp.org>
18878
18879         More renaming from 'getdate' to 'get_date'.
18880         * doc/get_date.texi: Renamed from doc/getdate.texi.
18881         * modules/get_date (Files): Update.
18882         * MODULES.html.sh (Date and time <time.h>): Update.
18883         * DEPENDENCIES: Update.
18884         * gnulib-tool: Update comment.
18885         * m4/bison.m4 (gl_BISON): Likewise.
18886         * m4/get_date.m4 (gl_GET_DATE): Likewise.
18887
18888 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
18889
18890         bootstrap: support ACLOCAL_FLAGS during aclocal
18891         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
18892         can add additional -I dir for third-party .m4 files.
18893
18894 2010-09-30  Eric Blake  <eblake@redhat.com>
18895
18896         bootstrap: use glibtoolize on MacOS
18897         * build-aux/bootstrap (check_versions): Convert libtool into
18898         libtoolize.
18899         (tool search): Move libtool check earlier, and look for
18900         glibtoolize for MacOS.
18901         (gnulib_tool_options): Auto-add --libtool when appropriate.
18902         Reported by Justin Clift.
18903
18904         poll: fix typo that broke test on MacOS
18905         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
18906         Reported by Justin Clift.
18907
18908         getdate: rename to get_date
18909         Note: getdate.h is not renamed, to minimize client impact.
18910         * modules/getdate: Mark obsolete.  Move old contents...
18911         * modules/get_date: ...to new module name.
18912         * modules/getdate-tests: Move...
18913         * modules/get_date-tests: ...here.
18914         * m4/getdate.m4: Move...
18915         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
18916         * lib/getdate.y: Move...
18917         * lib/get_date.y: ...here.
18918         * tests/test-getdate.c: Move...
18919         * tests/test-get_date.c: ...here.
18920         * doc/posix-functions/getdate.texi (getdate): Update name.
18921         * NEWS: Mention the change.
18922
18923 2010-09-29  Bruno Haible  <bruno@clisp.org>
18924
18925         Separate the module 'waitpid' from the module 'sys_wait'.
18926         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
18927         present.
18928         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
18929         gl_MODULE_INDICATOR_FOR_TESTS.
18930         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
18931         * modules/sys_wait (Depends-on): Remove waitpid.
18932         (Makefile.am): Substitute GNULIB_WAITPID.
18933         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
18934         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
18935         signature only if the 'waitpid' module is present.
18936         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
18937         * NEWS: Mention the change.
18938         * modules/grantpt (Depends-on): Add waitpid.
18939         * modules/wait-process (Depends-on): Likewise.
18940
18941 2010-09-29  Bruno Haible  <bruno@clisp.org>
18942
18943         More tests for module 'sys_wait'.
18944         * modules/sys_wait-c++-tests: New file.
18945         * tests/test-sys_wait-c++.cc: New file.
18946         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
18947         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18948
18949 2010-09-29  Bruno Haible  <bruno@clisp.org>
18950
18951         New module 'waitpid'.
18952         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
18953         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
18954         Don't include <process.h>.
18955         (waitpid): Declare only, using modern idiom.
18956         * m4/waitpid.m4: New file.
18957         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
18958         * modules/waitpid: New file.
18959         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
18960         (Makefile.am): Update.
18961         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18962
18963 2010-09-28  Bruno Haible  <bruno@clisp.org>
18964
18965         poll: Assume ANSI C.
18966         * lib/poll.c (poll): Use an ANSI C declaration.
18967
18968 2010-09-28  Bruno Haible  <bruno@clisp.org>
18969
18970         poll-h: Create poll.h on all platforms.
18971         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
18972         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
18973         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
18974         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
18975         (gl_REPLACE_POLL_H): Don't set POLL_H.
18976         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
18977         * modules/poll-h (Depends-on): Add include_next.
18978         (Makefile.am): Create poll.h unconditionally. Substitute also
18979         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
18980
18981 2010-09-28  Bruno Haible  <bruno@clisp.org>
18982
18983         Tests for module 'poll-h'.
18984         * modules/poll-h-c++-tests: New file.
18985         * tests/test-poll-h-c++.cc: New file.
18986
18987         Tests for module 'poll-h'.
18988         * modules/poll-h-tests: New file.
18989         * tests/test-poll-h.c: New file.
18990
18991 2010-09-28  Bruno Haible  <bruno@clisp.org>
18992
18993         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
18994         * modules/poll-h (Depends-on): Add 'extensions'.
18995
18996 2010-09-28  Bruno Haible  <bruno@clisp.org>
18997
18998         New module 'poll-h'.
18999         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19000         (poll): Use modern idiom.
19001         * modules/poll-h: New file.
19002         * modules/poll (Files): Remove lib/poll.in.h.
19003         (Depends-on): Add poll-h.
19004         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19005         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19006         * m4/poll_h.m4: New file.
19007         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19008         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19009         and invoke gl_REPLACE_POLL_H.
19010         * lib/poll.c: Use common idiom.
19011         * tests/test-poll.c: Likewise.
19012         * doc/posix-headers/poll.texi: Mention the poll-h module.
19013         Suggested by Eric Blake.
19014
19015 2010-09-26  Bruno Haible  <bruno@clisp.org>
19016
19017         sys_wait: Implement WSTOPSIG.
19018         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19019         Reported by Simon Josefsson.
19020
19021 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19022
19023         stdlib, sys_wait: Avoid compilation error on mingw.
19024         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19025
19026 2010-09-26  Bruno Haible  <bruno@clisp.org>
19027
19028         stdlib tests: Avoid code duplication.
19029         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19030         * modules/sys_wait-tests (Files): Likewise.
19031         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19032         * tests/test-stdlib.c: Include test-sys_wait.h.
19033         (main): Invoke test_sys_wait_macros.
19034         * tests/test-sys_wait.c: Include test-sys_wait.h.
19035         (main): Invoke test_sys_wait_macros.
19036
19037 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19038
19039         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19040         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19041         sure Windows sockets are working before calling getaddrinfo.
19042         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19043         * doc/gnulib.texi (Windows sockets): Fix typo.
19044
19045 2010-09-25  Bruno Haible  <bruno@clisp.org>
19046
19047         Tests for module 'regex-quote'.
19048         * modules/regex-quote-tests: New file.
19049         * tests/test-regex-quote.c: New file.
19050
19051         New module 'regex-quote'.
19052         * lib/regex-quote.h: New file.
19053         * lib/regex-quote.c: New file.
19054         * modules/regex-quote: New file.
19055         Suggested by Reuben Thomas <rrt@sc3d.org>.
19056
19057 2010-09-24  Bruno Haible  <bruno@clisp.org>
19058
19059         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19060         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19061
19062 2010-09-23  Bruno Haible  <bruno@clisp.org>
19063
19064         setenv: Relax license.
19065         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19066         Blake.
19067         Requested by Eric Blake.
19068
19069 2010-09-22  Bruno Haible  <bruno@clisp.org>
19070
19071         termios: Relax license.
19072         * modules/termios (License): Change to LGPLv2+.
19073         Requested by Eric Blake.
19074
19075 2010-09-22  Bruno Haible  <bruno@clisp.org>
19076
19077         threadlib: Allow the package to change the default to 'no'.
19078         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19079         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19080         Reported by Paul Eggert.
19081
19082 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19083             Bruno Haible  <bruno@clisp.org>
19084
19085         Fix endless loop in mbmemcasecoll.
19086         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19087         byte.
19088         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19089
19090 2010-09-22  Bruno Haible  <bruno@clisp.org>
19091
19092         Tests for module 'memcoll'.
19093         * modules/memcoll-tests: New file.
19094         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19095
19096         memcoll, xmemcoll: Clarify size vs. length.
19097         * modules/memcoll.c (memcoll0): Clarify specification.
19098         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19099         passed to collate_error.
19100
19101 2010-09-22  Bruno Haible  <bruno@clisp.org>
19102
19103         Tests for module 'memcasecmp'.
19104         * modules/memcasecmp-tests: New file.
19105         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19106
19107 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19108
19109         * lib/pthread.in.h: Add split double-inclusion guard, and include
19110         system <pthread.h> if there is one.  Use @@-style as in other
19111         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19112         pthread.h doesn't.
19113         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19114         (pthread_mutexattr_settype, pthread_mutex_trylock):
19115         New static inline functions, if there's no system <pthread.h>.
19116         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19117         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19118         Approximate with mutexes if the system lacks spinlocks, as in
19119         MacOS.
19120         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19121         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19122         @@-style.  Check for spinlocks separately.
19123         (gl_PTHREAD_DEFAULTS): New macro.
19124         * modules/pthread: Redo to use a more typical style for in.h files.
19125
19126 2010-09-21  Eric Blake  <eblake@redhat.com>
19127
19128         net_if: enhance tests
19129         * tests/test-net_if.c (main): Move signature checks earlier.
19130         Print failures to stderr.
19131         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19132         Document the bug that we do not yet fix.
19133
19134 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19135
19136         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19137         about gnulib, not GSS.
19138
19139 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19140
19141         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19142         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19143         for Emacs.
19144         * build-aux/pmccabe2html: Make Makefile.am example code more
19145         cut-and-paste friendly.
19146
19147 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19148
19149         * tests/test-net_if.c: New file.
19150         * modules/net_if-tests: New file.
19151
19152 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19153
19154         pthread: add pthread_spin_destroy
19155         * lib/pthread.in.h (pthread_spin_destroy): New function.
19156
19157 2010-09-19  Bruno Haible  <bruno@clisp.org>
19158
19159         gnulib-tool: Fix --help output.
19160         * gnulib-tool (func_usage): Fix help message.
19161         Reported by Reuben Thomas <rrt@sc3d.org>.
19162
19163 2010-09-18  Jim Meyering  <meyering@redhat.com>
19164
19165         maint.mk: avoid unexpanded \n in two diagnostics
19166         * top/maint.mk (sc_prohibit_always_true_header_tests):
19167         Don't use a literal \n in a halt=... assignment.  It would not be
19168         expanded, and the two \n bytes would appear in the diagnostic output
19169         rather than the desired newline.  Use halt=$$(printf ... instead.
19170         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19171
19172 2010-09-18  Bruno Haible  <bruno@clisp.org>
19173
19174         netinet_in: Doc tweak.
19175         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19176         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19177
19178 2010-09-18  Jim Meyering  <meyering@redhat.com>
19179
19180         init.sh: correct an outdated comment
19181         * tests/init.sh (create_exe_shims_):  s/function/alias/
19182
19183         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19184         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19185         a file named "*.exe" is removed between the glob expansion and the
19186         processing of that oddly named file.
19187
19188 2010-09-17  Eric Blake  <eblake@redhat.com>
19189
19190         mirbsd: add some more support
19191         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19192         in BSD family.
19193         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19194         devices as OpenBSD.
19195         * m4/host-os.m4 (mirbsd): Add MirBSD.
19196
19197         tests: fix unportable assumption on sys/wait.h
19198         * tests/test-sys_wait.c (main): Relax test.
19199         * tests/test-stdlib.c (main): Likewise.
19200
19201         init.sh: accomodate directory with no .exes
19202         * tests/init.sh: Accomodate directory containing only scripts.
19203
19204         tests: avoid compiler warning
19205         * tests/test-stdlib.c (main): Use the variable.
19206
19207         fdutimens, fdutimensat: update signature, again
19208         * lib/utimens.h (gl_futimens): Delete, and move signature...
19209         (fdutimens): ...here.
19210         (fdutimensat): Rearrange signature.
19211         (lutimensat): Rename variable for clarity.
19212         * lib/fdutimensat.c (fdutimensat): Update signature.
19213         * lib/utimens.c (fdutimens): Likewise.
19214         (gl_futimens): Delete.
19215         (utimens, lutimens): Update callers.
19216         * lib/futimens.c (futimens): Likewise.
19217         * tests/test-fdutimensat.c: Likewise.
19218         * tests/test-utimens.c: Likewise.
19219         * tests/test-futimens.h: Update comment.
19220         * NEWS: Mention this.
19221         Suggested by Paul Eggert.
19222
19223 2010-09-17  Bruno Haible  <bruno@clisp.org>
19224
19225         Take over the maintenance of some older macros from Autoconf.
19226         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19227         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19228         GNU Autoconf.
19229         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19230         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19231
19232 2010-09-17  Eric Blake  <eblake@redhat.com>
19233
19234         fdutimensat: drop atflag validation
19235         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19236         with valid fd, to close a race scenario where futimens is
19237         unsupported and FILE was replaced by a symlink.
19238         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19239         accordingly.
19240         Suggested by Paul Eggert.
19241
19242 2010-09-16  Bruno Haible  <bruno@clisp.org>
19243
19244         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
19245         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
19246
19247 2010-09-16  Bruno Haible  <bruno@clisp.org>
19248
19249         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19250         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
19251         login_tty exists.
19252         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19253
19254 2010-09-16  Bruno Haible  <bruno@clisp.org>
19255
19256         login_tty: Make the replacement code work on BSD systems.
19257         * lib/login_tty.c: Include <sys/ioctl.h>.
19258         (login_tty): Use ioctl TIOCSCTTY when available.
19259         * modules/login_tty (Depends-on): Add sys_ioctl.
19260         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19261
19262 2010-09-16  Bruno Haible  <bruno@clisp.org>
19263
19264         login_tty: Stricter unit test.
19265         * modules/login_tty-tests (Depends-on): Add tcgetsid.
19266         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
19267         and tcgetsid() after login_tty.
19268         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19269
19270 2010-09-16  Bruno Haible  <bruno@clisp.org>
19271
19272         New module 'tcgetsid'.
19273         * lib/tcgetsid.c: New file.
19274         * m4/tcgetsid.m4: New file.
19275         * modules/tcgetsid: New file.
19276         * modules/termios (Depends-on): Add c++defs, warn-on-use.
19277         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
19278         GNULIB_TCGETSID, HAVE_TCGETSID.
19279         * lib/termios.in.h: Include <sys/types.h>.
19280         (tcgetsid): New declaration.
19281         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
19282         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
19283         * doc/posix-functions/tcgetsid.texi: Mention the new module.
19284         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
19285
19286 2010-09-16  Bruno Haible  <bruno@clisp.org>
19287
19288         Tests for module 'termios'.
19289         * modules/termios-c++-tests: New file.
19290         * modules/termios-tests: New file.
19291         * tests/test-termios-c++.cc: New file.
19292         * tests/test-termios.c: New file.
19293
19294         New module 'termios'.
19295         * modules/termios: New file.
19296         * lib/termios.in.h: New file.
19297         * m4/termios_h.m4: New file.
19298         * doc/posix-headers/termios.texi: Mention the new module.
19299
19300 2010-09-16  Eric Blake  <eblake@redhat.com>
19301
19302         fdutimensat: add an atflag parameter
19303         * lib/fdutimensat.c (fdutimensat): Add new parameter.
19304         * lib/utimens.h (fdutimensat): Update prototype.
19305         * tests/test-fdutimensat.c: Adjust test to match.
19306         * NEWS: Document the change.
19307         Suggested by Paul Eggert.
19308
19309 2010-09-16  Bruno Haible  <bruno@clisp.org>
19310
19311         Fix typos in comments.
19312         * lib/striconveh.h: Fix typo in comment.
19313         * lib/login_tty.c (login_tty): Likewise.
19314
19315 2010-09-15  Bruno Haible  <bruno@clisp.org>
19316
19317         stdlib: clarify MirBSD WEXITSTATUS bug
19318         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
19319         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19320
19321 2010-09-15  Eric Blake  <eblake@redhat.com>
19322
19323         stdlib: work around MirBSD WEXITSTATUS bug
19324         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
19325         * modules/stdlib (Depends-on): Add sys_wait.
19326         * tests/test-sys_wait.c (main): Enhance test.
19327         * tests/test-stdlib.c (main): Likewise.
19328         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
19329
19330         docs: mention MacOS issue with WEXITSTATUS(constant)
19331         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
19332         issue.
19333         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19334
19335         strnlen: add tests
19336         * modules/strnlen-tests: New file.
19337         * tests/test-strnlen.c: Likewise.
19338
19339 2010-09-14  Bruno Haible  <bruno@clisp.org>
19340
19341         unistr/base: Avoid link errors when module 'libunistring' is also used.
19342         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
19343         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19344         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19345         Declare also when HAVE_LIBUNISTRING is set.
19346         Reported by Pádraig Brady <P@draigbrady.com>.
19347
19348 2010-09-14  Eric Blake  <eblake@redhat.com>
19349
19350         test-rawmemchr: make more robust
19351         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19352         (Depends-on, configure.ac): Add needed prerequisites to use it.
19353         * modules/memchr-tests (Files, Depends-on, configure.ac):
19354         Likewise, to avoid implicit reliance on memchr module prereqs.
19355         * tests/test-memchr.c (main): Ensure proper masking.
19356         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19357         reads.
19358
19359         memchr: detect glibc Alpha bug
19360         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19361         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19362         Alpha.
19363         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19364         * tests/test-memchr.c (main): Enhance test.
19365         Reported by Nelson H. F. Beebe.
19366
19367 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19368
19369         fts, getcwd, glob: audit for dirfd returning -1
19370         * lib/fts.c (opendir): Remove #define; no longer used.
19371         (opendirat): New arg PDIR_FD.  All callers changed.
19372         (fts_build, _opendir2): Use new opendirat to avoid the need for
19373         dirfd, or for checking whether dirfd returns a negative value.
19374         Don't use opendir; always use openat followed by fdopendir.
19375         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
19376         it.
19377         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
19378         returns -1 here.
19379         * modules/fts (Depends-on): Remove dirfd.
19380         * modules/getcwd (Depends-on): Likewise.
19381
19382 2010-09-13  Eric Blake  <eblake@redhat.com>
19383
19384         float: fix broken MirBSD header
19385         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
19386         * doc/posix-headers/float.texi (float.h): Document it.
19387
19388 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19389
19390         fts: use O_NOFOLLOW to avoid race condition when opening a directory
19391         * lib/fts.c (opendirat): New arg extra_flags.
19392         (__opendir2): Use it to avoid following symlinks when opening
19393         a directory, if symlinks are not supposed to be followed.  See
19394         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
19395
19396         fdopendir: preserve argument fd before returning
19397         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
19398         (fdopendir_with_dup, fd_clone_opendir): New static functions.
19399         (fdopendir): Use them, arranging for FD to be open to the same
19400         directory that it was when it started.  (It might be temporarily
19401         closed while fdopendir is running, so this not thread- or
19402         signal-safe.)  Be careful to do the right thing even when file
19403         descriptors are scarce and dup fails with errno == EMFILE.  See
19404         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
19405
19406 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
19407
19408         regex: Pass the system regex if its only problem is 32-bit regoff_t.
19409         * NEWS: Document change.
19410         * m4/regex.m4: Disable test for regoff_t size.
19411
19412 2010-09-13  Jim Meyering  <meyering@redhat.com>
19413
19414         fts: don't operate on an invalid file descriptor after failed dup
19415         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19416         negative file descriptor.
19417
19418 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19419
19420         savedir: add streamsavedir, deprecate fdsavedir
19421         * NEWS: Mention deprecation of fdsavedir.
19422         * lib/savedir.c (streamsavedir): New extern function, whose name
19423         ends in "savedir" to be consistent with the others.  This differs
19424         from savedirstream in that it doesn't close its argument.  The
19425         next version of GNU tar will use this instead of fdsavedir, to
19426         avoid some race conditions and conserve file descriptors.
19427         (savedirstream): Reimplement as a wrapper around streamsavedir.
19428         (fdsavedir): Add a comment deprecating this function.  As far as
19429         I know, only GNU tar used it, and GNU tar doesn't need it any more.
19430         * lib/savedir.h (streamsavedir): New decl.
19431         (fdsavedir): Add a comment deprecating this.
19432
19433 2010-09-10  Bruno Haible  <bruno@clisp.org>
19434
19435         langinfo: Fix last commit.
19436         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
19437         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
19438         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19439
19440 2010-09-10  Bruno Haible  <bruno@clisp.org>
19441
19442         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
19443         * lib/progreloc.c (O_EXEC): Define fallback.
19444
19445 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19446
19447         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
19448         * NEWS: Document recent changes to fcntl-h.
19449         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
19450         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
19451         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
19452         Similarly for O_SEARCH; this last was already true, but not documented.
19453         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
19454         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
19455         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
19456         Likewise.
19457         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
19458         is zero, not whether it is defined.
19459         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
19460         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
19461         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
19462
19463 2010-09-10  Bruno Haible  <bruno@clisp.org>
19464
19465         langinfo, nl_langinfo: Fix for IRIX 5.3.
19466         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
19467         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
19468         HAVE_LANGINFO_YESEXPR.
19469         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
19470         HAVE_LANGINFO_YESEXPR.
19471         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
19472         HAVE_LANGINFO_T_FMT_AMPM is 0.
19473         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
19474         HAVE_LANGINFO_YESEXPR is 0.
19475         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
19476         NOEXPR.
19477         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
19478         * doc/posix-functions/nl_langinfo.texi: Likewise.
19479         Reported by Eric Blake.
19480
19481 2010-09-10  Bruno Haible  <bruno@clisp.org>
19482
19483         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
19484         * doc/glibc-functions/login_tty.texi: Mention the include file problem
19485         on FreeBSD 8.0 and OpenBSD 4.6.
19486         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
19487         * m4/pty_h.m4 (gl_PTY_H): Likewise.
19488         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
19489         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
19490         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
19491         ac_includes_default.
19492         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19493
19494 2010-09-09  Eric Blake  <eblake@redhat.com>
19495
19496         strsignal: work around NetBSD bug
19497         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
19498         * lib/string.in.h (includes): Likewise.
19499         * doc/posix-functions/strsignal.texi (strsignal): Document the
19500         bug.
19501         Reported by Nelson H. F. Beebe.
19502
19503         gnulib-tool: work with NetBSD /bin/sh
19504         * gnulib-tool (func_cache_var, func_cache_lookup_module)
19505         (func_get_description, func_get_comment, func_get_status)
19506         (func_get_notice, func_get_applicability, func_get_filelist)
19507         (func_get_dependencies, func_get_autoconf_early_snippet)
19508         (func_get_autoconf_snippet, func_get_automake_snippet)
19509         (func_get_include_directive, func_get_link_directive)
19510         (func_get_license, func_get_maintainer, func_import): Avoid
19511         shell syntax errors from parsing syntax extensions.
19512
19513 2010-09-09  Bruno Haible  <bruno@clisp.org>
19514
19515         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19516         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
19517         a reliable way to determine whether the 'alias' command works.
19518
19519 2010-09-08  Jim Meyering  <meyering@redhat.com>
19520
19521         init.sh: penalize a set-x-impaired shell; don't disqualify it
19522         * tests/init.sh: Too many shells corrupt application stderr when
19523         you set -x, so we can't afford to disqualify them, since at least
19524         on Irix-6.5, that would disqualify all bourne shells.
19525         Instead, use a two-pass approach.
19526         On the first pass, try to find a shell that meets the stricter
19527         condition that set -x does not corrupt stderr.
19528         If no shell meets the stricter condition, retest each candidate
19529         shell, but without that extra condition.  Finally, when
19530         VERBOSE=yes is requested and set -x might cause trouble, simply
19531         issue a warning and refrain from enabling debug output.
19532
19533 2010-09-08  Eric Blake  <eblake@redhat.com>
19534
19535         unsetenv: fix OpenBSD bug
19536         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
19537         * doc/posix-functions/unsetenv.texi (unsetenv): Update
19538         documentation.
19539         Reported by Jim Meyering.
19540
19541         strtod: work around IRIX 6.5 bug
19542         * lib/strtod.c (strtod): Reparse number on shorter string if
19543         exponent parse was invalid.
19544         * tests/test-strtod.c (main): Add check for "0x1p 2".
19545         Reported by Tom G. Christensen.
19546
19547         getopt: optimize previous patch
19548         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
19549         empty variable.  Speed up awk script.
19550         Reported by Paolo Bonzini.
19551
19552 2010-09-08  Jim Meyering  <meyering@redhat.com>
19553
19554         test.sh: disqualify shells for which set -x corrupts stderr
19555         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
19556         and OpenBSD 4.7.  They make it so with "set -x", environment settings
19557         appear in stderr output.  For example, this command:
19558             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
19559         prints "P=1" on those two systems:
19560
19561 2010-09-08  Bruno Haible  <bruno@clisp.org>
19562
19563         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19564         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
19565         commands, because some shells ignore redirections when there is an
19566         error in the command lookup.
19567         Reported by Eric Blake.
19568
19569 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
19570
19571         * lib/regex.h: Fix a mention of `regex_compile' (should be
19572         `re_compile_pattern').
19573         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
19574         (re_set_registers): Correct name of parameter in comment.
19575
19576         * doc/regex.texi: Add documentation for missing syntax flags.
19577         Remove commented-out documentation of defunct syntax option
19578         RE_NO_EMPTY_ALTS.
19579         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
19580         Add documentation of re_set_registers.
19581         Document trick to re-use a pattern buffer by setting fastmap manually.
19582         Update documentation of struct re_pattern_buffer per public members.
19583         Uncomment documentation of equivalence class operators and
19584         collating symbol operators, since they are now implemented,
19585         Explain leftmost-longest matching in relation to alternatives.
19586         Tidy documentation of substring matching.
19587         Remove POSIX documentation, which is done better in
19588         glibc, and refer the reader there. Keep BSD API documentation, as
19589         that is not readily available elsewhere.
19590
19591 2010-09-07  Eric Blake  <eblake@redhat.com>
19592
19593         getopt: handle POSIXLY_CORRECT set but not exported
19594         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
19595         export state of POSIXLY_CORRECT, due to bash set -o posix.
19596         Reported by Dustin J. Mitchell.
19597
19598 2010-09-05  Bruno Haible  <bruno@clisp.org>
19599
19600         gnulib-tool: Highlight the changed options.
19601         * gnulib-tool (func_usage): Display the --import, --add-import,
19602         --remove-import explanations in bold font.
19603
19604 2010-09-06  Karl Berry  <karl@gnu.org>
19605
19606         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
19607
19608 2010-09-05  Bruno Haible  <bruno@clisp.org>
19609
19610         uniwidth/width: Update comment.
19611         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
19612         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
19613
19614 2010-09-05  Bruno Haible  <bruno@clisp.org>
19615
19616         isinf, isnan: Relax license.
19617         * modules/isinf (License): Change from GPL to LGPL, with consent from
19618         Ben Pfaff.
19619         * modules/isnan (License): Likewise.
19620         Requested by Ludovic Courtès.
19621
19622 2010-09-04  Bruno Haible  <bruno@clisp.org>
19623
19624         gnulib-tool: Help migration from --import to --add-import or --update.
19625         * gnulib-tool: Emit a verbose error message when --import is used
19626         without any module name.
19627
19628 2010-09-04  Bruno Haible  <bruno@clisp.org>
19629
19630         Update doc about gnulib-tool.
19631         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
19632         'gnulib-tool --update' in more detail.
19633         Reported by Eric Blake.
19634
19635 2010-09-04  Bruno Haible  <bruno@clisp.org>
19636
19637         gnulib-tool: Change --import. New options --add/remove-import.
19638         * gnulib-tool: New options --add-import, --remove-import.
19639         (func_usage): Document them.
19640         (have_associative): Define always.
19641         (func_import): In import mode, don't merge the specified settings with
19642         the cached settings. Implement remove-import mode.
19643         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
19644         Explain when to use them versus --import.
19645         (Simple update): Use --add-import instead of --import.
19646         * NEWS: Mention the change.
19647
19648 2010-09-04  Bruno Haible  <bruno@clisp.org>
19649
19650         * doc/gnulib-tool.texi (Initial import): Update paragraph about
19651         separate gnulib.mk.
19652
19653 2010-09-04  Bruno Haible  <bruno@clisp.org>
19654
19655         gnulib-tool: Don't talk about CVS any more.
19656         * gnulib-tool (func_usage, func_import): Write "version control"
19657         instead of CVS.
19658
19659 2010-09-04  Jim Meyering  <meyering@redhat.com>
19660
19661         maint.mk: avoid obscure sc_copyright_check failure in coreutils
19662         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
19663         false positives (whose names may be ill-chosen) when searching
19664         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
19665         would cause a false-positive.
19666
19667         avoid coreutils "make distcheck" failure
19668         Coreutils tests with an absolute build directory name that contains
19669         a space.  Not quoting this directory name caused a failure.
19670         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
19671         * tests/test-vc-list-files-cvs.sh: Likewise.
19672
19673 2010-09-04  Bruno Haible  <bruno@clisp.org>
19674
19675         gnulib-tool: Avoid error when run in a package without Makefile.am.
19676         * gnulib-tool: When collecting the m4dirs in a package that does not
19677         have a Makefile.am, eliminate those directories that contain no
19678         gnulib-cache.m4. Fix expression that counts these directories.
19679
19680 2010-09-04  Bruno Haible  <bruno@clisp.org>
19681
19682         update-copyright test: Improve output when perl is missing or too old.
19683         * tests/test-update-copyright.sh: Move test of Perl version down after
19684         the test whether Perl exists. Provide an explanation relating Perl's
19685         error message to Automake's SKIP: message.
19686
19687 2010-09-04  Bruno Haible  <bruno@clisp.org>
19688
19689         Don't augment PATH in TESTS_ENVIRONMENT.
19690         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
19691         set abs_aux_dir instead of augmenting PATH.
19692         * modules/vc-list-files-tests (Makefile.am): Likewise.
19693         * tests/test-update-copyright.sh: Augment PATH here.
19694         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
19695         path_prepend_.
19696         * tests/test-vc-list-files-git.sh: Likewise.
19697
19698 2010-09-04  Jim Meyering  <meyering@redhat.com>
19699
19700         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
19701         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
19702
19703 2010-09-04  Bruno Haible  <bruno@clisp.org>
19704
19705         strdup: Fix compilation error in C++ mode.
19706         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
19707         the macro.
19708
19709 2010-09-04  Bruno Haible  <bruno@clisp.org>
19710
19711         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
19712         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
19713         macro into a function.
19714         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19715
19716 2010-09-04  Bruno Haible  <bruno@clisp.org>
19717
19718         Set PATH_SEPARATOR the same way autoconf does.
19719         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
19720         the value of PATH_SEPARATOR the same way autoconf-generated configure
19721         scripts do.
19722         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
19723         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19724
19725 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19726
19727         Set PATH_SEPARATOR the same way autoconf does.
19728         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
19729         the same way autoconf-generated configure scripts do.
19730         * posix-modules: Likewise.
19731
19732 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19733
19734         hash: fix safe_hasher const typo
19735         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
19736         const; otherwise, there is a type error later.
19737
19738 2010-09-02  Jim Meyering  <meyering@redhat.com>
19739
19740         test-update-copyright.sh: require perl 5.8.0
19741         * tests/test-update-copyright.sh: Require 5.8.0,
19742         which Tom G. Christensen has confirmed is adequate,
19743         while 5.6.1 is not.
19744
19745 2010-09-02  Eric Blake  <eblake@redhat.com>
19746
19747         tests: init.sh improvements for re-exec'ing with zsh
19748         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
19749         -vx through shell re-exec.
19750         Reported by Tom G. Christensen.
19751
19752         wctype: fix typo in previous commit
19753         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
19754         Reported by Ludovic Courtès.
19755
19756 2010-09-02  Jim Meyering  <meyering@redhat.com>
19757
19758         test-update-copyright.sh: skip test if Perl is too old
19759         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
19760         Reported by Tom G. Christensen.
19761
19762 2010-09-02  Bruno Haible  <bruno@clisp.org>
19763
19764         wctype: Avoid compilation error on IRIX 6.5.30.
19765         * lib/wctype.in.h (iswblank): Declare with a replacement if
19766         REPLACE_ISWBLANK is set.
19767         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
19768         declared. Set REPLACE_ISWBLANK.
19769         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
19770         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
19771         * doc/posix-headers/wctype.texi: Likewise.
19772         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19773
19774 2010-09-01  Bruno Haible  <bruno@clisp.org>
19775
19776         New module 'socketlib'.
19777         * modules/socketlib: New file.
19778         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
19779         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
19780         * modules/sockets (Depends-on): Add socketlib.
19781         Suggested by Sam Steingold <sds@gnu.org>.
19782
19783 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19784
19785         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
19786
19787         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
19788         when one needs search access to a directory but not read access.
19789         On systems where it is available, it works in some cases where
19790         O_RDONLY does not, namely on directories that are searchable but
19791         not readable, and which need only to be searchable.  If O_SEARCH
19792         is not available, fall back to the traditional method of using
19793         O_RDONLY.
19794
19795         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
19796         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
19797         when opening a directory that needs only to be searchable.
19798         * lib/chdir-safer.c (chdir_no_follow): Likewise.
19799         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
19800         * lib/openat-proc.c (openat_proc_name): Likewise.
19801         * lib/openat.c (openat_needs_fchdir): Likewise.
19802         * lib/save-cwd.c (save_cwd): Likewise.
19803         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
19804
19805 2010-08-28  Bruno Haible  <bruno@clisp.org>
19806
19807         New module 'host-cpu-c-abi'.
19808         * modules/host-cpu-c-abi: New file.
19809         * m4/host-cpu-c-abi.m4: New file, based on part of
19810         clisp/src/m4/general.m4.
19811         Requested by Sam Steingold <sds@gnu.org>.
19812
19813 2010-08-31  Eric Blake  <eblake@redhat.com>
19814         and Jim Meyering  <meyering@redhat.com>
19815
19816         hash: factor, and guard against misbehaving hasher function
19817         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
19818         of table->hasher's return value.  Also protect against a hash value
19819         so large that adding it to table->bucket results in a NULL pointer.
19820         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
19821         Use it in place of open-coded check-and-abort.
19822
19823 2010-08-30  Bruno Haible  <bruno@clisp.org>
19824
19825         hash: silence spurious clang warning
19826         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
19827         Reported by Eric Blake.
19828
19829 2010-08-30  Eric Blake  <eblake@redhat.com>
19830
19831         strstr, memmem, strcasestr: avoid leaked shell message
19832         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
19833         FreeBSD.
19834         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19835         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19836
19837         tests: silence clang warning
19838         * tests/test-malloca.c (do_allocation): Avoid dead store.
19839
19840 2010-08-29  Bruno Haible  <bruno@clisp.org>
19841
19842         gettext: Fix recent mistake.
19843         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
19844
19845 2010-08-29  Bruno Haible  <bruno@clisp.org>
19846
19847         selinux-h: Offer a --without-selinux option.
19848         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
19849         --without-selinux was specified, skip all tests and define
19850         HAVE_SELINUX_SELINUX_H to 0.
19851         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
19852         set LIB_SELINUX to empty.
19853         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
19854         gl_LIBSELINUX. If --without-selinux was specified, replace
19855         selinux/context.h.
19856         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
19857
19858 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19859             Bruno Haible  <bruno@clisp.org>
19860
19861         Make the module 'realloc-gnu' work again on AIX and OSF/1.
19862         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
19863         of HAVE_REALLOC.
19864         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
19865         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
19866         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
19867         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19868
19869 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19870             Bruno Haible  <bruno@clisp.org>
19871
19872         Make the module 'calloc-gnu' work again on AIX and OSF/1.
19873         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
19874         HAVE_CALLOC.
19875         * lib/xmalloc.c: Update accordingly.
19876         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
19877         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
19878         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
19879
19880 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19881             Bruno Haible  <bruno@clisp.org>
19882
19883         Make the module 'malloc-gnu' work again on AIX and OSF/1.
19884         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
19885         HAVE_MALLOC.
19886         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
19887         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
19888         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19889
19890 2010-08-29  Bruno Haible  <bruno@clisp.org>
19891
19892         Update modules list.
19893         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19894         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
19895         (String handling <string.h>): Add astrxfrm.
19896         (File system functions): Add readlinkat.
19897
19898 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19899
19900         Tests for module 'realloc-gnu'.
19901         * modules/realloc-gnu-tests: New file.
19902         * tests/test-realloc-gnu.c: New file.
19903
19904         Tests for module 'calloc-gnu'.
19905         * modules/calloc-gnu-tests: New file.
19906         * tests/test-calloc-gnu.c: New file.
19907
19908         Tests for module 'malloc-gnu'.
19909         * modules/malloc-gnu-tests: New file.
19910         * tests/test-malloc-gnu.c: New file.
19911
19912 2010-08-28  Bruno Haible  <bruno@clisp.org>
19913
19914         Rename module 'realloc' -> 'realloc-gnu'.
19915         * modules/realloc-gnu: New file, copied from modules/realloc.
19916         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
19917         obsolete.
19918         * modules/mgetgroups (Depends-on): Update.
19919         * doc/posix-functions/realloc.texi: Update.
19920         * NEWS: Mention the change.
19921
19922         Rename module 'calloc' -> 'calloc-gnu'.
19923         * modules/calloc-gnu: New file, copied from modules/calloc.
19924         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
19925         obsolete.
19926         * doc/posix-functions/calloc.texi: Update.
19927         * NEWS: Mention the change.
19928
19929         Rename module 'malloc' -> 'malloc-gnu'.
19930         * modules/malloc-gnu: New file, copied from modules/malloc.
19931         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
19932         obsolete.
19933         * modules/argp (Depends-on): Update.
19934         * modules/regex (Depends-on): Update.
19935         * doc/posix-functions/malloc.texi: Update.
19936         * NEWS: Mention the change.
19937
19938 2010-08-28  Eric Blake  <eblake@redhat.com>
19939
19940         pread, pwrite: add missing dependency
19941         * modules/pread (Depends-on): Add extensions.
19942         * modules/pwrite (Depends-on): Likewise.
19943
19944 2010-08-28  Bruno Haible  <bruno@clisp.org>
19945
19946         unistr/u*-strchr: Fix tests dependencies.
19947         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
19948         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
19949         Reported by Ian Beckwith <ianb@erislabs.net>.
19950
19951 2010-08-28  Bruno Haible  <bruno@clisp.org>
19952
19953         read-file: Don't occupy too much unused memory.
19954         * lib/read-file.c (fread_file): Shrink the buffer at the end.
19955
19956 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
19957             Eric Blake  <eblake@redhat.com>
19958             Bruno Haible  <bruno@clisp.org>
19959
19960         read-file: Avoid memory reallocations with regular files.
19961         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
19962         (fread_file): With regular files, use the remaining length as the
19963         initial buffer size.  Check against overflow.
19964         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
19965         sys_stat.
19966
19967 2010-08-28  Bruno Haible  <bruno@clisp.org>
19968
19969         ftello: Relax license.
19970         * modules/ftello (License): Relax to LGPLv2+.
19971         Reported by Eric Blake.
19972
19973 2010-08-28  Bruno Haible  <bruno@clisp.org>
19974
19975         Avoid relocwrapper link errors due to gnulib replacement functions.
19976         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
19977         function.
19978         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19979
19980 2010-08-28  Bruno Haible  <bruno@clisp.org>
19981
19982         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
19983         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
19984         defined.
19985         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
19986         Suggested by Eric Blake.
19987
19988 2010-08-28  Bruno Haible  <bruno@clisp.org>
19989
19990         sys_socket, netdb: Ensure socklen_t gets defined.
19991         * modules/sys_socket (Depends-on): Add socklen.
19992         * modules/netdb (Depends-on): Likewise.
19993         * modules/getaddrinfo (Depends-on): Remove socklen.
19994         * modules/getsockopt (Depends-on): Likewise.
19995         * modules/setsockopt (Depends-on): Likewise.
19996         * tests/test-sys_socket.c: Check that socklen_t is defined.
19997         * tests/test-netdb.c: Likewise.
19998         * m4/socklen.m4: Update comments.
19999         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20000
20001 2010-08-27  Eric Blake  <eblake@redhat.com>
20002
20003         login_tty: add missing dependency
20004         * modules/login_tty (Depends-on): Add pty.
20005
20006 2010-08-26  Eric Blake  <eblake@redhat.com>
20007
20008         lib-symbol-versions: fix m4 quoting
20009         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20010         format for AC_LINK_IFELSE.
20011
20012         glob: fix compile test
20013         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20014
20015         btowc: fix missing file
20016         * modules/btowc (Files): Also ship locale-fr.m4.
20017
20018         lseek: fix link test
20019         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20020         AC_LINK_IFELSE.
20021
20022         include_next: silence autoconf 2.68 warning
20023         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20024         AC_COMPILE_IFELSE as special.
20025         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20026         autoconf < 2.68.
20027
20028         acl: fix compilation test
20029         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20030         AC_COMPILE_IFELSE.
20031
20032 2010-08-26  Bruno Haible  <bruno@clisp.org>
20033
20034         Modernize AC_TRY_RUN invocations.
20035         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20036         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20037         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20038         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20039         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20040         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20041         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20042         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20043         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20044         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20045         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20046         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20047         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20048         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20049         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20050         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20051         gl_MBRLEN_NUL_RETVAL): Likewise.
20052         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20053         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20054         Likewise.
20055         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20056         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20057         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20058         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20059         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20060         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20061         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20062         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20063         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20064         Likewise.
20065         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20066         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20067         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20068         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20069         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20070         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20071         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20072         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20073         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20074         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20075
20076 2010-08-26  Bruno Haible  <bruno@clisp.org>
20077
20078         Modernize AC_TRY_LINK invocations.
20079         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20080         AC_TRY_LINK.
20081         * m4/argp.m4 (gl_ARGP): Likewise.
20082         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20083         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20084         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20085         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20086         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20087         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20088         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20089         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20090         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20091         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20092         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20093         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20094         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20095         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20096         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20097         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20098         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20099         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20100         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20101         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20102         Likewise.
20103         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20104         Likewise.
20105         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20106         Likewise.
20107         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20108         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20109         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20110         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20111         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20112         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20113         * m4/servent.m4 (gl_SERVENT): Likewise.
20114         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20115         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20116         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20117         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20118         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20119         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20120         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20121         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20122         * modules/tsearch-tests (configure.ac): Likewise.
20123
20124 2010-08-26  Bruno Haible  <bruno@clisp.org>
20125
20126         Modernize AC_TRY_COMPILE invocations.
20127         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20128         AC_TRY_COMPILE.
20129         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20130         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20131         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20132         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20133         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20134         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20135         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20136         * m4/lock.m4 (gl_LOCK): Likewise.
20137         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20138         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20139         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20140         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20141         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20142         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20143         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20144         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20145         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20146         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20147         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20148         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20149         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20150         extraneous semicolon.
20151
20152 2010-08-26  Jim Meyering  <meyering@redhat.com>
20153
20154         stat-time: relax license LGPL
20155         * modules/stat-time (License): Change from GPL to LGPL,
20156         with consent from all contributors, for use in libguile.
20157         Requested by Ludovic Courtès.
20158
20159 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20160
20161         poll: return immediately on POLLHUP.
20162         * lib/poll.c (poll): Always set timeout before wait_timeout is
20163         computed.
20164
20165 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20166
20167         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20168         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20169         rmdir ("dir/.//"), unlinkat.
20170
20171 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20172
20173         stdbool: avoid spurious failure with modern xlc
20174         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20175
20176 2010-08-24  Bruno Haible  <bruno@clisp.org>
20177
20178         getloadavg: simplify code
20179         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20180         gl_have_func. Update comments.
20181
20182 2010-08-24  Eric Blake  <eblake@redhat.com>
20183
20184         getloadavg: don't define SVR4 on cygwin
20185         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20186         only define SVR4 when -lkvm is required.
20187         Reported by Yaakov Selkowitz.
20188
20189 2010-08-24  Bruno Haible  <bruno@clisp.org>
20190
20191         priv-set: fix comment
20192         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20193
20194 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20195
20196         priv-set: fix comments
20197         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20198         to match code, as suggested by David Bartley in:
20199         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20200
20201 2010-08-23  Eric Blake  <eblake@redhat.com>
20202
20203         stdbool: avoid rejecting clang
20204         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20205         * tests/test-stdbool.c: Enable more tests if using the system
20206         <stdbool.h> instead of the gnulib replacement.
20207         (main): Move xlc bug test to a runtime test for all compilers.
20208         Reported by Anders Kaseorg.
20209
20210         argz: fix shell quoting issue
20211         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20212         Reported by Charles Wilson.
20213
20214 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20215             Erik Faye-Lund <kusmabite@gmail.com>
20216
20217         poll, select: handle ERROR_BROKEN_PIPE.
20218         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20219         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20220         * lib/select.c (win32_compute_revents): Do not mark a pipe
20221         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20222
20223 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20224
20225         fts: allow compilation with C++
20226         * lib/fts_.h: Specify extern "C" linkage with C++.
20227
20228 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20229
20230         Fix gnulib-tool sed script de-commentation for AIX sed.
20231         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20232         sed.
20233
20234 2010-08-17  Eric Blake  <eblake@redhat.com>
20235
20236         test-stddef: test for (some) offsetof bugs
20237         * tests/test-stddef.c: Enhance test to ensure correct type of
20238         offsetof.
20239         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20240         that we are not fixing at this time.
20241
20242 2010-08-15  Bruno Haible  <bruno@clisp.org>
20243
20244         stpncpy: Allow stpncpy to be defined as a macro.
20245         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
20246         if it's already correctly declared.
20247         * lib/string.in.h (stpncpy): Undefine before redefining.
20248         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
20249
20250 2010-08-14  Bruno Haible  <bruno@clisp.org>
20251
20252         Rename module 'memxfrm' to 'amemxfrm'.
20253         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
20254         (amemxfrm): Renamed from memxfrm.
20255         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
20256         (amemxfrm): Renamed from memxfrm.
20257         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
20258         * NEWS: Mention the change.
20259         * MODULES.html.sh (String handling <string.h>): Update.
20260         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
20261         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
20262         * lib/unicase/u16-casexfrm.c: Likewise.
20263         * lib/unicase/u32-casexfrm.c: Likewise.
20264         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
20265         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
20266         * lib/uninorm/u16-normxfrm.c: Likewise.
20267         * lib/uninorm/u32-normxfrm.c: Likewise.
20268         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
20269         memxfrm.
20270         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
20271         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
20272         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
20273         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
20274         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
20275         Suggested by Paul Eggert.
20276
20277 2010-08-14  Bruno Haible  <bruno@clisp.org>
20278
20279         Tests for module 'astrxfrm'.
20280         * modules/astrxfrm-tests: New file.
20281         * tests/test-astrxfrm.c: New file.
20282
20283         New module 'astrxfrm'.
20284         * lib/astrxfrm.h: New file.
20285         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
20286         * modules/astrxfrm: New file.
20287
20288 2010-08-14  Reuben Thomas <rrt@sc3d.org>
20289
20290         regex: Tweak doc.
20291         * doc/regex.texi (Overview): Don't mention regex.c.
20292         (GNU Regular Expression Compiling): Likewise.
20293         (Match-end-of-line Operator): Mention 'not_eol'.
20294
20295 2010-08-14  Brian Gough  <bjg@gnu.org>
20296             Bruno Haible  <bruno@clisp.org>
20297
20298         git-merge-changelog: add doc relating to use with bzr and hg.
20299         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
20300
20301 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
20302
20303         pthread: fix pthread.h creation for srcdir != builddir
20304         * modules/pthread (Makefile.am): Fix the rule to work also in a
20305         non-srcdir build.
20306
20307 2010-08-13  Karl Berry  <karl@gnu.org>
20308
20309         * doc/regex.texi (Predefined Syntaxes): @smallexample.
20310         * doc/posix-*/*: force line break before @url of POSIX
20311         specifications.
20312         Suggested by Werner Lemberg.
20313
20314 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20315
20316         strtod: fix const diagnostic
20317         * lib/strtod.c (strtod): Don't assign const char * to char *,
20318         as this elicits a warning from GCC when warnings are enabled.
20319
20320 2010-08-10  Pádraig Brady <P@draigbrady.com>
20321         and Eric Blake  <eblake@redhat.com>
20322
20323         copy-acl: ignore ENOTSUP on HP-UX
20324         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
20325         so that it is available for HP-UX.
20326         * lib/copy-acl.c (qcopy_acl): Use it.
20327         Reported by Patrick M. Callahan.
20328
20329 2010-08-10  Eric Blake  <eblake@redhat.com>
20330
20331         open, chown: relax license
20332         * modules/open (License): Change to LGPLv2+, with consent by all
20333         authors, for use in augeas.
20334         * modules/chown (License): Likewise.
20335         * modules/lchown (Likewise): Likewise.
20336         Requested by Adam Stokes.
20337
20338 2010-08-09  Karl Berry  <karl@gnu.org>
20339
20340         * build-aux/ar-lib: new file, import from Automake.
20341         * config/srclist.txt: autocheck for updates.
20342
20343 2010-08-09  Eric Blake  <eblake@redhat.com>
20344
20345         readlinkat: adjust client modules
20346         * modules/areadlinkat (Depends-on): Use readlinkat, not
20347         symlinkat.
20348         * modules/areadlinkat-with-size (Depends-on): Likewise.
20349
20350         mknod: be more vocal about danger of running tests as root
20351         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20352         root, since that is just asking for problems.
20353         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20354
20355         readlinkat: split into its own module
20356         * modules/symlinkat: Split readlinkat...
20357         * modules/readlinkat: ...into separate module.
20358         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20359         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20360         * lib/symlinkat.c (readlinkat): Move...
20361         * lib/readlinkat.c: ...into new file.
20362         * modules/symlinkat-tests: Split readlinkat test...
20363         * modules/readlinkat-tests: ...into separate module.
20364         * tests/test-symlinkat.c: Split...
20365         * tests/test-readlinkat.c: ...into new file.
20366         * NEWS: Document the split.
20367         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20368         * lib/unistd.in.h (readlinkat): Likewise.
20369         Suggested by Bruno Haible.
20370
20371 2010-08-08  Bruno Haible  <bruno@clisp.org>
20372
20373         memxfrm: Speed up.
20374         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
20375         that usually only one call to strxfrm is necessary for each string
20376         part.
20377         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20378
20379 2010-08-07  Karl Berry  <karl@gnu.org>
20380
20381         * doc/posix-headers/limits.texi,
20382         * doc/posix-functions/malloc.texi,
20383         * doc/posix-functions/strsignal.texi: missing @item.
20384         * doc/ld-version-script.texi: spurious leading i.
20385         * doc/regex.texi (Interval Operators): no commas inside @var.
20386
20387 2010-08-01  Bruno Haible  <bruno@clisp.org>
20388
20389         Integrate the regex documentation.
20390         * doc/gnulib.texi: Define 'cn' index.
20391         (Regular expressions): New a chapter that includes regex.texi and
20392         regexprops-generic.texi.
20393         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
20394         syntax.
20395
20396         Whitespace cleanup.
20397         * doc/regex.texi: Remove trailing spaces.
20398
20399         Add regex documentation.
20400         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
20401         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
20402         Written by Kathy A. Hargreaves and Karl Berry.
20403
20404 2010-08-01  Bruno Haible  <bruno@clisp.org>
20405
20406         link: Update documentation.
20407         * doc/posix-functions/link.texi: Update regarding Solaris.
20408
20409 2010-07-31  Bruno Haible  <bruno@clisp.org>
20410
20411         Update modules list.
20412         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
20413         (String handling <string.h>): Add memcmp2, memxfrm.
20414         (Container data structures): Add xlist, xsublist, xoset.
20415         (Core language properties): Add alignof, unused-parameter.
20416         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20417         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
20418         (Unibyte characters <ctype.h>): New section.
20419         (String handling <string.h>): New section.
20420         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
20421         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
20422         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
20423         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
20424         tan, tanh, tanl, y0, y1, yn.
20425         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
20426         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
20427         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
20428         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
20429         unlockpt, vdprintf, vdprintf-posix.
20430         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
20431         (File system functions): Add concat-filename, sys_file, sys_ioctl,
20432         xconcat-filename.
20433         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
20434         getdtablesize, pipe2, pipe2-safer.
20435         (Security): New section.
20436         (Networking functions): Add accept4.
20437         (Signal handling): Add sigpipe.
20438         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
20439         mbmemcasecoll.
20440         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
20441         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
20442         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
20443         pipe-filter-ii.
20444         (Misc): Add argp-version-etc, login_tty, parse-duration.
20445
20446 2010-07-31  Bruno Haible  <bruno@clisp.org>
20447
20448         Improve doc in MODULES.html.
20449         * modules/linkat (Description): Add the word "function".
20450         * modules/mkfifo (Description): Likewise.
20451         * modules/mknod (Description): Likewise.
20452         * modules/remove (Description): Likewise.
20453         * modules/renameat (Description): Likewise.
20454         * modules/stat (Description): Likewise.
20455         * modules/symlink (Description): Likewise.
20456         * modules/unlink (Description): Likewise.
20457
20458 2010-07-31  Bruno Haible  <bruno@clisp.org>
20459
20460         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
20461         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
20462         option --enable/disable-c++ instead of --enable/disable-cxx.
20463         * NEWS: Mention the change.
20464
20465 2010-07-31  Bruno Haible  <bruno@clisp.org>
20466
20467         readlink, areadlink: Relax test a bit.
20468         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
20469         alternative to ENOTDIR.
20470         * tests/test-areadlink.h (test_areadlink): Likewise.
20471         Reported by Rainer Tammer.
20472
20473 2010-07-31  Bruno Haible  <bruno@clisp.org>
20474
20475         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
20476         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
20477         character, perform the search using U_STRCHR.
20478         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
20479         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
20480         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
20481         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
20482         Suggested by Paolo Bonzini.
20483
20484 2010-07-31  Bruno Haible  <bruno@clisp.org>
20485
20486         unistr/u*-strstr: Fix dependencies.
20487         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
20488         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
20489         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
20490
20491 2010-07-31  Bruno Haible  <bruno@clisp.org>
20492
20493         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
20494         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
20495         the beginning of the loop.
20496         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
20497         cases in 'switch' statement.
20498
20499         unistr/u8-strchr: Fix several bugs.
20500         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
20501         the string. When not found, return NULL, not a pointer near the end.
20502
20503         More tests for unistr/u8-strchr.
20504         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
20505         that the function does not read past the first occurrence of the byte
20506         being searched.
20507         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
20508         * tests/unistr/test-u16-strchr.c (main): New function.
20509         * tests/unistr/test-u32-strchr.c (main): New function.
20510
20511 2010-07-31  Bruno Haible  <bruno@clisp.org>
20512
20513         posix-modules: Ignore backup files of documentation files.
20514         * posix-modules: grep only through files named *.texi.
20515
20516 2010-07-31  Bruno Haible  <bruno@clisp.org>
20517
20518         symlinkat: Fix documentation.
20519         * doc/posix-functions/readlinkat.texi: Fix module name.
20520
20521 2010-07-31  Bruno Haible  <bruno@clisp.org>
20522
20523         fchownat: Replace also when chown has the trailing slash bug.
20524         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
20525         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
20526         introduced on 2010-04-10.
20527         Reported by Rainer Tammer.
20528
20529 2010-07-31  Bruno Haible  <bruno@clisp.org>
20530
20531         linkat: Work around AIX 7.1 bug.
20532         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
20533         whether linkat handles trailing slash correctly. If not, replace linkat
20534         and define LINKAT_TRAILING_SLASH_BUG.
20535         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
20536         check whether (fd1,file1) points to a directory if file1 or file2 ends
20537         in a slash. Code taken from lib/link.c.
20538         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
20539         Reported by Rainer Tammer.
20540
20541 2010-07-31  Bruno Haible  <bruno@clisp.org>
20542
20543         Correctly determine whether pow is available in libc on AIX 7 with xlc.
20544         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
20545         This disables an xlc optimization that was causing wrong test results.
20546         Reported by Rainer Tammer.
20547
20548 2010-07-31  Bruno Haible  <bruno@clisp.org>
20549
20550         iconv: Work around AIX 6.1..7.1 bug.
20551         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
20552         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
20553         cross-compiling, guess no on all versions of AIX.
20554         Reported by Rainer Tammer.
20555
20556 2010-07-31  Bruno Haible  <bruno@clisp.org>
20557
20558         readlink: Relax test a bit.
20559         * tests/test-readlink.h (test_readlink): Allow different errno value
20560         when readlink is called with a file name that ends in / and refers to
20561         a file.
20562         Suggested by Eric Blake.
20563         Reported by Rainer Tammer.
20564
20565 2010-07-31  Bruno Haible  <bruno@clisp.org>
20566
20567         copysign: Does not require -lm on glibc systems.
20568         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
20569         gl_COMMON_DOUBLE_MATHFUNC.
20570         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
20571
20572 2010-07-31  Bruno Haible  <bruno@clisp.org>
20573
20574         duplocale: Work around AIX 7.1 bug.
20575         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
20576         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
20577         * lib/duplocale.c (rpl_duplocale): Update comment.
20578         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
20579         Reported by Rainer Tammer.
20580
20581 2010-07-30  Bruno Haible  <bruno@clisp.org>
20582
20583         dirfd: Avoid link error on AIX 7.1.
20584         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
20585         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
20586         exist, set REPLACE_DIRFD.
20587         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
20588         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
20589         * doc/posix-functions/dirfd.texi: Update.
20590         Reported by Rainer Tammer.
20591
20592 2010-07-30  Eric Blake  <eblake@redhat.com>
20593
20594         strtod: next round of AIX fixes
20595         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
20596         exponent.
20597         * tests/test-strtod.c (main): Enhance tests.
20598         * doc/posix-functions/strtod.texi (strtod): Document next bug.
20599         Reported by Rainer Tammer.
20600
20601         futimens: fix configure check
20602         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
20603         Reported by Bruno Haible.
20604
20605 2010-07-30  Bruno Haible  <bruno@clisp.org>
20606
20607         getline: Update regarding AIX.
20608         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
20609         Reported by Rainer Tammer.
20610
20611 2010-07-30  Bruno Haible  <bruno@clisp.org>
20612
20613         wcwidth: Drop replacement on AIX 7.
20614         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
20615         AIX 7.
20616         Reported by Rainer Tammer.
20617
20618 2010-07-30  Bruno Haible  <bruno@clisp.org>
20619
20620         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
20621         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
20622         a 'char *'.
20623         Reported by Rainer Tammer.
20624
20625 2010-07-30  Bruno Haible  <bruno@clisp.org>
20626
20627         unlink: Update regarding AIX.
20628         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
20629         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
20630         Reported by Rainer Tammer.
20631
20632 2010-07-30  Bruno Haible  <bruno@clisp.org>
20633
20634         symlink: Update regarding AIX.
20635         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
20636         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
20637         Reported by Rainer Tammer.
20638
20639 2010-07-30  Bruno Haible  <bruno@clisp.org>
20640
20641         strndup: Update regarding AIX.
20642         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
20643         AIX 7.
20644         Reported by Rainer Tammer.
20645
20646 2010-07-30  Bruno Haible  <bruno@clisp.org>
20647
20648         stat: Update regarding AIX.
20649         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
20650         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
20651         Reported by Rainer Tammer.
20652
20653 2010-07-30  Bruno Haible  <bruno@clisp.org>
20654
20655         truncl: Fix autoconf test.
20656         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
20657         whether truncl works.
20658         Reported by Rainer Tammer.
20659
20660 2010-07-30  Bruno Haible  <bruno@clisp.org>
20661
20662         round: Update regarding AIX.
20663         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
20664         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
20665         Reported by Rainer Tammer.
20666
20667 2010-07-30  Bruno Haible  <bruno@clisp.org>
20668
20669         rename: Update regarding AIX.
20670         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
20671         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
20672         Reported by Rainer Tammer.
20673
20674 2010-07-30  Bruno Haible  <bruno@clisp.org>
20675
20676         printf.m4: Update regarding AIX.
20677         * m4/printf.m4: Update comments regarding AIX.
20678         Reported by Rainer Tammer.
20679
20680 2010-07-30  Bruno Haible  <bruno@clisp.org>
20681
20682         iconv: Update regarding AIX.
20683         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
20684         AIX 7.
20685         Reported by Rainer Tammer.
20686
20687 2010-07-30  Bruno Haible  <bruno@clisp.org>
20688
20689         getopt: Update regarding AIX.
20690         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
20691         no on AIX.
20692         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
20693         Reported by Rainer Tammer.
20694
20695 2010-07-30  Bruno Haible  <bruno@clisp.org>
20696
20697         ldexpl; Update regarding AIX.
20698         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
20699         on AIX 7.
20700         Reported by Rainer Tammer.
20701
20702 2010-07-30  Bruno Haible  <bruno@clisp.org>
20703
20704         frexpl: Update regarding AIX.
20705         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
20706         on AIX 7.
20707         Reported by Rainer Tammer.
20708
20709 2010-07-30  Bruno Haible  <bruno@clisp.org>
20710
20711         open, fopen: Update regarding AIX.
20712         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
20713         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20714         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
20715         * doc/posix-functions/fopen.texi: Likewise.
20716         Reported by Rainer Tammer.
20717
20718 2010-07-30  Bruno Haible  <bruno@clisp.org>
20719
20720         chown: Update doc regarding AIX.
20721         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
20722         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
20723         Reported by Rainer Tammer.
20724
20725 2010-07-30  Eric Blake  <eblake@redhat.com>
20726
20727         strtod: fix bug in replacement function on AIX
20728         * lib/strtod.c (strtod): Special case broken "0x" parse in
20729         underlying strtod.
20730         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
20731         * doc/posix-functions/strtod.texi (strtod): Likewise.
20732         Reported by Rainer Tammer.
20733
20734 2010-07-30  Bruno Haible  <bruno@clisp.org>
20735
20736         mbrlen: Fix cross-compilation guess for AIX.
20737         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
20738         guess. Leftover from 2008-12-22.
20739
20740 2010-07-30  Bruno Haible  <bruno@clisp.org>
20741
20742         mbrtowc: Fix cross-compilation guess for AIX.
20743         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
20744         guess. Leftover from 2008-12-21.
20745
20746 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
20747
20748         init.sh: work around trap limitation of some shells
20749         * tests/init.sh (setup_): Move exit trap outside of shell function.
20750
20751 2010-07-29  Eric Blake  <eblake@redhat.com>
20752
20753         strtod: aid debugging
20754         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
20755         understanding why strtod is rejected.
20756
20757 2010-07-28  Bruno Haible  <bruno@clisp.org>
20758
20759         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
20760         * lib/unistr/u8-chr.c: Include <string.h>.
20761         * tests/unistr/test-u8-chr.c: Likewise.
20762         * tests/unistr/test-u16-chr.c: Likewise.
20763         * tests/unistr/test-u32-chr.c: Likewise.
20764         * tests/unistr/test-u8-strchr.c: Likewise.
20765         * tests/unistr/test-u16-strchr.c: Likewise.
20766         * tests/unistr/test-u32-strchr.c: Likewise.
20767         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
20768         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
20769         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
20770         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
20771
20772 2010-07-28  Bruno Haible  <bruno@clisp.org>
20773
20774         Use spaces for indentation, not tabs.
20775         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20776
20777 2010-07-27  Bruno Haible  <bruno@clisp.org>
20778
20779         mbspcasecmp: Fix function specification.
20780         * lib/string.in.h (mbspcasecmp): Fix specification comment.
20781         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
20782         Reported by Eric Blake <eblake@redhat.com>.
20783
20784 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
20785
20786         timespec: use cast and not conditional, as truncation isn't possible
20787         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
20788         instead of a conditional.  Comment about the situation in more detail.
20789         This undoes most of the 2009-10-29 patch.
20790
20791 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
20792
20793         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
20794         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
20795         * lib/unistr/u8-strchr.c: Likewise.
20796         * modules/unistr/u8-chr: Depend on memchr.
20797
20798         unistr/u*-strchr: add tests
20799         * modules/unistr/u8-strchr-tests: New file.
20800         * modules/unistr/u16-strchr-tests: New file.
20801         * modules/unistr/u32-strchr-tests: New file.
20802         * tests/unistr/test-strchr.h: New file.
20803         * tests/unistr/test-u8-strchr.c: New file.
20804         * tests/unistr/test-u16-strchr.c: New file.
20805         * tests/unistr/test-u32-strchr.c: New file.
20806
20807         unistr/u*-chr: test multibyte sequences more
20808         * tests/unistr/test-chr.h: Do complete testing of the characters in the
20809         test vector.
20810         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
20811         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
20812         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
20813
20814         unistr/u*-chr: test multibyte sequences
20815         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
20816
20817         unistr/u*-chr: prepare for multibyte tests
20818         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
20819         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
20820         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
20821         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
20822         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
20823         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
20824
20825 2010-07-18  Bruno Haible  <bruno@clisp.org>
20826
20827         unistr/u8-strchr: Optimize non-ASCII argument case.
20828         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
20829         because the first byte often matches anyway.
20830         Reported by Pádraig Brady <P@draigbrady.com>.
20831
20832 2010-07-15  Karl Berry  <karl@gnu.org>
20833
20834         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
20835
20836 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
20837
20838         getcwd: on Solaris, work better if ancestors are inaccessible
20839         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
20840         buffer and size, try again with a large buffer.  This works better
20841         on Solaris, since its getcwd succeeds even if the path to the root
20842         is inaccessible, and this is helpful in common cases such as .zfs
20843         hidden directories.  Problem reported by J Chapman Flack in
20844         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
20845         Use system getcwd if it's declared, not merely if it's partly
20846         working; use the partly-working test only to avoid needless effort
20847         if the system getcwd fails.
20848         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
20849         comment that was already obsolete and is now even more obsolete.
20850         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
20851         now might call strdup.
20852
20853 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
20854
20855         pthread: Add enough so that coreutils/src/sort.c compiles.
20856         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
20857         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
20858         gnulib. Include <sched.h> and <time.h>, as per POSIX.
20859         Include <sys/types.h>, in case it defines pthread_t.
20860         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
20861         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
20862         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
20863         (pthread_rwlockattr_t, pthread_spinlock_t):
20864         New typedefs, if HAVE_PTHREAD_T is not defined.
20865         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
20866         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
20867         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
20868         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
20869         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
20870         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
20871         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
20872         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
20873         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
20874         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
20875         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
20876         New macros.
20877         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
20878         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
20879         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
20880         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
20881         (pthread_spin_unlock): New dummy functions.
20882         (pthread_create): Return EAGAIN; don't set errno.
20883         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
20884         require AC_C_INLINE.
20885         * modules/pthread (Depends-on): Add sched, time.
20886         (pthread.h): Use AM_V_GEN.
20887
20888 2010-07-13  Bruno Haible  <bruno@clisp.org>
20889
20890         striconveh: Don't malloc memory if the result buffer is sufficient.
20891         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
20892         buffer if its size is sufficient.
20893         Reported by Ludovic Courtès <ludo@gnu.org>.
20894
20895 2010-07-13  Bruno Haible  <bruno@clisp.org>
20896
20897         strtod: Add safety check.
20898         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
20899
20900 2010-07-12  Bruno Haible  <bruno@clisp.org>
20901
20902         Unify tests that set gl_cv_func_ldexpl_no_libm.
20903         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
20904         gl_FUNC_LDEXPL.
20905         (gl_FUNC_LDEXPL): Invoke it.
20906         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20907
20908 2010-07-12  Bruno Haible  <bruno@clisp.org>
20909
20910         Unify tests that set gl_cv_func_ldexp_no_libm.
20911         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
20912         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
20913         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
20914         (configure.ac): Simply invoke gl_FUNC_LDEXP.
20915         * modules/strtod (Files): Add m4/ldexp.m4.
20916
20917 2010-07-12  Bruno Haible  <bruno@clisp.org>
20918
20919         Unify tests that set gl_cv_func_frexpl_no_libm.
20920         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
20921         gl_FUNC_FREXPL_NO_LIBM.
20922         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
20923         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20924
20925 2010-07-12  Bruno Haible  <bruno@clisp.org>
20926
20927         Unify tests that set gl_cv_func_frexp_no_libm.
20928         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
20929         gl_FUNC_FREXP_NO_LIBM.
20930         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
20931         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20932
20933 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20934
20935         memcoll: clarify sizes versus lengths, document better, and tweak perf
20936         * lib/memcoll.c (strcoll_loop, memcoll0):
20937         Improve quality of descriptive comments.  Name variables
20938         consistently as to whether they are lengths (which do not include
20939         terminating null) versus sizes (which do).
20940         * lib/xmemcoll.c (xmemcoll0): Likewise.
20941         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
20942         returned when s1size == 0; this is easier to compile and saves
20943         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
20944
20945 2010-07-12  Bruno Haible  <bruno@clisp.org>
20946
20947         Tests for module '_Exit'.
20948         * modules/_Exit-tests: New file.
20949         * tests/test-_Exit.sh: New file.
20950         * tests/test-_Exit.c: New file.
20951
20952         New module '_Exit'.
20953         * lib/stdlib.in.h (__attribute__): New macro.
20954         (_Exit): New declaration.
20955         * lib/_Exit.c: New file.
20956         * m4/_Exit.m4: New file.
20957         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
20958         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
20959         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
20960         * modules/_Exit: New file.
20961         * tests/test-stdlib-c++.cc (_Exit): Check signature.
20962         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
20963
20964 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20965
20966         strtod: make it more-accurate typically, and don't require libm
20967         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
20968         Include limits.h.  Don't include string.h.
20969         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
20970         (locale_isspace): New function, so that no casts are needed to
20971         check whether *s is a space.
20972         (ldexp): Provide an unused dummy if not available.
20973         (scale_radix_exp, parse_number, underlying_strtod): New functions.
20974         (strtod): Use them.  This implementation prefers to use the
20975         underlying strtod if available, falling back on our own code
20976         only to fix known bugs.  This is more likely to produce an
20977         accurate result.  Also, it avoids the use of libm functions.
20978         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
20979         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
20980         was absent, but it caused a test failure with coreutils.
20981         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
20982         with libm.
20983         * modules/strtod (Makefile.am, Link): libm is no longer needed.
20984         * modules/strtod-tests (Makefile.am): Likewise.
20985
20986 2010-07-11  Pádraig Brady  <P@draigBrady.com>
20987             Bruno Haible  <bruno@clisp.org>
20988
20989         unistr/u8-strchr: Optimize ASCII argument case.
20990         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
20991
20992 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20993
20994         (x)memcoll: minor tweaks
20995         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
20996         is after the type that it qualifies.
20997         (memcoll0): Likewise.
20998         * lib/memcoll.h (memcoll0): Likewise.
20999         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21000         * lib/xmemcoll.h (xmemcoll0): Likewise.
21001         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21002         differs from memcoll in that the NUL byte is part of the argument.
21003         Omit the abort-checks, as performance is a real issue here.  Plus,
21004         the checks were wrong anyway (an off-by-one error).  Omit local
21005         variable 'diff', as it's a bit clearer that way.
21006         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21007         no longer needed.
21008
21009 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21010
21011         (x)memcoll: speedup when input is known to be NUL delimited
21012         * lib/memcoll.c: Include stdlib.
21013         (memcoll0): New function.
21014         (strcoll_loop): New function, refactored for use in both memcoll
21015         and memcoll0.
21016         * lib/memcoll.h (memcoll0): Add prototype.
21017         * lib/xmemcoll.c (xmemcoll0): New function.
21018         (collate_error): New function, refactored for use in both xmemcoll
21019         and xmemcoll0.
21020         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21021         * m4/memcoll.m4: add inline invocation.
21022
21023 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21024
21025         * build-aux/bootstrap: Remove any local translations
21026         from the translation project synchronization directory,
21027         so that local only translations are not distributed.
21028
21029 2010-07-04  Bruno Haible  <bruno@clisp.org>
21030
21031         fsusage: Clarify which code applies to which platforms.
21032         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21033         platform.
21034         * lib/fsusage.c (get_fs_usage): Likewise.
21035
21036 2010-07-04  Bruno Haible  <bruno@clisp.org>
21037
21038         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21039         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21040         Reported by Martin Lambers <marlam@marlam.de>.
21041
21042 2010-07-04  Jim Meyering  <meyering@redhat.com>
21043
21044         hash: once again explicitly disallow insertion of NULL
21045         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21046         inserting a NULL pointer cannot work with these functions.
21047         Add a comment with details.
21048         This reverts part of the 2010-07-01 commit, 5bef1a35
21049         "hash: extend module to deal with non-pointer keys".
21050
21051 2010-07-01  Bruno Haible  <bruno@clisp.org>
21052
21053         stdbool: Update doc.
21054         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21055         Info from Christian Weisgerber <naddy@mips.inka.de>.
21056
21057 2010-07-01  Jim Meyering  <meyering@redhat.com>
21058
21059         hash: extend module to deal with non-pointer keys
21060         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21061         but that allows insertion of non-pointer entries.
21062         Do not disallow an ENTRY value of NULL.
21063         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21064         * lib/hash.h (hash_insert0): Declare.
21065
21066 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21067
21068         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21069         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21070         not present (i.e. with autoconf 2.59 and when using gettextize, not
21071         gnulib), require AC_GNU_SOURCE instead.
21072
21073 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21074
21075         idpriv-drop: Fix tests.
21076         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21077         not to the test-idpriv-droptemp program.
21078
21079 2010-06-29  Bruno Haible  <bruno@clisp.org>
21080
21081         string: Fix syntax error with g++ 2.96.
21082         * lib/string.in.h (__pure__): Remove definition.
21083         (_GL_ATTRIBUTE_PURE): New macro.
21084         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21085         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21086         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21087
21088 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21089
21090         unitypes: Fix bug introduced on 2010-05-18.
21091         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21092
21093 2010-06-22  Eric Blake  <eblake@redhat.com>
21094
21095         memmem: slight optimization
21096         * lib/str-two-way.h (critical_factorization): Update comments.
21097         Reduce work during factorization phase.
21098         Reported by Carlos Bueno <carlos@bueno.org>.
21099
21100 2010-06-21  Bruno Haible  <bruno@clisp.org>
21101
21102         Fix HAVE_CALLOC_POSIX misnomer.
21103         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21104         !HAVE_CALLOC_POSIX.
21105         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21106         HAVE_CALLOC_POSIX.
21107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21108         instead of HAVE_CALLOC_POSIX.
21109         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21110         HAVE_CALLOC_POSIX.
21111
21112         Use modern idiom for calloc() replacement.
21113         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21114         AC_FUNC_CALLOC.
21115         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21116         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21117         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21118         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21119         (gl_REPLACE_CALLOC): New macro.
21120
21121 2010-06-21  Bruno Haible  <bruno@clisp.org>
21122
21123         Fix HAVE_REALLOC_POSIX misnomer.
21124         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21125         !HAVE_REALLOC_POSIX.
21126         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21127         HAVE_REALLOC_POSIX.
21128         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21129         instead of HAVE_REALLOC_POSIX.
21130         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21131         HAVE_REALLOC_POSIX.
21132
21133         Use modern idiom for realloc() replacement.
21134         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21135         AC_FUNC_REALLOC.
21136         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21137         Autoconf's AC_FUNC_REALLOC.
21138         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21139         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21140         (gl_REPLACE_REALLOC): New macro.
21141         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21142
21143 2010-06-21  Bruno Haible  <bruno@clisp.org>
21144
21145         Fix HAVE_MALLOC_POSIX misnomer.
21146         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21147         !HAVE_MALLOC_POSIX.
21148         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21149         HAVE_MALLOC_POSIX.
21150         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21151         instead of HAVE_MALLOC_POSIX.
21152         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21153         HAVE_MALLOC_POSIX.
21154
21155         Use modern idiom for malloc() replacement.
21156         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21157         AC_FUNC_MALLOC.
21158         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21159         Autoconf's AC_FUNC_MALLOC.
21160         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21161         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21162         (gl_REPLACE_MALLOC): New macro.
21163         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21164
21165 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21166
21167         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21168         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21169         This macro takes 3 arguments, not 4.
21170
21171 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21172
21173         ipv6: fix detection under mingw
21174         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21175         in6_addr.
21176
21177 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21178
21179         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21180         that strtod() works when cross-compiling to a glibc version known
21181         to work.
21182
21183 2010-06-15  Bruno Haible  <bruno@clisp.org>
21184
21185         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21186
21187 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21188
21189         select: Correct timeout.
21190         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21191
21192 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21193
21194         git-version-gen: init shell var to avoid env var influence
21195         * build-aux/git-version-gen (v): Init shell var to empty.
21196
21197 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21198
21199         priv-set: Don't assume that priv.h exists merely because getppriv does.
21200         See Jan Andersen's bug report about AIX 5L in
21201         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21202         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21203         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21204         * lib/priv-set.h: Likewise.
21205         * tests/test-priv-set.c: Likewise.
21206
21207 2010-06-13  Bruno Haible  <bruno@clisp.org>
21208
21209         relocatable: Make it easier to test whether to install wrappers.
21210         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21211         RELOCATABLE_VIA_WRAPPER.
21212
21213 2010-06-13  Bruno Haible  <bruno@clisp.org>
21214
21215         gnulib-tool: Display specified modules and dependencies differently.
21216         * gnulib-tool (func_show_module_list): New function.
21217         (func_import, func_create_testdir): Invoke it.
21218         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21219
21220 2010-06-13  Bruno Haible  <bruno@clisp.org>
21221
21222         gnulib-tool: Align code of func_import and func_create_testdir.
21223         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21224         specified_modules.
21225
21226 2010-06-12  Jim Meyering  <meyering@redhat.com>
21227
21228         test-inttostr: avoid spurious failure on Solaris 9
21229         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21230         to accept "%ju".  Reported by Bruno Haible.
21231
21232 2010-06-11  Jim Meyering  <meyering@redhat.com>
21233
21234         test-sys_socket: mark variables as used more readably
21235         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21236         as "used" explicitly via (void) statement casts.  This is more
21237         readable than using them in an artificial return expression.
21238         Suggestion from Bruno Haible.
21239
21240 2010-06-11  Bruno Haible  <bruno@clisp.org>
21241
21242         Avoid some more warnings from "gcc -Wwrite-strings".
21243         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21244         to 'const char *'.
21245         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
21246         * tests/test-c-strcasestr.c (main): Likewise.
21247         * tests/test-mbscasestr1.c (main): Likewise.
21248         * tests/test-mbscasestr2.c (main): Likewise.
21249         * tests/test-memmem.c (main): Likewise.
21250         * tests/test-strstr.c (main): Likewise.
21251         * tests/test-strcasestr.c (main): Likewise.
21252
21253 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21254
21255         init.sh: change framework_failure_ to fail with status 99, not 1
21256         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
21257         automake's parallel-tests rule that this is an unexpected failure,
21258         even if the test is listed in XFAIL_TESTS.
21259
21260 2010-06-11  Jim Meyering  <meyering@redhat.com>
21261
21262         test-inttostr: avoid warnings about 4-6KB literal strings
21263         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
21264         Include "macros.h", for its definition of ASSERT.
21265         (CK): s/assert/ASSERT/
21266         * modules/inttostr-tests (Files): Add macros.h.
21267
21268         init.sh: don't use $ME_ or skip_ before they are defined
21269         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
21270         their first uses.  Also hoist their companions: warn_, fail_,
21271         framework_failure_, $stderr_fileno.  Prompted by a patch from
21272         Stefano Lattarini.
21273
21274         test-sys_socket: avoid set-but-not-used warnings from gcc
21275         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
21276         avoid warning about set-but-not-used variables.
21277
21278         test-xvasprintf: avoid 'const' discard warnings
21279         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
21280         "const" when assigning from literal strings.
21281         (test_xasprintf): Add "void" in function argument list to placate
21282         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
21283
21284         tests: avoid compilation warnings in argmatch and exclude tests...
21285         in packages that define ARGMATCH_DIE_DECL, like coreutils.
21286         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
21287         Since it always exits, declare with the "noreturn" attribute.
21288         * tests/test-argmatch.c: Likewise.
21289
21290         tests: avoid 'const' discard warnings in mbsstr tests
21291         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
21292         * tests/test-mbsstr2.c (main): Likewise.
21293
21294         test-verify: avoid warning from gcc's -Wmissing-declarations
21295         * tests/test-verify.c (function): Declare to be static.
21296
21297         test-inttostr.c: include <string.h> for use of strcmp
21298         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
21299
21300         test-linkat: avoid failed assertion on "other" architectures
21301         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
21302         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
21303         sparc: https://bugs.launchpad.net/bugs/591968
21304
21305 2010-06-11  Jim Meyering  <meyering@redhat.com>
21306
21307         printf.m4: avoid autoconf's "Expanded Before Required" warning
21308         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
21309         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
21310         autoconf warning.
21311
21312 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
21313
21314         Replacement header templates are now named with ".in", not "_".
21315         * doc/gnulib-intro.texi: Correct.
21316
21317 2010-06-10  Jim Meyering  <meyering@redhat.com>
21318
21319         inttostr-tests: depend on snprintf, not snprintf-posix
21320         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
21321         snprintf-posix, to avoid this aclocal failure:
21322           missing file gnulib-tests/vasnprintf.c
21323           configure.ac:45: error: expected source file, required through \
21324           AC_LIBSOURCES, not found
21325
21326 2010-06-10  Jim Meyering  <meyering@redhat.com>
21327
21328         inttostr: add a new function, inttostr, and tests
21329         The namesake function was not available.  The existence of the
21330         template file, inttostr.c makes its addition nontrivial.
21331         * lib/anytostr.c: Rename from inttostr.c.
21332         (anytostr): Rename from inttostr.
21333         * lib/inttostr.c: New file.
21334         * modules/inttostr (Files): Add anytostr.c.
21335         (Makefile.am): Set lib_SOURCES instead of ...
21336         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
21337         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
21338         * lib/offtostr.c: Likewise.
21339         * lib/uinttostr.c: Likewise.
21340         * lib/umaxtostr.c: Likewise.
21341         * modules/inttostr-tests: New file.
21342         * tests/test-inttostr.c: New file.  Test these functions.
21343
21344 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21345             Bruno Haible  <bruno@clisp.org>
21346
21347         Add "Extending Gnulib" chapter to manual.
21348         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21349         chapter.
21350         (Extending Gnulib): New chapter.
21351         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21352         chapter.
21353
21354 2010-06-09  Bruno Haible  <bruno@clisp.org>
21355
21356         Avoid relocwrapper link errors due to gnulib replacement functions.
21357         * lib/areadlink.c: Use the system's malloc, realloc functions.
21358         (areadlink): Set errno to ENOMEM explicitly.
21359         * modules/areadlink (Depends-on): Remove malloc-posix.
21360         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21361
21362 2010-06-09  Bruno Haible  <bruno@clisp.org>
21363
21364         Avoid relocwrapper link errors due to gnulib replacement functions.
21365         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21366         * lib/malloca.c: Likewise.
21367         * lib/relocatable.c: Likewise.
21368         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21369         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21370         * lib/setenv.c: Use the system's malloc, realloc functions.
21371         * lib/strerror.c: Use the system's sprintf function.
21372         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21373
21374 2010-06-04  Bruno Haible  <bruno@clisp.org>
21375
21376         Prefer documented low-level autoconf macro names.
21377         * m4/lib-link.m4: Use m4_translit instead of translit.
21378         * m4/environ.m4: Likewise.
21379         * m4/mathfunc.m4: Likewise.
21380         * m4/onceonly.m4: Likewise.
21381         * m4/stdint.m4: Likewise.
21382         Suggested by Eric Blake.
21383
21384 2010-06-04  Martin Lambers  <marlam@marlam.de>
21385             Bruno Haible  <bruno@clisp.org>
21386
21387         havelib: Allow library names with '+' characters.
21388         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21389         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
21390
21391 2010-06-09  Bruno Haible  <bruno@clisp.org>
21392
21393         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
21394         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
21395         realloc failed.
21396
21397 2010-06-08  Peter Simons  <simons@cryp.to>
21398
21399         maint.mk: make the news-check rule more configurable
21400         * top/maint.mk (news-check-lines-spec): New variable.
21401         (news-check): Use "sed -n 1,10p" in place of "head".
21402
21403 2010-06-07  Jim Meyering  <meyering@redhat.com>
21404
21405         do-release-commit-and-tag: fix typo in --help
21406         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
21407
21408         regex: avoid new dead-code warning with gcc-4.6.0
21409         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
21410         if-block containing a while-loop.  It's been unused for at least
21411         5 years.
21412
21413 2010-06-05  Bruno Haible  <bruno@clisp.org>
21414
21415         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21416         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21417
21418 2010-06-04  Bruno Haible  <bruno@clisp.org>
21419
21420         Update to GNU gettext 0.18.1.
21421         * modules/gettext (configure.ac): Require gettext infrastructure from
21422         version 0.18.1.
21423
21424 2010-06-03  Bruno Haible  <bruno@clisp.org>
21425
21426         Don't use AC_LIBOBJ with file names in subdirectories.
21427         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
21428         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
21429         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
21430         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
21431         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
21432         gl_LIBUNISTRING_LIBSOURCE.
21433         (Makefile.am): Augment lib_SOURCES here, conditionally.
21434         * NEWS: Drop requirement for Automake option 'subdir-objects'.
21435
21436 2010-06-03  Bruno Haible  <bruno@clisp.org>
21437
21438         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
21439         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
21440         expansion does not end with a newline.
21441         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
21442         unnecessary newline.
21443
21444 2010-06-03  Bruno Haible  <bruno@clisp.org>
21445
21446         Reduce dependencies.
21447         * tests/test-quotearg.h: New file, extracted from
21448         tests/test-quotearg.c.
21449         * tests/test-quotearg-simple.c: New file, extracted from
21450         tests/test-quotearg.c.
21451         * tests/test-quotearg.c: Don't include <ctype.h>.
21452         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
21453         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
21454         use_quote_double_quotes, use_quotearg_colon): Moved to
21455         tests/test-quotearg.h.
21456         (results_g, flag_results, custom_quotes, custom_results): Moved
21457         to tests/test-quotearg-simple.c.
21458         (main): Moved the part that does not depend on gettext to
21459         tests/test-quotearg-simple.c. Return 77 if the test cannot be
21460         performed.
21461         * modules/quotearg-simple: New file.
21462         * modules/quotearg-simple-tests: New file.
21463         * modules/quotearg (Depends-on): Add quotearg-simple.
21464         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
21465         (Files): Add tests/test-quotearg.h.
21466         Reported by Paolo Bonzini.
21467
21468 2010-06-03  Bruno Haible  <bruno@clisp.org>
21469
21470         Reduce dependencies.
21471         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
21472
21473 2010-06-03  Bruno Haible  <bruno@clisp.org>
21474
21475         time: Undefine more broken macros.
21476         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
21477         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
21478         Reported by Eric Blake.
21479
21480 2010-06-03  Bruno Haible  <bruno@clisp.org>
21481
21482         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
21483         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
21484         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
21485         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
21486         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
21487         Reported by Ludovic Courtès <ludo@gnu.org>.
21488
21489 2010-06-02  Eric Blake  <eblake@redhat.com>
21490
21491         time: work with mingw + pthreads-win32 library
21492         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
21493         if timespec is defined only in pthread.h.
21494         * modules/time (Makefile.am): Substitute it.
21495         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
21496         <pthread.h>, when needed.
21497         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
21498         from the library.
21499
21500 2010-05-31  Bruno Haible  <bruno@clisp.org>
21501
21502         Avoid expanding two macros in the wrong order.
21503         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
21504         gl_LIBUNISTRING if it is defined.
21505         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
21506         autoconf >= 2.64.
21507         Reported by Ludovic Courtès <ludo@gnu.org>.
21508
21509 2010-05-27  Jim Meyering  <meyering@redhat.com>
21510
21511         maint.mk: also prohibit "#undef" of always-defined symbols
21512         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
21513         Allow more than one space before the symbol name.
21514         (sc_prohibit_always-defined_macros): Use grep's -E, now that
21515         the regexp uses alternation.
21516
21517 2010-05-26  Eric Blake  <eblake@redhat.com>
21518
21519         maint.mk: avoid echo -e
21520         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
21521         Convert all uses of echo -* to printf.
21522         Reported by Matthias Bolte.
21523
21524 2010-05-25  Bruno Haible  <bruno@clisp.org>
21525
21526         Update to GNU gettext 0.18, part 2.
21527         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
21528         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
21529
21530 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21531
21532         Add missing include in test-pwrite.c.
21533         * tests/test-pwrite.c: Include string.h, for strcmp.
21534
21535 2010-05-24  Bruno Haible  <bruno@clisp.org>
21536
21537         * NEWS: Mention requirement for Automake option 'subdir-objects'.
21538
21539 2010-05-24  Bruno Haible  <bruno@clisp.org>
21540
21541         Don't use conversion with transliteration in u{8,16,32}_strcoll.
21542         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
21543         iconveh_error argument.
21544         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
21545         U_STRCONV_TO_LOCALE.
21546         * lib/unistr/u16-strcoll.c: Likewise.
21547         * lib/unistr/u32-strcoll.c: Likewise.
21548         * modules/unistr/u8-strcoll (Depends-on): Add
21549         uniconv/u8-strconv-to-enc, localcharset. Remove
21550         uniconv/u8-strconv-to-locale.
21551         (configure.ac): Bump version number.
21552         * modules/unistr/u16-strcoll (Depends-on): Add
21553         uniconv/u16-strconv-to-enc, localcharset. Remove
21554         uniconv/u16-strconv-to-locale.
21555         (configure.ac): Bump version number.
21556         * modules/unistr/u32-strcoll (Depends-on): Add
21557         uniconv/u32-strconv-to-enc, localcharset. Remove
21558         uniconv/u32-strconv-to-locale.
21559         (configure.ac): Bump version number.
21560
21561 2010-05-24  Bruno Haible  <bruno@clisp.org>
21562
21563         Avoid a test failure on NetBSD 5.0.
21564         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
21565         an iconv() bug.
21566
21567 2010-05-24  Bruno Haible  <bruno@clisp.org>
21568
21569         Adjust #include directive style.
21570         * modules/regex (Includes): Recommend to write <regex.h>.
21571
21572 2010-05-24  Bruno Haible  <bruno@clisp.org>
21573
21574         regex: Don't require alloca.
21575         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
21576         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
21577         only inside if (0).
21578
21579 2010-05-23  Jim Meyering  <meyering@redhat.com>
21580
21581         test-renameat.c: include <sys/stat.h>
21582         * tests/test-renameat.c: Include <sys/stat.h>; required for
21583         definition of S_IS* macros.
21584
21585 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
21586
21587         Update maintainer documentation for 'relocatable-prog' module.
21588         * doc/relocatable-maint.texi: Update.
21589         Comments by Bruno Haible.
21590
21591 2010-05-23  Bruno Haible  <bruno@clisp.org>
21592
21593         git-merge-changelog: Enable --split-merged-entry by default.
21594         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
21595         (usage): Don't mention this option any more.
21596         Reported by Ralf Wildenhues.
21597
21598 2010-05-23  Jim Meyering  <meyering@redhat.com>
21599
21600         test-pwrite: do not leave behind a test file named "out"
21601         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
21602         The trivial-looking use of init.sh is really necessary.
21603         It ensures that the temporary file, "out", is created in
21604         a temporary directory, and removed upon termination.
21605         * tests/test-pwrite.sh: Re-add file.
21606         * modules/pwrite-tests: Reference it.
21607
21608 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21609
21610         Fix output redirection buglet in init.sh.
21611         * tests/init.sh: Fix redirection of stderr.
21612
21613 2010-05-20  Simon Josefsson  <simon@josefsson.org>
21614
21615         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
21616
21617 2010-05-17  Simon Josefsson  <simon@josefsson.org>
21618
21619         * modules/valgrind-tests: New file.
21620         * m4/valgrind-tests.m4: New file.
21621         * doc/valgrind-tests.texi: New file.
21622         * doc/gnulib.texi (Running self-tests under valgrind): New
21623         section.
21624
21625 2010-05-19  Bruno Haible  <bruno@clisp.org>
21626
21627         Clean up dead code in recent commit.
21628         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
21629         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
21630         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
21631         Suggested by Paolo Bonzini.
21632
21633 2010-05-19  Bruno Haible  <bruno@clisp.org>
21634
21635         Avoid valgrind error reports from libunistring.
21636         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
21637         * modules/libunistring (Files): Add it.
21638         * modules/libunistring-optional (Files): Likewise.
21639
21640 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
21641             Bruno Haible  <bruno@clisp.org>
21642
21643         New module 'libunistring-optional'.
21644         * modules/libunistring-optional: New file.
21645         * m4/libunistring-base.m4: New file.
21646         * m4/libunistring-optional.m4: New file.
21647         * lib/unicase.in.h: Renamed from lib/unicase.h.
21648         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
21649         * lib/unictype.in.h: Renamed from lib/unictype.h.
21650         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
21651         * lib/uniname.in.h: Renamed from lib/uniname.h.
21652         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
21653         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
21654         * lib/unistr.in.h: Renamed from lib/unistr.h.
21655         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
21656         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
21657         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
21658         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
21659         gl_LIBUNISTRING. If the library was found, determine the installed
21660         version and set LIBUNISTRING_VERSION.
21661         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
21662         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
21663         handle a configuration option --with-included-libunistring.
21664         * modules/libunistring (Files): Add m4/absolute-header.m4.
21665         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
21666         Add m4/libunistring-base.m4.
21667         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21668         (Makefile.am): Build unicase.h from unicase.in.h.
21669         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
21670         Add m4/libunistring-base.m4.
21671         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21672         (Makefile.am): Build uniconv.h from uniconv.in.h.
21673         * modules/unictype/base (Files): Use unictype.in.h instead of
21674         unictype.h. Add m4/libunistring-base.m4.
21675         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21676         (Makefile.am): Build unictype.h from unictype.in.h.
21677         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
21678         Add m4/libunistring-base.m4.
21679         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21680         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
21681         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
21682         Add m4/libunistring-base.m4.
21683         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21684         (Makefile.am): Build uniname.h from uniname.in.h.
21685         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
21686         Add m4/libunistring-base.m4.
21687         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21688         (Makefile.am): Build uninorm.h from uninorm.in.h.
21689         * modules/unistdio/base (Files): Use unistdio.in.h instead of
21690         unistdio.h. Add m4/libunistring-base.m4.
21691         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21692         (Makefile.am): Build unistdio.h from unistdio.in.h.
21693         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
21694         Add m4/libunistring-base.m4.
21695         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21696         (Makefile.am): Build unistr.h from unistr.in.h.
21697         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
21698         Add m4/libunistring-base.m4.
21699         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21700         (Makefile.am): Build unitypes.h from unitypes.in.h.
21701         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
21702         Add m4/libunistring-base.m4.
21703         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21704         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
21705         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
21706         uniwidth.h. Add m4/libunistring-base.m4.
21707         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21708         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
21709         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
21710         instead of augmenting lib_SOURCES.
21711         * modules/unicase/empty-suffix-context: Likewise.
21712         * modules/unicase/locale-language: Likewise.
21713         * modules/unicase/tolower: Likewise.
21714         * modules/unicase/totitle: Likewise.
21715         * modules/unicase/toupper: Likewise.
21716         * modules/unicase/u8-casecmp: Likewise.
21717         * modules/unicase/u8-casecoll: Likewise.
21718         * modules/unicase/u8-casefold: Likewise.
21719         * modules/unicase/u8-casexfrm: Likewise.
21720         * modules/unicase/u8-ct-casefold: Likewise.
21721         * modules/unicase/u8-ct-tolower: Likewise.
21722         * modules/unicase/u8-ct-totitle: Likewise.
21723         * modules/unicase/u8-ct-toupper: Likewise.
21724         * modules/unicase/u8-is-cased: Likewise.
21725         * modules/unicase/u8-is-casefolded: Likewise.
21726         * modules/unicase/u8-is-lowercase: Likewise.
21727         * modules/unicase/u8-is-titlecase: Likewise.
21728         * modules/unicase/u8-is-uppercase: Likewise.
21729         * modules/unicase/u8-prefix-context: Likewise.
21730         * modules/unicase/u8-suffix-context: Likewise.
21731         * modules/unicase/u8-tolower: Likewise.
21732         * modules/unicase/u8-totitle: Likewise.
21733         * modules/unicase/u8-toupper: Likewise.
21734         * modules/unicase/u16-casecmp: Likewise.
21735         * modules/unicase/u16-casecoll: Likewise.
21736         * modules/unicase/u16-casefold: Likewise.
21737         * modules/unicase/u16-casexfrm: Likewise.
21738         * modules/unicase/u16-ct-casefold: Likewise.
21739         * modules/unicase/u16-ct-tolower: Likewise.
21740         * modules/unicase/u16-ct-totitle: Likewise.
21741         * modules/unicase/u16-ct-toupper: Likewise.
21742         * modules/unicase/u16-is-cased: Likewise.
21743         * modules/unicase/u16-is-casefolded: Likewise.
21744         * modules/unicase/u16-is-lowercase: Likewise.
21745         * modules/unicase/u16-is-titlecase: Likewise.
21746         * modules/unicase/u16-is-uppercase: Likewise.
21747         * modules/unicase/u16-prefix-context: Likewise.
21748         * modules/unicase/u16-suffix-context: Likewise.
21749         * modules/unicase/u16-tolower: Likewise.
21750         * modules/unicase/u16-totitle: Likewise.
21751         * modules/unicase/u16-toupper: Likewise.
21752         * modules/unicase/u32-casecmp: Likewise.
21753         * modules/unicase/u32-casecoll: Likewise.
21754         * modules/unicase/u32-casefold: Likewise.
21755         * modules/unicase/u32-casexfrm: Likewise.
21756         * modules/unicase/u32-ct-casefold: Likewise.
21757         * modules/unicase/u32-ct-tolower: Likewise.
21758         * modules/unicase/u32-ct-totitle: Likewise.
21759         * modules/unicase/u32-ct-toupper: Likewise.
21760         * modules/unicase/u32-is-cased: Likewise.
21761         * modules/unicase/u32-is-casefolded: Likewise.
21762         * modules/unicase/u32-is-lowercase: Likewise.
21763         * modules/unicase/u32-is-titlecase: Likewise.
21764         * modules/unicase/u32-is-uppercase: Likewise.
21765         * modules/unicase/u32-prefix-context: Likewise.
21766         * modules/unicase/u32-suffix-context: Likewise.
21767         * modules/unicase/u32-tolower: Likewise.
21768         * modules/unicase/u32-totitle: Likewise.
21769         * modules/unicase/u32-toupper: Likewise.
21770         * modules/unicase/ulc-casecmp: Likewise.
21771         * modules/unicase/ulc-casecoll: Likewise.
21772         * modules/unicase/ulc-casexfrm: Likewise.
21773         * modules/uniconv/u8-conv-from-enc: Likewise.
21774         * modules/uniconv/u8-conv-to-enc: Likewise.
21775         * modules/uniconv/u8-strconv-from-enc: Likewise.
21776         * modules/uniconv/u8-strconv-from-locale: Likewise.
21777         * modules/uniconv/u8-strconv-to-enc: Likewise.
21778         * modules/uniconv/u8-strconv-to-locale: Likewise.
21779         * modules/uniconv/u16-conv-from-enc: Likewise.
21780         * modules/uniconv/u16-conv-to-enc: Likewise.
21781         * modules/uniconv/u16-strconv-from-enc: Likewise.
21782         * modules/uniconv/u16-strconv-from-locale: Likewise.
21783         * modules/uniconv/u16-strconv-to-enc: Likewise.
21784         * modules/uniconv/u16-strconv-to-locale: Likewise.
21785         * modules/uniconv/u32-conv-from-enc: Likewise.
21786         * modules/uniconv/u32-conv-to-enc: Likewise.
21787         * modules/uniconv/u32-strconv-from-enc: Likewise.
21788         * modules/uniconv/u32-strconv-from-locale: Likewise.
21789         * modules/uniconv/u32-strconv-to-enc: Likewise.
21790         * modules/uniconv/u32-strconv-to-locale: Likewise.
21791         * modules/unictype/bidicategory-byname: Likewise.
21792         * modules/unictype/bidicategory-name: Likewise.
21793         * modules/unictype/bidicategory-of: Likewise.
21794         * modules/unictype/bidicategory-test: Likewise.
21795         * modules/unictype/block-list: Likewise.
21796         * modules/unictype/block-test: Likewise.
21797         * modules/unictype/category-C: Likewise.
21798         * modules/unictype/category-Cc: Likewise.
21799         * modules/unictype/category-Cf: Likewise.
21800         * modules/unictype/category-Cn: Likewise.
21801         * modules/unictype/category-Co: Likewise.
21802         * modules/unictype/category-Cs: Likewise.
21803         * modules/unictype/category-L: Likewise.
21804         * modules/unictype/category-Ll: Likewise.
21805         * modules/unictype/category-Lm: Likewise.
21806         * modules/unictype/category-Lo: Likewise.
21807         * modules/unictype/category-Lt: Likewise.
21808         * modules/unictype/category-Lu: Likewise.
21809         * modules/unictype/category-M: Likewise.
21810         * modules/unictype/category-Mc: Likewise.
21811         * modules/unictype/category-Me: Likewise.
21812         * modules/unictype/category-Mn: Likewise.
21813         * modules/unictype/category-N: Likewise.
21814         * modules/unictype/category-Nd: Likewise.
21815         * modules/unictype/category-Nl: Likewise.
21816         * modules/unictype/category-No: Likewise.
21817         * modules/unictype/category-P: Likewise.
21818         * modules/unictype/category-Pc: Likewise.
21819         * modules/unictype/category-Pd: Likewise.
21820         * modules/unictype/category-Pe: Likewise.
21821         * modules/unictype/category-Pf: Likewise.
21822         * modules/unictype/category-Pi: Likewise.
21823         * modules/unictype/category-Po: Likewise.
21824         * modules/unictype/category-Ps: Likewise.
21825         * modules/unictype/category-S: Likewise.
21826         * modules/unictype/category-Sc: Likewise.
21827         * modules/unictype/category-Sk: Likewise.
21828         * modules/unictype/category-Sm: Likewise.
21829         * modules/unictype/category-So: Likewise.
21830         * modules/unictype/category-Z: Likewise.
21831         * modules/unictype/category-Zl: Likewise.
21832         * modules/unictype/category-Zp: Likewise.
21833         * modules/unictype/category-Zs: Likewise.
21834         * modules/unictype/category-and: Likewise.
21835         * modules/unictype/category-and-not: Likewise.
21836         * modules/unictype/category-byname: Likewise.
21837         * modules/unictype/category-name: Likewise.
21838         * modules/unictype/category-none: Likewise.
21839         * modules/unictype/category-of: Likewise.
21840         * modules/unictype/category-or: Likewise.
21841         * modules/unictype/category-test: Likewise.
21842         * modules/unictype/combining-class: Likewise.
21843         * modules/unictype/ctype-alnum: Likewise.
21844         * modules/unictype/ctype-alpha: Likewise.
21845         * modules/unictype/ctype-blank: Likewise.
21846         * modules/unictype/ctype-cntrl: Likewise.
21847         * modules/unictype/ctype-digit: Likewise.
21848         * modules/unictype/ctype-graph: Likewise.
21849         * modules/unictype/ctype-lower: Likewise.
21850         * modules/unictype/ctype-print: Likewise.
21851         * modules/unictype/ctype-punct: Likewise.
21852         * modules/unictype/ctype-space: Likewise.
21853         * modules/unictype/ctype-upper: Likewise.
21854         * modules/unictype/ctype-xdigit: Likewise.
21855         * modules/unictype/decimal-digit: Likewise.
21856         * modules/unictype/digit: Likewise.
21857         * modules/unictype/mirror: Likewise.
21858         * modules/unictype/numeric: Likewise.
21859         * modules/unictype/property-alphabetic: Likewise.
21860         * modules/unictype/property-ascii-hex-digit: Likewise.
21861         * modules/unictype/property-bidi-arabic-digit: Likewise.
21862         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
21863         * modules/unictype/property-bidi-block-separator: Likewise.
21864         * modules/unictype/property-bidi-boundary-neutral: Likewise.
21865         * modules/unictype/property-bidi-common-separator: Likewise.
21866         * modules/unictype/property-bidi-control: Likewise.
21867         * modules/unictype/property-bidi-embedding-or-override: Likewise.
21868         * modules/unictype/property-bidi-eur-num-separator: Likewise.
21869         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
21870         * modules/unictype/property-bidi-european-digit: Likewise.
21871         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
21872         * modules/unictype/property-bidi-left-to-right: Likewise.
21873         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
21874         * modules/unictype/property-bidi-other-neutral: Likewise.
21875         * modules/unictype/property-bidi-pdf: Likewise.
21876         * modules/unictype/property-bidi-segment-separator: Likewise.
21877         * modules/unictype/property-bidi-whitespace: Likewise.
21878         * modules/unictype/property-byname: Likewise.
21879         * modules/unictype/property-combining: Likewise.
21880         * modules/unictype/property-composite: Likewise.
21881         * modules/unictype/property-currency-symbol: Likewise.
21882         * modules/unictype/property-dash: Likewise.
21883         * modules/unictype/property-decimal-digit: Likewise.
21884         * modules/unictype/property-default-ignorable-code-point: Likewise.
21885         * modules/unictype/property-deprecated: Likewise.
21886         * modules/unictype/property-diacritic: Likewise.
21887         * modules/unictype/property-extender: Likewise.
21888         * modules/unictype/property-format-control: Likewise.
21889         * modules/unictype/property-grapheme-base: Likewise.
21890         * modules/unictype/property-grapheme-extend: Likewise.
21891         * modules/unictype/property-grapheme-link: Likewise.
21892         * modules/unictype/property-hex-digit: Likewise.
21893         * modules/unictype/property-hyphen: Likewise.
21894         * modules/unictype/property-id-continue: Likewise.
21895         * modules/unictype/property-id-start: Likewise.
21896         * modules/unictype/property-ideographic: Likewise.
21897         * modules/unictype/property-ids-binary-operator: Likewise.
21898         * modules/unictype/property-ids-trinary-operator: Likewise.
21899         * modules/unictype/property-ignorable-control: Likewise.
21900         * modules/unictype/property-iso-control: Likewise.
21901         * modules/unictype/property-join-control: Likewise.
21902         * modules/unictype/property-left-of-pair: Likewise.
21903         * modules/unictype/property-line-separator: Likewise.
21904         * modules/unictype/property-logical-order-exception: Likewise.
21905         * modules/unictype/property-lowercase: Likewise.
21906         * modules/unictype/property-math: Likewise.
21907         * modules/unictype/property-non-break: Likewise.
21908         * modules/unictype/property-not-a-character: Likewise.
21909         * modules/unictype/property-numeric: Likewise.
21910         * modules/unictype/property-other-alphabetic: Likewise.
21911         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
21912         * modules/unictype/property-other-grapheme-extend: Likewise.
21913         * modules/unictype/property-other-id-continue: Likewise.
21914         * modules/unictype/property-other-id-start: Likewise.
21915         * modules/unictype/property-other-lowercase: Likewise.
21916         * modules/unictype/property-other-math: Likewise.
21917         * modules/unictype/property-other-uppercase: Likewise.
21918         * modules/unictype/property-paired-punctuation: Likewise.
21919         * modules/unictype/property-paragraph-separator: Likewise.
21920         * modules/unictype/property-pattern-syntax: Likewise.
21921         * modules/unictype/property-pattern-white-space: Likewise.
21922         * modules/unictype/property-private-use: Likewise.
21923         * modules/unictype/property-punctuation: Likewise.
21924         * modules/unictype/property-quotation-mark: Likewise.
21925         * modules/unictype/property-radical: Likewise.
21926         * modules/unictype/property-sentence-terminal: Likewise.
21927         * modules/unictype/property-soft-dotted: Likewise.
21928         * modules/unictype/property-space: Likewise.
21929         * modules/unictype/property-terminal-punctuation: Likewise.
21930         * modules/unictype/property-test: Likewise.
21931         * modules/unictype/property-titlecase: Likewise.
21932         * modules/unictype/property-unassigned-code-value: Likewise.
21933         * modules/unictype/property-unified-ideograph: Likewise.
21934         * modules/unictype/property-uppercase: Likewise.
21935         * modules/unictype/property-variation-selector: Likewise.
21936         * modules/unictype/property-white-space: Likewise.
21937         * modules/unictype/property-xid-continue: Likewise.
21938         * modules/unictype/property-xid-start: Likewise.
21939         * modules/unictype/property-zero-width: Likewise.
21940         * modules/unictype/scripts: Likewise.
21941         * modules/unictype/syntax-c-ident: Likewise.
21942         * modules/unictype/syntax-c-whitespace: Likewise.
21943         * modules/unictype/syntax-java-ident: Likewise.
21944         * modules/unictype/syntax-java-whitespace: Likewise.
21945         * modules/unilbrk/u8-possible-linebreaks: Likewise.
21946         * modules/unilbrk/u8-width-linebreaks: Likewise.
21947         * modules/unilbrk/u16-possible-linebreaks: Likewise.
21948         * modules/unilbrk/u16-width-linebreaks: Likewise.
21949         * modules/unilbrk/u32-possible-linebreaks: Likewise.
21950         * modules/unilbrk/u32-width-linebreaks: Likewise.
21951         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
21952         * modules/unilbrk/ulc-width-linebreaks: Likewise.
21953         * modules/uniname/uniname: Likewise.
21954         * modules/uninorm/canonical-decomposition: Likewise.
21955         * modules/uninorm/composition: Likewise.
21956         * modules/uninorm/decomposing-form: Likewise.
21957         * modules/uninorm/decomposition: Likewise.
21958         * modules/uninorm/filter: Likewise.
21959         * modules/uninorm/nfc: Likewise.
21960         * modules/uninorm/nfd: Likewise.
21961         * modules/uninorm/nfkc: Likewise.
21962         * modules/uninorm/nfkd: Likewise.
21963         * modules/uninorm/u8-normalize: Likewise.
21964         * modules/uninorm/u8-normcmp: Likewise.
21965         * modules/uninorm/u8-normcoll: Likewise.
21966         * modules/uninorm/u8-normxfrm: Likewise.
21967         * modules/uninorm/u16-normalize: Likewise.
21968         * modules/uninorm/u16-normcmp: Likewise.
21969         * modules/uninorm/u16-normcoll: Likewise.
21970         * modules/uninorm/u16-normxfrm: Likewise.
21971         * modules/uninorm/u32-normalize: Likewise.
21972         * modules/uninorm/u32-normcmp: Likewise.
21973         * modules/uninorm/u32-normcoll: Likewise.
21974         * modules/uninorm/u32-normxfrm: Likewise.
21975         * modules/unistdio/u8-asnprintf: Likewise.
21976         * modules/unistdio/u8-asprintf: Likewise.
21977         * modules/unistdio/u8-snprintf: Likewise.
21978         * modules/unistdio/u8-sprintf: Likewise.
21979         * modules/unistdio/u8-u8-asnprintf: Likewise.
21980         * modules/unistdio/u8-u8-asprintf: Likewise.
21981         * modules/unistdio/u8-u8-snprintf: Likewise.
21982         * modules/unistdio/u8-u8-sprintf: Likewise.
21983         * modules/unistdio/u8-u8-vasnprintf: Likewise.
21984         * modules/unistdio/u8-u8-vasprintf: Likewise.
21985         * modules/unistdio/u8-u8-vsnprintf: Likewise.
21986         * modules/unistdio/u8-u8-vsprintf: Likewise.
21987         * modules/unistdio/u8-vasnprintf: Likewise.
21988         * modules/unistdio/u8-vasprintf: Likewise.
21989         * modules/unistdio/u8-vsnprintf: Likewise.
21990         * modules/unistdio/u8-vsprintf: Likewise.
21991         * modules/unistdio/u16-asnprintf: Likewise.
21992         * modules/unistdio/u16-asprintf: Likewise.
21993         * modules/unistdio/u16-snprintf: Likewise.
21994         * modules/unistdio/u16-sprintf: Likewise.
21995         * modules/unistdio/u16-u16-asnprintf: Likewise.
21996         * modules/unistdio/u16-u16-asprintf: Likewise.
21997         * modules/unistdio/u16-u16-snprintf: Likewise.
21998         * modules/unistdio/u16-u16-sprintf: Likewise.
21999         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22000         * modules/unistdio/u16-u16-vasprintf: Likewise.
22001         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22002         * modules/unistdio/u16-u16-vsprintf: Likewise.
22003         * modules/unistdio/u16-vasnprintf: Likewise.
22004         * modules/unistdio/u16-vasprintf: Likewise.
22005         * modules/unistdio/u16-vsnprintf: Likewise.
22006         * modules/unistdio/u16-vsprintf: Likewise.
22007         * modules/unistdio/u32-asnprintf: Likewise.
22008         * modules/unistdio/u32-asprintf: Likewise.
22009         * modules/unistdio/u32-snprintf: Likewise.
22010         * modules/unistdio/u32-sprintf: Likewise.
22011         * modules/unistdio/u32-u32-asnprintf: Likewise.
22012         * modules/unistdio/u32-u32-asprintf: Likewise.
22013         * modules/unistdio/u32-u32-snprintf: Likewise.
22014         * modules/unistdio/u32-u32-sprintf: Likewise.
22015         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22016         * modules/unistdio/u32-u32-vasprintf: Likewise.
22017         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22018         * modules/unistdio/u32-u32-vsprintf: Likewise.
22019         * modules/unistdio/u32-vasnprintf: Likewise.
22020         * modules/unistdio/u32-vasprintf: Likewise.
22021         * modules/unistdio/u32-vsnprintf: Likewise.
22022         * modules/unistdio/u32-vsprintf: Likewise.
22023         * modules/unistdio/ulc-asnprintf: Likewise.
22024         * modules/unistdio/ulc-asprintf: Likewise.
22025         * modules/unistdio/ulc-fprintf: Likewise.
22026         * modules/unistdio/ulc-snprintf: Likewise.
22027         * modules/unistdio/ulc-sprintf: Likewise.
22028         * modules/unistdio/ulc-vasnprintf: Likewise.
22029         * modules/unistdio/ulc-vasprintf: Likewise.
22030         * modules/unistdio/ulc-vfprintf: Likewise.
22031         * modules/unistdio/ulc-vsnprintf: Likewise.
22032         * modules/unistdio/ulc-vsprintf: Likewise.
22033         * modules/unistr/u8-check: Likewise.
22034         * modules/unistr/u8-chr: Likewise.
22035         * modules/unistr/u8-cmp: Likewise.
22036         * modules/unistr/u8-cmp2: Likewise.
22037         * modules/unistr/u8-cpy: Likewise.
22038         * modules/unistr/u8-cpy-alloc: Likewise.
22039         * modules/unistr/u8-endswith: Likewise.
22040         * modules/unistr/u8-mblen: Likewise.
22041         * modules/unistr/u8-mbsnlen: Likewise.
22042         * modules/unistr/u8-mbtouc: Likewise.
22043         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22044         * modules/unistr/u8-mbtoucr: Likewise.
22045         * modules/unistr/u8-move: Likewise.
22046         * modules/unistr/u8-next: Likewise.
22047         * modules/unistr/u8-prev: Likewise.
22048         * modules/unistr/u8-set: Likewise.
22049         * modules/unistr/u8-startswith: Likewise.
22050         * modules/unistr/u8-stpcpy: Likewise.
22051         * modules/unistr/u8-stpncpy: Likewise.
22052         * modules/unistr/u8-strcat: Likewise.
22053         * modules/unistr/u8-strchr: Likewise.
22054         * modules/unistr/u8-strcmp: Likewise.
22055         * modules/unistr/u8-strcoll: Likewise.
22056         * modules/unistr/u8-strcpy: Likewise.
22057         * modules/unistr/u8-strcspn: Likewise.
22058         * modules/unistr/u8-strdup: Likewise.
22059         * modules/unistr/u8-strlen: Likewise.
22060         * modules/unistr/u8-strmblen: Likewise.
22061         * modules/unistr/u8-strmbtouc: Likewise.
22062         * modules/unistr/u8-strncat: Likewise.
22063         * modules/unistr/u8-strncmp: Likewise.
22064         * modules/unistr/u8-strncpy: Likewise.
22065         * modules/unistr/u8-strnlen: Likewise.
22066         * modules/unistr/u8-strpbrk: Likewise.
22067         * modules/unistr/u8-strrchr: Likewise.
22068         * modules/unistr/u8-strspn: Likewise.
22069         * modules/unistr/u8-strstr: Likewise.
22070         * modules/unistr/u8-strtok: Likewise.
22071         * modules/unistr/u8-to-u16: Likewise.
22072         * modules/unistr/u8-to-u32: Likewise.
22073         * modules/unistr/u8-uctomb: Likewise.
22074         * modules/unistr/u16-check: Likewise.
22075         * modules/unistr/u16-chr: Likewise.
22076         * modules/unistr/u16-cmp: Likewise.
22077         * modules/unistr/u16-cmp2: Likewise.
22078         * modules/unistr/u16-cpy: Likewise.
22079         * modules/unistr/u16-cpy-alloc: Likewise.
22080         * modules/unistr/u16-endswith: Likewise.
22081         * modules/unistr/u16-mblen: Likewise.
22082         * modules/unistr/u16-mbsnlen: Likewise.
22083         * modules/unistr/u16-mbtouc: Likewise.
22084         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22085         * modules/unistr/u16-mbtoucr: Likewise.
22086         * modules/unistr/u16-move: Likewise.
22087         * modules/unistr/u16-next: Likewise.
22088         * modules/unistr/u16-prev: Likewise.
22089         * modules/unistr/u16-set: Likewise.
22090         * modules/unistr/u16-startswith: Likewise.
22091         * modules/unistr/u16-stpcpy: Likewise.
22092         * modules/unistr/u16-stpncpy: Likewise.
22093         * modules/unistr/u16-strcat: Likewise.
22094         * modules/unistr/u16-strchr: Likewise.
22095         * modules/unistr/u16-strcmp: Likewise.
22096         * modules/unistr/u16-strcoll: Likewise.
22097         * modules/unistr/u16-strcpy: Likewise.
22098         * modules/unistr/u16-strcspn: Likewise.
22099         * modules/unistr/u16-strdup: Likewise.
22100         * modules/unistr/u16-strlen: Likewise.
22101         * modules/unistr/u16-strmblen: Likewise.
22102         * modules/unistr/u16-strmbtouc: Likewise.
22103         * modules/unistr/u16-strncat: Likewise.
22104         * modules/unistr/u16-strncmp: Likewise.
22105         * modules/unistr/u16-strncpy: Likewise.
22106         * modules/unistr/u16-strnlen: Likewise.
22107         * modules/unistr/u16-strpbrk: Likewise.
22108         * modules/unistr/u16-strrchr: Likewise.
22109         * modules/unistr/u16-strspn: Likewise.
22110         * modules/unistr/u16-strstr: Likewise.
22111         * modules/unistr/u16-strtok: Likewise.
22112         * modules/unistr/u16-to-u32: Likewise.
22113         * modules/unistr/u16-to-u8: Likewise.
22114         * modules/unistr/u16-uctomb: Likewise.
22115         * modules/unistr/u32-check: Likewise.
22116         * modules/unistr/u32-chr: Likewise.
22117         * modules/unistr/u32-cmp: Likewise.
22118         * modules/unistr/u32-cmp2: Likewise.
22119         * modules/unistr/u32-cpy: Likewise.
22120         * modules/unistr/u32-cpy-alloc: Likewise.
22121         * modules/unistr/u32-endswith: Likewise.
22122         * modules/unistr/u32-mblen: Likewise.
22123         * modules/unistr/u32-mbsnlen: Likewise.
22124         * modules/unistr/u32-mbtouc: Likewise.
22125         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22126         * modules/unistr/u32-mbtoucr: Likewise.
22127         * modules/unistr/u32-move: Likewise.
22128         * modules/unistr/u32-next: Likewise.
22129         * modules/unistr/u32-prev: Likewise.
22130         * modules/unistr/u32-set: Likewise.
22131         * modules/unistr/u32-startswith: Likewise.
22132         * modules/unistr/u32-stpcpy: Likewise.
22133         * modules/unistr/u32-stpncpy: Likewise.
22134         * modules/unistr/u32-strcat: Likewise.
22135         * modules/unistr/u32-strchr: Likewise.
22136         * modules/unistr/u32-strcmp: Likewise.
22137         * modules/unistr/u32-strcoll: Likewise.
22138         * modules/unistr/u32-strcpy: Likewise.
22139         * modules/unistr/u32-strcspn: Likewise.
22140         * modules/unistr/u32-strdup: Likewise.
22141         * modules/unistr/u32-strlen: Likewise.
22142         * modules/unistr/u32-strmblen: Likewise.
22143         * modules/unistr/u32-strmbtouc: Likewise.
22144         * modules/unistr/u32-strncat: Likewise.
22145         * modules/unistr/u32-strncmp: Likewise.
22146         * modules/unistr/u32-strncpy: Likewise.
22147         * modules/unistr/u32-strnlen: Likewise.
22148         * modules/unistr/u32-strpbrk: Likewise.
22149         * modules/unistr/u32-strrchr: Likewise.
22150         * modules/unistr/u32-strspn: Likewise.
22151         * modules/unistr/u32-strstr: Likewise.
22152         * modules/unistr/u32-strtok: Likewise.
22153         * modules/unistr/u32-to-u16: Likewise.
22154         * modules/unistr/u32-to-u8: Likewise.
22155         * modules/unistr/u32-uctomb: Likewise.
22156         * modules/uniwbrk/u8-wordbreaks: Likewise.
22157         * modules/uniwbrk/u16-wordbreaks: Likewise.
22158         * modules/uniwbrk/u32-wordbreaks: Likewise.
22159         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22160         * modules/uniwbrk/wordbreak-property: Likewise.
22161         * modules/uniwidth/u8-strwidth: Likewise.
22162         * modules/uniwidth/u8-width: Likewise.
22163         * modules/uniwidth/u16-strwidth: Likewise.
22164         * modules/uniwidth/u16-width: Likewise.
22165         * modules/uniwidth/u32-strwidth: Likewise.
22166         * modules/uniwidth/u32-width: Likewise.
22167         * modules/uniwidth/width: Likewise.
22168         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22169         with $(LIBUNISTRING).
22170         * modules/unicase/ignorable-tests: Likewise.
22171         * modules/unicase/locale-language-tests: Likewise.
22172         * modules/unicase/tolower-tests: Likewise.
22173         * modules/unicase/totitle-tests: Likewise.
22174         * modules/unicase/toupper-tests: Likewise.
22175         * modules/unicase/u8-casecmp-tests: Likewise.
22176         * modules/unicase/u8-casecoll-tests: Likewise.
22177         * modules/unicase/u8-casefold-tests: Likewise.
22178         * modules/unicase/u8-is-cased-tests: Likewise.
22179         * modules/unicase/u8-is-casefolded-tests: Likewise.
22180         * modules/unicase/u8-is-lowercase-tests: Likewise.
22181         * modules/unicase/u8-is-titlecase-tests: Likewise.
22182         * modules/unicase/u8-is-uppercase-tests: Likewise.
22183         * modules/unicase/u8-tolower-tests: Likewise.
22184         * modules/unicase/u8-totitle-tests: Likewise.
22185         * modules/unicase/u8-toupper-tests: Likewise.
22186         * modules/unicase/u16-casecmp-tests: Likewise.
22187         * modules/unicase/u16-casecoll-tests: Likewise.
22188         * modules/unicase/u16-casefold-tests: Likewise.
22189         * modules/unicase/u16-is-cased-tests: Likewise.
22190         * modules/unicase/u16-is-casefolded-tests: Likewise.
22191         * modules/unicase/u16-is-lowercase-tests: Likewise.
22192         * modules/unicase/u16-is-titlecase-tests: Likewise.
22193         * modules/unicase/u16-is-uppercase-tests: Likewise.
22194         * modules/unicase/u16-tolower-tests: Likewise.
22195         * modules/unicase/u16-totitle-tests: Likewise.
22196         * modules/unicase/u16-toupper-tests: Likewise.
22197         * modules/unicase/u32-casecmp-tests: Likewise.
22198         * modules/unicase/u32-casecoll-tests: Likewise.
22199         * modules/unicase/u32-casefold-tests: Likewise.
22200         * modules/unicase/u32-is-cased-tests: Likewise.
22201         * modules/unicase/u32-is-casefolded-tests: Likewise.
22202         * modules/unicase/u32-is-lowercase-tests: Likewise.
22203         * modules/unicase/u32-is-titlecase-tests: Likewise.
22204         * modules/unicase/u32-is-uppercase-tests: Likewise.
22205         * modules/unicase/u32-tolower-tests: Likewise.
22206         * modules/unicase/u32-totitle-tests: Likewise.
22207         * modules/unicase/u32-toupper-tests: Likewise.
22208         * modules/unicase/ulc-casecmp-tests: Likewise.
22209         * modules/unicase/ulc-casecoll-tests: Likewise.
22210         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22211         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22212         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22213         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22214         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22215         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22216         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22217         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22218         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22219         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22220         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22221         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22222         * modules/unictype/bidicategory-byname-tests: Likewise.
22223         * modules/unictype/bidicategory-name-tests: Likewise.
22224         * modules/unictype/bidicategory-of-tests: Likewise.
22225         * modules/unictype/bidicategory-test-tests: Likewise.
22226         * modules/unictype/block-list-tests: Likewise.
22227         * modules/unictype/block-of-tests: Likewise.
22228         * modules/unictype/block-test-tests: Likewise.
22229         * modules/unictype/category-C-tests: Likewise.
22230         * modules/unictype/category-Cc-tests: Likewise.
22231         * modules/unictype/category-Cf-tests: Likewise.
22232         * modules/unictype/category-Cn-tests: Likewise.
22233         * modules/unictype/category-Co-tests: Likewise.
22234         * modules/unictype/category-Cs-tests: Likewise.
22235         * modules/unictype/category-L-tests: Likewise.
22236         * modules/unictype/category-Ll-tests: Likewise.
22237         * modules/unictype/category-Lm-tests: Likewise.
22238         * modules/unictype/category-Lo-tests: Likewise.
22239         * modules/unictype/category-Lt-tests: Likewise.
22240         * modules/unictype/category-Lu-tests: Likewise.
22241         * modules/unictype/category-M-tests: Likewise.
22242         * modules/unictype/category-Mc-tests: Likewise.
22243         * modules/unictype/category-Me-tests: Likewise.
22244         * modules/unictype/category-Mn-tests: Likewise.
22245         * modules/unictype/category-N-tests: Likewise.
22246         * modules/unictype/category-Nd-tests: Likewise.
22247         * modules/unictype/category-Nl-tests: Likewise.
22248         * modules/unictype/category-No-tests: Likewise.
22249         * modules/unictype/category-P-tests: Likewise.
22250         * modules/unictype/category-Pc-tests: Likewise.
22251         * modules/unictype/category-Pd-tests: Likewise.
22252         * modules/unictype/category-Pe-tests: Likewise.
22253         * modules/unictype/category-Pf-tests: Likewise.
22254         * modules/unictype/category-Pi-tests: Likewise.
22255         * modules/unictype/category-Po-tests: Likewise.
22256         * modules/unictype/category-Ps-tests: Likewise.
22257         * modules/unictype/category-S-tests: Likewise.
22258         * modules/unictype/category-Sc-tests: Likewise.
22259         * modules/unictype/category-Sk-tests: Likewise.
22260         * modules/unictype/category-Sm-tests: Likewise.
22261         * modules/unictype/category-So-tests: Likewise.
22262         * modules/unictype/category-Z-tests: Likewise.
22263         * modules/unictype/category-Zl-tests: Likewise.
22264         * modules/unictype/category-Zp-tests: Likewise.
22265         * modules/unictype/category-Zs-tests: Likewise.
22266         * modules/unictype/category-and-not-tests: Likewise.
22267         * modules/unictype/category-and-tests: Likewise.
22268         * modules/unictype/category-byname-tests: Likewise.
22269         * modules/unictype/category-name-tests: Likewise.
22270         * modules/unictype/category-none-tests: Likewise.
22271         * modules/unictype/category-of-tests: Likewise.
22272         * modules/unictype/category-or-tests: Likewise.
22273         * modules/unictype/category-test-withtable-tests: Likewise.
22274         * modules/unictype/combining-class-tests: Likewise.
22275         * modules/unictype/ctype-alnum-tests: Likewise.
22276         * modules/unictype/ctype-alpha-tests: Likewise.
22277         * modules/unictype/ctype-blank-tests: Likewise.
22278         * modules/unictype/ctype-cntrl-tests: Likewise.
22279         * modules/unictype/ctype-digit-tests: Likewise.
22280         * modules/unictype/ctype-graph-tests: Likewise.
22281         * modules/unictype/ctype-lower-tests: Likewise.
22282         * modules/unictype/ctype-print-tests: Likewise.
22283         * modules/unictype/ctype-punct-tests: Likewise.
22284         * modules/unictype/ctype-space-tests: Likewise.
22285         * modules/unictype/ctype-upper-tests: Likewise.
22286         * modules/unictype/ctype-xdigit-tests: Likewise.
22287         * modules/unictype/decimal-digit-tests: Likewise.
22288         * modules/unictype/digit-tests: Likewise.
22289         * modules/unictype/mirror-tests: Likewise.
22290         * modules/unictype/numeric-tests: Likewise.
22291         * modules/unictype/property-alphabetic-tests: Likewise.
22292         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
22293         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
22294         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
22295         * modules/unictype/property-bidi-block-separator-tests: Likewise.
22296         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
22297         * modules/unictype/property-bidi-common-separator-tests: Likewise.
22298         * modules/unictype/property-bidi-control-tests: Likewise.
22299         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
22300         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
22301         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
22302         * modules/unictype/property-bidi-european-digit-tests: Likewise.
22303         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
22304         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
22305         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
22306         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
22307         * modules/unictype/property-bidi-pdf-tests: Likewise.
22308         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
22309         * modules/unictype/property-bidi-whitespace-tests: Likewise.
22310         * modules/unictype/property-byname-tests: Likewise.
22311         * modules/unictype/property-combining-tests: Likewise.
22312         * modules/unictype/property-composite-tests: Likewise.
22313         * modules/unictype/property-currency-symbol-tests: Likewise.
22314         * modules/unictype/property-dash-tests: Likewise.
22315         * modules/unictype/property-decimal-digit-tests: Likewise.
22316         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
22317         * modules/unictype/property-deprecated-tests: Likewise.
22318         * modules/unictype/property-diacritic-tests: Likewise.
22319         * modules/unictype/property-extender-tests: Likewise.
22320         * modules/unictype/property-format-control-tests: Likewise.
22321         * modules/unictype/property-grapheme-base-tests: Likewise.
22322         * modules/unictype/property-grapheme-extend-tests: Likewise.
22323         * modules/unictype/property-grapheme-link-tests: Likewise.
22324         * modules/unictype/property-hex-digit-tests: Likewise.
22325         * modules/unictype/property-hyphen-tests: Likewise.
22326         * modules/unictype/property-id-continue-tests: Likewise.
22327         * modules/unictype/property-id-start-tests: Likewise.
22328         * modules/unictype/property-ideographic-tests: Likewise.
22329         * modules/unictype/property-ids-binary-operator-tests: Likewise.
22330         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
22331         * modules/unictype/property-ignorable-control-tests: Likewise.
22332         * modules/unictype/property-iso-control-tests: Likewise.
22333         * modules/unictype/property-join-control-tests: Likewise.
22334         * modules/unictype/property-left-of-pair-tests: Likewise.
22335         * modules/unictype/property-line-separator-tests: Likewise.
22336         * modules/unictype/property-logical-order-exception-tests: Likewise.
22337         * modules/unictype/property-lowercase-tests: Likewise.
22338         * modules/unictype/property-math-tests: Likewise.
22339         * modules/unictype/property-non-break-tests: Likewise.
22340         * modules/unictype/property-not-a-character-tests: Likewise.
22341         * modules/unictype/property-numeric-tests: Likewise.
22342         * modules/unictype/property-other-alphabetic-tests: Likewise.
22343         * modules/unictype/property-other-default-ignorable-code-point-tests:
22344         Likewise.
22345         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22346         * modules/unictype/property-other-id-continue-tests: Likewise.
22347         * modules/unictype/property-other-id-start-tests: Likewise.
22348         * modules/unictype/property-other-lowercase-tests: Likewise.
22349         * modules/unictype/property-other-math-tests: Likewise.
22350         * modules/unictype/property-other-uppercase-tests: Likewise.
22351         * modules/unictype/property-paired-punctuation-tests: Likewise.
22352         * modules/unictype/property-paragraph-separator-tests: Likewise.
22353         * modules/unictype/property-pattern-syntax-tests: Likewise.
22354         * modules/unictype/property-pattern-white-space-tests: Likewise.
22355         * modules/unictype/property-private-use-tests: Likewise.
22356         * modules/unictype/property-punctuation-tests: Likewise.
22357         * modules/unictype/property-quotation-mark-tests: Likewise.
22358         * modules/unictype/property-radical-tests: Likewise.
22359         * modules/unictype/property-sentence-terminal-tests: Likewise.
22360         * modules/unictype/property-soft-dotted-tests: Likewise.
22361         * modules/unictype/property-space-tests: Likewise.
22362         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22363         * modules/unictype/property-test-tests: Likewise.
22364         * modules/unictype/property-titlecase-tests: Likewise.
22365         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22366         * modules/unictype/property-unified-ideograph-tests: Likewise.
22367         * modules/unictype/property-uppercase-tests: Likewise.
22368         * modules/unictype/property-variation-selector-tests: Likewise.
22369         * modules/unictype/property-white-space-tests: Likewise.
22370         * modules/unictype/property-xid-continue-tests: Likewise.
22371         * modules/unictype/property-xid-start-tests: Likewise.
22372         * modules/unictype/property-zero-width-tests: Likewise.
22373         * modules/unictype/scripts-tests: Likewise.
22374         * modules/unictype/syntax-c-ident-tests: Likewise.
22375         * modules/unictype/syntax-c-whitespace-tests: Likewise.
22376         * modules/unictype/syntax-java-ident-tests: Likewise.
22377         * modules/unictype/syntax-java-whitespace-tests: Likewise.
22378         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
22379         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
22380         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
22381         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
22382         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
22383         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
22384         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
22385         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
22386         * modules/uniname/uniname-tests: Likewise.
22387         * modules/uninorm/canonical-decomposition-tests: Likewise.
22388         * modules/uninorm/compat-decomposition-tests: Likewise.
22389         * modules/uninorm/composition-tests: Likewise.
22390         * modules/uninorm/decomposing-form-tests: Likewise.
22391         * modules/uninorm/decomposition-tests: Likewise.
22392         * modules/uninorm/filter-tests: Likewise.
22393         * modules/uninorm/nfc-tests: Likewise.
22394         * modules/uninorm/nfd-tests: Likewise.
22395         * modules/uninorm/nfkc-tests: Likewise.
22396         * modules/uninorm/nfkd-tests: Likewise.
22397         * modules/uninorm/u8-normcmp-tests: Likewise.
22398         * modules/uninorm/u8-normcoll-tests: Likewise.
22399         * modules/uninorm/u16-normcmp-tests: Likewise.
22400         * modules/uninorm/u16-normcoll-tests: Likewise.
22401         * modules/uninorm/u32-normcmp-tests: Likewise.
22402         * modules/uninorm/u32-normcoll-tests: Likewise.
22403         * modules/unistdio/u8-asnprintf-tests: Likewise.
22404         * modules/unistdio/u8-vasnprintf-tests: Likewise.
22405         * modules/unistdio/u8-vasprintf-tests: Likewise.
22406         * modules/unistdio/u8-vsnprintf-tests: Likewise.
22407         * modules/unistdio/u8-vsprintf-tests: Likewise.
22408         * modules/unistdio/u16-asnprintf-tests: Likewise.
22409         * modules/unistdio/u16-vasnprintf-tests: Likewise.
22410         * modules/unistdio/u16-vasprintf-tests: Likewise.
22411         * modules/unistdio/u16-vsnprintf-tests: Likewise.
22412         * modules/unistdio/u16-vsprintf-tests: Likewise.
22413         * modules/unistdio/u32-asnprintf-tests: Likewise.
22414         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22415         * modules/unistdio/u32-vasprintf-tests: Likewise.
22416         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22417         * modules/unistdio/u32-vsprintf-tests: Likewise.
22418         * modules/unistdio/ulc-asnprintf-tests: Likewise.
22419         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
22420         * modules/unistdio/ulc-vasprintf-tests: Likewise.
22421         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
22422         * modules/unistdio/ulc-vsprintf-tests: Likewise.
22423         * modules/unistr/u8-check-tests: Likewise.
22424         * modules/unistr/u8-chr-tests: Likewise.
22425         * modules/unistr/u8-cmp-tests: Likewise.
22426         * modules/unistr/u8-cmp2-tests: Likewise.
22427         * modules/unistr/u8-cpy-alloc-tests: Likewise.
22428         * modules/unistr/u8-cpy-tests: Likewise.
22429         * modules/unistr/u8-mblen-tests: Likewise.
22430         * modules/unistr/u8-mbsnlen-tests: Likewise.
22431         * modules/unistr/u8-mbtouc-tests: Likewise.
22432         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
22433         * modules/unistr/u8-mbtoucr-tests: Likewise.
22434         * modules/unistr/u8-move-tests: Likewise.
22435         * modules/unistr/u8-next-tests: Likewise.
22436         * modules/unistr/u8-prev-tests: Likewise.
22437         * modules/unistr/u8-set-tests: Likewise.
22438         * modules/unistr/u8-stpcpy-tests: Likewise.
22439         * modules/unistr/u8-stpncpy-tests: Likewise.
22440         * modules/unistr/u8-strcat-tests: Likewise.
22441         * modules/unistr/u8-strcmp-tests: Likewise.
22442         * modules/unistr/u8-strcoll-tests: Likewise.
22443         * modules/unistr/u8-strcpy-tests: Likewise.
22444         * modules/unistr/u8-strdup-tests: Likewise.
22445         * modules/unistr/u8-strlen-tests: Likewise.
22446         * modules/unistr/u8-strmblen-tests: Likewise.
22447         * modules/unistr/u8-strmbtouc-tests: Likewise.
22448         * modules/unistr/u8-strncat-tests: Likewise.
22449         * modules/unistr/u8-strncmp-tests: Likewise.
22450         * modules/unistr/u8-strncpy-tests: Likewise.
22451         * modules/unistr/u8-strnlen-tests: Likewise.
22452         * modules/unistr/u8-to-u16-tests: Likewise.
22453         * modules/unistr/u8-to-u32-tests: Likewise.
22454         * modules/unistr/u8-uctomb-tests: Likewise.
22455         * modules/unistr/u16-check-tests: Likewise.
22456         * modules/unistr/u16-chr-tests: Likewise.
22457         * modules/unistr/u16-cmp-tests: Likewise.
22458         * modules/unistr/u16-cmp2-tests: Likewise.
22459         * modules/unistr/u16-cpy-alloc-tests: Likewise.
22460         * modules/unistr/u16-cpy-tests: Likewise.
22461         * modules/unistr/u16-mblen-tests: Likewise.
22462         * modules/unistr/u16-mbsnlen-tests: Likewise.
22463         * modules/unistr/u16-mbtouc-tests: Likewise.
22464         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
22465         * modules/unistr/u16-mbtoucr-tests: Likewise.
22466         * modules/unistr/u16-move-tests: Likewise.
22467         * modules/unistr/u16-next-tests: Likewise.
22468         * modules/unistr/u16-prev-tests: Likewise.
22469         * modules/unistr/u16-set-tests: Likewise.
22470         * modules/unistr/u16-stpcpy-tests: Likewise.
22471         * modules/unistr/u16-stpncpy-tests: Likewise.
22472         * modules/unistr/u16-strcat-tests: Likewise.
22473         * modules/unistr/u16-strcmp-tests: Likewise.
22474         * modules/unistr/u16-strcoll-tests: Likewise.
22475         * modules/unistr/u16-strcpy-tests: Likewise.
22476         * modules/unistr/u16-strdup-tests: Likewise.
22477         * modules/unistr/u16-strlen-tests: Likewise.
22478         * modules/unistr/u16-strmblen-tests: Likewise.
22479         * modules/unistr/u16-strmbtouc-tests: Likewise.
22480         * modules/unistr/u16-strncat-tests: Likewise.
22481         * modules/unistr/u16-strncmp-tests: Likewise.
22482         * modules/unistr/u16-strncpy-tests: Likewise.
22483         * modules/unistr/u16-strnlen-tests: Likewise.
22484         * modules/unistr/u16-to-u32-tests: Likewise.
22485         * modules/unistr/u16-to-u8-tests: Likewise.
22486         * modules/unistr/u16-uctomb-tests: Likewise.
22487         * modules/unistr/u32-check-tests: Likewise.
22488         * modules/unistr/u32-chr-tests: Likewise.
22489         * modules/unistr/u32-cmp-tests: Likewise.
22490         * modules/unistr/u32-cmp2-tests: Likewise.
22491         * modules/unistr/u32-cpy-alloc-tests: Likewise.
22492         * modules/unistr/u32-cpy-tests: Likewise.
22493         * modules/unistr/u32-mblen-tests: Likewise.
22494         * modules/unistr/u32-mbsnlen-tests: Likewise.
22495         * modules/unistr/u32-mbtouc-tests: Likewise.
22496         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
22497         * modules/unistr/u32-mbtoucr-tests: Likewise.
22498         * modules/unistr/u32-move-tests: Likewise.
22499         * modules/unistr/u32-next-tests: Likewise.
22500         * modules/unistr/u32-prev-tests: Likewise.
22501         * modules/unistr/u32-set-tests: Likewise.
22502         * modules/unistr/u32-stpcpy-tests: Likewise.
22503         * modules/unistr/u32-stpncpy-tests: Likewise.
22504         * modules/unistr/u32-strcat-tests: Likewise.
22505         * modules/unistr/u32-strcmp-tests: Likewise.
22506         * modules/unistr/u32-strcoll-tests: Likewise.
22507         * modules/unistr/u32-strcpy-tests: Likewise.
22508         * modules/unistr/u32-strdup-tests: Likewise.
22509         * modules/unistr/u32-strlen-tests: Likewise.
22510         * modules/unistr/u32-strmblen-tests: Likewise.
22511         * modules/unistr/u32-strmbtouc-tests: Likewise.
22512         * modules/unistr/u32-strncat-tests: Likewise.
22513         * modules/unistr/u32-strncmp-tests: Likewise.
22514         * modules/unistr/u32-strncpy-tests: Likewise.
22515         * modules/unistr/u32-strnlen-tests: Likewise.
22516         * modules/unistr/u32-to-u16-tests: Likewise.
22517         * modules/unistr/u32-to-u8-tests: Likewise.
22518         * modules/unistr/u32-uctomb-tests: Likewise.
22519         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
22520         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
22521         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
22522         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
22523         * modules/uniwidth/u8-strwidth-tests: Likewise.
22524         * modules/uniwidth/u8-width-tests: Likewise.
22525         * modules/uniwidth/u16-strwidth-tests: Likewise.
22526         * modules/uniwidth/u16-width-tests: Likewise.
22527         * modules/uniwidth/u32-strwidth-tests: Likewise.
22528         * modules/uniwidth/u32-width-tests: Likewise.
22529         * modules/uniwidth/width-tests: Likewise.
22530
22531 2010-05-18  Richard Jones  <rjones@redhat.com>
22532
22533         doc: users.txt: list hivex
22534         * users.txt: Add hivex.
22535
22536 2010-05-18  Richard Jones  <rjones@redhat.com>
22537
22538         doc: users.txt: list febootstrap
22539         * users.txt: Add febootstrap.
22540
22541 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
22542
22543         bootstrap: fix an error when gnulib is not used as a git submodule
22544         * build-aux/bootstrap (gnulib_path): If its length is zero then
22545         assign "gnulib" to it.
22546         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
22547
22548 2010-05-16  Bruno Haible  <bruno@clisp.org>
22549
22550         Avoid autoconf warnings about AM_ICONV.
22551         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
22552         2.64.
22553
22554 2010-05-16  Bruno Haible  <bruno@clisp.org>
22555
22556         absolute-header: Make the macro usable in more situations.
22557         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
22558         from gl_ABSOLUTE_HEADER.
22559         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
22560
22561 2010-05-16  James Youngman  <jay@gnu.org>
22562
22563         doc: update users.txt
22564         * users.txt: Add CSSC.
22565
22566 2010-05-16  Jim Meyering  <meyering@redhat.com>
22567
22568         init.sh: fix an error in the previous change; add more comments
22569         * tests/init.sh: Compare exit code in loop against 9, not 2.
22570         Patch by Bruno Haible.
22571         Make the two tests more similar by adding an empty "then" clause.
22572         Add comments.
22573
22574         init.sh: avoid unnecessary shell re-exec
22575         * tests/init.sh: Improve the re-exec-required check to first test the
22576         current shell.  If it passes the test, do not search for a shell that
22577         does pass, and do not re-exec.  This test is particularly contorted to
22578         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
22579         of $(...) evokes a syntax error and causes immediate shell exit with
22580         status 2.  Bruno Haible reported that the re-exec made it impossible
22581         to single-step through any init.sh-using script.
22582
22583 2010-05-16  Bruno Haible  <bruno@clisp.org>
22584
22585         Fix collision between gnulib's and libintl's printf replacements.
22586         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
22587         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
22588         (printf): When using GNU C, map the __printf__ function to rpl_printf
22589         via __asm__. When not using GNU C, define rpl_printf instead of
22590         __printf__.
22591         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
22592         commit.
22593         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
22594         commit.
22595         * m4/asm-underscore.m4: New file.
22596         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
22597         * modules/stdio (Files): Add m4/asm-underscore.m4.
22598         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
22599         Reported by Ben Pfaff.
22600
22601 2010-05-16  Bruno Haible  <bruno@clisp.org>
22602
22603         verify: Avoid skipping the test on openSUSE 11.0.
22604         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
22605
22606 2010-05-13  Bruno Haible  <bruno@clisp.org>
22607
22608         Avoid useless warnings from G++.
22609         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
22610         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
22611         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22612
22613 2010-05-11  Jim Meyering  <meyering@redhat.com>
22614
22615         maint.mk: tweak preceding change
22616         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
22617         regexps tighter by anchoring at EOL, and make the new group "shy"
22618         for slightly decreased overhead.
22619
22620 2010-05-11  Eric Blake  <eblake@redhat.com>
22621
22622         maint.mk: gnulib doesn't guarantee NSIG
22623         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
22624
22625 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22626
22627         test-pwrite.c: Remove unused variable declaration.
22628         * tests/test-pwrite.c (main): Remove read_buf declaration.
22629
22630         Remove useless test-pwrite.sh file.
22631         * tests/test-pwrite.sh: Delete file.
22632         * modules/pwrite-tests: Remove references.
22633         Reported by Bruno Haible.
22634
22635 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22636
22637         init.sh: fix a typo
22638         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
22639
22640 2010-05-10  Jim Meyering  <meyering@redhat.com>
22641
22642         maint.mk: avoid using a temporary file in the always-defined-macros check
22643         * top/maint.mk (.re-defmac): Remove rule.
22644         (gl_trap_): Remove definition.
22645         (sc_prohibit_always-defined_macros): Rewrite not to create and
22646         depend on a temporary file.  Instead, depend on GNU grep's ability
22647         to read a list of regular expressions from stdin when given "-f -".
22648
22649 2010-05-09  Bruno Haible  <bruno@clisp.org>
22650
22651         Update to GNU gettext 0.18, part 1.
22652         * m4/gettext.m4: Update to GNU gettext 0.18.
22653         * m4/intl.m4: Likewise.
22654         * m4/po.m4: Likewise.
22655         * modules/gettext (Files): Add m4/fcntl-o.m4.
22656         (configure.ac): Require gettext infrastructure from version 0.18.
22657
22658 2010-05-09  Jim Meyering  <meyering@redhat.com>
22659
22660         init.sh: enable MALLOC_PERTURB_
22661         * tests/init.sh: Enable glibc's malloc-perturbing option.
22662
22663         maint.mk: improve sc_cross_check_PATH_usage_in_tests
22664         With my recent change in init.sh from the two-line form:
22665             -#   : ${srcdir=.}
22666             -#   . "$srcdir/init.sh"; path_prepend_ .
22667             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
22668         I noticed that using the one-line form would cause this test
22669         to fail with a false-positive, or to stop working altogether,
22670         depending on whether help-version changed or all the tests did.
22671         * top/maint.mk (_hv_regex): Remove this definition.
22672         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
22673         (_hv_regex_strong): Use a stronger regex to check for conformance.
22674         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
22675         Give a separate diagnostic for lack of conforming use.
22676
22677         maint.mk: prohibit definition of symbols defined by gnulib
22678         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
22679         definition of symbols defined by gnulib.
22680
22681 2010-05-09  Bruno Haible  <bruno@clisp.org>
22682
22683         acl: Avoid test failure on Cygwin-hosted mingw.
22684         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
22685
22686 2010-05-09  Bruno Haible  <bruno@clisp.org>
22687
22688         error: Use system's fcntl function.
22689         * lib/error.c (fcntl): Undefine.
22690
22691 2010-05-09  Jim Meyering  <meyering@redhat.com>
22692
22693         verify: adjust formatting to be more consistent
22694         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
22695         argument-list '('s, and after one comma.
22696
22697 2010-05-09  Bruno Haible  <bruno@clisp.org>
22698
22699         error: More reliable output on mingw.
22700         * lib/error.c: Include <windows.h>.
22701         (is_open): New function.
22702         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
22703         defined.
22704
22705 2010-05-09  Bruno Haible  <bruno@clisp.org>
22706
22707         vasnprintf: Fix syntax errors in libintl build on mingw.
22708         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
22709         pad_ourselves and prec_ourselves after use.
22710
22711 2010-05-08  Bruno Haible  <bruno@clisp.org>
22712
22713         * lib/config.charset: Update comments for Cygwin 1.7.
22714         * lib/localcharset.c: Likewise.
22715
22716 2010-05-07  Jim Meyering  <meyering@redhat.com>
22717
22718         init.sh: improve comments
22719         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
22720         . "${srcdir=.}/init.sh"; path_prepend_ .
22721         Add a note about path_prepend_ and the alternative of using
22722         TESTS_ENVIRONMENT.
22723
22724 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22725
22726         exclude: Unescape hashed patterns in wildcard mode.
22727         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
22728         to the hash list.
22729         * tests/test-exclude8.sh: New test case.
22730         * modules/exclude-tests: Add new test.
22731
22732 2010-05-05  Eric Blake  <eblake@redhat.com>
22733
22734         verify: automate tests
22735         * modules/verify-tests: New module.
22736         * tests/test-verify.sh: New file.
22737         * tests/test-verify.c: Guard each negative test with a unique id.
22738         Also avoid warning about unused left hand of comma expressions.
22739
22740 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22741
22742         Further improvements to verify.h, suggested by Eric Blake.
22743         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
22744         the GL_* versions, to avoid collision with OpenGL.
22745         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
22746         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
22747         than testing merely whether it's defined.
22748
22749         Modify verify.h to pacify gcc -Wredundant_decls.
22750         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
22751         These use the prefix "GL_" since they're likely to be useful elsewhere.
22752         We may need to break them out into a different .h file.
22753         (__COUNTER__): Define to 0 if the compiler doesn't support it.
22754         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
22755         of verify_function__.
22756
22757 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22758
22759         Tests for module pwrite.
22760         * modules/pwrite-tests: New file.
22761         * tests/test-pwrite.sh: New file.
22762         * tests/test-pwrite.c: New file.
22763
22764         New module pwrite.
22765         * lib/unistd.in.h (pwrite): New declaration.
22766         * lib/pwrite.c: New file, from glibc with modifications.
22767         * m4/pwrite.m4: New file.
22768         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
22769         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
22770         REPLACE_PWRITE.
22771         * modules/pwrite: New file.
22772         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
22773         REPLACE_PWRITE.
22774         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
22775         * doc/posix-functions/pwrite.texi: Mention the new module.
22776
22777 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22778
22779         pread: Update documentation.
22780         * doc/posix-functions/pread.texi: Mention the 'pread' module.
22781
22782 2010-05-04  Eric Blake  <eblake@redhat.com>
22783
22784         docs: update cygwin progress
22785         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
22786         this bug.
22787         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
22788         Added in cygwin 1.7.2.
22789         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
22790         Likewise.
22791         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
22792         Likewise.
22793         * doc/glibc-functions/dup3.texi (dup3): Likewise.
22794         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
22795         * doc/glibc-functions/accept4.texi (accept4): Likewise.
22796         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
22797         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
22798         Mention nproc module.
22799         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
22800         bug in cygwin 1.7.5 addition.
22801         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
22802         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
22803         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
22804         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
22805         1.7.5.
22806         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
22807         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
22808         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
22809         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
22810         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
22811         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
22812         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
22813         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
22814         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
22815         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
22816         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
22817         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
22818         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
22819         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
22820         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
22821         Likewise.
22822         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
22823         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
22824         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
22825         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
22826         Likewise.
22827         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
22828         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
22829         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
22830         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
22831         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
22832         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
22833         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
22834         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
22835         Likewise.
22836         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
22837         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
22838         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
22839         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
22840         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
22841         Likewise.
22842         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
22843         Likewise.
22844         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
22845         Likewise.
22846         * doc/glibc-functions/xdrrec_endofrecord.texi
22847         (xdrrec_endofrecord): Likewise.
22848         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
22849         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
22850         Likewise.
22851         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
22852         Likewise.
22853
22854 2010-05-04  Jim Meyering  <meyering@redhat.com>
22855
22856         gendocs.sh: make its "-s FILE" option more useful
22857         * build-aux/gendocs.sh: When honoring the -s FILE option, update
22858         $PACKAGE to reflect the probably-different basename of "FILE".
22859
22860 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
22861
22862         bootstrap: don't ignore download_po_files failure
22863         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
22864         failure.
22865
22866 2010-05-03  Jim Meyering  <meyering@redhat.com>
22867
22868         maint.mk: allow to pass options to gendocs.sh
22869         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
22870         (gendocs_options_): New overridable variable.
22871
22872         gnu-web-doc-update: don't ignore configure or build failure
22873         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
22874
22875         announce-gen: backslash-escape '@'s in --help output
22876         * build-aux/announce-gen: Fix syntax errors.
22877
22878         maint.mk, announce-gen: allow project-specific announcement mail headers
22879         * top/maint.mk (translation_project_): Define default.
22880         (announcement_Cc_, announcement_mail_headers_): Likewise.
22881         (announcement): Invoke announce-gen with new --mail-headers option.
22882         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
22883
22884         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
22885         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
22886         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
22887         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
22888         line in the "err2" output file when running "make check" in verbose
22889         mode (i.e., with set -x enabled).
22890
22891 2010-05-03  Bruno Haible  <bruno@clisp.org>
22892
22893         wctob: Fix for weird platforms.
22894         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
22895         argument value.
22896
22897 2010-05-03  Jim Meyering  <meyering@redhat.com>
22898
22899         maint.mk: prohibit unwarranted use of <strings.h>
22900         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
22901         strings.h in a file that does not also use strcasecmp, strncasecmp,
22902         ffs or ffsll.
22903
22904         maint.mk: remove obsolete comments
22905         * top/maint.mk: Remove stale, commented-out rules.
22906
22907 2010-05-02  Bruno Haible  <bruno@clisp.org>
22908
22909         wcwidth: Declare also when it's aliased.
22910         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
22911         macro.
22912
22913 2010-05-02  Bruno Haible  <bruno@clisp.org>
22914
22915         Fix regression from 2010-04-25.
22916         * gnulib-tool (func_modules_transitive_closure): Check the status of
22917         all modules, not only of the tests that are of the form foo-tests where
22918         foo is a module.
22919
22920 2010-05-02  Bruno Haible  <bruno@clisp.org>
22921
22922         wctob: Work around nasty Cygwin 1.7.2 bug.
22923         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
22924         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
22925
22926 2010-05-01  Bruno Haible  <bruno@clisp.org>
22927
22928         fpurge: Sharper test.
22929         * tests/test-fpurge.c (main): Add one more ftell check.
22930         * modules/fpurge-tests (Depends-on): Add ftell.
22931         Suggested by Eric Blake.
22932
22933 2010-05-01  Bruno Haible  <bruno@clisp.org>
22934
22935         ftello: Another test.
22936         * tests/test-ftello3.c: New file.
22937         * modules/ftello-tests (Files): Add it.
22938         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22939         MOSTLYCLEANFILES.
22940
22941         ftell: Another test.
22942         * tests/test-ftell3.c: New file.
22943         * modules/ftell-tests (Files): Add it.
22944         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22945         MOSTLYCLEANFILES.
22946
22947 2010-05-01  Bruno Haible  <bruno@clisp.org>
22948
22949         ftell, ftello: Work around Solaris bug.
22950         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
22951         * lib/ftello.c: Include stdio-impl.h.
22952         (ftello): On Solaris, when _IOWRT is set, compute the result without
22953         looking at _IOREAD.
22954         * modules/ftello (Files): Add lib/stdio-impl.h.
22955         * doc/posix-functions/ftell.texi: Mention Solaris bug.
22956         * doc/posix-functions/ftello.texi: Likewise.
22957         Reported by Eric Blake.
22958
22959 2010-05-01  Bruno Haible  <bruno@clisp.org>
22960
22961         freading: Adapt to special meaning of _IOREAD flag on Solaris.
22962         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
22963         the _IOWRT flag is also set.
22964
22965 2010-05-01  Bruno Haible  <bruno@clisp.org>
22966
22967         Fix doc about a HP-UX stdio bug.
22968         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
22969         * doc/posix-functions/ftello.texi: Likewise.
22970
22971 2010-05-01  Bruno Haible  <bruno@clisp.org>
22972
22973         lseek test: Fix failure on Solaris.
22974         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
22975         output.
22976
22977 2010-04-30  Jim Meyering  <meyering@redhat.com>
22978
22979         bootstrap: don't ignore failure to generate po*/Makevars
22980         * build-aux/bootstrap (with_gettext): Don't ignore failure
22981         to create po/Makevars or runtime-po/Makevars.
22982
22983 2010-04-29  Eric Blake  <eblake@redhat.com>
22984
22985         headers: relax license to LGPLv2+
22986         * modules/fcntl-h (License): Relax license.
22987         * modules/getopt-posix (License): Likewise.
22988         * modules/locale (License): Likewise.
22989         * modules/math (License): Likewise.
22990         * modules/pty (License): Likewise.
22991         * modules/sched (License): Likewise.
22992         * modules/search (License): Likewise.
22993         * modules/spawn (License): Likewise.
22994         * modules/stdarg (License): Likewise.
22995         * modules/sysexits (License): Likewise.
22996
22997 2010-04-29  Jim Meyering  <meyering@redhat.com>
22998
22999         inttypes: relax license to LGPLv2+
23000         * modules/inttypes (License): Relax license.
23001
23002 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23003
23004         * top/maint.mk (indent): Run twice to produce idempotent results.
23005
23006 2010-04-28  Bruno Haible  <bruno@clisp.org>
23007
23008         getdate: Generate getdate.c in the source directory.
23009         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23010         MOSTLYCLEANFILES.
23011         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23012
23013 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23014
23015         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23016         is not declared as a const *; avoid warnings in that case.
23017
23018 2010-04-28  Eric Blake  <eblake@redhat.com>
23019
23020         canonicalize-lgpl: avoid compiler warning
23021         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23022         declaration' / 'extraneous semicolon' warning with some compilers.
23023         Reported by Andreas Gruenbacher.
23024
23025 2010-04-28  Jim Meyering  <meyering@redhat.com>
23026
23027         init.sh: ensure a more reliable exit status when exiting via trap
23028         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23029         Inspired by patches from Dmitry V. Levin.
23030         Also trap on signal 3 (SIGQUIT).
23031
23032 2010-04-27  Bruno Haible  <bruno@clisp.org>
23033
23034         Update doc about utimes().
23035         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23036         'utimens' module.
23037         Reported by Andreas Gruenbacher <agruen@suse.de>.
23038
23039 2010-04-27  Eric Blake  <eblake@redhat.com>
23040
23041         full-read, full-write: relax license
23042         * modules/full-read (License): Drop to LGPLv2+.
23043         * modules/full-write (License): Likewise.
23044         * modules/safe-read (License): Likewise.
23045         * modules/safe-write (License): Likewise.
23046
23047         pthread: mention library for linking
23048         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23049
23050 2010-04-27  Jim Meyering  <meyering@redhat.com>
23051
23052         maint.mk: fix a bug introduced in last change
23053         * top/maint.mk (gl_assured_headers_): Now that all names are on
23054         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23055         is not anchored to end of word, it should be adequate.
23056
23057         maint.mk: avoid side-effect in latest syntax-check
23058         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23059         to run commands via $(shell...), and hence to incur cost only when
23060         the new rule is actually run.
23061
23062         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23063         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23064         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23065         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23066         (gl_assured_headers_, az_, AZ_): Define.
23067         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23068
23069 2010-04-26  Jim Meyering  <jim@meyering.net>
23070             Bruno Haible  <bruno@clisp.org>
23071
23072         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23073         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23074         Prompted by an exchange with Gilles Espinasse.
23075
23076 2010-04-26  Jim Meyering  <meyering@redhat.com>
23077
23078         git-version-gen: aesthetic tweak
23079         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23080         so that the command remains on a single line.
23081
23082 2010-04-26  Eric Blake  <eblake@redhat.com>
23083
23084         git-version-gen: allow use on EBCDIC hosts
23085         * build-aux/git-version-gen (dirty): Use literal rather than tying
23086         ourselves to ascii.
23087         Reported by Steve Goetze.
23088
23089 2010-04-25  Bruno Haible  <bruno@clisp.org>
23090
23091         netdb: Add support for GNULIB_POSIXCHECK.
23092         * lib/netdb.in.h: Include warn-on-use.h.
23093         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23094         functions are used when GNULIB_POSIXCHECK is defined and the
23095         getaddrinfo module is not in use.
23096         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23097         freeaddrinfo, gai_strerror, getnameinfo are declared.
23098         * modules/netdb (Depends-on): Add warn-on-use.
23099         (Makefile.am): Include warn-on-use.h in netdb.h.
23100
23101 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23102
23103         build: avoid "make check" failure without .git/ directory
23104         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23105         there is no .git/ directory.
23106
23107 2010-04-25  Bruno Haible  <bruno@clisp.org>
23108
23109         ptsname: Fix misuse of ttyname_r.
23110         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23111         of errno.
23112
23113 2010-04-25  Bruno Haible  <bruno@clisp.org>
23114
23115         ttyname_r: Make it work on Solaris 10.
23116         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23117         if the system function has the POSIX declaration. Test whether the
23118         function fails if the buffer is less than 128 bytes large.
23119         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23120         system's ttyname_r function. Provide a reasonably large buffer.
23121         * modules/ttyname_r (Depends-on): Add extensions.
23122         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23123
23124 2010-04-25  Bruno Haible  <bruno@clisp.org>
23125
23126         Use the 'extensions' module for some more functions on Solaris.
23127         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23128         module.
23129         * doc/posix-functions/ctime_r.texi: Likewise.
23130         * doc/posix-functions/getgrgid_r.texi: Likewise.
23131         * doc/posix-functions/getgrnam_r.texi: Likewise.
23132         * doc/posix-functions/getpwnam_r.texi: Likewise.
23133         * doc/posix-functions/getpwuid_r.texi: Likewise.
23134         * doc/posix-functions/readdir_r.texi: Likewise.
23135         * doc/posix-functions/sigwait.texi: Likewise.
23136         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23137         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23138
23139 2010-04-25  Bruno Haible  <bruno@clisp.org>
23140
23141         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23142         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23143         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23144         * lib/ttyname_r.c: Include <limits.h>.
23145         (ttyname_r): Define using the system's ttyname_r function, if it exists
23146         and not on Solaris.
23147         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23148         set.
23149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23150         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23151         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23152         Reported by Simon Josefsson.
23153
23154 2010-04-25  Bruno Haible  <bruno@clisp.org>
23155
23156         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23157         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23158         * doc/posix-functions/ctime_r.texi: Likewise.
23159         * doc/posix-functions/getgrgid_r.texi: Likewise.
23160         * doc/posix-functions/getgrnam_r.texi: Likewise.
23161         * doc/posix-functions/getlogin_r.texi: Likewise.
23162         * doc/posix-functions/getpwnam_r.texi: Likewise.
23163         * doc/posix-functions/getpwuid_r.texi: Likewise.
23164         * doc/posix-functions/readdir_r.texi: Likewise.
23165         * doc/posix-functions/sigwait.texi: Likewise.
23166         * doc/posix-functions/ttyname_r.texi: Likewise.
23167         Reported by Simon Josefsson.
23168
23169 2010-04-25  Bruno Haible  <bruno@clisp.org>
23170
23171         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23172         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23173         also to --create-testdir.
23174         (func_acceptable): Don't consider the status of *-tests modules here.
23175         (func_modules_transitive_closure): Consider it here, before including a
23176         test module.
23177         (func_import, func_create_testdir): Set inc_all_direct_tests,
23178         inc_all_indirect_tests.
23179         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23180         --create-testdir and --create-megatestdir.
23181
23182 2010-04-25  Bruno Haible  <bruno@clisp.org>
23183
23184         gnulib-tool: Add --without-*-tests options.
23185         * gnulib-tool (func_usage): Document the --without-*-tests options.
23186         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23187         excl_unportable_tests): New variables.
23188         Fail if they are specified with --import or --update.
23189         (func_acceptable): Respect the excl_*_tests variables.
23190         (func_import): Set the excl_*_tests variables to empty.
23191
23192 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23193             Bruno Haible  <bruno@clisp.org>
23194
23195         Work around a MacOS X 10.4 bug with openpty.
23196         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23197         * tests/test-openpty.c (main): Close the master side explicitly.
23198
23199 2010-04-25  Bruno Haible  <bruno@clisp.org>
23200
23201         strnlen: Fix a C++ test error on MacOS X and Solaris.
23202         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23203         the function is not declared.
23204         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23205         Simon Josefsson.
23206
23207 2010-04-24  Bruno Haible  <bruno@clisp.org>
23208
23209         Avoid a gcc warning.
23210         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23211         of correct type for %08lx directive.
23212         Reported by Eric Blake.
23213
23214 2010-04-24  Bruno Haible  <bruno@clisp.org>
23215
23216         vasnprintf: Correct errno value in case of out-of-memory.
23217         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23218         or sprintf. Use the errno value from SNPRINTF or sprintf.
23219         Reported by Ian Beckwith <ianb@erislabs.net>.
23220
23221 2010-04-24  Bruno Haible  <bruno@clisp.org>
23222
23223         ansi-c++-opt: Find correct compiler when cross-compiling.
23224         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23225         AC_CHECK_PROGS.
23226         Reported by Simon Josefsson.
23227
23228 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23229
23230         vc-list-files: Add support for subversion
23231         * build-aux/vc-list-files: Use "svn list" to generate the list of
23232         files controlled by subversion.
23233
23234 2010-04-23  Jim Meyering  <meyering@redhat.com>
23235
23236         vc-list-files tests: convert to use init.sh
23237         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23238         path_prepend_.
23239         Use Exit, not exit.
23240         Use skip_ rather than open coding it.
23241         Remove trap set-up and compare definitions.
23242         * tests/test-vc-list-files-git.sh: Likewise.
23243         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23244
23245 2010-04-22  Simon Josefsson  <simon@josefsson.org>
23246
23247         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
23248         backup files.
23249
23250 2010-04-21  Simon Josefsson  <simon@josefsson.org>
23251
23252         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
23253
23254 2010-04-20  Eric Blake  <eblake@redhat.com>
23255
23256         tests: be robust to ignored SIGPIPE
23257         * tests/test-select-in.sh: Consume all output.
23258         * tests/test-lseek.sh: Check correct exit status, while avoiding
23259         EPIPE.
23260
23261 2010-04-20  Simon Josefsson  <simon@josefsson.org>
23262             Bruno Haible  <bruno@clisp.org>
23263
23264         visibility: Don't use -fvisibility if it leads to a warning.
23265         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
23266         yes, don't pretend that visibility works if it leads to a warning.
23267         Reported by Mike Gran <spk121@yahoo.com>.
23268
23269 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
23270
23271         * build-aux/bootstrap: Use "git -h" for testing for supported options
23272         instead of "git --help".  The short-form option only shows a summary,
23273         and doesn't layout the full man page.  Grep for the full option name
23274         in the summary, too.
23275
23276 2010-04-19  Bruno Haible  <bruno@clisp.org>
23277
23278         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
23279         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
23280         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
23281         mention of RELOCATABLE_STRIP.
23282         Reported by Sylvain Beucler <beuc@beuc.net>.
23283
23284 2010-04-19  Bruno Haible  <bruno@clisp.org>
23285
23286         * lib/diffseq.h: Fix typo in comment.
23287         Reported by Eric Blake.
23288
23289 2010-04-19  Bruno Haible  <bruno@clisp.org>
23290
23291         ioctl: Move autoconf macro to a .m4 file.
23292         * m4/ioctl.m4: New file, extracted from modules/ioctl.
23293         * modules/ioctl (Files): Add it.
23294         (configure.ac): Simply invoke gl_FUNC_IOCTL.
23295         Reported by Ian Beckwith <ianb@erislabs.net>.
23296
23297 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
23298             Bruno Haible  <bruno@clisp.org>
23299
23300         diffseq: Accommodate use-case with abstract arrays.
23301         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
23302         is not defined.
23303         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
23304         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
23305
23306 2010-04-18  Bruno Haible  <bruno@clisp.org>
23307
23308         * doc/posix-headers/stdbool.texi: More precise wording.
23309
23310 2010-04-17  Jim Meyering  <meyering@redhat.com>
23311
23312         maint.mk: use gnu-style indentation in an embedded perl script
23313         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
23314         Rename variable: s/two/last_two_bytes/
23315
23316 2010-04-16  Eric Blake  <eblake@redhat.com>
23317
23318         test-stdbool: skip test that fails with Solaris CC
23319         * tests/test-stdbool.c (f): Skip test that causes compilation
23320         error under buggy C++ compiler.
23321         * lib/stdbool.in.h: Document the limitation.
23322         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
23323
23324         setenv: allow compilation with C++
23325         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
23326         register keyword.
23327
23328         stdint: allow test to pass with C++
23329         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
23330
23331         getopt: allow compilation with C++
23332         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
23333         struct.
23334         * lib/getopt.c (_getopt_internal_r): Use correct type.
23335         Reported by Dagobert Michelson, via Joel E. Denny.
23336
23337 2010-04-16  Bruno Haible  <bruno@clisp.org>
23338
23339         Override netdb.h always.
23340         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
23341         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
23342         Reported by Ludovic Courtès <ludo@gnu.org>.
23343
23344 2010-04-15  Bruno Haible  <bruno@clisp.org>
23345
23346         openpty: Fix mistake from 2010-03-21.
23347         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23348         Reported by Simon Josefsson.
23349
23350 2010-04-15  Eric Blake  <eblake@redhat.com>
23351
23352         test-forkpty: fix expected signature
23353         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23354         Reported by Simon Josefsson.
23355
23356 2010-04-15  Jim Meyering  <meyering@redhat.com>
23357
23358         maint.mk: texinfo_suffix_re_: correct the default regexp
23359         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23360
23361         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23362         make it configurable via texinfo_suffix_re_.
23363
23364 2010-04-14  Eric Blake  <eblake@redhat.com>
23365
23366         strtok_r: relax license to LGPLv2+
23367         * modules/strtok_r (License): Relax license.
23368         Reported by Matthias Bolte.
23369
23370 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23371
23372         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23373         version 1.4.4 by default instead of requiring the libgcrypt
23374         version used during build.  This makes it possible to use the
23375         application with older but still binary compatible libgcrypt
23376         versions.
23377
23378 2010-04-13  Eric Blake  <eblake@redhat.com>
23379
23380         getopt-gnu: match recent glibc fixes and posix ruling
23381         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
23382         '+' handling, when requesting extensions.
23383         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
23384         'W;' handling.
23385         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
23386         * doc/posix-functions/getopt.texi (getopt): Document this.
23387         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23388         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23389         Likewise.
23390
23391         getopt: merge bug fixes from glibc
23392         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
23393         diagnostics.  Honor '+:' correctly.  Reject ';'.
23394
23395         getopt-posix: detect MacOS bug
23396         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
23397         optind when missing a required argument.
23398         * doc/posix-functions/getopt.texi (getopt): Document the bug.
23399         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23400         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23401         Likewise.
23402
23403         getopt-posix: avoid spurious failure on Solaris
23404         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
23405         an indicator that setting optind=1 is sufficient for reset.
23406
23407         getopt-posix: avoid spurious failure on FreeBSD
23408         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
23409         in POSIX mode, since the m4 test uses it.
23410
23411         gnulib-tool: silence warning on BSD sh
23412         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
23413
23414 2010-04-13  Jim Meyering  <meyering@redhat.com>
23415
23416         doc: users.txt: GNU patch now uses gnulib
23417         * users.txt: Add patch.
23418
23419 2010-04-12  Jim Meyering  <meyering@redhat.com>
23420
23421         maint.mk: generate more concise timing data for syntax-check rules
23422         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
23423         " done" from each line that reports a syntax-check test duration.
23424
23425 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
23426
23427         git-version-gen: use "git update-index..." rather than "git status"
23428         * build-aux/git-version-gen: Use git update-index --refresh, not
23429         "git status".  With some versions of git, "git status" would fail
23430         to update the index and result in an unwarranted "-dirty" suffix.
23431
23432 2010-04-11  Jim Meyering  <meyering@redhat.com>
23433
23434         openat: correct formatting (no semantic change)
23435         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
23436         Suggested by Bruno Haible.
23437
23438 2010-04-11  Bruno Haible  <bruno@clisp.org>
23439
23440         Stricter declaration checking in testdirs.
23441         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23442         If for_tests is true, augment AM_CPPFLAGS to define
23443         GNULIB_STRICT_CHECKING.
23444         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
23445         GNULIB_STRICT_CHECKING is defined, verify that the function is
23446         declared.
23447
23448 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
23449             Bruno Haible  <bruno@clisp.org>
23450
23451         libunistring: Improve configure output.
23452         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
23453         Don't say "consider installing GNU libunistring" when checking again
23454         with libiconv.
23455
23456 2010-04-11  Bruno Haible  <bruno@clisp.org>
23457
23458         libunistring: Correct value of $LTLIBUNISTRING.
23459         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
23460         correct the value of $LTLIBUNISTRING.
23461
23462 2010-04-11  Bruno Haible  <bruno@clisp.org>
23463
23464         havelib: Add static libraries to LIBS in the right order.
23465         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
23466         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
23467
23468 2010-04-11  Bruno Haible  <bruno@clisp.org>
23469
23470         libunistring: Detect libunistring also when it depends on libiconv.
23471         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
23472         the second AC_LIB_HAVE_LINKFLAGS invocation.
23473
23474 2010-04-11  James Youngman  <jay@gnu.org>
23475
23476         close-stream: declare local scalars to be "const"
23477         * lib/close-stream.c (close_stream): Make boolean variables const
23478         to document the fact that we set but do not change them.
23479
23480 2010-04-11  Bruno Haible  <bruno@clisp.org>
23481
23482         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
23483
23484 2010-04-11  Jim Meyering  <meyering@redhat.com>
23485
23486         maint.mk: don't include dist-check.mk
23487         * top/maint.mk: Remove bogus include directive.
23488
23489         maint.mk: improve empty-line-at-EOF check
23490         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
23491         solution, rather than tail+Perl-based one.  The latter would read
23492         a few kilobytes from the end of each file, and did not handle empty
23493         files properly.
23494
23495         maint.mk: print the elapsed time for each syntax-check rule
23496         * top/maint.mk (sc_m_rules_): Save start time in a file.
23497         (sc_z_rules_): New rules: remove temp file and print elapsed time.
23498         (local-check): Interpose the .z rules
23499
23500 2010-04-11  Jim Meyering  <meyering@redhat.com>
23501
23502         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
23503         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
23504         empty file with one that ends in an empty line.
23505
23506 2010-04-10  Bruno Haible  <bruno@clisp.org>
23507
23508         mkdir: Make it work on mingw64.
23509         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
23510         * lib/mkdir.c: Update comment.
23511         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
23512
23513 2010-04-10  Bruno Haible  <bruno@clisp.org>
23514
23515         Don't override improved macro from newer autoconf.
23516         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
23517         autoconf >= 2.62.
23518         Reported by Joel E. Denny <jdenny@clemson.edu>.
23519
23520 2010-04-10  Jim Meyering  <meyering@redhat.com>
23521
23522         maint.mk: new syntax-check rule: prohibit empty lines at end of file
23523         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
23524
23525         maint.mk: correct a diagnostic
23526         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
23527         in diagnostic; now use $prohibit.
23528
23529 2010-04-10  Bruno Haible  <address@hidden>
23530
23531         fchownat: Fix a C++ test error on Solaris 8.
23532         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
23533         the function does not exist.
23534
23535 2010-04-10  Bruno Haible  <bruno@clisp.org>
23536
23537         vasnprintf: Add more tests.
23538         * tests/test-vasnprintf-posix.c: Include <errno.h>.
23539         (test_function): Test converting an invalid wide string.
23540
23541         vasnprintf: Correct handling of unconvertible wide string arguments.
23542         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
23543         VASNPRINTF.
23544         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
23545         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
23546         smaller than the expected maximum need for the directive. Set errno to
23547         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
23548         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
23549         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
23550         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
23551         * modules/vasnprintf (Files): Add m4/printf.m4.
23552         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23553
23554 2010-04-10  Bruno Haible  <bruno@clisp.org>
23555
23556         vasnprintf: Fix crash in %ls directive.
23557         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
23558         string is passed as argument to %ls, with no precision and no width.
23559         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23560
23561 2010-04-10  Bruno Haible  <bruno@clisp.org>
23562
23563         vasnprintf: Fix multiple test failures on mingw.
23564         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
23565         _snprintf, or snwprintf, not _snwprintf.
23566
23567 2010-04-10  Bruno Haible  <bruno@clisp.org>
23568
23569         write: Fix a C++ test error on mingw.
23570         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
23571
23572 2010-04-10  Bruno Haible  <bruno@clisp.org>
23573
23574         vasnprintf test: Reduce code duplication.
23575         * tests/test-vasnprintf.c (test_function): New function, extracted from
23576         test_vasnprintf.
23577         (test_vasnprintf, test_asnprintf): Invoke it.
23578
23579 2010-04-10  Bruno Haible  <bruno@clisp.org>
23580
23581         strnlen: Fix warning in C++ mode on MacOS X.
23582         * lib/string.in.h (strnlen): Use the modern idiom.
23583         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
23584         defining strnlen as a macro already in <config.h>.
23585         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23586         REPLACE_STRNLEN.
23587         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
23588         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23589
23590 2010-04-08  James Youngman  <jay@gnu.org>
23591
23592         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
23593         the example.
23594
23595 2010-04-09  Jim Meyering  <meyering@redhat.com>
23596
23597         maint.mk: print better diagnostic when there is no $(_hv_file)
23598         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
23599         announce that when $(_hv_file) (aka help-version) does not exist.
23600
23601         init.sh: run tr in the "C" locale to avoid multibyte interpretation
23602         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
23603         not try to interpret its random input bytes.  Jarno Rajahalme reported
23604         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
23605         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
23606         (mktempd_): Likewise, just in case.
23607
23608         ftruncate: add two years to projected module removal date: 2012
23609         * m4/ftruncate.m4: Adjust comments.
23610
23611         ftruncate: mark module as obsolete; even MinGW provides it, now
23612         * modules/ftruncate (Status): Obsolete.
23613         (Notice): Say that.
23614         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
23615         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
23616
23617 2010-04-08  Bruno Haible  <bruno@clisp.org>
23618
23619         Fix side effects from tests-related modules.
23620         * modules/dprintf-posix (Comment): New section.
23621         * modules/fprintf-posix (Comment): Likewise.
23622         * modules/obstack-printf-posix (Comment): Likewise.
23623         * modules/printf-posix (Comment): Likewise.
23624         * modules/snprintf-posix (Comment): Likewise.
23625         * modules/sprintf-posix (Comment): Likewise.
23626         * modules/vasnprintf-posix (Comment): Likewise.
23627         * modules/vasprintf-posix (Comment): Likewise.
23628         * modules/vdprintf-posix (Comment): Likewise.
23629         * modules/vfprintf-posix (Comment): Likewise.
23630         * modules/vprintf-posix (Comment): Likewise.
23631         * modules/vsnprintf-posix (Comment): Likewise.
23632         * modules/vsprintf-posix (Comment): Likewise.
23633         * modules/xprintf-posix (Comment): Likewise.
23634         * modules/xvasprintf-posix (Comment): Likewise.
23635         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
23636         * modules/floorf-tests (Depends-on): Likewise.
23637         * modules/round-tests (Depends-on): Likewise.
23638         * modules/roundf-tests (Depends-on): Likewise.
23639         * modules/trunc-tests (Depends-on): Likewise.
23640         * modules/truncf-tests (Depends-on): Likewise.
23641         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
23642         'fprintf-posix' module is not present.
23643         * tests/test-floorf2.c (check): Likewise.
23644         * tests/test-trunc2.c (check): Likewise.
23645         * tests/test-truncf2.c (check): Likewise.
23646         * tests/test-round2.c (equal): Likewise.
23647         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23648
23649 2010-04-07  Karl Berry  <karl@gnu.org>
23650
23651         * config/srclist.txt,
23652         * config/srclistvars.sh,
23653         * config/srclist-update: doc fixes.
23654
23655 2010-04-07  Jim Meyering  <meyering@redhat.com>
23656
23657         maint.mk: add a PATH crosschecking syntax-check rule
23658         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
23659         Useful if you use a test like the one in help-version (coreutils,
23660         diffutils, grep, gzip) that ensures $(VERSION) matches what is
23661         printed by prog --version.
23662
23663 2010-04-06  Bruno Haible  <bruno@clisp.org>
23664
23665         Fix link error on mingw.
23666         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
23667         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
23668
23669 2010-04-06  Bruno Haible  <bruno@clisp.org>
23670
23671         Assume rmdir exists.
23672         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
23673
23674 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
23675
23676         doc: update users.txt
23677         * users.txt: Add gcal.
23678
23679 2010-04-06  Jim Meyering  <meyering@redhat.com>
23680
23681         init.sh: simply unset TMPDIR rather than risking env -i
23682         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
23683         although it probably works fine on all Unix-based systems, some
23684         systems (Cygwin?) cannot tolerate a totally cleared environment.
23685         Suggestion from Eric Blake.
23686
23687 2010-04-06  Jim Meyering  <meyering@redhat.com>
23688
23689         init.sh: portability fix: use env's POSIX-specified -i option not -u
23690         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
23691         than unportable env -u.  Solaris 5.11's env lacks support for -u.
23692
23693 2010-04-05  Bruno Haible  <bruno@clisp.org>
23694
23695         btowc: Work around Cygwin 1.7.2 bug.
23696         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
23697         does not map NUL to 0.
23698         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
23699
23700 2010-04-05  Bruno Haible  <bruno@clisp.org>
23701
23702         Make the multithread modules work on Cygwin 1.7.2.
23703         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
23704         imported symbols can be declared weak, so that it returns "no" on
23705         Cygwin 1.7.2.
23706
23707 2010-04-05  Bruno Haible  <bruno@clisp.org>
23708
23709         Use the module 'strncat'.
23710         * modules/unistr/u8-strncat (Depends-on): Add strncat.
23711
23712         Tests for module 'strncat'.
23713         * modules/strncat-tests: New file.
23714         * tests/test-strncat.c: New file.
23715
23716         New module 'strncat'.
23717         * lib/string.in.h (strncat): New declaration.
23718         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
23719         * m4/strncat.m4: New file, based on m4/memchr.m4.
23720         * modules/strncat: New file.
23721         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
23722         is declared.
23723         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
23724         REPLACE_STRNCAT.
23725         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
23726         REPLACE_STRNCAT.
23727         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
23728         module.
23729         * tests/test-string-c++.cc: Check signature of strncat.
23730
23731 2010-04-05  Jim Meyering  <meyering@redhat.com>
23732
23733         xstrtoumax-tests: convert to use init.sh
23734         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
23735         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23736         Use Exit, not exit.
23737         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23738
23739         xstrtoimax-tests: convert to use init.sh
23740         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
23741         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23742         Use Exit, not exit.
23743         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23744
23745 2010-04-05  Bruno Haible  <bruno@clisp.org>
23746
23747         sys_socket: Avoid #define replacements in C++ mode.
23748         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
23749         warning to the function if possible, rather than #defining the symbol
23750         to a dysfunctional alias.
23751
23752 2010-04-05  Bruno Haible  <bruno@clisp.org>
23753
23754         fseeko: Fix C++ test error on mingw.
23755         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
23756         gl_FUNC_FSEEKO.
23757         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
23758         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
23759         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
23760         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
23761
23762 2010-04-05  Bruno Haible  <bruno@clisp.org>
23763
23764         duplocale: Improve test output.
23765         * tests/test-duplocale.c (main): Print reason for skipped test.
23766
23767 2010-04-05  Bruno Haible  <bruno@clisp.org>
23768
23769         Assume rmdir exists.
23770         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
23771         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
23772
23773 2010-04-05  Bruno Haible  <bruno@clisp.org>
23774
23775         Fix link error on Solaris 8 with cc.
23776         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
23777
23778 2010-04-05  Bruno Haible  <bruno@clisp.org>
23779
23780         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23781         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
23782
23783 2010-04-05  Bruno Haible  <bruno@clisp.org>
23784
23785         vasprintf: Update documentation.
23786         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
23787
23788 2010-04-05  Bruno Haible  <bruno@clisp.org>
23789
23790         ptsname: Improve test.
23791         * tests/test-ptsname.c (main): Also try the various master names of BSD
23792         systems.
23793
23794 2010-04-05  Bruno Haible  <bruno@clisp.org>
23795
23796         memchr: Avoid a possible C++ test error.
23797         * lib/string.in.h (memchr): Provide declaration if function is missing.
23798         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
23799         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
23800         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
23801         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
23802
23803 2010-04-05  Bruno Haible  <bruno@clisp.org>
23804
23805         strtok_r: Improve idiom.
23806         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
23807         AC_LIBOBJ is used.
23808
23809 2010-04-05  Bruno Haible  <bruno@clisp.org>
23810
23811         strdup: Improve idiom.
23812         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
23813         AC_LIBOBJ is used.
23814         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
23815         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
23816         when AC_LIBOBJ is used.
23817
23818 2010-04-05  Bruno Haible  <bruno@clisp.org>
23819
23820         mbsinit, mbrtowc, wcrtomb: Improve idioms.
23821         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
23822         don't set REPLACE_MBSINIT to 1.
23823         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
23824         don't set REPLACE_MBRTOWC to 1.
23825         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
23826         exist, don't set REPLACE_MBSRTOWCS to 1.
23827         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
23828         exist, don't set REPLACE_MBSNRTOWCS to 1.
23829         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
23830         don't set REPLACE_WCRTOMB to 1.
23831         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
23832         exist, don't set REPLACE_WCSRTOMBS to 1.
23833         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
23834         exist, don't set REPLACE_WCSNRTOMBS to 1.
23835
23836 2010-04-05  Bruno Haible  <bruno@clisp.org>
23837
23838         ldexpl: Improve idiom.
23839         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
23840         make sure to set HAVE_DECL_LDEXPL to 0.
23841
23842 2010-04-05  Jim Meyering  <meyering@redhat.com>
23843
23844         xstrtol-tests: convert to use init.sh
23845         * modules/xstrtol-tests (Files): Add tests/init.sh.
23846         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23847         Use Exit, not exit.
23848         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23849
23850         atexit-tests: convert to use init.sh
23851         * modules/atexit-tests (Files): Add tests/init.sh.
23852         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23853         Use Exit, not exit.
23854         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23855
23856         init.sh: fix typo
23857         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
23858
23859         init.sh: make it easier for a test script to write to the tty, ...
23860         when using automake's parallel-tests mode.
23861         * tests/init.sh (stderr_fileno_): Define overridable variable.
23862         (warn_): New function, to use it.
23863         (fail_, skip_, framework_failure_): Use warn_.
23864
23865 2010-04-04  Bruno Haible  <bruno@clisp.org>
23866
23867         btowc: Avoid warning.
23868         * lib/btowc.c: Include <stdlib.h>.
23869         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
23870
23871 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23872             Bruno Haible  <bruno@clisp.org>
23873
23874         wchar: Port to NetBSD 1.5.
23875         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
23876         * lib/wctype.in.h (WEOF): Likewise.
23877
23878 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23879             Bruno Haible  <bruno@clisp.org>
23880
23881         Port extended stdio to NetBSD 1.5.
23882         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
23883         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
23884         older.
23885
23886 2010-04-04  Bruno Haible  <bruno@clisp.org>
23887
23888         string: Remove unused substitution.
23889         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
23890         HAVE_DECL_STRERROR.
23891         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
23892
23893 2010-04-04  Bruno Haible  <bruno@clisp.org>
23894
23895         strtod: Avoid a possible C++ test error.
23896         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
23897         set REPLACE_STRTOD.
23898
23899 2010-04-04  Bruno Haible  <bruno@clisp.org>
23900
23901         strerror: Update documentation.
23902         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
23903
23904 2010-04-04  Bruno Haible  <bruno@clisp.org>
23905
23906         stdio: Fix some C++ test errors on Solaris 8 with GCC.
23907         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
23908         _GL_CXXALIAS_SYS_CAST.
23909
23910 2010-04-04  Bruno Haible  <bruno@clisp.org>
23911
23912         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23913         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
23914         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
23915         REPLACE_FREXPL to 1.
23916         * doc/posix-functions/frexpl.texi: Update documentation.
23917
23918 2010-04-04  Bruno Haible  <bruno@clisp.org>
23919
23920         math: Fix some C++ test errors on Solaris 8 and Cygwin.
23921         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
23922
23923 2010-04-04  Bruno Haible  <bruno@clisp.org>
23924
23925         Implement nanosleep for native Windows.
23926         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
23927
23928 2010-04-04  Bruno Haible  <bruno@clisp.org>
23929
23930         math: Fix some C++ test errors on Solaris 8.
23931         * lib/math.in.h (truncf, trunc): Use simpler idiom.
23932
23933 2010-04-04  Bruno Haible  <bruno@clisp.org>
23934
23935         math: Fix some C++ test errors on Cygwin.
23936         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
23937         truncl): Provide declaration if the system does not have it.
23938         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
23939         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
23940         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
23941         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
23942         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
23943         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
23944         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
23945         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
23946         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
23947         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
23948         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
23949         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
23950         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
23951         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
23952         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
23953         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
23954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
23955         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23956         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23957         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
23958         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23959         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23960
23961 2010-04-04  Bruno Haible  <bruno@clisp.org>
23962
23963         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
23964         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23965         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23966         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23967         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23968         * m4/isinf.m4 (gl_ISINF): Likewise.
23969         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23970
23971 2010-04-04  Bruno Haible  <bruno@clisp.org>
23972
23973         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
23974         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23975
23976 2010-04-04  Bruno Haible  <bruno@clisp.org>
23977
23978         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
23979         * modules/tmpfile (configure.ac): Update.
23980
23981         tmpfile: Fix C++ test error on mingw.
23982         * lib/stdio.in.h (tmpfile): New declaration.
23983         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
23984         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
23985         * modules/tmpfile (Depends-on): Add stdio.
23986         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23987         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
23988         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
23989         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
23990         REPLACE_TMPFILE.
23991         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
23992
23993 2010-04-04  Bruno Haible  <bruno@clisp.org>
23994
23995         ioctl: Fix C++ test error on mingw.
23996         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
23997         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
23998         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
23999
24000 2010-04-03  Bruno Haible  <bruno@clisp.org>
24001
24002         wcwidth: Fix C++ test error on mingw.
24003         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24004         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24005         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24006
24007 2010-04-03  Bruno Haible  <bruno@clisp.org>
24008
24009         nanosleep: Fix C++ test error on mingw.
24010         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24011         * lib/time.in.h (nanosleep): Use modern idiom.
24012         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24013         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24014         REPLACE_NANOSLEEP to 1.
24015         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24016         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24017
24018 2010-04-03  Bruno Haible  <bruno@clisp.org>
24019
24020         strptime: Fix C++ test error on mingw.
24021         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24022         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24023         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24024         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24025         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24026         not REPLACE_STRPTIME.
24027         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24028         REPLACE_STRPTIME.
24029
24030 2010-04-03  Bruno Haible  <bruno@clisp.org>
24031
24032         timegm: Fix C++ test error on mingw.
24033         * lib/time.in.h (timegm): Use modern idiom.
24034         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24035         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24036         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24037         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24038
24039 2010-04-03  Bruno Haible  <bruno@clisp.org>
24040
24041         timegm: Assume declaration if function exists.
24042         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24043         if it exists. Don't clobber ac_cv_func_timegm.
24044
24045 2010-04-03  Bruno Haible  <bruno@clisp.org>
24046
24047         time_r: Fix C++ test error on mingw.
24048         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24049         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24050         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24051         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24052         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24053
24054 2010-04-03  Bruno Haible  <bruno@clisp.org>
24055
24056         time_r: Minor updates.
24057         * modules/time_r (Description): Mention the provided functions.
24058         * lib/time_r.c: Don't include <string.h>.
24059         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24060         * doc/posix-functions/localtime_r.texi: Likewise.
24061
24062 2010-04-03  Bruno Haible  <bruno@clisp.org>
24063
24064         time: Fix regression introduced on 2010-03-08.
24065         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24066         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24067
24068 2010-04-03  Jim Meyering  <meyering@redhat.com>
24069
24070         maint.mk: don't silently disable project-specific syntax-check rules
24071         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24072         that they need to convert their project-specific syntax-check rules
24073         to use the new _sc_search_regexp.
24074
24075 2010-04-03  Bruno Haible  <bruno@clisp.org>
24076
24077         fchdir: Fix regression introduced on 2010-03-08.
24078         * lib/unistd.in.h (fchdir): Fix declaration.
24079         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24081         REPLACE_FCHDIR.
24082         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24083         REPLACE_FCHDIR.
24084
24085 2010-04-03  Bruno Haible  <bruno@clisp.org>
24086
24087         getpagesize: Fix C++ test error on mingw.
24088         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24089         system does not declare the function.
24090         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24091         declared.
24092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24093         HAVE_DECL_GETPAGESIZE.
24094         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24095
24096 2010-04-03  Bruno Haible  <bruno@clisp.org>
24097
24098         stdio: Make C++ tests work on mingw.
24099         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24100         does not declare the function.
24101
24102 2010-04-03  Bruno Haible  <bruno@clisp.org>
24103
24104         ftello: Fix C++ test error on mingw.
24105         * lib/stdio.in.h (ftello): Use modern idiom.
24106         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24107         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24108         is missing and that it needs to be replaced.
24109         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24111         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24112
24113 2010-04-03  Bruno Haible  <bruno@clisp.org>
24114
24115         fseeko: Fix C++ test error on mingw.
24116         * lib/stdio.in.h (fseeko): Use modern idiom.
24117         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24118         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24119         is missing and that it needs to be replaced.
24120         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24122         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24123
24124 2010-04-03  Bruno Haible  <bruno@clisp.org>
24125
24126         mkstemp: Fix C++ test error on mingw.
24127         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24128         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24129         function is missing and that it needs to be replaced.
24130         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24131         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24132
24133 2010-04-03  Bruno Haible  <bruno@clisp.org>
24134
24135         stpncpy: Fix C++ test error on mingw.
24136         * lib/string.in.h (stpncpy): Use modern idiom.
24137         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24138         function is missing and that it needs to be replaced.
24139         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24140         REPLACE_STPNCPY.
24141         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24142
24143 2010-04-03  Bruno Haible  <bruno@clisp.org>
24144
24145         sys_stat: Fix C++ test error on mingw.
24146         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24147         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24148
24149 2010-04-03  Bruno Haible  <bruno@clisp.org>
24150
24151         pty: Update doc.
24152         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24153
24154 2010-04-03  Bruno Haible  <bruno@clisp.org>
24155
24156         unistd: Fix C++ test error on mingw.
24157         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24158
24159 2010-04-03  Bruno Haible  <bruno@clisp.org>
24160
24161         Update doc regarding mingw.
24162         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24163         * doc/glibc-functions/login_tty.texi: Likewise.
24164         * doc/glibc-functions/forkpty.texi: Likewise.
24165
24166 2010-04-03  Bruno Haible  <bruno@clisp.org>
24167
24168         stdlib: Avoid compilation failure of c-strtold on mingw.
24169         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24170
24171 2010-04-03  Bruno Haible  <bruno@clisp.org>
24172
24173         locale: Make C++ tests work on Cygwin and mingw.
24174         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24175         cannot provide the function.
24176         Reported by Simon Josefsson.
24177
24178 2010-04-03  Bruno Haible  <bruno@clisp.org>
24179
24180         localename: Port to MacOS X 10.6.
24181         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24182         memory layout of the locales in MacOS X 10.6 as well.
24183         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24184
24185 2010-04-02  Bruno Haible  <bruno@clisp.org>
24186
24187         gnulib-tool: Ensure that long-running tests are executed last.
24188         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24189         running tests after the one for the other tests.
24190
24191 2010-04-02  Bruno Haible  <bruno@clisp.org>
24192
24193         gnulib-tool: Ensure the tests in the main directory are executed first.
24194         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24195         start with the current directory.
24196
24197 2010-04-02  Bruno Haible  <bruno@clisp.org>
24198
24199         Tests for module 'havelib', moved here from GNU gettext.
24200         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24201         modifications.
24202         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24203         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24204         with modifications.
24205         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24206         modifications.
24207         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24208         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24209         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24210         with modifications.
24211         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24212         with modifications.
24213         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24214         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24215         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24216         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24217         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24218         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24219         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24220         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24221         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24222         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24223         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24224         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24225         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24226         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24227         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24228         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24229         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24230         with modifications.
24231         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24232         with modifications.
24233         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24234         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24235         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24236         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24237         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24238         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24239         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24240         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24241         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24242         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24243         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24244         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
24245         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
24246         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
24247         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
24248         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
24249         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
24250         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
24251         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
24252         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
24253         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
24254         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
24255         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
24256         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
24257         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
24258         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
24259         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
24260         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
24261         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
24262         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
24263         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
24264         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
24265         * tests/havelib/rpathx/rpathx.c: New file, from
24266         gettext/autoconf-lib-link.
24267         * tests/havelib/rpathx/Makefile.am: New file, from
24268         gettext/autoconf-lib-link.
24269         * tests/havelib/rpathx/configure.ac: New file, from
24270         gettext/autoconf-lib-link with modifications.
24271         * tests/havelib/rpathy/rpathy.c: New file, from
24272         gettext/autoconf-lib-link.
24273         * tests/havelib/rpathy/Makefile.am: New file, from
24274         gettext/autoconf-lib-link.
24275         * tests/havelib/rpathy/configure.ac: New file, from
24276         gettext/autoconf-lib-link with modifications.
24277         * tests/havelib/rpathz/rpathz.c: New file, from
24278         gettext/autoconf-lib-link.
24279         * tests/havelib/rpathz/Makefile.am: New file, from
24280         gettext/autoconf-lib-link.
24281         * tests/havelib/rpathz/configure.ac: New file, from
24282         gettext/autoconf-lib-link with modifications.
24283         * tests/havelib/rpathlx/usex.c: New file, from
24284         gettext/autoconf-lib-link.
24285         * tests/havelib/rpathlx/Makefile.am: New file, from
24286         gettext/autoconf-lib-link.
24287         * tests/havelib/rpathlx/configure.ac: New file, from
24288         gettext/autoconf-lib-link with modifications.
24289         * tests/havelib/rpathly/usey.c: New file, from
24290         gettext/autoconf-lib-link.
24291         * tests/havelib/rpathly/Makefile.am: New file, from
24292         gettext/autoconf-lib-link.
24293         * tests/havelib/rpathly/configure.ac: New file, from
24294         gettext/autoconf-lib-link with modifications.
24295         * tests/havelib/rpathlz/usez.c: New file, from
24296         gettext/autoconf-lib-link.
24297         * tests/havelib/rpathlz/Makefile.am: New file, from
24298         gettext/autoconf-lib-link.
24299         * tests/havelib/rpathlz/configure.ac: New file, from
24300         gettext/autoconf-lib-link with modifications.
24301         * tests/havelib/rpathlyx/usey.c: New file, from
24302         gettext/autoconf-lib-link.
24303         * tests/havelib/rpathlyx/Makefile.am: New file, from
24304         gettext/autoconf-lib-link.
24305         * tests/havelib/rpathlyx/configure.ac: New file, from
24306         gettext/autoconf-lib-link with modifications.
24307         * tests/havelib/rpathlzyx/usez.c: New file, from
24308         gettext/autoconf-lib-link.
24309         * tests/havelib/rpathlzyx/Makefile.am: New file, from
24310         gettext/autoconf-lib-link.
24311         * tests/havelib/rpathlzyx/configure.ac: New file, from
24312         gettext/autoconf-lib-link with modifications.
24313         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
24314         with modifications.
24315
24316 2010-04-02  Bruno Haible  <bruno@clisp.org>
24317
24318         gnulib-tool: Create distributed built sources also for the tests.
24319         * gnulib-tool (func_create_testdir): Also generate distributed built
24320         sources in the tests directory.
24321
24322 2010-04-02  Bruno Haible  <bruno@clisp.org>
24323
24324         gnulib-tool: Obey user's environment variables.
24325         * gnulib-tool (func_create_testdir): When creating built sources,
24326         respect the environment variables for autoconf, automake, etc. given by
24327         the user.
24328
24329 2010-04-02  Bruno Haible  <bruno@clisp.org>
24330
24331         gnulib-tool: Provide the value of --m4-base to modules.
24332         * gnulib-tool (func_import, func_create_testdir): Emit a definition
24333         of gl_m4_base.
24334
24335 2010-04-02  Eric Blake  <eblake@redhat.com>
24336
24337         maint.mk: fix some fallout
24338         * NEWS: Document the incompatible change, and its effect on cfg.mk.
24339         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
24340
24341 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24342
24343         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24344         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24345         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24346         (sc_cast_of_x_alloc_return_value): Likewise.
24347         (sc_cast_of_alloca_return_value): Likewise.
24348         (sc_space_tab): Likewise.
24349         (sc_prohibit_atoi_atof): Likewise.
24350         (sc_prohibit_magic_number_exit): Likewise.
24351         (sc_error_exit_success): Likewise.
24352         (sc_file_system): Likewise.
24353         (sc_prohibit_have_config_h): Likewise.
24354         (sc_require_config_h): Likewise.
24355         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24356         (sc_obsolete_symbols): Likewise.
24357         (sc_changelog): Likewise.
24358         (sc_program_name): Likewise.
24359         (sc_the_the): Likewise.
24360         (sc_trailing_blank): Likewise.
24361         (sc_two_space_separator_in_usage): Likewise.
24362         (sc_useless_cpp_parens): Likewise.
24363         (sc_GPL_version): Likewise.
24364         (sc_GFDL_version): Likewise.
24365         (sc_texinfo_acronym): Likewise.
24366         (sc_prohibit_cvs_keyword): Likewise.
24367         (sc_prohibit_stat_st_blocks): Likewise.
24368         (sc_prohibit_S_IS_definition): Likewise.
24369         (sc_redundant_const): Likewise.
24370         (sc_makefile_TAB_only_indentation): Likewise.
24371         (sc_m4_quote_check): Likewise.
24372         (sc_makefile_path_separator_check): Likewise.
24373         (sc_copyright_check): Likewise.
24374         (sc_Wundef_boolean): Likewise.
24375         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24376
24377         maint.mk: match 0 or more whitespace-before-function-call '('
24378         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
24379         that have zero or two-and-more spaces between the function name
24380         and the open parenthesis.
24381         (sc_error_message_warn_fatal): Likewise.
24382         (sc_error_message_uppercase): Likewise.
24383         (sc_error_message_period): Likewise.
24384
24385 2010-03-31  Eric Blake  <eblake@redhat.com>
24386
24387         maint.mk: check for [ as well as test
24388         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
24389         Based on a libvirt report by Matthias Bolte.
24390
24391         gnumakefile: don't squelch _version output
24392         * top/GNUmakefile (_version): Create one-shot dependency rather
24393         than using $(shell) when version must be regenerated.
24394         (_autoreconf): Run verbosely, by default.
24395
24396         sys_time: avoid compiler warnings
24397         * lib/sys_time.in.h (includes): Ensure gcc pragma is
24398         unconditional, fixing regression from 2010-03-29.
24399         Reported by Simon Josefsson.
24400
24401 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24402
24403         maint.mk: s/_header_without_use/_sc_header_without_use/
24404         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
24405         (sc_prohibit_assert_without_use): Use the new name.
24406         (sc_prohibit_close_stream_without_use): Likewise.
24407         (sc_prohibit_getopt_without_use): Likewise.
24408         (sc_prohibit_quotearg_without_use): Likewise.
24409         (sc_prohibit_quote_without_use): Likewise.
24410         (sc_prohibit_long_options_without_use): Likewise.
24411         (sc_prohibit_inttostr_without_use): Likewise.
24412         (sc_prohibit_ignore_value_without_use): Likewise.
24413         (sc_prohibit_error_without_use): Likewise.
24414         (sc_prohibit_xalloc_without_use): Likewise.
24415         (sc_prohibit_hash_without_use): Likewise.
24416         (sc_prohibit_hash_pjw_without_use): Likewise.
24417         (sc_prohibit_safe_read_without_use): Likewise.
24418         (sc_prohibit_argmatch_without_use): Likewise.
24419         (sc_prohibit_canonicalize_without_use): Likewise.
24420         (sc_prohibit_root_dev_ino_without_use): Likewise.
24421         (sc_prohibit_openat_without_use): Likewise.
24422         (sc_prohibit_c_ctype_without_use): Likewise.
24423         (sc_prohibit_signal_without_use): Likewise.
24424         (sc_prohibit_intprops_without_use): Likewise.
24425
24426 2010-03-30  Eric Blake  <eblake@redhat.com>
24427
24428         maint: improve module indicators
24429         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
24430         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
24431         columns, and avoid extra macro expansion.
24432
24433         fdopendir: work around FreeBSD bug
24434         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24435         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
24436         * modules/dirent (Makefile.am): Substitute it.
24437         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
24438         declaration.
24439         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
24440         fix.
24441         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24442
24443 2010-03-29  Bruno Haible  <bruno@clisp.org>
24444
24445         Emit #pragma system_header after the inclusion guard, not before.
24446         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
24447         guard that spans the entire file, not before. This enables an
24448         optimization in GCC's preprocessor.
24449         * lib/ctype.in.h: Likewise.
24450         * lib/dirent.in.h: Likewise.
24451         * lib/errno.in.h: Likewise.
24452         * lib/float.in.h: Likewise.
24453         * lib/getopt.in.h: Likewise.
24454         * lib/iconv.in.h: Likewise.
24455         * lib/langinfo.in.h: Likewise.
24456         * lib/locale.in.h: Likewise.
24457         * lib/math.in.h: Likewise.
24458         * lib/netdb.in.h: Likewise.
24459         * lib/netinet_in.in.h: Likewise.
24460         * lib/pty.in.h: Likewise.
24461         * lib/sched.in.h: Likewise.
24462         * lib/se-selinux.in.h: Likewise.
24463         * lib/search.in.h: Likewise.
24464         * lib/spawn.in.h: Likewise.
24465         * lib/stdarg.in.h: Likewise.
24466         * lib/stdint.in.h: Likewise.
24467         * lib/string.in.h: Likewise.
24468         * lib/strings.in.h: Likewise.
24469         * lib/sys_file.in.h: Likewise.
24470         * lib/sys_ioctl.in.h: Likewise.
24471         * lib/sys_time.in.h: Likewise.
24472         * lib/sys_times.in.h: Likewise.
24473         * lib/sys_utsname.in.h: Likewise.
24474         * lib/sys_wait.in.h: Likewise.
24475         * lib/sysexits.in.h: Likewise.
24476         * lib/wctype.in.h: Likewise.
24477
24478 2010-03-28  James Youngman  <jay@gnu.org>
24479
24480         save-cwd: don't leak a file descriptor when the caller execs.
24481         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
24482         saved file descriptor.
24483         * modules/save-cwd (Depends-on): Depend on cloexec.
24484
24485 2010-03-29  Bruno Haible  <bruno@clisp.org>
24486
24487         Remove vestiges of fts-lgpl module.
24488         * lib/fts_.h: Assume GNULIB_FTS is 1.
24489         * lib/fts.c: Likewise.
24490         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24491
24492 2010-03-28  Bruno Haible  <bruno@clisp.org>
24493
24494         Fix definition of tests witness macro.
24495         * gnulib-tool (func_import): Fix definition of witness macro.
24496
24497 2010-03-28  Bruno Haible  <bruno@clisp.org>
24498
24499         Fix ioctl's protoype on glibc systems.
24500         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
24501         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
24502         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
24503         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
24504         signature. If not, arrange to replace the ioctl function.
24505         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24506         REPLACE_IOCTL.
24507         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
24508         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
24509         Reported by Ludovic Courtès <ludo@gnu.org>.
24510
24511 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
24512
24513         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
24514         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
24515         made it so grep -r --include=GLOB* ... did not work.
24516
24517 2010-03-26  Jim Meyering  <meyering@redhat.com>
24518             Eric Blake  <eblake@redhat.com>
24519
24520         maint.mk: prohibit use of test's -o and -a operators
24521         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
24522
24523 2010-03-28  Bruno Haible  <bruno@clisp.org>
24524
24525         Remove unused GNULIB_XYZ macro definitions.
24526         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
24527         invocation.
24528
24529 2010-03-28  Bruno Haible  <bruno@clisp.org>
24530
24531         Mark privileged tests modules.
24532         * modules/idpriv-drop-tests (Status): New section.
24533         * modules/idpriv-droptemp-tests (Status): New section.
24534
24535 2010-03-28  Bruno Haible  <bruno@clisp.org>
24536
24537         Split C++ tests into separate tests modules.
24538         * modules/dirent-c++-tests: New file, extracted from
24539         modules/dirent-tests.
24540         * modules/dirent-tests: Depend on it.
24541         * modules/fcntl-h-c++-tests: New file, extracted from
24542         modules/fcntl-h-tests.
24543         * modules/fcntl-h-tests: Depend on it.
24544         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
24545         * modules/glob-tests: Depend on it.
24546         * modules/iconv-h-c++-tests: New file, extracted from
24547         modules/iconv-h-tests.
24548         * modules/iconv-h-tests: Depend on it.
24549         * modules/langinfo-c++-tests: New file, extracted from
24550         modules/langinfo-tests.
24551         * modules/langinfo-tests: Depend on it.
24552         * modules/locale-c++-tests: New file, extracted from
24553         modules/locale-tests.
24554         * modules/locale-tests: Depend on it.
24555         * modules/math-c++-tests: New file, extracted from modules/math-tests.
24556         * modules/math-tests: Depend on it.
24557         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
24558         * modules/pty-tests: Depend on it.
24559         * modules/search-c++-tests: New file, extracted from
24560         modules/search-tests.
24561         * modules/search-tests: Depend on it.
24562         * modules/signal-c++-tests: New file, extracted from
24563         modules/signal-tests.
24564         * modules/signal-tests: Depend on it.
24565         * modules/spawn-c++-tests: New file, extracted from
24566         modules/spawn-tests.
24567         * modules/spawn-tests: Depend on it.
24568         * modules/stdio-c++-tests: New file, extracted from
24569         modules/stdio-tests.
24570         * modules/stdio-tests: Depend on it.
24571         * modules/stdlib-c++-tests: New file, extracted from
24572         modules/stdlib-tests.
24573         * modules/stdlib-tests: Depend on it.
24574         * modules/string-c++-tests: New file, extracted from
24575         modules/string-tests.
24576         * modules/string-tests: Depend on it.
24577         * modules/sys_ioctl-c++-tests: New file, extracted from
24578         modules/sys_ioctl-tests.
24579         * modules/sys_ioctl-tests: Depend on it.
24580         * modules/sys_select-c++-tests: New file, extracted from
24581         modules/sys_select-tests.
24582         * modules/sys_select-tests: Depend on it.
24583         * modules/sys_socket-c++-tests: New file, extracted from
24584         modules/sys_socket-tests.
24585         * modules/sys_socket-tests: Depend on it.
24586         * modules/sys_stat-c++-tests: New file, extracted from
24587         modules/sys_stat-tests.
24588         * modules/sys_stat-tests: Depend on it.
24589         * modules/sys_time-c++-tests: New file, extracted from
24590         modules/sys_time-tests.
24591         * modules/sys_time-tests: Depend on it.
24592         * modules/time-c++-tests: New file, extracted from modules/time-tests.
24593         * modules/time-tests: Depend on it.
24594         * modules/unistd-c++-tests: New file, extracted from
24595         modules/unistd-tests.
24596         * modules/unistd-tests: Depend on it.
24597         * modules/wchar-c++-tests: New file, extracted from
24598         modules/wchar-tests.
24599         * modules/wchar-tests: Depend on it.
24600         * modules/wctype-c++-tests: New file, extracted from
24601         modules/wctype-tests.
24602         * modules/wctype-tests: Depend on it.
24603         Reported by Simon Josefsson.
24604
24605 2010-03-28  Bruno Haible  <bruno@clisp.org>
24606
24607         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
24608         * gnulib-tool (func_exists_module): New function, extracted from
24609         func_verify_module.
24610         (func_verify_module): Use it.
24611         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
24612         'foo' only if 'foo' exists.
24613         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
24614         module.
24615
24616 2010-03-28  Bruno Haible  <bruno@clisp.org>
24617
24618         gnulib-tool: Add support for special categories of tests.
24619         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
24620         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
24621         (func_usage): Document them.
24622         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
24623         inc_unportable_tests, inc_all_tests): New variables.
24624         (func_acceptable): Consider these variables.
24625         (func_modules_transitive_closure): Make it work when the 'Status' field
24626         consists of multiple words.
24627         (func_import): Store and restore the values of inc_cxx_tests,
24628         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
24629         inc_all_tests in gnulib-comp.m4.
24630         (func_create_testdir): Set inc_all_tests to true.
24631         * doc/gnulib.texi (Extra tests modules): New section.
24632         Suggested by Jim Meyering.
24633
24634 2010-03-28  Bruno Haible  <bruno@clisp.org>
24635
24636         ansi-c++-opt: Allow turning off the C++ build by default.
24637         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
24638         gl_CXX_CHOICE_DEFAULT_NO is defined.
24639         Requested by Eric Blake.
24640
24641 2010-03-28  Bruno Haible  <bruno@clisp.org>
24642
24643         unistd: Avoid #define replacements in C++ mode.
24644         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
24645         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
24646         setsockopt, shutdown, select): In C++, attach a warning to the function
24647         if possible, rather than #defining the symbol to a dysfunctional alias.
24648         Reported by John W. Eaton <jwe@gnu.org>.
24649
24650 2010-03-28  Bruno Haible  <bruno@clisp.org>
24651
24652         Fix link errors on mingw.
24653         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
24654         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
24655         $(LIBSOCKET).
24656         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
24657         $(LIBSOCKET).
24658
24659 2010-03-28  Bruno Haible  <bruno@clisp.org>
24660             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24661
24662         lib-ignore: Determine different options for different compilers.
24663         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
24664         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
24665         Add comments.
24666         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
24667         * NEWS: Mention the change.
24668
24669 2010-03-27  Bruno Haible  <bruno@clisp.org>
24670
24671         Remove unused GNULIB_XYZ macro definitions.
24672         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24673         * modules/fseek (configure.ac): Likewise.
24674         * modules/ioctl (configure.ac): Likewise.
24675         * modules/open (configure.ac): Likewise.
24676         * modules/stdlib-safer (configure.ac): Likewise.
24677
24678 2010-03-27  Bruno Haible  <bruno@clisp.org>
24679
24680         Add a remark about certain modules.
24681         * modules/malloc (Comment): New section.
24682         * modules/realloc (Comment): Likewise.
24683         * modules/sigpipe (Comment): Likewise.
24684
24685 2010-03-27  Bruno Haible  <bruno@clisp.org>
24686
24687         Resolve conflict between the two kinds of module indicators.
24688         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
24689         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
24690         * modules/canonicalize (configure.ac): Invoke
24691         gl_MODULE_INDICATOR_FOR_TESTS.
24692         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
24693         GNULIB_XYZ.
24694         * tests/test-dirent-c++.cc: Likewise.
24695         * tests/test-dirent-safer.c: Likewise.
24696         * tests/test-dup2.c: Likewise.
24697         * tests/test-fchdir.c: Likewise.
24698         * tests/test-fcntl-h-c++.cc: Likewise.
24699         * tests/test-getopt.c: Likewise.
24700         * tests/test-getopt.h: Likewise.
24701         * tests/test-langinfo-c++.cc: Likewise.
24702         * tests/test-locale-c++.cc: Likewise.
24703         * tests/test-math-c++.cc: Likewise.
24704         * tests/test-pty-c++.cc: Likewise.
24705         * tests/test-search-c++.cc: Likewise.
24706         * tests/test-signal-c++.cc: Likewise.
24707         * tests/test-spawn-c++.cc: Likewise.
24708         * tests/test-stdio-c++.cc: Likewise.
24709         * tests/test-stdlib-c++.cc: Likewise.
24710         * tests/test-string-c++.cc: Likewise.
24711         * tests/test-sys_ioctl-c++.cc: Likewise.
24712         * tests/test-sys_select-c++.cc: Likewise.
24713         * tests/test-sys_socket-c++.cc: Likewise.
24714         * tests/test-sys_stat-c++.cc: Likewise.
24715         * tests/test-sys_time-c++.cc: Likewise.
24716         * tests/test-time-c++.cc: Likewise.
24717         * tests/test-unistd-c++.cc: Likewise.
24718         * tests/test-wchar-c++.cc: Likewise.
24719         * tests/uninorm/test-u8-nfc.c: Likewise.
24720         * tests/uninorm/test-u8-nfd.c: Likewise.
24721         * tests/uninorm/test-u8-nfkc.c: Likewise.
24722         * tests/uninorm/test-u8-nfkd.c: Likewise.
24723         * tests/uninorm/test-u16-nfc.c: Likewise.
24724         * tests/uninorm/test-u16-nfd.c: Likewise.
24725         * tests/uninorm/test-u16-nfkc.c: Likewise.
24726         * tests/uninorm/test-u16-nfkd.c: Likewise.
24727         * tests/uninorm/test-u32-nfc.c: Likewise.
24728         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24729         * tests/uninorm/test-u32-nfd.c: Likewise.
24730         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24731         * tests/uninorm/test-u32-nfkc.c: Likewise.
24732         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24733         * tests/uninorm/test-u32-nfkd.c: Likewise.
24734         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24735         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24736
24737 2010-03-27  Bruno Haible  <bruno@clisp.org>
24738
24739         Distinguish two kinds of module indicators.
24740         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
24741         gl_MODULE_INDICATOR.
24742         (gl_MODULE_INDICATOR): New macro.
24743         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24744         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
24745         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24746         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24747         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24748         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24749         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24750         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24751         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24752         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24753         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24754         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24755         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24756         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24757         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24758         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24759         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24760         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24761         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24762         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24763         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24764         * modules/cloexec (configure.ac): Likewise.
24765         * modules/getopt-gnu (configure.ac): Likewise.
24766         * modules/uninorm/u8-normalize (configure.ac): Likewise.
24767         * modules/uninorm/u16-normalize (configure.ac): Likewise.
24768         * modules/uninorm/u32-normalize (configure.ac): Likewise.
24769         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
24770
24771 2010-03-27  Bruno Haible  <bruno@clisp.org>
24772
24773         New module description field 'Comment'.
24774         * gnulib-tool: New option --extract-comment.
24775         (func_usage): Document it.
24776         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
24777         (func_get_comment): New function.
24778         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
24779
24780 2010-03-27  Bruno Haible  <bruno@clisp.org>
24781
24782         Addendum to 2010-02-07 commit.
24783         * gnulib-tool (func_usage): Document --extract-applicability option.
24784
24785 2010-03-27  Bruno Haible  <bruno@clisp.org>
24786
24787         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
24788         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
24789         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
24790         rather than link errors.
24791
24792 2010-03-27  Bruno Haible  <bruno@clisp.org>
24793
24794         Avoid side effects from tests-related modules on the compilation of lib.
24795         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
24796         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
24797         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
24798         parameter. Emit into AM_CPPFLAGS a definition of the designated C
24799         macro.
24800         (func_import): Define a witness macro. Assign it a value that depends
24801         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
24802         tests-related modules.
24803         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
24804         Reported by Jim Meyering.
24805
24806 2010-03-27  Bruno Haible  <bruno@clisp.org>
24807
24808         Factorize common .m4 code.
24809         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
24810         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
24811         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
24812         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
24813         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24814         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
24815         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
24816         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24817         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24818         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24819         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
24820         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24821         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24822         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24823         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24824         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
24825         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24826         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24827         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24828         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
24829         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
24830         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24831         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24832         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24833         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24834         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24835         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
24836         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
24837         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
24838         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24839         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24840         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24841
24842 2010-03-27  Bruno Haible  <bruno@clisp.org>
24843
24844         Fix a compilation error on Cygwin with g++ >= 4.3.
24845         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
24846         if it is undefined or if we alias it to chmod.
24847         (lstat): Don't warn about the use of this function if it is undefined
24848         or if we alias it to stat.
24849         Reported by Simon Josefsson.
24850
24851 2010-03-27  Bruno Haible  <bruno@clisp.org>
24852
24853         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
24854         * modules/getlogin (configure.ac): Update.
24855
24856         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
24857         * modules/getlogin_r (configure.ac): Update.
24858
24859         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
24860         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
24861         * modules/inet_ntop (configure.ac): Update.
24862
24863         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
24864         * modules/inet_pton (configure.ac): Update.
24865
24866         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
24867         * modules/mbslen (configure.ac): Update.
24868
24869         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
24870         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
24871         * modules/forkpty (configure.ac): Update.
24872         * modules/openpty (configure.ac): Update.
24873
24874 2010-03-26  Simon Josefsson  <simon@josefsson.org>
24875
24876         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
24877         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
24878
24879 2010-03-25  Eric Blake  <eblake@redhat.com>
24880
24881         maint: use pragma consistently across replacement headers
24882         * lib/ctype.in.h (system_header): Hoist for consistent placement.
24883         * lib/dirent.in.h (system_header): Likewise.
24884         * lib/errno.in.h (system_header): Likewise.
24885         * lib/float.in.h (system_header): Likewise.
24886         * lib/getopt.in.h (system_header): Likewise.
24887         * lib/iconv.in.h (system_header): Likewise.
24888         * lib/inttypes.in.h (system_header): Likewise.
24889         * lib/langinfo.in.h (system_header): Likewise.
24890         * lib/locale.in.h (system_header): Likewise.
24891         * lib/math.in.h (system_header): Likewise.
24892         * lib/netdb.in.h (system_header): Likewise.
24893         * lib/netinet_in.in.h (system_header): Likewise.
24894         * lib/pty.in.h (system_header): Likewise.
24895         * lib/sched.in.h (system_header): Likewise.
24896         * lib/se-selinux.in.h (system_header): Likewise.
24897         * lib/search.in.h (system_header): Likewise.
24898         * lib/spawn.in.h (system_header): Likewise.
24899         * lib/stdarg.in.h (system_header): Likewise.
24900         * lib/stdint.in.h (system_header): Likewise.
24901         * lib/string.in.h (system_header): Likewise.
24902         * lib/strings.in.h (system_header): Likewise.
24903         * lib/sys_file.in.h (system_header): Likewise.
24904         * lib/sys_ioctl.in.h (system_header): Likewise.
24905         * lib/sys_socket.in.h (system_header): Likewise.
24906         * lib/sys_times.in.h (system_header): Likewise.
24907         * lib/sys_utsname.in.h (system_header): Likewise.
24908         * lib/sys_wait.in.h (system_header): Likewise.
24909         * lib/sysexits.in.h (system_header): Likewise.
24910         * lib/unistd.in.h (system_header): Likewise.
24911         * lib/wctype.in.h (system_header): Likewise.
24912
24913         arpa/inet: fix mingw compilation warning
24914         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
24915         Reported by Matthew Bolte.
24916
24917 2010-03-25  Bruno Haible  <bruno@clisp.org>
24918
24919         Avoid collision between gnulib wrapper and libintl wrapper.
24920         * lib/printf.c (printf): Don't define if a printf wrapper is already
24921         defined in intl/printf.c.
24922         Reported by Michel Boaventura <michel@michelboaventura.com>.
24923
24924 2010-03-25  Bruno Haible  <bruno@clisp.org>
24925
24926         Use ANSI C.
24927         * lib/readutmp.h (getutent): Provide ANSI C prototype.
24928
24929 2010-03-25  Bruno Haible  <bruno@clisp.org>
24930
24931         Minor formatting changes.
24932         * lib/acosl.c: Insert space before function argument list.
24933         * lib/argz.c: Likewise.
24934         * lib/asinl.c: Likewise.
24935         * lib/expl.c: Likewise.
24936         * lib/gen-uni-tables.c: Likewise.
24937         * lib/gettext.h: Likewise.
24938         * lib/glthread/lock.h: Likewise.
24939         * lib/tanl.c: Likewise.
24940         * lib/uniname/uniname.c: Likewise.
24941         * tests/test-idpriv-drop.c: Likewise.
24942         * tests/test-idpriv-droptemp.c: Likewise.
24943         * tests/test-lock.c: Likewise.
24944         * tests/test-tls.c: Likewise.
24945         * lib/argp-help.c: Insert space before function-like macro argument
24946         list.
24947         * lib/memcmp.c: Likewise.
24948         * tests/test-base64.c: Likewise.
24949         * lib/localename.c: Insert space before sizeof's argument list.
24950         * lib/safe-alloc.h: Likewise.
24951         * lib/file-set.h: Insert space before macro argument list.
24952         * tests/test-argp.c: Likewise.
24953         * lib/argp-namefrob.h: Insert space before function parameter list.
24954         * lib/getaddrinfo.c: Likewise.
24955         * lib/netdb.in.h: Likewise.
24956         * lib/parse-duration.h: Likewise.
24957         * lib/parse-duration.c: Likewise.
24958         * lib/poll.c: Likewise.
24959         * lib/select.c: Likewise.
24960         * lib/trim.h: Likewise.
24961         * tests/test-usleep.c: Likewise.
24962         * lib/ldexpl.c: Insert space before function parameter list and before
24963         function argument list.
24964         * lib/logl.c: Likewise.
24965         * lib/sqrtl.c: Likewise.
24966         * lib/trim.c: Likewise.
24967         * lib/cosl.c: Use GNU style indentation. Insert space before function
24968         argument list.
24969         * lib/sinl.c: Likewise.
24970         * lib/tsearch.c: Insert space after 'for'.
24971         Reported by Jim Meyering.
24972
24973 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
24974
24975         * maint.mk (sc_Wundef_boolean): Check for the presence of the
24976         config header before grepping, as it's not present before
24977         autoreconf/configure are run.  Reported by Simon Josefsson.
24978
24979 2010-03-23  Bruno Haible  <bruno@clisp.org>
24980
24981         pt_chown: Make it work with automake < 1.11.
24982         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
24983         Reported by Simon Josefsson.
24984
24985 2010-03-23  Bruno Haible  <bruno@clisp.org>
24986
24987         pt_chown: Don't depend on GPLed modules.
24988         * lib/pt_chown.c: Don't include idpriv.h.
24989         (main): Don't drop privileges.
24990         * modules/pt_chown (Depends-on): Remove idpriv-drop.
24991         Reported by Simon Josefsson.
24992
24993 2010-03-24  Simon Josefsson  <simon@josefsson.org>
24994
24995         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
24996         suggestions from karl@freefriends.org (Karl Berry).
24997
24998 2010-03-22  Eric Blake  <eblake@redhat.com>
24999
25000         gethostname: further tweaks
25001         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25002         are overriding gethostname.
25003         Suggested by Bruno Haible.
25004
25005 2010-03-21  Bruno Haible  <bruno@clisp.org>
25006
25007         Fix comments.
25008         * lib/forkpty.c (rpl_forkpty): Fix comment.
25009         * lib/openpty.c (rpl_openpty): Likewise.
25010         Reported by Eric Blake.
25011
25012 2010-03-22  Eric Blake  <eblake@redhat.com>
25013
25014         gethostname: fix build on mingw
25015         * lib/unistd.in.h (includes): Work around fact that mingw
25016         <winsock2.h> re-includes <unistd.h>, by avoiding any
25017         redeclarations if we are being included by <winsock2.h>.
25018         Reported by Matthias Bolte.
25019
25020 2010-03-21  Bruno Haible  <bruno@clisp.org>
25021
25022         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25023         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25024         modifications.
25025         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25026         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25027         provide the replacement.
25028         * modules/forkpty (Depends-on): Add openpty, login_tty.
25029         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25030         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25031         * doc/glibc-functions/forkpty.texi: More supported platforms.
25032         * config/srclist.txt: Add forkpty.c (commented).
25033
25034 2010-03-21  Bruno Haible  <bruno@clisp.org>
25035
25036         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25037         (Makefile.am): Verify that PTY_LIB is defined.
25038
25039         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25040
25041 2010-03-21  Bruno Haible  <bruno@clisp.org>
25042
25043         Tests for module 'login_tty'.
25044         * modules/login_tty-tests: New file.
25045         * tests/test-login_tty.c: New file.
25046
25047         New module 'login_tty'.
25048         * lib/login_tty.c: New file.
25049         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25050         * modules/login_tty: New file.
25051         * doc/glibc-functions/login_tty.texi: Mention the new module.
25052
25053 2010-03-21  Bruno Haible  <bruno@clisp.org>
25054
25055         login_tty: Documentation.
25056         * doc/glibc-functions/login_tty.texi: New file.
25057         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25058
25059 2010-03-21  Bruno Haible  <bruno@clisp.org>
25060
25061         pty: Consistent macro naming.
25062         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25063         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25064         * modules/pty (configure.ac): Update.
25065
25066 2010-03-21  Bruno Haible  <bruno@clisp.org>
25067
25068         Tests for openpty: Make stricter.
25069         * tests/test-openpty.c (main): Add test of canonical processing and
25070         erase.
25071         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25072
25073         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25074         * lib/openpty.c (openpty): New replacement function.
25075         * lib/pty.in.h: Include <termios.h>.
25076         (openpty): Update declaration. Add comments.
25077         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25078         is not declared, arrange to provide the replacement. Check for _getpty
25079         and posix_openpt.
25080         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25081         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25082         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25083         * modules/pty-tests (test_pty_c___LDADD): New variable.
25084         * doc/glibc-functions/openpty.texi: More supported platforms.
25085
25086 2010-03-21  Bruno Haible  <bruno@clisp.org>
25087
25088         setenv: Tweaks.
25089         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25090         the test program.
25091         * doc/posix-functions/setenv.texi: Update platforms list.
25092
25093 2010-03-21  Bruno Haible  <bruno@clisp.org>
25094
25095         New module 'unlockpt'.
25096         * lib/unlockpt.c: New file, from glibc with modifications.
25097         * m4/unlockpt.m4: New file.
25098         * modules/unlockpt: New file.
25099         * lib/stdlib.in.h (unlockpt): New declaration.
25100         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25101         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25102         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25103         HAVE_UNLOCKPT.
25104         * doc/posix-functions/unlockpt.texi: Mention the new module.
25105         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25106         * config/srclist.txt: Add unlockpt.c (commented).
25107
25108 2010-03-21  Jim Meyering  <meyering@redhat.com>
25109
25110         maint.mk: prohibit inclusion of "intprops.h" without use
25111         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25112
25113 2010-03-21  Bruno Haible  <bruno@clisp.org>
25114
25115         New module 'grantpt'.
25116         * lib/grantpt.c: New file, from glibc with modifications.
25117         * m4/grantpt.m4: New file.
25118         * modules/grantpt: New file.
25119         * lib/stdlib.in.h (grantpt): New declaration.
25120         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25121         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25122         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25123         HAVE_GRANTPT.
25124         * doc/posix-functions/grantpt.texi: Mention the new module.
25125         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25126         * config/srclist.txt: Add grantpt.c (commented).
25127
25128 2010-03-21  Bruno Haible  <bruno@clisp.org>
25129
25130         New module 'pt_chown'.
25131         * lib/pt_chown.c: New file, from glibc with modifications.
25132         * lib/pty-private.h: New file, from glibc with modifications.
25133         * modules/pt_chown: New file.
25134         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25135
25136 2010-03-21  Bruno Haible  <bruno@clisp.org>
25137
25138         Tests for module 'ptsname'.
25139         * modules/ptsname-tests: New file.
25140         * tests/test-ptsname.c: New file.
25141
25142         New module 'ptsname'.
25143         * lib/ptsname.c: New file, from glibc with modifications.
25144         * m4/ptsname.m4: New file.
25145         * modules/ptsname: New file.
25146         * lib/stdlib.in.h (ptsname): New declaration.
25147         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25148         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25149         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25150         HAVE_PTSNAME.
25151         * doc/posix-functions/ptsname.texi: Mention the new module.
25152         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25153         * config/srclist.txt: Add ptsname.c (commented).
25154
25155 2010-03-21  Bruno Haible  <bruno@clisp.org>
25156
25157         Tests for module 'ttyname_r'.
25158         * modules/ttyname_r-tests: New file.
25159         * tests/test-ttyname_r.c: New file.
25160
25161         New module 'ttyname_r'.
25162         * lib/ttyname_r.c: New file.
25163         * m4/ttyname_r.m4: New file.
25164         * modules/ttyname_r: New file.
25165         * lib/unistd.in.h (ttyname_r): New declaration.
25166         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25167         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25168         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25169         HAVE_TTYNAME_R.
25170         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25171         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25172
25173 2010-03-20  Bruno Haible  <bruno@clisp.org>
25174
25175         signal: Undefine macro definitions in C++ mode.
25176         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25177         sigfillset): Undefine macro definitions from the system header in C++
25178         mode.
25179         Reported by John W. Eaton <jwe@gnu.org>.
25180
25181 2010-03-20  Bruno Haible  <bruno@clisp.org>
25182
25183         Ensure no #include statements inside extern "C" { ... }.
25184         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25185         contain #include statements.
25186         * lib/time.in.h: Likewise.
25187
25188 2010-03-20  Bruno Haible  <bruno@clisp.org>
25189
25190         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25191         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25192         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25193         Reported by John W. Eaton <jwe@gnu.org>.
25194
25195 2010-03-20  Bruno Haible  <bruno@clisp.org>
25196
25197         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25198         Reported by Jim Meyering.
25199
25200 2010-03-20  Bruno Haible  <bruno@clisp.org>
25201
25202         pipe: Set errno upon failure.
25203         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25204         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25205         errno value in error message.
25206
25207 2010-03-20  Bruno Haible  <bruno@clisp.org>
25208             Jim Meyering  <meyering@redhat.com>
25209
25210         lchown: Avoid "unused variable" warning.
25211         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25212
25213 2010-03-20  Bruno Haible  <bruno@clisp.org>
25214
25215         Work around unlink() bug on MacOS X 10.5.6.
25216         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25217         attempting to unlink a parent directory.
25218         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25219         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25220         activate for the replacement function.
25221         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25222
25223 2010-03-20  Bruno Haible  <bruno@clisp.org>
25224
25225         Fix link errors on Solaris 8.
25226         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25227         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25228
25229 2010-03-19  Jim Meyering  <meyering@redhat.com>
25230
25231         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25232         The _LIBC implementation of build_range_exp correctly honors the
25233         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25234         However, the non-_LIBC implementation would ignore that syntax-bit
25235         flag and return REG_ERANGE unconditionally.
25236         This change makes it honor that flag.
25237         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25238         Make two pointer parameters "const".
25239         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25240         (parse_bracket_exp): Update caller.
25241
25242         regex.m4: correct the reversed range endpoint ([b-a]) test
25243         * m4/regex.m4: When requiring that [b-a] evoke failure,
25244         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
25245         test pass once again for x86-based systems.
25246
25247 2010-03-19  Bruno Haible  <bruno@clisp.org>
25248
25249         scandir: Fix link error on Solaris 8.
25250         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
25251         macros.
25252
25253 2010-03-19  Bruno Haible  <bruno@clisp.org>
25254
25255         getusershell: Fix documentation.
25256         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
25257         module.
25258         * doc/glibc-functions/setusershell.texi: Likewise.
25259
25260         getusershell: Provide declaration, missing on Solaris 9.
25261         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
25262         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
25263         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
25264         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
25265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25266         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
25267         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
25268         HAVE_GETUSERSHELL.
25269         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
25270
25271 2010-03-19  Bruno Haible  <bruno@clisp.org>
25272
25273         wctype: Provide iswblank function.
25274         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
25275         exists and is fine.
25276         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
25277         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
25278         * tests/test-wctype.c (main): Re-enable the iswblank tests.
25279         * doc/posix-functions/iswblank.texi: Update.
25280
25281 2010-03-19  Bruno Haible  <bruno@clisp.org>
25282
25283         Tests of module 'pty' in C++ mode.
25284         * modules/pty-tests: New file.
25285         * tests/test-pty-c++.cc: New file.
25286         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25287
25288 2010-03-19  Eric Blake  <eblake@redhat.com>
25289
25290         logb: fix documentation
25291         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
25292         1.5 declaration bug.
25293
25294         forkpty, openpty: prefer glibc's const-safe prototype
25295         * lib/forkpty.c (rpl_forkpty): New file.
25296         * lib/openpty.c (rpl_openpty): Likewise.
25297         * modules/forkpty (Files): Distribute it.
25298         * modules/openpty (Files): Likewise.
25299         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
25300         check...
25301         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
25302         replacement for for non-const BSD signature.
25303         * modules/pty (Makefile.am): Substitute witnesses.
25304         * lib/pty.in.h (forkpty, openpty): Declare replacements.
25305         * tests/test-forkpty.c: Update signature check.
25306         * tests/test-openpty.c: Likewise.
25307         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
25308         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25309
25310         forkpty, openpty: split functions into new modules
25311         * modules/pty (Makefile.am): Substitute new witnesses.
25312         (Libraries): Move library detection...
25313         * modules/forkpty: ...into new module.
25314         * modules/openpty: Another new module.
25315         * modules/pty-tests: Rename and split...
25316         * modules/forkpty-tests: ...to this...
25317         * modules/openpty-tests: ...and this.
25318         * tests/test-pty.c: Rename and split...
25319         * tests/test-forkpty.c: ...to this...
25320         * tests/test-openpty.c: ...and this.
25321         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
25322         (gl_PTY): Split library searching...
25323         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
25324         (gl_FORKPTY, gl_OPENPTY): New macros.
25325         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
25326         * NEWS: Mention the split.
25327         * MODULES.html.sh (Misc): Document the modules.
25328         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
25329         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25330
25331         pty: improve replacement header
25332         * lib/pty.in.h: New file.
25333         * modules/pty (Files): Ship it.
25334         (Makefile.am): Always build replacement.
25335         * m4/pty.m4: Rename...
25336         * m4/pty_h.m4: ...to this.
25337         (gl_PTY): Modernize setting of witness macros; update check of
25338         forkpty to take proper advantage of cache.
25339         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
25340
25341         getopt: avoid compiler warning
25342         * lib/getopt.c (attribute_hidden): Remove unused macro.
25343
25344 2010-03-18  Bruno Haible  <bruno@clisp.org>
25345
25346         Fix link errors on Solaris 8.
25347         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25348         * modules/search-tests (test_search_c___LDADD): Likewise.
25349         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25350         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25351         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25352         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25353         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25354         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25355         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25356
25357 2010-03-18  Bruno Haible  <bruno@clisp.org>
25358
25359         Fix bug introduced on 2010-03-14.
25360         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25361         (gl_SPAWN_H): Require it.
25362         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25363         Reported by Simon Josefsson.
25364
25365 2010-03-18  Bruno Haible  <bruno@clisp.org>
25366
25367         Fix typo introduced on 2009-12-31.
25368         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25369         posix_spawn_file_actions_adddup2.
25370
25371 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25372         and Eric Blake  <eblake@redhat.com>
25373
25374         test-vc-list-files-git: make more robust
25375         * tests/test-vc-list-files-git.sh: Unset problematic environment
25376         variables.  Chain commands together.
25377
25378 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
25379
25380         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
25381         `AC_CHECK_DECL' invocation.
25382
25383 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
25384
25385         * lib/inttostr.c (inttostr): Make sure the invocation of verify
25386         appears before executable statements. Suggested by Petr Sumbera
25387         <Petr.Sumbera@Sun.COM>.
25388
25389 2010-03-14  Bruno Haible  <bruno@clisp.org>
25390
25391         * tests/test-flock.c (test_exclusive): Comment out a test that causes
25392         portability problems. Instead use a simpler test.
25393         (main): Check that invalid arguments are rejected only on Linux.
25394
25395 2010-03-14  Bruno Haible  <bruno@clisp.org>
25396
25397         Fix bug introduced on 2009-12-31.
25398         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25399         gl_PREREQ_SYS_H_WINSOCK2 always.
25400         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
25401         SYS_SOCKET_H variable.
25402         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
25403         Update comments.
25404         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
25405         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25406         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25407         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25408         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25409
25410 2010-03-14  Bruno Haible  <bruno@clisp.org>
25411
25412         Fix values returned by sinl, cosl.
25413         * lib/trigl.h: Add specification comments.
25414         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25415         that combines the values from the precomputed table with the values of
25416         the Chebyshev polynomials.
25417
25418 2010-03-14  Bruno Haible  <bruno@clisp.org>
25419
25420         Fix compilation error when modules 'posix_spawn[p]' are not used.
25421         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
25422         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
25423
25424 2010-03-14  Bruno Haible  <bruno@clisp.org>
25425
25426         Fix compilation error on mingw when module 'time_r' is not used.
25427         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
25428         is 1.
25429         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
25430         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25431         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
25432         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
25433
25434 2010-03-14  Bruno Haible  <bruno@clisp.org>
25435
25436         Fix compilation error with Sun C.
25437         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
25438         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
25439         instead of GCC specific ULONG_LONG_MAX.
25440         * lib/xstrtoll.c: Likewise.
25441         * lib/xstrtoull.c: Likewise.
25442
25443 2010-03-13  Bruno Haible  <bruno@clisp.org>
25444
25445         Allow the user to disable C++ code and tests.
25446         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
25447         (gl_PROG_ANSI_CXX): Require it.
25448
25449 2010-03-13  Bruno Haible  <bruno@clisp.org>
25450
25451         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
25452         cases.
25453
25454 2010-03-13  Bruno Haible  <bruno@clisp.org>
25455
25456         Test that gnulib does not break the standard C++ headers.
25457         * tests/test-locale-c++2.cc: New file.
25458         * modules/locale-tests (Files): Add it.
25459         (Makefile.am): Compile it for test-locale-c++.
25460         * tests/test-math-c++2.cc: New file.
25461         * modules/math-tests (Files): Add it.
25462         (Makefile.am): Compile it for test-math-c++.
25463         * tests/test-signal-c++2.cc: New file.
25464         * modules/signal-tests (Files): Add it.
25465         (Makefile.am): Compile it for test-signal-c++.
25466         * tests/test-stdio-c++2.cc: New file.
25467         * modules/stdio-tests (Files): Add it.
25468         (Makefile.am): Compile it for test-stdio-c++.
25469         * tests/test-stdlib-c++2.cc: New file.
25470         * modules/stdlib-tests (Files): Add it.
25471         (Makefile.am): Compile it for test-stdlib-c++.
25472         * tests/test-string-c++2.cc: New file.
25473         * modules/string-tests (Files): Add it.
25474         (Makefile.am): Compile it for test-string-c++.
25475         * tests/test-time-c++2.cc: New file.
25476         * modules/time-tests (Files): Add it.
25477         (Makefile.am): Compile it for test-time-c++.
25478         Reported by John W. Eaton <jwe@gnu.org>.
25479
25480 2010-03-13  Bruno Haible  <bruno@clisp.org>
25481
25482         * gnulib-tool (func_usage): Clarify which options are available for
25483         --create-testdir and --create-megatestdir.
25484
25485 2010-03-13  Bruno Haible  <bruno@clisp.org>
25486
25487         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
25488         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
25489         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
25490         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25491         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
25492         when appropriate.
25493         Reported by Jim Meyering.
25494
25495 2010-03-12  Simon Josefsson  <simon@josefsson.org>
25496
25497         * gnulib-tool (func_import): Explain origin of code.
25498
25499 2010-03-12  Bruno Haible  <bruno@clisp.org>
25500
25501         Fix problem with automake's definition of CXXLINK.
25502         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
25503         Reported by Simon Josefsson and Ludovic Courtès.
25504
25505 2010-03-12  Bruno Haible  <bruno@clisp.org>
25506
25507         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
25508         stable releases.
25509
25510 2010-03-11  Bruno Haible  <bruno@clisp.org>
25511
25512         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
25513         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
25514         whether the system provides one variant or multiple variants of the
25515         function.
25516         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
25517         C++ compilers.
25518         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
25519         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
25520         Reported by Jim Meyering.
25521
25522 2010-03-09  Simon Josefsson  <simon@josefsson.org>
25523
25524         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
25525
25526 2010-03-08  Bruno Haible  <bruno@clisp.org>
25527
25528         gnulib-tool: Add support for --libtool in --create-testdir.
25529         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
25530         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
25531
25532 2010-03-08  Eric Blake  <eblake@redhat.com>
25533
25534         gnulib-tool.texi: mention possibility of git submodule
25535         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
25536         submodules.
25537         * doc/.gitignore: Ignore another generated file.
25538
25539 2010-03-08  Karl Berry  <karl@gnu.org>
25540
25541         * doc/gnulib-tool.texi (VCS Issues): Mention third option
25542         of committing gnulib files while skipping others.
25543
25544 2010-03-07  Bruno Haible  <bruno@clisp.org>
25545
25546         Tests of module 'wctype' in C++ mode.
25547         * tests/test-wctype-c++.cc: New file.
25548         * modules/wctype-tests (Files): Add it and tests/signature.h.
25549         (Depends-on): Add ansi-c++-opt.
25550         (Makefile.am): Arrange to compile and run test-wctype-c++.
25551
25552         Tests of module 'wchar' in C++ mode.
25553         * tests/test-wchar-c++.cc: New file.
25554         * modules/wchar-tests (Files): Add it and tests/signature.h.
25555         (Depends-on): Add ansi-c++-opt.
25556         (Makefile.am): Arrange to compile and run test-wchar-c++.
25557         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
25558         gl_MODULE_INDICATOR.
25559
25560         Tests of module 'unistd' in C++ mode.
25561         * tests/test-unistd-c++.cc: New file.
25562         * modules/unistd-tests (Files): Add it and tests/signature.h.
25563         (Depends-on): Add ansi-c++-opt.
25564         (Makefile.am): Arrange to compile and run test-unistd-c++.
25565         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
25566         gl_MODULE_INDICATOR.
25567
25568         Tests of module 'time' in C++ mode.
25569         * tests/test-time-c++.cc: New file.
25570         * modules/time-tests (Files): Add it and tests/signature.h.
25571         (Depends-on): Add ansi-c++-opt.
25572         (Makefile.am): Arrange to compile and run test-time-c++.
25573         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25574
25575         Tests of module 'sys_time' in C++ mode.
25576         * tests/test-sys_time-c++.cc: New file.
25577         * modules/sys_time-tests (Files): Add it and tests/signature.h.
25578         (Depends-on): Add ansi-c++-opt.
25579         (Makefile.am): Arrange to compile and run test-sys_time-c++.
25580         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
25581         gl_MODULE_INDICATOR.
25582
25583         Tests of module 'sys_stat' in C++ mode.
25584         * tests/test-sys_stat-c++.cc: New file.
25585         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
25586         (Depends-on): Add ansi-c++-opt.
25587         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
25588         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
25589         gl_MODULE_INDICATOR.
25590
25591         Tests of module 'sys_socket' in C++ mode.
25592         * tests/test-sys_socket-c++.cc: New file.
25593         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
25594         (Depends-on): Add ansi-c++-opt.
25595         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
25596         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
25597         gl_MODULE_INDICATOR.
25598
25599         Tests of module 'sys_select' in C++ mode.
25600         * tests/test-sys_select-c++.cc: New file.
25601         * modules/sys_select-tests (Files): Add it and tests/signature.h.
25602         (Depends-on): Add ansi-c++-opt.
25603         (Makefile.am): Arrange to compile and run test-sys_select-c++.
25604         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
25605         gl_MODULE_INDICATOR.
25606
25607         Tests of module 'sys_ioctl' in C++ mode.
25608         * tests/test-sys_ioctl-c++.cc: New file.
25609         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
25610         (Depends-on): Add ansi-c++-opt.
25611         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
25612         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
25613         gl_MODULE_INDICATOR.
25614
25615         Tests of module 'string' in C++ mode.
25616         * tests/test-string-c++.cc: New file.
25617         * modules/string-tests (Files): Add it and tests/signature.h.
25618         (Depends-on): Add ansi-c++-opt.
25619         (Makefile.am): Arrange to compile and run test-string-c++.
25620         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
25621         gl_MODULE_INDICATOR.
25622
25623         Tests of module 'stdlib' in C++ mode.
25624         * tests/test-stdlib-c++.cc: New file.
25625         * modules/stdlib-tests (Files): Add it and tests/signature.h.
25626         (Depends-on): Add ansi-c++-opt.
25627         (Makefile.am): Arrange to compile and run test-stdlib-c++.
25628         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
25629         gl_MODULE_INDICATOR.
25630
25631         Tests of module 'stdio' in C++ mode.
25632         * tests/test-stdio-c++.cc: New file.
25633         * modules/stdio-tests (Files): Add it and tests/signature.h.
25634         (Depends-on): Add ansi-c++-opt.
25635         (Makefile.am): Arrange to compile and run test-stdio-c++.
25636         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
25637         gl_MODULE_INDICATOR.
25638
25639         Tests of module 'spawn' in C++ mode.
25640         * tests/test-spawn-c++.cc: New file.
25641         * modules/spawn-tests (Files): Add it and tests/signature.h.
25642         (Depends-on): Add ansi-c++-opt.
25643         (Makefile.am): Arrange to compile and run test-spawn-c++.
25644         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
25645         gl_MODULE_INDICATOR.
25646
25647         Tests of module 'signal' in C++ mode.
25648         * tests/test-signal-c++.cc: New file.
25649         * modules/signal-tests (Files): Add it and tests/signature.h.
25650         (Depends-on): Add ansi-c++-opt.
25651         (Makefile.am): Arrange to compile and run test-signal-c++.
25652         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
25653         gl_MODULE_INDICATOR.
25654
25655         Tests of module 'search' in C++ mode.
25656         * tests/test-search-c++.cc: New file.
25657         * modules/search-tests (Files): Add it and tests/signature.h.
25658         (Depends-on): Add ansi-c++-opt.
25659         (Makefile.am): Arrange to compile and run test-search-c++.
25660         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
25661         gl_MODULE_INDICATOR.
25662
25663         Tests of module 'math' in C++ mode.
25664         * tests/test-math-c++.cc: New file.
25665         * modules/math-tests (Files): Add it and tests/signature.h.
25666         (Depends-on): Add ansi-c++-opt.
25667         (Makefile.am): Arrange to compile and run test-math-c++.
25668         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25669
25670         Tests of module 'locale' in C++ mode.
25671         * tests/test-locale-c++.cc: New file.
25672         * modules/locale-tests (Files): Add it and tests/signature.h.
25673         (Depends-on): Add ansi-c++-opt.
25674         (Makefile.am): Arrange to compile and run test-locale-c++.
25675         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
25676         gl_MODULE_INDICATOR.
25677
25678         Tests of module 'langinfo' in C++ mode.
25679         * tests/test-langinfo-c++.cc: New file.
25680         * modules/langinfo-tests (Files): Add it and tests/signature.h.
25681         (Depends-on): Add ansi-c++-opt.
25682         (Makefile.am): Arrange to compile and run test-langinfo-c++.
25683         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
25684         gl_MODULE_INDICATOR.
25685
25686         Tests of module 'iconv-h' in C++ mode.
25687         * tests/test-iconv-h-c++.cc: New file.
25688         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
25689         (Depends-on): Add ansi-c++-opt.
25690         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
25691
25692         Tests of module 'glob' in C++ mode.
25693         * tests/test-glob-c++.cc: New file.
25694         * modules/glob-tests (Files): Add it.
25695         (Depends-on): Add ansi-c++-opt.
25696         (Makefile.am): Arrange to compile and run test-glob-c++.
25697
25698         Tests of module 'fcntl-h' in C++ mode.
25699         * tests/test-fcntl-h-c++.cc: New file.
25700         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
25701         (Depends-on): Add ansi-c++-opt.
25702         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
25703         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
25704         gl_MODULE_INDICATOR.
25705
25706         Tests of module 'dirent' in C++ mode.
25707         * tests/test-dirent-c++.cc: New file.
25708         * modules/dirent-tests (Files): Add it and tests/signature.h.
25709         (Depends-on): Add ansi-c++-opt.
25710         (Makefile.am): Arrange to compile and run test-dirent-c++.
25711         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25712         gl_MODULE_INDICATOR.
25713
25714         New module 'ansi-c++-opt'.
25715         * modules/ansi-c++-opt: New file.
25716         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
25717
25718         Document C++ namespace mode.
25719         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
25720
25721         wctype: Avoid #define replacements in C++ mode.
25722         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
25723         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
25724         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
25725         In C++, define a namespaced alias symbol.
25726         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
25727         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
25728         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
25729         rule.
25730
25731         wchar: Avoid #define replacements in C++ mode.
25732         * lib/wchar.in.h: Include c++defs.h.
25733         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
25734         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
25735         symbol.
25736         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
25737         * modules/wchar (Depends-on): Add c++defs.
25738         (Makefile.am): Update wchar.h rule.
25739
25740         unistd: Avoid #define replacements in C++ mode.
25741         * lib/unistd.in.h: Include c++defs.h.
25742         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
25743         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
25744         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
25745         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
25746         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
25747         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
25748         symbol.
25749         (environ): Update.
25750         * modules/unistd (Depends-on): Add c++defs.
25751         (Makefile.am): Update unistd.h rule.
25752
25753         time: Avoid #define replacements in C++ mode.
25754         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
25755         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
25756         define a namespaced alias symbol.
25757         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
25758         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
25759         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
25760         * modules/time (Depends-on): Add c++defs, warn-on-use.
25761         (Makefile.am): Update time.h rule.
25762         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25763         * modules/nanosleep (configure.ac): Likewise.
25764         * modules/strptime (configure.ac): Likewise.
25765         * modules/timegm (configure.ac): Likewise.
25766
25767         sys_time: Avoid #define replacements in C++ mode.
25768         * lib/sys_time.in.h: Include c++defs.h.
25769         (gettimeofday): In C++, define a namespaced alias symbol.
25770         * modules/sys_time (Depends-on): Add c++defs.
25771         (Makefile.am): Update sys/time.h rule.
25772
25773         sys_stat: Avoid #define replacements in C++ mode.
25774         * lib/sys_stat.in.h: Include c++defs.h.
25775         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
25776         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
25777         namespaced alias symbol.
25778         In C++, define a namespaced alias symbol.
25779         * modules/sys_stat (Depends-on): Add c++defs.
25780         (Makefile.am): Update sys/stat.h rule.
25781
25782         sys_socket: Avoid #define replacements in C++ mode.
25783         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
25784         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
25785         definitions also when the system has a <sys/socket.h>.
25786         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25787         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
25788         In C++, define a namespaced alias symbol.
25789         * modules/sys_socket (Depends-on): Add c++defs.
25790         (Makefile.am): Update sys/socket.h rule.
25791
25792         sys_select: Avoid #define replacements in C++ mode.
25793         * lib/sys_select.in.h: Include c++defs.h. Enable the function
25794         definitions also when the system has a <sys/select.h>.
25795         (select): In C++, define a namespaced alias symbol.
25796         * modules/sys_select (Depends-on): Add c++defs.
25797         (Makefile.am): Update sys/select.h rule.
25798
25799         sys_ioctl: Avoid #define replacements in C++ mode.
25800         * lib/sys_ioctl.in.h: Include c++defs.h.
25801         (ioctl): In C++, define a namespaced alias symbol.
25802         * modules/sys_ioctl (Depends-on): Add c++defs.
25803         (Makefile.am): Update sys/ioctl.h rule.
25804
25805         string: Avoid #define replacements in C++ mode.
25806         * lib/string.in.h: Include c++defs.h.
25807         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
25808         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25809         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25810         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
25811         strsignal, strverscmp): In C++, define a namespaced alias symbol.
25812         * modules/string (Depends-on): Add c++defs.
25813         (Makefile.am): Update string.h rule.
25814
25815         stdlib: Avoid #define replacements in C++ mode.
25816         * lib/stdlib.in.h: Include c++defs.h.
25817         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
25818         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
25819         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
25820         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
25821         symbol.
25822         * modules/stdlib (Depends-on): Add c++defs.
25823         (Makefile.am): Update stdlib.h rule.
25824
25825         stdio: Avoid #define replacements in C++ mode.
25826         * lib/stdio.in.h: Include c++defs.h.
25827         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
25828         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
25829         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
25830         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
25831         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
25832         namespaced alias symbol.
25833         * modules/stdio (Depends-on): Add c++defs.
25834         (Makefile.am): Update stdio.h rule.
25835
25836         spawn: Avoid #define replacements in C++ mode.
25837         * lib/spawn.in.h: Include c++defs.h.
25838         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25839         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25840         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25841         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25842         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25843         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25844         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25845         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25846         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25847         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25848         In C++, define a namespaced alias symbol.
25849         * modules/spawn (Depends-on): Add c++defs.
25850         (Makefile.am): Update spawn.h rule.
25851
25852         signal: Avoid #define replacements in C++ mode.
25853         * lib/signal.in.h: Include c++defs.h.
25854         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25855         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
25856         namespaced alias symbol.
25857         * modules/signal (Depends-on): Add c++defs.
25858         (Makefile.am): Update signal.h rule.
25859
25860         search: Avoid #define replacements in C++ mode.
25861         * lib/search.in.h: Include c++defs.h.
25862         (_gl_search_compar_fn, _gl_search_action_fn): New types.
25863         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
25864         symbol.
25865         * modules/search (Depends-on): Add c++defs.
25866         (Makefile.am): Update search.h rule.
25867
25868         math: Avoid #define replacements in C++ mode.
25869         * lib/math.in.h: Include c++defs.h.
25870         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
25871         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
25872         trunc, truncl): In C++, define a namespaced alias symbol.
25873         * modules/math (Depends-on): Add c++defs.
25874         (Makefile.am): Update math.h rule.
25875
25876         locale: Avoid #define replacements in C++ mode.
25877         * lib/locale.in.h: Include c++defs.h.
25878         (duplocale): In C++, define a namespaced alias symbol.
25879         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
25880         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
25881         * modules/locale (Depends-on): Add c++defs.
25882         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
25883
25884         langinfo: Avoid #define replacements in C++ mode.
25885         * lib/langinfo.in.h: Include c++defs.h.
25886         (nl_langinfo): In C++, define a namespaced alias symbol.
25887         * modules/langinfo (Depends-on): Add c++defs.
25888         (Makefile.am): Update langinfo.h rule.
25889
25890         iconv-h: Avoid #define replacements in C++ mode.
25891         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
25892         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
25893         symbol.
25894         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25895         whenever iconv is present.
25896         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
25897         (Makefile.am): Update iconv.h rule.
25898
25899         glob: Avoid #define replacements in C++ mode.
25900         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
25901         (_gl_glob_errfunc_fn): New type.
25902         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
25903         symbol.
25904         * modules/glob (Depends-on): Add c++defs, warn-on-use.
25905         (Makefile.am): Update glob.h rule.
25906
25907         fcntl-h: Avoid #define replacements in C++ mode.
25908         * lib/fcntl.in.h: Include c++defs.h.
25909         (fcntl, open, openat): In C++, define a namespaced alias symbol.
25910         * modules/fcntl-h (Depends-on): Add c++defs.
25911         (Makefile.am): Update fcntl.h rule.
25912
25913         dirent: Avoid #define replacements in C++ mode.
25914         * lib/dirent.in.h: Include c++defs.h.
25915         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
25916         namespaced alias symbol.
25917         (dirfd): Update declaration.
25918         * modules/dirent (Depends-on): Add c++defs.
25919         (Makefile.am): Update dirent.h rule.
25920
25921         ctype: Make it usable in C++ code.
25922         * lib/ctype.in.h: Include c++defs.h.
25923         (isblank): Declare as extern "C".
25924         * modules/ctype (Depends-on): Add c++defs.
25925         (Makefile.am): Update ctype.h rule.
25926
25927         New module 'c++defs'.
25928         * modules/c++defs: New file.
25929         * build-aux/c++defs.h: New file.
25930         Reported by John W. Eaton <jwe@gnu.org>.
25931
25932 2010-03-07  Bruno Haible  <bruno@clisp.org>
25933
25934         logb: Provide missing declaration for Cygwin.
25935         * lib/math.in.h (logb): New declaration.
25936         * m4/logb.m4: New file.
25937         * modules/logb (Files): Add m4/logb.m4.
25938         (Depends-on): Add math.
25939         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
25940         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
25941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
25942         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
25943         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
25944
25945 2010-03-07  Bruno Haible  <bruno@clisp.org>
25946
25947         Fix test-cond link error.
25948         * tests/test-cond.c: Include <stdio.h>.
25949
25950 2010-03-07  Bruno Haible  <bruno@clisp.org>
25951
25952         Fix test-dirent-safer link error.
25953         * modules/dirent-safer-tests (Makefile.am): Define
25954         test_dirent_safer_LDADD.
25955
25956 2010-03-07  Bruno Haible  <bruno@clisp.org>
25957
25958         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
25959         among default module list.
25960
25961 2010-03-07  Bruno Haible  <bruno@clisp.org>
25962
25963         Fix link error on platforms with GNU libiconv.
25964         * modules/unistr/u8-strcoll-tests (Makefile): Define
25965         test_u8_strcoll_LDADD.
25966         * modules/unistr/u16-strcoll-tests (Makefile): Define
25967         test_u16_strcoll_LDADD.
25968         * modules/unistr/u32-strcoll-tests (Makefile): Define
25969         test_u32_strcoll_LDADD.
25970
25971 2010-03-07  Bruno Haible  <bruno@clisp.org>
25972
25973         Use POSIX declarations for socket functions.
25974         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
25975         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
25976         rpl_sendto): Change declaration to match POSIX.
25977         * lib/connect.c (rpl_connect): Likewise.
25978         * lib/accept.c (rpl_accept): Likewise.
25979         * lib/bind.c (rpl_bind): Likewise.
25980         * lib/getpeername.c (rpl_getpeername): Likewise.
25981         * lib/getsockname.c (rpl_getsockname): Likewise.
25982         * lib/recv.c (rpl_recv): Likewise.
25983         * lib/send.c (rpl_send): Likewise.
25984         * lib/recvfrom.c (rpl_recvfrom): Likewise.
25985         * lib/sendto.c (rpl_sendto): Likewise.
25986
25987 2010-03-06  Bruno Haible  <bruno@clisp.org>
25988
25989         Clarify access, euidaccess, faccessat.
25990         * doc/posix-functions/faccessat.texi: Mention security problem under
25991         "Other problems", not "Portability problems".
25992         * doc/posix-functions/access.texi: Likewise. Mention a related security
25993         problem.
25994         * doc/glibc-functions/euidaccess.texi: Mention security problems.
25995         * lib/euidaccess.c: Add comments about platforms.
25996         * lib/unistd.in.h (access, euidaccess): Add warnings.
25997
25998 2010-03-07  Bruno Haible  <bruno@clisp.org>
25999
26000         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26001         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26002         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26003         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26004         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26005         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26006         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26007         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26008         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26009         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26010         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26011         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26012         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26013         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26014         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26015         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26016         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26017         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26018         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26019         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26020         Likewise.
26021         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26022         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26023         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26024         Likewise.
26025         * tests/test-spawn.c (main): Make it work when
26026         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26027
26028 2010-03-07  Bruno Haible  <bruno@clisp.org>
26029
26030         Fix incorrect Makefile.am generation in German locale.
26031         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26032         Execute sed command with character range in C locale.
26033
26034 2010-03-06  Bruno Haible  <bruno@clisp.org>
26035
26036         Tests for module 'iconv-h'.
26037         * modules/iconv-h-tests: New file.
26038         * tests/test-iconv-h.c: New file.
26039
26040         New module 'iconv-h'.
26041         * modules/iconv-h: New file.
26042         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26043         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26044         (configure.ac): Remove gl_ICONV_H.
26045         (Makefile.am): Remove rule for iconv.h.
26046
26047 2010-03-06  Bruno Haible  <bruno@clisp.org>
26048
26049         More consistent naming of *.m4 files.
26050         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26051         * modules/wctype (Files): Update.
26052
26053         More consistent naming of *.m4 files.
26054         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26055         * modules/wchar (Files): Update.
26056
26057 2010-03-06  Jim Meyering  <meyering@redhat.com>
26058
26059         euidaccess: relax license to LGPLv2+
26060         * modules/euidaccess (License): Relax to LGPLv2+.
26061
26062 2010-03-06  Bruno Haible  <bruno@clisp.org>
26063
26064         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26065         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26066         (Makefile.am): Augment lib_SOURCES instead.
26067
26068 2010-03-04  Jim Meyering  <meyering@redhat.com>
26069
26070         utime: remove obsolete module
26071         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26072         unnecessary for years, and has been marked as obsolete for 10 months.
26073         * modules/utime: Remove file.
26074         * lib/utime.c: Remove file.
26075         * m4/utime.m4: Remove file.
26076         * m4/utimes-null.m4: Remove file.
26077         * doc/posix-functions/utime.texi (utime): Remove reference to
26078         the module.  Move the sole "fixed by gnulib" item into the
26079         "problems not fixed by Gnulib" list.
26080         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26081
26082 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26083
26084         * modules/exit (License): Relax license to LGPLv2+.
26085         (Status): Mark as obsolete.
26086         * NEWS: Mention deprecated 'exit' module.
26087         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26088         of now obsolete 'exit'.
26089
26090 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26091
26092         fts-lgpl: remove unused module
26093         * modules/fts-lgpl: Remove.
26094         * MODULES.html.sh (func_all_modules): Adjust.
26095         * check-module (find_included_lib_files): Adjust.
26096         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26097
26098 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26099
26100         copy-acl: enhance Solaris ACL error handling
26101         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26102         * lib/set-mode-acl.c (qset_acl): Likewise.
26103
26104 2010-03-02  Bruno Haible  <bruno@clisp.org>
26105
26106         spawn: Don't override the system defined values on FreeBSD 8.
26107         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26108         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26109         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26110         if HAVE_POSIX_SPAWN is 1.
26111         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26112
26113 2010-03-01  Bruno Haible  <bruno@clisp.org>
26114
26115         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26116         regarding Automake.
26117
26118 2010-02-25  Bruno Haible  <bruno@clisp.org>
26119
26120         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26121         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26122         setting, not afterwards.
26123         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26124
26125 2010-02-24  Eric Blake  <eblake@redhat.com>
26126
26127         bootstrap, git-version-gen: use timestamp
26128         * build-aux/git-version-gen (scriptversion): Force UTC.
26129         * build-aux/bootstrap (scriptversion): New variable.
26130
26131         bootstrap: allow older git
26132         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26133         older than 1.6.4.  Requested by the libvirt project.
26134
26135 2010-02-23  Eric Blake  <eblake@redhat.com>
26136
26137         warn-on-use: work with old autoconf
26138         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26139         AS_VAR semantics of autoconf 2.60.
26140         Reported by Bruno Haible.
26141
26142         bootstrap: improve some comments
26143         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26144         clarification comments.
26145
26146         gettimeofday: provide correct function
26147         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26148         when replacement is declared, otherwise provide gettimeofday.
26149         Reported by Michael Goffioul.
26150
26151 2010-02-23  Jim Meyering  <meyering@redhat.com>
26152
26153         lib-ignore: relax license to "unlimited", not LGPLv2+
26154         * modules/lib-ignore (License): Relax to "unlimited".
26155
26156 2010-02-23  Jim Meyering  <meyering@redhat.com>
26157
26158         lib-ignore: relax license to LGPLv2+
26159         * modules/lib-ignore (License): Relax to LGPLv2+.
26160
26161 2010-02-22  Eric Blake  <eblake@redhat.com>
26162
26163         lseek: avoid bash 3.2 broken pipe bug
26164         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26165         warning from bash 3.2.
26166         Reported by Ben Pfaff, with analysis from Bruno Haible.
26167
26168         bootstrap: support non-FSF copyright holder
26169         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26170         bootstrap.conf override of COPYRIGHT_HOLDER.
26171         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26172
26173         bootstrap: interoperate with gettext 0.14.1
26174         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26175
26176         bootstrap: allow for alternate submodule location
26177         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26178         hardcoding submodule location.
26179         (gnulib_mk): Allow direct use of Makefile.am.
26180
26181         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26182         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26183         rather than reconfiguring where the submodule points.
26184
26185         gettimeofday: restore support for platforms that lack function
26186         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26187         replacement if function is missing.
26188         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26189         * modules/sys_time (Makefile.am): Substitute it.
26190         * lib/sys_time.in.h (gettimeofday): Check it.
26191         Reported by Michael Goffioul.
26192
26193 2010-02-21  Bruno Haible  <bruno@clisp.org>
26194
26195         * lib/stdio.in.h (obstack_printf): Fix typo.
26196
26197 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26198
26199         vc-list-files: use bzr ls's -R option
26200         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26201         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26202
26203 2010-02-21  Jim Meyering  <meyering@redhat.com>
26204
26205         init.sh: fix EXEEXT shims to work also for names like test-prog
26206         * tests/init.sh: Re-exec a better shell, when needed.
26207         If the current shell lacks support for posix $(...), an init.sh-using
26208         test will now try to find a shell that supports that.  If EXEEXT is
26209         nonempty, we also require support for hyphen-in-alias-name and shell
26210         substitutions like ${var#glob}.  Failure to find such a shell results
26211         in a skipped test.
26212
26213 2010-02-21  Bruno Haible  <bruno@clisp.org>
26214
26215         Really work around around "broken pipe" error message from bash 3.2.
26216         * gnulib-tool (func_reset_sigpipe): Remove function.
26217         (echo): In bash 3.2, define to a function that uses printf.
26218         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26219
26220 2010-02-20  Bruno Haible  <bruno@clisp.org>
26221
26222         Restore support for automake 1.9.6 with autoconf 2.61.
26223         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26224         Reported by James Youngman <jay@gnu.org>.
26225
26226 2010-02-20  Bruno Haible  <bruno@clisp.org>
26227
26228         Improve *printf warning condition.
26229         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26230         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26231         and the function is overridden due to SIGPIPE emulation.
26232
26233 2010-02-20  Bruno Haible  <bruno@clisp.org>
26234
26235         * lib/stdio.in.h: Tweak comments.
26236
26237 2010-02-19  Bruno Haible  <bruno@clisp.org>
26238
26239         Make it easier to find modules. New gnulib-tool option '--find'.
26240         * gnulib-tool: New option --find.
26241         (func_usage): Document it.
26242         (func_sanitize_modulelist): New function, extracted from
26243         func_all_modules.
26244         (func_all_modules): Invoke it.
26245         * doc/gnulib-tool.texi (Which modules?): New node.
26246
26247 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
26248
26249         * lib/sys_select.in.h: Provide select replacement even if
26250         sys/select.h exists on a system, for Interix.
26251
26252 2010-02-18  Jim Meyering  <meyering@redhat.com>
26253
26254         init.sh: don't use $(...) just yet
26255         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
26256         to accommodate e.g., Solaris' /bin/sh.
26257
26258 2010-02-17  Bruno Haible  <bruno@clisp.org>
26259
26260         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
26261         Reported by Ludovic Courtès <ludo@gnu.org>.
26262
26263 2010-02-16  Simon Josefsson  <simon@josefsson.org>
26264
26265         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
26266         linking with -lintl.
26267
26268 2010-02-17  Simon Josefsson  <simon@josefsson.org>
26269
26270         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
26271         if not provided by the system's netdb.h.  Reported by
26272         ludo@gnu.org (Ludovic Courtès).
26273
26274 2010-02-15  Jim Meyering  <meyering@redhat.com>
26275
26276         init.sh: improve portability and efficiency
26277         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
26278         "dummy" in a for loop.
26279         Use '!', not '^' to select the complement of a character set used
26280         in a "case" statement.
26281         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
26282         Suggestions from Eric Blake.
26283
26284         init.sh: automatically accommodate programs with the .exe suffix
26285         Automatically arrange for an invocation of "prog" to execute the
26286         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
26287         may use the simpler "prog", yet still work when built on a system
26288         that requires specifying the added suffix.
26289         Do this by constructing a function named "prog" that invokes
26290         "prog.exe" for each .exe file in selected directories.
26291         * tests/init.sh (find_exe_basenames_): New function.
26292         (create_exe_shim_functions_): New function.
26293         (path_prepend_): Use it.
26294
26295         maint.mk: mark syntax-check sc_*.m rules as .PHONY
26296         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
26297         "make -t syntax-check" doesn't create a ton of sc_*.m files.
26298
26299 2010-02-14  Jim Meyering  <meyering@redhat.com>
26300
26301         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
26302         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
26303         (sc_prohibit_hash_pjw_without_use): New rule.
26304
26305         maint.mk: allow the default upload destination dir to be overridden
26306         * top/maint.mk (upload_dest_dir_): Define with a default that
26307         preserves the status quo.
26308         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
26309         Reported by Peter Simons.
26310
26311         maint.mk: prohibit inclusion of "hash.h" without_use
26312         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
26313
26314 2010-02-10  Jim Meyering  <meyering@redhat.com>
26315
26316         maint.mk: prohibit inclusion of "ignore-value.h" without_use
26317         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
26318
26319 2010-02-09  Eric Blake  <ebb9@byu.net>
26320         and Bruno Haible  <bruno@clisp.org>
26321
26322         obstack-printf-posix: ensure declaration
26323         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
26324         extracted from gl_FUNC_OBSTACK_PRINTF.
26325         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
26326         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26327         Likewise.
26328         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
26329         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
26330         0.
26331
26332 2010-02-08  Bruno Haible  <bruno@clisp.org>
26333
26334         gnulib-tool: Fix typo in 2010-02-07 commit.
26335         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
26336         Reported by Eric Blake.
26337
26338 2010-02-07  Bruno Haible  <bruno@clisp.org>
26339
26340         gnulib-tool: Fix up caching patches.
26341         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
26342         option --no-cache. Use associative arrays when supported by the shell.
26343         (sed_comments): New variable.
26344         (modcache): Renamed from do_cache.
26345         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26346         abbreviate unnecessarily.
26347         (have_associative): New variable.
26348         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26349         way also for ksh and zsh.
26350         (func_init_sed_convert_to_cache_statements): New function, extracted
26351         from func_cache_lookup_module. Add support for associative arrays.
26352         Don't set the c_MODULE_cached variable here. Ignore all lines before
26353         the first field header. Remove only the final newline, not all trailing
26354         newlines. Support empty fields correctly. Limit the use of 'eval' to
26355         assignments.
26356         (func_get_description, func_get_status, func_get_notice,
26357         func_get_applicability, func_get_filelist, func_get_dependencies,
26358         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26359         func_get_automake_snippet, func_get_include_directive,
26360         func_get_link_directive, func_get_license, func_get_maintainer):
26361         Update documentation. List the unoptimized code first. Add support for
26362         associative arrays. Limit the use of 'eval' to assignments.
26363         (func_get_applicability): Undo stylistic pessimisations.
26364         (func_get_automake_snippet, func_get_include_directive): Reduce code
26365         duplication.
26366         (func_modules_transitive_closure, func_modules_add_dummy,
26367         func_modules_notice, func_modules_to_filelist, func_add_file,
26368         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26369         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26370         func_create_testdir, func_create_megatestdir): Update documentation.
26371
26372 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26373
26374         * gnulib-tool (func_cache_lookup_module): Store the module name
26375         belonging to the cache variable; error out if two different
26376         module names map to the same cache variable name.
26377
26378 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26379
26380         gnulib-tool: Make caching optional.
26381         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
26382         Update matching short versions of --no-changelog.
26383         (func_usage): Update.
26384         (sed_extract_cache_prog): Renamed from ...
26385         (sed_extract_prog): ... this; revert to old extraction script.
26386         (func_get_description, func_get_status)
26387         (func_get_notice, func_get_applicability, func_get_filelist)
26388         (func_get_dependencies, func_get_autoconf_early_snippet)
26389         (func_get_autoconf_snippet, func_get_automake_snippet)
26390         (func_get_include_directive, func_get_link_directive)
26391         (func_get_license, func_get_maintainer): If $do_cache is false,
26392         use old, non-caching extraction scripts.
26393         Suggestion by Bruno Haible.
26394
26395 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26396
26397         gnulib-tool: cache module metainformation.
26398         * gnulib-tool (sed_extract_prog): Match newline before each
26399         header, and rewrite header to a shell variable suffix.
26400         (func_cache_var, func_cache_lookup_module): New functions,
26401         to turn a module name into a cache variable prefix, and to
26402         look up and cache module metainformation.
26403         (func_get_description, func_get_status)
26404         (func_get_notice, func_get_applicability, func_get_filelist)
26405         (func_get_dependencies, func_get_autoconf_early_snippet)
26406         (func_get_autoconf_snippet, func_get_automake_snippet)
26407         (func_get_include_directive, func_get_link_directive)
26408         (func_get_license, func_get_maintainer): Use
26409         func_cache_lookup_module.
26410
26411 2010-02-07  Bruno Haible  <bruno@clisp.org>
26412
26413         fnctl: Fix missing dependency.
26414         * modules/fcntl (Depends-on): Add getdtablesize.
26415         Reported by John W. Eaton <jwe@gnu.org>.
26416
26417 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26418
26419         Argp: fix recognition of short alias options.
26420
26421         * lib/argp-parse.c (convert_options): Fix improper use of
26422         `|' between character values.
26423         * tests/test-argp.c (group1_option): New alias option
26424         --read (-r).
26425         (group1_parser): Special handling for 'r'.
26426         (test15): New test case.
26427         (test_fun): Add test15.
26428         * tests/test-argp-2.sh: Update expected --help and --usage
26429         outputs.
26430
26431 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26432
26433         * tests/test-argp.c: Fix indentation.
26434
26435 2010-02-04  Eric Blake  <ebb9@byu.net>
26436
26437         gettimeofday: expose type of second argument
26438         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
26439         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
26440         * tests/test-gettimeofday.c: Use it to silence warning.
26441         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
26442         the issue.
26443
26444 2010-02-03  Jim Meyering  <meyering@redhat.com>
26445
26446         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
26447         * lib/regcomp.c (TYPE_SIGNED): Define.
26448         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
26449
26450         regcomp.c: avoid a new -Wshadow warning
26451         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
26452
26453 2010-02-01  Jim Meyering  <meyering@redhat.com>
26454
26455         removing useless parentheses in cpp #define directives
26456         For motivation, see commit c0221df4, "define STREQ(a,b)
26457         consistently, removing useless parentheses"
26458         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
26459         * lib/mountlist.c (MNT_IGNORE): Likewise.
26460         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
26461
26462 2010-02-01  Eric Blake  <ebb9@byu.net>
26463
26464         sys_time: use link-warning
26465         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
26466         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
26467         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
26468         * modules/sys_time (Depends-on): Add warn-on-use.
26469         (Makefile.am): Always build replacement.
26470         (configure.ac): Update substitutions.
26471         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
26472         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
26473         bother with SYS_TIME_H.
26474         * modules/gettimeofday (configure.ac): Declare indicator.
26475         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
26476         in use.
26477
26478         closein-tests: silence compiler warning
26479         * tests/test-closein.c (main): Ignore fread result.
26480         * modules/closein-tests (Depends-on): Add ignore-value.
26481
26482         tests: silence warning about system return
26483         * tests/test-areadlink-with-size.c (main): Ignore system result.
26484         * tests/test-areadlink.c (main): Likewise.
26485         * tests/test-areadlinkat-with-size.c (main): Likewise.
26486         * tests/test-areadlinkat.c (main): Likewise.
26487         * tests/test-canonicalize-lgpl.c (main): Likewise.
26488         * tests/test-canonicalize.c (main): Likewise.
26489         * tests/test-chown.c (main): Likewise.
26490         * tests/test-fchownat.c (main): Likewise.
26491         * tests/test-fdutimensat.c (main): Likewise.
26492         * tests/test-fstatat.c (main): Likewise.
26493         * tests/test-futimens.c (main): Likewise.
26494         * tests/test-lchown.c (main): Likewise.
26495         * tests/test-link.c (main): Likewise.
26496         * tests/test-linkat.c (main): Likewise.
26497         * tests/test-lstat.c (main): Likewise.
26498         * tests/test-mkdir.c (main): Likewise.
26499         * tests/test-mkdirat.c (main): Likewise.
26500         * tests/test-mkfifo.c (main): Likewise.
26501         * tests/test-mkfifoat.c (main): Likewise.
26502         * tests/test-mknod.c (main): Likewise.
26503         * tests/test-readlink.c (main): Likewise.
26504         * tests/test-remove.c (main): Likewise.
26505         * tests/test-rename.c (main): Likewise.
26506         * tests/test-renameat.c (main): Likewise.
26507         * tests/test-rmdir.c (main): Likewise.
26508         * tests/test-symlink.c (main): Likewise.
26509         * tests/test-symlinkat.c (main): Likewise.
26510         * tests/test-unlink.c (main): Likewise.
26511         * tests/test-unlinkat.c (main): Likewise.
26512         * tests/test-utimens.c (main): Likewise.
26513         * tests/test-utimensat.c (main): Likewise.
26514         * modules/areadlink-tests (Depends-on): Add ignore-value.
26515         * modules/areadlink-with-size-tests (Depends-on): Likewise.
26516         * modules/areadlinkat-tests (Depends-on): Likewise.
26517         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
26518         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26519         * modules/canonicalize-tests (Depends-on): Likewise.
26520         * modules/chown-tests (Depends-on): Likewise.
26521         * modules/fdutimensat-tests (Depends-on): Likewise.
26522         * modules/futimens-tests (Depends-on): Likewise.
26523         * modules/lchown-tests (Depends-on): Likewise.
26524         * modules/link-tests (Depends-on): Likewise.
26525         * modules/linkat-tests (Depends-on): Likewise.
26526         * modules/lstat-tests (Depends-on): Likewise.
26527         * modules/mkdir-tests (Depends-on): Likewise.
26528         * modules/mkfifo-tests (Depends-on): Likewise.
26529         * modules/mkfifoat-tests (Depends-on): Likewise.
26530         * modules/mknod-tests (Depends-on): Likewise.
26531         * modules/openat-tests (Depends-on): Likewise.
26532         * modules/readlink-tests (Depends-on): Likewise.
26533         * modules/remove-tests (Depends-on): Likewise.
26534         * modules/rename-tests (Depends-on): Likewise.
26535         * modules/renameat-tests (Depends-on): Likewise.
26536         * modules/rmdir-tests (Depends-on): Likewise.
26537         * modules/symlink-tests (Depends-on): Likewise.
26538         * modules/symlinkat-tests (Depends-on): Likewise.
26539         * modules/unlink-tests (Depends-on): Likewise.
26540         * modules/utimens-tests (Depends-on): Likewise.
26541         * modules/utimensat-tests (Depends-on): Likewise.
26542
26543 2010-01-31  Bruno Haible  <bruno@clisp.org>
26544
26545         Perform the same test for many <math.h> functions.
26546         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
26547         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
26548         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
26549         of gl_MATHFUNC.
26550         * modules/acos (configure.ac): Likewise.
26551         * modules/asin (configure.ac): Likewise.
26552         * modules/atan (configure.ac): Likewise.
26553         * modules/atan2 (configure.ac): Likewise.
26554         * modules/cbrt (configure.ac): Likewise.
26555         * modules/copysign (configure.ac): Likewise.
26556         * modules/cos (configure.ac): Likewise.
26557         * modules/cosh (configure.ac): Likewise.
26558         * modules/erf (configure.ac): Likewise.
26559         * modules/erfc (configure.ac): Likewise.
26560         * modules/exp (configure.ac): Likewise.
26561         * modules/fmod (configure.ac): Likewise.
26562         * modules/hypot (configure.ac): Likewise.
26563         * modules/j0 (configure.ac): Likewise.
26564         * modules/j1 (configure.ac): Likewise.
26565         * modules/jn (configure.ac): Likewise.
26566         * modules/lgamma (configure.ac): Likewise.
26567         * modules/log (configure.ac): Likewise.
26568         * modules/log10 (configure.ac): Likewise.
26569         * modules/log1p (configure.ac): Likewise.
26570         * modules/pow (configure.ac): Likewise.
26571         * modules/remainder (configure.ac): Likewise.
26572         * modules/sin (configure.ac): Likewise.
26573         * modules/sinh (configure.ac): Likewise.
26574         * modules/tan (configure.ac): Likewise.
26575         * modules/tanh (configure.ac): Likewise.
26576         * modules/y0 (configure.ac): Likewise.
26577         * modules/y1 (configure.ac): Likewise.
26578         * modules/yn (configure.ac): Likewise.
26579         Suggested by Paolo Bonzini.
26580
26581 2010-01-31  Bruno Haible  <bruno@clisp.org>
26582
26583         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
26584
26585 2010-01-31  Bruno Haible  <bruno@clisp.org>
26586
26587         Work around getdelim() bug on FreeBSD 8.0.
26588         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
26589         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
26590         not work.
26591         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
26592         is 1.
26593         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
26594         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
26595         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
26596         a non-zero size.
26597         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
26598
26599 2010-01-31  Bruno Haible  <bruno@clisp.org>
26600
26601         Work around getline() bug on FreeBSD 8.0.
26602         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
26603         and a non-zero size.
26604         * tests/test-getline.c (main): Likewise.
26605         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
26606         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
26607
26608 2010-01-28  Eric Blake  <ebb9@byu.net>
26609
26610         regex: fix build failure
26611         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
26612         platforms.
26613
26614 2010-01-28  Jim Meyering  <meyering@redhat.com>
26615
26616         regex: do not ignore memory allocation failure
26617         * lib/regex_internal.c (create_cd_newstate): Detect
26618         re_node_set_init_copy failure.   Extracted from glibc commit
26619         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26620
26621         regex: sync more white-space changes from libc
26622         * lib/regex_internal.c: White-space only changes.
26623         * lib/regexec.c: Likewise.
26624
26625         regex: add many uses of __attribute_warn_unused_result__
26626         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
26627         * lib/regexec.c: Likewise.
26628         Extracted from a messy glibc commit.
26629
26630         regcomp.c: spelling and merge-artifact from glibc
26631         * lib/regcomp.c: Merge remainder of glibc's
26632         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26633
26634         regcomp.c: sync white-space changes from glibc
26635         * lib/regcomp.c: Merge to accommodate white space
26636         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26637
26638         regcomp.c: do not ignore internal return values
26639         * lib/regcomp.c: Do not ignore internal return values.
26640         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
26641         but without its white-space changes and spelling fixes.
26642
26643         regex_internal.h: define __attribute_warn_unused_result__
26644         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
26645
26646         maint: add a syntax-check rule to check for vulnerable Makefile.in
26647         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
26648
26649 2010-01-27  Jim Meyering  <meyering@redhat.com>
26650
26651         ncftpput-ftp: clean up spaces
26652         * build-aux/ncftpput-ftp: Make Copyright line consistent.
26653         Remove trailing blanks.
26654
26655 2010-01-27  Simon Josefsson  <simon@josefsson.org>
26656
26657         * build-aux/git-version-gen: Fix copyright statement.
26658         * build-aux/gnupload: Likewise.
26659         * tests/test-arcfour.c: Likewise.
26660         * tests/test-arctwo.c: Likewise.
26661         * tests/test-count-one-bits.c: Likewise.
26662         * tests/test-crc.c: Likewise.
26663         * tests/test-des.c: Likewise.
26664         * tests/test-gc-arcfour.c: Likewise.
26665         * tests/test-gc-arctwo.c: Likewise.
26666         * tests/test-gc-des.c: Likewise.
26667         * tests/test-gc-hmac-md5.c: Likewise.
26668         * tests/test-gc-hmac-sha1.c: Likewise.
26669         * tests/test-gc-md2.c: Likewise.
26670         * tests/test-gc-md4.c: Likewise.
26671         * tests/test-gc-md5.c: Likewise.
26672         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26673         * tests/test-gc-rijndael.c: Likewise.
26674         * tests/test-gc-sha1.c: Likewise.
26675         * tests/test-gc.c: Likewise.
26676         * tests/test-gethostname.c: Likewise.
26677         * tests/test-gettimeofday.c: Likewise.
26678         * tests/test-hash.c: Likewise.
26679         * tests/test-hmac-md5.c: Likewise.
26680         * tests/test-hmac-sha1.c: Likewise.
26681         * tests/test-md2.c: Likewise.
26682         * tests/test-md4.c: Likewise.
26683         * tests/test-md5.c: Likewise.
26684         * tests/test-memchr.c: Likewise.
26685         * tests/test-memchr2.c: Likewise.
26686         * tests/test-memcmp.c: Likewise.
26687         * tests/test-memmem.c: Likewise.
26688         * tests/test-memrchr.c: Likewise.
26689         * tests/test-rawmemchr.c: Likewise.
26690         * tests/test-read-file.c: Likewise.
26691         * tests/test-rijndael.c: Likewise.
26692         * tests/test-sockets.c: Likewise.
26693         * tests/test-strchrnul.c: Likewise.
26694         * tests/test-strstr.c: Likewise.
26695         * tests/test-strtod.c: Likewise.
26696         * build-aux/ncftpput-ftp: Likewise.
26697
26698 2010-01-26  Eric Blake  <ebb9@byu.net>
26699
26700         ignore-value: update recommended header name
26701         * modules/ignore-value (Include): Only use <> for headers that
26702         exist in glibc.
26703
26704 2010-01-26  Jim Meyering  <meyering@redhat.com>
26705
26706         test-userspec.c: avoid compiler warnings
26707         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
26708         and "initialization discards qualifiers..." warnings.
26709         Put the first "uid" in its own scope, and make char* members "const".
26710
26711 2010-01-25  Bruno Haible  <bruno@clisp.org>
26712
26713         gnulib-tool: Make warning diagnostics consistent.
26714         * gnulib-tool (func_warning): New function.
26715         Use it everywhere where gnulib-tool produces output to stderr and it is
26716         not a fatal error.
26717
26718 2010-01-25  Bruno Haible  <bruno@clisp.org>
26719
26720         Fix test dependencies.
26721         * modules/xstrtol-tests (Depends-on): Add inttypes.
26722         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
26723
26724 2010-01-25 Pádraig Brady <P@draigBrady.com>
26725
26726         syntax-check: detect incorrect boolean macro values in config.h
26727         * modules/maintainer-makefile (configure.ac): Parameterize the location
26728         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
26729         The logic is from Eric Blake and the location indicated by Jim Meyering.
26730         Note the more natural CONFIG_HEADER name is prohibited by automake
26731         for backwards compatibility reasons.
26732         * top/maint.mk (sc_Wundef_boolean): New rule.
26733
26734 2010-01-25  Jim Meyering  <meyering@redhat.com>
26735
26736         bootstrap: detect MacOS 10.6's shasum, too
26737         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
26738         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
26739
26740 2010-01-23  Jim Meyering  <meyering@redhat.com>
26741
26742         xstrtoll: new module
26743         * modules/xstrtoll: New file.
26744         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
26745         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
26746         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
26747         ./configure fails if you use this module and lack "long long".
26748         * modules/xstrtoll-tests: New module.
26749         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
26750         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
26751         new init.sh-based test framework.
26752
26753 2010-01-24  Bruno Haible  <bruno@clisp.org>
26754
26755         Tests for module 'yn'.
26756         * modules/yn-tests: New file.
26757         * tests/test-yn.c: New file.
26758
26759         Tests for module 'y1'.
26760         * modules/y1-tests: New file.
26761         * tests/test-y1.c: New file.
26762
26763         Tests for module 'y0'.
26764         * modules/y0-tests: New file.
26765         * tests/test-y0.c: New file.
26766
26767         Tests for module 'tanh'.
26768         * modules/tanh-tests: New file.
26769         * tests/test-tanh.c: New file.
26770
26771         Tests for module 'tan'.
26772         * modules/tan-tests: New file.
26773         * tests/test-tan.c: New file.
26774
26775         Tests for module 'sqrt'.
26776         * modules/sqrt-tests: New file.
26777         * tests/test-sqrt.c: New file.
26778
26779         Tests for module 'sinh'.
26780         * modules/sinh-tests: New file.
26781         * tests/test-sinh.c: New file.
26782
26783         Tests for module 'sin'.
26784         * modules/sin-tests: New file.
26785         * tests/test-sin.c: New file.
26786
26787         Tests for module 'rint'.
26788         * modules/rint-tests: New file.
26789         * tests/test-rint.c: New file.
26790
26791         Tests for module 'remainder'.
26792         * modules/remainder-tests: New file.
26793         * tests/test-remainder.c: New file.
26794
26795         Tests for module 'pow'.
26796         * modules/pow-tests: New file.
26797         * tests/test-pow.c: New file.
26798
26799         Tests for module 'nextafter'.
26800         * modules/nextafter-tests: New file.
26801         * tests/test-nextafter.c: New file.
26802
26803         Tests for module 'modf'.
26804         * modules/modf-tests: New file.
26805         * tests/test-modf.c: New file.
26806
26807         Tests for module 'logb'.
26808         * modules/logb-tests: New file.
26809         * tests/test-logb.c: New file.
26810
26811         Tests for module 'log1p'.
26812         * modules/log1p-tests: New file.
26813         * tests/test-log1p.c: New file.
26814
26815         Tests for module 'log10'.
26816         * modules/log10-tests: New file.
26817         * tests/test-log10.c: New file.
26818
26819         Tests for module 'log'.
26820         * modules/log-tests: New file.
26821         * tests/test-log.c: New file.
26822
26823         Tests for module 'lgamma'.
26824         * modules/lgamma-tests: New file.
26825         * tests/test-lgamma.c: New file.
26826
26827         Tests for module 'ldexp'.
26828         * modules/ldexp-tests: New file.
26829         * tests/test-ldexp.c: New file.
26830
26831         Tests for module 'jn'.
26832         * modules/jn-tests: New file.
26833         * tests/test-jn.c: New file.
26834
26835         Tests for module 'j1'.
26836         * modules/j1-tests: New file.
26837         * tests/test-j1.c: New file.
26838
26839         Tests for module 'j0'.
26840         * modules/j0-tests: New file.
26841         * tests/test-j0.c: New file.
26842
26843         Tests for module 'hypot'.
26844         * modules/hypot-tests: New file.
26845         * tests/test-hypot.c: New file.
26846
26847         Tests for module 'fmod'.
26848         * modules/fmod-tests: New file.
26849         * tests/test-fmod.c: New file.
26850
26851         Tests for module 'fabs'.
26852         * modules/fabs-tests: New file.
26853         * tests/test-fabs.c: New file.
26854
26855         Tests for module 'exp'.
26856         * modules/exp-tests: New file.
26857         * tests/test-exp.c: New file.
26858
26859         Tests for module 'erfc'.
26860         * modules/erfc-tests: New file.
26861         * tests/test-erfc.c: New file.
26862
26863         Tests for module 'erf'.
26864         * modules/erf-tests: New file.
26865         * tests/test-erf.c: New file.
26866
26867         Tests for module 'cosh'.
26868         * modules/cosh-tests: New file.
26869         * tests/test-cosh.c: New file.
26870
26871         Tests for module 'cos'.
26872         * modules/cos-tests: New file.
26873         * tests/test-cos.c: New file.
26874
26875         Tests for module 'copysign'.
26876         * modules/copysign-tests: New file.
26877         * tests/test-copysign.c: New file.
26878
26879         Tests for module 'cbrt'.
26880         * modules/cbrt-tests: New file.
26881         * tests/test-cbrt.c: New file.
26882
26883         Tests for module 'atan2'.
26884         * modules/atan2-tests: New file.
26885         * tests/test-atan2.c: New file.
26886
26887         Tests for module 'atan'.
26888         * modules/atan-tests: New file.
26889         * tests/test-atan.c: New file.
26890
26891         Tests for module 'asin'.
26892         * modules/asin-tests: New file.
26893         * tests/test-asin.c: New file.
26894
26895         Tests for module 'acos'.
26896         * modules/acos-tests: New file.
26897         * tests/test-acos.c: New file.
26898
26899 2010-01-24  Bruno Haible  <bruno@clisp.org>
26900
26901         Fix tests for common <math.h> functions.
26902         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
26903         code snippet that references the function pointer, rather than merely
26904         calling the function. Substitute the FUNC_LIBM variable.
26905         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
26906         * modules/acos (configure.ac): Likewise.
26907         * modules/asin (configure.ac): Likewise.
26908         * modules/atan (configure.ac): Likewise.
26909         * modules/atan2 (configure.ac): Likewise.
26910         * modules/cbrt (configure.ac): Likewise.
26911         * modules/copysign (configure.ac): Likewise.
26912         * modules/cos (configure.ac): Likewise.
26913         * modules/cosh (configure.ac): Likewise.
26914         * modules/erf (configure.ac): Likewise.
26915         * modules/erfc (configure.ac): Likewise.
26916         * modules/exp (configure.ac): Likewise.
26917         * modules/fabs (configure.ac): Likewise.
26918         * modules/fmod (configure.ac): Likewise.
26919         * modules/hypot (configure.ac): Likewise.
26920         * modules/j0 (configure.ac): Likewise.
26921         * modules/j1 (configure.ac): Likewise.
26922         * modules/jn (configure.ac): Likewise.
26923         * modules/ldexp (configure.ac): Likewise.
26924         * modules/lgamma (configure.ac): Likewise.
26925         * modules/log (configure.ac): Likewise.
26926         * modules/log10 (configure.ac): Likewise.
26927         * modules/log1p (configure.ac): Likewise.
26928         * modules/logb (configure.ac): Likewise.
26929         * modules/modf (configure.ac): Likewise.
26930         * modules/nextafter (configure.ac): Likewise.
26931         * modules/pow (configure.ac): Likewise.
26932         * modules/remainder (configure.ac): Likewise.
26933         * modules/rint (configure.ac): Likewise.
26934         * modules/sin (configure.ac): Likewise.
26935         * modules/sinh (configure.ac): Likewise.
26936         * modules/tan (configure.ac): Likewise.
26937         * modules/tanh (configure.ac): Likewise.
26938         * modules/y0 (configure.ac): Likewise.
26939         * modules/y1 (configure.ac): Likewise.
26940         * modules/yn (configure.ac): Likewise.
26941
26942 2010-01-24  Bruno Haible  <bruno@clisp.org>
26943
26944         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
26945         * tests/test-acosl.c (x): New variable.
26946         (main): Store argument in x and fetch it from x.
26947         * tests/test-asinl.c (x): New variable.
26948         (main): Store argument in x and fetch it from x.
26949         * tests/test-atanl.c (x): New variable.
26950         (main): Store argument in x and fetch it from x.
26951         * tests/test-cosl.c (x): New variable.
26952         (main): Store argument in x and fetch it from x.
26953         * tests/test-expl.c (x): New variable.
26954         (main): Store argument in x and fetch it from x.
26955         * tests/test-logl.c (x): New variable.
26956         (main): Store argument in x and fetch it from x.
26957         * tests/test-sinl.c (x): New variable.
26958         (main): Store argument in x and fetch it from x.
26959         * tests/test-sqrtl.c (x): New variable.
26960         (main): Store argument in x and fetch it from x.
26961         * tests/test-tanl.c (x): New variable.
26962         (main): Store argument in x and fetch it from x.
26963
26964 2010-01-24  Bruno Haible  <bruno@clisp.org>
26965
26966         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
26967         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
26968         assignments to the initial TESTS_ENVIRONMENT.
26969         * doc/gnulib.texi (Unit test modules): Document it.
26970         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
26971         TESTS_ENVIRONMENT.
26972         * modules/btowc-tests (Makefile.am): Likewise.
26973         * modules/c-stack-tests (Makefile.am): Likewise.
26974         * modules/c-strcase-tests (Makefile.am): Likewise.
26975         * modules/copy-file-tests (Makefile.am): Likewise.
26976         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
26977         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
26978         * modules/mbrtowc-tests (Makefile.am): Likewise.
26979         * modules/mbscasecmp-tests (Makefile.am): Likewise.
26980         * modules/mbscasestr-tests (Makefile.am): Likewise.
26981         * modules/mbschr-tests (Makefile.am): Likewise.
26982         * modules/mbscspn-tests (Makefile.am): Likewise.
26983         * modules/mbsinit-tests (Makefile.am): Likewise.
26984         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
26985         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
26986         * modules/mbspbrk-tests (Makefile.am): Likewise.
26987         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
26988         * modules/mbsrchr-tests (Makefile.am): Likewise.
26989         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
26990         * modules/mbsspn-tests (Makefile.am): Likewise.
26991         * modules/mbsstr-tests (Makefile.am): Likewise.
26992         * modules/nl_langinfo-tests (Makefile.am): Likewise.
26993         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
26994         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
26995         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
26996         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
26997         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
26998         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
26999         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27000         * modules/wcrtomb-tests (Makefile.am): Likewise.
27001         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27002         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27003         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27004         assignments from TESTS_ENVIRONMENT.
27005         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27006         augmentation.
27007         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27008         * modules/atexit-tests (Makefile.am): Likewise.
27009         * modules/binary-io-tests (Makefile.am): Likewise.
27010         * modules/closein-tests (Makefile.am): Likewise.
27011         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27012         * modules/exclude-tests (Makefile.am): Likewise.
27013         * modules/fflush-tests (Makefile.am): Likewise.
27014         * modules/fpending-tests (Makefile.am): Likewise.
27015         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27016         * modules/freadahead-tests (Makefile.am): Likewise.
27017         * modules/freadptr-tests (Makefile.am): Likewise.
27018         * modules/freadseek-tests (Makefile.am): Likewise.
27019         * modules/fseek-tests (Makefile.am): Likewise.
27020         * modules/fseeko-tests (Makefile.am): Likewise.
27021         * modules/ftell-tests (Makefile.am): Likewise.
27022         * modules/ftello-tests (Makefile.am): Likewise.
27023         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27024         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27025         * modules/lseek-tests (Makefile.am): Likewise.
27026         * modules/parse-duration-tests (Makefile.am): Likewise.
27027         * modules/perror-tests (Makefile.am): Likewise.
27028         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27029         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27030         * modules/pipe-tests (Makefile.am): Likewise.
27031         * modules/pread-tests (Makefile.am): Likewise.
27032         * modules/printf-posix-tests (Makefile.am): Likewise.
27033         * modules/select-tests (Makefile.am): Likewise.
27034         * modules/sigpipe-tests (Makefile.am): Likewise.
27035         * modules/tsearch-tests (Makefile.am): Likewise.
27036         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27037         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27038         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27039         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27040         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27041         * modules/version-etc-tests (Makefile.am): Likewise.
27042         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27043         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27044         * modules/xalloc-die-tests (Makefile.am): Likewise.
27045         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27046         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27047         * modules/xstrtol-tests (Makefile.am): Likewise.
27048         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27049         * modules/yesno-tests (Makefile.am): Likewise.
27050         Suggested by Jim Meyering.
27051
27052 2010-01-24  Bruno Haible  <bruno@clisp.org>
27053
27054         More documentation.
27055         * doc/gnulib.texi (Writing modules): New chapter.
27056         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27057         the new chapter.
27058
27059 2010-01-24  Jim Meyering  <meyering@redhat.com>
27060
27061         maint.mk: do not prepend "./" after filtering
27062         * top/maint.mk (_prepend_srcdir_prefix): New variable
27063         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27064         "./" when $(srcdir) is ".".
27065
27066         define STREQ(a,b) consistently, removing useless parentheses
27067         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27068         since the only risk is that "a" or "b" contains an unparenthesized
27069         comma, but if either did that, STREQ would have 3 or more arguments.
27070         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27071         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27072         * lib/hash-triple.c (STREQ): Likewise.
27073         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27074         * lib/getugroups.c (STREQ): Likewise.
27075
27076 2010-01-23  Jim Meyering  <meyering@redhat.com>
27077
27078         maint.mk: fix syntax-check in a non-srcdir build directory
27079         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27080         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27081
27082 2010-01-22  Jim Meyering  <meyering@redhat.com>
27083
27084         userspec: add unit tests
27085         * tests/test-userspec.c: New file.
27086         * modules/userspec-tests: Likewise.
27087
27088 2010-01-21  Jim Meyering  <meyering@redhat.com>
27089
27090         maint.mk: handle source file names containing "." robustly
27091         * top/maint.mk (_dot_escaped_srcdir): Define.
27092         (VC_LIST): Use it in LHS of sed substitution.
27093
27094 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27095
27096         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27097         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27098         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27099         from a non-srcdir build.
27100
27101 2010-01-20  Eric Blake  <ebb9@byu.net>
27102
27103         warn-on-use: use instead of link-warning
27104         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27105         * modules/unistd (Depends-on, Makefile.am): Likewise.
27106         * modules/arpa_inet (Depends-on): Replace link-warning with
27107         warn-on-use.
27108         (Makefile.am): Update rules accordingly.
27109         * modules/ctype (Depends-on, Makefile.am): Likewise.
27110         * modules/dirent (Depends-on, Makefile.am): Likewise.
27111         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27112         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27113         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27114         * modules/locale (Depends-on, Makefile.am): Likewise.
27115         * modules/math (Depends-on, Makefile.am): Likewise.
27116         * modules/search (Depends-on, Makefile.am): Likewise.
27117         * modules/signal (Depends-on, Makefile.am): Likewise.
27118         * modules/spawn (Depends-on, Makefile.am): Likewise.
27119         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27120         * modules/string (Depends-on, Makefile.am): Likewise.
27121         * modules/strings (Depends-on, Makefile.am): Likewise.
27122         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27123         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27124         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27125         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27126         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27127         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27128         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27129         * modules/wchar (Depends-on, Makefile.am): Likewise.
27130         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27131         should be poisoned.
27132         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27133         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27134         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27135         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27136         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27137         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27138         * m4/math_h.m4 (gl_MATH_H): Likewise.
27139         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27140         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27141         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27142         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27143         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27144         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27145         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27146         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27147         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27148         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27149         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27150         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27151         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27152         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27153         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27154         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27155         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27156         GL_LINK_WARNING.
27157         * lib/ctype.in.h: Likewise.
27158         * lib/dirent.in.h: Likewise.
27159         * lib/fcntl.in.h: Likewise.
27160         * lib/inttypes.in.h: Likewise.
27161         * lib/langinfo.in.h: Likewise.
27162         * lib/locale.in.h: Likewise.
27163         * lib/math.in.h: Likewise.
27164         * lib/search.in.h: Likewise.
27165         * lib/signal.in.h: Likewise.
27166         * lib/spawn.in.h: Likewise.
27167         * lib/stdio.in.h: Likewise.
27168         * lib/stdlib.in.h: Likewise.
27169         * lib/string.in.h: Likewise.
27170         * lib/strings.in.h: Likewise.
27171         * lib/sys_file.in.h: Likewise.
27172         * lib/sys_ioctl.in.h: Likewise.
27173         * lib/sys_select.in.h: Likewise.
27174         * lib/sys_socket.in.h: Likewise.
27175         * lib/sys_stat.in.h: Likewise.
27176         * lib/sys_times.in.h: Likewise.
27177         * lib/sys_utsname.in.h: Likewise.
27178         * lib/unistd.in.h: Likewise.
27179         * lib/wchar.in.h: Likewise.
27180
27181 2010-01-20  Bruno Haible  <bruno@clisp.org>
27182
27183         Avoid duplicate -lm.
27184         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27185         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27186         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27187         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27188         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27189         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27190         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27191         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27192         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27193         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27194         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27195         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27196         Reported by Paolo Bonzini.
27197
27198 2010-01-19  Bruno Haible  <bruno@clisp.org>
27199
27200         langinfo, nl_langinfo: Relicense under LGPLv2+.
27201         * modules/langinfo (License): Change to LGPLv2+.
27202         * modules/nl_langinfo (License): Likewise.
27203         Patch by David Lutterkort <lutter@redhat.com>.
27204
27205 2010-01-19  Bruno Haible  <bruno@clisp.org>
27206
27207         Avoid compilation error with cc on OSF/1 5.1.
27208         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27209         statement, not before.
27210         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27211
27212 2010-01-18  Bruno Haible  <bruno@clisp.org>
27213
27214         Avoid a link error due to the __printf__ symbol.
27215         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27216         and 2.6.x.
27217         (__format__, __printf__): Remove definitions.
27218         * lib/argp-fmtstream.h: Likewise.
27219         * lib/argp.h: Likewise.
27220         * lib/error.h: Likewise.
27221         * lib/vasnprintf.h: Likewise.
27222         * lib/xprintf.h: Likewise.
27223         * lib/xvasprintf.h: Likewise.
27224         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27225
27226 2010-01-18  Bruno Haible  <bruno@clisp.org>
27227
27228         Tests for module 'tanl'.
27229         * modules/tanl-tests: New file.
27230         * tests/test-tanl.c: New file.
27231
27232         Tests for module 'sqrtl'.
27233         * modules/sqrtl-tests: New file.
27234         * tests/test-sqrtl.c: New file.
27235
27236         Tests for module 'sinl'.
27237         * modules/sinl-tests: New file.
27238         * tests/test-sinl.c: New file.
27239
27240         Tests for module 'logl'.
27241         * modules/logl-tests: New file.
27242         * tests/test-logl.c: New file.
27243
27244         Tests for module 'expl'.
27245         * modules/expl-tests: New file.
27246         * tests/test-expl.c: New file.
27247
27248         Tests for module 'cosl'.
27249         * modules/cosl-tests: New file.
27250         * tests/test-cosl.c: New file.
27251
27252         Tests for module 'atanl'.
27253         * modules/atanl-tests: New file.
27254         * tests/test-atanl.c: New file.
27255
27256         Tests for module 'asinl'.
27257         * modules/asinl-tests: New file.
27258         * tests/test-asinl.c: New file.
27259
27260         Tests for module 'acosl'.
27261         * modules/acosl-tests: New file.
27262         * tests/test-acosl.c: New file.
27263
27264         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27265         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
27266         tanl): Use the standard gnulib idiom.
27267         * lib/cosl.c: Don't include trigl.c and sincosl.c.
27268         * lib/sinl.c: Likewise.
27269         * lib/tanl.c: Don't include trigl.c.
27270         (kernel_tanl): Make static.
27271         * lib/sincosl.c: Include trigl.h first.
27272         * lib/trigl.c: Likewise.
27273         * m4/acosl.m4: New file.
27274         * m4/asinl.m4: New file.
27275         * m4/atanl.m4: New file.
27276         * m4/cosl.m4: New file.
27277         * m4/expl.m4: New file.
27278         * m4/logl.m4: New file.
27279         * m4/sinl.m4: New file.
27280         * m4/sqrtl.m4: New file.
27281         * m4/tanl.m4: New file.
27282         * m4/mathl.m4: Remove file.
27283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
27284         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27285         Don't initialize GNULIB_MATHL.
27286         * modules/acosl: New file.
27287         * modules/asinl: New file.
27288         * modules/atanl: New file.
27289         * modules/cosl: New file.
27290         * modules/expl: New file.
27291         * modules/logl: New file.
27292         * modules/sinl: New file.
27293         * modules/sqrtl: New file.
27294         * modules/tanl: New file.
27295         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
27296         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
27297         substitute GNULIB_MATHL.
27298         * modules/mathl: Rewritten.
27299         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
27300         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
27301         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
27302         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
27303         * doc/posix-functions/expl.texi: Mention the 'expl' module.
27304         * doc/posix-functions/logl.texi: Mention the 'logl' module.
27305         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
27306         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
27307         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
27308
27309 2010-01-18  Bruno Haible  <bruno@clisp.org>
27310
27311         sqrt: Make gl_FUNC_SQRT requirable.
27312         * m4/sqrt.m4: New file.
27313         * modules/sqrt (Files): Add it.
27314         (configure.ac): Invoke gl_FUNC_SQRT.
27315
27316 2010-01-18  Bruno Haible  <bruno@clisp.org>
27317
27318         New modules for common <math.h> functions.
27319         * m4/mathfunc.m4: New file.
27320         * modules/acos: New file.
27321         * modules/asin: New file.
27322         * modules/atan: New file.
27323         * modules/atan2: New file.
27324         * modules/cbrt: New file.
27325         * modules/copysign: New file.
27326         * modules/cos: New file.
27327         * modules/cosh: New file.
27328         * modules/erf: New file.
27329         * modules/erfc: New file.
27330         * modules/exp: New file.
27331         * modules/fabs: New file.
27332         * modules/fmod: New file.
27333         * modules/hypot: New file.
27334         * modules/j0: New file.
27335         * modules/j1: New file.
27336         * modules/jn: New file.
27337         * modules/ldexp: New file.
27338         * modules/lgamma: New file.
27339         * modules/log: New file.
27340         * modules/log10: New file.
27341         * modules/log1p: New file.
27342         * modules/logb: New file.
27343         * modules/modf: New file.
27344         * modules/nextafter: New file.
27345         * modules/pow: New file.
27346         * modules/remainder: New file.
27347         * modules/rint: New file.
27348         * modules/sin: New file.
27349         * modules/sinh: New file.
27350         * modules/sqrt: New file.
27351         * modules/tan: New file.
27352         * modules/tanh: New file.
27353         * modules/y0: New file.
27354         * modules/y1: New file.
27355         * modules/yn: New file.
27356         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27357         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27358         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27359         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27360         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27361         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27362         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27363         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27364         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27365         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27366         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27367         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27368         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27369         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27370         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27371         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27372         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27373         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27374         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
27375         * doc/posix-functions/log.texi: Mention the 'log' module.
27376         * doc/posix-functions/log10.texi: Mention the 'log10' module.
27377         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
27378         * doc/posix-functions/logb.texi: Mention the 'logb' module.
27379         * doc/posix-functions/modf.texi: Mention the 'modf' module.
27380         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
27381         * doc/posix-functions/pow.texi: Mention the 'pow' module.
27382         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
27383         * doc/posix-functions/rint.texi: Mention the 'rint' module.
27384         * doc/posix-functions/sin.texi: Mention the 'sin' module.
27385         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
27386         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
27387         * doc/posix-functions/tan.texi: Mention the 'tan' module.
27388         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
27389         * doc/posix-functions/y0.texi: Mention the 'y0' module.
27390         * doc/posix-functions/y1.texi: Mention the 'y1' module.
27391         * doc/posix-functions/yn.texi: Mention the 'yn' module.
27392
27393 2010-01-18  Jim Meyering  <meyering@redhat.com>
27394
27395         ignore-value: relax license to LGPLv2+
27396         * modules/ignore-value (License): Relax to LGPLv2+.
27397
27398         getdate: don't leak when TZ contains two or more '"'s
27399         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
27400         double quote in TZ after the first one.
27401
27402         readtokens: do not leak internal token_lengths buffer
27403         * lib/readtokens.c (readtokens): Free the local, lengths,
27404         when the supplied "token_lengths" parameter is NULL.
27405
27406 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27407
27408         Fix a couple of missing LIBTHREAD link failures on AIX.
27409         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
27410         $(LIBTHREAD).
27411         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
27412
27413         Link test-poll against INET_PTON_LIB.
27414         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27415         for inet_pton on Solaris 10.
27416
27417 2010-01-17  Bruno Haible  <bruno@clisp.org>
27418
27419         unistdio/*-sprintf: Fix typo in module description.
27420         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
27421         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
27422         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
27423         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
27424         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
27425         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
27426         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
27427         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27428
27429 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27430
27431         gnulib-tool: fix filelist for AIX, HP-UX ksh.
27432         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
27433         variables in shell case patterns, for AIX and HP-UX ksh.
27434
27435         Split large sed scripts, for HP-UX sed.
27436         * modules/stdio: Split sed scripts around 50 sed commands,
27437         to avoid HP-UX limit of 99 commands, in the near future.
27438         * modules/string: Likewise.
27439         * modules/unistd: Likewise.
27440
27441         gnulib-tool: avoid writing in the current directory.
27442         * gnulib-tool (func_emit_lib_Makefile_am)
27443         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
27444         not in the current directory, so concurrent gnulib-tool
27445         instances do not interfere.
27446
27447 2010-01-16  Jim Meyering  <meyering@redhat.com>
27448
27449         doc: update users.txt
27450         * users.txt: Add grep.
27451         (diffutils, gzip): Update URLs.
27452
27453 2010-01-12  Bruno Haible  <bruno@clisp.org>
27454
27455         posix_spawn: Avoid test failure on Cygwin.
27456         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
27457         characters.
27458         Reported by Simon Josefsson.
27459
27460 2010-01-12  Bruno Haible  <bruno@clisp.org>
27461
27462         * tests/test-cond.c (main): When skipping the test, show the reason.
27463
27464 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27465
27466         * lib/striconv.c (str_cd_iconv): Avoid if before free.
27467
27468 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27469
27470         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
27471         VC_LIST_ALWAYS_EXCLUDE_REGEX.
27472
27473 2010-01-12  Eric Blake  <ebb9@byu.net>
27474
27475         build: guarantee AS_VAR_IF
27476         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
27477         (gl_AS_VAR_IF): Move...
27478         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
27479         Reported by Simon Josefsson.
27480
27481 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27482
27483         * lib/stdio.in.h: Fix typo.
27484
27485 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27486
27487         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
27488         libgpg-error.
27489
27490 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27491
27492         * tests/test-xalloc-die.sh: Use $EXEEXT.
27493
27494 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27495             Bruno Haible  <bruno@clisp.org>
27496
27497         getlogin, getlogin_r: Avoid test failure.
27498         * tests/test-getlogin.c: Include <stdio.h>.
27499         (main): Skip the test when the function fails because stdin is not a
27500         tty.
27501         * tests/test-getlogin_r.c: Include <stdio.h>.
27502         (main): Skip the test when the function fails because stdin is not a
27503         tty.
27504
27505 2010-01-11  Eric Blake  <ebb9@byu.net>
27506
27507         tests: avoid more large file warnings
27508         * tests/test-fflush.c: Avoid warning about ftell use.
27509         * tests/test-fseek.c: Avoid warning about fseek use.
27510
27511 2010-01-10  Bruno Haible  <bruno@clisp.org>
27512
27513         nproc: Work better on Linux when /proc and /sys are not mounted.
27514         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
27515         as lower bound when, on glibc/Linux systems,
27516         sysconf (_SC_NPROCESSORS_CONF) returns 1.
27517         Suggested by Pádraig Brady <P@draigbrady.com>.
27518         Reported by Dmitry V. Levin <ldv@altlinux.org>.
27519
27520         nproc: Refactor.
27521         * lib/nproc.c (num_processors_via_affinity_mask): New function,
27522         extracted from num_processors.
27523         (num_processors): Call it.
27524
27525 2010-01-11  Jim Meyering  <meyering@redhat.com>
27526
27527         utimecmp: avoid new warning from upcoming gcc-4.5.0
27528         * lib/utimecmp.c (BILLION): Define using #define rather than an
27529         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
27530
27531 2010-01-11  Eric Blake  <ebb9@byu.net>
27532
27533         math: add portability warnings for classification macros
27534         * modules/math (Depends-on): Add warn-on-use.
27535         (Makefile.am): Provide new substitutions.
27536         * m4/math_h.m4 (gl_MATH_H): Require inline.
27537         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
27538         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
27539         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
27540         implement warnings.
27541
27542         unistd: warn on use of environ without module
27543         * modules/unistd (Depends-on): Add warn-on-use.
27544         (Makefile.am): Provide new substitutions.
27545         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
27546         * lib/unistd.in.h (environ): Wrap with a warning helper function.
27547
27548         stdio: warn on suspicious uses
27549         * modules/stdio (Depends-on): Add warn-on-use.
27550         (Makefile.am): Provide new substitutions.
27551         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
27552         fseeko.
27553         * lib/stdio.in.h (gets): Always warn on use.
27554         (fseek, ftell): Adjust when warnings are issued, and honor
27555         _GL_NO_LARGE_FILES as a way to silence the warning.
27556         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
27557         any warning about large file offsets.
27558         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
27559         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
27560         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
27561         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
27562         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
27563         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
27564         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
27565         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
27566
27567         warn-on-use: new module
27568         * modules/warn-on-use: New file.
27569         * build-aux/warn-on-use.h: Likewise.
27570         * m4/warn-on-use.m4: Likewise.
27571         * MODULES.html.sh (Support for building): Mention it.
27572
27573 2010-01-10  Bruno Haible  <bruno@clisp.org>
27574
27575         Tests for module 'unistr/u32-strdup'.
27576         * modules/unistr/u32-strdup-tests: New file.
27577         * tests/unistr/test-u32-strdup.c: New file.
27578
27579         Tests for module 'unistr/u16-strdup'.
27580         * modules/unistr/u16-strdup-tests: New file.
27581         * tests/unistr/test-u16-strdup.c: New file.
27582
27583         Tests for module 'unistr/u8-strdup'.
27584         * modules/unistr/u8-strdup-tests: New file.
27585         * tests/unistr/test-u8-strdup.c: New file.
27586         * tests/unistr/test-strdup.h: New file.
27587
27588         Tests for module 'unistr/u32-strncmp'.
27589         * modules/unistr/u32-strncmp-tests: New file.
27590         * tests/unistr/test-u32-strncmp.c: New file.
27591
27592         Tests for module 'unistr/u16-strncmp'.
27593         * modules/unistr/u16-strncmp-tests: New file.
27594         * tests/unistr/test-u16-strncmp.c: New file.
27595
27596         Tests for module 'unistr/u8-strncmp'.
27597         * modules/unistr/u8-strncmp-tests: New file.
27598         * tests/unistr/test-u8-strncmp.c: New file.
27599         * tests/unistr/test-strncmp.h: New file.
27600
27601         Tests for module 'unistr/u32-strcoll'.
27602         * modules/unistr/u32-strcoll-tests: New file.
27603         * tests/unistr/test-u32-strcoll.c: New file.
27604
27605         Tests for module 'unistr/u16-strcoll'.
27606         * modules/unistr/u16-strcoll-tests: New file.
27607         * tests/unistr/test-u16-strcoll.c: New file.
27608
27609         Tests for module 'unistr/u8-strcoll'.
27610         * modules/unistr/u8-strcoll-tests: New file.
27611         * tests/unistr/test-u8-strcoll.c: New file.
27612
27613         Tests for module 'unistr/u32-strcmp'.
27614         * modules/unistr/u32-strcmp-tests: New file.
27615         * tests/unistr/test-u32-strcmp.c: New file.
27616         * tests/unistr/test-u32-strcmp.h: New file.
27617
27618         Tests for module 'unistr/u16-strcmp'.
27619         * modules/unistr/u16-strcmp-tests: New file.
27620         * tests/unistr/test-u16-strcmp.c: New file.
27621         * tests/unistr/test-u16-strcmp.h: New file.
27622
27623         Tests for module 'unistr/u8-strcmp'.
27624         * modules/unistr/u8-strcmp-tests: New file.
27625         * tests/unistr/test-u8-strcmp.c: New file.
27626         * tests/unistr/test-u8-strcmp.h: New file.
27627         * tests/unistr/test-strcmp.h: New file.
27628
27629         Tests for module 'unistr/u32-strncat'.
27630         * modules/unistr/u32-strncat-tests: New file.
27631         * tests/unistr/test-u32-strncat.c: New file.
27632
27633         Tests for module 'unistr/u16-strncat'.
27634         * modules/unistr/u16-strncat-tests: New file.
27635         * tests/unistr/test-u16-strncat.c: New file.
27636
27637         Tests for module 'unistr/u8-strncat'.
27638         * modules/unistr/u8-strncat-tests: New file.
27639         * tests/unistr/test-u8-strncat.c: New file.
27640         * tests/unistr/test-strncat.h: New file.
27641
27642         Tests for module 'unistr/u32-strcat'.
27643         * modules/unistr/u32-strcat-tests: New file.
27644         * tests/unistr/test-u32-strcat.c: New file.
27645
27646         Tests for module 'unistr/u16-strcat'.
27647         * modules/unistr/u16-strcat-tests: New file.
27648         * tests/unistr/test-u16-strcat.c: New file.
27649
27650         Tests for module 'unistr/u8-strcat'.
27651         * modules/unistr/u8-strcat-tests: New file.
27652         * tests/unistr/test-u8-strcat.c: New file.
27653         * tests/unistr/test-strcat.h: New file.
27654
27655         Tests for module 'unistr/u32-stpncpy'.
27656         * modules/unistr/u32-stpncpy-tests: New file.
27657         * tests/unistr/test-u32-stpncpy.c: New file.
27658
27659         Tests for module 'unistr/u16-stpncpy'.
27660         * modules/unistr/u16-stpncpy-tests: New file.
27661         * tests/unistr/test-u16-stpncpy.c: New file.
27662
27663         Tests for module 'unistr/u8-stpncpy'.
27664         * modules/unistr/u8-stpncpy-tests: New file.
27665         * tests/unistr/test-u8-stpncpy.c: New file.
27666         * tests/unistr/test-stpncpy.h: New file.
27667
27668         Tests for module 'unistr/u32-strncpy'.
27669         * modules/unistr/u32-strncpy-tests: New file.
27670         * tests/unistr/test-u32-strncpy.c: New file.
27671
27672         Tests for module 'unistr/u16-strncpy'.
27673         * modules/unistr/u16-strncpy-tests: New file.
27674         * tests/unistr/test-u16-strncpy.c: New file.
27675
27676         Tests for module 'unistr/u8-strncpy'.
27677         * modules/unistr/u8-strncpy-tests: New file.
27678         * tests/unistr/test-u8-strncpy.c: New file.
27679         * tests/unistr/test-strncpy.h: New file.
27680
27681         Tests for module 'unistr/u32-stpcpy'.
27682         * modules/unistr/u32-stpcpy-tests: New file.
27683         * tests/unistr/test-u32-stpcpy.c: New file.
27684
27685         Tests for module 'unistr/u16-stpcpy'.
27686         * modules/unistr/u16-stpcpy-tests: New file.
27687         * tests/unistr/test-u16-stpcpy.c: New file.
27688
27689         Tests for module 'unistr/u8-stpcpy'.
27690         * modules/unistr/u8-stpcpy-tests: New file.
27691         * tests/unistr/test-u8-stpcpy.c: New file.
27692         * tests/unistr/test-stpcpy.h: New file.
27693
27694         Tests for module 'unistr/u32-strcpy'.
27695         * modules/unistr/u32-strcpy-tests: New file.
27696         * tests/unistr/test-u32-strcpy.c: New file.
27697
27698         Tests for module 'unistr/u16-strcpy'.
27699         * modules/unistr/u16-strcpy-tests: New file.
27700         * tests/unistr/test-u16-strcpy.c: New file.
27701
27702         Tests for module 'unistr/u8-strcpy'.
27703         * modules/unistr/u8-strcpy-tests: New file.
27704         * tests/unistr/test-u8-strcpy.c: New file.
27705         * tests/unistr/test-strcpy.h: New file.
27706
27707         Tests for module 'unistr/u32-strnlen'.
27708         * modules/unistr/u32-strnlen-tests: New file.
27709         * tests/unistr/test-u32-strnlen.c: New file.
27710
27711         Tests for module 'unistr/u16-strnlen'.
27712         * modules/unistr/u16-strnlen-tests: New file.
27713         * tests/unistr/test-u16-strnlen.c: New file.
27714
27715         Tests for module 'unistr/u8-strnlen'.
27716         * modules/unistr/u8-strnlen-tests: New file.
27717         * tests/unistr/test-u8-strnlen.c: New file.
27718         * tests/unistr/test-strnlen.h: New file.
27719
27720         Tests for module 'unistr/u32-strlen'.
27721         * modules/unistr/u32-strlen-tests: New file.
27722         * tests/unistr/test-u32-strlen.c: New file.
27723
27724         Tests for module 'unistr/u16-strlen'.
27725         * modules/unistr/u16-strlen-tests: New file.
27726         * tests/unistr/test-u16-strlen.c: New file.
27727
27728         Tests for module 'unistr/u8-strlen'.
27729         * modules/unistr/u8-strlen-tests: New file.
27730         * tests/unistr/test-u8-strlen.c: New file.
27731
27732         Tests for module 'unistr/u32-prev'.
27733         * modules/unistr/u32-prev-tests: New file.
27734         * tests/unistr/test-u32-prev.c: New file.
27735
27736         Tests for module 'unistr/u16-prev'.
27737         * modules/unistr/u16-prev-tests: New file.
27738         * tests/unistr/test-u16-prev.c: New file.
27739
27740         Tests for module 'unistr/u8-prev'.
27741         * modules/unistr/u8-prev-tests: New file.
27742         * tests/unistr/test-u8-prev.c: New file.
27743
27744         Tests for module 'unistr/u32-next'.
27745         * modules/unistr/u32-next-tests: New file.
27746         * tests/unistr/test-u32-next.c: New file.
27747
27748         Tests for module 'unistr/u16-next'.
27749         * modules/unistr/u16-next-tests: New file.
27750         * tests/unistr/test-u16-next.c: New file.
27751
27752         Tests for module 'unistr/u8-next'.
27753         * modules/unistr/u8-next-tests: New file.
27754         * tests/unistr/test-u8-next.c: New file.
27755
27756         Tests for module 'unistr/u32-strmbtouc'.
27757         * modules/unistr/u32-strmbtouc-tests: New file.
27758         * tests/unistr/test-u32-strmbtouc.c: New file.
27759
27760         Tests for module 'unistr/u16-strmbtouc'.
27761         * modules/unistr/u16-strmbtouc-tests: New file.
27762         * tests/unistr/test-u16-strmbtouc.c: New file.
27763
27764         Tests for module 'unistr/u8-strmbtouc'.
27765         * modules/unistr/u8-strmbtouc-tests: New file.
27766         * tests/unistr/test-u8-strmbtouc.c: New file.
27767
27768         Tests for module 'unistr/u32-strmblen'.
27769         * modules/unistr/u32-strmblen-tests: New file.
27770         * tests/unistr/test-u32-strmblen.c: New file.
27771
27772         Tests for module 'unistr/u16-strmblen'.
27773         * modules/unistr/u16-strmblen-tests: New file.
27774         * tests/unistr/test-u16-strmblen.c: New file.
27775
27776         Tests for module 'unistr/u8-strmblen'.
27777         * modules/unistr/u8-strmblen-tests: New file.
27778         * tests/unistr/test-u8-strmblen.c: New file.
27779
27780         Tests for module 'unistr/u32-cpy-alloc'.
27781         * modules/unistr/u32-cpy-alloc-tests: New file.
27782         * tests/unistr/test-u32-cpy-alloc.c: New file.
27783
27784         Tests for module 'unistr/u16-cpy-alloc'.
27785         * modules/unistr/u16-cpy-alloc-tests: New file.
27786         * tests/unistr/test-u16-cpy-alloc.c: New file.
27787
27788         Tests for module 'unistr/u8-cpy-alloc'.
27789         * modules/unistr/u8-cpy-alloc-tests: New file.
27790         * tests/unistr/test-u8-cpy-alloc.c: New file.
27791         * tests/unistr/test-cpy-alloc.h: New file.
27792
27793         Tests for module 'unistr/u32-mbsnlen'.
27794         * modules/unistr/u32-mbsnlen-tests: New file.
27795         * tests/unistr/test-u32-mbsnlen.c: New file.
27796
27797         Tests for module 'unistr/u16-mbsnlen'.
27798         * modules/unistr/u16-mbsnlen-tests: New file.
27799         * tests/unistr/test-u16-mbsnlen.c: New file.
27800
27801         Tests for module 'unistr/u8-mbsnlen'.
27802         * modules/unistr/u8-mbsnlen-tests: New file.
27803         * tests/unistr/test-u8-mbsnlen.c: New file.
27804
27805         Tests for module 'unistr/u32-chr'.
27806         * modules/unistr/u32-chr-tests: New file.
27807         * tests/unistr/test-u32-chr.c: New file.
27808
27809         Tests for module 'unistr/u16-chr'.
27810         * modules/unistr/u16-chr-tests: New file.
27811         * tests/unistr/test-u16-chr.c: New file.
27812
27813         Tests for module 'unistr/u8-chr'.
27814         * modules/unistr/u8-chr-tests: New file.
27815         * tests/unistr/test-u8-chr.c: New file.
27816         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
27817
27818         Tests for module 'unistr/u32-cmp2'.
27819         * modules/unistr/u32-cmp2-tests: New file.
27820         * tests/unistr/test-u32-cmp2.c: New file.
27821
27822         Tests for module 'unistr/u16-cmp2'.
27823         * modules/unistr/u16-cmp2-tests: New file.
27824         * tests/unistr/test-u16-cmp2.c: New file.
27825
27826         Tests for module 'unistr/u8-cmp2'.
27827         * modules/unistr/u8-cmp2-tests: New file.
27828         * tests/unistr/test-u8-cmp2.c: New file.
27829         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
27830
27831         Tests for module 'unistr/u32-cmp'.
27832         * modules/unistr/u32-cmp-tests: New file.
27833         * tests/unistr/test-u32-cmp.c: New file.
27834
27835         Tests for module 'unistr/u16-cmp'.
27836         * modules/unistr/u16-cmp-tests: New file.
27837         * tests/unistr/test-u16-cmp.c: New file.
27838
27839         Tests for module 'unistr/u8-cmp'.
27840         * modules/unistr/u8-cmp-tests: New file.
27841         * tests/unistr/test-u8-cmp.c: New file.
27842         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
27843
27844         Tests for module 'unistr/u32-set'.
27845         * modules/unistr/u32-set-tests: New file.
27846         * tests/unistr/test-u32-set.c: New file.
27847
27848         Tests for module 'unistr/u16-set'.
27849         * modules/unistr/u16-set-tests: New file.
27850         * tests/unistr/test-u16-set.c: New file.
27851
27852         Tests for module 'unistr/u8-set'.
27853         * modules/unistr/u8-set-tests: New file.
27854         * tests/unistr/test-u8-set.c: New file.
27855         * tests/unistr/test-set.h: New file.
27856
27857         Tests for module 'unistr/u32-move'.
27858         * modules/unistr/u32-move-tests: New file.
27859         * tests/unistr/test-u32-move.c: New file.
27860
27861         Tests for module 'unistr/u16-move'.
27862         * modules/unistr/u16-move-tests: New file.
27863         * tests/unistr/test-u16-move.c: New file.
27864
27865         Tests for module 'unistr/u8-move'.
27866         * modules/unistr/u8-move-tests: New file.
27867         * tests/unistr/test-u8-move.c: New file.
27868         * tests/unistr/test-move.h: New file.
27869
27870         Tests for module 'unistr/u32-cpy'.
27871         * modules/unistr/u32-cpy-tests: New file.
27872         * tests/unistr/test-u32-cpy.c: New file.
27873
27874         Tests for module 'unistr/u16-cpy'.
27875         * modules/unistr/u16-cpy-tests: New file.
27876         * tests/unistr/test-u16-cpy.c: New file.
27877
27878         Tests for module 'unistr/u8-cpy'.
27879         * modules/unistr/u8-cpy-tests: New file.
27880         * tests/unistr/test-u8-cpy.c: New file.
27881         * tests/unistr/test-cpy.h: New file.
27882
27883 2010-01-09  Bruno Haible  <bruno@clisp.org>
27884
27885         Tests for module 'unistr/u32-uctomb'.
27886         * modules/unistr/u32-uctomb-tests: New file.
27887         * tests/unistr/test-u32-uctomb.c: New file.
27888
27889         Tests for module 'unistr/u16-uctomb'.
27890         * modules/unistr/u16-uctomb-tests: New file.
27891         * tests/unistr/test-u16-uctomb.c: New file.
27892
27893         Tests for module 'unistr/u8-uctomb'.
27894         * modules/unistr/u8-uctomb-tests: New file.
27895         * tests/unistr/test-u8-uctomb.c: New file.
27896
27897         Tests for module 'unistr/u32-mbtoucr'.
27898         * modules/unistr/u32-mbtoucr-tests: New file.
27899         * tests/unistr/test-u32-mbtoucr.c: New file.
27900
27901         Tests for module 'unistr/u16-mbtoucr'.
27902         * modules/unistr/u16-mbtoucr-tests: New file.
27903         * tests/unistr/test-u16-mbtoucr.c: New file.
27904
27905         Tests for module 'unistr/u8-mbtoucr'.
27906         * modules/unistr/u8-mbtoucr-tests: New file.
27907         * tests/unistr/test-u8-mbtoucr.c: New file.
27908
27909         Tests for module 'unistr/u32-mbtouc'.
27910         * modules/unistr/u32-mbtouc-tests: New file.
27911         * tests/unistr/test-u32-mbtouc.c: New file.
27912
27913         Tests for module 'unistr/u16-mbtouc'.
27914         * modules/unistr/u16-mbtouc-tests: New file.
27915         * tests/unistr/test-u16-mbtouc.c: New file.
27916
27917         Tests for module 'unistr/u8-mbtouc'.
27918         * modules/unistr/u8-mbtouc-tests: New file.
27919         * tests/unistr/test-u8-mbtouc.c: New file.
27920
27921         Tests for module 'unistr/u32-mbtouc-unsafe'.
27922         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
27923         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
27924         * tests/unistr/test-u32-mbtouc.h: New file.
27925
27926         Tests for module 'unistr/u16-mbtouc-unsafe'.
27927         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
27928         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
27929         * tests/unistr/test-u16-mbtouc.h: New file.
27930
27931         Tests for module 'unistr/u8-mbtouc-unsafe'.
27932         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
27933         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
27934         * tests/unistr/test-u8-mbtouc.h: New file.
27935
27936         Tests for module 'unistr/u32-mblen'.
27937         * modules/unistr/u32-mblen-tests: New file.
27938         * tests/unistr/test-u32-mblen.c: New file.
27939
27940         Tests for module 'unistr/u16-mblen'.
27941         * modules/unistr/u16-mblen-tests: New file.
27942         * tests/unistr/test-u16-mblen.c: New file.
27943
27944         Tests for module 'unistr/u8-mblen'.
27945         * modules/unistr/u8-mblen-tests: New file.
27946         * tests/unistr/test-u8-mblen.c: New file.
27947
27948         Tests for module 'unistr/u32-to-u16'.
27949         * modules/unistr/u32-to-u16-tests: New file.
27950         * tests/unistr/test-u32-to-u16.c: New file.
27951
27952         Tests for module 'unistr/u32-to-u8'.
27953         * modules/unistr/u32-to-u8-tests: New file.
27954         * tests/unistr/test-u32-to-u8.c: New file.
27955
27956         Tests for module 'unistr/u16-to-u32'.
27957         * modules/unistr/u16-to-u32-tests: New file.
27958         * tests/unistr/test-u16-to-u32.c: New file.
27959
27960         Tests for module 'unistr/u16-to-u8'.
27961         * modules/unistr/u16-to-u8-tests: New file.
27962         * tests/unistr/test-u16-to-u8.c: New file.
27963
27964         Tests for module 'unistr/u8-to-u32'.
27965         * modules/unistr/u8-to-u32-tests: New file.
27966         * tests/unistr/test-u8-to-u32.c: New file.
27967
27968         Tests for module 'unistr/u8-to-u16'.
27969         * modules/unistr/u8-to-u16-tests: New file.
27970         * tests/unistr/test-u8-to-u16.c: New file.
27971
27972         Tests for module 'unistr/u32-check'.
27973         * modules/unistr/u32-check-tests: New file.
27974         * tests/unistr/test-u32-check.c: New file.
27975
27976         Tests for module 'unistr/u16-check'.
27977         * modules/unistr/u16-check-tests: New file.
27978         * tests/unistr/test-u16-check.c: New file.
27979
27980         Tests for module 'unistr/u8-check'.
27981         * modules/unistr/u8-check-tests: New file.
27982         * tests/unistr/test-u8-check.c: New file.
27983
27984         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
27985         (category_equals): New function.
27986         (main): Add more tests.
27987         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
27988
27989         * tests/unictype/test-bidi_byname.c (main): Add more tests.
27990
27991 2010-01-10  Bruno Haible  <bruno@clisp.org>
27992
27993         unistr/u*-strcoll: Try harder to distinguish different strings.
27994         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
27995         compare s1 and s2 to see if they are different.
27996
27997 2010-01-10  Bruno Haible  <bruno@clisp.org>
27998
27999         unistr/u*-stpncpy: Fix the return value.
28000         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28001         description of the return value consistent with stpncpy in glibc.
28002         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28003         written non-NUL unit.
28004
28005 2010-01-10  Bruno Haible  <bruno@clisp.org>
28006
28007         unistr/u*-next: Add missing dependencies.
28008         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28009         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28010         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28011
28012 2010-01-10  Bruno Haible  <bruno@clisp.org>
28013
28014         unistr/u8-mbsnlen: Fix return value for incomplete character.
28015         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28016         u8_mblen.
28017         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28018         Remove unistr/u8-mblen.
28019         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28020         u16_mblen.
28021         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28022         Remove unistr/u16-mblen.
28023
28024 2010-01-10  Bruno Haible  <bruno@clisp.org>
28025
28026         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28027         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28028         Reported by Brian Gough <bjg@gnu.org> and
28029         Chris Clayton <chris2553@googlemail.com> via
28030         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28031
28032 2010-01-09  Bruno Haible  <bruno@clisp.org>
28033
28034         unistr/u16-to-u32: Reject invalid input.
28035         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28036         u16_mbtouc.
28037         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28038         Remove unistr/u16-mbtouc.
28039
28040         unistr/u16-to-u8: Reject invalid input.
28041         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28042         u16_mbtouc.
28043         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28044         Remove unistr/u16-mbtouc.
28045
28046         unistr/u8-to-u32: Reject invalid input.
28047         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28048         u8_mbtouc.
28049         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28050         Remove unistr/u8-mbtouc.
28051
28052         unistr/u8-to-u16: Reject invalid input.
28053         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28054         u8_mbtouc.
28055         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28056         Remove unistr/u8-mbtouc.
28057
28058 2010-01-09  Bruno Haible  <bruno@clisp.org>
28059
28060         Tests for module 'getlogin'.
28061         * modules/getlogin-tests: New file.
28062         * tests/test-getlogin.c: New file.
28063
28064         New module 'getlogin'.
28065         * lib/unistd.in.h (getlogin): New declaration.
28066         * lib/getlogin.c: New file.
28067         * m4/getlogin.m4: New file.
28068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28069         HAVE_GETLOGIN.
28070         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28071         HAVE_GETLOGIN.
28072         * modules/getlogin: New file.
28073         * doc/posix-functions/getlogin.texi: Mention the new module.
28074         Reported by John W. Eaton <jwe@gnu.org>.
28075
28076 2010-01-09  Bruno Haible  <bruno@clisp.org>
28077
28078         getlogin_r: Support for native Windows.
28079         * lib/getlogin_r.c: Include <windows.h>
28080         (getlogin_r): Implement for native Windows.
28081         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28082         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28083         via John W. Eaton <jwe@gnu.org>.
28084
28085 2010-01-09  Bruno Haible  <bruno@clisp.org>
28086
28087         getlogin_r: Small fixes.
28088         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28089         succeeds.
28090         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28091         before testing whether getlogin_r is declared. No need to set
28092         HAVE_DECL_GETLOGIN_R to 1.
28093         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28094
28095 2010-01-09  Bruno Haible  <bruno@clisp.org>
28096
28097         * lib/unistd.in.h (getlogin_r): Add comment.
28098
28099 2010-01-09  Bruno Haible  <bruno@clisp.org>
28100
28101         Tests for module 'getlogin_r'.
28102         * modules/getlogin_r-tests: New file.
28103         * tests/test-getlogin_r.c: New file.
28104
28105 2010-01-09  Jim Meyering  <meyering@redhat.com>
28106
28107         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28108         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28109         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28110
28111 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28112
28113         * lib/dup2.c (rpl_dup2): Improve comment.
28114
28115 2010-01-08  Eric Blake  <ebb9@byu.net>
28116
28117         maint.mk: allow packages to add makefile @@ exceptions
28118         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28119         (sc_makefile_check): Rename...
28120         (sc_makefile_at_at_check): ...to this, and use hook.
28121
28122         dup2: work around mingw bug
28123         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28124         Reported by Simon Josefsson.
28125
28126 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28127
28128         glob: Fix C++ compilation.
28129         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28130         C++.
28131
28132 2010-01-07  Bruno Haible  <bruno@clisp.org>
28133
28134         Fix indentation of wctype.in.h, broken since 2007-01-06.
28135         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28136
28137 2010-01-07  Bruno Haible  <bruno@clisp.org>
28138
28139         mbslen: Avoid collision with system function.
28140         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28141         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28142         * m4/mbslen.m4: New file.
28143         * modules/mbslen (Files): Add it.
28144         (configure.ac): Invoke gl_MBSLEN.
28145         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28146         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28147         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28148         via Ian Beckwith <ianb@erislabs.net>.
28149
28150 2010-01-07  Bruno Haible  <bruno@clisp.org>
28151
28152         dirent: Document the last fix.
28153         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28154
28155 2010-01-07  Bruno Haible  <bruno@clisp.org>
28156
28157         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28158         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28159         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28160         va_list are defined.
28161         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28162         Reported by Eric Blake.
28163
28164 2010-01-07  Bruno Haible  <bruno@clisp.org>
28165
28166         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28167         * modules/xlist (Depends-on): Add 'list',
28168         * modules/xoset (Depends-on): Add 'oset'.
28169         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28170
28171 2010-01-07  Bruno Haible  <bruno@clisp.org>
28172
28173         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28174         * doc/posix-functions/strncasecmp.texi: Likewise.
28175
28176 2010-01-07  Bruno Haible  <bruno@clisp.org>
28177
28178         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28179
28180 2010-01-07  John W. Eaton  <jwe@octave.org>
28181
28182         wctype: allow C++ use
28183         * lib/wctype.in.h: Add extern "C" block for C++.
28184
28185 2010-01-06  Eric Blake  <ebb9@byu.net>
28186
28187         maint.mk: detect incorrect GFDL usage
28188         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28189
28190 2010-01-06  Jim Meyering  <meyering@redhat.com>
28191         and Eric Blake  <ebb9@byu.net>
28192
28193         maint.mk: ignore multi-line copyright in NEWS
28194         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28195
28196 2010-01-06  Eric Blake  <ebb9@byu.net>
28197
28198         select: add missing dependency
28199         * modules/select-tests (Depends-on): Move sockets dependency...
28200         * modules/select (Depends-on): ...here.
28201         Reported by Ian Beckwith.
28202
28203         doc: regenerate INSTALL
28204         * doc/INSTALL: Reflect recent autoconf update.
28205         * doc/INSTALL.ISO: Likewise.
28206         * doc/INSTALL.UTF-8: Likewise.
28207
28208         pread: fix compilation on glibc
28209         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28210         Reported by Ralf Wildenhues.
28211
28212         dirent: fix test failure
28213         * lib/dirent.in.h (includes): Guarantee ino_t.
28214         Reported by Ralf Wildenhues.
28215
28216 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28217
28218         linkat, renameat: avoid bad free
28219         * lib/at-func2.c (at_func2): Fix typo.
28220         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28221
28222 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28223
28224         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28225         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28226         to avoid failure of symlink test later.
28227
28228 2010-01-06  Eric Blake  <ebb9@byu.net>
28229
28230         stdio, unistd: guarantee ssize_t
28231         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28232         2008 are exposed when needed.
28233         * lib/stdio.in.h (includes): Likewise.
28234         Reported by Ralf Wildenhues.
28235
28236 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28237
28238         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28239         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28240         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28241
28242 2010-01-06  Jim Meyering  <meyering@redhat.com>
28243
28244         readtokens: this module *does* require xalloc.h
28245         It uses only functions that were omitted by the old syntax-check rule.
28246         * lib/readtokens.c: Include "xalloc.h" once again.
28247         * modules/readtokens (Depends-on): Add xalloc.
28248         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
28249
28250 2010-01-05  Eric Blake  <ebb9@byu.net>
28251
28252         maint: support 'make announcement' from a VPATH build
28253         * top/maint.mk (announcement): Look for correct NEWS file.
28254
28255 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
28256
28257         utimens (fdutimens): ignore a negative FD, per contract
28258         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
28259         when we have a valid file descriptor.  Otherwise, using a brand
28260         new glibc (with just-patched futimens that now fails with EBADF)
28261         would cause this function to fail with ENOSYS.
28262         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
28263         See also http://bugzilla.redhat.com/552320.
28264
28265 2010-01-05  Eric Blake  <ebb9@byu.net>
28266
28267         strcase: document what it provides
28268         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
28269         gnulib module.
28270         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
28271         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
28272
28273 2010-01-05  Jim Meyering  <meyering@redhat.com>
28274
28275         maint: remove useless inclusions of "xalloc.h"
28276         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
28277         * lib/readtokens.c: Likewise.
28278         * lib/same.c: Likewise.
28279         * modules/getloadavg (Depends-on): Remove xalloc.
28280         * modules/readtokens: Likewise.
28281         * modules/same: Likewise.
28282
28283         maint.mk: include 4 more function names in alloca.h-checking regexp
28284         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
28285         regexp.  Before, we would give a false-positive (saying alloca.h
28286         is included unnecessarily) when the only uses involved omitted symbols.
28287
28288         xalloc.h: use consistent formatting
28289         * lib/xalloc.h: Move declarations to start in the first column.
28290
28291 2010-01-05  Eric Blake  <ebb9@byu.net>
28292
28293         mkdir: avoid xalloc
28294         * lib/mkdir.c (includes): Drop unused header.
28295         Reported by John W. Eaton.
28296
28297 2010-01-04  Jim Meyering  <meyering@redhat.com>
28298
28299         nl_langinfo: avoid configure-time syntax error
28300         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
28301         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
28302         the empty string.  Don't let that provoke a shell syntax error.
28303
28304         regcomp, regexec, fnmatch: avoid array bounds read error
28305         * lib/regcomp.c (build_equiv_class): From glibc:
28306         Use only the low 24 bits of a findidx return value as an index
28307         into the weights array.  Patch by Ulrich Drepper:
28308         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
28309         * lib/regexec.c (check_node_accept_bytes): Likewise.
28310         * lib/fnmatch_loop.c (FCT): Likewise.
28311
28312         regcomp: skip collseq lookup when there are no rules
28313         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
28314         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
28315
28316         regcomp: recognize ill-formed { } expressions
28317         * lib/regcomp.c (parse_dup_op): From glibc:
28318         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
28319
28320         regcomp: fix typo in comment
28321         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
28322         s/satisfy/satisfies/.
28323
28324         regcomp: sync from glibc: remove dead store
28325         * lib/regcomp.c (duplicate_node_closure): Remove useless
28326         search_duplicated_node call and dead store.
28327
28328         regcomp: sync from glibc; always use nl_langinfo
28329         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
28330         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
28331         * modules/regex (Depends-on): Add nl_langinfo.
28332
28333 2010-01-04  Eric Blake  <ebb9@byu.net>
28334
28335         fdopendir: fix configure test
28336         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
28337
28338 2010-01-01  Bruno Haible  <bruno@clisp.org>
28339
28340         wchar: Remove unused configure check.
28341         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
28342
28343 2010-01-01  Eric Blake  <ebb9@byu.net>
28344
28345         headers: make check of system header explicit
28346         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28347         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28348         ourselves.
28349         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28350         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28351         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28352         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28353         internals.
28354         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28355         missing.
28356         Suggested by Bruno Haible.
28357
28358 2010-01-01  Jim Meyering  <meyering@redhat.com>
28359
28360         ChangeLog: tweak to eliminate unnecessary copyright line
28361         * ChangeLog: Remove a copyright line that was mistakenly updated
28362         by today's update-copyright run.  Reported by Eric Blake.
28363
28364         test-update-copyright: don't let envvar setting cause test failure
28365         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28366
28367 2010-01-01  Bruno Haible  <bruno@clisp.org>
28368
28369         localename: Avoid gcc warning.
28370         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28371         function if it is not used.
28372
28373 2010-01-01  Jim Meyering  <meyering@redhat.com>
28374
28375         update nearly all FSF copyright year lists to include 2010
28376         Use the same procedure as for 2009, outlined in
28377         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
28378
28379         version-etc: set COPYRIGHT_YEAR to 2010
28380         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
28381
28382 2009-12-31  Eric Blake  <ebb9@byu.net>
28383
28384         doc: correct availability of cygwin 1.5.x getopt
28385         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
28386         variables.
28387         * doc/posix-functions/opterr.texi (opterr): Likewise.
28388         * doc/posix-functions/optind.texi (optind): Likewise.
28389         * doc/posix-functions/optopt.texi (optopt): Likewise.
28390         * doc/posix-functions/tzname.texi (tzname): Likewise.
28391
28392         openat: update maintainer
28393         * modules/openat (Maintainer): Add myself.
28394
28395         utimens: avoid shadowing warning
28396         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
28397         buffers into one, to avoid shadowing, as well as avoiding a
28398         redundant stat.
28399         Reported by Jim Meyering.
28400
28401         test-dup2: avoid compiler warning
28402         * tests/test-dup2.c (is_inheritable): Only define if used.
28403
28404 2010-01-01  Bruno Haible  <bruno@clisp.org>
28405
28406         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
28407         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
28408         defined, use wctomb instead of wcrtomb.
28409
28410 2010-01-01  Bruno Haible  <bruno@clisp.org>
28411
28412         iconv: Reject native Solaris iconv.
28413         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28414         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28415
28416 2009-12-31  Bruno Haible  <bruno@clisp.org>
28417
28418         * tests/test-signal.c (main): Remove test of 'SIG'.
28419
28420 2009-12-31  Bruno Haible  <bruno@clisp.org>
28421
28422         spawn: Fix incomplete fix.
28423         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28424         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28425         warnings for GNULIB_POSIXCHECK again.
28426         Reported by Eric Blake.
28427
28428 2009-12-31  Bruno Haible  <bruno@clisp.org>
28429
28430         Avoid namespace pollution on glibc systems.
28431         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
28432         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
28433         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
28434         glibc systems.
28435
28436 2009-12-31  Bruno Haible  <bruno@clisp.org>
28437
28438         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
28439         (gl_REPLACE_WCHAR_H): Turn into a no-op.
28440         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
28441         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
28442         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
28443         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
28444         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
28445
28446 2009-12-31  Bruno Haible  <bruno@clisp.org>
28447
28448         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28449         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
28450         afterwards.
28451
28452 2009-12-31  Bruno Haible  <bruno@clisp.org>
28453
28454         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
28455         SYS_UTSNAME_H.
28456
28457 2009-12-31  Bruno Haible  <bruno@clisp.org>
28458
28459         spawn: Fix misapplied patch.
28460         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28461         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28462         warnings for GNULIB_POSIXCHECK.
28463
28464 2009-12-31  Bruno Haible  <bruno@clisp.org>
28465
28466         times: Update after sys_times changed.
28467         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
28468         * modules/times (Files): Add it.
28469         (configure.ac): Invoke gl_FUNC_TIMES.
28470
28471 2009-12-31  Bruno Haible  <bruno@clisp.org>
28472
28473         Use AC_C_INLINE where necessary.
28474         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
28475         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28476         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
28477         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28478         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28479         * m4/mbiter.m4 (gl_MBITER): Likewise.
28480         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28481         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28482         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
28483         * modules/u64 (configure.ac): Likewise.
28484
28485 2009-12-31  Bruno Haible  <bruno@clisp.org>
28486
28487         Use AC_C_INLINE instead of module 'inline' where possible.
28488         * modules/inline (Description): Clarify purpose.
28489         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
28490         * modules/count-one-bits (Depends-on): Remove inline.
28491         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
28492         * modules/openat (Depends-on): Remove inline.
28493         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
28494         instead of depending on module 'inline'.
28495         * modules/filevercmp (Depends-on, configure.ac): Likewise.
28496         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
28497         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
28498         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
28499         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
28500         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
28501         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
28502         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
28503         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
28504         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
28505         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
28506         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
28507         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
28508         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
28509         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
28510         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
28511         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
28512         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
28513         Likewise.
28514         * modules/unictype/property-ascii-hex-digit (Depends-on,
28515         configure.ac): Likewise.
28516         * modules/unictype/property-bidi-arabic-digit (Depends-on,
28517         configure.ac): Likewise.
28518         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
28519         configure.ac): Likewise.
28520         * modules/unictype/property-bidi-block-separator (Depends-on,
28521         configure.ac): Likewise.
28522         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
28523         configure.ac): Likewise.
28524         * modules/unictype/property-bidi-common-separator (Depends-on,
28525         configure.ac): Likewise.
28526         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
28527         Likewise.
28528         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
28529         configure.ac): Likewise.
28530         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
28531         configure.ac): Likewise.
28532         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
28533         configure.ac): Likewise.
28534         * modules/unictype/property-bidi-european-digit (Depends-on,
28535         configure.ac): Likewise.
28536         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
28537         configure.ac): Likewise.
28538         * modules/unictype/property-bidi-left-to-right (Depends-on,
28539         configure.ac): Likewise.
28540         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
28541         configure.ac): Likewise.
28542         * modules/unictype/property-bidi-other-neutral (Depends-on,
28543         configure.ac): Likewise.
28544         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
28545         Likewise.
28546         * modules/unictype/property-bidi-segment-separator (Depends-on,
28547         configure.ac): Likewise.
28548         * modules/unictype/property-bidi-whitespace (Depends-on,
28549         configure.ac): Likewise.
28550         * modules/unictype/property-combining (Depends-on, configure.ac):
28551         Likewise.
28552         * modules/unictype/property-composite (Depends-on, configure.ac):
28553         Likewise.
28554         * modules/unictype/property-currency-symbol (Depends-on,
28555         configure.ac): Likewise.
28556         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
28557         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
28558         Likewise.
28559         * modules/unictype/property-default-ignorable-code-point (Depends-on,
28560         configure.ac): Likewise.
28561         * modules/unictype/property-deprecated (Depends-on, configure.ac):
28562         Likewise.
28563         * modules/unictype/property-diacritic (Depends-on, configure.ac):
28564         Likewise.
28565         * modules/unictype/property-extender (Depends-on, configure.ac):
28566         Likewise.
28567         * modules/unictype/property-format-control (Depends-on, configure.ac):
28568         Likewise.
28569         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
28570         Likewise.
28571         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
28572         Likewise.
28573         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
28574         Likewise.
28575         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
28576         Likewise.
28577         * modules/unictype/property-hyphen (Depends-on, configure.ac):
28578         Likewise.
28579         * modules/unictype/property-id-continue (Depends-on, configure.ac):
28580         Likewise.
28581         * modules/unictype/property-id-start (Depends-on, configure.ac):
28582         Likewise.
28583         * modules/unictype/property-ideographic (Depends-on, configure.ac):
28584         Likewise.
28585         * modules/unictype/property-ids-binary-operator (Depends-on,
28586         configure.ac): Likewise.
28587         * modules/unictype/property-ids-trinary-operator (Depends-on,
28588         configure.ac): Likewise.
28589         * modules/unictype/property-ignorable-control (Depends-on,
28590         configure.ac): Likewise.
28591         * modules/unictype/property-iso-control (Depends-on, configure.ac):
28592         Likewise.
28593         * modules/unictype/property-join-control (Depends-on, configure.ac):
28594         Likewise.
28595         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
28596         Likewise.
28597         * modules/unictype/property-line-separator (Depends-on, configure.ac):
28598         Likewise.
28599         * modules/unictype/property-logical-order-exception (Depends-on,
28600         configure.ac): Likewise.
28601         * modules/unictype/property-lowercase (Depends-on, configure.ac):
28602         Likewise.
28603         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
28604         * modules/unictype/property-non-break (Depends-on, configure.ac):
28605         Likewise.
28606         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
28607         Likewise.
28608         * modules/unictype/property-numeric (Depends-on, configure.ac):
28609         Likewise.
28610         * modules/unictype/property-other-alphabetic (Depends-on,
28611         configure.ac): Likewise.
28612         * modules/unictype/property-other-default-ignorable-code-point
28613         (Depends-on, configure.ac): Likewise.
28614         * modules/unictype/property-other-grapheme-extend (Depends-on,
28615         configure.ac): Likewise.
28616         * modules/unictype/property-other-id-continue (Depends-on,
28617         configure.ac): Likewise.
28618         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
28619         Likewise.
28620         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
28621         Likewise.
28622         * modules/unictype/property-other-math (Depends-on, configure.ac):
28623         Likewise.
28624         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
28625         Likewise.
28626         * modules/unictype/property-paired-punctuation (Depends-on,
28627         configure.ac): Likewise.
28628         * modules/unictype/property-paragraph-separator (Depends-on,
28629         configure.ac): Likewise.
28630         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
28631         Likewise.
28632         * modules/unictype/property-pattern-white-space (Depends-on,
28633         configure.ac): Likewise.
28634         * modules/unictype/property-private-use (Depends-on, configure.ac):
28635         Likewise.
28636         * modules/unictype/property-punctuation (Depends-on, configure.ac):
28637         Likewise.
28638         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
28639         Likewise.
28640         * modules/unictype/property-radical (Depends-on, configure.ac):
28641         Likewise.
28642         * modules/unictype/property-sentence-terminal (Depends-on,
28643         configure.ac): Likewise.
28644         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
28645         Likewise.
28646         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
28647         * modules/unictype/property-terminal-punctuation (Depends-on,
28648         configure.ac): Likewise.
28649         * modules/unictype/property-titlecase (Depends-on, configure.ac):
28650         Likewise.
28651         * modules/unictype/property-unassigned-code-value (Depends-on,
28652         configure.ac): Likewise.
28653         * modules/unictype/property-unified-ideograph (Depends-on,
28654         configure.ac): Likewise.
28655         * modules/unictype/property-uppercase (Depends-on, configure.ac):
28656         Likewise.
28657         * modules/unictype/property-variation-selector (Depends-on,
28658         configure.ac): Likewise.
28659         * modules/unictype/property-white-space (Depends-on, configure.ac):
28660         Likewise.
28661         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
28662         Likewise.
28663         * modules/unictype/property-xid-start (Depends-on, configure.ac):
28664         Likewise.
28665         * modules/unictype/property-zero-width (Depends-on, configure.ac):
28666         Likewise.
28667         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
28668         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
28669         Likewise.
28670
28671 2009-12-31  Bruno Haible  <bruno@clisp.org>
28672
28673         Remove unnecessary AC_C_INLINE invocation.
28674         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
28675         since 2009-08-21.
28676
28677 2009-12-31  Jim Meyering  <meyering@redhat.com>
28678
28679         maint.mk: don't require explicit gpg_key_ID in cfg.mk
28680         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
28681         With this change, we can all remove the gpg_key_ID = ... definition
28682         from our respective cfg.mk files.
28683
28684         maint.mk: create announcement template in ~/, not in /tmp
28685         * top/maint.mk (emit_upload_commands): Adjust.
28686         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
28687         Remove temporary file, .ci-msg.
28688
28689 2009-12-31  Eric Blake  <ebb9@byu.net>
28690
28691         link-warning: always build headers with link warnings
28692         * modules/arpa_inet (Makefile.am): Always build replacement
28693         header.
28694         * modules/ctype (Makefile.am): Likewise.
28695         * modules/dirent (Makefile.am): Likewise.
28696         * modules/inttypes (Makefile.am): Likewise.
28697         * modules/langinfo (Makefile.am): Likewise.
28698         * modules/locale (Makefile.am): Likewise.
28699         * modules/spawn (Makefile.am): Likewise.
28700         * modules/sys_file (Makefile.am): Likewise.
28701         * modules/sys_ioctl (Makefile.am): Likewise.
28702         * modules/sys_select (Makefile.am): Likewise.
28703         * modules/sys_socket (Makefile.am): Likewise.
28704         * modules/sys_times (Makefile.am): Likewise.
28705         * modules/sys_utsname (Makefile.am): Likewise.
28706         * modules/sys_wait (Makefile.am): Likewise.
28707         * modules/wchar (Makefile.am): Likewise.
28708         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
28709         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
28710         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
28711         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
28712         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
28713         Likewise.
28714         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28715         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28716         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
28717         Likewise.
28718         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
28719         Likewise.
28720         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
28721         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
28722         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
28723         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28724         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28725         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28726         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28727         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
28728         (gl_WCHAR_H_DEFAULTS): Likewise.
28729
28730 2009-12-31  Eric Blake  <ebb9@byu.net>
28731
28732         signal, spawn: use link warnings
28733         * lib/signal.in.h (sigset_t): Make unconditional.
28734         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
28735         (sigpending, sigprocmask, sigaction): Add link warnings.
28736         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
28737         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
28738         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
28739         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
28740         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
28741         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
28742         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
28743         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
28744         (posix_spawn_file_actions_destroy)
28745         (posix_spawn_file_actions_addopen)
28746         (posix_spawn_file_actions_addclose)
28747         (posix_spawn_file_actions_adddup2): Likewise.
28748         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
28749         * tests/test-signal.c (main): Enhance test.
28750
28751         spawn: improve wrapper support
28752         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
28753         (gl_SPAWN_H_DEFAULTS): New defaults.
28754         * modules/spawn (Makefile.am): Substitute them.
28755         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
28756         Only declare if missing or broken.
28757
28758         sys_times, sys_utsname: use include_next
28759         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
28760         header.
28761         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
28762         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28763         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28764         * modules/sys_times (Depends-on): Add include_next.
28765         (Makefile.am): Substitute additional values.
28766         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28767         * lib/sys_times.in.h (includes): Include native header, if
28768         available.
28769         * lib/sys_utsname.in.h (includes): Likewise.
28770         * tests/test-sys_times.c (main): Enhance test.
28771
28772         fdutimensat: revert prior patch
28773         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
28774         utimens.h.
28775         Reported by Bruno Haible.
28776
28777 2009-12-30  Eric Blake  <ebb9@byu.net>
28778
28779         sys_wait: drop link-warning dependency
28780         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
28781         link-warning efforts.
28782         * lib/sys_wait.in.h: Likewise.
28783
28784         fdutimensat: remove bogus dependency
28785         * modules/fdutimensat (Depends-on): Drop inline.
28786
28787         unistd: fix typo
28788         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
28789
28790 2009-12-30  Bruno Haible  <bruno@clisp.org>
28791
28792         Fix compilation error with Solaris cc.
28793         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
28794         * lib/unicase/u16-is-invariant.c: Likewise.
28795         * lib/unicase/u32-is-invariant.c: Likewise.
28796         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28797
28798 2009-12-30  Bruno Haible  <bruno@clisp.org>
28799
28800         Fix test crash.
28801         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
28802         locales.
28803         Reported by Simon Josefsson <simon@josefsson.org>.
28804
28805 2009-12-30  Bruno Haible  <bruno@clisp.org>
28806
28807         Fix compilation error on most platforms.
28808         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
28809         Reported by Simon Josefsson <simon@josefsson.org>
28810         and Nelson H. F. Beebe <beebe@math.utah.edu>.
28811
28812 2009-12-30  Eric Blake  <ebb9@byu.net>
28813
28814         futimens, utimensat: work around ntfs-3g bug
28815         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
28816         a ctime bug is present, and expand workaround to cover ntfs-3g.
28817         * lib/utimens.c (fdutimens, lutimens): Likewise.
28818         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
28819         (validate_timespec): Adjust return value.
28820         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
28821         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28822         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
28823
28824 2009-12-29  Eric Blake  <ebb9@byu.net>
28825
28826         link-warning: make usage consistent
28827         * modules/ctype (Depends-on): Add link-warning.
28828         (Makefile.am): Update rules accordingly.
28829         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28830         * modules/locale (Depends-on, Makefile.am): Likewise.
28831         * modules/sys_file (Makefile.am): Likewise.
28832         * modules/getopt-posix (Makefile.am): Delete unused link warning
28833         efforts.
28834         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
28835         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
28836         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
28837         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
28838
28839         stdio: remove unused variables
28840         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
28841         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
28842         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28843
28844         tests: test more substitute headers
28845         * modules/ctype-tests: New file.
28846         * modules/dirent-tests: Likewise.
28847         * modules/spawn-tests: Likewise.
28848         * modules/sys_file-tests: Likewise.
28849         * modules/sys_ioctl-tests: Likewise.
28850         * modules/sys_wait-tests: Likewise.
28851         * tests/test-ctype.c: Likewise.
28852         * tests/test-dirent.c: Likewise.
28853         * tests/test-spawn.c: Likewise.
28854         * tests/test-sys_file.c: Likewise.
28855         * tests/test-sys_ioctl.c: Likewise.
28856         * tests/test-sys_wait.c: Likewise.
28857         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
28858         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
28859         whether or not flock is in use.
28860
28861         tests: remove License section from module
28862         * modules/arpa_inet-tests: Remove unneeded section.
28863         * modules/byteswap-tests: Likewise.
28864         * modules/ceilf-tests: Likewise.
28865         * modules/ceill-tests: Likewise.
28866         * modules/crypto/des-tests: Likewise.
28867         * modules/crypto/gc-arcfour-tests: Likewise.
28868         * modules/crypto/gc-arctwo-tests: Likewise.
28869         * modules/crypto/gc-des-tests: Likewise.
28870         * modules/crypto/gc-hmac-md5-tests: Likewise.
28871         * modules/crypto/gc-hmac-sha1-tests: Likewise.
28872         * modules/crypto/gc-md2-tests: Likewise.
28873         * modules/crypto/gc-md4-tests: Likewise.
28874         * modules/crypto/gc-md5-tests: Likewise.
28875         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
28876         * modules/crypto/gc-rijndael-tests: Likewise.
28877         * modules/crypto/gc-sha1-tests: Likewise.
28878         * modules/crypto/gc-tests: Likewise.
28879         * modules/crypto/md2-tests: Likewise.
28880         * modules/crypto/md4-tests: Likewise.
28881         * modules/fcntl-h-tests: Likewise.
28882         * modules/floorf-tests: Likewise.
28883         * modules/floorl-tests: Likewise.
28884         * modules/frexp-nolibm-tests: Likewise.
28885         * modules/frexp-tests: Likewise.
28886         * modules/frexpl-nolibm-tests: Likewise.
28887         * modules/frexpl-tests: Likewise.
28888         * modules/getaddrinfo-tests: Likewise.
28889         * modules/inttypes-tests: Likewise.
28890         * modules/isfinite-tests: Likewise.
28891         * modules/isinf-tests: Likewise.
28892         * modules/ldexpl-tests: Likewise.
28893         * modules/locale-tests: Likewise.
28894         * modules/math-tests: Likewise.
28895         * modules/netdb-tests: Likewise.
28896         * modules/netinet_in-tests: Likewise.
28897         * modules/printf-frexp-tests: Likewise.
28898         * modules/printf-frexpl-tests: Likewise.
28899         * modules/priv-set-tests: Likewise.
28900         * modules/random_r-tests: Likewise.
28901         * modules/round-tests: Likewise.
28902         * modules/roundf-tests: Likewise.
28903         * modules/roundl-tests: Likewise.
28904         * modules/search-tests: Likewise.
28905         * modules/select-tests: Likewise.
28906         * modules/signal-tests: Likewise.
28907         * modules/stdbool-tests: Likewise.
28908         * modules/stddef-tests: Likewise.
28909         * modules/stdint-tests: Likewise.
28910         * modules/stdio-tests: Likewise.
28911         * modules/stdlib-tests: Likewise.
28912         * modules/string-tests: Likewise.
28913         * modules/strings-tests: Likewise.
28914         * modules/sys_select-tests: Likewise.
28915         * modules/sys_socket-tests: Likewise.
28916         * modules/sys_stat-tests: Likewise.
28917         * modules/sys_time-tests: Likewise.
28918         * modules/sys_utsname-tests: Likewise.
28919         * modules/sysexits-tests: Likewise.
28920         * modules/time-tests: Likewise.
28921         * modules/trunc-tests: Likewise.
28922         * modules/truncf-tests: Likewise.
28923         * modules/truncl-tests: Likewise.
28924         * modules/tsearch-tests: Likewise.
28925         * modules/unistd-tests: Likewise.
28926         * modules/wchar-tests: Likewise.
28927         * modules/wctype-tests: Likewise.
28928
28929         tests: fix license on several tests
28930         * tests/test-des.c: Update to GPLv3+.
28931         * tests/test-flock.c: Likewise.
28932         * tests/test-fsync.c: Likewise.
28933         * tests/test-futimens.h: Likewise.
28934         * tests/test-gc-arcfour.c: Likewise.
28935         * tests/test-gc-arctwo.c: Likewise.
28936         * tests/test-gc-des.c: Likewise.
28937         * tests/test-gc-hmac-md5.c: Likewise.
28938         * tests/test-gc-hmac-sha1.c: Likewise.
28939         * tests/test-gc-md2.c: Likewise.
28940         * tests/test-gc-md4.c: Likewise.
28941         * tests/test-gc-md5.c: Likewise.
28942         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28943         * tests/test-gc-rijndael.c: Likewise.
28944         * tests/test-gc-sha1.c: Likewise.
28945         * tests/test-gc.c: Likewise.
28946         * tests/test-getcwd.c: Likewise.
28947         * tests/test-link.c: Likewise.
28948         * tests/test-link.h: Likewise.
28949         * tests/test-lutimens.h: Likewise.
28950         * tests/test-md2.c: Likewise.
28951         * tests/test-md4.c: Likewise.
28952         * tests/test-mkdir.h: Likewise.
28953         * tests/test-rename.c: Likewise.
28954         * tests/test-rename.h: Likewise.
28955         * tests/test-safe-alloc.c: Likewise.
28956         * tests/test-utimens-common.h: Likewise.
28957         * tests/test-utimens.h: Likewise.
28958
28959         maint: sync license texts
28960         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
28961         * doc/gpl-3.0.texi: Revert copyright year update.
28962         * doc/lgpl-3.0.texi: Likewise.
28963
28964 2009-12-29  Jim Meyering  <meyering@redhat.com>
28965
28966         update nearly all FSF copyright year lists to include 2009
28967         The files named by the following are exempted:
28968             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
28969               test -f "$dst" && { echo "$dst"; continue; }
28970               test -d "$dst" || continue
28971               echo "$dst"/$(basename "$src")
28972             done > exempt
28973             git ls-files tests/unictype >> exempt
28974         In the remaining files, convert to all-interval notation if
28975         - there is already at least one year interval like 2000-2003
28976         - the file is maintained by me
28977         - the file is in lib/uni*/, where that style already prevails
28978         Otherwise, use update-copyright's default.
28979
28980 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28981         and Eric Blake  <ebb9@byu.net>
28982
28983         tests: don't require debug system() to pass
28984         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
28985         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28986         * tests/test-unlink.h (test_unlink_func): Likewise.
28987         * tests/test-fstatat.c (main): ...into callers.
28988         * tests/test-lstat.c (main): Likewise.
28989         * tests/test-rmdir.c (main): Likewise.
28990         * tests/test-unlink.c (main): Likewise.
28991         * tests/test-unlinkat.c (main): Likewise.
28992         * tests/test-areadlink-with-size.c (main): Don't require a
28993         debug-only system call to pass, aiding cross-testing to mingw.
28994         * tests/test-areadlink.c (main): Likewise.
28995         * tests/test-areadlinkat-with-size.c (main): Likewise.
28996         * tests/test-areadlinkat.c (main): Likewise.
28997         * tests/test-canonicalize-lgpl.c (main): Likewise.
28998         * tests/test-canonicalize.c (main): Likewise.
28999         * tests/test-chown.c (main): Likewise.
29000         * tests/test-fchownat.c (main): Likewise.
29001         * tests/test-lchown.c (main): Likewise.
29002         * tests/test-fdutimensat.c (main): Likewise.
29003         * tests/test-futimens.c (main): Likewise.
29004         * tests/test-link.c (main): Likewise.
29005         * tests/test-linkat.c (main): Likewise.
29006         * tests/test-mkdir.c (main): Likewise.
29007         * tests/test-mkdirat.c (main): Likewise.
29008         * tests/test-mkfifo.c (main): Likewise.
29009         * tests/test-mkfifoat.c (main): Likewise.
29010         * tests/test-mknod.c (main): Likewise.
29011         * tests/test-readlink.c (main): Likewise.
29012         * tests/test-remove.c (main): Likewise.
29013         * tests/test-rename.c (main): Likewise.
29014         * tests/test-renameat.c (main): Likewise.
29015         * tests/test-symlink.c (main): Likewise.
29016         * tests/test-symlinkat.c (main): Likewise.
29017         * tests/test-utimens.c (main): Likewise.
29018         * tests/test-utimensat.c (main): Likewise.
29019
29020 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29021
29022         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29023         on $(UNUSED_PARAMETER_H) to avoid build failure.
29024
29025 2009-12-28  Jim Meyering  <meyering@redhat.com>
29026
29027         update-copyright: you may specify a max. line length other than 72
29028         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29029
29030         maint: use consistent FSF copyright line syntax
29031         * lib/posixtm.c: Add missing comma in FSF copyright line.
29032         * lib/posixtm.h: Likewise.
29033         * lib/getugroups.c: Add missing ", Inc.".
29034
29035         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29036         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29037         FSF copyright line.  Remove trailing blanks.
29038
29039 2009-12-28  Eric Blake  <ebb9@byu.net>
29040
29041         test-dup2: reduce dependencies
29042         * modules/cloexec (Configure.ac): Set witness.
29043         * modules/dup2-tests (Depends-on): Drop cloexec.
29044         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29045         not present.
29046         Suggested by Bruno Haible.
29047
29048 2009-12-26  Bruno Haible  <bruno@clisp.org>
29049
29050         Remove an unneeded dependency.
29051         * modules/fseterr (Depends-on): Remove dup2.
29052
29053 2009-12-26  Eric Blake  <ebb9@byu.net>
29054
29055         tests: use macros.h in more places
29056         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29057         (ASSERT_STREAM): Provide default of stderr.
29058         * tests/test-dirent-safer.c: Include macros.h, using alternate
29059         stream for assertions.
29060         * tests/test-dup-safer.c: Likewise.
29061         * tests/test-freopen-safer.c: Likewise.
29062         * tests/test-getopt.c: Likewise.
29063         * tests/test-openat-safer.c: Likewise.
29064         * tests/test-pipe.c: Likewise.
29065         * tests/test-popen-safer.c: Likewise.
29066         * modules/dirent-safer-tests (Files): Include macros.h.
29067         * modules/unistd-safer-tests (Files): Likewise.
29068         * modules/freopen-safer-tests (Files): Likewise.
29069         * modules/getopt-posix-tests (Files): Likewise.
29070         * modules/openat-safer-tests (Files): Likewise.
29071         * modules/pipe-tests (Files): Likewise.
29072
29073 2009-12-26  Bruno Haible  <bruno@clisp.org>
29074
29075         javacomp: Portability fix.
29076         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29077         that it also works on Solaris.
29078
29079 2009-12-26  Bruno Haible  <bruno@clisp.org>
29080
29081         localename: Fix storage allocation of gl_locale_name_thread's result.
29082         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29083         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29084         all platforms that have 'uselocale'.
29085         (gl_locale_name_thread_unsafe): New function, extracted from
29086         gl_locale_name_thread.
29087         (gl_locale_name_thread): Call struniq on all platforms that have
29088         'uselocale'.
29089         * tests/test-localename.c (test_locale_name_thread): Check that the
29090         resulting strings are permanently allocated.
29091         * modules/localename-tests (Depends-on): Add strdup.
29092
29093 2009-12-26  Bruno Haible  <bruno@clisp.org>
29094
29095         * tests/test-localename.c (categories): Fill in the strings.
29096
29097 2009-12-26  Jim Meyering  <meyering@redhat.com>
29098
29099         isdir: complete the removal of m4/isdir.m4
29100         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29101
29102         isdir: clean up, since at least grep still uses it
29103         * lib/isdir.c: Include "isdir.h".
29104         (S_ISDIR): Remove now-unneeded definition.
29105         * modules/isdir (Files): Add lib/isdir.h.
29106         * lib/isdir.h: New file, with declaration.
29107         * m4/isdir.m4: Remove file -- unneeded.
29108
29109 2009-12-25  Bruno Haible  <bruno@clisp.org>
29110
29111         selinux-h: Make generated .h files standalone.
29112         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29113         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29114         * lib/se-selinux.in.h: Likewise.
29115         * modules/selinux-h (Depends-on): Add unused-parameter.
29116         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29117         selinux/selinux.h and selinux/context.h.
29118         Suggested by Eric Blake.
29119
29120 2009-12-25  Bruno Haible  <bruno@clisp.org>
29121
29122         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29123         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29124         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29125         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29126         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29127
29128 2009-12-24  Bruno Haible  <bruno@clisp.org>
29129
29130         openat: Fix warning.
29131         * lib/openat-proc.c: Include <unistd.h>.
29132
29133 2009-12-24  Bruno Haible  <bruno@clisp.org>
29134
29135         New module 'unused-parameter'.
29136         * build-aux/unused-parameter.h: New file, extracted from earlier
29137         gnulib-common.m4.
29138         * modules/unused-parameter: New file.
29139         * lib/unistr.h: Include unused-parameter.h.
29140         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29141         _GL_UNUSED.
29142         * modules/unistr/base (Depends-on): Add unused-parameter.
29143
29144 2009-12-24  Bruno Haible  <bruno@clisp.org>
29145
29146         Add missing dependencies to 'extensions' module.
29147         * m4/extensions.m4: Add comment.
29148         * modules/accept4 (Depends-on): Add extensions.
29149         * modules/dup3 (Depends-on): Likewise.
29150         * modules/fcntl (Depends-on): Likewise.
29151         * modules/futimens (Depends-on): Likewise.
29152         * modules/mknod (Depends-on): Likewise.
29153         * modules/pipe2 (Depends-on): Likewise.
29154         * modules/stat-time (Depends-on): Likewise.
29155         * modules/strcasestr-simple (Depends-on): Likewise.
29156         * modules/strsignal (Depends-on): Likewise.
29157         * modules/utimensat (Depends-on): Likewise.
29158         * modules/localcharset (Depends-on): Likewise. Needed because of
29159         gl_FCNTL_O_FLAGS.
29160         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29161         AC_TYPE_MBSTATE_T.
29162         * modules/wcsnrtombs (Depends-on): Likewise.
29163         * modules/wcsrtombs (Depends-on): Likewise.
29164
29165 2009-12-24  Bruno Haible  <bruno@clisp.org>
29166
29167         binary-io: Avoid gcc warning due to SET_BINARY.
29168         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29169         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29170
29171 2009-12-24  Bruno Haible  <bruno@clisp.org>
29172
29173         Avoid future namespace pollution on glibc systems.
29174         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29175         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29176         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29177         glibc systems.
29178
29179 2009-12-24  Bruno Haible  <bruno@clisp.org>
29180
29181         Refactor common macros used in tests.
29182         * tests/macros.h: New file.
29183         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29184         and/or <stdlib.h>, if appropriate.
29185         (ASSERT, SIZEOF): Remove macros.
29186         * tests/test-areadlink-with-size.c: Likewise.
29187         * tests/test-areadlinkat.c: Likewise.
29188         * tests/test-areadlinkat-with-size.c: Likewise.
29189         * tests/test-argmatch.c: Likewise.
29190         * tests/test-argv-iter.c: Likewise.
29191         * tests/test-array-mergesort.c: Likewise.
29192         * tests/test-array_list.c: Likewise.
29193         * tests/test-array_oset.c: Likewise.
29194         * tests/test-avltree_list.c: Likewise.
29195         * tests/test-avltree_oset.c: Likewise.
29196         * tests/test-avltreehash_list.c: Likewise.
29197         * tests/test-base64.c: Likewise.
29198         * tests/test-binary-io.c: Likewise.
29199         * tests/test-bitrotate.c: Likewise.
29200         * tests/test-btowc.c: Likewise.
29201         * tests/test-byteswap.c: Likewise.
29202         * tests/test-c-ctype.c: Likewise.
29203         * tests/test-c-stack.c: Likewise.
29204         * tests/test-c-strcasecmp.c: Likewise.
29205         * tests/test-c-strcasestr.c: Likewise.
29206         * tests/test-c-strncasecmp.c: Likewise.
29207         * tests/test-c-strstr.c: Likewise.
29208         * tests/test-canonicalize-lgpl.c: Likewise.
29209         * tests/test-canonicalize.c: Likewise.
29210         * tests/test-carray_list.c: Likewise.
29211         * tests/test-ceilf1.c: Likewise.
29212         * tests/test-ceilf2.c: Likewise.
29213         * tests/test-ceill.c: Likewise.
29214         * tests/test-chown.c: Likewise.
29215         * tests/test-cloexec.c: Likewise.
29216         * tests/test-copy-acl.c: Likewise.
29217         * tests/test-copy-file.c: Likewise.
29218         * tests/test-count-one-bits.c: Likewise.
29219         * tests/test-dprintf-posix.c: Likewise.
29220         * tests/test-dup2.c: Likewise.
29221         * tests/test-dup3.c: Likewise.
29222         * tests/test-duplocale.c: Likewise.
29223         * tests/test-fbufmode.c: Likewise.
29224         * tests/test-fchdir.c: Likewise.
29225         * tests/test-fchownat.c: Likewise.
29226         * tests/test-fcntl-safer.c: Likewise.
29227         * tests/test-fcntl.c: Likewise.
29228         * tests/test-fdopendir.c: Likewise.
29229         * tests/test-fdutimensat.c: Likewise.
29230         * tests/test-fflush2.c: Likewise.
29231         * tests/test-file-has-acl.c: Likewise.
29232         * tests/test-filevercmp.c: Likewise.
29233         * tests/test-flock.c: Likewise.
29234         * tests/test-floorf1.c: Likewise.
29235         * tests/test-floorf2.c: Likewise.
29236         * tests/test-floorl.c: Likewise.
29237         * tests/test-fnmatch.c: Likewise.
29238         * tests/test-fopen.h: Likewise.
29239         * tests/test-fpending.c: Likewise.
29240         * tests/test-fprintf-posix.c: Likewise.
29241         * tests/test-fpurge.c: Likewise.
29242         * tests/test-freadable.c: Likewise.
29243         * tests/test-freadahead.c: Likewise.
29244         * tests/test-freading.c: Likewise.
29245         * tests/test-freadptr.c: Likewise.
29246         * tests/test-freadptr2.c: Likewise.
29247         * tests/test-freadseek.c: Likewise.
29248         * tests/test-freopen.c: Likewise.
29249         * tests/test-frexp.c: Likewise.
29250         * tests/test-frexpl.c: Likewise.
29251         * tests/test-fseek.c: Likewise.
29252         * tests/test-fseeko.c: Likewise.
29253         * tests/test-fstatat.c: Likewise.
29254         * tests/test-fstrcmp.c: Likewise.
29255         * tests/test-fsync.c: Likewise.
29256         * tests/test-ftell.c: Likewise.
29257         * tests/test-ftello.c: Likewise.
29258         * tests/test-func.c: Likewise.
29259         * tests/test-futimens.c: Likewise.
29260         * tests/test-fwritable.c: Likewise.
29261         * tests/test-fwriting.c: Likewise.
29262         * tests/test-getcwd.c: Likewise.
29263         * tests/test-getdate.c: Likewise.
29264         * tests/test-getdelim.c: Likewise.
29265         * tests/test-getdtablesize.c: Likewise.
29266         * tests/test-getgroups.c: Likewise.
29267         * tests/test-getline.c: Likewise.
29268         * tests/test-getndelim2.c: Likewise.
29269         * tests/test-glob.c: Likewise.
29270         * tests/test-hash.c: Likewise.
29271         * tests/test-i-ring.c: Likewise.
29272         * tests/test-iconv-utf.c: Likewise.
29273         * tests/test-iconv.c: Likewise.
29274         * tests/test-idpriv-drop.c: Likewise.
29275         * tests/test-idpriv-droptemp.c: Likewise.
29276         * tests/test-inet_ntop.c: Likewise.
29277         * tests/test-inet_pton.c: Likewise.
29278         * tests/test-isblank.c: Likewise.
29279         * tests/test-isfinite.c: Likewise.
29280         * tests/test-isinf.c: Likewise.
29281         * tests/test-isnan.c: Likewise.
29282         * tests/test-isnand.h: Likewise.
29283         * tests/test-isnanf.h: Likewise.
29284         * tests/test-isnanl.h: Likewise.
29285         * tests/test-lchown.c: Likewise.
29286         * tests/test-ldexpl.c: Likewise.
29287         * tests/test-link.c: Likewise.
29288         * tests/test-linkat.c: Likewise.
29289         * tests/test-linked_list.c: Likewise.
29290         * tests/test-linkedhash_list.c: Likewise.
29291         * tests/test-localename.c: Likewise.
29292         * tests/test-lseek.c: Likewise.
29293         * tests/test-lstat.c: Likewise.
29294         * tests/test-mbmemcasecmp.c: Likewise.
29295         * tests/test-mbmemcasecoll.c: Likewise.
29296         * tests/test-mbrtowc.c: Likewise.
29297         * tests/test-mbscasecmp.c: Likewise.
29298         * tests/test-mbscasestr1.c: Likewise.
29299         * tests/test-mbscasestr2.c: Likewise.
29300         * tests/test-mbscasestr3.c: Likewise.
29301         * tests/test-mbscasestr4.c: Likewise.
29302         * tests/test-mbschr.c: Likewise.
29303         * tests/test-mbscspn.c: Likewise.
29304         * tests/test-mbsinit.c: Likewise.
29305         * tests/test-mbsncasecmp.c: Likewise.
29306         * tests/test-mbsnrtowcs.c: Likewise.
29307         * tests/test-mbspbrk.c: Likewise.
29308         * tests/test-mbspcasecmp.c: Likewise.
29309         * tests/test-mbsrchr.c: Likewise.
29310         * tests/test-mbsrtowcs.c: Likewise.
29311         * tests/test-mbsspn.c: Likewise.
29312         * tests/test-mbsstr1.c: Likewise.
29313         * tests/test-mbsstr2.c: Likewise.
29314         * tests/test-mbsstr3.c: Likewise.
29315         * tests/test-memchr.c: Likewise.
29316         * tests/test-memchr2.c: Likewise.
29317         * tests/test-memcmp.c: Likewise.
29318         * tests/test-memmem.c: Likewise.
29319         * tests/test-memrchr.c: Likewise.
29320         * tests/test-mkdir.c: Likewise.
29321         * tests/test-mkdirat.c: Likewise.
29322         * tests/test-mkfifo.c: Likewise.
29323         * tests/test-mkfifoat.c: Likewise.
29324         * tests/test-mknod.c: Likewise.
29325         * tests/test-nanosleep.c: Likewise.
29326         * tests/test-nl_langinfo.c: Likewise.
29327         * tests/test-obstack-printf.c: Likewise.
29328         * tests/test-open.c: Likewise.
29329         * tests/test-openat.c: Likewise.
29330         * tests/test-pipe-filter-gi1.c: Likewise.
29331         * tests/test-pipe-filter-gi2-main.c: Likewise.
29332         * tests/test-pipe-filter-ii1.c: Likewise.
29333         * tests/test-pipe-filter-ii2-main.c: Likewise.
29334         * tests/test-pipe2.c: Likewise.
29335         * tests/test-popen.h: Likewise.
29336         * tests/test-posixtm.c: Likewise.
29337         * tests/test-pread.c: Likewise.
29338         * tests/test-printf-frexp.c: Likewise.
29339         * tests/test-printf-frexpl.c: Likewise.
29340         * tests/test-printf-posix.c: Likewise.
29341         * tests/test-priv-set.c: Likewise.
29342         * tests/test-quotearg.c: Likewise.
29343         * tests/test-random_r.c: Likewise.
29344         * tests/test-rawmemchr.c: Likewise.
29345         * tests/test-rbtree_list.c: Likewise.
29346         * tests/test-rbtree_oset.c: Likewise.
29347         * tests/test-rbtreehash_list.c: Likewise.
29348         * tests/test-readlink.c: Likewise.
29349         * tests/test-remove.c: Likewise.
29350         * tests/test-rename.c: Likewise.
29351         * tests/test-renameat.c: Likewise.
29352         * tests/test-rmdir.c: Likewise.
29353         * tests/test-round1.c: Likewise.
29354         * tests/test-roundf1.c: Likewise.
29355         * tests/test-roundl.c: Likewise.
29356         * tests/test-safe-alloc.c: Likewise.
29357         * tests/test-sameacls.c: Likewise.
29358         * tests/test-set-mode-acl.c: Likewise.
29359         * tests/test-setenv.c: Likewise.
29360         * tests/test-sigaction.c: Likewise.
29361         * tests/test-signbit.c: Likewise.
29362         * tests/test-sleep.c: Likewise.
29363         * tests/test-snprintf-posix.c: Likewise.
29364         * tests/test-snprintf.c: Likewise.
29365         * tests/test-sprintf-posix.c: Likewise.
29366         * tests/test-stat-time.c: Likewise.
29367         * tests/test-stat.c: Likewise.
29368         * tests/test-strcasestr.c: Likewise.
29369         * tests/test-strchrnul.c: Likewise.
29370         * tests/test-strerror.c: Likewise.
29371         * tests/test-striconv.c: Likewise.
29372         * tests/test-striconveh.c: Likewise.
29373         * tests/test-striconveha.c: Likewise.
29374         * tests/test-strsignal.c: Likewise.
29375         * tests/test-strstr.c: Likewise.
29376         * tests/test-strtod.c: Likewise.
29377         * tests/test-strverscmp.c: Likewise.
29378         * tests/test-symlink.c: Likewise.
29379         * tests/test-symlinkat.c: Likewise.
29380         * tests/test-trunc1.c: Likewise.
29381         * tests/test-trunc2.c: Likewise.
29382         * tests/test-truncf1.c: Likewise.
29383         * tests/test-truncf2.c: Likewise.
29384         * tests/test-truncl.c: Likewise.
29385         * tests/test-uname.c: Likewise.
29386         * tests/test-unlink.c: Likewise.
29387         * tests/test-unlinkat.c: Likewise.
29388         * tests/test-unsetenv.c: Likewise.
29389         * tests/test-usleep.c: Likewise.
29390         * tests/test-utimens.c: Likewise.
29391         * tests/test-utimensat.c: Likewise.
29392         * tests/test-vasnprintf-posix.c: Likewise.
29393         * tests/test-vasnprintf-posix2.c: Likewise.
29394         * tests/test-vasnprintf.c: Likewise.
29395         * tests/test-vasprintf-posix.c: Likewise.
29396         * tests/test-vasprintf.c: Likewise.
29397         * tests/test-vdprintf-posix.c: Likewise.
29398         * tests/test-vfprintf-posix.c: Likewise.
29399         * tests/test-vprintf-posix.c: Likewise.
29400         * tests/test-vsnprintf-posix.c: Likewise.
29401         * tests/test-vsnprintf.c: Likewise.
29402         * tests/test-vsprintf-posix.c: Likewise.
29403         * tests/test-wcrtomb.c: Likewise.
29404         * tests/test-wcsnrtombs.c: Likewise.
29405         * tests/test-wcsrtombs.c: Likewise.
29406         * tests/test-wctype.c: Likewise.
29407         * tests/test-wcwidth.c: Likewise.
29408         * tests/test-xfprintf-posix.c: Likewise.
29409         * tests/test-xmemdup0.c: Likewise.
29410         * tests/test-xprintf-posix.c: Likewise.
29411         * tests/test-xvasprintf.c: Likewise.
29412         * tests/unicase/test-locale-language.c: Likewise.
29413         * tests/unicase/test-mapping-part1.h: Likewise.
29414         * tests/unicase/test-predicate-part1.h: Likewise.
29415         * tests/unicase/test-u8-casecmp.c: Likewise.
29416         * tests/unicase/test-u8-casecoll.c: Likewise.
29417         * tests/unicase/test-u8-casefold.c: Likewise.
29418         * tests/unicase/test-u8-is-cased.c: Likewise.
29419         * tests/unicase/test-u8-is-casefolded.c: Likewise.
29420         * tests/unicase/test-u8-is-lowercase.c: Likewise.
29421         * tests/unicase/test-u8-is-titlecase.c: Likewise.
29422         * tests/unicase/test-u8-is-uppercase.c: Likewise.
29423         * tests/unicase/test-u8-tolower.c: Likewise.
29424         * tests/unicase/test-u8-totitle.c: Likewise.
29425         * tests/unicase/test-u8-toupper.c: Likewise.
29426         * tests/unicase/test-u16-casecmp.c: Likewise.
29427         * tests/unicase/test-u16-casecoll.c: Likewise.
29428         * tests/unicase/test-u16-casefold.c: Likewise.
29429         * tests/unicase/test-u16-is-cased.c: Likewise.
29430         * tests/unicase/test-u16-is-casefolded.c: Likewise.
29431         * tests/unicase/test-u16-is-lowercase.c: Likewise.
29432         * tests/unicase/test-u16-is-titlecase.c: Likewise.
29433         * tests/unicase/test-u16-is-uppercase.c: Likewise.
29434         * tests/unicase/test-u16-tolower.c: Likewise.
29435         * tests/unicase/test-u16-totitle.c: Likewise.
29436         * tests/unicase/test-u16-toupper.c: Likewise.
29437         * tests/unicase/test-u32-casecmp.c: Likewise.
29438         * tests/unicase/test-u32-casecoll.c: Likewise.
29439         * tests/unicase/test-u32-casefold.c: Likewise.
29440         * tests/unicase/test-u32-is-cased.c: Likewise.
29441         * tests/unicase/test-u32-is-casefolded.c: Likewise.
29442         * tests/unicase/test-u32-is-lowercase.c: Likewise.
29443         * tests/unicase/test-u32-is-titlecase.c: Likewise.
29444         * tests/unicase/test-u32-is-uppercase.c: Likewise.
29445         * tests/unicase/test-u32-tolower.c: Likewise.
29446         * tests/unicase/test-u32-totitle.c: Likewise.
29447         * tests/unicase/test-u32-toupper.c: Likewise.
29448         * tests/unicase/test-ulc-casecmp.c: Likewise.
29449         * tests/unicase/test-ulc-casecoll.c: Likewise.
29450         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29451         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29452         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29453         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29454         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29455         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29456         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29457         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29458         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29459         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29460         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29461         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29462         * tests/unictype/test-bidi_byname.c: Likewise.
29463         * tests/unictype/test-bidi_name.c: Likewise.
29464         * tests/unictype/test-bidi_of.c: Likewise.
29465         * tests/unictype/test-bidi_test.c: Likewise.
29466         * tests/unictype/test-block_list.c: Likewise.
29467         * tests/unictype/test-block_of.c: Likewise.
29468         * tests/unictype/test-block_test.c: Likewise.
29469         * tests/unictype/test-categ_and.c: Likewise.
29470         * tests/unictype/test-categ_and_not.c: Likewise.
29471         * tests/unictype/test-categ_byname.c: Likewise.
29472         * tests/unictype/test-categ_name.c: Likewise.
29473         * tests/unictype/test-categ_none.c: Likewise.
29474         * tests/unictype/test-categ_of.c: Likewise.
29475         * tests/unictype/test-categ_or.c: Likewise.
29476         * tests/unictype/test-categ_test_withtable.c: Likewise.
29477         * tests/unictype/test-combining.c: Likewise.
29478         * tests/unictype/test-decdigit.c: Likewise.
29479         * tests/unictype/test-digit.c: Likewise.
29480         * tests/unictype/test-mirror.c: Likewise.
29481         * tests/unictype/test-numeric.c: Likewise.
29482         * tests/unictype/test-pr_byname.c: Likewise.
29483         * tests/unictype/test-pr_test.c: Likewise.
29484         * tests/unictype/test-predicate-part1.h: Likewise.
29485         * tests/unictype/test-scripts.c: Likewise.
29486         * tests/unictype/test-sy_c_ident.c: Likewise.
29487         * tests/unictype/test-sy_java_ident.c: Likewise.
29488         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
29489         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
29490         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
29491         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
29492         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
29493         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
29494         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
29495         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
29496         * tests/uninorm/test-canonical-decomposition.c: Likewise.
29497         * tests/uninorm/test-compat-decomposition.c: Likewise.
29498         * tests/uninorm/test-composition.c: Likewise.
29499         * tests/uninorm/test-decomposing-form.c: Likewise.
29500         * tests/uninorm/test-decomposition.c: Likewise.
29501         * tests/uninorm/test-u8-nfc.c: Likewise.
29502         * tests/uninorm/test-u8-nfd.c: Likewise.
29503         * tests/uninorm/test-u8-nfkc.c: Likewise.
29504         * tests/uninorm/test-u8-nfkd.c: Likewise.
29505         * tests/uninorm/test-u8-normcmp.c: Likewise.
29506         * tests/uninorm/test-u8-normcoll.c: Likewise.
29507         * tests/uninorm/test-u16-nfc.c: Likewise.
29508         * tests/uninorm/test-u16-nfd.c: Likewise.
29509         * tests/uninorm/test-u16-nfkc.c: Likewise.
29510         * tests/uninorm/test-u16-nfkd.c: Likewise.
29511         * tests/uninorm/test-u16-normcmp.c: Likewise.
29512         * tests/uninorm/test-u16-normcoll.c: Likewise.
29513         * tests/uninorm/test-u32-nfc.c: Likewise.
29514         * tests/uninorm/test-u32-nfd.c: Likewise.
29515         * tests/uninorm/test-u32-nfkc.c: Likewise.
29516         * tests/uninorm/test-u32-nfkd.c: Likewise.
29517         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29518         * tests/uninorm/test-u32-normcmp.c: Likewise.
29519         * tests/uninorm/test-u32-normcoll.c: Likewise.
29520         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
29521         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29522         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29523         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29524         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29525         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29526         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29527         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29528         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29529         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29530         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29531         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29532         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29533         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29534         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29535         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29536         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29537         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29538         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29539         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29540         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29541         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29542         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29543         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29544         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29545         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29546         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29547         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29548         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29549         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
29550         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
29551         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
29552         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
29553         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29554         * tests/uniwidth/test-u8-width.c: Likewise.
29555         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29556         * tests/uniwidth/test-u16-width.c: Likewise.
29557         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29558         * tests/uniwidth/test-u32-width.c: Likewise.
29559         * tests/uniwidth/test-uc_width.c: Likewise.
29560         * tests/uniwidth/test-uc_width2.c: Likewise.
29561         * modules/acl-tests (Files): Add tests/macros.h.
29562         * modules/areadlink-tests (Files): Likewise.
29563         * modules/areadlink-with-size-tests (Files): Likewise.
29564         * modules/areadlinkat-tests (Files): Likewise.
29565         * modules/areadlinkat-with-size-tests (Files): Likewise.
29566         * modules/argmatch-tests (Files): Likewise.
29567         * modules/argv-iter-tests (Files): Likewise.
29568         * modules/array-list-tests (Files): Likewise.
29569         * modules/array-mergesort-tests (Files): Likewise.
29570         * modules/array-oset-tests (Files): Likewise.
29571         * modules/avltree-list-tests (Files): Likewise.
29572         * modules/avltree-oset-tests (Files): Likewise.
29573         * modules/avltreehash-list-tests (Files): Likewise.
29574         * modules/base64-tests (Files): Likewise.
29575         * modules/binary-io-tests (Files): Likewise.
29576         * modules/bitrotate-tests (Files): Likewise.
29577         * modules/btowc-tests (Files): Likewise.
29578         * modules/byteswap-tests (Files): Likewise.
29579         * modules/c-ctype-tests (Files): Likewise.
29580         * modules/c-stack-tests (Files): Likewise.
29581         * modules/c-strcase-tests (Files): Likewise.
29582         * modules/c-strcasestr-tests (Files): Likewise.
29583         * modules/c-strstr-tests (Files): Likewise.
29584         * modules/canonicalize-lgpl-tests (Files): Likewise.
29585         * modules/canonicalize-tests (Files): Likewise.
29586         * modules/carray-list-tests (Files): Likewise.
29587         * modules/ceilf-tests (Files): Likewise.
29588         * modules/ceill-tests (Files): Likewise.
29589         * modules/chown-tests (Files): Likewise.
29590         * modules/cloexec-tests (Files): Likewise.
29591         * modules/copy-file-tests (Files): Likewise.
29592         * modules/count-one-bits-tests (Files): Likewise.
29593         * modules/dprintf-posix-tests (Files): Likewise.
29594         * modules/dup2-tests (Files): Likewise.
29595         * modules/dup3-tests (Files): Likewise.
29596         * modules/duplocale-tests (Files): Likewise.
29597         * modules/fbufmode-tests (Files): Likewise.
29598         * modules/fchdir-tests (Files): Likewise.
29599         * modules/fcntl-safer-tests (Files): Likewise.
29600         * modules/fcntl-tests (Files): Likewise.
29601         * modules/fdopendir-tests (Files): Likewise.
29602         * modules/fdutimensat-tests (Files): Likewise.
29603         * modules/fflush-tests (Files): Likewise.
29604         * modules/filevercmp-tests (Files): Likewise.
29605         * modules/flock-tests (Files): Likewise.
29606         * modules/floorf-tests (Files): Likewise.
29607         * modules/floorl-tests (Files): Likewise.
29608         * modules/fnmatch-tests (Files): Likewise.
29609         * modules/fopen-safer-tests (Files): Likewise.
29610         * modules/fopen-tests (Files): Likewise.
29611         * modules/fpending-tests (Files): Likewise.
29612         * modules/fprintf-posix-tests (Files): Likewise.
29613         * modules/fpurge-tests (Files): Likewise.
29614         * modules/freadable-tests (Files): Likewise.
29615         * modules/freadahead-tests (Files): Likewise.
29616         * modules/freading-tests (Files): Likewise.
29617         * modules/freadptr-tests (Files): Likewise.
29618         * modules/freadseek-tests (Files): Likewise.
29619         * modules/freopen-tests (Files): Likewise.
29620         * modules/frexp-nolibm-tests (Files): Likewise.
29621         * modules/frexp-tests (Files): Likewise.
29622         * modules/frexpl-nolibm-tests (Files): Likewise.
29623         * modules/frexpl-tests (Files): Likewise.
29624         * modules/fseek-tests (Files): Likewise.
29625         * modules/fseeko-tests (Files): Likewise.
29626         * modules/fstrcmp-tests (Files): Likewise.
29627         * modules/fsync-tests (Files): Likewise.
29628         * modules/ftell-tests (Files): Likewise.
29629         * modules/ftello-tests (Files): Likewise.
29630         * modules/func-tests (Files): Likewise.
29631         * modules/futimens-tests (Files): Likewise.
29632         * modules/fwritable-tests (Files): Likewise.
29633         * modules/fwriting-tests (Files): Likewise.
29634         * modules/getcwd-tests (Files): Likewise.
29635         * modules/getdate-tests (Files): Likewise.
29636         * modules/getdelim-tests (Files): Likewise.
29637         * modules/getdtablesize-tests (Files): Likewise.
29638         * modules/getgroups-tests (Files): Likewise.
29639         * modules/getline-tests (Files): Likewise.
29640         * modules/getndelim2-tests (Files): Likewise.
29641         * modules/glob-tests (Files): Likewise.
29642         * modules/hash-tests (Files): Likewise.
29643         * modules/i-ring-tests (Files): Likewise.
29644         * modules/iconv-tests (Files): Likewise.
29645         * modules/iconv_open-utf-tests (Files): Likewise.
29646         * modules/idpriv-drop-tests (Files): Likewise.
29647         * modules/idpriv-droptemp-tests (Files): Likewise.
29648         * modules/inet_ntop-tests (Files): Likewise.
29649         * modules/inet_pton-tests (Files): Likewise.
29650         * modules/isblank-tests (Files): Likewise.
29651         * modules/isfinite-tests (Files): Likewise.
29652         * modules/isinf-tests (Files): Likewise.
29653         * modules/isnan-tests (Files): Likewise.
29654         * modules/isnand-nolibm-tests (Files): Likewise.
29655         * modules/isnand-tests (Files): Likewise.
29656         * modules/isnanf-nolibm-tests (Files): Likewise.
29657         * modules/isnanf-tests (Files): Likewise.
29658         * modules/isnanl-nolibm-tests (Files): Likewise.
29659         * modules/isnanl-tests (Files): Likewise.
29660         * modules/lchown-tests (Files): Likewise.
29661         * modules/ldexpl-tests (Files): Likewise.
29662         * modules/link-tests (Files): Likewise.
29663         * modules/linkat-tests (Files): Likewise.
29664         * modules/linked-list-tests (Files): Likewise.
29665         * modules/linkedhash-list-tests (Files): Likewise.
29666         * modules/localename-tests (Files): Likewise.
29667         * modules/lseek-tests (Files): Likewise.
29668         * modules/lstat-tests (Files): Likewise.
29669         * modules/mbmemcasecmp-tests (Files): Likewise.
29670         * modules/mbmemcasecoll-tests (Files): Likewise.
29671         * modules/mbrtowc-tests (Files): Likewise.
29672         * modules/mbscasecmp-tests (Files): Likewise.
29673         * modules/mbscasestr-tests (Files): Likewise.
29674         * modules/mbschr-tests (Files): Likewise.
29675         * modules/mbscspn-tests (Files): Likewise.
29676         * modules/mbsinit-tests (Files): Likewise.
29677         * modules/mbsncasecmp-tests (Files): Likewise.
29678         * modules/mbsnrtowcs-tests (Files): Likewise.
29679         * modules/mbspbrk-tests (Files): Likewise.
29680         * modules/mbspcasecmp-tests (Files): Likewise.
29681         * modules/mbsrchr-tests (Files): Likewise.
29682         * modules/mbsrtowcs-tests (Files): Likewise.
29683         * modules/mbsspn-tests (Files): Likewise.
29684         * modules/mbsstr-tests (Files): Likewise.
29685         * modules/memchr-tests (Files): Likewise.
29686         * modules/memchr2-tests (Files): Likewise.
29687         * modules/memcmp-tests (Files): Likewise.
29688         * modules/memmem-tests (Files): Likewise.
29689         * modules/memrchr-tests (Files): Likewise.
29690         * modules/mkdir-tests (Files): Likewise.
29691         * modules/mkfifo-tests (Files): Likewise.
29692         * modules/mkfifoat-tests (Files): Likewise.
29693         * modules/mknod-tests (Files): Likewise.
29694         * modules/nanosleep-tests (Files): Likewise.
29695         * modules/nl_langinfo-tests (Files): Likewise.
29696         * modules/obstack-printf-tests (Files): Likewise.
29697         * modules/open-tests (Files): Likewise.
29698         * modules/openat-tests (Files): Likewise.
29699         * modules/pipe-filter-gi-tests (Files): Likewise.
29700         * modules/pipe-filter-ii-tests (Files): Likewise.
29701         * modules/pipe2-tests (Files): Likewise.
29702         * modules/popen-safer-tests (Files): Likewise.
29703         * modules/popen-tests (Files): Likewise.
29704         * modules/posixtm-tests (Files): Likewise.
29705         * modules/pread-tests (Files): Likewise.
29706         * modules/printf-frexp-tests (Files): Likewise.
29707         * modules/printf-frexpl-tests (Files): Likewise.
29708         * modules/printf-posix-tests (Files): Likewise.
29709         * modules/priv-set-tests (Files): Likewise.
29710         * modules/quotearg-tests (Files): Likewise.
29711         * modules/random_r-tests (Files): Likewise.
29712         * modules/rawmemchr-tests (Files): Likewise.
29713         * modules/rbtree-list-tests (Files): Likewise.
29714         * modules/rbtree-oset-tests (Files): Likewise.
29715         * modules/rbtreehash-list-tests (Files): Likewise.
29716         * modules/readlink-tests (Files): Likewise.
29717         * modules/remove-tests (Files): Likewise.
29718         * modules/rename-tests (Files): Likewise.
29719         * modules/renameat-tests (Files): Likewise.
29720         * modules/rmdir-tests (Files): Likewise.
29721         * modules/round-tests (Files): Likewise.
29722         * modules/roundf-tests (Files): Likewise.
29723         * modules/roundl-tests (Files): Likewise.
29724         * modules/safe-alloc-tests (Files): Likewise.
29725         * modules/setenv-tests (Files): Likewise.
29726         * modules/sigaction-tests (Files): Likewise.
29727         * modules/signbit-tests (Files): Likewise.
29728         * modules/sleep-tests (Files): Likewise.
29729         * modules/snprintf-posix-tests (Files): Likewise.
29730         * modules/snprintf-tests (Files): Likewise.
29731         * modules/sprintf-posix-tests (Files): Likewise.
29732         * modules/stat-tests (Files): Likewise.
29733         * modules/stat-time-tests (Files): Likewise.
29734         * modules/strcasestr-tests (Files): Likewise.
29735         * modules/strchrnul-tests (Files): Likewise.
29736         * modules/strerror-tests (Files): Likewise.
29737         * modules/striconv-tests (Files): Likewise.
29738         * modules/striconveh-tests (Files): Likewise.
29739         * modules/striconveha-tests (Files): Likewise.
29740         * modules/strsignal-tests (Files): Likewise.
29741         * modules/strstr-tests (Files): Likewise.
29742         * modules/strtod-tests (Files): Likewise.
29743         * modules/strverscmp-tests (Files): Likewise.
29744         * modules/symlink-tests (Files): Likewise.
29745         * modules/symlinkat-tests (Files): Likewise.
29746         * modules/trunc-tests (Files): Likewise.
29747         * modules/truncf-tests (Files): Likewise.
29748         * modules/truncl-tests (Files): Likewise.
29749         * modules/uname-tests (Files): Likewise.
29750         * modules/unicase/cased-tests (Files): Likewise.
29751         * modules/unicase/ignorable-tests (Files): Likewise.
29752         * modules/unicase/locale-language-tests (Files): Likewise.
29753         * modules/unicase/tolower-tests (Files): Likewise.
29754         * modules/unicase/totitle-tests (Files): Likewise.
29755         * modules/unicase/toupper-tests (Files): Likewise.
29756         * modules/unicase/u8-casecmp-tests (Files): Likewise.
29757         * modules/unicase/u8-casecoll-tests (Files): Likewise.
29758         * modules/unicase/u8-casefold-tests (Files): Likewise.
29759         * modules/unicase/u8-is-cased-tests (Files): Likewise.
29760         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
29761         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
29762         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
29763         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
29764         * modules/unicase/u8-tolower-tests (Files): Likewise.
29765         * modules/unicase/u8-totitle-tests (Files): Likewise.
29766         * modules/unicase/u8-toupper-tests (Files): Likewise.
29767         * modules/unicase/u16-casecmp-tests (Files): Likewise.
29768         * modules/unicase/u16-casecoll-tests (Files): Likewise.
29769         * modules/unicase/u16-casefold-tests (Files): Likewise.
29770         * modules/unicase/u16-is-cased-tests (Files): Likewise.
29771         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
29772         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
29773         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
29774         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
29775         * modules/unicase/u16-tolower-tests (Files): Likewise.
29776         * modules/unicase/u16-totitle-tests (Files): Likewise.
29777         * modules/unicase/u16-toupper-tests (Files): Likewise.
29778         * modules/unicase/u32-casecmp-tests (Files): Likewise.
29779         * modules/unicase/u32-casecoll-tests (Files): Likewise.
29780         * modules/unicase/u32-casefold-tests (Files): Likewise.
29781         * modules/unicase/u32-is-cased-tests (Files): Likewise.
29782         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
29783         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
29784         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
29785         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
29786         * modules/unicase/u32-tolower-tests (Files): Likewise.
29787         * modules/unicase/u32-totitle-tests (Files): Likewise.
29788         * modules/unicase/u32-toupper-tests (Files): Likewise.
29789         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
29790         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
29791         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
29792         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
29793         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
29794         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
29795         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
29796         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
29797         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
29798         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
29799         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
29800         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
29801         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
29802         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
29803         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
29804         * modules/unictype/bidicategory-name-tests (Files): Likewise.
29805         * modules/unictype/bidicategory-of-tests (Files): Likewise.
29806         * modules/unictype/bidicategory-test-tests (Files): Likewise.
29807         * modules/unictype/block-list-tests (Files): Likewise.
29808         * modules/unictype/block-of-tests (Files): Likewise.
29809         * modules/unictype/block-test-tests (Files): Likewise.
29810         * modules/unictype/category-C-tests (Files): Likewise.
29811         * modules/unictype/category-Cc-tests (Files): Likewise.
29812         * modules/unictype/category-Cf-tests (Files): Likewise.
29813         * modules/unictype/category-Cn-tests (Files): Likewise.
29814         * modules/unictype/category-Co-tests (Files): Likewise.
29815         * modules/unictype/category-Cs-tests (Files): Likewise.
29816         * modules/unictype/category-L-tests (Files): Likewise.
29817         * modules/unictype/category-Ll-tests (Files): Likewise.
29818         * modules/unictype/category-Lm-tests (Files): Likewise.
29819         * modules/unictype/category-Lo-tests (Files): Likewise.
29820         * modules/unictype/category-Lt-tests (Files): Likewise.
29821         * modules/unictype/category-Lu-tests (Files): Likewise.
29822         * modules/unictype/category-M-tests (Files): Likewise.
29823         * modules/unictype/category-Mc-tests (Files): Likewise.
29824         * modules/unictype/category-Me-tests (Files): Likewise.
29825         * modules/unictype/category-Mn-tests (Files): Likewise.
29826         * modules/unictype/category-N-tests (Files): Likewise.
29827         * modules/unictype/category-Nd-tests (Files): Likewise.
29828         * modules/unictype/category-Nl-tests (Files): Likewise.
29829         * modules/unictype/category-No-tests (Files): Likewise.
29830         * modules/unictype/category-P-tests (Files): Likewise.
29831         * modules/unictype/category-Pc-tests (Files): Likewise.
29832         * modules/unictype/category-Pd-tests (Files): Likewise.
29833         * modules/unictype/category-Pe-tests (Files): Likewise.
29834         * modules/unictype/category-Pf-tests (Files): Likewise.
29835         * modules/unictype/category-Pi-tests (Files): Likewise.
29836         * modules/unictype/category-Po-tests (Files): Likewise.
29837         * modules/unictype/category-Ps-tests (Files): Likewise.
29838         * modules/unictype/category-S-tests (Files): Likewise.
29839         * modules/unictype/category-Sc-tests (Files): Likewise.
29840         * modules/unictype/category-Sk-tests (Files): Likewise.
29841         * modules/unictype/category-Sm-tests (Files): Likewise.
29842         * modules/unictype/category-So-tests (Files): Likewise.
29843         * modules/unictype/category-Z-tests (Files): Likewise.
29844         * modules/unictype/category-Zl-tests (Files): Likewise.
29845         * modules/unictype/category-Zp-tests (Files): Likewise.
29846         * modules/unictype/category-Zs-tests (Files): Likewise.
29847         * modules/unictype/category-and-not-tests (Files): Likewise.
29848         * modules/unictype/category-and-tests (Files): Likewise.
29849         * modules/unictype/category-byname-tests (Files): Likewise.
29850         * modules/unictype/category-name-tests (Files): Likewise.
29851         * modules/unictype/category-none-tests (Files): Likewise.
29852         * modules/unictype/category-of-tests (Files): Likewise.
29853         * modules/unictype/category-or-tests (Files): Likewise.
29854         * modules/unictype/category-test-withtable-tests (Files): Likewise.
29855         * modules/unictype/combining-class-tests (Files): Likewise.
29856         * modules/unictype/ctype-alnum-tests (Files): Likewise.
29857         * modules/unictype/ctype-alpha-tests (Files): Likewise.
29858         * modules/unictype/ctype-blank-tests (Files): Likewise.
29859         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
29860         * modules/unictype/ctype-digit-tests (Files): Likewise.
29861         * modules/unictype/ctype-graph-tests (Files): Likewise.
29862         * modules/unictype/ctype-lower-tests (Files): Likewise.
29863         * modules/unictype/ctype-print-tests (Files): Likewise.
29864         * modules/unictype/ctype-punct-tests (Files): Likewise.
29865         * modules/unictype/ctype-space-tests (Files): Likewise.
29866         * modules/unictype/ctype-upper-tests (Files): Likewise.
29867         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
29868         * modules/unictype/decimal-digit-tests (Files): Likewise.
29869         * modules/unictype/digit-tests (Files): Likewise.
29870         * modules/unictype/mirror-tests (Files): Likewise.
29871         * modules/unictype/numeric-tests (Files): Likewise.
29872         * modules/unictype/property-alphabetic-tests (Files): Likewise.
29873         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
29874         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
29875         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
29876         Likewise.
29877         * modules/unictype/property-bidi-block-separator-tests (Files):
29878         Likewise.
29879         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
29880         Likewise.
29881         * modules/unictype/property-bidi-common-separator-tests (Files):
29882         Likewise.
29883         * modules/unictype/property-bidi-control-tests (Files): Likewise.
29884         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
29885         Likewise.
29886         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
29887         Likewise.
29888         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
29889         Likewise.
29890         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
29891         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
29892         Likewise.
29893         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
29894         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
29895         Likewise.
29896         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
29897         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
29898         * modules/unictype/property-bidi-segment-separator-tests (Files):
29899         Likewise.
29900         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
29901         * modules/unictype/property-byname-tests (Files): Likewise.
29902         * modules/unictype/property-combining-tests (Files): Likewise.
29903         * modules/unictype/property-composite-tests (Files): Likewise.
29904         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
29905         * modules/unictype/property-dash-tests (Files): Likewise.
29906         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
29907         * modules/unictype/property-default-ignorable-code-point-tests (Files):
29908         Likewise.
29909         * modules/unictype/property-deprecated-tests (Files): Likewise.
29910         * modules/unictype/property-diacritic-tests (Files): Likewise.
29911         * modules/unictype/property-extender-tests (Files): Likewise.
29912         * modules/unictype/property-format-control-tests (Files): Likewise.
29913         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
29914         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
29915         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
29916         * modules/unictype/property-hex-digit-tests (Files): Likewise.
29917         * modules/unictype/property-hyphen-tests (Files): Likewise.
29918         * modules/unictype/property-id-continue-tests (Files): Likewise.
29919         * modules/unictype/property-id-start-tests (Files): Likewise.
29920         * modules/unictype/property-ideographic-tests (Files): Likewise.
29921         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
29922         * modules/unictype/property-ids-trinary-operator-tests (Files):
29923         Likewise.
29924         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
29925         * modules/unictype/property-iso-control-tests (Files): Likewise.
29926         * modules/unictype/property-join-control-tests (Files): Likewise.
29927         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
29928         * modules/unictype/property-line-separator-tests (Files): Likewise.
29929         * modules/unictype/property-logical-order-exception-tests (Files):
29930         Likewise.
29931         * modules/unictype/property-lowercase-tests (Files): Likewise.
29932         * modules/unictype/property-math-tests (Files): Likewise.
29933         * modules/unictype/property-non-break-tests (Files): Likewise.
29934         * modules/unictype/property-not-a-character-tests (Files): Likewise.
29935         * modules/unictype/property-numeric-tests (Files): Likewise.
29936         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
29937         * modules/unictype/property-other-default-ignorable-code-point-tests
29938         (Files): Likewise.
29939         * modules/unictype/property-other-grapheme-extend-tests (Files):
29940         Likewise.
29941         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
29942         * modules/unictype/property-other-id-start-tests (Files): Likewise.
29943         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
29944         * modules/unictype/property-other-math-tests (Files): Likewise.
29945         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
29946         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
29947         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
29948         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
29949         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
29950         * modules/unictype/property-private-use-tests (Files): Likewise.
29951         * modules/unictype/property-punctuation-tests (Files): Likewise.
29952         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
29953         * modules/unictype/property-radical-tests (Files): Likewise.
29954         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
29955         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
29956         * modules/unictype/property-space-tests (Files): Likewise.
29957         * modules/unictype/property-terminal-punctuation-tests (Files):
29958         Likewise.
29959         * modules/unictype/property-test-tests (Files): Likewise.
29960         * modules/unictype/property-titlecase-tests (Files): Likewise.
29961         * modules/unictype/property-unassigned-code-value-tests (Files):
29962         Likewise.
29963         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
29964         * modules/unictype/property-uppercase-tests (Files): Likewise.
29965         * modules/unictype/property-variation-selector-tests (Files): Likewise.
29966         * modules/unictype/property-white-space-tests (Files): Likewise.
29967         * modules/unictype/property-xid-continue-tests (Files): Likewise.
29968         * modules/unictype/property-xid-start-tests (Files): Likewise.
29969         * modules/unictype/property-zero-width-tests (Files): Likewise.
29970         * modules/unictype/scripts-tests (Files): Likewise.
29971         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
29972         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
29973         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
29974         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
29975         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
29976         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
29977         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
29978         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
29979         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
29980         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
29981         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
29982         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
29983         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
29984         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
29985         * modules/uninorm/composition-tests (Files): Likewise.
29986         * modules/uninorm/decomposing-form-tests (Files): Likewise.
29987         * modules/uninorm/decomposition-tests (Files): Likewise.
29988         * modules/uninorm/filter-tests (Files): Likewise.
29989         * modules/uninorm/nfc-tests (Files): Likewise.
29990         * modules/uninorm/nfd-tests (Files): Likewise.
29991         * modules/uninorm/nfkc-tests (Files): Likewise.
29992         * modules/uninorm/nfkd-tests (Files): Likewise.
29993         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
29994         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
29995         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
29996         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
29997         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
29998         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
29999         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30000         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30001         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30002         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30003         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30004         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30005         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30006         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30007         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30008         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30009         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30010         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30011         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30012         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30013         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30014         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30015         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30016         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30017         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30018         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30019         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30020         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30021         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30022         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30023         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30024         * modules/uniwidth/u8-width-tests (Files): Likewise.
30025         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30026         * modules/uniwidth/u16-width-tests (Files): Likewise.
30027         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30028         * modules/uniwidth/u32-width-tests (Files): Likewise.
30029         * modules/uniwidth/width-tests (Files): Likewise.
30030         * modules/unlink-tests (Files): Likewise.
30031         * modules/unsetenv-tests (Files): Likewise.
30032         * modules/usleep-tests (Files): Likewise.
30033         * modules/utimens-tests (Files): Likewise.
30034         * modules/utimensat-tests (Files): Likewise.
30035         * modules/vasnprintf-posix-tests (Files): Likewise.
30036         * modules/vasnprintf-tests (Files): Likewise.
30037         * modules/vasprintf-posix-tests (Files): Likewise.
30038         * modules/vasprintf-tests (Files): Likewise.
30039         * modules/vdprintf-posix-tests (Files): Likewise.
30040         * modules/vfprintf-posix-tests (Files): Likewise.
30041         * modules/vprintf-posix-tests (Files): Likewise.
30042         * modules/vsnprintf-posix-tests (Files): Likewise.
30043         * modules/vsnprintf-tests (Files): Likewise.
30044         * modules/vsprintf-posix-tests (Files): Likewise.
30045         * modules/wcrtomb-tests (Files): Likewise.
30046         * modules/wcsnrtombs-tests (Files): Likewise.
30047         * modules/wcsrtombs-tests (Files): Likewise.
30048         * modules/wctype-tests (Files): Likewise.
30049         * modules/wcwidth-tests (Files): Likewise.
30050         * modules/xmemdup0-tests (Files): Likewise.
30051         * modules/xprintf-posix-tests (Files): Likewise.
30052         * modules/xvasprintf-tests (Files): Likewise.
30053
30054 2009-12-24  Eric Blake  <ebb9@byu.net>
30055
30056         test-nanosleep: fix typo
30057         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30058         patch.
30059         Reported by Bruno Haible.
30060
30061 2009-12-24  Bruno Haible  <bruno@clisp.org>
30062
30063         Reduce namespace pollution on glibc systems.
30064         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30065         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30066         systems.
30067         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30068         <getopt.h> on glibc systems.
30069         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30070         systems.
30071         * lib/fcntl.c: Include <unistd.h> here instead.
30072
30073 2009-12-24  Bruno Haible  <bruno@clisp.org>
30074
30075         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30076
30077 2009-12-24  Eric Blake  <ebb9@byu.net>
30078
30079         tests: add signature checks
30080         * tests/signature.h (SIGNATURE_CHECK): New file.
30081         * modules/atexit-tests (Files): Use it.
30082         * modules/btowc-tests (Files): Likewise.
30083         * modules/canonicalize-lgpl-tests (Files): Likewise.
30084         * modules/ceilf-tests (Files): Likewise.
30085         * modules/ceill-tests (Files): Likewise.
30086         * modules/chown-tests (Files): Likewise.
30087         * modules/dprintf-posix-tests (Files): Likewise.
30088         * modules/dup2-tests (Files): Likewise.
30089         * modules/dup3-tests (Files): Likewise.
30090         * modules/duplocale-tests (Files): Likewise.
30091         * modules/fchdir-tests (Files): Likewise.
30092         * modules/fcntl-tests (Files): Likewise.
30093         * modules/fdopendir-tests (Files): Likewise.
30094         * modules/fflush-tests (Files): Likewise.
30095         * modules/flock-tests (Files): Likewise.
30096         * modules/floorf-tests (Files): Likewise.
30097         * modules/floorl-tests (Files): Likewise.
30098         * modules/fnmatch-tests (Files): Likewise.
30099         * modules/fopen-tests (Files): Likewise.
30100         * modules/fprintf-posix-tests (Files): Likewise.
30101         * modules/freopen-tests (Files): Likewise.
30102         * modules/frexp-nolibm-tests (Files): Likewise.
30103         * modules/frexp-tests (Files): Likewise.
30104         * modules/frexpl-nolibm-tests (Files): Likewise.
30105         * modules/frexpl-tests (Files): Likewise.
30106         * modules/fseek-tests (Files): Likewise.
30107         * modules/fseeko-tests (Files): Likewise.
30108         * modules/fsync-tests (Files): Likewise.
30109         * modules/ftell-tests (Files): Likewise.
30110         * modules/ftello-tests (Files): Likewise.
30111         * modules/futimens-tests (Files): Likewise.
30112         * modules/getaddrinfo-tests (Files): Likewise.
30113         * modules/getcwd-tests (Files): Likewise.
30114         * modules/getdelim-tests (Files): Likewise.
30115         * modules/getdtablesize-tests (Files): Likewise.
30116         * modules/getgroups-tests (Files): Likewise.
30117         * modules/gethostname-tests (Files): Likewise.
30118         * modules/getline-tests (Files): Likewise.
30119         * modules/getopt-posix-tests (Files): Likewise.
30120         * modules/gettimeofday-tests (Files): Likewise.
30121         * modules/glob-tests (Files): Likewise.
30122         * modules/iconv-tests (Files): Likewise.
30123         * modules/inet_ntop-tests (Files): Likewise.
30124         * modules/inet_pton-tests (Files): Likewise.
30125         * modules/isblank-tests (Files): Likewise.
30126         * modules/lchown-tests (Files): Likewise.
30127         * modules/ldexpl-tests (Files): Likewise.
30128         * modules/link-tests (Files): Likewise.
30129         * modules/linkat-tests (Files): Likewise.
30130         * modules/lseek-tests (Files): Likewise.
30131         * modules/lstat-tests (Files): Likewise.
30132         * modules/mbrtowc-tests (Files): Likewise.
30133         * modules/mbsinit-tests (Files): Likewise.
30134         * modules/mbsnrtowcs-tests (Files): Likewise.
30135         * modules/mbsrtowcs-tests (Files): Likewise.
30136         * modules/memchr-tests (Files): Likewise.
30137         * modules/memcmp-tests (Files): Likewise.
30138         * modules/memmem-tests (Files): Likewise.
30139         * modules/memrchr-tests (Files): Likewise.
30140         * modules/mkdir-tests (Files): Likewise.
30141         * modules/mkfifo-tests (Files): Likewise.
30142         * modules/mkfifoat-tests (Files): Likewise.
30143         * modules/mknod-tests (Files): Likewise.
30144         * modules/nanosleep-tests (Files): Likewise.
30145         * modules/nl_langinfo-tests (Files): Likewise.
30146         * modules/obstack-printf-tests (Files): Likewise.
30147         * modules/open-tests (Files): Likewise.
30148         * modules/openat-tests (Files): Likewise.
30149         * modules/perror-tests (Files): Likewise.
30150         * modules/pipe2-tests (Files): Likewise.
30151         * modules/poll-tests (Files): Likewise.
30152         * modules/popen-tests (Files): Likewise.
30153         * modules/posix_spawn-tests (Files): Likewise.
30154         * modules/posix_spawnp-tests (Files): Likewise.
30155         * modules/pread-tests (Files): Likewise.
30156         * modules/printf-posix-tests (Files): Likewise.
30157         * modules/pty-tests (Files): Likewise.
30158         * modules/random_r-tests (Files): Likewise.
30159         * modules/rawmemchr-tests (Files): Likewise.
30160         * modules/readlink-tests (Files): Likewise.
30161         * modules/remove-tests (Files): Likewise.
30162         * modules/rename-tests (Files): Likewise.
30163         * modules/renameat-tests (Files): Likewise.
30164         * modules/rmdir-tests (Files): Likewise.
30165         * modules/round-tests (Files): Likewise.
30166         * modules/roundf-tests (Files): Likewise.
30167         * modules/roundl-tests (Files): Likewise.
30168         * modules/select-tests (Files): Likewise.
30169         * modules/setenv-tests (Files): Likewise.
30170         * modules/sigaction-tests (Files): Likewise.
30171         * modules/sleep-tests (Files): Likewise.
30172         * modules/snprintf-posix-tests (Files): Likewise.
30173         * modules/snprintf-tests (Files): Likewise.
30174         * modules/sprintf-posix-tests (Files): Likewise.
30175         * modules/stat-tests (Files): Likewise.
30176         * modules/strcasestr-tests (Files): Likewise.
30177         * modules/strchrnul-tests (Files): Likewise.
30178         * modules/strerror-tests (Files): Likewise.
30179         * modules/strsignal-tests (Files): Likewise.
30180         * modules/strstr-tests (Files): Likewise.
30181         * modules/strtod-tests (Files): Likewise.
30182         * modules/strverscmp-tests (Files): Likewise.
30183         * modules/symlink-tests (Files): Likewise.
30184         * modules/symlinkat-tests (Files): Likewise.
30185         * modules/times-tests (Files): Likewise.
30186         * modules/trunc-tests (Files): Likewise.
30187         * modules/truncf-tests (Files): Likewise.
30188         * modules/truncl-tests (Files): Likewise.
30189         * modules/tsearch-tests (Files): Likewise.
30190         * modules/uname-tests (Files): Likewise.
30191         * modules/unlink-tests (Files): Likewise.
30192         * modules/unsetenv-tests (Files): Likewise.
30193         * modules/usleep-tests (Files): Likewise.
30194         * modules/utimensat-tests (Files): Likewise.
30195         * modules/vasprintf-tests (Files): Likewise.
30196         * modules/vdprintf-posix-tests (Files): Likewise.
30197         * modules/vfprintf-posix-tests (Files): Likewise.
30198         * modules/vprintf-posix-tests (Files): Likewise.
30199         * modules/vsnprintf-posix-tests (Files): Likewise.
30200         * modules/vsnprintf-tests (Files): Likewise.
30201         * modules/vsprintf-posix-tests (Files): Likewise.
30202         * modules/wcrtomb-tests (Files): Likewise.
30203         * modules/wcsnrtombs-tests (Files): Likewise.
30204         * modules/wcsrtombs-tests (Files): Likewise.
30205         * modules/wcwidth-tests (Files): Likewise.
30206         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30207         * tests/test-isinf.c (isinf): Likewise.
30208         * tests/test-isnan.c (isnan): Likewise.
30209         * tests/test-signbit.c (signbit): Likewise.
30210         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30211         declaration, either as macro or with correct signature.
30212         (select): Ensure function under test is declared with correct
30213         signature in correct header.
30214         * tests/test-atexit.c (atexit): Likewise.
30215         * tests/test-btowc.c (btowc): Likewise.
30216         * tests/test-canonicalize-lgpl.c (realpath)
30217         (canonicalize_file_name): Likewise.
30218         * tests/test-ceilf1.c (ceilf): Likewise.
30219         * tests/test-ceill.c (ceill): Likewise.
30220         * tests/test-chown.c (chown): Likewise.
30221         * tests/test-dprintf-posix.c (dprintf): Likewise.
30222         * tests/test-dup2.c (dup2): Likewise.
30223         * tests/test-dup3.c (dup3): Likewise.
30224         * tests/test-duplocale.c (duplocale): Likewise.
30225         * tests/test-fchdir.c (fchdir): Likewise.
30226         * tests/test-fchownat.c (fchownat): Likewise.
30227         * tests/test-fcntl.c (fcntl): Likewise.
30228         * tests/test-fdopendir.c (fdopendir): Likewise.
30229         * tests/test-fflush.c (fflush): Likewise.
30230         * tests/test-flock.c (flock): Likewise.
30231         * tests/test-floorf1.c (floorf): Likewise.
30232         * tests/test-floorl.c (floorl): Likewise.
30233         * tests/test-fnmatch.c (fnmatch): Likewise.
30234         * tests/test-fopen.c (fopen): Likewise.
30235         * tests/test-fprintf-posix.c (fprintf): Likewise.
30236         * tests/test-freopen.c (freopen): Likewise.
30237         * tests/test-frexp.c (frexp): Likewise.
30238         * tests/test-frexpl.c (frexpl): Likewise.
30239         * tests/test-fseek.c (fseek): Likewise.
30240         * tests/test-fseeko.c (fseeko): Likewise.
30241         * tests/test-fstatat.c (fstatat): Likewise.
30242         * tests/test-fsync.c (fsync): Likewise.
30243         * tests/test-ftell.c (ftell): Likewise.
30244         * tests/test-ftello.c (ftello): Likewise.
30245         * tests/test-futimens.c (futimens): Likewise.
30246         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
30247         (gai_strerror): Likewise.
30248         * tests/test-getcwd.c (getcwd): Likewise.
30249         * tests/test-getdelim.c (getdelim): Likewise.
30250         * tests/test-getdtablesize.c (getdtablesize): Likewise.
30251         * tests/test-getgroups.c (getgroups): Likewise.
30252         * tests/test-gethostname.c (gethostname): Likewise.
30253         * tests/test-getline.c (getline): Likewise.
30254         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
30255         Likewise.
30256         * tests/test-gettimeofday.c (gettimeofday): Likewise.
30257         * tests/test-glob.c (glob, globfree): Likewise.
30258         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
30259         * tests/test-inet_ntop.c (inet_ntop): Likewise.
30260         * tests/test-inet_pton.c (inet_pton): Likewise.
30261         * tests/test-isblank.c (isblank): Likewise.
30262         * tests/test-lchown.c (lchown): Likewise.
30263         * tests/test-ldexpl.c (ldexpl): Likewise.
30264         * tests/test-link.c (link): Likewise.
30265         * tests/test-linkat.c (linkat): Likewise.
30266         * tests/test-lseek.c (lseek): Likewise.
30267         * tests/test-lstat.c (lstat): Likewise.
30268         * tests/test-mbrtowc.c (mbrtowc): Likewise.
30269         * tests/test-mbsinit.c (mbsinit): Likewise.
30270         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
30271         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
30272         * tests/test-memchr.c (memchr): Likewise.
30273         * tests/test-memcmp.c (memcmp): Likewise.
30274         * tests/test-memmem.c (memmem): Likewise.
30275         * tests/test-memrchr.c (memrchr): Likewise.
30276         * tests/test-mkdir.c (mkdir): Likewise.
30277         * tests/test-mkdirat.c (mkdirat): Likewise.
30278         * tests/test-mkfifo.c (mkfifo): Likewise.
30279         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
30280         * tests/test-mknod.c (mknod): Likewise.
30281         * tests/test-nanosleep.c (nanosleep): Likewise.
30282         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
30283         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
30284         Likewise.
30285         * tests/test-open.c (open): Likewise.
30286         * tests/test-openat.c (openat): Likewise.
30287         * tests/test-perror.c (perror): Likewise.
30288         * tests/test-pipe2.c (pipe2): Likewise.
30289         * tests/test-poll.c (poll): Likewise.
30290         * tests/test-popen.c (popen, pclose): Likewise.
30291         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
30292         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
30293         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
30294         (posix_spawn_file_actions_destroy)
30295         (posix_spawn_file_actions_addclose)
30296         (posix_spawn_file_actions_addopen)
30297         (posix_spawn_file_actions_adddup2): Likewise.
30298         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
30299         * tests/test-pread.c (pread): Likewise.
30300         * tests/test-printf-posix.c (printf): Likewise.
30301         * tests/test-pty.c (openpty, forkpty): Likewise.
30302         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
30303         (random_r): Likewise.
30304         * tests/test-rawmemchr.c (rawmemchr): Likewise.
30305         * tests/test-readlink.c (readlink): Likewise.
30306         * tests/test-remove.c (remove): Likewise.
30307         * tests/test-rename.c (rename): Likewise.
30308         * tests/test-renameat.c (renameat): Likewise.
30309         * tests/test-rmdir.c (rmdir): Likewise.
30310         * tests/test-round1.c (round): Likewise.
30311         * tests/test-roundf1.c (roundf): Likewise.
30312         * tests/test-roundl.c (roundl): Likewise.
30313         * tests/test-setenv.c (setenv): Likewise.
30314         * tests/test-sigaction.c (sigaction): Likewise.
30315         * tests/test-sleep.c (sleep): Likewise.
30316         * tests/test-snprintf.c (snprintf): Likewise.
30317         * tests/test-sprintf-posix.c (sprintf): Likewise.
30318         * tests/test-stat.c (stat): Likewise.
30319         * tests/test-stpncpy.c (stpncpy): Likewise.
30320         * tests/test-strcasestr.c (strcasestr): Likewise.
30321         * tests/test-strchrnul.c (strchrnul): Likewise.
30322         * tests/test-strerror.c (strerror): Likewise.
30323         * tests/test-strsignal.c (strsignal): Likewise.
30324         * tests/test-strstr.c (strstr): Likewise.
30325         * tests/test-strtod.c (strtod): Likewise.
30326         * tests/test-strverscmp.c (strverscmp): Likewise.
30327         * tests/test-symlink.c (symlink): Likewise.
30328         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
30329         * tests/test-times.c (times): Likewise.
30330         * tests/test-trunc1.c (trunc): Likewise.
30331         * tests/test-truncf1.c (truncf): Likewise.
30332         * tests/test-truncl.c (truncl): Likewise.
30333         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
30334         Likewise.
30335         * tests/test-uname.c (uname): Likewise.
30336         * tests/test-unlink.c (unlink): Likewise.
30337         * tests/test-unlinkat.c (unlinkat): Likewise.
30338         * tests/test-unsetenv.c (unsetenv): Likewise.
30339         * tests/test-usleep.c (usleep): Likewise.
30340         * tests/test-utimensat.c (utimensat): Likewise.
30341         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
30342         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
30343         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30344         * tests/test-vprintf-posix.c (vprintf): Likewise.
30345         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30346         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30347         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30348         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30349         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30350         * tests/test-wcwidth.c (wcwidth): Likewise.
30351
30352         build: pull in conditional headers during GNULIB_POSIXCHECK
30353         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30354         definitions from any conditionally-included headers.
30355         * lib/stdlib.in.h (includes): Likewise.
30356         * lib/unistd.in.h (includes): Likewise.
30357
30358 2009-12-24  Bruno Haible  <bruno@clisp.org>
30359
30360         * tests/test-argv-iter.c: Include header file being tested immediately
30361         after config.h.
30362         * tests/test-base64.c: Likewise.
30363         * tests/test-flock.c: Likewise.
30364         * tests/test-fsync.c: Likewise.
30365         * tests/test-getdate.c: Likewise.
30366         * tests/test-getndelim2.c: Likewise.
30367         * tests/test-isfinite.c: Likewise.
30368         * tests/test-isinf.c: Likewise.
30369         * tests/test-strerror.c: Likewise.
30370         * tests/test-strsignal.c: Likewise.
30371
30372 2009-12-23  Eric Blake  <ebb9@byu.net>
30373
30374         unistd: work around cygwin bug
30375         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
30376         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
30377         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30378
30379 2009-12-23  Bruno Haible  <bruno@clisp.org>
30380
30381         localename: More tests.
30382         * tests/test-localename.c (SIZEOF): New macro.
30383         (categories): New variable.
30384         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
30385         test_locale_name_default): Add test w.r.t. thread locale.
30386         (test_locale_name_thread): New function.
30387         (main): Invoke it.
30388
30389         localename: Make aware of thread locale.
30390         * lib/localename.h (gl_locale_name_thread): New declaration.
30391         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
30392         behaviour with respect to thread locale.
30393         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
30394         <langinfo.h>, glthread/lock.h.
30395         (SIZE_BITS): New macro.
30396         (string_hash): New function.
30397         (struct hash_node): New type.
30398         (HASH_TABLE_SIZE): New macro.
30399         (struniq_hash_table, struniq_lock): New variables.
30400         (struniq): New function.
30401         (gl_locale_name_thread): New function.
30402         (gl_locale_name): Invoke it.
30403         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
30404         * modules/localename (Depends-on): Add lock.
30405         Reported by Mike Gran <spk121@yahoo.com>.
30406
30407 2009-12-23  Eric Blake  <ebb9@byu.net>
30408
30409         va-args: new module
30410         * modules/va-args: New file.
30411         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
30412         * MODULES.html.sh (Core language properties): Mention it.
30413
30414         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30415         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30416         named alias for __attribute__((__unused__)).
30417         * lib/chown.c: Update client.
30418         * lib/fchmodat.c: Likewise.
30419         * lib/fts.c: Likewise.
30420         * lib/getdate.y: Likewise.
30421         * lib/getgroups.c: Likewise.
30422         * lib/getopt.c: Likewise.
30423         * lib/getugroups.c: Likewise.
30424         * lib/mkdir.c: Likewise.
30425         * lib/mkfifo.c: Likewise.
30426         * lib/mkfifoat.c: Likewise.
30427         * lib/mknod.c: Likewise.
30428         * lib/mknodat.c: Likewise.
30429         * lib/readlink.c: Likewise.
30430         * lib/se-context.in.h: Likewise.
30431         * lib/se-selinux.in.h: Likewise.
30432         * lib/sockets.c: Likewise.
30433         * lib/symlink.c: Likewise.
30434         * lib/symlinkat.c: Likewise.
30435         * lib/unicodeio.c: Likewise.
30436         * lib/unistr.h: Likewise.
30437         * tests/test-areadlink.c: Likewise.
30438         * tests/test-areadlinkat.c: Likewise.
30439         * tests/test-filenamecat.c: Likewise.
30440         * tests/test-fseeko.c: Likewise.
30441         * tests/test-ftello.c: Likewise.
30442         * tests/test-getdate.c: Likewise.
30443         * tests/test-getgroups.c: Likewise.
30444         * tests/test-gethostname.c: Likewise.
30445         * tests/test-quotearg.c: Likewise.
30446         * tests/test-version-etc.c: Likewise.
30447         * tests/test-xalloc-die.c: Likewise.
30448         * tests/test-xfprintf-posix.c: Likewise.
30449         * tests/test-xprintf-posix.c: Likewise.
30450         * tests/test-xvasprintf.c: Likewise.
30451
30452         tests: avoid compiler warnings
30453         * tests/test-fcntl.c (main): Delete unused parameters.
30454         * tests/test-freopen-safer.c (main): Likewise.
30455         * tests/test-xalloc-die.c (main): Mark unused parameters.
30456         * tests/test-fseeko.c (main): Likewise.
30457         * tests/test-ftello.c (main): Likewise.
30458         * tests/test-nanosleep.c (main): Avoid declaration warning.
30459         * tests/test-sleep.c (main): Likewise.
30460         * tests/test-unsetenv.c (main): Silence warning about string
30461         literal.
30462         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30463
30464 2009-12-23  Bruno Haible  <bruno@clisp.org>
30465
30466         * tests/test-localename.c (test_locale_name): New function, extracted
30467         from main. Also test mixed situations.
30468         (test_locale_name_posix, test_locale_name_environ,
30469         test_locale_name_default): New functions.
30470         (main): Invoke them all.
30471         * modules/localename-tests (configure.ac): Test for newlocale.
30472
30473 2009-12-23  Bruno Haible  <bruno@clisp.org>
30474
30475         unistd: Ensure getcwd gets declared before being overridden.
30476         * lib/unistd.in.h: Conditionally include <io.h>.
30477
30478 2009-12-22  Bruno Haible  <bruno@clisp.org>
30479
30480         wchar: Diagnose broken combination of glibc and gcc versions and flags.
30481         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
30482         (gl_WCHAR_H): Invoke it.
30483         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
30484         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
30485         Reported by Karl Berry <karl@freefriends.org>.
30486
30487 2009-12-22  Eric Blake  <ebb9@byu.net>
30488
30489         math, unistd: avoid redundant includes
30490         * lib/math.in.h (isnan): No need to re-include <math.h>.
30491         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
30492
30493         getsubopt: work around cygwin bug
30494         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
30495         avoid conflicting with system getsubopt.
30496         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
30497         bug.
30498
30499         getopt: synchronize from glibc
30500         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
30501         parameter order.  Adjust all callers.
30502         (_getopt_internal_r, main): Adjust quoting in error messages.
30503         Drop considerations for outdated POSIX 1003.2 error message.
30504         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
30505         callers.
30506         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
30507
30508         test-getopt: test stderr behavior
30509         * modules/getopt-posix-tests (Depends-on): Add dup2.
30510         * tests/test-getopt.c (ASSERT): Avoid stderr.
30511         (main): Move stderr to a temporary file.
30512         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
30513         Instead, add parameter to inform caller if output occurred.
30514         (test_getopt): Adjust all existing tests to expect silence, and
30515         add new tests of leading ":".
30516         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30517         glibc shortcomings with leading "-:" or "+:" in optstring.
30518         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30519         Likewise.
30520         * doc/posix-functions/getopt.texi (getopt): Likewise.
30521
30522         test-getopt: enhance test
30523         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
30524         supports optind=0.
30525         * tests/test-getopt.c (OPTIND_MIN): Move...
30526         * tests/test-getopt.h (OPTIND_MIN): ...here.
30527         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
30528         Require that optind=0 works, since modern BSD supports it in
30529         addition to optreset, and since coreutils expects it.
30530         (test_getopt_long_only): New test.
30531         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30532         glibc shortcomings with 'W;', and enforcement of optind=0.
30533         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30534         Likewise.
30535
30536 2009-12-21  Bruno Haible  <bruno@clisp.org>
30537
30538         localename: Improvements for MacOS X and Cygwin.
30539         * lib/localename.h (gl_locale_name_environ): New declaration.
30540         * lib/localename.c (gl_locale_name_environ): New function, extracted from
30541         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
30542         (gl_locale_name_posix): Invoke it.
30543         (gl_locale_name_default): Add comments. Use Windows native API also on
30544         Cygwin.
30545
30546 2009-12-21  Bruno Haible  <bruno@clisp.org>
30547
30548         Update list of Win32 locale ids.
30549         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
30550         (LANG_SAMI): Renamed from LANG_SAAMI.
30551         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
30552         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
30553         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
30554         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
30555         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
30556         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
30557         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
30558         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
30559         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
30560         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
30561         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
30562         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
30563         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
30564         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
30565         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
30566         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
30567         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
30568         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
30569         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
30570         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
30571         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
30572         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
30573         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
30574         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
30575         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
30576         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
30577         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
30578         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
30579         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
30580         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
30581         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
30582         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
30583         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
30584         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
30585         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
30586         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
30587         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
30588         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
30589         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
30590         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
30591         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
30592         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
30593         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
30594         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
30595         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
30596         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
30597         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
30598         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
30599         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
30600         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
30601         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
30602         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
30603         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
30604         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
30605         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
30606         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
30607         Add more languages and countries for Sami, Sorbian. Add more countries
30608         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
30609         for Pashto. Change country for Syriac, Tswana.
30610
30611 2009-12-21  Eric Blake  <ebb9@byu.net>
30612
30613         test-utimens: avoid spurious failure
30614         * tests/test-chown.h (nap): Factor...
30615         * tests/nap.h: ...into new file.
30616         * tests/test-lchown.h (nap): Avoid duplication.
30617         * tests/test-utimens-common.h (nap): Use shared implementation,
30618         necessary on file systems with 1-second resolution.
30619         * modules/chown-tests (Files): Include new file.
30620         * modules/fdutimensat-tests (Files): Likewise.
30621         * modules/futimens-tests (Files): Likewise.
30622         * modules/lchown-tests (Files): Likewise.
30623         * modules/openat-tests (Files): Likewise.
30624         * modules/utimens-tests (Files): Likewise.
30625         * modules/utimensat-tests (Files): Likewise.
30626
30627 2009-12-19  Eric Blake  <ebb9@byu.net>
30628
30629         futimens, utimensat: work around Linux bug
30630         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
30631         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30632         * lib/utimensat.c (rpl_utimensat): Work around it.
30633         * lib/futimens.c (rpl_futimens): Adjust comment.
30634
30635         utimens: work around Linux ctime bug
30636         * lib/utimens.c (detect_ctime_bug): New helper function.
30637         (update_timespec): Differentiate between workaround needed for
30638         this bug vs. what is needed for systems that lack utimensat.
30639         (fdutimens, lutimens): Work around bug.
30640
30641         utimens: check for ctime update
30642         * tests/test-utimens-common.h (check_ctime): Define.
30643         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
30644         * tests/test-futimens.h (test_futimens): Likewise.
30645         * tests/test-lutimens.h (test_lutimens): Likewise.
30646         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30647         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30648
30649 2009-12-19  Bruno Haible  <bruno@clisp.org>
30650
30651         dprintf-posix: Check against memory leak fixed on 2009-12-15.
30652         * tests/test-dprintf-posix2.sh: New file.
30653         * tests/test-dprintf-posix2.c: New file.
30654         * modules/dprintf-posix-tests (Files): Add them.
30655         (configure.ac): Check for getrlimit and setrlimit.
30656         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30657
30658 2009-12-19  Bruno Haible  <bruno@clisp.org>
30659
30660         fprintf-posix: Check against memory leak fixed on 2009-12-15.
30661         * tests/test-fprintf-posix3.sh: New file.
30662         * tests/test-fprintf-posix3.c: New file.
30663         * modules/fprintf-posix-tests (Files): Add them.
30664         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30665
30666 2009-12-19  Eric Blake  <ebb9@byu.net>
30667
30668         dirfd: fix prototype
30669         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
30670         * lib/dirfd.c (dirfd): Likewise.
30671
30672         canonicalize: reduce memory usage
30673         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
30674         allocation to size.
30675         Reported by Solar Designer <solar@openwall.com>.
30676
30677 2009-12-19  Bruno Haible  <bruno@clisp.org>
30678
30679         New module attribute 'Applicability'.
30680         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
30681         * gnulib-tool: New option --extract-applicability.
30682         (func_usage): Document it.
30683         (sed_extract_prog): Recognize it.
30684         (func_get_applicability): New function.
30685         (func_import): Generalize handling of 'link-warning' module.
30686         * modules/link-warning (Applicability): New section.
30687         * modules/arg-nonnull (Applicability): New section.
30688         Repoted by Simon Josefsson <simon@josefsson.org>.
30689
30690 2009-12-19  Bruno Haible  <bruno@clisp.org>
30691
30692         fflush: tweak
30693         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
30694         * lib/fseeko.c (rpl_fseeko): Likewise.
30695
30696 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
30697
30698         * lib/gl_list.h: Fix typo in comment.
30699
30700 2009-12-16  Eric Blake  <ebb9@byu.net>
30701
30702         fcntl: use to simplify other modules
30703         * modules/cloexec (Depends-on): Add fcntl.
30704         * modules/fchdir (Depends-on): Likewise.
30705         * modules/fd-safer-flag (Depends-on): Likewise.
30706         * modules/unistd-safer (Depends-on): Likewise.
30707         * modules/dup3 (configure.ac): Set module indicator.
30708         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
30709         missing.
30710         * lib/fchdir.c (_gl_register_dup): Fix comment.
30711         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
30712         * lib/dup-safer.c (dup_safer): Likewise.
30713         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
30714         * lib/dup3.c (dup3): Likewise.
30715         * tests/test-fchdir.c (main): Enhance test.
30716         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
30717
30718         fcntl: port portions of fcntl to mingw
30719         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
30720         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
30721         replacement for mingw.
30722         * modules/fcntl (Description): Update.
30723         (Depends-on): Add dup2.
30724         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
30725         * modules/fcntl-h (Makefile.am): Substitute it.
30726         * lib/fcntl.in.h (fcntl): Update declaration.
30727         (F_DUPFD, F_GETFD): New macros, when needed.
30728         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30729         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
30730         * tests/test-fcntl.c (check_flags, main): Enhance test for items
30731         we now guarantee.
30732
30733         fcntl: work around cygwin bug in F_DUPFD
30734         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
30735         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
30736         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
30737         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
30738         * doc/posix-functions/fcntl.texi (fcntl): Document it.
30739
30740         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
30741         * modules/fcntl (Files): List new files.
30742         (configure.ac): Run a test.
30743         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
30744         * lib/fcntl.c (rpl_fcntl): Likewise.
30745         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
30746         (gl_FCNTL_H): Always replace fcntl.h.
30747         * modules/fcntl-h (Makefile.am): Substitute witnesses.
30748         * lib/fcntl.in.h (fcntl): Declare replacement.
30749         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
30750         needed, plus a witness.
30751         * doc/posix-functions/fcntl.texi (fcntl): Document this.
30752         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30753         * tests/test-fcntl.c: New file.
30754         * modules/fcntl-tests: Likewise.
30755
30756         binary-io: avoid potential compilation warning
30757         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
30758         directives.
30759
30760         fflush: avoid compilation error on NetBSD
30761         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
30762         between off_t and fpos_t, since the latter is sometimes a struct.
30763         * lib/fseeko.c (rpl_fseeko): Likewise.
30764         Reported by Alexander Nasonov <alnsn@yandex.ru>.
30765
30766 2009-12-15  Eric Blake  <ebb9@byu.net>
30767
30768         fcntl-h, stdio, sys_ioctl: fix declarations
30769         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
30770         function must not take arguments.
30771         * lib/sys_ioctl.in.h (ioctl): Likewise.
30772         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
30773         (open): Add a link warning.
30774
30775 2009-12-15  Jim Meyering  <meyering@redhat.com>
30776
30777         areadlink, areadlink-with-size: relax license to LGPLv2+
30778         * modules/areadlink (License): Relax to LGPLv2+.
30779         * modules/areadlink-with-size (License): Likewise.
30780
30781 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
30782             Bruno Haible  <bruno@clisp.org>
30783
30784         *printf: Fix memory leak.
30785         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
30786         * lib/vfprintf.c (vfprintf): Likewise.
30787         * lib/dprintf.c (dprintf): Likewise.
30788         * lib/vdprintf.c (vdprintf): Likewise.
30789
30790 2009-12-14  Eric Blake  <ebb9@byu.net>
30791
30792         accept4: adjust module dependencies
30793         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
30794
30795         utimens: one more try at avoiding compiler warning
30796         * lib/utimens.c (lutimens): Lower scope of result.
30797
30798 2009-12-13  Bruno Haible  <bruno@clisp.org>
30799
30800         Move the malloc checking from module 'list' to new module 'xlist'.
30801         * modules/xlist: New file.
30802         * lib/gl_xlist.h: New file.
30803         * lib/gl_xlist.c: New file.
30804         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
30805         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
30806         gl_list_add_last, gl_list_add_before, gl_list_add_after,
30807         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
30808         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
30809         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
30810         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
30811         gl_sortedlist_nx_add): New declarations.
30812         (struct gl_list_implementation): Rename and change methods accordingly.
30813         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
30814         (gl_list_nx_create): Renamed from gl_list_create.
30815         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30816         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30817         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30818         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30819         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30820         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30821         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30822         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30823         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
30824         gl_list_create_empty.
30825         (gl_list_nx_create): Renamed from gl_list_create.
30826         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30827         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30828         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30829         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30830         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30831         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30832         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30833         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30834         * lib/gl_array_list.c: Don't include xalloc.h.
30835         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
30836         NULL upon out-of-memory.
30837         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
30838         out-of-memory.
30839         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
30840         Change return type to 'int'.
30841         (gl_array_nx_set_at): Renamed from gl_array_set_at.
30842         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30843         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
30844         upon out-of-memory.
30845         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
30846         upon out-of-memory.
30847         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
30848         upon out-of-memory.
30849         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
30850         upon out-of-memory.
30851         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
30852         out-of-memory.
30853         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
30854         Update.
30855         (gl_array_list_implementation): Update.
30856         * lib/gl_carray_list.c: Don't include xalloc.h.
30857         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
30858         Return NULL upon out-of-memory.
30859         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
30860         out-of-memory.
30861         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
30862         Change return type to 'int'.
30863         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
30864         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30865         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
30866         upon out-of-memory.
30867         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
30868         upon out-of-memory.
30869         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
30870         out-of-memory.
30871         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
30872         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
30873         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
30874         Update.
30875         (gl_carray_list_implementation): Update.
30876         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
30877         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
30878         gl_linked_create_empty. Return NULL upon out-of-memory.
30879         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
30880         out-of-memory.
30881         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
30882         Change return type to 'int'. Return -1 upon out-of-memory.
30883         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
30884         out-of-memory.
30885         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
30886         upon out-of-memory.
30887         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
30888         upon out-of-memory.
30889         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
30890         NULL upon out-of-memory.
30891         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
30892         upon out-of-memory.
30893         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
30894         out-of-memory.
30895         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
30896         Update.
30897         * lib/gl_linked_list.c: Don't include xalloc.h.
30898         (gl_linked_list_implementation): Update.
30899         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
30900         (add_to_bucket): Change return type to 'int'.
30901         (gl_linkedhash_list_implementation): Update.
30902         * lib/gl_anytree_list1.h (free_subtree): New function.
30903         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
30904         gl_tree_create_empty. Return NULL upon out-of-memory.
30905         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
30906         Change return type to 'int'. Return -1 upon out-of-memory.
30907         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
30908         out-of-memory.
30909         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
30910         (gl_tree_remove_node): New function, moved here from
30911         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
30912         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
30913         Update.
30914         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
30915         malloc, not xmalloc. Return NULL upon out-of-memory.
30916         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30917         out-of-memory.
30918         (gl_tree_remove_node_from_tree): New function, extracted from
30919         gl_tree_remove_node.
30920         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30921         upon out-of-memory.
30922         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30923         out-of-memory.
30924         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30925         upon out-of-memory.
30926         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30927         upon out-of-memory.
30928         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30929         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
30930         not xmalloc. Return NULL upon out-of-memory.
30931         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30932         out-of-memory.
30933         (gl_tree_remove_node_from_tree): New function, extracted from
30934         gl_tree_remove_node.
30935         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30936         upon out-of-memory.
30937         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30938         out-of-memory.
30939         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30940         upon out-of-memory.
30941         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30942         upon out-of-memory.
30943         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30944         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
30945         gl_anytree_list1.h before gl_anyavltree_list2.h.
30946         (gl_avltree_list_implementation): Update.
30947         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
30948         gl_anytree_list1.h before gl_anyavltree_list2.h.
30949         (gl_rbtree_list_implementation): Update.
30950         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
30951         Change return type to 'int'. Return -1 upon out-of-memory. Use
30952         __builtin_expect.
30953         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
30954         (gl_avltreehash_list_implementation): Update.
30955         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
30956         (gl_rbtreehash_list_implementation): Update.
30957         * modules/array-list (Depends-on): Remove xalloc.
30958         * modules/carray-list (Depends-on): Likewise.
30959         * modules/linked-list (Depends-on): Likewise.
30960         * modules/linkedhash-list (Depends-on): Likewise.
30961         * modules/avltree-list (Depends-on): Likewise.
30962         * modules/rbtree-list (Depends-on): Likewise.
30963         * modules/avltreehash-list (Depends-on): Likewise.
30964         * modules/rbtreehash-list (Depends-on): Likewise.
30965
30966         * modules/xsublist: New file.
30967         * lib/gl_xsublist.h: New file.
30968         * lib/gl_xsublist.c: New file.
30969         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
30970         (gl_sublist_nx_create): New declaration.
30971         * lib/gl_sublist.c: Don't include xalloc.h.
30972         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
30973         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
30974         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
30975         Change return type to 'int'. Return -1 upon out-of-memory.
30976         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
30977         upon out-of-memory.
30978         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
30979         NULL upon out-of-memory.
30980         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
30981         upon out-of-memory.
30982         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
30983         NULL upon out-of-memory.
30984         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
30985         NULL upon out-of-memory.
30986         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
30987         upon out-of-memory.
30988         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
30989         (gl_sublist_list_implementation): Update.
30990         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
30991         upon out-of-memory.
30992         * modules/sublist (Depends-on): Remove xalloc.
30993
30994         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
30995         * tests/test-carray_list.c: Likewise.
30996         * tests/test-linked_list.c: Likewise.
30997         * tests/test-linkedhash_list.c: Likewise.
30998         * tests/test-avltree_list.c: Likewise.
30999         * tests/test-rbtree_list.c: Likewise.
31000         * tests/test-avltreehash_list.c: Likewise.
31001         * tests/test-rbtreehash_list.c: Likewise.
31002         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31003         * modules/carray-list-tests (Makefile.am): Likewise.
31004         * modules/linked-list-tests (Makefile.am): Likewise.
31005         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31006         * modules/avltree-list-tests (Makefile.am): Likewise.
31007         * modules/rbtree-list-tests (Makefile.am): Likewise.
31008         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31009         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31010
31011         * NEWS: Mention the changes.
31012
31013         * lib/clean-temp.c: Include gl_xlist.h.
31014         * modules/clean-temp (Depends-on): Add xlist.
31015
31016         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31017         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31018
31019         * tests/test-array_oset.c: Include gl_xlist.h.
31020         * modules/array-oset-tests (Depends-on): Add xlist.
31021
31022         Reported by José E. Marchesi <jemarch@gnu.org>.
31023
31024 2009-12-13  Bruno Haible  <bruno@clisp.org>
31025
31026         Move the malloc checking from module 'oset' to new module 'xoset'.
31027         * modules/xoset: New file.
31028         * lib/gl_xoset.h: New file.
31029         * lib/gl_xoset.c: New file.
31030         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31031         declarations.
31032         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31033         (struct gl_oset_implementation): Rename and change methods accordingly.
31034         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31035         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31036         'int'. Mark as __warn_unused_result__.
31037         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31038         gl_oset_create_empty.
31039         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31040         'int'.
31041         * lib/gl_array_oset.c: Don't include xalloc.h.
31042         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31043         malloc, not xmalloc.
31044         (grow): Change return type to 'int'. Don't call xalloc_die.
31045         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31046         to 'int'.
31047         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31048         'int'.
31049         (gl_array_oset_implementation): Update.
31050         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31051         gl_tree_create_empty.
31052         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31053         'int'.
31054         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31055         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31056         xmalloc.
31057         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31058         not xmalloc.
31059         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31060         xmalloc.
31061         (gl_avltree_oset_implementation): Update.
31062         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31063         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31064         xmalloc.
31065         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31066         not xmalloc.
31067         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31068         xmalloc.
31069         (gl_rbtree_oset_implementation): Update.
31070         * modules/array-oset (Depends-on): Remove xalloc.
31071         * modules/avltree-oset (Depends-on): Likewise.
31072         * modules/rbtree-oset (Depends-on): Likewise.
31073         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31074         * tests/test-avltree_oset.c: Likewise.
31075         * tests/test-rbtree_oset.c: Likewise.
31076         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31077         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31078         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31079         * NEWS: Mention the change.
31080
31081 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31082
31083         maint.mk: allow a project to override release-prep commands
31084         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31085         commands into a new rule.
31086         (release-prep): New rule.
31087         (release-prep-hook): New overridable variable.
31088
31089 2009-12-13  Bruno Haible  <bruno@clisp.org>
31090
31091         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31092
31093 2009-12-13  Jim Meyering  <meyering@redhat.com>
31094
31095         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31096         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31097
31098 2009-12-12  Bruno Haible  <bruno@clisp.org>
31099
31100         duplocale: Tweak.
31101         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31102
31103 2009-12-12  Karl Berry  <karl@gnu.org>
31104
31105         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31106
31107 2009-12-12  Bruno Haible  <bruno@clisp.org>
31108
31109         * m4/po.m4: Undo incorrect untabification.
31110
31111 2009-12-12  Bruno Haible  <bruno@clisp.org>
31112
31113         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31114         * modules/c-strtod (Depends-on): Add locale.
31115         * modules/c-strtold (Depends-on): Likewise.
31116
31117 2009-12-12  Bruno Haible  <bruno@clisp.org>
31118
31119         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31120
31121 2009-12-11  Eric Blake  <ebb9@byu.net>
31122
31123         setenv: relax requirement in light of POSIX ruling
31124         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31125         not NULL.
31126         * tests/test-setenv.c (main): Relax test.
31127         * tests/test-unsetenv.c (main): Likewise.
31128         * doc/posix-functions/setenv.texi (setenv): Document this.
31129         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31130
31131 2009-12-11  Bruno Haible  <bruno@clisp.org>
31132
31133         New module 'fd-safer-flag'.
31134         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31135         * lib/dup-safer.c (dup_safer_flag): Remove function.
31136         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31137         * lib/fd-safer.c (fd_safer_flag): Remove function.
31138         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31139         * modules/cloexec (configure.ac): Drop indicator macro.
31140         * modules/fd-safer-flag: New file.
31141         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31142         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31143         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31144
31145 2009-12-11  Bruno Haible  <bruno@clisp.org>
31146
31147         Tests for module 'nl_langinfo'.
31148         * modules/nl_langinfo-tests: New file.
31149         * tests/test-nl_langinfo.sh: New file.
31150         * tests/test-nl_langinfo.c: New file.
31151
31152         New module 'nl_langinfo'.
31153         * lib/nl_langinfo.c: New file.
31154         * m4/nl_langinfo.m4: New file.
31155         * modules/nl_langinfo: New file.
31156         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31157
31158 2009-12-11  Bruno Haible  <bruno@clisp.org>
31159
31160         Tests for module 'langinfo'.
31161         * modules/langinfo-tests: New file.
31162         * tests/test-langinfo.c: New file.
31163
31164         New module 'langinfo'.
31165         * lib/langinfo.in.h: New file.
31166         * m4/langinfo_h.m4: New file.
31167         * modules/langinfo: New file.
31168         * doc/posix-headers/langinfo.texi: Mention the new module.
31169
31170 2009-12-11  Bruno Haible  <bruno@clisp.org>
31171
31172         * lib/config.charset: Untabify.
31173
31174 2009-12-11  Bruno Haible  <bruno@clisp.org>
31175
31176         * modules/unistd-safer (configure.ac): Drop indicator macro.
31177
31178 2009-12-11  Bruno Haible  <bruno@clisp.org>
31179
31180         Move pipe2-safer code to its own file.
31181         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31182         * lib/pipe-safer.c (pipe2_safer): Remove function.
31183         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31184         (Makefile.am): Add it to lib_SOURCES.
31185
31186 2009-12-10  Bruno Haible  <bruno@clisp.org>
31187
31188         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31189
31190 2009-12-10  Bruno Haible  <bruno@clisp.org>
31191
31192         Declare which arguments expect non-NULL values, for GCC and clang.
31193         * build-aux/arg-nonnull.h: New file.
31194         * modules/arg-nonnull: New file.
31195         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31196         (inet_ntop, inet_pton): Use it.
31197         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31198         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31199         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31200         (open, openat): Use it.
31201         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31202         (fnmatch): Use it.
31203         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31204         (getopt, getopt_long, getopt_long_only): Use it.
31205         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31206         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31207         Use it.
31208         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31209         (iconv_open): Use it.
31210         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31211         (strtoimax, strtoumax): Use it.
31212         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31213         (duplocale): Use it.
31214         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31215         (frexp, frexpl): Use it.
31216         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31217         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31218         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31219         (tsearch, tfind, tdelete, twalk): Use it.
31220         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31221         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31222         sigpending): Use it.
31223         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31224         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31225         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31226         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31227         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31228         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31229         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31230         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31231         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31232         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31233         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31234         Use it.
31235         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31236         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31237         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31238         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31239         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31240         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31241         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31242         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31243         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31244         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
31245         strtoull, unsetenv): Use it.
31246         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
31247         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31248         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31249         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31250         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31251         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
31252         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
31253         (strcasecmp, strncasecmp): Use it.
31254         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
31255         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
31256         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
31257         rpl_setsockopt): Use it.
31258         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
31259         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
31260         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
31261         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
31262         (gettimeofday): Use it.
31263         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
31264         (times): Use it.
31265         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
31266         (uname): Use it.
31267         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
31268         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
31269         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
31270         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
31271         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
31272         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
31273         unlinkat, write): Use it.
31274         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
31275         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
31276         * lib/argv-iter.h: Include arg-nonnull.h.
31277         (_ATTRIBUTE_NONNULL_): Remove macro.
31278         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
31279         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
31280         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
31281         optimization.
31282         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
31283         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
31284         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
31285         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
31286         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
31287         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
31288         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
31289         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
31290         * modules/arpa_inet (Depends-on): Add arg-nonnull.
31291         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
31292         * modules/dirent (Depends-on): Add arg-nonnull.
31293         (Makefile.am): Insert arg-nonnull.h into dirent.h.
31294         * modules/fcntl-h (Depends-on): Add arg-nonnull.
31295         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
31296         * modules/fnmatch (Depends-on): Add arg-nonnull.
31297         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
31298         * modules/getopt-posix (Depends-on): Add arg-nonnull.
31299         (Makefile.am): Insert arg-nonnull.h into getopt.h.
31300         * modules/glob (Depends-on): Add arg-nonnull.
31301         (Makefile.am): Insert arg-nonnull.h into glob.h.
31302         * modules/iconv_open (Depends-on): Add arg-nonnull.
31303         (Makefile.am): Insert arg-nonnull.h into iconv.h.
31304         * modules/inttypes (Depends-on): Add arg-nonnull.
31305         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
31306         * modules/locale (Depends-on): Add arg-nonnull.
31307         (Makefile.am): Insert arg-nonnull.h into locale.h.
31308         * modules/math (Depends-on): Add arg-nonnull.
31309         (Makefile.am): Insert arg-nonnull.h into math.h.
31310         * modules/netdb (Depends-on): Add arg-nonnull.
31311         (Makefile.am): Insert arg-nonnull.h into netdb.h.
31312         * modules/search (Depends-on): Add arg-nonnull.
31313         (Makefile.am): Insert arg-nonnull.h into search.h.
31314         * modules/signal (Depends-on): Add arg-nonnull.
31315         (Makefile.am): Insert arg-nonnull.h into signal.h.
31316         * modules/spawn (Depends-on): Add arg-nonnull.
31317         (Makefile.am): Insert arg-nonnull.h into spawn.h.
31318         * modules/stdio (Depends-on): Add arg-nonnull.
31319         (Makefile.am): Insert arg-nonnull.h into stdio.h.
31320         * modules/stdlib (Depends-on): Add arg-nonnull.
31321         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
31322         * modules/string (Depends-on): Add arg-nonnull.
31323         (Makefile.am): Insert arg-nonnull.h into string.h.
31324         * modules/strings (Depends-on): Add arg-nonnull.
31325         (Makefile.am): Insert arg-nonnull.h into strings.h.
31326         * modules/sys_socket (Depends-on): Add arg-nonnull.
31327         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
31328         * modules/sys_stat (Depends-on): Add arg-nonnull.
31329         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
31330         * modules/sys_time (Depends-on): Add arg-nonnull.
31331         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
31332         * modules/sys_times (Depends-on): Add arg-nonnull.
31333         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
31334         * modules/sys_utsname (Depends-on): Add arg-nonnull.
31335         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
31336         * modules/time (Depends-on): Add arg-nonnull.
31337         (Makefile.am): Insert arg-nonnull.h into time.h.
31338         * modules/unistd (Depends-on): Add arg-nonnull.
31339         (Makefile.am): Insert arg-nonnull.h into unistd.h.
31340         * modules/wchar (Depends-on): Add arg-nonnull.
31341         (Makefile.am): Insert arg-nonnull.h into wchar.h.
31342         * modules/argv-iter (Depends-on): Add arg-nonnull.
31343         * tests/test-canonicalize.c (null_ptr): New function.
31344         (main): Use it.
31345         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31346         (main): Use it.
31347         * tests/test-memmem.c (null_ptr): New function.
31348         (main): Use it.
31349         Reported by Jim Meyering.
31350
31351 2009-12-10  Bruno Haible  <bruno@clisp.org>
31352
31353         Use spaces for indentation, not tabs.
31354         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31355         * m4/*.m4: Untabify.
31356         * build-aux/*.h: Untabify.
31357         * tests/**/*.[hc]: Untabify.
31358         * README: New section "Indent with spaces, not TABs", based on
31359         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31360         * NEWS: Mention the change.
31361
31362 2009-12-10  Bruno Haible  <bruno@clisp.org>
31363
31364         pty test: Fix link error.
31365         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31366         test_pty_LDADD.
31367
31368 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31369
31370         * modules/pty: New file.
31371         * modules/pty-tests: New file.
31372         * m4/pty.m4: New file.
31373         * tests/test-pty.c: New file.
31374         * doc/glibc-headers/pty.texi: Modified.
31375         * doc/glibc-functions/forkpty.texi: Modified.
31376         * doc/glibc-functions/openpty.texi: Modified.
31377
31378 2009-12-10  Bruno Haible  <bruno@clisp.org>
31379
31380         Avoid syntax error in C++ mode.
31381         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
31382
31383 2009-12-10  Bruno Haible  <bruno@clisp.org>
31384
31385         Use sed with option -e.
31386         * gnulib-tool (func_version, func_emit_copyright_notice,
31387         func_emit_initmacro_end, func_import, func_create_testdir): Pass
31388         option -e to sed.
31389         * modules/link-warning (Makefile.am): Likewise.
31390
31391 2009-12-10  Jim Meyering  <meyering@redhat.com>
31392
31393         mgetgroups: do not write bytes beyond end of malloc'd buffer
31394         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
31395         username, we call getgroups with a one-element-shorter buffer,
31396         but still told it the length was original, max_n_groups.
31397
31398 2009-12-09  Eric Blake  <ebb9@byu.net>
31399
31400         cloexec: relax license
31401         * modules/cloexec (Maintainer): Add myself.
31402         (License): Use LGPL, not GPL.
31403
31404         link-warning: optimize generation
31405         * modules/link-warning (Makefile.am): Reduce process usage.
31406
31407 2009-12-09  Bruno Haible  <bruno@clisp.org>
31408
31409         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
31410         workaround was added on 2009-11-17.
31411
31412 2009-12-09  Jim Meyering  <meyering@redhat.com>
31413             Bruno Haible  <bruno@clisp.org>
31414
31415         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31416         * modules/link-warning (Makefile.am): Make the comment-removing sed
31417         command more robust in the face of bootstrap-prepended comment lines.
31418
31419 2009-12-09  Bruno Haible  <bruno@clisp.org>
31420
31421         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
31422         most one group.
31423
31424 2009-12-09  Simon Josefsson <simon@josefsson.org>
31425             Bruno Haible  <bruno@clisp.org>
31426
31427         * build-aux/link-warning.h: Add copyright notice.
31428         * modules/link-warning (Makefile.am): Generate link-warning.h from
31429         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
31430         * NEWS: Mention change in link-warning module.
31431         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
31432         * modules/dirent (Makefile.am): Add dependency to dirent.h.
31433         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
31434         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
31435         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
31436         * modules/math (Makefile.am): Add dependency to math.h.
31437         * modules/search (Makefile.am): Add dependency to search.h.
31438         * modules/signal (Makefile.am): Add dependency to signal.h.
31439         * modules/spawn (Makefile.am): Add dependency to spawn.h.
31440         * modules/stdio (Makefile.am): Add dependency to stdio.h.
31441         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
31442         * modules/string (Makefile.am): Add dependency to string.h.
31443         * modules/strings (Makefile.am): Add dependency to strings.h.
31444         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
31445         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
31446         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
31447         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
31448         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
31449         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
31450         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
31451         * modules/unistd (Makefile.am): Add dependency to unistd.h.
31452         * modules/wchar (Makefile.am): Add dependency to wchar.h.
31453
31454 2009-12-09  Bruno Haible  <bruno@clisp.org>
31455
31456         fchdir: Optimize away rpl_fstat when possible.
31457         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
31458         REPLACE_OPEN_DIRECTORY.
31459         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
31460
31461 2009-12-09  Bruno Haible  <bruno@clisp.org>
31462
31463         * lib/fchdir.c: Update comment.
31464
31465 2009-12-09  Bruno Haible  <bruno@clisp.org>
31466
31467         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
31468
31469 2009-12-08  Eric Blake  <ebb9@byu.net>
31470
31471         fchdir: avoid memory leak on re-registration.
31472         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
31473
31474 2009-12-08  Jim Meyering  <meyering@redhat.com>
31475
31476         init.sh: avoid Solaris 10 /bin/sh portability problem
31477         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
31478         sourced script:
31479           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
31480           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
31481           bar
31482         tests/init.sh relied on that, accepting a --set-path=DIR argument,
31483         and two tests used that idiom.
31484         * tests/init.sh: Update suggested usage comments.
31485         (path_prepend_): New function, to be used in place
31486         of the --src-path=DIR option.
31487         (setup_): Move PATH-prepending code into path_prepend_.
31488         * tests/test-pread.sh: Adapt to new usage.
31489         * tests/test-xalloc-die.sh: Likewise.
31490
31491 2009-12-08  Simon Josefsson  <simon@josefsson.org>
31492
31493         * doc/gnulib.texi (Glibc pty.h): Add.
31494         * doc/glibc-functions/forkpty.texi: Add.
31495         * doc/glibc-functions/openpty.texi: Add.
31496         Suggested by Bruno Haible.
31497
31498 2009-12-08  Eric Blake  <ebb9@byu.net>
31499
31500         fchdir: fix logic bugs
31501         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
31502         * tests/test-fchdir.c (main): Enhance test.
31503         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
31504         is in use.
31505
31506         dup2: fix logic bugs
31507         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
31508         REPLACE_DUP2 to decide when rpl_dup2 is needed.
31509         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
31510         exists.
31511         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
31512
31513 2009-12-07  Eric Blake  <ebb9@byu.net>
31514
31515         unlink: fix m4 detection
31516         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
31517
31518         unistd-safer: add unit test
31519         * modules/unistd-safer-tests: New file.
31520         * tests/test-dup-safer.c: Likewise.
31521         * tests/test-cloexec.c (setmode): Avoid compiler warning.
31522         * tests/test-dup2.c (setmode): Likewise.
31523         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
31524
31525         cloexec: preserve text vs. binary across dup_cloexec
31526         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
31527         mode.
31528         * modules/dup2-tests (Depends-on): Add binary-io.
31529         * modules/cloexec-tests (Depends-on): Likewise.
31530         * tests/test-dup2.c (setmode, is_mode): New helpers.
31531         (main): Add tests that translation mode is preserved.
31532         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
31533         Reported by Bruno Haible.
31534
31535         mgetgroups: reduce duplicate listings
31536         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
31537         resulting array.
31538         * tests/test-chown.h (test_chown): Simplify client.
31539         * tests/test-lchown.h (test_lchown): Likewise.
31540
31541 2009-12-06  Bruno Haible  <bruno@clisp.org>
31542
31543         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
31544         value.
31545
31546 2009-12-06  Bruno Haible  <bruno@clisp.org>
31547
31548         * lib/progname.c: Include stdio.h, stdlib.h.
31549         (set_program_name): Reject a NULL argument.
31550
31551 2009-12-05  Eric Blake  <ebb9@byu.net>
31552
31553         pipe2-safer: new module
31554         * modules/pipe2-safer: New file.
31555         * lib/unistd-safer.h (pipe2_safer): New prototype.
31556         * lib/unistd--.h (pipe2): New wrapper.
31557         * lib/pipe-safer.c (pipe2_safer): New function.
31558         * modules/pipe (Depends-on): Add pipe2-safer.
31559         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
31560
31561         stdlib-safer: preserve cloexec flag for mkostemp[s]
31562         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
31563         fd_safer_flag.
31564
31565         unistd-safer: allow preservation of cloexec status via flag
31566         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
31567         prototypes.
31568         * lib/dup-safer.c (dup_safer_flag): New function.
31569         * lib/fd-safer.c (fd_safer_flag): Likewise.
31570         * modules/cloexec (configure.ac): Set witness.
31571
31572         test-dup2: enhance test
31573         * modules/dup2-tests (Depends-on): Add cloexec.
31574         * tests/test-dup2.c (main): Enhance test.
31575
31576         cloexec: add dup_cloexec
31577         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
31578         header and comments.
31579         * lib/cloexec.c (set_cloexec_flag): Add comments.
31580         (dup_cloexec): New function, with mingw implementation borrowed
31581         from...
31582         * lib/w32spawn.h (dup_noinherit): ...here.
31583         * modules/execute (Depends-on): Add cloexec.
31584         * modules/pipe (Depends-on): Likewise.
31585         * modules/cloexec (Depends-on): Add dup2.
31586         * modules/cloexec-tests (Files): New file.
31587         * tests/test-cloexec.c: Likewise.
31588
31589         test-xalloc-die: fix test for mingw
31590         * modules/xalloc-die-tests (Files): Add tests/init.sh.
31591         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
31592         directory and .exe suffix off argv[0] output.
31593
31594         test-fseeko: fix test for mingw
31595         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
31596         than undefining fseek, so test will pass on mingw.
31597
31598 2009-12-05  Bruno Haible  <bruno@clisp.org>
31599
31600         * lib/progname.h (set_program_name): Clarify specification.
31601         * lib/progname.c (set_program_name): Likewise.
31602         Reported by Jim Meyering.
31603
31604 2009-12-05  Jim Meyering  <meyering@redhat.com>
31605
31606         maint.mk: backslash-escape parens in default regexp
31607         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
31608         backslash-escape the literal parentheses.
31609
31610         maint.mk: news-date-check: use grep -E
31611         * top/maint.mk (today): Define a Make variable, not a...
31612         (news-date-check): ...shell variable.
31613         (news-date-regexp): Use the Make variable.
31614         Use grep's -E option.  Change the failing diagnostic to mention
31615         the variable, $(news-date-regexp).
31616
31617 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
31618
31619         maintainer-makefile: allow customization of NEWS entry format
31620         * top/maint.mk (news-date-regexp): New overridable variable.
31621         (news-date-check): Use it.
31622
31623 2009-12-04  Eric Blake  <ebb9@byu.net>
31624
31625         mgetgroups: add xgetgroups, and avoid ENOSYS failures
31626         * lib/mgetgroups.h (xgetgroups): New prototype.
31627         * lib/mgetgroups.c (xgetgroups): New wrapper.
31628         (mgetgroups): Handle ENOSYS.
31629         * modules/mgetgroups (Depends-on): Add realloc.
31630         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
31631
31632         mgetgroups: avoid argument promotion issues with -1
31633         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
31634         for invalid gid_t.
31635         * tests/test-chown.h (getegid, test_chown): Likewise.
31636         * tests/test-lchown.h (getegid, test_lchown): Likewise.
31637
31638 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
31639
31640         exclude: Fix header file problems.
31641         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
31642
31643 2009-12-01  Jim Meyering  <meyering@redhat.com>
31644
31645         fts: fts_open: do not let an empty string cause immediate failure
31646         This is required in support of GNU rm, for which the command
31647         "rm A '' B" must process and remove both A and B, in spite of
31648         the empty string argument.
31649         * lib/fts.c (fts_open): Do not let the presence of an empty string
31650         cause fts_open to fail immediately.  Most fts-using tools must be
31651         able to process all arguments, in order, and can be expected to
31652         diagnose such arguments themselves.
31653
31654 2009-11-30  Eric Blake  <ebb9@byu.net>
31655
31656         utimens: fix compilation error
31657         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
31658         Declare variable at right scope.
31659
31660 2009-11-29  Jim Meyering  <meyering@redhat.com>
31661
31662         bootstrap: handle perl-5.11's changed --version output
31663         * build-aux/bootstrap (get_version): Handle perl separately,
31664         since perl-5.11's --version output is different.
31665
31666 2009-11-28  Jim Meyering  <meyering@redhat.com>
31667
31668         userspec: depend on the inttostr module, too
31669         * modules/userspec (Depends-on): Add inttostr.
31670
31671         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
31672         * lib/userspec.c (parse_with_separator): Do not accept a user ID
31673         number of MAXUID when it evaluates to (uid_t) -1.
31674         Likewise for group ID.  Reported by Matt McCutchen in
31675         <http://savannah.gnu.org/bugs/?28113>
31676
31677         userspec: reformat to use spaces, not TABs
31678         * lib/userspec.c: Expand TABs to spaces.
31679         Add Emacs' "indent-tabs-mode: nil" hint.
31680
31681 2009-11-27  Eric Blake  <ebb9@byu.net>
31682
31683         getopt-gnu: flush out another BSD bug
31684         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
31685         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
31686         flush out BSD bug.
31687         * tests/test-getopt.h (test_getopt): End lists with NULL.
31688         * tests/test-getopt_long.h (test_getopt_long): Likewise.
31689         (test_getopt_long_posix): Enhance test.
31690         * modules/getopt-posix-tests (Depends-on): Add stdbool.
31691         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
31692         getopt-gnu.
31693         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31694         Likewise.
31695
31696 2009-11-27  Simon Josefsson  <simon@josefsson.org>
31697
31698         * modules/idpriv-droptemp-tests (Notice): Fix text.
31699
31700 2009-11-27  Jim Meyering  <meyering@redhat.com>
31701
31702         test-xalloc-die: avoid spurious failure due to libtool argv difference
31703         In a libtool-enabled project, this test would fail due to a difference
31704         in the emitted program name, e.g.,
31705         -test-xalloc-die: memory exhausted
31706         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
31707         Use program to avoid that.
31708         * modules/xalloc-die-tests (Depends-on): Add progname.
31709         * tests/test-xalloc-die.c: Include progname.h".
31710         (program_name): Remove decl.
31711         (main): Call set_program_name.
31712         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
31713
31714 2009-11-26  Richard Jones  <rjones@redhat.com>
31715
31716         w32sock: leave win32 error in place.
31717         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
31718
31719 2009-11-26  Eric Blake  <ebb9@byu.net>
31720
31721         init.sh: suggest to use skip_ and fail_ functions in comments
31722         * tests/init.sh: Add a sentence.
31723
31724 2009-11-25  Bruno Haible  <bruno@clisp.org>
31725
31726         init.sh: add documentation in comments
31727         * tests/init.sh: Add some developer and user documentation.
31728
31729 2009-11-26  Jim Meyering  <meyering@redhat.com>
31730
31731         init.sh: accommodate even those who specify bogus srcdir manually
31732         * tests/init.sh: Normally, srcdir is guaranteed by automake and
31733         configure-time tests to be sanitized, so that there is no need to
31734         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
31735         (with no double quotes) suffices.  However, since tests may be
31736         invoked manually, and since you may explicitly set srcdir to the
31737         name of a directory containing spaces, do quote its uses here.
31738         * tests/test-pread.sh: Likewise.
31739         Suggested by Bruno Haible.
31740
31741         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
31742         * tests/test-pread.sh: Write no data into the pipe, because
31743         test-pread actually reads none.  This avoids a diagnostic,
31744         "bash: echo: write error: Broken pipe", that arises in the unusual
31745         event something is ignoring SIGPIPE, and might be interpreted
31746         as some sort of failure.  Reported by Bruno Haible.
31747
31748 2009-11-25  Jim Meyering  <meyering@redhat.com>
31749
31750         test-pread: cover failure with ESPIPE and EINVAL
31751         * tests/test-pread.c (main): Test for failure, too.
31752         * tests/test-pread.sh: Invoke with stdin on a pipe.
31753         Suggested by Eric Blake.
31754
31755         pread: improvement and fix
31756         * modules/pread (Depends-on): Depend on lseek, for portability to
31757         e.g., mingw.  Suggested by Eric Blake.
31758         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
31759
31760         unistd.in.h: correct declaration of pread
31761         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
31762         Reported by Richard W.M. Jones.
31763
31764         test-pread.sh: distribute the test script
31765         * modules/pread-tests (Files): Include test-pread.sh.
31766
31767         test-pread.sh: clean up
31768         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
31769         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
31770         That is unnecessary, since it's always ".".
31771         Suggestion from Eric Blake.
31772
31773         test-pread.sh: make executable
31774         * tests/test-pread.sh: Set executable bit.
31775         Reported by Eric Blake.
31776
31777         correct typo in test-pread.sh
31778         * tests/test-pread.sh: Add #! line.
31779
31780         test pread
31781         * tests/test-pread.c: New file.
31782         * tests/test-pread.sh: Likewise.
31783         * modules/pread-tests: Likewise.
31784
31785         pread: new module
31786         * modules/pread: New file.
31787         * lib/unistd.in.h (pread): Define/declare.
31788         * lib/pread.c (pread): New file.
31789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
31790         * modules/unistd (Makefile.am): Substitute witnesses.
31791         * doc/posix-functions/pread.texi (pread): Update.
31792         * MODULES.html.sh: Add pread.
31793
31794 2009-11-25  Jim Meyering  <meyering@redhat.com>
31795
31796         tests/init.sh: new file to be used via most *.sh tests
31797         * tests/init.sh: New file.
31798
31799 2009-11-25  Eric Blake  <ebb9@byu.net>
31800
31801         utimens: work around older Linux failure with symlinks
31802         * lib/utimens.c (lutimensat_works_really): New variable.
31803         (fdutimens, lutimens): Use it to manage kernels that support
31804         nanosecond times on files, but not on symlinks.
31805         Reported by OndÅ™ej Vašík.
31806
31807         utimes: fix configure grammar
31808         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
31809
31810 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
31811
31812         regex: Fix fastmap for multibyte character ranges.
31813         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
31814         characters when a multibyte character range is included.
31815
31816 2009-11-22  Andy Wingo  <wingo@pobox.com>
31817
31818         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
31819         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
31820
31821 2009-11-24  Bruno Haible  <bruno@clisp.org>
31822
31823         doc: Most *_l functions exist in MacOS X 10.5.
31824         * doc/posix-functions/duplocale.texi: Update platforms list.
31825         * doc/posix-functions/freelocale.texi: Likewise.
31826         * doc/posix-functions/newlocale.texi: Likewise.
31827         * doc/posix-functions/uselocale.texi: Likewise.
31828         * doc/posix-functions/isalnum_l.texi: Likewise.
31829         * doc/posix-functions/isalpha_l.texi: Likewise.
31830         * doc/posix-functions/isblank_l.texi: Likewise.
31831         * doc/posix-functions/iscntrl_l.texi: Likewise.
31832         * doc/posix-functions/isdigit_l.texi: Likewise.
31833         * doc/posix-functions/isgraph_l.texi: Likewise.
31834         * doc/posix-functions/islower_l.texi: Likewise.
31835         * doc/posix-functions/isprint_l.texi: Likewise.
31836         * doc/posix-functions/ispunct_l.texi: Likewise.
31837         * doc/posix-functions/isspace_l.texi: Likewise.
31838         * doc/posix-functions/isupper_l.texi: Likewise.
31839         * doc/posix-functions/iswalnum_l.texi: Likewise.
31840         * doc/posix-functions/iswalpha_l.texi: Likewise.
31841         * doc/posix-functions/iswblank_l.texi: Likewise.
31842         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31843         * doc/posix-functions/iswctype_l.texi: Likewise.
31844         * doc/posix-functions/iswdigit_l.texi: Likewise.
31845         * doc/posix-functions/iswgraph_l.texi: Likewise.
31846         * doc/posix-functions/iswlower_l.texi: Likewise.
31847         * doc/posix-functions/iswprint_l.texi: Likewise.
31848         * doc/posix-functions/iswpunct_l.texi: Likewise.
31849         * doc/posix-functions/iswspace_l.texi: Likewise.
31850         * doc/posix-functions/iswupper_l.texi: Likewise.
31851         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31852         * doc/posix-functions/isxdigit_l.texi: Likewise.
31853         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
31854         * doc/posix-functions/strcasecmp_l.texi: Likewise.
31855         * doc/posix-functions/strcoll_l.texi: Likewise.
31856         * doc/posix-functions/strfmon_l.texi: Likewise.
31857         * doc/posix-functions/strftime_l.texi: Likewise.
31858         * doc/posix-functions/strncasecmp_l.texi: Likewise.
31859         * doc/posix-functions/strxfrm_l.texi: Likewise.
31860         * doc/posix-functions/tolower_l.texi: Likewise.
31861         * doc/posix-functions/toupper_l.texi: Likewise.
31862         * doc/posix-functions/towctrans_l.texi: Likewise.
31863         * doc/posix-functions/towlower_l.texi: Likewise.
31864         * doc/posix-functions/towupper_l.texi: Likewise.
31865         * doc/posix-functions/wcscoll_l.texi: Likewise.
31866         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31867         * doc/posix-functions/wctrans_l.texi: Likewise.
31868         * doc/posix-functions/wctype_l.texi: Likewise.
31869         * doc/glibc-functions/strptime_l.texi: Likewise.
31870         * doc/glibc-functions/strtod_l.texi: Likewise.
31871         * doc/glibc-functions/strtof_l.texi: Likewise.
31872         * doc/glibc-functions/strtol_l.texi: Likewise.
31873         * doc/glibc-functions/strtold_l.texi: Likewise.
31874         * doc/glibc-functions/strtoll_l.texi: Likewise.
31875         * doc/glibc-functions/strtoul_l.texi: Likewise.
31876         * doc/glibc-functions/strtoull_l.texi: Likewise.
31877         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31878         * doc/glibc-functions/wcstod_l.texi: Likewise.
31879         * doc/glibc-functions/wcstof_l.texi: Likewise.
31880         * doc/glibc-functions/wcstol_l.texi: Likewise.
31881         * doc/glibc-functions/wcstold_l.texi: Likewise.
31882         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31883         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31884         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31885
31886 2009-11-24  Bruno Haible  <bruno@clisp.org>
31887
31888         duplocale: Fix logic bug.
31889         * lib/duplocale.c: Don't include <langinfo.h>.
31890         (_NL_LOCALE_NAME): Remove macro.
31891         (rpl_duplocale): Use setlocale instead of nl_langinfo.
31892         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
31893
31894 2009-11-23  Jim Meyering  <meyering@redhat.com>
31895
31896         test-update-copyright: don't hard-code /usr/bin/perl
31897         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
31898         perl to print the current year.  Gilles Espinasse reported that
31899         the replaced use of perl was hard-coded as /usr/bin/perl.
31900
31901 2009-11-23  Bruno Haible  <bruno@clisp.org>
31902
31903         duplocale: Add support for glibc 2.3.x.
31904         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
31905
31906 2009-11-22  Bruno Haible  <bruno@clisp.org>
31907
31908         vasnprintf: Tiny optimization.
31909         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
31910         MacOS X.
31911
31912 2009-11-22  Bruno Haible  <bruno@clisp.org>
31913
31914         Tests for module 'duplocale'.
31915         * modules/duplocale-tests: New file.
31916         * tests/test-duplocale.c: New file.
31917
31918         New module 'duplocale'.
31919         * m4/duplocale.m4: New file.
31920         * lib/locale.in.h (duplocale): New declaration.
31921         * lib/duplocale.c: New file.
31922         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
31923         gl_LOCALE_H_DEFAULTS): New macros.
31924         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
31925         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
31926         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
31927         REPLACE_DUPLOCALE.
31928         * modules/duplocale: New file.
31929         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
31930
31931 2009-11-22  Bruno Haible  <bruno@clisp.org>
31932
31933         * modules/locale-tests (configure.ac): Test for newlocale function.
31934         * tests/test-locale.c: When the system has extended locale functions,
31935         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
31936
31937         locale: Make locale_t available when possible.
31938         * lib/locale.in.h: Include <xlocale.h> when it exists.
31939         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
31940         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
31941         * modules/locale (Depends-on): Add extensions.
31942         (Makefile.am): Also substitute HAVE_XLOCALE_H.
31943         * doc/posix-headers/locale.texi: Document the problem with locale_t.
31944
31945 2009-11-22  Bruno Haible  <bruno@clisp.org>
31946
31947         Add comments.
31948         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
31949         invocation.
31950         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31951         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31952         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31953
31954 2009-11-22  Bruno Haible  <bruno@clisp.org>
31955
31956         error: account for the possibility of freopen (stdout).
31957         * lib/error.c: Include <unistd.h>.
31958         (flush_stdout): New function, extracted from error and error_at_line.
31959         Determine stdout's fd dynamically.
31960         (error, error_at_line): Invoke flush_stdout.
31961         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
31962         * modules/error (Depends-on): Add unistd.
31963
31964 2009-11-22  Bruno Haible  <bruno@clisp.org>
31965
31966         diffseq: Add comment.
31967         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
31968
31969 2009-11-22  Jim Meyering  <meyering@redhat.com>
31970
31971         c-stack: avoid defining an unused static function
31972         * lib/c-stack.c (find_stack_direction): Do not define this function
31973         when it will not be used.
31974
31975         diffseq: avoid spurious gcc warnings
31976         * lib/diffseq.h (IF_LINT2): Define.
31977         (compareseq): Use it to initialize two members of "part".
31978         This avoids two used-uninitialized warnings.
31979
31980 2009-11-21  Jim Meyering  <meyering@redhat.com>
31981
31982         c-stack: avoid "ignoring return value of `write'" warning
31983         * lib/c-stack.c: Include "ignore-value.h".
31984         (die): Explicitly ignore each write return value.
31985         * modules/c-stack (Depends-on): Add ignore-value.
31986
31987 2009-11-21  Bruno Haible  <bruno@clisp.org>
31988
31989         diffseq: reduce scope of variable 'best'.
31990         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
31991         variable, earlier used for two different purposes.
31992
31993 2009-11-21  Jim Meyering  <meyering@redhat.com>
31994
31995         diffseq: remove useless assignment to "best"
31996         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
31997         assignment.  At that point "best" is already guaranteed to be zero.
31998
31999 2009-11-20  Eric Blake  <ebb9@byu.net>
32000
32001         build: mention ftp redirector in release announcements
32002         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32003         values that used to come from cfg.mk; mention FTP redirect URL.
32004         * build-aux/announce-gen: Mention the mirror list.
32005         Suggested by Karl Berry.
32006
32007         nanosleep: improve port to mingw
32008         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32009         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32010         LIB_NANOSLEEP, but only when needed.
32011         * modules/select (Link): Document LIBSOCKET.
32012         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32013         enough.
32014
32015         nanosleep: work around cygwin bug
32016         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32017         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32018         bug.
32019         (getnow): Delete, not needed.
32020         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32021         LIB_CLOCK_GETTIME.
32022         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32023         clock-time, gettime.
32024         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32025         bug.
32026         * modules/nanosleep-tests: New test.
32027         * tests/test-nanosleep.c: New file.
32028
32029         sleep: work around cygwin bug
32030         * lib/sleep.c (rpl_sleep): Work around the bug.
32031         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32032         (gl_PREREQ_SLEEP): Delete unused macro.
32033         * modules/sleep (Depends-on): Add verify.
32034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32035         * modules/unistd (Makefile.am): Substitute witness.
32036         * lib/unistd.in.h (sleep): Update prototype.
32037         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32038         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32039         * modules/sleep-tests (Depends-on): Check for alarm.
32040
32041 2009-11-20  Jim Meyering  <meyering@redhat.com>
32042
32043         maint.mk: improve sc_prohibit_magic_number_exit
32044         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32045         so it does not match uses like System.exit(1).
32046         Add comments showing how to correct all offenders.
32047
32048 2009-11-19  Eric Blake  <ebb9@byu.net>
32049
32050         xalloc-die-tests: add missing library
32051         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32052
32053         test-xvasprintf: silence compiler warnings
32054         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32055         empty string from gcc.
32056
32057 2009-11-19  Jim Meyering  <meyering@redhat.com>
32058
32059         xfreopen: new module, from coreutils
32060         * modules/xfreopen: New module.
32061         * lib/xfreopen.c: New file.
32062         * lib/xfreopen.h: New file.
32063         * MODULES.html.sh (File stream based Input/Output"): Add it.
32064
32065 2009-11-19  Eric Blake  <ebb9@byu.net>
32066
32067         manywarnings: depend on warnings
32068         * modules/manywarnings (Depends-on): Add warnings.
32069
32070         build: avoid compiler warnings
32071         * lib/select.c (rpl_select): Delete unused variable.
32072         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32073
32074 2009-11-18  Eric Blake  <ebb9@byu.net>
32075
32076         tests: avoid false negative with --with-packager
32077         * tests/test-version-etc.sh: Discard packager information.
32078         * tests/test-argp-version-etc-1.sh: Likewise.
32079         Reported by Mike Frysinger.
32080
32081         utimens: fix regression on Solaris
32082         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32083         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32084         can only change fd timestamps via futimesat.  Instead, use an
32085         additional witness macro to avoid BSD bug.
32086         Reported by Jim Meyering.
32087
32088 2009-11-17  Eric Blake  <ebb9@byu.net>
32089
32090         usleep: use it to simplify tests
32091         * modules/stat-time-tests (Depends-on): Add usleep.
32092         (configure.ac): Drop usleep check.
32093         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32094         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32095         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32096         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32097         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32098         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32099         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32100         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32101         Likewise.
32102         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32103         * tests/test-lchown.h (nap): Likewise.
32104         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32105         * tests/test-stat-time.c (nap): Likewise.
32106         * tests/test-utimens-common.h (nap): Update comments.
32107
32108         usleep: new module
32109         * modules/usleep: New file.
32110         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32111         * lib/usleep.c (usleep): Likewise.
32112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32113         * modules/unistd (Makefile.am): Substitute witnesses.
32114         * lib/unistd.in.h (usleep): Add declaration.
32115         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32116         * MODULES.html.sh (Date and time): Likewise.
32117         * modules/usleep-tests (Depends-on): New test.
32118         * tests/test-usleep.c: New file.
32119
32120         chown: work around OpenBSD bug
32121         * lib/chown.c (rpl_chown): Work around the bug.
32122         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32123         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32124         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32125         * modules/chown (Depends-on): Add stdbool.
32126         * modules/lchown (Depends-on): Likewise.
32127         * doc/posix-functions/chown.texi (chown): Document the bug.
32128         * doc/posix-functions/lchown.texi (lchown): Likewise.
32129         * tests/test-lchown.h (test_chown): Relax test.
32130
32131         mkstemp: avoid conflict with C++ keyword template
32132         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32133         * lib/mkostemp.c (mkostemp): Likewise.
32134         * lib/mkostemps.c (mkostemps): Likewise.
32135         * lib/mkstemp.c (mkstemp): Likewise.
32136         * lib/mkstemps.c (mkstemps): Likewise.
32137
32138         xalloc-die-tests: optimize
32139         * tests/test-xalloc-die.sh: Reduce number of processes.
32140
32141 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32142
32143         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32144         patch from ludo@gnu.org (Ludovic Courtès).
32145
32146 2009-11-17  Jim Meyering  <meyering@redhat.com>
32147
32148         version-etc: use proper license string
32149         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32150         * modules/version-etc-fsf: Likewise.
32151
32152 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32153
32154         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32155         printed to stdout.  Deal with EOL differences.
32156
32157 2009-11-17  Eric Blake  <ebb9@byu.net>
32158
32159         unsetenv: work around Solaris bug
32160         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32161         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32162         Reported by Jim Meyering.
32163
32164         vasnprintf: avoid compiler warnings
32165         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32166         variables.
32167         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32168
32169 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32170
32171         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32172         settings since xalloc-die is no longer the self test,
32173         xalloc-die.sh is.
32174
32175 2009-11-17  Jim Meyering  <meyering@redhat.com>
32176
32177         test-xalloc-die.sh: make the code agree with the commit log
32178         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32179         at the end, just in case you happen to have a test-xalloc-die
32180         program in some other PATH directory.
32181
32182         test-xalloc-die.sh: fix a portability bug
32183         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32184         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32185         Otherwise, argv[0] (as often seen in diagnostics) would be too
32186         system-dependent, sometimes with, and sometimes without the leading "./".
32187
32188         version-etc-fsf: relax license to LGPLv3+
32189         * modules/version-etc-fsf (License): Relax license.
32190
32191 2009-11-16  Eric Blake  <ebb9@byu.net>
32192
32193         xalloc-die-tests: avoid printing null pointer
32194         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32195         shell script.
32196         * tests/test-xalloc-die.c (program_name): Declare.
32197         * tests/test-xalloc-die.sh (tmpfiles): New file.
32198
32199         setenv, unsetenv: work around various bugs
32200         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32201         (setenv) [HAVE_SETENV]: Work around bugs.
32202         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32203         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32204         for bugs.
32205         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32206         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32208         * modules/stdlib (Makefile.am): Update substitutions.
32209         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32210         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32211         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32212         * modules/setenv-tests: New test.
32213         * modules/unsetenv-tests: Likewise.
32214         * tests/test-setenv.c: New file.
32215         * tests/test-unsetenv.c: Likewise.
32216
32217 2009-11-16  Jim Meyering  <meyering@redhat.com>
32218
32219         version-etc: relax license to LGPLv3+
32220         * modules/version-etc (License): Relax license.
32221
32222         better AC_REQUIRE expanded-before-required-warning avoidance
32223         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32224         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32225         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32226         which is no longer needed.
32227
32228 2009-11-16  Eric Blake  <ebb9@byu.net>
32229
32230         test-freading: clean up temporary file
32231         * tests/test-freading.c (main): Remove file on success, and use
32232         ASSERT more liberally.
32233         Reported by Jim Meyering.
32234
32235 2009-11-16  Jim Meyering  <meyering@redhat.com>
32236
32237         avoid new AC_REQUIRE expanded-before-required warnings
32238         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32239         merely using it.
32240         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32241         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32242
32243 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32244
32245         * tests/test-xalloc-die.c: New file.
32246         * modules/xalloc-die-tests: New file.
32247         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
32248         XFAIL_TESTS so it can be appended by modules.
32249
32250 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32251
32252         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
32253         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
32254
32255 2009-11-14  Eric Blake  <ebb9@byu.net>
32256
32257         fnmatch: avoid compiler warning
32258         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
32259         to silence compiler warning about mismatch signedness in ?:.
32260         Reported by Robert Millan.
32261
32262         intprops: add double-inclusion guard
32263         * lib/intprops.h: Allow idempotent includes.
32264         Suggested by Bruce Korb.
32265
32266         openat: detect Solaris fchownat bug
32267         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
32268         penalizing glibc chownat when only lchownat is broken.
32269         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
32270         trailing slash bugs.
32271         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
32272         * modules/openat-tests (Files): Include more files.
32273         (Depends-on): Add mgetgroups, sleep, stat-time.
32274         (configure.ac): Add additional checks.
32275         (Makefile.am): Build new test.
32276         * tests/test-fchownat.c: New file.
32277
32278         lchown: detect Solaris and FreeBSD bug
32279         * lib/lchown.c (rpl_lchown): Work around bug.
32280         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
32281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32282         * modules/unistd (Makefile.am): Populate it.
32283         * lib/unistd.in.h (lchown): Update declaration.
32284         * doc/posix-functions/lchown.texi (lchown): Document the bug.
32285         * modules/lchown-tests: New file.
32286         * tests/test-lchown.h (test_lchown): Likewise.
32287         * tests/test-lchown.c (main): Likewise.
32288
32289         chown: detect Solaris and FreeBSD bug
32290         * lib/chown.c (rpl_chown): Work around bug.
32291         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
32292         (gl_PREREQ_CHOWN): Delete.
32293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32294         * modules/unistd (Makefile.am): Populate it.
32295         * lib/unistd.in.h (chown): Update declaration.
32296         * lib/lchown.c (chown): Update client.
32297         * modules/lchown (Depends-on): Add lstat.
32298         * doc/posix-functions/chown.texi (chown): Document the bug.
32299         * doc/posix-functions/getgroups.texi (getgroups): Document
32300         getgroups pitfall.
32301         * modules/chown-tests: New file.
32302         * tests/test-chown.h (test_chown): Likewise.
32303         * tests/test-chown.c (main): Likewise.
32304
32305 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
32306
32307         gnulib-tool: correctly detect absence of m4 directories
32308         * gnulib-tool: Avoid extra newline on data passed to wc -l.
32309
32310 2009-11-14  Jim Meyering  <meyering@redhat.com>
32311
32312         maint.mk: Prohibit inclusion of "xalloc.h" without use.
32313         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32314
32315 2009-11-14  John W. Eaton  <jwe@gnu.org>
32316
32317         strftime.h: wrap funtion declaration in extern "C" block
32318         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
32319
32320 2009-11-13  Eric Blake  <ebb9@byu.net>
32321
32322         getgroups: avoid compiler warning
32323         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
32324
32325         getgroups: work around FreeBSD bug
32326         * lib/getgroups.c (rpl_getgroups): Work around the bug.
32327         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
32328         * doc/posix-functions/getgroups.texi (getgroups): Document it.
32329         * tests/test-getgroups.c (main): Fix buffer overrun.
32330
32331         getgroups: avoid compilation failure
32332         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
32333         * modules/getgroups (Depends-on): Add stdint.
32334
32335 2009-11-13  Jim Meyering  <meyering@redhat.com>
32336
32337         test-getgroups: avoid compilation failure
32338         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
32339
32340 2009-11-13  Eric Blake  <ebb9@byu.net>
32341
32342         mgetgroups: new module, taken from coreutils
32343         * modules/mgetgroups: New file.
32344         * lib/mgetgroups.h: Likewise.
32345         * lib/mgetgroups.c (mgetgroups): Likewise.
32346         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32347         * MODULES.html.sh (Users and groups): Mention it.
32348
32349         getgroups: don't expose GETGROUPS_T to user
32350         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32351         an element at a time if GETGROUPS_T is wrong size.
32352         * lib/getugroups.h (getugroups): Change signature.
32353         * lib/unistd.in.h (getgroups): Likewise.
32354         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32355         signature needs fixing.
32356         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32357         AC_TYPE_GETGROUPS.
32358         * modules/group-member (Depends-on): Add getgroups.
32359         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32360         (group_member): Rely on getgroups replacement.
32361         * lib/getugroups.c (getugroups): Use gid_t.
32362         * tests/test-getgroups.c (main): Likewise.
32363         * NEWS: Mention the signature change.
32364         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32365         problem with signature.
32366         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32367         GETGROUPS_T is still useful for setgroups.
32368
32369         getgroups, getugroups: provide stubs for mingw
32370         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32371         * lib/getugroups.c (getugroups): Likewise.
32372         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32373         function.  Modernize replacement scheme.
32374         (gl_PREREQ_GETGROUPS): Delete.
32375         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
32376         * modules/getgroups (configure.ac): Declare witness.
32377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32378         * modules/unistd (Depends-on): Substitute witness.
32379         * lib/unistd.in.h (getgroups): Declare replacement.
32380
32381         getgroups: avoid calling exit
32382         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
32383         drop xalloc.
32384         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
32385         dependencies.
32386         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
32387         exiting, in the rare case of malloc failure.
32388
32389         getgroups: fix logic error
32390         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
32391         has more than 20 groups.
32392         * modules/getgroups-tests: New test.
32393         * tests/test-getgroups.c: New file.
32394
32395 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32396
32397         * tests/test-base64.c: Improve.
32398
32399 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32400
32401         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
32402         Blake <ebb9@byu.net>.
32403
32404 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32405
32406         * tests/test-xvasprintf.c: Add %s%s related checks.
32407
32408 2009-11-12  Eric Blake  <ebb9@byu.net>
32409
32410         version-etc: match standards.texi style
32411         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
32412         and use <> only for URLs.
32413
32414 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32415
32416         fts: do not fail on a submount during traversal
32417         * lib/fts.c (fts_build): Read the stat info again after opening
32418         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
32419         Original report at http://bugzilla.redhat.com/501848.
32420
32421 2009-11-12  Jim Meyering  <meyering@redhat.com>
32422
32423         bootstrap: sync from coreutils
32424         * build-aux/bootstrap (bootstrap_epilogue): New function.
32425         Use git_modules_config in one more place.  This make bootstrap's
32426         --gnulib-srcdir option more useful for testing.
32427
32428         bootstrap: generalize autoheader check
32429         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
32430         AC_CONFIG_HEADERS.
32431
32432 2009-11-11  Eric Blake  <ebb9@byu.net>
32433
32434         mkfifoat: use new modules for Solaris and BSD bugs
32435         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
32436         * lib/mkfifoat.c (mknodat): Split...
32437         * lib/mknodat.c (mknodat): ...into new file.
32438         * modules/mkfifoat (Files): Ship new file.
32439         (Depends-on): Add mkfifo, mknod.
32440         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
32441         (Depends-on): Add symlink.
32442         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
32443         redundant with test_mkfifo.h.
32444         (do_mkfifoat, do_mknodat): New helpers.
32445
32446         mknod: new module
32447         * modules/mknod: New file.
32448         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
32449         * lib/mknod.c (mknod): Likewise.
32450         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32451         defaults.
32452         * modules/sys_stat (Makefile.am): Substitute them.
32453         * lib/sys_stat.in.h (mknod): Declare replacement.
32454         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32455         Document it.
32456         * doc/posix-functions/mknod.texi (mknod): Likewise.
32457         * modules/mknod-tests: New test.
32458         * tests/test-mknod.c: Likewise.
32459
32460         mkfifo: new module
32461         * modules/mkfifo: New file.
32462         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
32463         * lib/mkfifo.c (mkfifo): Likewise.
32464         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32465         defaults.
32466         * modules/sys_stat (Makefile.am): Substitute them.
32467         * lib/sys_stat.in.h (mkfifo): Declare replacement.
32468         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32469         Document it.
32470         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
32471         * modules/mkfifo-tests: New test.
32472         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
32473         from test-mkfifoat.c.
32474         * tests/test-mkfifo.c: New file.
32475
32476         readlink: detect FreeBSD bug
32477         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
32478         slash on symlink.
32479         * doc/posix-functions/readlink.texi (readlink): Document the bug.
32480         * tests/test-readlink.h (test_readlink): Enhance test.
32481
32482         symlink: detect FreeBSD bug
32483         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
32484         slash on symlink.
32485         * doc/posix-functions/symlink.texi (symlink): Document the bug.
32486         * tests/test-symlink.h (test_symlink): Enhance test.
32487
32488 2009-11-10  Eric Blake  <ebb9@byu.net>
32489
32490         link: detect FreeBSD bug
32491         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
32492         symlink.
32493         * doc/posix-functions/link.texi (link): Document the bug.
32494         * tests/test-link.h (test_link): Enhance test.
32495         * tests/test-linkat.c (main): Update caller.
32496
32497         unlink, remove: detect FreeBSD bug
32498         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
32499         slash on symlink.
32500         * doc/posix-functions/unlink.texi (unlink): Document the bug.
32501         * doc/posix-functions/remove.texi (remove): Likewise.
32502         * tests/test-unlink.h (test_unlink): Enhance test.
32503         * tests/test-remove.c (main): Likewise.
32504
32505 2009-11-09  Eric Blake  <ebb9@byu.net>
32506
32507         rename: detect FreeBSD bug
32508         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
32509         slash on symlink.
32510         * modules/renameat-tests (Depends-on): Add filenamecat.
32511         * tests/test-rename.h (test_rename): Allow one more errno.
32512         * tests/test-renameat.c (main): Likewise.
32513         * doc/posix-functions/rename.texi (rename): Document the bug.
32514
32515         open: detect FreeBSD bug
32516         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
32517         symlink.
32518         * doc/posix-functions/open.texi (open): Document the bug.
32519         * doc/posix-functions/utimes.texi (utimes): Likewise.
32520         * tests/test-open.h (test_open): Add parameters, and test symlink
32521         handling.
32522         * tests/test-open.c (main): Adjust caller.
32523         * tests/test-fcntl-safer.c (main): Likewise.
32524         * modules/open-tests (Depends-on): Add stdbool, symlink.
32525         * modules/fcntl-safer-tests (Depends-on): Likewise.
32526         * tests/test-openat.c (main): Add test-open tests.
32527
32528         stat: detect FreeBSD bug
32529         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
32530         symlink.
32531         * doc/posix-functions/stat.texi (stat): Document the bug.
32532         * tests/test-stat.h (test_stat_func): Add argument.
32533         * tests/test-stat.c (main): Adjust caller.
32534         * tests/test-fstatat.c (main): Likewise.
32535         * modules/stat-tests (Depends-on): Add stdbool, symlink.
32536         Reported by Jim Meyering.
32537
32538 2009-11-09  James Youngman  <jay@gnu.org>
32539
32540         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
32541         * lib/strftime.c: Correct placement of #include "ignore-value.h".
32542
32543 2009-11-08  Jim Meyering  <meyering@redhat.com>
32544
32545         utimens: remove invalid futimesat call
32546         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
32547         It used the file descriptor of the target file as the DIR_FD
32548         parameter and NULL as the file name.  That caused failure with
32549         errno == EFAULT on FreeBSD-8.0-rc2
32550
32551 2009-11-07  Eric Blake  <ebb9@byu.net>
32552
32553         fflush, freadseek: use fseeko, not fseek
32554         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32555         (clear_ungetc_buffer): Avoid potential problems on large files.
32556         * lib/freadseek.c (freadseek): Likewise.
32557         * modules/freadseek (Depends-on): Add fseeko.
32558         * modules/fseek (configure.ac): Set a witness.
32559         * tests/test-fflush.c (main): Use fseeko.
32560         * tests/test-fpurge.c (fseek): Disable link warning.
32561         * tests/test-freadable.c (fseek): Likewise.
32562         * tests/test-freading.c (fseek): Likewise.
32563         * tests/test-fseeko.c (fseek): Likewise.
32564         * tests/test-ftell.c (fseek): Likewise.
32565         * tests/test-ftello.c (fseek): Likewise.
32566         * tests/test-fwritable.c (fseek): Likewise.
32567         * tests/test-fwriting.c (fseek): Likewise.
32568
32569 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32570
32571         * modules/memchr (Depends-on): Drop getpagesize dependency.
32572
32573 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32574
32575         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
32576         Reported by Ludovic Courtès.
32577         * build-aux/pmccabe2html: Improve example usage.
32578         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
32579
32580 2009-11-06  Jim Meyering  <meyering@redhat.com>
32581
32582         do-release-commit-and-tag: New module.
32583         Automate the release-commit and tag process.
32584         * build-aux/do-release-commit-and-tag: New script, from coreutils.
32585         * modules/do-release-commit-and-tag: New file.
32586         * MODULES.html.sh (Support for maintaining and releasing): Add it.
32587
32588 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32589
32590         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
32591         because test-select.c uses inet_pton.
32592
32593 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32594
32595         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
32596         GETADDRINFO_LIB.  Bump serial number.
32597         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
32598         Suggested by Eric Blake <ebb9@byu.net>.
32599
32600 2009-11-05  Eric Blake  <ebb9@byu.net>
32601
32602         strtod: detect darwin bug
32603         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
32604         Reported by Leo Davis.
32605
32606         freopen-safer: new module
32607         * modules/freopen-safer: New module.
32608         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
32609         * lib/freopen-safer.c (freopen_safer): New file.
32610         * lib/stdio-safer.h (freopen_safer): New declaration.
32611         * lib/stdio--.h (freopen): New override.
32612         * MODULES.html.sh (File stream based Input/Output): Mention it.
32613         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
32614         freopen-safer module.
32615         * doc/posix-functions/stderr.texi (stderr): Likewise.
32616         * doc/posix-functions/stdin.texi (stdin): Likewise.
32617         * doc/posix-functions/stdout.texi (stdout): Likewise.
32618         * modules/freopen-safer-tests: New test.
32619         * tests/test-reopen-safer.c: New file.
32620
32621 2009-11-05  Jim Meyering  <meyering@redhat.com>
32622
32623         maint.mk: Prohibit inclusion of "close-stream.h" without use.
32624         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32625
32626 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32627
32628         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
32629
32630 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32631
32632         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
32633
32634 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32635
32636         Fix link error.
32637         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32638         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32639
32640 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32641
32642         * tests/test-func.c: Also test value of __func__.
32643
32644 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32645
32646         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
32647         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
32648
32649 2009-11-05  Bruno Haible  <bruno@clisp.org>
32650
32651         Fix link error.
32652         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32653         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32654         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
32655
32656 2009-11-05  Bruno Haible  <bruno@clisp.org>
32657
32658         Tests for module 'inet_pton'.
32659         * modules/inet_pton-tests: New file.
32660         * tests/test-inet_pton.c: New file.
32661
32662 2009-11-05  Bruno Haible  <bruno@clisp.org>
32663
32664         Tests for module 'inet_ntop'.
32665         * modules/inet_ntop-tests: New file.
32666         * tests/test-inet_ntop.c: New file.
32667
32668 2009-11-04  Eric Blake  <ebb9@byu.net>
32669
32670         stdlib-safer: wrap all mkstemp variants
32671         * modules/mkostemp (configure.ac): Set witness.
32672         * modules/mkostemps (configure.ac): Likewise.
32673         * modules/mkstemps (configure.ac): Likewise.
32674         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
32675         (mkstemps_safer): Wrap more functions.
32676         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
32677         wrapping.
32678         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
32679         (mkstemps_safer): Implement the wrappers.
32680
32681         mkstemps, mkostemps: new modules
32682         * modules/mkostemps: New module.
32683         * modules/mkstemps: Likewise.
32684         * lib/mkostemps.c (mkostemps): New file.
32685         * lib/mkstemps.c (mkstemps): Likewise.
32686         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
32687         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
32688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
32689         * modules/stdlib (Makefile.am): Substitute them.
32690         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
32691         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
32692         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
32693         * doc/gnulib.texi (Glibc stdlib.h): Include them.
32694         * MODULES.html.sh (File system functions): Mention them.
32695
32696         tempname: resync from glibc
32697         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
32698         same values for __GT_FILE as glibc.  Abort even when assertions
32699         are disabled.
32700         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
32701         match its value otherwise.  Allow idempotent inclusion.
32702         * lib/mkdtemp.c (mkdtemp): Adjust caller.
32703         * lib/mkostemp.c (mkostemp): Likewise.
32704         * lib/mkstemp.c (mkstemp): Likewise.
32705         * lib/tmpfile.c (tmpfile): Likewise.
32706         * NEWS: Document this.
32707
32708         utimens: fix use of futimens on older Linux
32709         * lib/utimens.c (fdutimens): Use updated, rather than original,
32710         timespec to avoid bug in older Linux kernel.
32711         Reported by Simon Josefsson.
32712
32713 2009-11-04  Bruno Haible  <bruno@clisp.org>
32714
32715         Make num_processors more flexible and consistent.
32716         * lib/nproc.h (enum nproc_query): New type.
32717         (num_processors): Add a 'query' argument.
32718         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
32719         (num_processors): Add a 'query' argument. Test the value of the
32720         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
32721         mingw, count the number of CPUs available for the current process.
32722         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
32723         Check for sched_getaffinity and sched_getaffinity_np.
32724         * modules/nproc (Depends-on): Add c-ctype, extensions.
32725         * NEWS: Mention the change.
32726
32727 2009-11-03  Bruno Haible  <bruno@clisp.org>
32728
32729         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
32730
32731 2009-11-03  Jim Meyering  <meyering@redhat.com>
32732
32733         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
32734         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
32735         if it is defined.
32736
32737 2009-11-02  Eric Blake  <ebb9@byu.net>
32738
32739         mktime, timegm: share common declaration
32740         * lib/mktime-internal.h: New file.
32741         * lib/mktime.c: Use it rather than open-coding a declaration.
32742         * lib/timegm.c: Likewise.
32743         * modules/mktime (Files): Ship it.
32744         * modules/timegm (Files): Likewise.
32745         Suggested by Bruno Haible.
32746
32747         test-update-copyright: update test to match script changes
32748         * tests/test-update-copyright.sh: Avoid hard-coding perl
32749         location.  Don't update *.bak created by earlier runs.
32750
32751 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32752             Simon Josefsson  <simon@josefsson.org>
32753             Bruno Haible  <bruno@clisp.org>
32754
32755         Fix link error on Solaris 8.
32756         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
32757         also in libnsl. Define also INET_PTON_LIB.
32758         * modules/inet_pton (Link): New section.
32759
32760 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32761             Bruno Haible  <bruno@clisp.org>
32762
32763         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
32764         * modules/inet_ntop (Link): New section.
32765         Reported by Boyan Kasarov <bkasarov@gmail.com>.
32766
32767 2009-11-02  Eric Blake  <ebb9@byu.net>
32768
32769         maint: avoid compiler warnings in m4 macros
32770         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
32771         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
32772
32773 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32774
32775         * m4/pmccabe2html.m4: Remove file.
32776         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
32777         function.  Change maintainer.
32778         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
32779         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
32780         Courtès).
32781
32782 2009-10-31  Eric Blake  <ebb9@byu.net>
32783
32784         fseeko: fix m4 regression
32785         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
32786         regression from 2009-10-27.
32787         Reported by Ralf Wildenhues.
32788
32789 2009-10-31  Jim Meyering  <meyering@redhat.com>
32790
32791         inttostr: aesthetics and improved (compile-time) safety
32792         Define inttype_is_signed rather than inttype_is_unsigned,
32793         since the sole use is via "#if inttype_is_signed".
32794         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
32795         inttype_is_unsigned.
32796         * lib/offtostr.c (inttype_is_signed): Likewise.
32797         * lib/uinttostr.c (inttype_is_signed): Likewise.
32798         * lib/umaxtostr.c (inttype_is_signed): Likewise.
32799         * lib/inttostr.c (inttostr): Use verify to cross-check the
32800         inttype_is_signed value and the signedness of the actual type.
32801         * modules/inttostr (Depends-on): Add verify.
32802
32803 2009-10-30  Eric Blake  <ebb9@byu.net>
32804
32805         build: avoid compiler warnings
32806         * lib/fchmodat.c (lchmod): Mark unused variables.
32807         * lib/getopt.c (_getopt_initialize): Likewise.
32808         * lib/mktime.c (__mktime_internal): Provide prototype.
32809         * lib/inttostr.c (inttostr): Avoid compiler warning even with
32810         older gcc that do not understand #pragma GCC diagnostic.
32811         * lib/uinttostr.c (inttype_is_unsigned): Define.
32812         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
32813
32814 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32815
32816         stat: fix compilation on AIX
32817         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
32818         only see struct stat64.
32819
32820 2009-10-30  Eric Blake  <ebb9@byu.net>
32821
32822         exclude: make more robust
32823         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
32824         rather than masking a coding bug.
32825         Suggested by Bruno Haible.
32826
32827 2009-10-30  Jim Meyering  <meyering@redhat.com>
32828
32829         perl scripts: remove #!/usr/bin/perl in favor of more portable...
32830         Rather than putting #!/usr/bin/perl on the first line,
32831         start with a variant of what's recommended by "man perlrun" that
32832         invokes the first "perl" program from your shell's search path.
32833         * build-aux/gitlog-to-changelog: Replace #!... as above.
32834         Add a "Local Variables" perl mode setting.
32835         Prompted by a patch from Ludovic Courtès.
32836         Improved by Eric Blake.
32837         * build-aux/useless-if-before-free: Likewise.
32838         * build-aux/announce-gen: Likewise.
32839         * build-aux/update-copyright: Likewise.
32840
32841 2009-10-29  Eric Blake  <ebb9@byu.net>
32842
32843         filenamecat-lgpl: adjust clients
32844         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
32845         filenamecat.
32846         * modules/renameat (Depends-on): Likewise.
32847
32848         filenamecat: split into filenamecat-lgpl
32849         * modules/filenamecat-lgpl: New module.
32850         * modules/filenamecat (Files): Move library-safe files into
32851         filenamecat-lgpl.
32852         (Depends-on): Add filenamecat-lgpl.
32853         (configure.ac): Declare witness.
32854         * lib/filenamecat.h (file_name_concat): Only declare when using
32855         GPL module.
32856         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
32857         Move...
32858         * lib/filenamecat-lgpl.c: ...into new file.
32859         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
32860         (gl_FILE_NAME_CONCAT): Use it.
32861         * MODULES.html.sh (File system functions): Mention new module.
32862
32863         argp: avoid memory leak
32864         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
32865         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
32866         base_name, since the latter malloc()s and can call exit().
32867         Leak introduced 2006-07-03.
32868
32869         dirname-lgpl: adjust clients that don't need full dirname
32870         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
32871         * modules/filenamecat (Depends-on): Likewise.
32872         * modules/linkat (Depends-on): Likewise.
32873         * modules/mkancesdirs (Depends-on): Likewise.
32874         * modules/mkdir (Depends-on): Likewise.
32875         * modules/openat (Depends-on): Likewise.
32876         * modules/savewd (Depends-on): Likewise.
32877         * modules/rename (Depends-on): Likewise.
32878         (License): Relax license.
32879         * modules/mkdir-tests (Depends-on): Drop progname.
32880         (Makefile.am): Delete unneeded LDADD.
32881         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
32882
32883         dirname: split into dirname-lgpl
32884         * modules/dirname-lgpl: New module.
32885         * modules/dirname (Files): Move library-safe files into
32886         dirname-lgpl.
32887         (Depends-on): Add dirname-lgpl.
32888         (configure.ac): Declare witness.
32889         * modules/double-slash-root (License): Relax license.
32890         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
32891         module.
32892         * lib/dirname.c (dir_len, mdir_name): Move...
32893         * lib/dirname-lgpl.c: ...into new file.
32894         * lib/basename.c (last_component, base_len): Move...
32895         * lib/basename-lgpl.c: ...into new file.
32896         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
32897         (gl_DIRNAME): Use it.
32898         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
32899         Mention new module.
32900         * modules/dirname-tests (Depends-on): Add progname.
32901         * tests/test-dirname.c (program_name): Delete.
32902
32903         mkdir: make safe for libraries
32904         * modules/mkdir (Depends-on): Drop xalloc.
32905         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
32906         exit.
32907
32908         tests: avoid some compiler warnings
32909         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
32910         literals.
32911         * tests/test-memchr.c (main): Avoid type mismatch.
32912         * tests/test-arpa_inet.c (main): Avoid unused parameters.
32913         * tests/test-base64.c (main): Likewise.
32914         * tests/test-getdelim.c (main): Likewise.
32915         * tests/test-gethostname.c (main): Likewise.
32916         * tests/test-getline.c (main): Likewise.
32917         * tests/test-netinet_in.c (main): Likewise.
32918         * tests/test-select.c (open_server_socket, main): Likewise.
32919         * tests/test-select-stdin.c (main): Likewise.
32920         * tests/test-sockets.c (main): Likewise.
32921         * tests/test-strsignal.c (main): Likewise.
32922         * tests/test-sys_select.c (main): Likewise.
32923         * tests/test-sys_socket.c (main): Likewise.
32924         * tests/test-u64.c (main): Likewise.
32925         * tests/test-xfprintf-posix.c (main): Likewise.
32926         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
32927
32928         sockets: avoid compiler warning
32929         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
32930
32931         maint: detect usage(1) and other suspicious exits
32932         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
32933
32934 2009-10-29  Jim Meyering  <meyering@redhat.com>
32935
32936         timespec: long-to-int truncation could make timespec_cmp malfunction
32937         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
32938         a multiple of 2^32 nanoseconds as no difference.
32939
32940 2009-10-28  Jim Meyering  <meyering@redhat.com>
32941
32942         fprintftime: wrap macro code argument in "do {...} while(0)"
32943         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
32944         cpy macro must be a statement that can be followed by a semicolon.
32945         Now that the else clause contains a comment and is hence longer
32946         than one line, I require curly braces.  That in turn requires
32947         that we wrap this code block in the standard do...while(0).
32948
32949         fprintftime: remove stray semicolon from previous change
32950         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
32951
32952         fprintftime: avoid a warning about ignored fwrite return value
32953         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
32954         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
32955         that is unsafe.
32956         * modules/fprintftime (Depends-on): Add ignore-value.
32957
32958         exclude: avoid an unwarranted warning
32959         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
32960
32961 2009-10-27  Eric Blake  <ebb9@byu.net>
32962
32963         fseek: avoid compilation failure when fflush is replaced
32964         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
32965         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
32966         module is in use.
32967         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
32968         module is not in use; since REPLACE_FSEEK worked otherwise.
32969         (GNULIB_FTELLO): Likewise for ftell.
32970         Reported by Ian Beckwith and others.
32971
32972 2009-10-27  Bruno Haible  <bruno@clisp.org>
32973
32974         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
32975         Reported by Jim Meyering.
32976
32977 2009-10-27  Jim Meyering  <jim@meyering.net>
32978             Bruno Haible  <bruno@clisp.org>
32979
32980         Avoid warning despite dropping the return value of fwrite.
32981         * lib/unicodeio.c: Include ignore-value.h.
32982         (fwrite_success_callback): Explicitly ignore fwrite's return value.
32983         * modules/unicodeio (Depends-on): Add ignore-value.
32984
32985 2009-10-26  Eric Blake  <ebb9@byu.net>
32986
32987         areadlinkat: fix fallback path
32988         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
32989         pointer and zero.
32990
32991 2009-10-22  Pádraig Brady  <P@draigBrady.com>
32992
32993         Use a better IO block size for modern systems
32994         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
32995         * lib/md2.c: Likewise.
32996         * lib/md4.c: Likewise.
32997         * lib/md5.c: Likewise.
32998         * lib/sha1.c: Likewise.
32999         * lib/sha256.c: Likewise.
33000         * lib/sha512.c: Likewise.
33001
33002 2009-10-22  Eric Blake  <ebb9@byu.net>
33003
33004         tests: avoid several compiler warnings
33005         * tests/test-getcwd.c (main): Avoid buffer underflow.
33006         * tests/test-getdate.c (main): String literals are not safe with
33007         putenv, so use setenv.  Declare unused argument.
33008         * modules/getdate-tests (Depends-on): Add setenv.
33009         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33010         problems with string literals in char *.
33011         * tests/test-hash.c (main): Avoid shadowing declaration.
33012         (insert_new): Treat string literals as char const *.
33013         * tests/test-getopt.h (test_getopt): Likewise.
33014         (getopt_loop): Alter types to minimize casting elsewhere.
33015         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33016         (test_getopt_long_posix): Likewise.
33017         (do_getopt_long): Add wrapper to minimize casting.
33018         * tests/test-atexit.c (clear_temp_file): Use void.
33019         * tests/test-areadlink-with-size.c (main): Declare unused
33020         arguments.
33021         * tests/test-areadlink.c (main): Likewise.
33022         * tests/test-areadlinkat-with-size.c (main): Likewise.
33023         * tests/test-areadlinkat.c (main): Likewise.
33024         * tests/test-canonicalize-lgpl.c (main): Likewise.
33025         * tests/test-canonicalize.c (main): Likewise.
33026         * tests/test-dirent-safer.c (main): Likewise.
33027         * tests/test-dirname.c (main): Likewise.
33028         * tests/test-dup2.c (main): Likewise.
33029         * tests/test-fchdir.c (main): Likewise.
33030         * tests/test-fcntl-h.c (main): Likewise.
33031         * tests/test-fcntl-safer.c (main): Likewise.
33032         * tests/test-fdopendir.c (main): Likewise.
33033         * tests/test-fdutimensat.c (main): Likewise.
33034         * tests/test-fflush.c (main): Likewise.
33035         * tests/test-filenamecat.c (main): Likewise.
33036         * tests/test-filevercmp.c (main): Likewise.
33037         * tests/test-fopen-safer.c (main): Likewise.
33038         * tests/test-fopen.c (main): Likewise.
33039         * tests/test-fpending.c (main): Likewise.
33040         * tests/test-fpurge.c (main): Likewise.
33041         * tests/test-freading.c (main): Likewise.
33042         * tests/test-fstatat.c (main): Likewise.
33043         * tests/test-fsync.c (main): Likewise.
33044         * tests/test-futimens.c (main): Likewise.
33045         * tests/test-getndelim2.c (main): Likewise.
33046         * tests/test-gettimeofday.c (main): Likewise.
33047         * tests/test-getopt.c (main): Likewise.
33048         * tests/test-i-ring.c (main): Likewise.
33049         * tests/test-inttypes.c (main): Likewise.
33050         * tests/test-link.c (main): Likewise.
33051         * tests/test-lstat.c (main): Likewise.
33052         * tests/test-math.c (main): Likewise.
33053         * tests/test-md5.c (main): Likewise.
33054         * tests/test-memchr2.c (main): Likewise.
33055         * tests/test-memrchr.c (main): Likewise.
33056         * tests/test-mkdir.c (main): Likewise.
33057         * tests/test-mkdirat.c (main): Likewise.
33058         * tests/test-mkfifoat.c (main): Likewise.
33059         * tests/test-open.c (main): Likewise.
33060         * tests/test-openat-safer.c (main): Likewise.
33061         * tests/test-openat.c (main): Likewise.
33062         * tests/test-quotearg.c (main): Likewise.
33063         * tests/test-rawmemchr.c (main): Likewise.
33064         * tests/test-readlink.c (main): Likewise.
33065         * tests/test-remove.c (main): Likewise.
33066         * tests/test-rename.c (main): Likewise.
33067         * tests/test-renameat.c (main): Likewise.
33068         * tests/test-rmdir.c (main): Likewise.
33069         * tests/test-sha1.c (main): Likewise.
33070         * tests/test-signal.c (main): Likewise.
33071         * tests/test-sigaction.c (main): Likewise.
33072         * tests/test-stat.c (main): Likewise.
33073         * tests/test-stat-time.c (main): Likewise.
33074         * tests/test-stddef.c (main): Likewise.
33075         * tests/test-stdint.c (main): Likewise.
33076         * tests/test-stdio.c (main): Likewise.
33077         * tests/test-stdlib.c (main): Likewise.
33078         * tests/test-strchrnul.c (main): Likewise.
33079         * tests/test-strerror.c (main): Likewise.
33080         * tests/test-string.c (main): Likewise.
33081         * tests/test-strtod.c (main): Likewise.
33082         * tests/test-strverscmp.c (main): Likewise.
33083         * tests/test-symlink.c (main): Likewise.
33084         * tests/test-symlinkat.c (main): Likewise.
33085         * tests/test-sys_stat.c (main): Likewise.
33086         * tests/test-sys_time.c (main): Likewise.
33087         * tests/test-time.c (main): Likewise.
33088         * tests/test-unistd.c (main): Likewise.
33089         * tests/test-unlink.c (main): Likewise.
33090         * tests/test-unlinkat.c (main): Likewise.
33091         * tests/test-utimens.c (main): Likewise.
33092         * tests/test-utimensat.c (main): Likewise.
33093         * tests/test-version-etc.c (main): Likewise.
33094         * tests/test-wchar.c (main): Likewise.
33095         * tests/test-wctype.c (main): Likewise.
33096         * tests/test-xprintf-posix.c (main): Likewise.
33097         * tests/test-posixtm.c (main): Likewise.
33098         (STREQ): Delete unused macro.
33099         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33100         shadowed variables.
33101         * tests/test-memchr.c (main): Likewise.
33102
33103 2009-10-21  Eric Blake  <ebb9@byu.net>
33104
33105         areadlinkat: avoid failure on older glibc
33106         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33107         rather than mis-comparing 0 against FUNC_RESULT of char*.
33108
33109 2009-10-21  Bruno Haible  <bruno@clisp.org>
33110
33111         * modules/stpncpy (License): Relicense under LGPLv2+.
33112         Reported by David Lutterkort <lutter@redhat.com>.
33113
33114 2009-10-20  Eric Blake  <ebb9@byu.net>
33115
33116         utimensat: work around Solaris 9 bug
33117         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33118         has trailing slash bugs.
33119         * tests/test-lutimens.h (test_lutimens): Enhance test.
33120         * tests/test-utimens.h (test_utimens): Likewise.
33121         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33122         * doc/posix-functions/utimes.texi (utimes): Likewise.
33123         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33124         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33125         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33126         * doc/posix-functions/futimens.texi (futimens): Likewise.
33127
33128         fdutimensat: new module
33129         * modules/fdutimensat: New file.
33130         * lib/fdutimensat.c (fdutimensat): Likewise.
33131         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33132         * MODULES.html.sh (File system functions): Mention module.
33133         * modules/fdutimensat-tests: New test.
33134         * tests/test-fdutimensat.c: Likewise.
33135
33136         doc: regenerate INSTALL
33137         * doc/INSTALL: Reflect recent autoconf update.
33138         * doc/INSTALL.ISO: Likewise.
33139         * doc/INSTALL.UTF-8: Likewise.
33140
33141 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33142
33143         acl: warn if ACL support is not detected
33144         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33145
33146 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33147
33148         * lib/nproc.h: Add extern "C" block for C++.
33149
33150 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33151             Bruno Haible  <bruno@clisp.org>
33152
33153         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33154         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33155         * doc/posix-functions/isalpha.texi: Likewise.
33156         * doc/posix-functions/isblank.texi: Likewise.
33157         * doc/posix-functions/iscntrl.texi: Likewise.
33158         * doc/posix-functions/isdigit.texi: Likewise.
33159         * doc/posix-functions/isgraph.texi: Likewise.
33160         * doc/posix-functions/islower.texi: Likewise.
33161         * doc/posix-functions/isprint.texi: Likewise.
33162         * doc/posix-functions/ispunct.texi: Likewise.
33163         * doc/posix-functions/isspace.texi: Likewise.
33164         * doc/posix-functions/isupper.texi: Likewise.
33165         * doc/posix-functions/isxdigit.texi: Likewise.
33166
33167 2009-10-18  Bruno Haible  <bruno@clisp.org>
33168
33169         Tests for module 'isblank'.
33170         * modules/isblank-tests: New file.
33171         * tests/test-isblank.c: New file.
33172
33173         New module 'isblank'.
33174         * lib/isblank.c: New file.
33175         * m4/isblank.m4: New file.
33176         * modules/isblank: New file.
33177         * doc/posix-functions/isblank.texi: Mention the new module.
33178
33179 2009-10-18  Bruno Haible  <bruno@clisp.org>
33180
33181         New module 'ctype'.
33182         * lib/ctype.in.h: New file.
33183         * m4/ctype.m4: New file.
33184         * modules/ctype: New file.
33185         * doc/posix-headers/ctype.texi: Mention the new module.
33186
33187 2009-10-18  Jim Meyering  <meyering@redhat.com>
33188
33189         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33190         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33191         right after its initialization, rather than farther down.
33192         Keeping these in close proximity makes it easier to ensure
33193         that each such variable is initialized.  E.g.,
33194
33195             LIB_CLOCK_GETTIME=
33196             AC_SUBST([LIB_CLOCK_GETTIME])
33197
33198         This change also increments these serial numbers.
33199         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33200         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33201         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33202
33203 2009-10-18  Bruno Haible  <bruno@clisp.org>
33204
33205         Don't let environment variables perturb build.
33206         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33207         (gl_PREREQ_GETHRXTIME): ... not here.
33208
33209 2009-10-18  Bruno Haible  <bruno@clisp.org>
33210
33211         Avoid symlink attack in localcharset module.
33212         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33213         (O_NOFOLLOW): Define fallback.
33214         (get_charset_aliases): Don't open the file if it is a symbolic link.
33215         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33216         gl_FCNTL_H.
33217         (gl_FCNTL_H): Require it.
33218         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33219         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33220         Reported by Fergal Glynn <fglynn@veracode.com>.
33221
33222 2009-10-18  Bruno Haible  <bruno@clisp.org>
33223
33224         Implement nproc for mingw.
33225         * lib/nproc.c: Include <windows.h>
33226         (num_processors): On native Windows platforms, try GetSystemInfo.
33227
33228 2009-10-18  Bruno Haible  <bruno@clisp.org>
33229
33230         Implement nproc for IRIX.
33231         * lib/nproc.c: Include <sys/sysmp.h>.
33232         (num_processors): On IRIX systems, try sysmp.
33233         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33234
33235 2009-10-18  Bruno Haible  <bruno@clisp.org>
33236
33237         Implement nproc for HP-UX.
33238         * lib/nproc.c: Include <sys/pstat.h>
33239         (num_processors): On HP-UX systems, try pstat_getdynamic.
33240         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33241         pstat_getdynamic.
33242
33243 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33244             Bruno Haible  <bruno@clisp.org>
33245
33246         Implement nproc for NetBSD, OpenBSD.
33247         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
33248         (ARRAY_SIZE): New macro.
33249         (num_processors): On BSD systems, try sysctl of HW_NCPU.
33250         * m4/nproc.m4: New file.
33251         * modules/nproc (Files): Add m4/nproc.m4.
33252         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
33253         (Makefile.am): Instead, augment lib_SOURCES.
33254
33255 2009-10-18  Bruno Haible  <bruno@clisp.org>
33256
33257         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
33258         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
33259         sys/param.h.
33260
33261 2009-10-16  Eric Blake  <ebb9@byu.net>
33262
33263         utimensat: new module
33264         * modules/utimensat: New file.
33265         * lib/utimensat.c (utimensat): Likewise.
33266         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33267         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
33268         so we can work around Linux bugs.
33269         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33270         * modules/sys_stat (Makefile.am): Substitute them.
33271         * lib/sys_stat.in.h (utimensat): Declare it.
33272         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33273         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33274         * modules/utimensat-tests: New test.
33275         * tests/test-utimensat.c: Likewise.
33276
33277         utimens: let lutimens work on non-symlinks
33278         * lib/utimens.c (lutimens): Fall back to utimens rather than
33279         failing with ENOSYS, when file is not a symlink.
33280         (utimens): Reduce redirection.
33281         * tests/test-lutimens.h (test_lutimens): Update test to cover
33282         non-symlinks.
33283         * tests/test-utimens.h (test_utimens): Update test to cover
33284         symlinks.
33285         * tests/test-utimens.c (main): Update caller.
33286
33287         utimens: cache whether utimensat syscall works
33288         * lib/utimens.c (utimensat_works_really): New cache variable.
33289         (fdutimens, lutimens): Use it to avoid failing syscall.
33290
33291         test-stat-time, test-utimens: improve portability
33292         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
33293         ext4 on alpha, and for cygwin.
33294         * tests/test-utimens-common.h: New file.
33295         (nap): Factor delays into single function.
33296         * tests/test-lutimens.h (test_lutimens): Use new header.
33297         * tests/test-futimens.h (test_futimens): Likewise.
33298         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
33299         timestamps to occur from same machine, as was done previously for
33300         test_utimens.
33301         * modules/utimens-tests (Files): Ship new file.
33302         * modules/futimens-tests (Files): Likewise.
33303         Reported in part by Jim Meyering.
33304
33305         sys_stat: sort replacement declarations
33306         * lib/sys_stat.in.h: Sort declarations.
33307         * lib/futimens.c (futimens): Fix typo.
33308
33309 2009-10-15  Jim Meyering  <meyering@redhat.com>
33310
33311         don't let environment settings perturb build
33312         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
33313         could cause a configure-time and/or build-time malfunction.
33314         Typically, a configure-time function-in-library test is performed
33315         via code like this:
33316
33317           LIB_VAR=
33318           AC_SUBST([LIB_VAR])
33319           prefix_saved_LIBS=$LIBS
33320             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
33321                        [test "$ac_cv_search_FUNC" = "none required" ||
33322                         LIB_VAR=$ac_cv_search_FUNC])
33323           LIBS=$prefix_saved_LIBS
33324
33325         However, in each of the files affected by this change, the LIB_VAR=
33326         initialization was omitted.  Thus, when set in the environment, its
33327         value would propagate into generated Makefiles when FUNC is not found
33328         in LIB_NAME.
33329         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
33330         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33331         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33332
33333 2009-10-14  Eric Blake  <ebb9@byu.net>
33334
33335         fchdir: avoid infinite recursion in mingw
33336         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
33337         recursing.
33338
33339         test-stat-time: port to mingw
33340         * tests/test-stat-time.c (force_unlink): Return a value.
33341         (test_ctime) [W32]: Fix compilation error.
33342         (nap): Don't call usleep with too large an argument.  Use
33343         force_unlink.
33344         * doc/pastposix-functions/usleep.texi (usleep): Document the
33345         portability issue.
33346
33347 2009-10-13  Jim Meyering  <meyering@redhat.com>
33348
33349         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33350         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33351         * modules/pipe-filter-ii: Likewise.
33352         * modules/sys_socket-tests: Likewise.
33353         * modules/tsearch-tests: Likewise.
33354         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33355         (check): Depend on it.
33356
33357 2009-10-12  Eric Blake  <ebb9@byu.net>
33358
33359         utimens-tests: port to NFS file systems
33360         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33361         comparisons to avoid spurious failures from timestamp drift
33362         between NFS machines.
33363
33364 2009-10-12  Eric Blake  <ebb9@byu.net>
33365
33366         stat-time-tests: minor cleanups
33367         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33368         * tests/test-stat-time.c (nap): Separate assignment from call.
33369         Suggested by Paolo Bonzini and Bruno Haible.
33370
33371         sys_stat: guarantee struct timespec
33372         * lib/sys_stat.in.h (includes): Always include <time.h>
33373         * modules/sys_stat (Depends-on): Add time.
33374         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
33375         mode_t permission values.
33376         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
33377         get at subsecond timestamps.
33378
33379 2009-10-10  Eric Blake  <ebb9@byu.net>
33380
33381         futimens: new module
33382         * modules/futimens: New file.
33383         * lib/futimens.c (futimens): Likewise.
33384         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
33385         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
33386         we can work around Linux bugs.
33387         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33388         * modules/sys_stat (Makefile.am): Substitute them.
33389         * lib/sys_stat.in.h (futimens): Declare it.
33390         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33391         * doc/posix-functions/futimens.texi (futimens): Likewise.
33392         * modules/futimens-tests: New test.
33393         * tests/test-futimens.c: Likewise.
33394
33395         utimens: introduce fdutimens
33396         * lib/utimens.h (fdutimens): New prototype.
33397         * lib/utimens.c (gl_futimens): Move guts...
33398         (fdutimens): ...to new interface.
33399         * tests/test-utimens.c (do_fdutimens): Use it.
33400
33401         utimens: add UTIME_NOW and UTIME_OMIT support
33402         * lib/utimens.c (validate_timespec, update_timespec): New helper
33403         functions.
33404         (gl_futimens, lutimens): Use them.
33405         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
33406         stdbool, sys_stat.
33407         (Link): Mention resulting library dependency.
33408         * modules/utimecmp (Link): Likewise.
33409         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
33410         (Makefile.am): Pick up library dependency.
33411         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
33412         definition.
33413         * tests/test-sys_stat.c: Test the definitions.
33414         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33415         * NEWS: Document library dependency.
33416
33417         utimecmp: support symlink timestamps
33418         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
33419         hashing when possible.  Use pathconf when available.
33420         (SYSCALL_RESOLUTION): Recognize tighter resolution.
33421         * modules/utimecmp (Depends-on): Add lstat.
33422
33423         utimens: add lutimens interface
33424         * lib/utimens.c (lutimens): New function.
33425         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
33426         * lib/utimens.h (lutimens): Declare new interface.
33427         * tests/test-utimens.c (main): Enhance test.
33428         * tests/test-lutimens.h (test_lutimens): New file.
33429         * modules/utimens-tests (Files): Distribute it.
33430         (Depends-on): Add symlink.
33431         (configure.ac): Check for usleep.
33432
33433         utimens: validate futimens usage
33434         * lib/utimens.c (gl_futimens): Require valid fd up front, using
33435         fewer syscalls on failure later on.  Avoid compiler warning on
33436         mingw.
33437         * modules/utimens (Depends-on): Add dup2.
33438
33439         utimens: add test
33440         * modules/utimens-tests: New test.
33441         * tests/test-utimens.h: New file.
33442         * tests/test-futimens.h: Likewise.
33443         * tests/test-utimens.c: Likewise.
33444
33445         doc: mention timestamp portability issues
33446         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
33447         instead.
33448         * doc/posix-functions/utime.texi (utime): Likewise.
33449         * doc/posix-functions/utimes.texi (utimes): Likewise.
33450         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
33451         instead.
33452         * doc/posix-functions/futimens.texi (futimens): Mention utimens
33453         module.
33454         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33455         Mention weakness with symlink timestamps.
33456         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
33457         to utimensat/futimens instead.
33458         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
33459
33460         test-dup2: enhance test
33461         * tests/test-dup2.c (main): Also check AT_FDCWD.
33462
33463         test-stat-time: avoid more spurious failures
33464         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
33465         xfs; and avoid race if the two timestamps cross quantization edge.
33466
33467         relocatable: prefer 'file system' over 'filesystem'
33468         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
33469         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
33470         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
33471         * doc/relocatable.texi (Enabling Relocatability): Likewise.
33472         * lib/relocatable.c (compute_curr_prefix): Likewise.
33473
33474 2009-10-10  Jim Meyering  <meyering@redhat.com>
33475
33476         stat-time-tests: check for the usleep function
33477         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
33478
33479 2009-10-10  Bruno Haible  <bruno@clisp.org>
33480
33481         * modules/xnanosleep: Put the Link section after the Include section.
33482
33483 2009-10-09  Eric Blake  <ebb9@byu.net>
33484
33485         dup2: work around FreeBSD 6.1 bug
33486         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
33487         * doc/posix-functions/dup2.texi (dup2): Document it.
33488         Reported by Nelson H. F. Beebe and Jim Meyering.
33489
33490         test-stat-time: port to buggy NFS clients
33491         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
33492         (test_ctime): Also skip test if mtime and ctime are skewed.
33493
33494         maint: prefer 'file system' over 'filesystem'
33495         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33496         * doc/posix-functions/lstat.texi (lstat): Likewise.
33497         * lib/file-has-acl.c (file_has_acl): Likewise.
33498         * lib/fwriteerror.c [TEST]: Likewise.
33499         * tests/test-areadlink.h (test_areadlink): Likewise.
33500         * tests/test-areadlinkat-with-size.c (main): Likewise.
33501         * tests/test-areadlinkat.c (main): Likewise.
33502         * tests/test-canonicalize-lgpl.c (main): Likewise.
33503         * tests/test-canonicalize.c (main): Likewise.
33504         * tests/test-fstatat.c (main): Likewise.
33505         * tests/test-linkat.c (main): Likewise.
33506         * tests/test-lstat.h (test_lstat_func): Likewise.
33507         * tests/test-mkdir.h (test_mkdir): Likewise.
33508         * tests/test-readlink.h (test_readlink): Likewise.
33509         * tests/test-remove.c (main): Likewise.
33510         * tests/test-rename.h (test_rename): Likewise.
33511         * tests/test-renameat.c (main): Likewise.
33512         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33513         * tests/test-symlink.h (test_symlink): Likewise.
33514         * tests/test-symlinkat.c (main): Likewise.
33515         * tests/test-unlink.h (test_unlink_func): Likewise.
33516         * tests/test-unlinkat.c (main): Likewise.
33517
33518         maint: make realtime library usage explicit
33519         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
33520         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
33521         * modules/settime (Link): Likewise.
33522         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
33523
33524         test-stat-time: speed up execution
33525         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
33526         warning on mingw.
33527         (nap): New helper function.
33528         (prepare_test): Use it to reduce sleep time.
33529         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
33530         execution.
33531         * modules/stat-time-tests (configure.ac): Check for usleep.
33532
33533 2009-10-09  Jim Meyering  <meyering@redhat.com>
33534
33535         selinux-h: always use getfilecon wrappers
33536         * lib/getfilecon.c: New file.
33537         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
33538         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
33539         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
33540         (fgetfilecon): Provide a stub.
33541         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
33542         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
33543         file unconditionally.
33544         When <selinux/selinux.h> is found, arrange to use wrappers.
33545         * modules/selinux-h (Files): Add getfilecon.c.
33546         (Makefile.am): Substitute include-next-related bits
33547         into the now-always-generated selinux/selinux.h file.
33548         * doc/glibc-functions/lgetfilecon.texi: New file.
33549         * doc/glibc-functions/fgetfilecon.texi: New file.
33550         * doc/glibc-functions/getfilecon.texi: New file.
33551         * doc/glibc-functions/getfilecon-desc.texi: New file.
33552         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
33553         which to pull in the new files.
33554         * MODULES.html.sh (Misc): Add selinux-h.
33555
33556 2009-10-08  Jim Meyering  <meyering@redhat.com>
33557
33558         unistd: fix comment typo
33559         * lib/unistd.in.h (euidaccess): Fix a comment typo.
33560
33561 2009-10-08  Eric Blake  <ebb9@byu.net>
33562
33563         areadlink: use SIZE_MAX consistently
33564         * modules/areadlink (Depends-on): Add stdint.
33565         * modules/areadlink-with-size (Depends-on): Likewise.
33566         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
33567         gives NULL; drop sys/types, since unistd gives size_t; and add
33568         stdint for SIZE_MAX.
33569         (SIZE_MAX): Rely on headers.
33570         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
33571         and add stdint.
33572         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
33573         (SIZE_MAX): Likewise.
33574         (INITIAL_BUF_SIZE): Turn into enum.
33575         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
33576
33577 2009-10-08  Jim Meyering  <meyering@redhat.com>
33578
33579         areadlinkat: avoid compilation failure
33580         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
33581         Fix typo in comment.
33582
33583 2009-10-07  Eric Blake  <ebb9@byu.net>
33584
33585         areadlinkat-with-size: new module
33586         * modules/areadlinkat-with-size: New module.
33587         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
33588         * lib/areadlink.h (areadlinkat): Declare it.
33589         * MODULES.html.sh (File system functions): Mention it.
33590         * modules/areadlinkat-with-size-tests: New test.
33591         * tests/test-areadlinkat-with-size.c: New file.
33592
33593         xreadlinkat: new module
33594         * modules/xreadlinkat: New module.
33595         * lib/xreadlinkat.c (xreadlinkat): New file.
33596         * lib/xreadlink.h (xreadlinkat): Declare it.
33597         * MODULES.html.sh (File system functions): Mention it.
33598
33599         areadlinkat: new module
33600         * lib/at-func.c (FUNC_FAIL): New define.
33601         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
33602         * modules/areadlinkat: New module.
33603         * lib/linkat.c (areadlinkat): Move...
33604         * lib/areadlinkat.c (areadlinkat): ...to new file.
33605         * lib/areadlink.h (areadlinkat): Declare it.
33606         * modules/linkat (Depends-on): Add areadlinkat.
33607         * MODULES.html.sh (File system functions): Mention it.
33608         * modules/areadlinkat-tests: New test.
33609         * tests/test-areadlinkat.c: New file.
33610
33611         areadlink, areadlink-with-size: add tests
33612         * modules/areadlink-tests: New test.
33613         * modules/areadlink-with-size-tests: Likewise.
33614         * tests/test-areadlink.h: New file.
33615         * tests/test-areadlink.c: Likewise.
33616         * tests/test-areadlink-with-size.c: Likewise.
33617
33618         maint: minor cleanups
33619         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
33620         _UNUSED_PARAMETER_ instead.
33621         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
33622         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
33623         * modules/linkat-tests (Files): Distribute test-link.h.
33624
33625         openat, utimens: whitespace cleanup
33626         * lib/openat.c: Prefer space throughout, rather than mix of 8
33627         spaces vs. tabs.
33628         * lib/at-func.c: Likewise.
33629         * lib/utimens.c: Likewise.
33630
33631         openat: avoid using wrong fd
33632         * lib/openat.c (openat_permissive): Reject user's fd if saving the
33633         working directory chooses same fd.
33634         * lib/at-func.c (AT_FUNC_NAME): Likewise.
33635
33636         mkdir, mkdirat: fix cygwin 1.5.x bug
33637         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
33638         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
33639         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
33640         bug.
33641         (gl_PREREQ_MKDIR): Delete unused macro.
33642         * modules/mkdir (Files): Track file rename.
33643         (configure.ac): Update macro name.
33644         * modules/openat (Depends-on): Add mkdir.
33645         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
33646
33647         mkdir, mkdirat: add tests
33648         * modules/mkdir-tests: New test.
33649         * tests/test-mkdir.h: New file.
33650         * tests/test-mkdir.c: Likewise.
33651         * tests/test-mkdirat.c: Likewise.
33652         * modules/openat-tests (Files): Add new files.
33653         (Makefile.am): Run new test.
33654
33655 2009-10-06  Eric Blake  <ebb9@byu.net>
33656
33657         doc: tweak *at function documentation
33658         * doc/posix-functions/faccessat.texi (faccessat): Mention
33659         known issue with replacement.
33660         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
33661         * doc/posix-functions/linkat.texi (linkat): Likewise.
33662         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33663         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33664         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33665         * doc/posix-functions/renameat.texi (renameat): Likewise.
33666         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33667
33668         openat: fix GNU/Hurd bug in unlinkat
33669         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
33670         broken.
33671         * doc/posix-functions/unlink.texi (unlink): Document this.
33672         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
33673
33674         fdopendir: fix GNU/Hurd bug
33675         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
33676         allowing non-directory fds.
33677         * lib/fdopendir.c (rpl_fdopendir): Work around it.
33678         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33679         * modules/dirent (Makefile.am): Substitute it.
33680         * lib/dirent.in.h (fdopendir): Declare replacement.
33681         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
33682         * tests/test-fdopendir.c (main): Test something other than
33683         /dev/null, since on Hurd that behaves like a directory.
33684
33685         test-symlink: port to GNU/Hurd
33686         * tests/test-symlink.h (test_symlink): Relax expected errno.
33687
33688         doc: tweak more cygwin information
33689         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
33690         now compatible with glibc.
33691         * doc/posix-functions/getopt.texi (getopt): Likewise.
33692
33693         getopt-gnu: add another test
33694         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
33695         guarantee behavior relied on by m4.
33696         * tests/test-getopt.c (main): Use it.
33697         * modules/getopt-posix-tests (Depends-on): Add setenv.
33698         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
33699
33700         getopt: fix compilation on darwin
33701         * lib/getopt.in.h (includes): Leave breadcrumbs during system
33702         include.
33703         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
33704         Reported by Ludovic Courtès.
33705
33706 2009-10-06  Bruno Haible  <bruno@clisp.org>
33707
33708         * modules/size_max (Description): Discourage its use.
33709         Reported by Simon Josefsson.
33710
33711 2009-10-06  Jim Meyering  <meyering@redhat.com>
33712
33713         linkat: avoid compilation failure
33714         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
33715
33716 2009-10-05  Eric Blake  <ebb9@byu.net>
33717
33718         linkat: support Linux 2.6.17
33719         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
33720         linkat on Linux, but allow cache variable override.
33721         * lib/linkat.c (rpl_linkat): Define override.
33722         * modules/linkat (Depends-on): Add symlinkat.
33723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
33724         * modules/unistd (Makefile.am): Substitute it.
33725         * lib/unistd.in.h (linkat): Declare replacement.
33726         Reported by Pádraig Brady.
33727
33728         quotearg: port test to systems with C.UTF-8 locale
33729         * tests/test-quotearg.c (struct result_strings): Add another
33730         member, differentiating between C.ASCII and C.UTF-8 handling.
33731         (compare_strings): Add parameter.
33732         (main): Adjust all callers.
33733
33734         getopt: avoid clash with FreeBSD _getopt_internal
33735         * lib/getopt.in.h (_getopt_internal): Override the name.
33736         * lib/getopt_int.h (includes): Pick up any overrides.
33737         Reported by Reuben Thomas.
33738
33739         hash: allow C89 compilation
33740         * lib/hash.c (check_tuning): Move declaration before statement.
33741         Reported by Reuben Thomas.
33742
33743 2009-10-05  Karl Berry  <karl@gnu.org>
33744
33745         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
33746
33747 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
33748             Bruno Haible  <bruno@clisp.org>
33749
33750         * lib/uname.c (uname): Use a table-driven algorithm to compute
33751         Windows NT versions.
33752
33753 2009-10-04  Bruno Haible  <bruno@clisp.org>
33754
33755         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
33756         program_invocation_short_name.
33757         * modules/progname (configure.ac): Test for presence of
33758         program_invocation_short_name.
33759         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33760
33761 2009-10-04  Bruno Haible  <bruno@clisp.org>
33762
33763         * lib/progname.c (set_program_name): Fix comment.
33764         Reported by Jim Meyering.
33765
33766 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33767             Bruno Haible  <bruno@clisp.org>
33768
33769         * lib/uname.c: Include <string.h>.
33770         (uname): Do only one call to GetVersionEx in the common case.
33771
33772 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33773             Bruno Haible  <bruno@clisp.org>
33774
33775         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
33776         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
33777         (uname): Add support for Windows CE and various non-x86 CPU types.
33778
33779 2009-10-03  Bruno Haible  <bruno@clisp.org>
33780
33781         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
33782         invocation to tests/configure.ac.
33783         Reported by Ian Beckwith <ianb@erislabs.net>.
33784
33785 2009-10-02  Eric Blake  <ebb9@byu.net>
33786
33787         fchdir: avoid compiler warning
33788         * lib/fchdir.c (canonicalize_file_name)
33789         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
33790
33791         test-open: support mingw errno values
33792         * tests/test-open.h (test_open): Relax test.
33793         * tests/test-fopen.h (test_fopen): Likewise.
33794         * tests/test-openat-safer.c (main): Likewise.
33795
33796         open: fix opening directory on mingw
33797         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
33798
33799         test-open: on GNU/Hurd, /dev/null is a directory
33800         * tests/test-fopen.h (main): Rename...
33801         (test_fopen): ...to this.  Use a guaranteed non-directory when
33802         confirming open behavior on trailing slash.
33803         * tests/test-openat-safer.c (main): Likewise.
33804         * tests/test-open.h (main): Likewise....
33805         (test_open): ...to this.
33806         * tests/test-fopen.c (main): Adjust caller.
33807         * tests/test-fopen-safer.c (main): Likewise.
33808         * tests/test-open.c (main): Likewise.
33809         * tests/test-fcntl-safer.c (main): Likewise.
33810         Reported by Samuel Thibault.
33811
33812         rename, fchdir: don't ignore chdir failure
33813         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
33814         * lib/rename.c (rpl_rename) [W32]: Likewise.
33815         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
33816         an empty destination directory if source cannot be renamed,
33817         although there is still possibility for failure.
33818         * doc/posix-functions/rename.texi (rename): Document the race.
33819         Reported by Jim Meyering.
33820
33821         maint: cleanup whitespace in recent commits
33822         * lib/rename.c (rpl_rename): Remove tabs.
33823         * tests/test-link.h (test_link): Likewise.
33824         * lib/fchdir.c (get_name): Likewise.
33825         Reported by Jim Meyering.
33826
33827 2009-10-02  Ben Pfaff  <blp@gnu.org>
33828
33829         relocatable-prog-wrapper: Add missing dependency on
33830         double-slash-root.
33831         * modules/relocatable-prog-wrapper: Add dependency.
33832         Reported by Ian Beckwith <ianb@erislabs.net>.
33833
33834 2009-10-02  Eric Blake  <ebb9@byu.net>
33835
33836         renameat: fix Solaris bugs
33837         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
33838         needed fixing.
33839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
33840         * modules/stdio (Makefile.am): Substitute it.
33841         * lib/stdio.in.h (renameat): Declare replacement.
33842         * lib/renameat.c (rpl_renameat): Implement fix.
33843
33844         renameat: new module
33845         * modules/renameat: New file.
33846         * lib/renameat.c (renameat): Likewise.
33847         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
33848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33849         * modules/stdio (Makefile.am): Substitute them.
33850         * lib/stdio.in.h (renameat): Declare it.
33851         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33852         * doc/posix-functions/renameat.texi (renameat): Likewise.
33853         * modules/renameat-tests: New test.
33854         * tests/test-renameat.c: Likewise.
33855
33856         rename: fix mingw bugs
33857         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
33858         directory overwrite bugs.
33859
33860         rename: fix another cygwin 1.5 bug
33861         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
33862         checks.
33863         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
33864         unnecessary cygwin workarounds.  Also work around bug with moving
33865         full directory onto an empty one.
33866         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
33867
33868         rename-dest-slash: merge into rename module
33869         * modules/rename-dest-slash (Status): Mark obsolete.
33870         (Depends-on): Add rename.
33871         (Files): Let rename do it all.
33872         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
33873         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
33874         * m4/rename-dest-slash.m4: ...so this file can be deleted.
33875         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
33876         * lib/rename.c (rpl_rename): Update comments.
33877
33878         rename: fix cygwin 1.5.x bugs
33879         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
33880         * lib/rename.c (rpl_rename): Work around them.
33881         * modules/rename (Depends-on): Add same-inode.
33882
33883         rename: fix Solaris 10 bug
33884         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33885         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
33886         was the only bug.
33887
33888         rename: fix Solaris 9 bug
33889         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
33890         on non-directory.  Avoid calling exit.
33891         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
33892         strdup.
33893         * modules/rename-tests (Depends-on): Drop lstat.
33894         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33895         (gl_PREREQ_RENAME): Delete unused macro.
33896
33897         rename-dest-slash: fix NetBSD bug
33898         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
33899         links.
33900         * modules/rename-dest-slash (Depends-on): Add same-inode.
33901
33902         rename-tests: new test, exposes several platform bugs
33903         * modules/rename-tests: New file.
33904         * tests/test-rename.h: Likewise.
33905         * tests/test-rename.c: Likewise.
33906         * doc/posix-functions/rename.texi (rename): Improve documentation,
33907         including bugs that will eventually be fixed in gnulib.
33908
33909 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
33910
33911         * lib/uname.c: Include <stdlib.h>
33912         (uname): Assume version info is available.
33913
33914 2009-10-02  Jim Meyering  <meyering@redhat.com>
33915
33916         gnu-web-doc-update: correct --help output
33917         * build-aux/gnu-web-doc-update: Make --help output relevant.
33918
33919         gnu-web-doc-update: add standard options
33920         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
33921
33922         gnu-web-doc-update: New module.
33923         Use this script to automatically update the on-line web documentation
33924         for your GNU project at http://www.gnu.org/software/$pkg/manual/
33925         * modules/gnu-web-doc-update: New file, from coreutils.
33926         * build-aux/gnu-web-doc-update: New script.
33927
33928 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
33929
33930         link: LoadLibrary is not needed.
33931         * lib/link.c: Use GetModuleHandle.
33932
33933 2009-10-01  Eric Blake  <ebb9@byu.net>
33934
33935         getopt: bump serial number
33936         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
33937         change.
33938
33939         tests: tighten link, rmdir, and remove tests
33940         * tests/test-link.h (includes): No need to use <config.h> here.
33941         Clean up if directory hard link was created, otherwise test for
33942         trailing '.'.
33943         * tests/test-linkat.c (main): Simplify.
33944         * tests/test-remove.c (main): Enhance test for trailing '.'.
33945         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33946
33947 2009-10-01  Jim Meyering  <meyering@redhat.com>
33948
33949         maint.mk: requiring "make major" was annoying, for a "minor" release.
33950         What is intended is "stable", to contrast with alpha and beta,
33951         so require "make stable", not "make major".
33952         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
33953         (get_tool_versions): Likewise.
33954         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
33955
33956 2009-09-30  Ben Pfaff  <blp@gnu.org>
33957
33958         Fix broken build of replacement for Windows tmpfile().
33959         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
33960         flags argument added along with the 'mkostemp' module.
33961
33962 2009-09-28  Bruno Haible  <bruno@clisp.org>
33963
33964         Avoid identifier clash with POSIX function 'remove' defined as a macro.
33965         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
33966         to 'remove_elt'.
33967         (gl_list_remove): Update.
33968         * lib/gl_list.c (gl_list_remove): Update.
33969         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
33970         to 'remove_elt'.
33971         (gl_oset_remove): Update.
33972         * lib/gl_list.c (gl_oset_remove): Update.
33973         Reported by Eric Blake.
33974
33975 2009-09-28  Eric Blake  <ebb9@byu.net>
33976
33977         doc: mention yet more cygwin 1.7 status
33978         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
33979         cygwin.
33980         * doc/glibc-functions/execvpe.texi (execvpe): New file.
33981         * doc/gnulib.texi (Glibc unistd.h): Mention it.
33982
33983         argp: fix test failure
33984         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
33985         that are not upper-case.  Pass correct range to tolower.
33986
33987 2009-09-27  Jim Meyering  <meyering@redhat.com>
33988
33989         test-yesno: work around sparc-dash here-document infelicity
33990         Without this change, the literal \177 byte in a here document
33991         would make dash 0.5.5.1-3 access uninitialized memory.
33992         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
33993         Instead, use a marker, "@", and filter through tr to create the desired
33994         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
33995
33996 2009-09-27  Bruno Haible  <bruno@clisp.org>
33997
33998         Disable untested support for new flavours of ACLs on AIX.
33999         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34000         progress.
34001         * lib/set-mode-acl.c (qset_acl): Likewise.
34002
34003 2008-12-07  Bruno Haible  <bruno@clisp.org>
34004
34005         Add support for new flavours of ACLs on AIX. (Untested.)
34006         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34007         (file_has_acl): Add support for newer AIX.
34008         * lib/set-mode-acl.c (qset_acl): Likewise.
34009         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34010         Rainer Tammer <tammer@tammer.net>.
34011
34012 2009-09-26  Eric Blake  <ebb9@byu.net>
34013
34014         argp: fix compilation of getopt
34015         * lib/getopt.in.h (includes): Use different guard than glibc.
34016         Reported by Sergey Poznyakoff.
34017
34018         doc: mention more cygwin 1.7 status
34019         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34020         bug.
34021         * doc/posix-functions/execl.texi (execl): Likewise.
34022         * doc/posix-functions/execle.texi (execle): Likewise.
34023         * doc/posix-functions/execlp.texi (execlp): Likewise.
34024         * doc/posix-functions/execv.texi (execv): Likewise.
34025         * doc/posix-functions/execve.texi (execve): Likewise.
34026         * doc/posix-functions/execvp.texi (execvp): Likewise.
34027         * doc/glibc-functions/canonicalize_file_name.texi
34028         (canonicalize_file_name): Cygwin 1.7 now provides this.
34029         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34030         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34031         on AT_SYMLINK_NOFOLLOW.
34032
34033 2009-09-24  Eric Blake  <ebb9@byu.net>
34034
34035         test-linkat: make test more robust
34036         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34037
34038         getopt: fix inclusion guards for cygwin
34039         * modules/getopt-posix (Depends-on): Add include-next.
34040         (Makefile.am): Substitute more items in replacement header.
34041         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34042         <getopt.h>.
34043         * lib/getopt.in.h (includes): Use split inclusion guard, and
34044         prefer <getopt.h> over include <unistd.h> when one is present.
34045         (option): Also override name of 'struct option'.
34046
34047         same-inode: revert prior change; it is not yet ready
34048         * NEWS: Undo mention of this change.
34049         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34050         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34051         * lib/cycle-check.c (cycle_check): Likewise.
34052         * lib/same.c (same_name): Likewise.
34053         * lib/at-func2.c (at_func2): Likewise.
34054
34055 2009-09-23  Eric Blake  <ebb9@byu.net>
34056
34057         linkat: new module
34058         * modules/linkat: New file.
34059         * lib/at-func2.c (at_func2): Likewise.
34060         * lib/linkat.c (linkat): Likewise.
34061         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34062         * lib/openat-priv.h (at_func2): Add declaration.
34063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34064         * modules/unistd (Makefile.am): Substitute them.
34065         * lib/unistd.in.h (linkat): Declare it.
34066         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34067         * doc/posix-functions/linkat.texi (linkat): Likewise.
34068         * doc/posix-functions/link.texi (link): Tweak wording.
34069         * tests/test-link.c (main): Move guts...
34070         * tests/test-link.h (test_link): ...into new file.
34071         * modules/linkat-tests: New test.
34072         * tests/test-linkat.c: Likewise.
34073         * modules/link-tests (Files): Ship new file.
34074         (Depends-on): Add stdbool.
34075
34076         dirname: add library-safe mdir_name
34077         * lib/dirname.h (mdir_name): New prototype.
34078         * lib/dirname.c (dir_name): Move guts...
34079         (mdir_name): ...to new function that avoids xalloc_die.
34080
34081         fchdir: another mingw fix
34082         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34083         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34084         on mingw (where it has not yet been ported), and make it optional
34085         elsewhere.
34086         (_gl_register_fd): Use it.
34087
34088         same-inode: make SAME_INODE tri-state, to port to mingw
34089         * NEWS: Mention this change.
34090         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34091         st_ino always being 0.
34092         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34093         * lib/cycle-check.c (cycle_check): Likewise.
34094         * lib/same.c (same_name): Likewise.
34095
34096         lstat: avoid mingw compilation error
34097         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34098         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34099         lstat ourselves.
34100         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34101         was adequate.
34102         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34103         the checks for lstat.
34104         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34105
34106         link: fix test failure on Solaris 9
34107         * lib/link.c (rpl_link): Don't assume link will catch bogus
34108         trailing slash on source.
34109
34110         test-symlinkat: enhance test
34111         * tests/test-readlink.c (main): Move guts...
34112         * tests/test-readlink.h (test_readlink): ...into new file.
34113         * tests/test-symlink.c (main): Move guts...
34114         * tests/test-symlink.h (test_symlink): ...into new file.
34115         * tests/test-symlinkat.c (main): Use new files for further
34116         coverage.
34117         (do_symlink, do_readlink): New helper functions.
34118         * modules/symlink-tests (Files): Ship new file.
34119         (Depends-on): Add stdbool.
34120         * modules/readlink-tests (Files): Ship new file.
34121         (Depends-on): Add stdbool.
34122         * modules/symlinkat-tests (Files): Use new files.
34123
34124 2009-09-23  Eric Blake  <ebb9@byu.net>
34125
34126         readlink: document portability issue with symlink length
34127         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34128         systems have bogus st_size on symlinks, and mention the
34129         areadlink-with-size module.
34130         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34131         * doc/posix-functions/readlink.texi (readlink): Mention the
34132         areadlink module, and ERANGE failure.
34133         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34134         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34135
34136         readlink: fix Solaris 9 bug with trailing slash
34137         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34138         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34139         * doc/posix-functions/readlink.texi (readlink): Document this.
34140         * modules/readlink-tests: New test.
34141         * tests/test-readlink.c: Likewise.
34142
34143         readlink: fix cygwin 1.5.x bug with return type
34144         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34145         * lib/unistd.in.h (readlink): Use ssize_t.
34146         * lib/readlink.c (readlink): Likewise.
34147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34148         * modules/unistd (Makefile.am): Substitute it.
34149         * lib/unistd.in.h (readlink): Declare replacement.
34150         * doc/posix-functions/readlink.texi (readlink): Document this.
34151
34152         symlink: use throughout gnulib
34153         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34154         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34155         symlink is not used.
34156         * modules/symlinkat (Depends-on): Add symlink.
34157         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34158         * modules/canonicalize-tests (Depends-on): Likewise.
34159         * modules/lstat-tests (Depends-on): Likewise.
34160         * modules/openat-tests (Depends-on): Likewise.
34161         * modules/remove-tests (Depends-on): Likewise.
34162         * modules/rmdir-tests (Depends-on): Likewise.
34163         * modules/unlink-tests (Depends-on): Likewise.
34164         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34165         * tests/test-canonicalize.c (symlink): Likewise.
34166         * tests/test-fstatat.c (symlink): Likewise.
34167         * tests/test-lstat.c (symlink): Likewise.
34168         * tests/test-remove.c (symlink): Likewise.
34169         * tests/test-rmdir.c (symlink): Likewise.
34170         * tests/test-unlink.c (symlink): Likewise.
34171         * tests/test-unlinkat.c (symlink): Likewise.
34172
34173         symlink: new module, for Solaris 9 bug
34174         * modules/symlink: New file.
34175         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34176         * lib/symlink.c: Likewise.
34177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34178         * modules/unistd (Makefile.am): Substitute them.
34179         * lib/unistd.in.h (symlink): Declare replacement.
34180         * MODULES.html.sh (File system functions): Mention it.
34181         * doc/posix-functions/symlink.texi (symlink): Likewise.
34182         * modules/symlink-tests: New test.
34183         * tests/test-symlink.c: Likewise.
34184
34185 2009-09-23  Bruno Haible  <bruno@clisp.org>
34186
34187         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34188         when needed.
34189         Test case: gnulib-tool --import --with-tests atexit inttypes.
34190         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34191
34192 2009-09-23  Bruno Haible  <bruno@clisp.org>
34193
34194         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34195         subcommand, not in a subshell.
34196
34197 2009-09-22  Eric Blake  <ebb9@byu.net>
34198
34199         unistd: sort replacement declarations
34200         * lib/unistd.in.h: Sort declarations.
34201
34202         open, openat: minor optimization
34203         * lib/open.c (open): If open succeeded, len is non-zero.
34204         * lib/openat.c (rpl_openat): Likewise.
34205
34206         link-follow: ensure correct result
34207         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34208         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34209         distinguish between possible failures.
34210
34211 2009-09-21  Eric Blake  <ebb9@byu.net>
34212
34213         fts: avoid compiler warning
34214         * lib/fts.c (dirent_inode_sort_may_be_useful)
34215         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34216
34217 2009-09-19  Bruno Haible  <bruno@clisp.org>
34218
34219         * lib/progreloc.c (canonicalize_file_name): New declaration.
34220
34221 2009-09-19  Eric Blake  <ebb9@byu.net>
34222
34223         link: fix quoting
34224         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34225
34226         openat: fix openat bugs on Solaris 9
34227         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34228         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34229         * modules/openat (Depends-on): Add open.
34230         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34231         * modules/fcntl-h (Makefile.am): Substitute it.
34232         * lib/fcntl.in.h (openat): Declare replacement.
34233         * doc/posix-functions/openat.texi (openat): Document this.
34234
34235         openat: move fstatat and unlinkat into correct files
34236         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34237         compiled.
34238         * lib/openat.c (fstatat, unlinkat): Move...
34239         * lib/fstatat.c (fstatat): ...into correct files.
34240         * lib/unlinkat.c (unlinkat): Likewise.
34241
34242         openat: fix unlinkat bugs on Solaris 9
34243         * lib/unlinkat.c (unlinkat): New file.
34244         * modules/openat (Depends-on): Add unlink.
34245         (Files): Distribute it.
34246         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
34247         trailing slash behavior is broken.
34248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34249         * modules/unistd (Makefile.am): Substitute it.
34250         * lib/unistd.in.h (unlinkat): Declare replacement.
34251         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
34252
34253         openat: fix fstatat bugs on Solaris 9
34254         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
34255         stat.
34256         * doc/posix-functions/fstatat.texi (fstatat): Document this.
34257
34258         test-unlinkat: enhance test, to expose Solaris 9 bug
34259         * tests/test-unlink.c (main): Factor guts...
34260         * tests/test-unlink.h (test_rmdir_func): ...into new file.
34261         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
34262         * tests/test-rmdir.c (main): Adjust caller.
34263         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
34264         (unlinker): New helper function.
34265         (rmdirat): Enhance check.
34266         * modules/rmdir-tests (Depends-on): Add stdbool.
34267         * modules/unlink-tests (Depends-on): Likewise.
34268         (Files): Add test-unlink.h.
34269         * modules/openat-tests (Files): Likewise.
34270         (Depends-on): Add unlinkdir.
34271
34272         test-fstatat: new test, to expose Solaris 9 bugs
34273         * tests/test-stat.c (main): Factor guts...
34274         * tests/test-stat.h (test_stat_func): ...into new file.
34275         * tests/test-lstat.c (main): Factor guts...
34276         * tests/test-lstat.h (test_lstat_func): ...into new file.
34277         * tests/test-fstatat.c: New file.
34278         * modules/stat-tests (Files): Add test-stat.h.
34279         * modules/lstat-tests (Files): Add test-lstat.h.
34280         (Depends-on): Add stdbool.
34281         * modules/openat-tests (Depends-on): Add pathmax.
34282         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
34283         (Makefile.am): Run new test.
34284
34285         remove: new module, for mingw and Solaris 9 bugs
34286         * modules/remove: New file.
34287         * lib/remove.c: Likewise.
34288         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
34289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34290         * modules/stdio (Makefile.am): Use them.
34291         * lib/stdio.in.h (remove): Declare replacement.
34292         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34293         * doc/posix-functions/remove.texi (remove): Likewise.
34294         * modules/remove-tests: New test.
34295         * tests/test-remove.c: Likewise.
34296
34297         unlink: new module, for Solaris 9 bug
34298         * modules/unlink: New file.
34299         * lib/unlink.c: Likewise.
34300         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
34301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34302         * modules/unistd (Makefile.am): Use them.
34303         * lib/unistd.in.h (stat): Declare replacement.
34304         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34305         * doc/posix-functions/unlink.texi (unlink): Likewise.
34306         * modules/unlink-tests: New test.
34307         * tests/test-unlink.c: Likewise.
34308
34309         lstat: fix Solaris 9 bug
34310         * lib/lstat.c (lstat): Also check for trailing slash on
34311         non-symlink, non-directories.  Use stat module to simplify logic.
34312         * doc/posix-functions/lstat.texi (lstat): Document it.
34313         * modules/lstat-tests (Depends-on): Add errno, same-inode.
34314         (configure.ac): Check for symlink.
34315         * tests/test-lstat.c (main): Add more tests.
34316
34317         stat: add as dependency to other modules
34318         * modules/chown (Depends-on): Add stat.
34319         * modules/euidaccess (Depends-on): Likewise.
34320         * modules/fchdir (Depends-on): Likewise.
34321         * modules/isdir (Depends-on): Likewise.
34322         * modules/link (Depends-on): Likewise.
34323         * modules/lstat (Depends-on): Likewise.
34324         * modules/mkdir-p (Depends-on): Likewise.
34325         * modules/modechange (Depends-on): Likewise.
34326         * modules/open (Depends-on): Likewise.
34327         * modules/readlink (Depends-on): Likewise.
34328         * modules/same (Depends-on): Likewise.
34329
34330         stat: fix Solaris 9 bug
34331         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
34332         slash.
34333         * lib/stat.c (rpl_stat): Work around it.
34334         * doc/posix-functions/stat.texi (stat): Update documentation.
34335
34336         stat: new module, for mingw bug
34337         * modules/stat: New file.
34338         * lib/stat.c: Likewise.
34339         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34340         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34341         * modules/sys_stat (Makefile.am): Use them.
34342         * lib/sys_stat.in.h (stat): Declare replacement.
34343         * lib/openat.c (fstatat): Deal with lstat and stat being function
34344         macros.
34345         * modules/openat (Depends-on): Add inline.
34346         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34347         * doc/posix-functions/stat.texi (stat): Likewise.
34348         * modules/stat-tests: New test.
34349         * tests/test-stat.c: Likewise.
34350
34351 2009-09-19  Jim Meyering  <meyering@redhat.com>
34352
34353         syntax-check: detect unnecessary inclusion of canonicalize.h
34354         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34355
34356 2009-09-19  Eric Blake  <ebb9@byu.net>
34357
34358         canonicalize-lgpl: adjust clients to use correct header
34359         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34360         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34361         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34362         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34363         * lib/progreloc.c (includes): Likewise.
34364
34365 2009-09-19  Jim Meyering  <meyering@redhat.com>
34366
34367         test-posixtm.c: correct a comment
34368         * tests/test-posixtm.c: Correct first-line comment.
34369         Spotted by Eric Blake.
34370
34371 2009-09-16  Jim Meyering  <meyering@redhat.com>
34372
34373         posixtm-tests: make T const-correct; add a test case
34374         * tests/test-posixtm.c (T): Declare const.
34375         Add a test for -(2^31+1).
34376         Remove useless can-succeed-only-in-2002 test.
34377
34378         posixtm-tests: adjust the sole failing test
34379         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
34380         expected output matches what mktime now produces.  Cross-checked via
34381         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
34382
34383         posixtm: move #ifdef'd tests into a new module
34384         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
34385         * tests/test-posixtm.c: ... this new file.
34386         * modules/posixtm-tests: New module.
34387
34388 2009-09-19  Eric Blake  <ebb9@byu.net>
34389
34390         openat: simplify use of at-func.c
34391         * lib/at-func.c (includes): Include prerequisites here, to
34392         simplify requirements on client files.
34393         * lib/openat-priv.h: Add double-inclusion guard.
34394         * lib/faccessat.c (includes): Simplify.
34395         * lib/fchmodat.c (includes): Likewise.
34396         * lib/fchownat.c (includes): Likewise.
34397         * lib/mkdirat.c (includes): Likewise.
34398         * lib/mkfifoat.c (includes): Likewise.
34399         * lib/symlinkat.c (includes): Likewise.
34400
34401         openat: allow return of fd 0
34402         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
34403         * modules/save-cwd (Depends-on): Replace fcntl-safer with
34404         unistd-safer.
34405         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
34406         <fcntl.h>; this module does not leak fds.
34407         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
34408         must be allowed to return 0, leaving openat_safer to add the
34409         safety.
34410         (openat_permissive): Avoid writing to just-opened fd 2 if
34411         restoring the current directory fails.
34412         * lib/openat-die.c (openat_restore_fail): Add comment.
34413         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34414         (save_cwd): Guarantee safe fd, but without use of open_safer.
34415         * tests/test-openat.c: New test.
34416         * modules/openat-tests (Files, Makefile.am): Distribute and build
34417         new file.
34418
34419         relocatable-prog-wrapper: fix build
34420         * modules/relocatable-prog-wrapper (Files): Update name of
34421         canonicalize m4 file, broken on 2009-09-17.
34422         Reported by emad hajjar <aleppos@hotmail.com>.
34423
34424 2009-09-19  Bruno Haible  <bruno@clisp.org>
34425
34426         * lib/safe-alloc.h: Use the standard header with GPL copyright.
34427         * lib/safe-alloc.c: Likewise.
34428         Reported by Ian Beckwith <ianb@erislabs.net>.
34429
34430 2009-09-18  Bruno Haible  <bruno@clisp.org>
34431
34432         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
34433         Reported by <erobles@sensacd.com.mx>.
34434
34435 2009-09-17  Eric Blake  <ebb9@byu.net>
34436
34437         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
34438         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
34439         slashes when checking if last component is missing.
34440         * tests/test-canonicalize.c (main): Test this.
34441
34442         canonicalize, canonicalize-lgpl: honor // if distinct from /
34443         * modules/canonicalize (Files): Add double-slash-root.m4.
34444         * modules/canonicalize-lgpl (Files): Likewise.
34445         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34446         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
34447         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
34448         fallback definition.
34449         (canonicalize_filename_mode): Use it to protect //.
34450         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
34451         (__realpath): Likewise.
34452         * tests/test-canonicalize.c (main): Test this.
34453         * tests/test-canonicalize-lgpl.c (main): Likewise.
34454         * modules/canonicalize-tests (Depends-on): Add same-inode.
34455         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34456
34457         canonicalize-lgpl: fix glibc bug with trailing slash
34458         * m4/canonicalize-lgpl.m4: Move contents...
34459         * m4/canonicalize.m4: ...here.
34460         (gl_CANONICALIZE_LGPL): Factor realpath check...
34461         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
34462         glibc 2.3.5 bug, fixed 2005-04-27.
34463         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
34464         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
34465         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
34466         * modules/canonicalize-lgpl (Files): Manage file rename.
34467         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34468         * modules/stdlib (Makefile.am): Substitute witness.
34469         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
34470         is needed.
34471         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
34472         replacement is required.
34473         * lib/canonicalize.c (canonicalize_file_name): Likewise.
34474         * doc/glibc-functions/canonicalize_file_name.texi
34475         (canonicalize_file_name): Document this.
34476         * doc/posix-functions/realpath.texi (realpath): Likewise.
34477
34478         canonicalize-lgpl: reject non-directory with trailing slash
34479         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
34480         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
34481         catches failures in glibc 2.3.5.
34482         * tests/test-canonicalize.c (main): Likewise.
34483
34484         canonicalize-lgpl: use native realpath if it works
34485         * lib/canonicalize-lgpl.c (realpath): Guard with
34486         FUNC_REALPATH_WORKS.
34487         * lib/stdlib.in.h (realpath): Make declaration optional based on
34488         HAVE_REALPATH.
34489         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
34490         native realpath works.
34491         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34492         * modules/stdlib (Makefile.am): Substitute witness.
34493
34494         canonicalize, canonicalize-lgpl: use <stdlib.h>
34495         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
34496         (Include): Mention <stdlib.h>.
34497         (configure.ac): Mention functions we provide.
34498         * modules/canonicalize (configure.ac): Likewise.
34499         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
34500         realpath if canonicalize_file_name is missing.
34501         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
34502         * modules/stdlib (Makefile.am): Substitute witnesses.
34503         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
34504         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
34505         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
34506         * NEWS: Document this.
34507         * doc/glibc-functions/canonicalize_file_name.texi
34508         (canonicalize_file_name): Likewise.
34509         * doc/posix-functions/realpath.texi (realpath): Likewise.
34510         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
34511
34512         test-canonicalize: consolidate into single C program
34513         * tests/test-canonicalize.sh: Delete; move setup into...
34514         * tests/test-canonicalize.c (main): ...the program, making it
34515         easier to run in debugger.  Add some tests.
34516         * modules/canonicalize-tests (Files): Remove unused file.
34517         (Depends-on): Add progname.
34518         (configure.ac, Makefile.am): Simplify.
34519
34520         test-canonicalize-lgpl: consolidate into single C program
34521         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
34522         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
34523         easier to run in debugger.  Add some tests.
34524         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
34525         (configure.ac, Makefile.am): Simplify.
34526
34527         canonicalize: avoid resolvepath
34528         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
34529         unnecessary checks.
34530         * lib/canonicalize.c (includes): Simplify.
34531         (canonicalize_file_name): Drop resolvepath implementation.
34532         * modules/canonicalize (Depends-on): Drop filenamecat.
34533
34534         canonicalize: don't lose errno
34535         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
34536         over calls to free.
34537
34538         canonicalize: simplify errno handling
34539         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
34540         assignment.
34541
34542         canonicalize, canonicalize-lgpl: update module dependencies
34543         * modules/canonicalize (Depends-on): Add extensions, lstat,
34544         pathmax, stdlib.
34545         (Files): Drop pathmax.h.
34546         (configure.ac): Adjust macro name.
34547         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
34548         lstat, stdlib, sys_stat.
34549         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
34550         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
34551         extensions.
34552         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
34553         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
34554         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
34555         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
34556         declaration, if available.
34557         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
34558         we can rely on the readlink module.
34559         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
34560         (includes): Use <unistd.h> unconditionally.
34561
34562 2009-09-17  Eric Blake  <ebb9@byu.net>
34563
34564         maint: make Include sections of modules consistent
34565         * modules/alloca: Use only header name; no need to list #include.
34566         * modules/alloca-opt: Likewise.
34567         * modules/arpa_inet: Likewise.
34568         * modules/canon-host: Likewise.
34569         * modules/configmake: Likewise.
34570         * modules/dirent: Likewise.
34571         * modules/eealloc: Likewise.
34572         * modules/environ: Likewise.
34573         * modules/fchdir: Likewise.
34574         * modules/fcntl: Likewise.
34575         * modules/fcntl-h: Likewise.
34576         * modules/gethrxtime: Likewise.
34577         * modules/gettime: Likewise.
34578         * modules/ignore-value: Likewise.
34579         * modules/inet_ntop: Likewise.
34580         * modules/inet_pton: Likewise.
34581         * modules/inttypes: Likewise.
34582         * modules/isnand-nolibm: Likewise.
34583         * modules/isnanf-nolibm: Likewise.
34584         * modules/mbchar: Likewise.
34585         * modules/mbfile: Likewise.
34586         * modules/mbiter: Likewise.
34587         * modules/mbuiter: Likewise.
34588         * modules/netdb: Likewise.
34589         * modules/netinet_in: Likewise.
34590         * modules/nproc: Likewise.
34591         * modules/pagealign_alloc: Likewise.
34592         * modules/poll: Likewise.
34593         * modules/printf-frexp: Likewise.
34594         * modules/pthread: Likewise.
34595         * modules/putenv: Likewise.
34596         * modules/random_r: Likewise.
34597         * modules/relocatable-prog: Likewise.
34598         * modules/search: Likewise.
34599         * modules/select: Likewise.
34600         * modules/selinux-h: Likewise.
34601         * modules/settime: Likewise.
34602         * modules/signal: Likewise.
34603         * modules/size_max: Likewise.
34604         * modules/socklen: Likewise.
34605         * modules/ssize_t: Likewise.
34606         * modules/stdarg: Likewise.
34607         * modules/stdbool: Likewise.
34608         * modules/stddef: Likewise.
34609         * modules/stdint: Likewise.
34610         * modules/stdio: Likewise.
34611         * modules/stdlib: Likewise.
34612         * modules/string: Likewise.
34613         * modules/strings: Likewise.
34614         * modules/sys_file: Likewise.
34615         * modules/sys_ioctl: Likewise.
34616         * modules/sys_select: Likewise.
34617         * modules/sys_socket: Likewise.
34618         * modules/sys_stat: Likewise.
34619         * modules/sys_time: Likewise.
34620         * modules/sys_times: Likewise.
34621         * modules/sys_utsname: Likewise.
34622         * modules/sys_wait: Likewise.
34623         * modules/sysexits: Likewise.
34624         * modules/time: Likewise.
34625         * modules/times: Likewise.
34626         * modules/tmpfile: Likewise.
34627         * modules/trim: Likewise.
34628         * modules/unistd: Likewise.
34629         * modules/wchar: Likewise.
34630         * modules/wctype: Likewise.
34631
34632 2009-09-17  Bruno Haible  <bruno@clisp.org>
34633
34634         Make getdate.y compile on QNX and NetBSD 5 / i386.
34635         * m4/getdate.m4 (gl_GETDATE): Conditionally define
34636         TIME_T_FITS_IN_LONG_INT.
34637         * lib/getdate.y (long_time_t): New type.
34638         (relative_time): Change type of 'seconds' field to long_time_t.
34639         (get_date): Update types of local variables. Check against overflow
34640         during conversion from long_time_t to time_t.
34641         Reported by Matt Kraai <kraai@ftbfs.org>
34642         and Hasso Tepper <hasso@netbsd.org>.
34643
34644 2009-09-17  Bruno Haible  <bruno@clisp.org>
34645
34646         * modules/COPYING: Update copyright years.
34647         * modules/README: Likeiwse.
34648         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
34649         Reported by Ian Beckwith <ianb@erislabs.net>.
34650
34651 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34652
34653         * users.txt: Update references for gnuit package.
34654
34655 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34656
34657         * m4/getdelim.m4: Fix typo in copyright line.
34658
34659 2009-09-17  Bruno Haible  <bruno@clisp.org>
34660
34661         * lib/atoll.c: Use the standard header with GPL copyright.
34662         * lib/argz.in.h: Likewise.
34663         * lib/glob.c: Likewise.
34664         * lib/glob-libc.h: Likewise.
34665         * lib/random_r.c: Likewise.
34666         * lib/siglist.h: Likewise.
34667         * lib/strsignal.c: Likewise.
34668         Reported by Ian Beckwith <ianb@erislabs.net>.
34669
34670 2009-09-17  Eric Blake  <ebb9@byu.net>
34671
34672         rmdir: ensure correct dependency order
34673         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
34674
34675 2009-09-17  Bruno Haible  <bruno@clisp.org>
34676
34677         Disable assertion that fails on NetBSD 5 / i386.
34678         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
34679         Reported by Sam Steingold <sds@gnu.org>
34680         and Hasso Tepper <hasso@netbsd.org>.
34681
34682 2009-09-16  Eric Blake  <ebb9@byu.net>
34683
34684         unlinkdir: port to mingw
34685         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
34686         on which no one can unlink a directory.
34687
34688         stdlib: sort witness names
34689         * modules/stdlib (Makefile.am): Sort replacements.
34690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34691         * lib/stdlib.in.h: Likewise.
34692
34693         parse-duration-tests: avoid link failure
34694         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
34695         LIBINTL.
34696         Reported by Tom G. Christensen.
34697
34698         openat-tests: ensure unlinkat behaves like rmdir
34699         * tests/test-rmdir.c (main): Factor guts...
34700         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
34701         * modules/rmdir-tests (Files): Ship new file.
34702         * modules/openat-tests: New test.
34703         * tests/test-unlinkat.c: Likewise.
34704
34705         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
34706         * modules/rmdir-errno (Status, Notice): Now obsolete.
34707
34708         rmdir: work around cygwin 1.5.x and mingw bugs
34709         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
34710         * lib/rmdir.c (rmdir): Work around it.
34711         * modules/rmdir (Status, Notice): No longer obsolete.
34712         (Files): Add dos.m4.
34713         (Depends-on): Add unistd.
34714         (configure.ac): Set witnesses.
34715         (License): Relax to LGPLv2+.
34716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
34717         * modules/unistd (Makefile.am): Substitute witnesses.
34718         * lib/unistd.in.h (rmdir): Declare replacement.
34719         * doc/posix-functions/rmdir.texi (rmdir): Document this.
34720         * modules/rmdir-tests: New tests.
34721         * tests/test-rmdir.c: Likewise.
34722
34723 2009-09-15  Eric Blake  <ebb9@byu.net>
34724
34725         fchdir: improve use of replacement functions
34726         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
34727         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
34728         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
34729         REPLACE_CLOSEDIR.
34730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
34731         * modules/sys_stat (Makefile.am): Substitute correct witness.
34732         * modules/dirent (Makefile.am): Likewise.
34733         * modules/unistd (Makefile.am): Likewise.
34734         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
34735         * lib/unistd.in.h (dup): Likewise.
34736         * lib/sys_stat.in.h (fstat): Likewise.
34737
34738         maint: ignore gnulib-tool temp files
34739         * .gitignore: Ignore files created during gnulib-tool --test.
34740
34741 2009-09-13  Jim Meyering  <meyering@redhat.com>
34742
34743         posixtm: don't reject a time that specify "60" as the number of seconds
34744         * lib/posixtm.c (posixtime): The code to reject invalid dates
34745         would also reject a time specified with the .60 suffix.
34746         But POSIX allows that, in order to accommodate leap seconds.
34747         So don't reject it.
34748         (main): Adjust tests accordingly.
34749         * modules/posixtm (Depends-on): Add stpcpy.
34750
34751 2009-09-11  Jim Meyering  <meyering@redhat.com>
34752
34753         announce-gen: include [$release_type] in emitted Subject:
34754         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
34755         e.g., [stable] in the emitted Subject: line.
34756
34757 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34758
34759         Remove obsolete macros from several modules.
34760         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
34761         obsolete Autoconf macros with their modern counterparts.
34762         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
34763         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
34764         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
34765         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
34766         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
34767         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
34768         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34769         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34770         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
34771         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
34772         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
34773         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
34774         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
34775         * m4/sockets.m4 (gl_SOCKETS): Likewise.
34776         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
34777         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
34778         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34779         * m4/time_r.m4 (gl_TIME_R): Likewise.
34780         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
34781         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
34782         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34783
34784         Fix copyright header in build-aux scripts.
34785         * build-aux/git-version-gen: Fix copyright header to match GPLv3
34786         recommendation.
34787         * build-aux/ncftpput-ftp: Likewise.
34788         * build-aux/update-copyright: Likewise.
34789
34790 2009-09-09  Eric Blake  <ebb9@byu.net>
34791
34792         test-link: allow Linux choice of errno
34793         * tests/test-link.c (main): Relax test for alternate error.
34794
34795         strndup: fix improper m4 caching
34796         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
34797         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
34798         (gl_PREREQ_STRNDUP): Delete.
34799         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
34800         * modules/string (Makefile.am): Substitute it.
34801         * lib/string.in.h (strndup): Modernize prototype.
34802
34803         getcwd: port to mingw
34804         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
34805         different from the POSIX assumptions made throughout the getcwd
34806         module; fortunately, the mingw getcwd does not need replacement.
34807         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
34808         * modules/getcwd-tests: New test.
34809         * tests/test-getcwd.c: Likewise.
34810
34811         link: fix platform bugs
34812         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
34813         * lib/link.c (link): Work around them.  Fix related mingw bug.
34814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
34815         * modules/unistd (Makefile.am): Substitute it.
34816         * lib/unistd.in.h (link): Declare replacement.
34817         * doc/posix-functions/link.texi (link): Document this.
34818         * modules/link (Depends-on): Add strdup-posix, sys_stat.
34819
34820         test-link: consolidate into single C program, test more cases
34821         * tests/test-link.sh: Delete.
34822         * tests/test-link.c: Test more error conditions.  Exposes bugs on
34823         at least Cygwin and Solaris.
34824         * modules/link-tests (Files): Remove unused file.
34825         (Depends-on): Add errno, sys_stat.
34826         (Makefile.am): Simplify.
34827
34828 2009-09-08  Bruno Haible  <bruno@clisp.org>
34829
34830         Work around towlower, towupper bug on mingw.
34831         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
34832         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
34833         * doc/posix-functions/towlower.texi: Mention the mingw bug.
34834         * doc/posix-functions/towupper.texi: Likewise.
34835         Reported by Eric Blake.
34836
34837 2009-09-08  Jim Meyering  <meyering@redhat.com>
34838
34839         build: don't try to run autoheader if we don't use it
34840         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
34841         is not used in configure.ac.
34842
34843 2009-09-08  Eric Blake  <ebb9@byu.net>
34844
34845         euidaccess: fix compilation error
34846         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
34847
34848         rawmemchr: relax license
34849         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
34850         okay.
34851         Reported by Jim Meyering.
34852
34853         mkfifoat: new module
34854         * modules/mkfifoat: New file.
34855         * lib/mkfifoat.c: Likewise.
34856         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
34857         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34858         * modules/sys_stat (Makefile.am): Use them.
34859         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
34860         * MODULES.html.sh (File system functions): Mention module.
34861         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34862         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34863         * modules/mkfifoat-tests: New test.
34864         * tests/test-mkfifoat.c: Likewise.
34865
34866         strchrnul: relax license
34867         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
34868         okay.
34869         Reported by Jim Meyering.
34870
34871 2009-09-08  Eric Blake  <ebb9@byu.net>
34872
34873         fstatat: fix compilation on Solaris
34874         * lib/fstatat.c (includes): Add fcntl.h.
34875         Reported by Pádraig Brady.
34876
34877 2009-09-07  Eric Blake  <ebb9@byu.net>
34878
34879         rename: modernize replacement
34880         * modules/rename (Depends-on): Add stdio.
34881         (configure.ac): Declare witness.
34882         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
34883         stdio take care of replacement.
34884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
34885         * modules/stdio (Makefile.am): Substitute them.
34886         * lib/stdio.in.h (rename): Declare replacement.
34887         * lib/rename.c (includes): Allow cross-compilation to non-windows
34888         machines.
34889         * doc/posix-functions/rename.texi (rename): Improve
34890         documentation.
34891
34892         stdio: sort witness names
34893         * modules/stdio (Makefile.am): Sort replacements.
34894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34895         * lib/stdio.in.h: Likewise.
34896
34897         getcwd: minor cleanups
34898         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
34899         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
34900
34901         openat: provide more convenience names
34902         * modules/faccessat (configure.ac): Add C witness.
34903         * lib/unistd.in.h (readlinkat): Fix typo.
34904         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
34905         convenience wrappers.
34906         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
34907         wrappers in syntax checks.
34908
34909 2009-09-06  Eric Blake  <ebb9@byu.net>
34910
34911         doc: fix comments in recent patches
34912         * lib/faccessat.c: Mention correct function.
34913         * lib/fchmodat.c: Likewise.
34914         * lib/fchownat.c: Likewise.
34915         * lib/symlinkat.c: Likewise.
34916         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
34917         constants.
34918
34919         faccessat, symlinkat: continue cleanup of previous patch
34920         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
34921         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34922         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
34923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
34924         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
34925         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
34926         set.
34927
34928 2009-09-06  Bruno Haible  <bruno@clisp.org>
34929
34930         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
34931         (fstatat): Declare if GNULIB_FSTATAT is set.
34932         (mkdirat): Declare if GNULIB_MKDIRAT is set.
34933         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
34934         (unlinkat): Declare if GNULIB_UNLINKAT is set.
34935         * modules/fcntl-h (Files): Remove m4/openat.m4.
34936         * modules/sys_stat (Files): Remove m4/openat.m4.
34937         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
34938         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
34939         * modules/unistd (Files): Remove m4/openat.m4.
34940         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
34941         GNULIB_OPENAT.
34942         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
34943         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
34944         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
34945         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
34946         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
34947         gl_OPENAT_DEFAULTS.
34948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
34949         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
34950         Don't require gl_OPENAT_DEFAULTS.
34951         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
34952         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
34953         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
34954         (gl_OPENAT_DEFAULTS): Remove macro.
34955
34956 2009-09-06  Bruno Haible  <bruno@clisp.org>
34957
34958         * modules/openat (configure.ac): Remove unneeded witness.
34959
34960 2009-09-06  Bruno Haible  <bruno@clisp.org>
34961
34962         Set errno to ENOSYS when a function is entirely unsupported.
34963         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
34964         EOPNOTSUPP.
34965         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34966         * modules/chown (Depends-on): Remove errno.
34967
34968 2009-09-06  Bruno Haible  <bruno@clisp.org>
34969
34970         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
34971
34972 2009-09-06  Bruno Haible  <bruno@clisp.org>
34973
34974         * lib/sys_stat.in.h: Fix preprocessor command indentation.
34975
34976 2009-09-06  Ben Pfaff  <blp@gnu.org>
34977             Bruno Haible  <bruno@clisp.org>
34978
34979         Work around a glibc bug in strtok_r.
34980         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
34981         Undefine if UNDEFINE_STRTOK_R is set.
34982         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
34983         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34984         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
34985         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
34986         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
34987         UNDEFINE_STRTOK_R.
34988         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
34989
34990 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34991
34992         exclude: minor fix
34993         * lib/exclude.c: Include wctype.h
34994
34995 2009-09-06  Akim Demaille  <demaille@gostai.com>
34996
34997         bootstrap: improve error message
34998         * build-aux/bootstrap (find_tool): Upon failure, report the list
34999         of candidates.
35000         Honor the initial value of the envvar.
35001
35002 2009-09-05  Eric Blake  <ebb9@byu.net>
35003
35004         symlinkat: new module
35005         * modules/symlinkat: New file.
35006         * lib/symlinkat.c: Likewise.
35007         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35009         * modules/unistd (Makefile.am): Use them.
35010         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35011         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35012         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35013         * MODULES.html.sh (File system functions): Mention module.
35014         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35015         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35016         * modules/symlinkat-tests: New test.
35017         * tests/test-symlinkat.c: Likewise.
35018
35019         test-openat-safer: add more checks
35020         * tests/test-openat-safer.c (main): Check more code paths.
35021
35022 2009-09-05  Jim Meyering  <meyering@redhat.com>
35023
35024         syntax-check: detect unnecessary inclusion of openat.h
35025         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35026
35027 2009-09-05  Bruno Haible  <bruno@clisp.org>
35028
35029         Support towlower, towupper.
35030         * doc/posix-functions/towlower.texi: Mention module wctype.
35031         * doc/posix-functions/towupper.texi: Likewise.
35032         * lib/wctype.in.h (towlower, towupper): New functions.
35033         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35034         (ASSERT): New macro.
35035         (e): New variable.
35036         (main): Test also towlower, towupper. Test WEOF argument.
35037         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35038
35039 2009-09-05  Bruno Haible  <bruno@clisp.org>
35040
35041         Fix conversion behaviour when the input is invalid.
35042         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35043         mark occurring in first pass of indirect conversion.
35044         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35045         input.
35046         Found by clang's static analyzer.
35047
35048 2009-09-05  Bruno Haible  <bruno@clisp.org>
35049
35050         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35051         where direct conversion is possible.
35052
35053 2009-09-04  Eric Blake  <ebb9@byu.net>
35054
35055         openat: fail with ENOENT on empty name
35056         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35057         buffer.
35058
35059         link-follow: fix logic bug in prior patch
35060         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35061         reversed sense of yes and no in prior patch.  Avoid confusing
35062         compilation failure with desired semantics.
35063
35064         link-follow: accomodate mingw and cross-compilation
35065         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35066         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35067         cross-compilation results to -1, to make linkat easier to
35068         implement when cross-compiling.  Trivially support mingw.
35069         * modules/link-follow (configure.ac): Call new name.
35070         * NEWS: Mention this.
35071
35072 2009-09-03  Eric Blake  <ebb9@byu.net>
35073
35074         faccessat: compile replacement
35075         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35076         needed.
35077
35078         fts: fix compilation error
35079         * lib/fts.c (includes): Re-add "openat.h", for
35080         openat_needs_fchdir.
35081
35082         faccessat: new module
35083         * modules/faccessat: New file.
35084         * lib/faccessat.c: Likewise.
35085         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35087         * modules/unistd (Makefile.am): Use it.
35088         * lib/unistd.in.h (faccessat): Declare it.
35089         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35090         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35091         * MODULES.html.sh (File system functions): Mention it.
35092         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35093         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35094
35095         euidaccess: prefer POSIX over non-standard implementation
35096         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35097         * lib/euidaccess.c (euidaccess): Use it if available.
35098
35099         openat: make template easier to use
35100         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35101         AT_FUNC_F2 to be undefined.
35102         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35103         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35104         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35105         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35106         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35107         Likewise.
35108         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35109         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35110         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35111         Likewise.
35112
35113         openat: declare in POSIX headers
35114         * NEWS: Mention this.
35115         * modules/openat (configure.ac): Declare witnesses.
35116         (Depends-on): Add fcntl-h, sys_stat, unistd.
35117         (Include): Mention correct headers.
35118         * modules/fcntl-h (Depends-on): Add link-warning.
35119         (Files): Add openat.m4.
35120         (Makefile.am): Substitute witnesses.
35121         * modules/sys_stat (Files, Makefile.am): Likewise.
35122         * modules/unistd (Files, Makefile.am): Likewise.
35123         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35124         (gl_OPENAT_DEFAULTS): New macro.
35125         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35127         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35128         (SYS_STAT_H): Remove unused variable.
35129         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35130         * lib/fcntl--.h (includes): Remove unneeded header.
35131         * lib/openat-safer.c (includes): Likewise.
35132         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35133         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35134         appropriate headers.
35135         (__OPENAT_PREFIX): Delete.
35136         * lib/fcntl.in.h (openat): Provide declaration.
35137         (AT_FDCWD): Fix Solaris bug.
35138         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35139         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35140         * lib/fchmodat.c (includes):  Adjust to find declaration.
35141         * lib/fchownat.c (includes): Likewise.
35142         * lib/mkdirat.c (includes): Likewise.
35143         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35144         still visible.
35145
35146 2009-09-02  Eric Blake  <ebb9@byu.net>
35147
35148         errno: use consistently
35149         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35150         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35151         * lib/canonicalize.c (ELOOP): Likewise.
35152         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35153         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35154         * lib/lchown.c (EOPNOTSUPP): Likewise.
35155         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35156         * lib/savewd.c (ESTALE): Likewise.
35157         * lib/settime.c (ENOSYS): Likewise.
35158         * lib/utimens.c (ENOSYS): Likewise.
35159         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35160         * lib/chdir-safer.c (ELOOP): Likewise.
35161         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35162         * modules/c-stack (Depends-on): Add errno.
35163         * modules/canonicalize (Depends-on): Likewise.
35164         * modules/chdir-safer (Depends-on): Likewise.
35165         * modules/fdopendir (Depends-on): Likewise.
35166         * modules/inet_ntop (Depends-on): Likewise.
35167         * modules/inet_pton (Depends-on): Likewise.
35168         * modules/lchown (Depends-on): Likewise.
35169         * modules/openat (Depends-on): Likewise.
35170         * modules/savewd (Depends-on): Likewise.
35171         * modules/settime (Depends-on): Likewise.
35172         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35173
35174         fts: avoid leaking fds
35175         * modules/fts (Depends-on): Add cloexec.
35176         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35177         flag.
35178
35179         fts: make directory fds more robust
35180         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35181         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35182
35183         backupfile, chdir-long, fts, savedir: make safer
35184         * lib/backupfile.c (includes): Use "dirent--.h", since
35185         numbered_backup can write to stderr during readdir.
35186         * lib/savedir.c (includes): Likewise.
35187         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35188         emulation can write to stderr on failure.
35189         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35190         * lib/getcwd.c: Document why opendir_safer is unused.
35191         * lib/glob.c: Likewise.
35192         * lib/scandir.c: Likewise.
35193         * lib/openat-proc.c: Likewise, for open_safer.
35194         * modules/backupfile (Depends-on): Add dirent-safer.
35195         * modules/savedir (Depends-on): Likewise.
35196         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35197         * modules/chdir-long (Depends-on): Add openat-safer.
35198
35199         openat-safer: new module
35200         * modules/openat-safer: New file.
35201         * lib/openat-safer.c: Likewise.
35202         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35203         * lib/fcntl-safer.h (openat_safer): Declare.
35204         * lib/fcntl--.h (openat): Override.
35205         * MODULES.html.sh (File descriptor based I/O): Mention it.
35206         * lib/openat.h: Add double-inclusion guards.
35207         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35208         "fcntl--.h", so we can implement openat.
35209         * modules/openat-safer-tests: New test.
35210         * tests/test-openat-safer.c: New file.
35211
35212         dirent-safer: new module
35213         * modules/dirent-safer: New file.
35214         * lib/dirent--.h: Likewise.
35215         * lib/dirent-safer.h: Likewise.
35216         * lib/opendir-safer.c: Likewise.
35217         * m4/dirent-safer.m4: Likewise.
35218         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35219         * modules/dirent-safer-tests: New test.
35220         * tests/test-dirent-safer.c: New file.
35221         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35222
35223         fdopendir: optimize on mingw
35224         * lib/unistd.in.h (_gl_directory_name): New prototype.
35225         * lib/fchdir.c (_gl_directory_name): Implement it.
35226         (fchdir): Use it to simplify implementation.
35227         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35228         fchdir, when available, to avoid calling [f]chdir().
35229
35230         fdopendir: split into its own module
35231         * lib/openat.c (fdopendir): Move...
35232         * lib/fdopendir.c: ...into new file.
35233         * modules/fdopendir: New module.
35234         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35235         * modules/openat (Depends-on): Add fdopendir.
35236         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35237         fdopendir here.
35238         * modules/savedir (Depends-on): Only need fdopendir, not full
35239         openat.
35240         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35241         * lib/openat.h (fdopendir): Drop prototype.
35242         * lib/dirent.in.h (fdopendir): Provide prototype.
35243         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35244         * modules/dirent (Makefile.am): Substitute them.
35245         * MODULES.html.sh (File system functions): Mention it.
35246         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
35247         * modules/fdopendir-tests: New file.
35248         * tests/test-fdopendir.c: Likewise.
35249
35250         fchdir: use more consistent macro convention
35251         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
35252         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
35253         REPLACE_FCHDIR, rather than relying on config.h macros.
35254         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
35255         inside a single make-time REPLACE_FCHDIR block, rather than using
35256         the config.h FCHDIR_REPLACEMENT.
35257         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
35258         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
35259         Manage fstat replacement.
35260         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
35261         REPLACE_FCHDIR.
35262         * modules/sys_stat (Files): Add m4/unistd_h.m4.
35263         (Makefile.am): Substitute REPLACE_FCHDIR.
35264         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
35265         FCHDIR_REPLACEMENT.
35266         * lib/dup-safer.c (dup_safer): Likewise.
35267         * lib/dup2.c (rpl_dup2): Likewise.
35268         * lib/dup3.c (rpl_dup3): Likewise.
35269         * lib/open.c (rpl_open): Likewise.
35270
35271         fchdir: simplify error handling, and support dup3
35272         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
35273         stdbool, malloc-posix, realloc-posix.
35274         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
35275         (ensure_dirs_slot): Return false on allocation failure.
35276         (rpl_dup2): Delete.
35277         (_gl_register_dup): New function.
35278         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
35279         (_gl_register_fd): Close fd on allocation failure.
35280         * lib/fcntl.in.h (_gl_register_fd): Update signature.
35281         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
35282         prototype.
35283         (rpl_dup2_fchdir): Delete prototype.
35284         * lib/open.c (open): Update caller.
35285         * lib/dup2.c (dup2): Track fchdir metadata.
35286         * lib/dup3.c (dup3): Likewise.
35287         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
35288         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
35289
35290 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35291
35292         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
35293         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
35294         don't pass arguments to AC_OUTPUT.
35295
35296 2009-09-02  Bruno Haible  <bruno@clisp.org>
35297
35298         * modules/mkdtemp (License): Relicense under LGPLv2+.
35299         Reported by Paolo Bonzini.
35300
35301 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35302
35303         Replace uses of obsolete autoconf macros in Jim's modules.
35304         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
35305         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
35306         can evoke a warning from autoconf when run with -Wobsolete
35307         enabled.  They were declared obsolete for good reasons (see
35308         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
35309         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
35310         should not continue using the deprecated macros.
35311         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
35312         obsolete Autoconf macros with modern counterparts.
35313         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35314         * m4/dos.m4 (gl_AC_DOS): Likewise.
35315         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
35316         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
35317         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
35318         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
35319         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
35320         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
35321         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
35322         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
35323         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35324         Likewise.
35325         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
35326         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35327         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
35328         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
35329         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35330         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35331
35332 2009-09-01  Eric Blake  <ebb9@byu.net>
35333
35334         fchdir: fix off-by-one bug in previous patch
35335         * lib/fchdir.c (rpl_fstat): Use correct bounds.
35336         (_gl_unregister_fd): Delete useless if.
35337
35338 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
35339
35340         maint.mk: sort the list of syntax-check rules
35341         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
35342         easier to get a sense of progress when the rules are run sequentially
35343         and take a long time.
35344
35345 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35346
35347         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35348         * modules/netinet_in: Likewise.
35349         * modules/sys_file: Likewise.
35350         * modules/sys_ioctl: Likewise.
35351         * modules/sys_select: Likewise.
35352         * modules/sys_socket: Likewise.
35353         * modules/sys_stat: Likewise.
35354         * modules/sys_time: Likewise.
35355         * modules/sys_times: Likewise.
35356         * modules/sys_utsname: Likewise.
35357         * modules/sys_wait: Likewise.
35358
35359 2009-09-01  Jim Meyering  <meyering@redhat.com>
35360
35361         fts: help ensure that return values are not ignored
35362         * lib/fts_.h (__GNUC_PREREQ): Define.
35363         (__attribute_warn_unused_result__): Define.
35364         (fts_children, fts_close, fts_open, fts_read): Declare with
35365         __attribute_warn_unused_result__.
35366
35367         fts: fts_close now fails also when closing a dir file descriptor fails
35368         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35369         and propagate to caller, along with errno.
35370
35371         announce-gen: correct formatting in --help output
35372         * build-aux/announce-gen (usage): Move the one-line description in
35373         --help output "up", to where it belongs, just after Usage:.
35374
35375 2009-08-31  Eric Blake  <ebb9@byu.net>
35376
35377         fchdir: port to mingw
35378         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
35379         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
35380         opened, then use a substitute.
35381         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
35382         replacement.
35383         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
35384         (_gl_register_fd): No need to check stat if open already filters
35385         all directories.
35386         (fchdir): Fix error condition to match POSIX.
35387         * modules/fchdir (Depends-on): Add sys_stat.
35388         * doc/posix-functions/open.texi (open): Document the limitation.
35389         * modules/fchdir-tests: New file.
35390         * tests/test-fchdir.c: Likewise.
35391
35392         canonicalize: allow cross-testing from cygwin to mingw
35393         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
35394         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
35395         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
35396         Likewise.
35397         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
35398         target does not support symlinks.
35399         * tests/test-canonicalize-lgpl.sh: Likewise.
35400
35401         chown: avoid compilation warning on mingw
35402         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
35403         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
35404         mingw.
35405         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35406         * modules/chown (Depends-on): Add errno.
35407
35408 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35409
35410         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
35411         command.
35412
35413 2009-08-31  Jim Meyering  <meyering@redhat.com>
35414
35415         canonicalize: remove useless initialization
35416         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35417         initialization of local, "end".
35418
35419 2009-08-30  Bruno Haible  <bruno@clisp.org>
35420
35421         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
35422         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
35423         ENOSYS.
35424
35425 2009-08-30  Bruno Haible  <bruno@clisp.org>
35426
35427         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
35428         /usr/xpg4/bin/tr when it exists.
35429         * tests/test-pipe-filter-gi1.sh: Likewise.
35430
35431 2009-08-30  Bruno Haible  <bruno@clisp.org>
35432
35433         Work around deficient /usr/bin/id program on Solaris.
35434         * tests/test-file-has-acl.sh (ID): New variable.
35435         * tests/test-set-mode-acl.sh (ID): Likewise.
35436         * tests/test-copy-acl.sh (ID): Likewise.
35437         * tests/test-copy-file.sh (ID): Likewise.
35438
35439 2009-08-30  Bruno Haible  <bruno@clisp.org>
35440
35441         New module 'xstriconveh'.
35442         * lib/xstriconveh.h: New file.
35443         * lib/xstriconveh.c: New file.
35444         * modules/xstriconveh: New file.
35445
35446 2009-08-30  Bruno Haible  <bruno@clisp.org>
35447
35448         Make it easier to use mem_cd_iconveh.
35449         * lib/striconveh.h (iconveh_t): New type.
35450         (iconveh_open, iconveh_close): New declarations.
35451         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35452         with a single 'const iconveh_t *' argument.
35453         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
35454         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35455         with a single 'const iconveh_t *' argument.
35456         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
35457         * tests/test-striconveh.c (main): Update.
35458         * NEWS: Mention the change.
35459
35460 2009-08-30  Bruno Haible  <bruno@clisp.org>
35461
35462         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
35463         problem.
35464
35465 2009-08-30  Bruno Haible  <bruno@clisp.org>
35466
35467         Work around iconv_open problem on Solaris.
35468         * lib/iconv_open-solaris.gperf: New file.
35469         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
35470         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
35471         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
35472         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
35473         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
35474         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
35475
35476 2009-08-29  Jim Meyering  <meyering@redhat.com>
35477
35478         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
35479         * top/maint.mk (cvs-check): Remove target; it was just an alias
35480         to the better-named vc-diff-check.
35481         (maintainer-distcheck): Remove rule.  It was used only from
35482         the (alpha/beta/major) target, and all of its commands but one
35483         were coreutils-specific.
35484         (vc-dist): Remove rule.
35485         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
35486         Run vc-diff-check, not vc-dist.
35487         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
35488
35489 2009-08-27  Bruno Haible  <bruno@clisp.org>
35490
35491         * tests/test-bitrotate.c (main): Remove test that uses a shift count
35492         of 0.
35493
35494 2009-08-27  Bruno Haible  <bruno@clisp.org>
35495
35496         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
35497         compilers.
35498         * doc/func.texi: Document the SunPRO C bug.
35499
35500 2009-08-27  Bruno Haible  <bruno@clisp.org>
35501
35502         Fix link error on Solaris.
35503         * tests/test-parse-duration.c (xstrdup): Remove function.
35504
35505 2009-08-26  Pádraig Brady  <P@draigbrady.com>
35506
35507         ignore-value: handle pointer types, too
35508         * lib/ignore-value.h (__attribute__): Remove definition.
35509         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
35510         of a more concise and more-often effective "(void) i" statement.
35511         (ignore_ptr): New function to suppress warnings from functions that
35512         return pointers, and to make it explicit that one function doesn't
35513         handle all cases.
35514
35515 2009-08-25  Bruno Haible  <bruno@clisp.org>
35516
35517         dup2: work around a Linux bug.
35518         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
35519         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
35520         * doc/posix-functions/dup2.texi: Mention the Linux bug.
35521         Reported by Simon Josefsson.
35522
35523 2009-08-25  Jim Meyering  <meyering@redhat.com>
35524
35525         libguestfs uses gnulib
35526         * users.txt: Add libguestfs.
35527
35528 2009-08-24  Eric Blake  <ebb9@byu.net>
35529
35530         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
35531         * lib/pipe2.c (includes): Add binary-io.h.
35532         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
35533
35534 2009-08-24  Bruno Haible  <bruno@clisp.org>
35535
35536         Tolerate declared but missing accept4 syscall.
35537         * lib/accept4.c (accept4): Invoke original accept4 function first, if
35538         available.
35539         * lib/sys_socket.in.h (accept4): If the function is already present,
35540         override it.
35541         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
35542         * modules/accept4 (Makefile.am): Compile accept4.c always.
35543         Reported by Paolo Bonzini and Eric Blake.
35544
35545 2009-08-23  Bruno Haible  <bruno@clisp.org>
35546
35547         New module 'accept4'.
35548         * lib/sys_socket.in.h (accept4): New declaration.
35549         * lib/accept4.c: New file.
35550         * m4/accept4.m4: New file.
35551         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35552         GNULIB_ACCEPT4, HAVE_ACCEPT4.
35553         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
35554         HAVE_ACCEPT4.
35555         * modules/accept4: New file.
35556         * doc/glibc-functions/accept4.texi: Mention the new module.
35557
35558 2009-08-24  Jim Meyering  <meyering@redhat.com>
35559
35560         progname: also set global program_invocation_name, when possible
35561         Before this change, a libtool-enabled program that calls glibc's
35562         error function would report the program name as
35563         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
35564         * modules/progname (configure.ac): Check for a declaration of
35565         program_invocation_name.
35566         * lib/progname.c:  Include <errno.h>.
35567         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
35568         Set program_invocation_name.
35569
35570 2009-08-23  Bruno Haible  <bruno@clisp.org>
35571
35572         * lib/dup3.c: Include <string.h>.
35573
35574 2009-08-23  Bruno Haible  <bruno@clisp.org>
35575
35576         * lib/dup3.c (dup3): Test only once whether the system actually exists.
35577         * lib/pipe2.c (pipe2): Likewise.
35578         Suggested by Eric Blake.
35579
35580 2009-08-23  Bruno Haible  <bruno@clisp.org>
35581
35582         Tolerate declared but missing dup3 syscall.
35583         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
35584         * lib/unistd.in.h (dup3): If the function is already present,
35585         override it.
35586         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
35587         * modules/dup3 (Makefile.am): Compile dup3.c always.
35588         Reported by Paolo Bonzini.
35589
35590 2009-08-23  Bruno Haible  <bruno@clisp.org>
35591
35592         Tolerate declared but missing pipe2 syscall.
35593         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
35594         available.
35595         * lib/unistd.in.h (pipe2): If the function is already present,
35596         override it.
35597         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
35598         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
35599         Reported by Paolo Bonzini.
35600
35601 2009-08-23  Bruno Haible  <bruno@clisp.org>
35602
35603         * lib/pipe2.c (pipe2): Move #ifs inside function.
35604
35605 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35606
35607         quotearg: document limitations of quote_these_too
35608         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
35609         those limitations are created.
35610         * lib/quotearg.h (set_char_quoting): Document that digits and
35611         letters that are special after backslash are not permitted.
35612         (quotearg_char): Cross-reference set_char_quoting documentation.
35613
35614 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
35615
35616         quotearg: implement custom_quoting_style
35617         * lib/quotearg.c: (struct quoting_options): Add left_quote and
35618         right_quote fields.
35619         (set_custom_quoting): New public function.
35620         (quotearg_buffer_restyled): Add left_quote and right_quote
35621         arguments, handle them very much like locale quoting, and update
35622         all uses.
35623         (quotearg_n_custom): New public function.
35624         (quotearg_n_custom_mem): New public function.
35625         (quotearg_custom): New public function.
35626         (quotearg_custom_mem): New public function.
35627         * lib/quotearg.h: Prototype and document new public functions.
35628         (enum quoting_style): For escape_quoting_style and
35629         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
35630         ignored even though they're otherwise like c_quoting_style.
35631         Add custom_quoting_style member and document with comparison to
35632         clocale_quoting_style.
35633         * tests/test-quotearg.c (custom_quotes): New array.
35634         (custom_results): New array.
35635         (main): Extend to test custom quoting.
35636
35637 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35638
35639         quotearg: fix right quote escaping when it's in quote_these_too
35640         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
35641         quote, be sure to prepend only one backslash.
35642         * tests/test-quotearg.c (use_quote_double_quotes): New function.
35643         (main): Test it.
35644
35645 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35646
35647         quotearg-tests: test escaping of embedded locale quotes
35648         * tests/test-quotearg.c (struct result_strings): Add member for
35649         new input.
35650         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
35651         (inputs): Add new input.
35652         (results_g): Add expected results.
35653         (flag_results): Likewise.
35654         (locale_results): Likewise.
35655         (compare_strings): Check those.
35656
35657 2009-08-23  Bruno Haible  <bruno@clisp.org>
35658
35659         Tests for module 'dup3'.
35660         * modules/dup3-tests: New file.
35661         * tests/test-dup3.c: New file.
35662
35663         New module 'dup3'.
35664         * lib/unistd.in.h (dup3): New declaration.
35665         * lib/dup3.c: New file.
35666         * m4/dup3.m4: New file.
35667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
35668         HAVE_DUP3.
35669         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
35670         * modules/dup3: New file.
35671         * doc/glibc-functions/dup3.texi: Mention the new module.
35672
35673 2009-08-23  Bruno Haible  <bruno@clisp.org>
35674
35675         Tweak the dup2 test.
35676         * tests/test-dup2.c (main): Create the test file empty. Verify that an
35677         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
35678         the test file is still empty. Fix argument order of lseek.
35679
35680 2009-08-23  Bruno Haible  <bruno@clisp.org>
35681
35682         Avoid test link errors when the modules getopt-gnu, gettext are used.
35683         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
35684         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35685
35686 2009-08-23  Bruno Haible  <bruno@clisp.org>
35687
35688         Fix getdtablesize() on mingw.
35689         * lib/getdtablesize.c (getdtablesize): Implement differently.
35690         * lib/unistd.in.h (getdtablesize): Improve comment.
35691
35692 2009-08-23  Bruno Haible  <bruno@clisp.org>
35693
35694         New module 'mkostemp'.
35695         Based on Ulrich Drepper's 2007-08-10 change in glibc.
35696         * lib/stdlib.in.h (mksotemp): New declaration.
35697         * lib/mkostemp.c: New file, from glibc with modifications.
35698         * lib/tempname.h (GT_FILE): Remove outdated comment.
35699         (gen_tempname): Add flags argument.
35700         * lib/tempname.c (__GT_BIGFILE): Remove macro.
35701         (__GT_FILE): Map to 1.
35702         (small_open, large_open): Remove macros.
35703         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
35704         * lib/mkstemp.c (mkstemp): Update.
35705         * lib/mkdtemp.c (mkdtemp): Likewise.
35706         * m4/mkostemp.m4: New file.
35707         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
35708         HAVE_MKOSTEMP.
35709         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
35710         HAVE_MKOSTEMP.
35711         * modules/mkostemp: New file, based on modules/mkstemp.
35712         * doc/glibc-functions/mkostemp.texi: Mention the new module.
35713         * NEWS: Mention the change.
35714
35715 2009-08-23  Bruno Haible  <bruno@clisp.org>
35716
35717         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
35718         Reported by Eric Blake.
35719
35720 2009-08-23  Bruno Haible  <bruno@clisp.org>
35721
35722         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
35723         Reported by Eric Blake.
35724
35725 2009-08-23  Bruno Haible  <bruno@clisp.org>
35726
35727         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
35728         * modules/pipe2 (Depends-on): Likewise.
35729
35730 2009-08-23  Eric Blake  <ebb9@byu.net>
35731
35732         fcntl-h: add O_TTY_INIT support
35733         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
35734         * tests/test-fcntl-h.c (o): Test it.
35735         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35736
35737         fcntl-h: rename from fcntl, in preparation for fcntl(2)
35738         * modules/fcntl: Move <fcntl.h> header replacement...
35739         * modules/fcntl-h: ...to new name, so as not to collide with
35740         like-named function.
35741         * tests/test-fcntl.c: Rename...
35742         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
35743         * modules/fcntl-tests: Rename...
35744         * modules/fcntl-h-tests: ...to this.  Update test file name.
35745         * modules/chdir-long (Depends-on): Update clients.
35746         * modules/chdir-safer (Depends-on): Likewise.
35747         * modules/fcntl-safer (Depends-on): Likewise.
35748         * modules/fts (Depends-on): Likewise.
35749         * modules/mkancesdirs (Depends-on): Likewise.
35750         * modules/mkdir-p (Depends-on): Likewise.
35751         * modules/open (Depends-on): Likewise.
35752         * modules/savewd (Depends-on): Likewise.
35753         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
35754         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35755
35756 2009-08-22  Bruno Haible  <bruno@clisp.org>
35757
35758         * modules/binary-io (License): Relicense under LGPL.
35759         * modules/pipe2 (License): Likewise.
35760
35761 2009-08-22  Bruno Haible  <bruno@clisp.org>
35762
35763         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
35764         return value.
35765         * lib/pipe-filter-gi.c (filter_init): Likewise.
35766         Reported by Eric Blake.
35767
35768 2009-08-22  Bruno Haible  <bruno@clisp.org>
35769
35770         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
35771         * modules/pipe (Depends-on): Add pipe2.
35772
35773 2009-08-22  Bruno Haible  <bruno@clisp.org>
35774
35775         Tests for module 'pipe2'.
35776         * modules/pipe2-tests: New file.
35777         * tests/test-pipe2.c: New file.
35778
35779         New module 'pipe2'.
35780         * lib/unistd.in.h (pipe2): New declaration.
35781         * lib/pipe2.c: New file.
35782         * m4/pipe2.m4: New file.
35783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
35784         HAVE_PIPE2.
35785         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
35786         * modules/pipe2: New file.
35787         * doc/glibc-functions/pipe2.texi: Mention the new module.
35788
35789 2009-08-22  Bruno Haible  <bruno@clisp.org>
35790
35791         Reference some new glibc functions.
35792         * doc/glibc-functions/accept4.texi: New file.
35793         * doc/glibc-functions/dup3.texi: New file.
35794         * doc/glibc-functions/mkostemp.texi: New file.
35795         * doc/glibc-functions/pipe2.texi: New file.
35796         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
35797         (Glibc sys/socket.h): Refer to accept4.
35798         (Glibc unistd.h): Refer to dup3, pipe2.
35799         Reported by Eric Blake.
35800
35801 2009-08-22  Jim Meyering  <meyering@redhat.com>
35802             Bruno Haible  <bruno@clisp.org>
35803
35804         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
35805         This makes it so packages using automake-1.11's silent-rules option
35806         can print e.g., a single "GEN    configmake.h" line, rather than
35807         the 30+ statements that perform the job.  If you want to see the
35808         actual commands, you can still run "make V=1".
35809         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
35810         so that make output is abbreviated when those variables are defined
35811         appropriately.
35812         * modules/argz: Likewise.
35813         * modules/arpa_inet: Likewise.
35814         * modules/byteswap: Likewise.
35815         * modules/configmake: Likewise.
35816         * modules/dirent: Likewise.
35817         * modules/errno: Likewise.
35818         * modules/fcntl: Likewise.
35819         * modules/float: Likewise.
35820         * modules/fnmatch: Likewise.
35821         * modules/getopt-posix: Likewise.
35822         * modules/glob: Likewise.
35823         * modules/iconv_open: Likewise.
35824         * modules/inttypes: Likewise.
35825         * modules/localcharset: Likewise.
35826         * modules/locale: Likewise.
35827         * modules/math: Likewise.
35828         * modules/netdb: Likewise.
35829         * modules/netinet_in: Likewise.
35830         * modules/poll: Likewise.
35831         * modules/posix_spawnp-tests: Likewise.
35832         * modules/sched: Likewise.
35833         * modules/search: Likewise.
35834         * modules/selinux-h: Likewise.
35835         * modules/signal: Likewise.
35836         * modules/spawn: Likewise.
35837         * modules/stdarg: Likewise.
35838         * modules/stdbool: Likewise.
35839         * modules/stddef: Likewise.
35840         * modules/stdint: Likewise.
35841         * modules/stdio: Likewise.
35842         * modules/stdlib: Likewise.
35843         * modules/string: Likewise.
35844         * modules/strings: Likewise.
35845         * modules/sys_file: Likewise.
35846         * modules/sys_ioctl: Likewise.
35847         * modules/sys_select: Likewise.
35848         * modules/sys_socket: Likewise.
35849         * modules/sys_stat: Likewise.
35850         * modules/sys_time: Likewise.
35851         * modules/sys_times: Likewise.
35852         * modules/sys_utsname: Likewise.
35853         * modules/sys_wait: Likewise.
35854         * modules/sysexits: Likewise.
35855         * modules/time: Likewise.
35856         * modules/unistd: Likewise.
35857         * modules/wchar: Likewise.
35858         * modules/wctype: Likewise.
35859
35860 2009-08-22  Jim Meyering  <meyering@redhat.com>
35861
35862         announce-gen: detect write failure
35863         * build-aux/announce-gen: Add Coda at end.
35864         Remove equivalent-but-more-verbose block at top.
35865
35866 2009-08-19  Akim Demaille  <demaille@gostai.com>
35867
35868         bootstrap: --help to stdout.
35869         * bootstrap (usage): Don't send --help to stderr.
35870         Use a here doc instead of a long string.
35871
35872 2009-08-21  Eric Blake  <ebb9@byu.net>
35873
35874         test-popen-safer: split from test-popen
35875         * tests/test-popen.c (main): Move...
35876         * tests/test-popen.h: ...into new file.
35877         * tests/test-popen-safer2.c: New file.
35878         * modules/popen-tests (Files): Add test-popen.h.
35879         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
35880         Suggested by Bruno Haible.
35881
35882         test-fcntl-safer: split from test-open
35883         * tests/test-open.c (main): Move...
35884         * tests/test-open.h: ...into new file.
35885         * tests/test-fcntl-safer.c: New file.
35886         * modules/open-tests (Files): Add test-open.h.
35887         * modules/fcntl-safer-tests: New file.
35888         Suggested by Bruno Haible.
35889
35890         test-fopen-safer: split from test-fopen
35891         * tests/test-fopen.c (main): Move...
35892         * tests/test-fopen.h: ...into new file.
35893         * tests/test-fopen-safer.c: New file.
35894         * modules/fopen-tests (Files): Add test-fopen.h.
35895         * modules/fopen-safer-tests: New file.
35896         Suggested by Bruno Haible.
35897
35898 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35899
35900         popen-safer: test O_CLOEXEC at run-time.
35901         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
35902
35903 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35904
35905         fcntl: move more flags to the header
35906         * lib/cloexec.c: Do not define FD_CLOEXEC here.
35907         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
35908         * lib/fcntl.in.h: Do both things here.
35909
35910 2009-08-21  Jim Meyering  <meyering@redhat.com>
35911
35912         consistently remove $@-t before redirecting to it
35913         * modules/argz: Remove $@-t and $@ before redirecting to the former.
35914         * modules/alloca-opt: Likewise.
35915         * modules/byteswap: Likewise.
35916         * modules/fnmatch: Likewise.
35917         * modules/getopt-posix: Likewise.
35918         * modules/glob: Likewise.
35919         * modules/poll: Likewise.
35920         * modules/posix_spawnp-tests: Likewise.
35921         * modules/sys_socket: Likewise.
35922         * modules/sysexits: Likewise.
35923
35924 2009-08-21  Eric Blake  <ebb9@byu.net>
35925
35926         popen: simplify access to original popen
35927         * lib/popen.c (rpl_popen): No need to worry about popen being a
35928         macro.
35929         Reported by Bruno Haible.
35930
35931 2009-08-20  Eric Blake  <ebb9@byu.net>
35932
35933         build: avoid some compiler warnings
35934         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
35935         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
35936         type.
35937         (new_exclude_segment, excluded_file_pattern_p)
35938         (excluded_file_name_p): Reduce scope.
35939         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
35940         old-style declaration.
35941
35942 2009-08-20  Simon Josefsson  <simon@josefsson.org>
35943
35944         * tests/test-exclude1.sh: Handle Windows EOL.
35945         * tests/test-exclude2.sh: Likewise.
35946         * tests/test-exclude3.sh: Likewise.
35947         * tests/test-exclude4.sh: Likewise.
35948         * tests/test-exclude5.sh: Likewise.
35949         * tests/test-exclude6.sh: Likewise.
35950         * tests/test-exclude7.sh: Likewise.
35951
35952 2009-08-19  Akim Demaille  <demaille@gostai.com>
35953
35954         bootstrap: find sha1sum when named gsha1sum.
35955         * bootstrap (find_tool): New.
35956         ($SHA1SUM): New.
35957         Use it.
35958
35959 2009-08-20  Jim Meyering  <meyering@redhat.com>
35960
35961         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
35962         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
35963         expression that converts "." in a file name to "\." in the resulting
35964         regexp.  Start with a dummy statement, so that prior shell variable
35965         definitions are expanded portably.  Reported by Simon Josefsson.
35966
35967 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
35968
35969         Fix polling for writeability of a screen buffer.
35970         * lib/poll.c: Distinguish input and screen buffers for the
35971         Win32 implementation.
35972         * lib/select.c: Likewise.
35973
35974 2009-08-19  Eric Blake  <ebb9@byu.net>
35975
35976         popen-safer: prevent popen from clobbering std descriptors
35977         * modules/popen-safer: New file.
35978         * lib/popen-safer.c: Likewise.
35979         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
35980         * lib/stdio--.h (popen): Provide override.
35981         * lib/stdio-safer.h (popen_safer): Provide declaration.
35982         * tests/test-popen.c (includes): Partially test this.
35983         * modules/popen-safer-tests: New file, for more tests.
35984         * tests/test-popen-safer.c: Likewise.
35985         * MODULES.html.sh (file stream based Input/Output): Mention it.
35986
35987         tests: test some of the *-safer modules
35988         * modules/fopen-safer (Depends-on): Add fopen.
35989         * modules/fcntl-safer (Depends-on): Add fcntl.
35990         * modules/stdlib-safer (Depends-on): Add stdlib.
35991         (configure.ac): Set indicator.
35992         * modules/unistd-safer (configure.ac): Likewise.
35993         * modules/tmpfile-safer (configure.ac): Likewise.
35994         (Depends-on): Add tmpfile.
35995         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
35996         active.
35997         * tests/test-fopen.c (includes): Test safer versions when they are
35998         in use.
35999         * tests/test-open.c (includes): Likewise.
36000
36001         popen: fix cygwin 1.5 bug when stdin closed
36002         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36003         * modules/popen: New file.
36004         * modules/popen-tests: Likewise.
36005         * tests/test-popen.c: Likewise.
36006         * m4/popen.m4: Likewise.
36007         * lib/popen.c: Likewise.
36008         * lib/stdio.in.h (popen): New declaration.
36009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36010         * modules/stdio (Makefile.am): Likewise.
36011         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36012
36013 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36014
36015         maint.mk: give full control over update-copyright exclusions
36016         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36017         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36018         (update-copyright): Don't force inclusion of top-level
36019         ChangeLog.  Don't force exclusion of all COPYING files, but make
36020         them the default exclusion instead.
36021
36022 2009-08-16  Bruno Haible  <bruno@clisp.org>
36023
36024         Fix test failures on Solaris 10.
36025         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36026         tests when Solaris iconv() is used.
36027         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36028         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36029         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36030         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36031         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36032
36033 2009-08-16  Bruno Haible  <bruno@clisp.org>
36034
36035         Fix test failures on Solaris 10.
36036         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36037         'tr' program and pass it as first argument.
36038         * tests/test-pipe-filter-gi1.sh: Likewise.
36039         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36040         program as first argument.
36041         * tests/test-pipe-filter-gi1.c (main): Likewise.
36042
36043 2009-08-16  Eric Blake  <ebb9@byu.net>
36044
36045         fpurge: fix previous commits
36046         * modules/fpurge (Makefile.am): Make replacement conditional,
36047         partially reverting 2007-04-29 change; missed in previous
36048         attempt.
36049         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36050         is missing.
36051
36052 2009-08-16  Bruno Haible  <bruno@clisp.org>
36053
36054         Clarify fpurge's effect on the file position.
36055         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36056         * tests/test-fpurge.c (main): Make a second pass for checking the file
36057         position.
36058
36059 2009-08-16  Bruno Haible  <bruno@clisp.org>
36060
36061         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36062         declaration of fpurge is missing.
36063         * tests/test-fpurge.c (main): Check that the file has not more contents
36064         than expected. Close the file before removing it.
36065
36066 2009-08-15  Eric Blake  <ebb9@byu.net>
36067
36068         fpurge: don't wrap working cygwin implementation
36069         * lib/fpurge.c (fpurge): Fix comment typo.
36070         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36071         1.7 to avoid replacement.
36072         * tests/test-fpurge.c (main): Enhance test.
36073
36074 2009-08-15  Eric Blake  <ebb9@byu.net>
36075         and Jim Meyering  <meyering@redhat.com>
36076
36077         test-update-copyright: skip if perl is insufficient
36078         * tests/test-update-copyright.sh: Failure to run maintainer tool
36079         should not cause testsuite failure on cygwin 1.5.
36080
36081 2009-08-14  Eric Blake  <ebb9@byu.net>
36082
36083         doc: mention more functions added in cygwin 1.7.0
36084         * doc/posix-headers/limits.texi (limits.h): Update for recent
36085         cygwin additions.
36086         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36087         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36088         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36089         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36090         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36091
36092 2009-08-14  Eric Blake  <ebb9@byu.net>
36093
36094         maint.mk: simplify update-copyright rule
36095         * top/maint.mk (update-copyright-local): Delete, and document how
36096         to do it in cfg.mk instead.
36097         (update-copyright-exclude-regexp): Delete, and document how to do
36098         it in .x-update-copyright instead.
36099         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36100         exclude ChangeLog.
36101
36102 2009-08-14  Bruno Haible  <bruno@clisp.org>
36103
36104         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36105
36106 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36107
36108         maint.mk: support update-copyright-env
36109         * top/maint.mk (update-copyright-env): Define place-holder.
36110         (update-copyright): Expand $(update-copyright-env) before
36111         invoking update-copyright.
36112
36113 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36114
36115         update-copyright: implement forced reformatting
36116         * build-aux/update-copyright: Implement and document
36117         UPDATE_COPYRIGHT_FORCE.
36118         * tests/test-update-copyright.sh: Test it.
36119
36120 2009-08-14  Eric Blake  <ebb9@byu.net>
36121         and Bruno Haible  <bruno@clisp.org>
36122
36123         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36124         * tests/test-locale.c: Revert previous patch related to NULL.
36125         * tests/test-stdio.c: Likewise.
36126         * tests/test-stdlib.c: Likewise.
36127         * tests/test-string.c: Likewise.
36128         * tests/test-unistd.c: Likewise.
36129         * modules/time-tests (Depends-on): Add verify.
36130         * modules/wchar-tests (Depends-on): Likewise.
36131         * tests/test-time.c: Test for NULL compliance.
36132         * tests/test-wchar.c: Likewise.
36133         * modules/locale (Depends-on): Add stddef.
36134         * modules/stdio (Depends-on): Likewise.
36135         * modules/stdlib (Depends-on): Likewise.
36136         * modules/string (Depends-on): Likewise.
36137         * modules/time (Depends-on): Likewise.
36138         * modules/unistd (Depends-on): Likewise.
36139         * modules/wchar (Depends-on): Likewise.
36140         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36141         * lib/stdlib.in.h (includes): Likewise.
36142         * lib/string.in.h (includes): Likewise.
36143         * lib/time.in.h (includes): Likewise.
36144         * lib/unistd.in.h (includes): Likewise.
36145         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36146         replaced.
36147         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36148         * m4/stddef_h.m4: New file.
36149         * modules/stddef: Likewise.
36150         * lib/stddef.in.h: Likewise.
36151         * modules/stddef-tests: Likewise.
36152         * tests/test-stddef.c: Likewise.
36153         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36154         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36155         * doc/posix-headers/locale.texi (locale.h): Likewise.
36156         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36157         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36158         * doc/posix-headers/string.texi (string.h): Likewise.
36159         * doc/posix-headers/time.texi (time.h): Likewise.
36160         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36161         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36162
36163 2009-08-14  Eric Blake  <ebb9@byu.net>
36164
36165         doc: improve git diff of texinfo files
36166         * .gitattributes: Add rule for *.texi files, with hint on how to
36167         use it.
36168         Copied from m4, and based on a report by Bruno Haible.
36169
36170 2009-08-14  Bruno Haible  <bruno@clisp.org>
36171
36172         Disable multithread support by default on Cygwin 1.5.x for real.
36173         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36174
36175 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36176
36177         update-copyright: much ado about intervals
36178         * build-aux/update-copyright: Implement and document
36179         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36180         of copyright year intervals.
36181         Also, document UPDATE_COPYRIGHT_YEAR.
36182         * tests/test-update-copyright.sh: Test it.
36183
36184         update-copyright: convert 2-digit to 4-digit years
36185         * build-aux/update-copyright: Implement and document.
36186         * tests/test-update-copyright.sh: Update.
36187
36188 2009-08-14  Jim Meyering  <meyering@redhat.com>
36189
36190         test-exclude: avoid coreutils "make check" failure
36191         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36192         just as in test-argmatch.c.
36193
36194 2009-08-13  Eric Blake  <ebb9@byu.net>
36195
36196         test-dup2: fix bad assumption
36197         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36198         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36199
36200         test-version-etc: fix CRLF portability issue
36201         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36202         recognize \r.
36203         * tests/test-argp-version-etc-1.sh: Likewise.
36204
36205         getopt: update client modules
36206         * modules/argp (Depends-on): Use getopt-gnu.
36207         * modules/git-merge-changelog (Depends-on): Likewise.
36208         * modules/long-options (Depends-on): Likewise.
36209         * modules/xstrtol (Depends-on): Likewise.
36210
36211 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36212
36213         * tests/test-version-etc.sh: Don't fail on different
36214         project/version.  Don't fail on CRLF differences.  Rewrite to use
36215         multiple -e instead of multiple sed forks, suggested by Eric Blake
36216         <ebb9@byu.net>.
36217         * tests/test-argp-version-etc-1.sh: Likewise.
36218
36219 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36220
36221         * tests/test-version-etc.sh: Don't fail on different
36222         project/version.
36223
36224 2009-08-12  Bruno Haible  <bruno@clisp.org>
36225
36226         Tests for modules 'getopt-posix', 'getopt-gnu'.
36227         * modules/getopt-posix-tests: New file.
36228         * tests/test-getopt.c: New file.
36229         * tests/test-getopt.h: New file.
36230         * tests/test-getopt_long.h: New file.
36231
36232         New modules 'getopt-posix', 'getopt-gnu'.
36233         * modules/getopt-gnu: New file, renamed from modules/getopt.
36234         * modules/getopt-posix: New file.
36235         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36236         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36237         (gl_GETOPT): Remove macro.
36238         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36239         Disable the test against BSD systems that declare optreset. Test
36240         against mingw bug. Test against lack of support of optional arguments
36241         on many platforms.
36242         * doc/glibc-headers/getopt.texi: Update module name and list of
36243         relevant platforms.
36244         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
36245         'getopt-gnu' and more portability problems.
36246         * NEWS: Mention the changes.
36247
36248 2009-08-12  Bruno Haible  <bruno@clisp.org>
36249
36250         Ensure that optarg etc. get declared by <unistd.h>.
36251         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
36252         AC_USE_SYSTEM_EXTENSIONS.
36253         * modules/getopt (Depends-on): Add 'extensions'.
36254
36255 2009-08-12  Bruno Haible  <bruno@clisp.org>
36256
36257         Avoid test link errors.
36258         * modules/pipe-filter-ii-tests (Makefile.am): Define
36259         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
36260         * modules/pipe-filter-gi-tests (Makefile.am): Define
36261         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
36262         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36263
36264 2009-08-12  Bruno Haible  <bruno@clisp.org>
36265
36266         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
36267         gl_GETOPT_SUBSTITUTE before.
36268         (gl_GETOPT): Use it.
36269         * m4/argp.m4 (gl_ARGP): Update.
36270         Reported by Sergey Poznyakoff.
36271
36272         * m4/getopt.m4: Reorder macros.
36273         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
36274         (gl_GETOPT_SUBSTITUTE): Remove macro.
36275
36276 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36277
36278         Minor improvement in gitlog-to-changelog
36279
36280         * build-aux/gitlog-to-changelog: New option `--format' makes
36281         output format string configurable.
36282
36283 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36284
36285         Optimize exclude: use hash tables for non-wildcard patterns.
36286
36287         * lib/exclude.c: Include hash.h and mbuiter.h
36288         (struct exclude_pattern, exclude_segment): New data types.
36289         (struct exclude): Rewrite.
36290         (fnmatch_pattern_has_wildcards): New function.
36291         (new_exclude_segment, free_exclude_segment): New functions.
36292         (excluded_file_pattern_p, excluded_file_name_p): New functions.
36293         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
36294         * lib/exclude.h (is_fnmatch_pattern): New prototype.
36295         * modules/exclude: Depend on hash and mbuiter.
36296
36297         * modules/exclude-tests: New file.
36298         * tests/test-exclude.c: New file.
36299         * tests/test-exclude1.sh: New file.
36300         * tests/test-exclude2.sh: New file.
36301         * tests/test-exclude3.sh: New file.
36302         * tests/test-exclude4.sh: New file.
36303         * tests/test-exclude5.sh: New file.
36304         * tests/test-exclude6.sh: New file.
36305         * tests/test-exclude7.sh: New file.
36306
36307 2009-08-12  Bruno Haible  <bruno@clisp.org>
36308
36309         Ensure that getopt() gets declared by <unistd.h>.
36310         * lib/unistd.in.h: Conditionally include getopt.h.
36311         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
36312         Set GNULIB_UNISTD_H_GETOPT.
36313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36314         GNULIB_UNISTD_H_GETOPT.
36315         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
36316
36317 2009-08-12  Bruno Haible  <bruno@clisp.org>
36318
36319         Clarify logic.
36320         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
36321         gl_replace_getopt instead of GETOPT_H.
36322
36323 2009-08-12  Bruno Haible  <bruno@clisp.org>
36324
36325         * m4/getopt.m4: Add comments.
36326
36327 2009-08-12  Bruno Haible  <bruno@clisp.org>
36328
36329         Disable multithread support by default on Cygwin 1.5.x.
36330         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
36331         set gl_use_threads=no if not specified otherwise.
36332
36333 2009-08-11  Bruno Haible  <bruno@clisp.org>
36334
36335         Avoid compilation error on NetBSD 5.0.
36336         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
36337         * tests/test-stdio.c: Likewise.
36338         * tests/test-stdlib.c: Likewise.
36339         * tests/test-string.c: Likewise.
36340         * tests/test-unistd.c: Likewise.
36341         Reported by Greg Troxel <gdt@ir.bbn.com>
36342         at <https://savannah.gnu.org/support/?106973>.
36343
36344 2009-08-11  Bruno Haible  <bruno@clisp.org>
36345
36346         * modules/dup2-tests (Depends-on): Remove close.
36347
36348         Undo 2009-07-19 commit.
36349         * modules/acl-tests (Depends-on): Remove close.
36350         * modules/binary-io-tests (Depends-on): Likewise.
36351         * modules/closein-tests (Depends-on): Likewise.
36352         * modules/flock-tests (Depends-on): Likewise.
36353         * modules/fsync-tests (Depends-on): Likewise.
36354         * modules/lseek-tests (Depends-on): Likewise.
36355         * modules/pipe-tests (Depends-on): Likewise.
36356         * modules/posix_spawn-tests (Depends-on): Likewise.
36357         * modules/posix_spawnp-tests (Depends-on): Likewise.
36358         * modules/stat-time-tests (Depends-on): Likewise.
36359         * modules/yesno-tests (Depends-on): Likewise.
36360
36361 2009-08-10  Bruno Haible  <bruno@clisp.org>
36362
36363         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36364
36365 2009-08-10  Bruno Haible  <bruno@clisp.org>
36366
36367         Fix a gcc warning.
36368         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36369
36370 2009-08-10  Bruno Haible  <bruno@clisp.org>
36371
36372         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36373         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36374         not only the first time.
36375         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
36376         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
36377         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
36378         is 1, not only the the first time.
36379
36380 2009-08-10  Bruno Haible  <bruno@clisp.org>
36381
36382         Make it possible to use module 'gethostname' without module 'close'.
36383         * lib/unistd.in.h (close): Evoke a link error only if
36384         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36386         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36387         * modules/unistd (Makefile.am): Substitute
36388         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36389         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
36390         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36391         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36392         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36393         * modules/sys_ioctl (Makefile.am): Substitute
36394         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36395         * modules/socket (configure.ac): On native Windows, set
36396         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
36397         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36398         Reported by Sam Steingold <sds@gnu.org>.
36399
36400 2009-08-10  Bruno Haible  <bruno@clisp.org>
36401
36402         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
36403         * modules/ioctl (configure.ac): Likewise.
36404
36405 2009-08-10  Bruno Haible  <bruno@clisp.org>
36406
36407         Avoid collision between gnulib wrapper and libintl wrapper.
36408         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
36409         already defined in intl/printf.c.
36410         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
36411         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
36412
36413 2009-08-09  Bruno Haible  <bruno@clisp.org>
36414
36415         Make <sys/select.h> really self-contained, also on Solaris 10.
36416         * lib/sys_select.in.h: Include <string.h>.
36417         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
36418         Solaris 10 problem.
36419         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
36420         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
36421         Reported by Jim Meyering.
36422
36423 2009-08-09  Bruno Haible  <bruno@clisp.org>
36424
36425         Avoid warnings from 'aclocal' that are due to a use of macro name
36426         AM_XGETTEXT_OPTION that is not defined in automake.
36427         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
36428         automake.
36429         * modules/error (configure.ac): Likewise.
36430         * modules/propername (configure.ac): Likewise.
36431         * modules/vasprintf (configure.ac): Likewise.
36432         * modules/verror (configure.ac): Likewise.
36433         * modules/xprintf (configure.ac): Likewise.
36434         * modules/xvasprintf (configure.ac): Likewise.
36435
36436 2009-08-08  Bruno Haible  <bruno@clisp.org>
36437
36438         Avoid compilation error in C++ mode.
36439         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
36440         Reported by Sam Steingold <sds@gnu.org>.
36441
36442 2009-08-08  Bruno Haible  <bruno@clisp.org>
36443
36444         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
36445         for the various Unix platforms.
36446         * doc/posix-headers/limits.texi: Update platforms list regarding
36447         HOST_NAME_MAX.
36448         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36449
36450 2009-08-07  Jim Meyering  <meyering@redhat.com>
36451
36452         selinux-at: fix typo in a comment
36453         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
36454         Spotted by Paolo Bonzini.
36455
36456         selinux-at: remove redundant m4 code, add documentation
36457         * modules/selinux-at (configure.ac): Remove redundant code.
36458         LIB_SELINUX is already set via the dependent module, selinux-h.
36459         (Include): Add quotes around selinux-at.h.
36460         * lib/selinux-at.h: Add documentation.
36461         Reported by Bruno Haible in
36462         http://marc.info/?l=gnulib-bug&m=124958988300749
36463
36464 2009-08-07  Bruno Haible  <bruno@clisp.org>
36465
36466         Avoid link error on MacOS X 10.3 and 10.4.
36467         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
36468         on non-ELF systems.
36469         * lib/argp-pv.c (argp_program_version): Likewise.
36470         Reported by Simon Josefsson.
36471
36472 2009-08-07  Simon Josefsson  <simon@josefsson.org>
36473
36474         * tests/test-version-etc.sh: Use $EXEEXT.
36475
36476 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
36477
36478         update-copyright: update documentation to point to maint.mk
36479         * build-aux/update-copyright: Here.
36480
36481 2009-08-06  Jim Meyering  <meyering@redhat.com>
36482
36483         maint.mk: support update-copyright-local
36484         * top/maint.mk (update-copyright-local): Define place-holder.
36485         (update-copyright): Depend on $(update-copyright-local).
36486
36487 2009-08-06  Jim Meyering  <meyering@redhat.com>
36488
36489         selinux-at: new module
36490         Initially written for coreutils, this module will soon be
36491         used by findutils, too.
36492         * MODULES.html.sh [Misc]: Add selinux-at.
36493         * lib/selinux-at.h: New file, from coreutils.
36494         * lib/selinux-at.c: Likewise.
36495         * modules/selinux-at: Likewise.
36496         (License): Change from LGPL to GPL, since it depends
36497         on the GPL'd openat module.
36498
36499         doc: update README
36500         * README: Remove references to cogito.
36501         Remove cvs-repo-updating instructions from 2007.
36502         Don't imply that CVS is better if you have limited disk space.
36503
36504 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36505
36506         update-copyright: support C-style comments
36507         * build-aux/update-copyright: Implement and document.
36508         * tests/test-update-copyright.sh: Test.
36509
36510 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36511
36512         update-copyright: support omitted "(C)"
36513         * build-aux/update-copyright: Implement and document.  Also,
36514         allow variable whitespace before "(C)".
36515         * tests/test-update-copyright.sh: Test.
36516
36517 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36518
36519         update-copyright: don't trip on non-FSF copyright statements
36520         * build-aux/update-copyright: Fix so that the first correctly
36521         formatted FSF copyright statement is recognized no matter what
36522         appears before it.  Update documentation.
36523         * tests/test-update-copyright.sh: Test that.
36524
36525 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36526
36527         update-copyright: clean up code a little
36528         * build-aux/update-copyright: Append "_re" to the name of any
36529         variable holding a regular expression.
36530         Replace "old" and "new" with "stmt" in variable names.
36531         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
36532         handled correctly.
36533         Format code more consistently.
36534
36535 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36536
36537         update-copyright-tests: improve portability
36538         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
36539         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
36540
36541 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36542
36543         update-copyright: support @copyright{} and &copy;
36544         * build-aux/update-copyright: Implement and document.
36545         * tests/test-update-copyright.sh: Test.
36546
36547 2009-08-04  Jim Meyering  <meyering@redhat.com>
36548
36549         update-copyright-tests: correctly test EOL=\r\n handling
36550         * tests/test-update-copyright.sh: Put \r at the end of some lines
36551         for the dos-eol tests.  Based on a patch by Joel E. Denny.
36552
36553         maint.mk: make update-copyright exclusion list more configurable
36554         * top/maint.mk (update-copyright): Default to excluding COPYING,
36555         but allow an override, in case someone does want to update that file.
36556
36557         maint.mk: don't update copyright date in COPYING
36558         * top/maint.mk (update-copyright): Exclude COPYING.
36559
36560         maint.mk: add a copyright-updating rule
36561         * top/maint.mk (update-copyright): New rule.
36562         Derived from coreutils/Makefile.am.
36563
36564         update-copyright: rename some variables
36565         * build-aux/update-copyright: Rename a few variables for clarity.
36566         Tweak syntax.  List Joel E. Denny as coauthor.
36567
36568 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36569
36570         update-copyright: fix bug for 2-digit last year and add tests
36571         * build-aux/update-copyright: Fix bug.
36572         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
36573         specified.
36574         * modules/update-copyright-tests: New
36575         * tests/test-update-copyright.sh: New.
36576
36577 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36578
36579         update-copyright: handle leading tabs in line prefix
36580         * build-aux/update-copyright: Count leading tabs as 8 spaces
36581         when computing margin.  This helps with the formatting of
36582         ChangeLogs, for example.
36583         Fix documentation a little.
36584
36585 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36586
36587         update-copyright: support EOL=\r\n
36588         * build-aux/update-copyright: Implement that.
36589
36590 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36591
36592         update-copyright: automatically format copyright statements
36593         * build-aux/update-copyright: Implement that.
36594         Also, be a little more predictable and safer by always failing
36595         when the full copyright format is not perfectly recognized as an
36596         unbroken whole.  Discussed at
36597         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
36598         Rewrite documentation.
36599
36600 2009-08-03  Bruno Haible  <bruno@clisp.org>
36601
36602         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
36603
36604 2009-08-02  Bruno Haible  <bruno@clisp.org>
36605
36606         Tests for module 'uname'.
36607         * modules/uname-tests: New file.
36608         * tests/test-uname.c: New file.
36609
36610         New module 'uname'.
36611         * lib/uname.c: New file.
36612         * m4/uname.m4: New file.
36613         * modules/uname: New file.
36614         * doc/posix-functions/uname.texi: Mention the new module.
36615
36616 2009-08-02  Bruno Haible  <bruno@clisp.org>
36617
36618         Tests for module 'sys_utsname'.
36619         * modules/sys_utsname-tests: New file.
36620         * tests/test-sys_utsname.c: New file.
36621
36622         New module 'sys_utsname'.
36623         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
36624         * m4/sys_utsname_h.m4: New file.
36625         * modules/sys_utsname: New file.
36626         * doc/posix-headers/sys_utsname.texi: Mention the new module.
36627
36628 2009-08-02  Bruno Haible  <bruno@clisp.org>
36629
36630         Implicitly initialize the sockets library.
36631         * lib/gethostname.c: Include sockets.h.
36632         (rpl_gethostname): Invoke gl_sockets_startup.
36633         * lib/socket.c: Include sockets.h.
36634         (rpl_socket): Invoke gl_sockets_startup.
36635         * modules/gethostname (Depends-on): Add sockets.
36636         * modules/socket (Depends-on): Likewise.
36637         * tests/test-poll.c: Don't include sockets.h.
36638         (main): Don't invoke gl_sockets_startup.
36639         * tests/test-select.c: Don't include sockets.h.
36640         (main): Don't invoke gl_sockets_startup.
36641
36642 2009-08-02  Bruno Haible  <bruno@clisp.org>
36643
36644         Allow multiple calls to gl_sockets_startup.
36645         * lib/sockets.c (initialized_sockets_version): New variable.
36646         (gl_sockets_startup): Do nothing if already called for this or a higher
36647         version.
36648         (gl_sockets_cleanup): Reset initialized_sockets_version.
36649
36650 2009-08-03  Simon Josefsson  <simon@josefsson.org>
36651
36652         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
36653         different project/version.
36654
36655 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
36656             Bruno Haible  <bruno@clisp.org>
36657
36658         Tests for module 'pipe-filter-gi'.
36659         * modules/pipe-filter-gi-tests: New file.
36660         * tests/test-pipe-filter-gi1.sh: New file.
36661         * tests/test-pipe-filter-gi1.c: New file.
36662         * tests/test-pipe-filter-gi2.sh: New file.
36663         * tests/test-pipe-filter-gi2-main.c: New file.
36664         * tests/test-pipe-filter-gi2-child.c: New file.
36665
36666         New module 'pipe-filter-gi'.
36667         * lib/pipe-filter-gi.c: New file.
36668         * modules/pipe-filter-gi: New file.
36669
36670 2009-08-02  Bruno Haible  <bruno@clisp.org>
36671             Paolo Bonzini  <bonzini@gnu.org>
36672
36673         Tests for module 'pipe-filter-ii'.
36674         * modules/pipe-filter-ii-tests: New file.
36675         * tests/test-pipe-filter-ii1.sh: New file.
36676         * tests/test-pipe-filter-ii1.c: New file.
36677         * tests/test-pipe-filter-ii2.sh: New file.
36678         * tests/test-pipe-filter-ii2-main.c: New file.
36679         * tests/test-pipe-filter-ii2-child.c: New file.
36680
36681         New module 'pipe-filter-ii'.
36682         * lib/pipe-filter.h: New file.
36683         * lib/pipe-filter-ii.c: New file.
36684         * lib/pipe-filter-aux.h: New file.
36685         * modules/pipe-filter-ii: New file.
36686
36687 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36688
36689         * lib/gc-libgcrypt.c: Change copyright to FSF.
36690         * lib/gc-gnulib.c: Likewise.
36691
36692 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
36693
36694         * lib/gethostname.c: Include limits.h.
36695
36696 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36697             Bruno Haible  <bruno@clisp.org>
36698
36699         Ensure HOST_NAME_MAX as part of the gethostname module.
36700         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
36701         define also HOST_NAME_MAX.
36702         * tests/test-gethostname.c: Include <limits.h>.
36703         (main): Check also HOST_NAME_MAX.
36704         * doc/posix-headers/limits.texi: Document the mingw problem.
36705
36706 2009-08-02  Bruno Haible  <bruno@clisp.org>
36707
36708         * lib/gethostname.c (gethostname): Fix handling of large len argument.
36709         Add comments.
36710
36711 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36712
36713         * lib/gethostname.c: Add Windows wrapper.
36714         * m4/gethostname.m4: Look for gethostname in -lws2_32.
36715         * modules/gethostname: Depend on sys_socket & errno, for also
36716         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
36717         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
36718
36719 2009-07-31  Jim Meyering  <meyering@redhat.com>
36720
36721         getloadavg: fix symbol name in comment
36722         * lib/getloadavg.c: Correct a typo I introduced when adding
36723         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
36724         Matt Kraai spotted the problem.
36725
36726 2009-07-29  Matt Kraai  <mkraai@beckman.com>
36727
36728         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
36729         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
36730         code also if ! defined N_NAME_POINTER.
36731         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
36732         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
36733         but the n_name member is a 12-byte array.
36734
36735 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
36736
36737         update-copyright: generalize comment handling
36738         * build-aux/update-copyright: Handle copyright statements
36739         within more comment styles.
36740         Document usage.
36741         Report any file with an external copyright holder or parse failure.
36742
36743 2009-07-29  Jim Meyering  <meyering@redhat.com>
36744
36745         mktime: correct setting of REPLACE_MKTIME
36746         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
36747
36748         update-copyright: new module
36749         * modules/update-copyright: New file.
36750         * build-aux/update-copyright: New file.
36751         * MODULES.html.sh (maint+release support): Add update-copyright.
36752
36753 2009-07-27  Bruno Haible  <bruno@clisp.org>
36754
36755         Fix compilation error when <ctime> is used and mktime is replaced.
36756         * lib/time.in.h (mktime): New declaration.
36757         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
36758         REPLACE_MKTIME instead of defining mktime in config.h.
36759         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
36760         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
36761         Reported by Ross McFarland <rwmcfa1@neces.com>.
36762
36763 2009-07-27  Bruno Haible  <bruno@clisp.org>
36764
36765         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
36766         Reported by Matt Kraai <mkraai@beckman.com>.
36767
36768 2009-07-25  Jim Meyering  <meyering@redhat.com>
36769
36770         maint.mk: avoid warnings about missing files
36771         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
36772         diagnostic when .prev-version does not exist.
36773         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
36774         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
36775         nonexistent cfg.mk.
36776         Suggestions from Simon Josefsson.
36777
36778 2009-07-25  Bruno Haible  <bruno@clisp.org>
36779
36780         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
36781         defined as macros. Needed on QNX 6.4.1.
36782         Reported by Matt Kraai <mkraai@beckman.com>.
36783
36784 2009-07-23  Jim Meyering  <meyering@redhat.com>
36785
36786         maint.mk: invoke "make dist" with a working value of XZ_OPT
36787         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
36788
36789 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
36790
36791         Make fseeko.c compile on QNX.
36792         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
36793
36794 2009-07-22  Peter Simons  <simons@cryp.to>
36795
36796         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
36797         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
36798         * lib/md4.h: Likewise.
36799         * lib/md5.h: Likewise.
36800         * lib/sha1.h: Likewise.
36801         * lib/sha256.h: Likewise.
36802         * lib/sha512.h: Likewise.
36803
36804         tests-sha1: don't assign literal string to 'char *' variable
36805         * tests/test-sha1.c (main): Declare locals with "const" to match
36806         attributes of the right hand side.
36807
36808 2009-07-21  Eric Blake  <ebb9@byu.net>
36809
36810         dup2: fix more mingw problems
36811         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
36812         fd to itself.
36813         * doc/posix-functions/dup2.texi (dup2): Document the bug.
36814         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
36815         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
36816         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
36817         care of mingw bugs.
36818
36819 2009-07-21  Jim Meyering  <meyering@redhat.com>
36820
36821         vc-list-files: avoid failure when /bin/sh is dash
36822         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
36823         On some Debian based systems, /bin/sh is a symlink to dash, and running
36824         this command would omit the "/" following each 'tests' prefix:
36825           dash -x build-aux/vc-list-files -C . tests
36826         That is because bash and dash work differently:
36827           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
36828           bash ok
36829           dash odd
36830
36831 2009-07-21  Eric Blake  <ebb9@byu.net>
36832
36833         dup2-tests: test previous patch
36834         * modules/dup2-tests: New file.
36835         * tests/test-dup2.c: Likewise.
36836         * tests/test-open.c (main): Avoid unspecified behavior.
36837         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
36838         test.
36839
36840         dup2: work around mingw and cygwin 1.5 bug
36841         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
36842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36843         * modules/unistd (Makefile.am): Substitute it.
36844         * lib/unistd.in.h (dup2): Declare the replacement.
36845         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
36846         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
36847         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
36848         * modules/execute (Depends-on): Add dup2.
36849         * modules/fseterr (Depends-on): Likewise.
36850         * modules/pipe (Depends-on): Likewise.
36851         * modules/posix_spawn-internal (Depends-on): Likewise.
36852
36853 2009-07-21  Bruno Haible  <bruno@clisp.org>
36854
36855         * modules/.gitattributes: New file.
36856
36857 2009-07-20  Bruno Haible  <bruno@clisp.org>
36858
36859         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
36860         (main): Use it.
36861
36862 2009-07-20  Eric Blake  <ebb9@byu.net>
36863
36864         test-pipe: make a bit more robust.
36865         * tests/test-pipe.c (myerr): Allow error messages regardless of
36866         what we do to stderr.
36867         (test_pipe): Rearrange to avoid deadlock.
36868         (child_main): Try a larger read, to ensure we avoided deadlock.
36869         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
36870         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
36871         if misused.
36872
36873 2009-07-19  Jim Meyering  <meyering@redhat.com>
36874
36875         fts: avoid false-positive cycle-detection
36876         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
36877         for each new command line argument.
36878
36879 2009-07-19  Bruno Haible  <bruno@clisp.org>
36880
36881         Fix build error on mingw with the modules sys_select and unistd.
36882         * modules/acl-tests (Depends-on): Add close.
36883         * modules/binary-io-tests (Depends-on): Likewise.
36884         * modules/closein-tests (Depends-on): Likewise.
36885         * modules/flock-tests (Depends-on): Likewise.
36886         * modules/fsync-tests (Depends-on): Likewise.
36887         * modules/lseek-tests (Depends-on): Likewise.
36888         * modules/pipe-tests (Depends-on): Likewise.
36889         * modules/posix_spawn-tests (Depends-on): Likewise.
36890         * modules/posix_spawnp-tests (Depends-on): Likewise.
36891         * modules/stat-time-tests (Depends-on): Likewise.
36892         * modules/yesno-tests (Depends-on): Likewise.
36893
36894 2009-07-19  Bruno Haible  <bruno@clisp.org>
36895
36896         Unify conditionals.
36897         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
36898         macros, not at the compiler macros.
36899         * lib/pipe.c: Likewise.
36900         * lib/execute.c: Likewise.
36901         * lib/spawni.c: Likewise.
36902
36903 2009-07-19  Bruno Haible  <bruno@clisp.org>
36904
36905         Fix handling of closed stdin/stdout/stderr on mingw.
36906         * lib/w32spawn.h: Include unistd.h.
36907         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
36908         file descriptor with O_NOINHERIT flag.
36909         (fd_safer_noinherit): New function, based on fd-safer.c.
36910         (dup_safer_noinherit): New function, based on dup-safer.c.
36911         (undup_safer_noinherit): New function.
36912         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
36913         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
36914         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
36915         instead of fd_safer.
36916         * tests/test-pipe.c: Include <windows.h>.
36917         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
36918         result.
36919
36920         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
36921         from main.
36922         (test_pipe): Pass an extra argument for disambiguation.
36923         (main): Invoke parent_main or child_main.
36924
36925         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
36926         consistently.
36927
36928 2009-07-18  Eric Blake  <ebb9@byu.net>
36929
36930         test-pipe: fix mingw build
36931         * tests/test-pipe.c (main): Avoid fcntl on mingw.
36932
36933 2009-07-18  Bruno Haible  <bruno@clisp.org>
36934
36935         * modules/pipe-tests (Makefile.am): Fix typo.
36936
36937 2009-07-18  Eric Blake  <ebb9@byu.net>
36938
36939         error: fix mingw build
36940         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
36941         Reported by Bruno Haible.
36942
36943         error: avoid undefined use of stdout
36944         * lib/error.c (error, error_at_line): Check that fd 1 is open
36945         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
36946         is handling faults and the close_stdout module wants to report the
36947         detection of closed stdout as an error.
36948
36949 2009-07-17  Eric Blake  <ebb9@byu.net>
36950
36951         pipe: be robust in face of closed fds
36952         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
36953         should cause child to misbehave.
36954         * modules/pipe-tests: New module.
36955         * tests/test-pipe.c: New file.
36956         * tests/test-pipe.sh: New file.
36957         Reported by Akim Demaille.
36958
36959 2009-07-14  Bruno Haible  <bruno@clisp.org>
36960
36961         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
36962         Reported by anonymous kc.
36963
36964 2009-07-07  Jim Meyering  <meyering@redhat.com>
36965
36966         maint.mk: don't look for translatable strings in *.m4 or *.mk
36967         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
36968         when searching for translatable strings.
36969
36970 2009-07-05  Jim Meyering  <meyering@redhat.com>
36971
36972         remove superfluous parentheses in STREQ definition
36973         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
36974         * lib/getugroups.c (STREQ): Likewise.
36975         * lib/fnmatch.c (STREQ): Likewise.
36976         Spotted by Bruno Haible.
36977
36978 2009-07-04  Jim Meyering  <meyering@redhat.com>
36979
36980         argv-iter: new module
36981         * MODULES.html.sh: Add argv-iter.
36982         * lib/argv-iter.c, lib/argv-iter.h: New files.
36983         * modules/argv-iter: New file.
36984         * modules/argv-iter-tests: New file.
36985         * tests/test-argv-iter.c: Test it.
36986
36987 2009-07-04  Bruno Haible  <bruno@clisp.org>
36988
36989         Fix assertion.
36990         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
36991         contains more exact copies of a given entry than file2, leave the extra
36992         copies unpaired rather than aborting.
36993         Reported by Eric Blake.
36994
36995 2009-07-02  Bruno Haible  <bruno@clisp.org>
36996
36997         Speedup git-merge-changelog for git cherry-pick.
36998         * lib/git-merge-changelog.c (struct entries_mapping): New type.
36999         (entries_mapping_get): New function, extracted from compute_mapping.
37000         (entries_mapping_reverse_get): New function.
37001         (compute_mapping): Add a 'full' argument. Return the result in a
37002         'struct entries_mapping'.
37003         (main): Update. Access the mappings through entries_mapping_get.
37004         Reported by Eric Blake.
37005
37006 2009-07-02  Bruno Haible  <bruno@clisp.org>
37007
37008         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37009         best_i.
37010
37011 2009-07-02  Bruno Haible  <bruno@clisp.org>
37012
37013         Speed up approximate search for matching ChangeLog entries.
37014         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37015         argument. Call fstrcmp_bounded instead of fstrcmp.
37016         (compute_mapping, try_split_merged_entry, main): Update callers.
37017
37018 2009-07-02  Bruno Haible  <bruno@clisp.org>
37019
37020         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37021
37022 2009-06-30  Bruno Haible  <bruno@clisp.org>
37023
37024         Reduce the number of uc_is_cased calls.
37025         * lib/unicase.h (casing_suffix_context_t): Add
37026         'first_char_except_ignorable' field.
37027         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37028         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37029         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37030         Update initializer.
37031         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37032         case-ignorable characters.
37033         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37034         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37035         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37036         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37037         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37038
37039 2009-06-30  Bruno Haible  <bruno@clisp.org>
37040
37041         Tests for module 'unicase/ignorable'.
37042         * modules/unicase/ignorable-tests: New file.
37043         * tests/unicase/test-ignorable.c: New file, generated by
37044         gen-uni-tables.
37045
37046         Tests for module 'unicase/cased'.
37047         * modules/unicase/cased-tests: New file.
37048         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37049         * tests/unicase/test-predicate-part1.h: New file, derived from
37050         tests/unictype/test-predicate-part1.h.
37051         * tests/unicase/test-predicate-part2.h: New file, same as
37052         tests/unictype/test-predicate-part2.h.
37053
37054         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37055         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37056         (output_casing_properties): New function.
37057         (main): Call it.
37058         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37059         * lib/unicase/cased.c: Include unictype/bitmap.h.
37060         (uc_is_cased): Define through a bitmap lookup.
37061         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37062         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37063         (uc_is_case_ignorable): Define through a bitmap lookup.
37064         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37065         lib/unictype/bitmap.h.
37066         (Depends-on): Add inline. Clean up.
37067         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37068         lib/unictype/bitmap.h.
37069         (Depends-on): Add inline. Clean up.
37070         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37071         recognition.
37072         * tests/unicase/test-u16-tolower.c (main): Likewise.
37073         * tests/unicase/test-u32-tolower.c (main): Likewise.
37074
37075 2009-06-30  Bruno Haible  <bruno@clisp.org>
37076
37077         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37078         * lib/unicase/u16-casemap.c: Likewise.
37079         * lib/unicase/u32-casemap.c: Likewise.
37080
37081 2009-06-29  Bruno Haible  <bruno@clisp.org>
37082
37083         Define u32_casefold as a wrapper around u32_ct_casefold.
37084         * lib/unicase/u32-casefold.c: Update.
37085         * modules/unicase/u32-casefold (Depends-on): Add
37086         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37087         unicase/empty-suffix-context. Clean up.
37088
37089         Define u16_casefold as a wrapper around u16_ct_casefold.
37090         * lib/unicase/u16-casefold.c: Update.
37091         * modules/unicase/u16-casefold (Depends-on): Add
37092         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37093         unicase/empty-suffix-context. Clean up.
37094
37095         Define u8_casefold as a wrapper around u8_ct_casefold.
37096         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37097         * lib/unicase/u8-casefold.c: Update.
37098         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37099         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37100
37101         Define u32_totitle as a wrapper around u32_ct_totitle.
37102         * lib/unicase/u32-totitle.c: Update.
37103         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37104         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37105
37106         Define u16_totitle as a wrapper around u16_ct_totitle.
37107         * lib/unicase/u16-totitle.c: Update.
37108         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37109         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37110
37111         Define u8_totitle as a wrapper around u8_ct_totitle.
37112         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37113         functions.
37114         (FUNC): Delegate to U_CT_TOTITLE.
37115         * lib/unicase/u8-totitle.c: Update.
37116         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37117         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37118
37119         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37120         invocation.
37121         * modules/unicase/u32-tolower (Depends-on): Add
37122         unicase/empty-prefix-context, unicase/empty-suffix-context.
37123
37124         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37125         invocation.
37126         * modules/unicase/u16-tolower (Depends-on): Add
37127         unicase/empty-prefix-context, unicase/empty-suffix-context.
37128
37129         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37130         * modules/unicase/u8-tolower (Depends-on): Add
37131         unicase/empty-prefix-context, unicase/empty-suffix-context.
37132
37133         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37134         invocation.
37135         * modules/unicase/u32-toupper (Depends-on): Add
37136         unicase/empty-prefix-context, unicase/empty-suffix-context.
37137
37138         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37139         invocation.
37140         * modules/unicase/u16-toupper (Depends-on): Add
37141         unicase/empty-prefix-context, unicase/empty-suffix-context.
37142
37143         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37144         * modules/unicase/u8-toupper (Depends-on): Add
37145         unicase/empty-prefix-context, unicase/empty-suffix-context.
37146
37147         New module 'unicase/u32-ct-casefold'.
37148         * lib/unicase/u32-ct-casefold.c: New file.
37149         * modules/unicase/u32-ct-casefold: New file.
37150
37151         New module 'unicase/u16-ct-casefold'.
37152         * lib/unicase/u16-ct-casefold.c: New file.
37153         * modules/unicase/u16-ct-casefold: New file.
37154
37155         New module 'unicase/u8-ct-casefold'.
37156         * lib/unicase/u8-ct-casefold.c: New file.
37157         * lib/unicase/u-ct-casefold.h: New file, derived from
37158         lib/unicase/u-casefold.h.
37159         * modules/unicase/u8-ct-casefold: New file.
37160
37161         New module 'unicase/u32-ct-totitle'.
37162         * lib/unicase/u32-ct-totitle.c: New file.
37163         * modules/unicase/u32-ct-totitle: New file.
37164
37165         New module 'unicase/u16-ct-totitle'.
37166         * lib/unicase/u16-ct-totitle.c: New file.
37167         * modules/unicase/u16-ct-totitle: New file.
37168
37169         New module 'unicase/u8-ct-totitle'.
37170         * lib/unicase/u8-ct-totitle.c: New file.
37171         * lib/unicase/u-ct-totitle.h: New file, derived from
37172         lib/unicase/u-totitle.h.
37173         * modules/unicase/u8-ct-totitle: New file.
37174
37175         New module 'unicase/u32-ct-tolower'.
37176         * lib/unicase/u32-ct-tolower.c: New file.
37177         * modules/unicase/u32-ct-tolower: New file.
37178
37179         New module 'unicase/u16-ct-tolower'.
37180         * lib/unicase/u16-ct-tolower.c: New file.
37181         * modules/unicase/u16-ct-tolower: New file.
37182
37183         New module 'unicase/u8-ct-tolower'.
37184         * lib/unicase/u8-ct-tolower.c: New file.
37185         * modules/unicase/u8-ct-tolower: New file.
37186
37187         New module 'unicase/u32-ct-toupper'.
37188         * lib/unicase/u32-ct-toupper.c: New file.
37189         * modules/unicase/u32-ct-toupper: New file.
37190
37191         New module 'unicase/u16-ct-toupper'.
37192         * lib/unicase/u16-ct-toupper.c: New file.
37193         * modules/unicase/u16-ct-toupper: New file.
37194
37195         New module 'unicase/u8-ct-toupper'.
37196         * lib/unicase/u8-ct-toupper.c: New file.
37197         * modules/unicase/u8-ct-toupper: New file.
37198
37199         Add context arguments to u*_casemap functions.
37200         * lib/unicase/unicasemap.h: Include unicase.h.
37201         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37202         suffix_context arguments.
37203         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37204         functions.
37205         (FUNC): Add prefix_context and suffix_context arguments. Use
37206         uc_is_cased and uc_is_case_ignorable.
37207         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37208         * lib/unicase/u16-casemap.c: Likewise.
37209         * lib/unicase/u32-casemap.c: Likewise.
37210         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37211         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37212         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37213         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37214         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37215         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37216
37217         New module 'unicase/u32-suffix-context'.
37218         * lib/unicase/u32-suffix-context.c: New file.
37219         * modules/unicase/u32-suffix-context: New file.
37220
37221         New module 'unicase/u16-suffix-context'.
37222         * lib/unicase/u16-suffix-context.c: New file.
37223         * modules/unicase/u16-suffix-context: New file.
37224
37225         New module 'unicase/u8-suffix-context'.
37226         * lib/unicase/u8-suffix-context.c: New file.
37227         * lib/unicase/u-suffix-context.h: New file.
37228         * modules/unicase/u8-suffix-context: New file.
37229
37230         New module 'unicase/empty-suffix-context'.
37231         * lib/unicase/empty-suffix-context.c: New file.
37232         * modules/unicase/empty-suffix-context: New file.
37233
37234         New module 'unicase/u32-prefix-context'.
37235         * lib/unicase/u32-prefix-context.c: New file.
37236         * modules/unicase/u32-prefix-context: New file.
37237
37238         New module 'unicase/u16-prefix-context'.
37239         * lib/unicase/u16-prefix-context.c: New file.
37240         * modules/unicase/u16-prefix-context: New file.
37241
37242         New module 'unicase/u8-prefix-context'.
37243         * lib/unicase/u8-prefix-context.c: New file.
37244         * lib/unicase/u-prefix-context.h: New file.
37245         * lib/unicase/context.h: New file.
37246         * modules/unicase/u8-prefix-context: New file.
37247
37248         New module 'unicase/empty-prefix-context'.
37249         * lib/unicase/empty-prefix-context.c: New file.
37250         * modules/unicase/empty-prefix-context: New file.
37251
37252         New module 'unicase/ignorable'.
37253         * lib/unicase/ignorable.c: New file.
37254         * modules/unicase/ignorable: New file.
37255
37256         New module 'unicase/cased'.
37257         * lib/unicase/caseprop.h: New file.
37258         * lib/unicase/cased.c: New file.
37259         * modules/unicase/cased: New file.
37260
37261         New functions for case mapping of substrings.
37262         * lib/unicase.h (casing_prefix_context_t): New type.
37263         (unicase_empty_prefix_context): New variable.
37264         (u8_casing_prefix_context, u16_casing_prefix_context,
37265         u32_casing_prefix_context, u8_casing_prefixes_context,
37266         u16_casing_prefixes_context, u32_casing_prefixes_context): New
37267         declarations.
37268         (casing_suffix_context_t): New type.
37269         (unicase_empty_suffix_context): New variable.
37270         (u8_casing_suffix_context, u16_casing_suffix_context,
37271         u32_casing_suffix_context, u8_casing_suffixes_context,
37272         u16_casing_suffixes_context, u32_casing_suffixes_context,
37273         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
37274         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
37275         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
37276         declarations.
37277
37278 2009-06-28  Jim Meyering  <meyering@redhat.com>
37279
37280         boostrap: indent only with spaces
37281         * build-aux/bootstrap: Indent only with spaces, never TABs.
37282
37283         bootstrap: split long lines
37284         * build-aux/bootstrap: Keep line length < 80.
37285
37286         bootstrap: sync from coreutils
37287         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
37288         just as autoreconf does.  Verify a list of prerequisite
37289         package-name,version-number pairs if defined in bootstrap.conf.
37290         Refer to README-prereq, if prerequisites are not satisfied.
37291
37292 2009-06-27  Eric Blake  <ebb9@byu.net>
37293
37294         tests: add test for bogus NULL definition
37295         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
37296         * tests/test-stdlib.c: Likewise.
37297         * tests/test-string.c: Likewise.
37298         * tests/test-locale.c: Likewise.
37299         * tests/test-unistd.c: Likewise.
37300         * modules/stdio-tests (Depends-on): Add verify.
37301         * modules/stdlib-tests (Depends-on): Likewise.
37302         * modules/string-tests (Depends-on): Likewise.
37303         * modules/locale-tests (Depends-on): Likewise.
37304         * modules/unistd-tests (Depends-on): Likewise.
37305
37306 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
37307
37308         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
37309         self-explaining comment.
37310         * m4/selinux-selinux-h: Update serial.
37311         (gl_LIBSELINUX): New macro, adding a warning for missing development
37312         packages to code extracted from...
37313         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
37314         Add warning for missing development packages here, too.
37315
37316 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
37317
37318         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
37319
37320 2009-06-25  Eric Blake  <ebb9@byu.net>
37321
37322         version-etc: fix regression
37323         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
37324         gcc.
37325         (version_etc): Use it, to catch bugs with trailing NULL.
37326         * lib/version-etc.c (version_etc_arn): Delete unused argument.
37327         (version_etc_va): Fix logic bug.
37328         * modules/version-etc-tests: Add test.
37329         * tests/test-version-etc.c: New file.
37330         * tests/test-version-etc.sh: Likewise.
37331
37332 2009-06-25  Sam Steingold  <sds@gnu.org>
37333
37334         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
37335         mbtowc declaration.
37336
37337 2009-06-25  Eric Blake  <ebb9@byu.net>
37338
37339         fpurge: migrate into <stdio.h>
37340         * lib/fpurge.h: Delete...
37341         * lib/stdio.in.h (fpurge): ...and declare here, instead.
37342         * lib/fpurge.c (fpurge): Change declaring header.
37343         * modules/fpurge (Files): Drop deleted file.
37344         (Depends-on): Add stdio.
37345         (configure.ac): Set witness.
37346         * modules/stdio (Makefile.am): Support fpurge macros.
37347         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37348         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37349         * lib/fflush.c: Update client.
37350         * tests/test-fpurge.c: Likewise.
37351         * NEWS: Mention the change.
37352
37353 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37354
37355         * lib/argp-version-etc.c (program_authors): Add const
37356         qualifier.
37357         * lib/version-etc.c: Fix typos in the comments.
37358         * modules/argp-version-etc: Depends on version-etc.
37359
37360 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37361
37362         argp-version-etc: new module.
37363
37364         * lib/argp-version-etc.c: New file.
37365         * lib/argp-version-etc.h: New file.
37366         * modules/argp-version-etc: New file.
37367         * modules/argp-version-etc-tests: New file.
37368         * tests/test-argp-version-etc.c: New test.
37369         * tests/test-argp-version-etc-1.sh: New test.
37370
37371 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37372
37373         Provide additional interfaces and documentation for version-etc
37374         module.
37375
37376         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
37377         interfaces.
37378         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
37379         prototypes.
37380
37381 2009-06-24  Bruno Haible  <bruno@clisp.org>
37382
37383         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
37384         HAVE_LIB${NAME} macro.
37385         Reported by Sam Steingold <sds@gnu.org>.
37386
37387 2009-06-23  Simon Josefsson  <simon@josefsson.org>
37388
37389         * modules/hash-tests (test_hash_LDADD): Link to libintl when
37390         needed.
37391
37392 2009-06-21  Bruno Haible  <bruno@clisp.org>
37393
37394         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
37395         work.
37396         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
37397         together with LIB${NAME}, LTLIB${NAME}.
37398         Reported by Sam Steingold <sds@gnu.org>.
37399
37400 2009-06-20  Jim Meyering  <meyering@redhat.com>
37401
37402         tests: make sc_require_test_exit_idiom more generic
37403         * top/maint.mk (Exit_witness_file): New overridable variable.
37404         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
37405         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
37406
37407 2009-06-19  Jim Meyering  <meyering@redhat.com>
37408
37409         hash: reverse order of src/dst parameters in an internal interface
37410         * lib/hash.c (transfer_entries): Reverse order of parameters to
37411         put DST before SRC.  Adjust callers.
37412
37413         tests: test-hash: avoid wholesale duplication
37414         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37415         Instead, use a loop and add a single conditional.
37416
37417         tests: test-hash: allow seed selection via a command line argument
37418         * tests/test-hash.c (get_seed): New function.
37419         (main): Use it.
37420
37421 2009-06-19  Eric Blake  <ebb9@byu.net>
37422
37423         hash: avoid memory leak on allocation failure
37424         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
37425         failure.  Factor repeated algorithm...
37426         (transfer_entries): ...into new helper routine.
37427         (hash_delete): React to hash_rehash return value.
37428
37429         hash: reduce memory pressure in hash_rehash no-op case
37430         * lib/hash.c (next_prime): Avoid overflow.
37431         (hash_initialize): Factor bucket size computation...
37432         (compute_bucket_size): ...into new helper function.
37433         (hash_rehash): Use new function and open coding to reduce memory
37434         pressure, and avoid a memory leak in USE_OBSTACK code.
37435         Reported by Jim Meyering.
37436
37437 2009-06-18  Eric Blake  <ebb9@byu.net>
37438
37439         hash: make rotation more obvious
37440         * modules/hash (Depends-on): Add bitrotate and stdint.
37441         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
37442         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
37443         (SIZE_MAX): Rely on headers for definition.
37444         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
37445         (raw_hasher): Use rotr_sz.
37446         Suggested by Jim Meyering.
37447
37448         hash: fix memory leak in last patch
37449         * lib/hash.c (hash_rehash): Avoid memory leak.
37450
37451         hash: avoid no-op rehashing
37452         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
37453
37454         hash: provide default callback functions
37455         * lib/hash.c (raw_hasher, raw_comparator): New functions.
37456         (hash_initialize): Use them as defaults.
37457         * tests/test-hash.c (main): Test this.
37458
37459         hash: minor optimization
37460         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
37461         when possible.
37462         (hash_initialize): Document this promise.
37463         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
37464         * tests/test-hash.c (hash_compare_strings): Test this.
37465
37466 2009-06-18  Bruno Haible  <bruno@clisp.org>
37467
37468         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
37469         going to be replaced anyway.
37470
37471 2009-06-18  Bruno Haible  <bruno@clisp.org>
37472
37473         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
37474         in one place.
37475         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
37476         be replaced anyway.
37477
37478 2009-06-18  Eric Blake  <ebb9@byu.net>
37479
37480         hash: check for resize before insertion
37481         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
37482         threshold before insertion, so that a pathological hash_rehash
37483         that fills every bucket can still trigger another rehash.
37484
37485 2009-06-18  Jim Meyering  <meyering@redhat.com>
37486
37487         hash-tests: add a loop around the small tests
37488         * tests/test-hash.c (main): Repeat small tests with selected
37489         small initial table sizes.
37490
37491 2009-06-17  Eric Blake  <ebb9@byu.net>
37492
37493         hash: minor cleanups
37494         * lib/hash.h (hash_entry): Make opaque, by moving...
37495         * lib/hash.c (hash_entry): ...here.
37496         (hash_insert): Clarify restrictions on what can be inserted.
37497         (hash_get_next): Clarify when it is safe to remove an element
37498         during traversal.
37499         (check_tuning): Skip verification when tuning is known safe.
37500         (hash_initialize): Clarify restrictions on tuning.
37501
37502 2009-06-17  Jim Meyering  <jim@meyering.net>
37503         and Eric Blake  <ebb9@byu.net>
37504
37505         hash-tests: new module
37506         * modules/hash-tests: New file.
37507         * tests/test-hash.c: New file.
37508
37509 2009-06-17  Eric Blake  <ebb9@byu.net>
37510
37511         strstr-simple: document new module
37512         * MODULES.html.sh: Document new module.
37513
37514         strstr, strcasestr: replace on platforms with broken memchr
37515         * modules/strstr: Split into...
37516         * modules/strstr-simple: ...new module that does not care about
37517         performance, but does care about glibc bug.
37518         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
37519         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
37520         if platform memchr is broken, per Debian bug 521737.
37521         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
37522         memchr.
37523         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
37524         * doc/posix-functions/strstr.texi (strstr): Document the fix.
37525         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37526         * modules/mountlist (Depends-on): Add strstr-simple.
37527         * modules/gen-uni-tables (Depends-on): Likewise.
37528         * modules/argz (Depends-on): Add strstr.
37529
37530 2009-06-17  Bruno Haible  <bruno@clisp.org>
37531
37532         * modules/posix_spawn-internal (Depends-on): Add errno.
37533
37534 2009-06-17  Bruno Haible  <bruno@clisp.org>
37535
37536         Define missing ESTALE on Interix 3.5.
37537         * lib/errno.in.h (ESTALE): Assign a value if missing.
37538         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
37539         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
37540         missing.
37541         * doc/posix-headers/errno.texi: Mention the Interix bug.
37542         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
37543
37544 2009-06-15  Eric Blake  <ebb9@byu.net>
37545
37546         memchr, memchr2: add valgrind exception
37547         * lib/memchr.valgrind: New file.
37548         * lib/memchr2.valgrind: New file.
37549         * modules/memchr (Files): Distribute valgrind file.
37550         * modules/memchr2 (Files): Likewise.
37551
37552         docs: memchr is no longer obsolete
37553         * MODULES.html.sh: Move memchr from obsolete to string.h section.
37554         * lib/string.in.h (memchr): Simplify logic.
37555
37556 2009-06-14  Jim Meyering  <meyering@redhat.com>
37557
37558         link-follow: fix the "checking..." message to not mention trailing slash
37559         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
37560         never considered trailing slashes.
37561
37562 2009-06-14  Bruno Haible  <bruno@clisp.org>
37563
37564         * m4/memchr.m4: Mention also the bug on IA-64.
37565         * doc/posix-functions/memchr.texi: Likewise.
37566
37567 2009-06-12  Eric Blake  <ebb9@byu.net>
37568
37569         memchr: detect broken x86_64 and alpha implementations
37570         * modules/memchr-tests (Depends-on): Move mmap detection...
37571         * modules/memchr (Depends-on): ...here.
37572         (configure.ac): Set indicator.
37573         * lib/string.in.h (memchr): Declare replacement.
37574         * modules/string (Makefile.am): Trigger replacement.
37575         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37576         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
37577         bugs.
37578         * doc/posix-functions/memchr.texi (memchr): Document the bug.
37579         * modules/getpagesize (License): Relax license.
37580
37581 2009-06-11  Bruno Haible  <bruno@clisp.org>
37582
37583         * lib/idpriv.h: Add more references.
37584
37585 2009-06-08  Bruno Haible  <bruno@clisp.org>
37586
37587         Tests for module 'idpriv-droptemp'.
37588         * modules/idpriv-droptemp-tests: New file.
37589         * tests/test-idpriv-droptemp.sh: New file.
37590         * tests/test-idpriv-droptemp.su.sh: New file.
37591         * tests/test-idpriv-droptemp.c: New file.
37592
37593         New module 'idpriv-droptemp'.
37594         * lib/idpriv-droptemp.c: New file.
37595         * modules/idpriv-droptemp: New file.
37596
37597 2009-06-08  Bruno Haible  <bruno@clisp.org>
37598
37599         Tests for module 'idpriv-drop'.
37600         * modules/idpriv-drop-tests: New file.
37601         * tests/test-idpriv-drop.sh: New file.
37602         * tests/test-idpriv-drop.su.sh: New file.
37603         * tests/test-idpriv-drop.c: New file.
37604
37605         New module 'idpriv-drop'.
37606         * lib/idpriv.h: New file.
37607         * lib-idpriv-drop.c: New file.
37608         * m4/idpriv.m4: New file.
37609         * modules/idpriv-drop: New file.
37610
37611 2009-06-08  Bruno Haible  <bruno@clisp.org>
37612
37613         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
37614         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37615         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37616         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37617         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37618         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37619         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37620
37621 2009-06-08  Eric Blake  <ebb9@byu.net>
37622
37623         test-strstr: use memory fence, when possible
37624         * tests/test-strstr.c (main): Use memory fence, in order to be
37625         more likely to trigger Debian bug 521737.
37626         * modules/strstr-tests (Files): Pull in additional files.
37627
37628         memchr: no longer obsolete, for wider field testing
37629         * modules/memchr (Status, Notice): Delete, this module is no
37630         longer obsolete.
37631         * modules/vasnprintf (Depends-on): Add memchr.
37632
37633 2009-06-07  Jim Meyering  <meyering@redhat.com>
37634
37635         hash: declare some functions with the warn_unused_result attribute
37636         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
37637
37638 2009-06-07  Bruno Haible  <bruno@clisp.org>
37639
37640         * tests/test-alignof.c: Don't test int64_t if it does not exist.
37641         Reported by Eric Blake.
37642
37643 2009-06-06  Eric Blake  <ebb9@byu.net>
37644
37645         test-alignof: fix typo with long double
37646         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
37647         compiler error.
37648
37649 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
37650
37651         Escape non-texinfo { and }s.
37652         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
37653         markup error.
37654
37655 2009-06-04  Jim Meyering  <meyering@redhat.com>
37656
37657         gitlog-to-changelog: don't infloop on an empty commit log
37658         * build-aux/gitlog-to-changelog: Warn about an empty log message.
37659         Reported by Boris Petersen <transacid@centerim.org>.
37660
37661 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
37662
37663         version-etc: extend for packagers
37664         Add three new configure options, intended for packagers:
37665           --with-packager="packager name"
37666           --with-packager-version="packager-specific version"
37667           --with-packager-bug-reports="packager bug reporting"
37668         An example with coreutils:
37669           $ ./configure \
37670             --with-packager=Gentoo \
37671             --with-packager-bug-report=http://bugs.gentoo.org/ \
37672             --with-packager-version="patchset 1.6"
37673           $ ./src/ls --version | head -n2
37674           ls (GNU coreutils) 7.1-dirty
37675           Packaged by Gentoo (patchset 1.6)
37676         Note that the bug reporting info via --help doesn't show up because
37677         coreutils uses its own custom emit_bug_reporting_address() implementation
37678         in src/system.h.  If it didn't, it'd look like:
37679           $ ./src/ls --help | tail -n4
37680           Report bugs to <bug-coreutils@gnu.org>.
37681           Report Gentoo bugs to <http://bugs.gentoo.org/>.
37682           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
37683           General help using GNU software: <http://www.gnu.org/gethelp/>.
37684         * lib/version-etc.c: Print new information, if provided.
37685         * m4/version-etc.m4: New file.
37686         * modules/version-etc (Files): Add m4/version-etc.m4.
37687         (configure.ac): Add gl_VERSION_ETC.
37688
37689 2009-05-31  Bruno Haible  <bruno@clisp.org>
37690
37691         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
37692         and 'int64_t'.
37693         * modules/alignof-tests (Dependencies): Add stdint.
37694         Reported by Eric Blake.
37695
37696 2009-05-31  Bruno Haible  <bruno@clisp.org>
37697
37698         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
37699         restriction due to compiler bugs.
37700         Reported by Eric Blake.
37701
37702 2009-05-31  Simon Josefsson  <simon@josefsson.org>
37703             Bruno Haible  <bruno@clisp.org>
37704
37705         Fix test-alignof failure.
37706         * lib/alignof.h (alignof_slot): New macro.
37707         (alignof_type): New macro, with the same semantics as the previous
37708         'alignof'.
37709         (alignof): Alias to alignof_slot.
37710         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
37711         check that the results are usable as constant expressions.
37712
37713 2009-05-31  Bruno Haible  <bruno@clisp.org>
37714
37715         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
37716         * tests/test-memchr.c (main): Check that memchr does not read past the
37717         first occurrence of the byte.
37718         * tests/test-strstr.c (main): Update comment.
37719         Suggested by Eric Blake.
37720
37721 2009-05-30  Bruno Haible  <bruno@clisp.org>
37722
37723         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
37724         detail how to use dumpbin.
37725         Reported by David Byron <dbyron@dbyron.com>.
37726
37727 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37728
37729         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
37730
37731 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37732
37733         * m4/manywarnings.m4: Add GCC 4.4 warnings.
37734
37735 2009-05-28  Bruno Haible  <bruno@clisp.org>
37736
37737         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
37738         build-aux/ files.
37739
37740 2009-05-28  Simon Josefsson  <simon@josefsson.org>
37741
37742         * gnulib-tool (func_import): Transform license on build-aux/ files too.
37743
37744 2009-05-27  Simon Josefsson  <simon@josefsson.org>
37745
37746         * gnulib-tool (sed_transform_main_lib_file)
37747         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
37748         regexps.
37749
37750 2009-05-26  Simon Josefsson  <simon@josefsson.org>
37751
37752         * tests/test-strstr.c: Add another self-test.
37753         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
37754         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
37755
37756 2009-05-23  Bruno Haible  <bruno@clisp.org>
37757
37758         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
37759         change.
37760
37761 2009-05-21  Bruno Haible  <bruno@clisp.org>
37762
37763         Simplify use of mode_t varargs.
37764         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
37765         uses 'mode_t' or 'int'.
37766         * lib/openat.c (openat): Likewise.
37767         * lib/open-safer.c (open_safer): Likewise.
37768         * m4/mode_t.m4: New file.
37769         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
37770         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
37771         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
37772         * modules/open (Files): Add m4/mode_t.m4.
37773         * modules/openat (Files): Likewise.
37774         * modules/fcntl-safer (Files): Likewise.
37775         Suggested by Eric Blake.
37776
37777 2009-05-21  Pádraig Brady  <P@draigbrady.com>
37778
37779         * doc/glibc-functions/fallocate.texi: New file.
37780         * doc/gnulib.texi: Include it.
37781
37782 2009-05-21  Eric Blake  <ebb9@byu.net>
37783             Bruno Haible  <bruno@clisp.org>
37784
37785         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
37786         invocations.
37787         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37788
37789 2009-05-21  Eric Blake  <ebb9@byu.net>
37790             Bruno Haible  <bruno@clisp.org>
37791
37792         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
37793         include_next. Fix of 2008-11-20 commit.
37794         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
37795         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
37796         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
37797         NEXT_MATH_H.
37798         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
37799         instead of NEXT_MATH_H.
37800
37801 2009-05-21  Bruno Haible  <bruno@clisp.org>
37802
37803         Avoid redefinition warnings for SIZE_MAX.
37804         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
37805         Reported by Simon Josefsson.
37806
37807 2009-05-21  Bruno Haible  <bruno@clisp.org>
37808
37809         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
37810         AC_CACHE_VAL.
37811
37812 2009-05-20  Bruno Haible  <bruno@clisp.org>
37813
37814         Make zeroptr.h work on mingw.
37815         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
37816         mprotect.
37817         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
37818         * modules/memchr2-tests (configure.ac): Likewise.
37819         * modules/memcmp-tests (configure.ac): Likewise.
37820         * modules/memmem-tests (configure.ac): Likewise.
37821         * modules/memrchr-tests (configure.ac): Likewise.
37822         Reported by Simon Josefsson.
37823
37824 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37825
37826         * tests/test-glob.c: Include string.h for strcmp prototype.
37827
37828 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37829
37830         * modules/getdelim (Depends-on): Add explicit stdint, although it
37831         was implicitly already pulled in via realloc-posix.
37832         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
37833
37834 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37835
37836         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
37837         G. Christensen" <tgc@jupiterrise.com>.
37838         * m4/sys_socket_h.m4: Check for sa_family_t.
37839         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
37840         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
37841         * tests/test-sys_socket.c: Check that sa_family_t works.
37842
37843 2009-05-18  Eric Blake  <ebb9@byu.net>
37844
37845         maint.mk: allow gnulib_dir in VPATH build
37846         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
37847
37848 2009-05-15  Jim Meyering  <meyering@redhat.com>
37849
37850         maint.mk: Give gnulib_dir a default definition.
37851         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
37852         Thus, most packages no longer need to specify this variable in cfg.mk
37853
37854 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
37855
37856         rename.m4: fix typos that would make non-mingw cross-configure fail
37857         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
37858
37859 2009-05-13  Eric Blake  <ebb9@byu.net>
37860
37861         mmap-anon: avoid out-of-order autoconf expansion
37862         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
37863         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
37864         * modules/memchr-tests (Depends-on): Add extensions.
37865         * modules/memchr2-tests (Depends-on): Add extensions.
37866         * modules/memcmp-tests (Depends-on): Add extensions.
37867         * modules/memmem-tests (Depends-on): Add extensions.
37868         * modules/memrchr-tests (Depends-on): Add extensions.
37869
37870 2009-05-13  Bruno Haible  <bruno@clisp.org>
37871
37872         Make some tests ISO C 99 compliant.
37873         * tests/zerosize-ptr.h: New file.
37874         * tests/test-memchr.c: Include zerosize-ptr.h.
37875         (main): Use a zero-size object pointer instead of NULL.
37876         * tests/test-memchr2.c: Include zerosize-ptr.h.
37877         (main): Use a zero-size object pointer instead of NULL.
37878         * tests/test-memcmp.c: Include zerosize-ptr.h.
37879         (main): Use a zero-size object pointer instead of NULL.
37880         * tests/test-memmem.c: Include zerosize-ptr.h.
37881         (main): Use a zero-size object pointer instead of NULL.
37882         * tests/test-memrchr.c: Include zerosize-ptr.h.
37883         (main): Use a zero-size object pointer instead of NULL.
37884         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
37885         m4/mmap-anon.m4.
37886         (Depends-on): Add getpagesize.
37887         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37888         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
37889         m4/mmap-anon.m4.
37890         (Depends-on): Add getpagesize.
37891         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37892         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
37893         m4/mmap-anon.m4.
37894         (Depends-on): Add getpagesize.
37895         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37896         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
37897         m4/mmap-anon.m4.
37898         (Depends-on): Add getpagesize.
37899         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37900         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
37901         m4/mmap-anon.m4.
37902         (Depends-on): Add getpagesize.
37903         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37904
37905 2009-05-12  Bruno Haible  <bruno@clisp.org>
37906
37907         Tests for module 'alignof'.
37908         * modules/alignof-tests: New file.
37909         * tests/test-alignof.c: New file.
37910
37911 2009-05-12  Bruno Haible  <bruno@clisp.org>
37912
37913         Fix alignof macro.
37914         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
37915         vendor compilers that are always correct.
37916
37917 2009-05-12  Bruno Haible  <bruno@clisp.org>
37918
37919         Make the MAP_ANONYMOUS detection work on HP-UX 11.
37920         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
37921         not whether its fully works.
37922
37923 2009-05-12  Bruno Haible  <bruno@clisp.org>
37924
37925         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
37926
37927 2009-05-12  Jim Meyering  <meyering@redhat.com>
37928
37929         * top/maint.mk: Adjust backslash alignment.
37930
37931 2009-05-11  Simon Josefsson  <simon@josefsson.org>
37932
37933         * top/maint.mk: Make $(srcdir)/build-aux configurable.
37934
37935 2009-05-11  Eric Blake  <ebb9@byu.net>
37936
37937         argp: avoid undefined behavior
37938         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
37939         macros.
37940
37941 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37942
37943         * tests/test-vc-list-files-git.sh: Do git config of user.email and
37944         user.name to prevent git commit from complaining.
37945
37946 2009-05-10  Bruno Haible  <bruno@clisp.org>
37947
37948         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
37949         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
37950         it rewrites every file name only once.
37951         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
37952
37953 2009-05-08  Bruno Haible  <bruno@clisp.org>
37954
37955         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
37956         instead of 'max'.
37957
37958 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37959
37960         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
37961         sockaddr_storage test.
37962
37963 2009-05-07  Simon Josefsson  <simon@josefsson.org>
37964
37965         * modules/sys_socket (Makefile.am): Substitute
37966         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
37967         * m4/sys_socket_h.m4: Check for sockaddr_storage.
37968         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
37969         * tests/test-sys_socket.c: Check sockaddr_storage.
37970
37971 2009-05-08  Bruno Haible  <bruno@clisp.org>
37972
37973         New module 'alignof'.
37974         * lib/alignof.h: New file.
37975         * modules/alignof: New file.
37976
37977 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37978             Bruno Haible  <bruno@clisp.org>
37979
37980         Fix test-file-has-acl on FreeBSD.
37981         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
37982         mask is implicitly added.
37983         * tests/test-file-has-acl.c: Include <signal.h>.
37984         (main): Terminate the test after 5 seconds.
37985         * modules/acl-tests (configure.ac): Check for alarm function.
37986
37987 2009-05-04  Bruno Haible  <bruno@clisp.org>
37988
37989         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
37990         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
37991         * modules/errno (configure.ac): Drop AC_REQUIRE.
37992         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
37993         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
37994
37995 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37996
37997         * modules/glob-tests: New module.
37998         * tests/test-glob.c: Add.
37999
38000 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38001
38002         * modules/fnmatch-tests: New module.
38003         * tests/test-fnmatch.c: Add.
38004
38005 2009-05-04  Eric Blake  <ebb9@byu.net>
38006
38007         maint: make the new no-submodule-changes rule VPATH-safe
38008         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38009
38010 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38011             Bruno Haible  <bruno@clisp.org>
38012
38013         acl: Fix infinite loop on FreeBSD.
38014         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38015         of return value from acl_get_entry.
38016         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38017         Likewise.
38018
38019 2009-05-03  Bruno Haible  <bruno@clisp.org>
38020
38021         * lib/acl-internal.h (acl_entries): Clarify return value.
38022         * lib/acl_entries.c (acl_entries): Likewise.
38023
38024 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38025
38026         Bug fix in acl module.
38027         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38028
38029 2009-05-03  Bruno Haible  <bruno@clisp.org>
38030
38031         Create gperf-generated file in the source dir, not in the build dir.
38032         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38033         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38034         * modules/unicase/locale-language (unicase/locale-languages.h):
38035         Likewise.
38036         * modules/unicase/special-casing (unicase/special-casing-table.h):
38037         Likewise.
38038         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38039         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38040         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38041         Reported by Ralf Wildenhues.
38042
38043 2009-05-03  Bruno Haible  <bruno@clisp.org>
38044
38045         * modules/fnmatch (Description, configure.ac): Taken from
38046         fnmatch-posix.
38047         * modules/fnmatch-posix: Turn into a symbolic reference to the
38048         'fnmatch' module, and deprecate.
38049         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38050
38051 2009-05-03  Bruno Haible  <bruno@clisp.org>
38052
38053         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38054         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38055         Reported by Ralf Wildenhues.
38056
38057 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38058
38059         * m4/fnmatch.m4: Fix fnmatch re-define.
38060
38061 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38062
38063         priv-set: new module and tests; adapt write-any-file
38064         * lib/priv-set.c: New file.
38065         * lib/priv-set.h: New file.
38066         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38067         * lib/write-any-file.c: Simplify by using priv-set module.
38068         * m4/priv-set.m4: New file.
38069         * modules/priv-set: New file.
38070         * modules/unlinkdir: Add dependency on priv-set module.
38071         * modules/write-any-file: Likewise.
38072
38073         Tests for module 'priv-set'.
38074         * modules/priv-set-tests: New file.
38075         * tests/test-priv-set.c: New file.
38076
38077 2009-05-03  Jim Meyering  <meyering@redhat.com>
38078             Bruno Haible  <bruno@clisp.org>
38079
38080         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38081         use the converted UTF-8 variant of the name instead.
38082
38083 2009-05-03  Jim Meyering  <meyering@redhat.com>
38084
38085         tests: tighten some getdate tests
38086         * tests/test-getdate.c (main): Tighten tests: require equality,
38087         not just greater than.  Set TZ envvar to UTC0.
38088
38089 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38090
38091         getdate: correctly interpret "next monday" when run on a Monday
38092         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38093         that e.g., "next tues" (when run on a tuesday) results in a date
38094         that is one week in the future, and not today's date.
38095         I.e., add a week when the wday is the same as the current one.
38096         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38097         and earlier by Martin Bernreuther and Jan Minář.
38098         * tests/test-getdate.c (main): Check that "next DAY" is always in
38099         the future and that "last DAY" is always in the past.
38100
38101 2009-05-02  Jim Meyering  <meyering@redhat.com>
38102
38103         build: ensure that a release build fails when a submodule is unclean
38104         * top/maint.mk (no-submodule-changes): New rule.
38105         (alpha beta major): Depend on it.
38106
38107 2009-05-02  Bruno Haible  <bruno@clisp.org>
38108
38109         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38110         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38111         shell variable gl_fnmatch_required to detect which variant is
38112         requested.
38113         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38114         gl_FUNC_FNMATCH_POSIX.
38115         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38116         exclude fnmatch-posix.
38117
38118 2009-05-02  Bruno Haible  <bruno@clisp.org>
38119
38120         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38121         * modules/mbsrtowcs (License): Change to LGPLv2+.
38122         * modules/strnlen1 (License): Likewise.
38123         Reported by Simon Josefsson.
38124
38125 2009-05-02  Bruno Haible  <bruno@clisp.org>
38126
38127         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38128         "cross".
38129         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38130         gnulib-tool was called with option --source-base=lib.
38131
38132 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38133
38134         Use automake *-local hooks without commands, for extensibility.
38135         * modules/localcharset (Makefile.am): Rename install-exec-local
38136         rule to install-exec-localcharset, and make it a prerequisite of
38137         install-exec-local.  Likewise, rename the uninstall-local rule to
38138         uninstall-localcharset, and make it a prerequisite of the former.
38139
38140 2009-05-01  Bruno Haible  <bruno@clisp.org>
38141
38142         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38143         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38144         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38145         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38146         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38147         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38148         m4/locale-zh.m4, m4/codeset.m4.
38149
38150         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38151         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38152         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38153         m4/locale-zh.m4.
38154
38155         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38156         REPLACE_WCRTOMB if mbstate_t must be replaced.
38157         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38158         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38159
38160 2009-05-01  Bruno Haible  <bruno@clisp.org>
38161
38162         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38163         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38164         dngettext, dcngettext, textdomain, bindtextdomain,
38165         bind_textdomain_codeset): Undefine before redefining.
38166
38167 2009-04-30  Bruno Haible  <bruno@clisp.org>
38168
38169         Fix bug introduced on 2009-04-25.
38170         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38171         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38172         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38173         is defined.
38174         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38175         is defined.
38176         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38177         is defined.
38178         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38179
38180 2009-04-28  Bruno Haible  <bruno@clisp.org>
38181
38182         Comment tweaks.
38183         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38184         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38185         * lib/unicase.h (u*_casexfrm): Likewise.
38186         Reported by Paolo Bonzini.
38187
38188 2009-04-28  Bruno Haible  <bruno@clisp.org>
38189
38190         Fix a compilation error.
38191         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38192         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38193         Reported by Jim Meyering.
38194
38195 2009-04-27  Bruno Haible  <bruno@clisp.org>
38196
38197         New module 'libunistring'.
38198         * modules/libunistring: New file.
38199         * m4/libunistring.m4: New file.
38200         * MODULES.html.sh (Unicode string functions): Add it.
38201
38202 2009-04-27  Eric Blake  <ebb9@byu.net>
38203
38204         maint.mk: allow package-specific header to provide <config.h>
38205         * top/maint.mk (sc_require_config_h): New variable.
38206         (sc_require_config_h, sc_require_config_h_first): Use it.
38207
38208 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38209
38210         * top/maint.mk (sc_avoid_if_before_free): Except
38211         useless-if-before-free script.
38212
38213 2009-04-27  Eric Blake  <ebb9@byu.net>
38214
38215         maintainer-makefile: depend on all required helper scripts
38216         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38217         useless-if-before-free.
38218         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38219         version, rather than assuming gnulib checkout is available.
38220         Reported by Simen Josefsson.
38221
38222 2009-04-26  Bruno Haible  <bruno@clisp.org>
38223
38224         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38225         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38226         "../" or "..".
38227
38228 2009-04-26  Bruno Haible  <bruno@clisp.org>
38229
38230         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38231         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38232         AC_LIB_HAVE_LINKFLAGS.
38233
38234 2009-04-26  Bruno Haible  <bruno@clisp.org>
38235
38236         Simplify calling convention of u*_conv_from_encoding.
38237         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38238         u32_conv_from_encoding): Expect a resultbuf argument and return the
38239         result directly as a pointer.
38240         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38241         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38242         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38243         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38244         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
38245         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38246         Update.
38247         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
38248         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
38249         * lib/vasnprintf.c (VASNPRINTF): Update.
38250         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
38251         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
38252         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
38253         * NEWS: Mention the change.
38254
38255 2009-04-26  Bruno Haible  <bruno@clisp.org>
38256
38257         Simplify calling convention of u*_conv_to_encoding.
38258         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38259         u32_conv_to_encoding): Expect a resultbuf argument and return the
38260         result directly as a pointer.
38261         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38262         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
38263         freeing scaled_offsets if mem_iconveha failed.
38264         * lib/unicase/u-casexfrm.h (FUNC): Update.
38265         * lib/uninorm/u-normxfrm.h (FUNC): Update.
38266         * lib/vasnprintf.c (VASNPRINTF): Update.
38267         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
38268         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
38269         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
38270         * NEWS: Mention the change.
38271
38272 2009-04-26  Bruno Haible  <bruno@clisp.org>
38273
38274         Avoid test failures on AIX and OSF/1.
38275         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
38276         malloc(0).
38277         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38278         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38279         Likewise.
38280         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
38281         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
38282         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
38283         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
38284         * doc/posix-functions/malloc.texi: Document the portability problem
38285         related to malloc(0).
38286
38287 2009-04-26  Bruno Haible  <bruno@clisp.org>
38288
38289         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
38290         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
38291         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
38292
38293 2009-04-25  Bruno Haible  <bruno@clisp.org>
38294
38295         Avoid link error when creating a namespace clean library.
38296         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
38297         as macro with arguments if already defined as an alias.
38298         * lib/signbitf.c (gl_signbitf): Don't undefine.
38299         * lib/signbitd.c (gl_signbitd): Don't undefine.
38300         * lib/signbitl.c (gl_signbitl): Don't undefine.
38301
38302 2009-04-25  Jim Meyering  <meyering@redhat.com>
38303
38304         vc-list-files: fix another quoting bug
38305         * build-aux/vc-list-files: Avoid sed backslash expansion
38306         of pathological directory names.
38307
38308 2009-04-25  Eric Blake  <ebb9@byu.net>
38309
38310         vc-list-files: fix shell quoting error
38311         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
38312         timestamp.
38313
38314 2009-04-25  Jim Meyering  <meyering@redhat.com>
38315
38316         vc-list-files: restore lost functionality with subdir argument
38317         * build-aux/vc-list-files: When given a non-"." sub-directory
38318         argument, substitute the $dir/ prefix back onto each resulting name.
38319         Otherwise, coreutils' root_tests check would fail.
38320
38321 2009-04-24  Eric Blake  <ebb9@byu.net>
38322
38323         vc-list-files: ignore git symlinks
38324         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
38325         than ls-files, to ignore git symlinks.
38326
38327         maint.mk: import improvements from m4
38328         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
38329         (move_if_change): Delete unused macro.
38330         (news-date-check, vc-diff-check): Support VPATH builds.
38331         (announcement): Likewise.  Split --bootstrap-tools list...
38332         (boostrap-tools): ...into separate list, which can be overridden
38333         in cfg.mk.
38334         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
38335         requiring dependency on useless-if-before-free module.
38336         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
38337         Support VPATH builds.
38338
38339 2009-04-24  Jim Meyering  <meyering@redhat.com>
38340
38341         maint.mk: remove coreutils-specific rules and variables
38342         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
38343         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38344         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38345
38346         maint.mk: remove obsolete rule
38347         * top/maint.mk (rel-check): Remove rule.
38348         (WGET, WGETFLAGS): Remove now-unused variables.
38349
38350 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38351
38352         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38353         consistency.
38354
38355         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38356         '$(PATH_SEPARATOR)' instead of ':'.
38357
38358 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38359
38360         * lib/getopt1.c (main): Use 'const' for static array.
38361
38362 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38363
38364         * top/maint.mk: Sync with coreutils.
38365         * NEWS: Explain incompatibilities.
38366
38367 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38368             Bruno Haible  <bruno@clisp.org>
38369
38370         Fix cross-compilation results.
38371         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38372         statement, as third argument of AC_TRY_RUN.
38373         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38374         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
38375         Likewise.
38376         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38377         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38378         Likewise.
38379         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38380         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
38381         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
38382
38383 2009-04-20  Bruno Haible  <bruno@clisp.org>
38384
38385         Avoid test failure on mingw.
38386         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
38387
38388 2009-04-20  Bruno Haible  <bruno@clisp.org>
38389
38390         Avoid compilation error on mingw.
38391         * modules/localename-tests (Depends-on): Add locale.
38392
38393 2009-04-19  Bruno Haible  <bruno@clisp.org>
38394
38395         Support for building a shared library on Windows platforms.
38396         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
38397         (main): Test the presence of UNINORM_NFC here.
38398         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
38399         (main): Test the presence of UNINORM_NFD here.
38400         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
38401         (main): Test the presence of UNINORM_NFKC here.
38402         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
38403         (main): Test the presence of UNINORM_NFKD here.
38404
38405 2009-04-19  Bruno Haible  <bruno@clisp.org>
38406
38407         Avoid a compiler warning.
38408         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
38409         Change type of variable 'sequence'.
38410
38411 2009-04-19  Bruno Haible  <bruno@clisp.org>
38412
38413         * modules/configmake (Makefile.am): When the contents of configmake.h
38414         does not change, arrange to preserve its modification time.
38415
38416 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38417
38418         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
38419         gettext domain.
38420
38421 2009-04-16  Jim Meyering  <meyering@redhat.com>
38422
38423         useless-if-before-free: improve conversion code
38424         * build-aux/useless-if-before-free: Adjust code-in-comment to match
38425         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
38426
38427 2009-04-14  Bruno Haible  <bruno@clisp.org>
38428
38429         * modules/fcntl (Depends-on): Add extensions.
38430         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
38431
38432 2009-04-12  Ben Pfaff  <blp@gnu.org>
38433
38434         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
38435         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
38436
38437 2009-03-20  Ben Pfaff  <blp@gnu.org>
38438
38439         Make rename replace existing destinations on Windows.
38440         * m4/rename.m4: Add test for Mingw.
38441         * lib/rename.c: Add rename replacement that uses MoveFileEx with
38442         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
38443         * doc/posix-functions/rename.texi: Document.
38444
38445 2009-04-10  Bruno Haible  <bruno@clisp.org>
38446
38447         New include file "iconveh.h".
38448         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
38449         * lib/striconveh.h: Include it.
38450         (enum iconv_ilseq_handler): Remove definition.
38451         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
38452         striconveh.h.
38453         * lib/striconveha.c: Include striconveh.h.
38454         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
38455         * modules/striconveh (Files): Add lib/iconveh.h.
38456         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
38457         lib/striconveh.h.
38458
38459 2009-04-10  Bruno Haible  <bruno@clisp.org>
38460
38461         * lib/uniconv.h: Update comment.
38462
38463 2009-04-10  Bruno Haible  <bruno@clisp.org>
38464
38465         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
38466         always.
38467         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38468         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38469         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38470         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
38471         "unistring-notinline.h", so that the function gets defined always.
38472         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38473         * lib/unistr/u8-uctomb.c: Likewise.
38474         * lib/unistr/u16-mbtouc.c: Likewise.
38475         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38476         * lib/unistr/u16-uctomb.c: Likewise.
38477         * lib/unistr/u32-mbtouc.c: Likewise.
38478         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38479         * lib/unistr/u32-uctomb.c: Likewise.
38480
38481 2009-04-10  Bruno Haible  <bruno@clisp.org>
38482
38483         Mark 'utime' obsolete.
38484         * modules/utime (Status, Notice): New sections.
38485         Suggested by Jim Meyering.
38486
38487         Fix cross-compile guess for utime test.
38488         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
38489         autoconf.
38490         * doc/posix-functions/utime.texi: Give more precisions.
38491         Reported by Jan <ipif@ymail.com>.
38492
38493 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
38494
38495         filevercmp: correct today's change
38496         * lib/filevercmp.c: Also handle coreutils' test inputs.
38497         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
38498
38499         Fix regression in 'filevercmp' module. Thanks Sven Joachim
38500         for reporting it.
38501         * lib/filevercmp.c: Special handle for "", "." and "..".
38502         * tests/test-filevercmp.c: Enlarge the set suite.
38503
38504 2009-04-07  Jim Meyering  <meyering@redhat.com>
38505
38506         useless-if-before-free: show how to remove braced useless free, too
38507         * build-aux/useless-if-before-free: still only in a comment, though.
38508
38509 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
38510
38511         maint.mk: import changes to syntax-check macros from coreutils
38512         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
38513         Use them in the relevant macros.
38514
38515 2009-04-06  Bruno Haible  <bruno@clisp.org>
38516
38517         Fix unportable use of bit-fields.
38518         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
38519         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
38520         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
38521
38522 2009-04-06  Bruno Haible  <bruno@clisp.org>
38523
38524         Avoid test failures on AIX and OSF/1.
38525         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
38526         that malloc(0) = NULL.
38527         * tests/unicase/test-u8-tolower.c (check): Likewise.
38528         * tests/unicase/test-u8-totitle.c (check): Likewise.
38529         * tests/unicase/test-u8-toupper.c (check): Likewise.
38530         * tests/unicase/test-u16-casefold.c (check): Likewise.
38531         * tests/unicase/test-u16-tolower.c (check): Likewise.
38532         * tests/unicase/test-u16-totitle.c (check): Likewise.
38533         * tests/unicase/test-u16-toupper.c (check): Likewise.
38534         * tests/unicase/test-u32-casefold.c (check): Likewise.
38535         * tests/unicase/test-u32-tolower.c (check): Likewise.
38536         * tests/unicase/test-u32-totitle.c (check): Likewise.
38537         * tests/unicase/test-u32-toupper.c (check): Likewise.
38538         * tests/uninorm/test-u8-nfc.c (check): Likewise.
38539         * tests/uninorm/test-u8-nfd.c (check): Likewise.
38540         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
38541         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
38542         * tests/uninorm/test-u16-nfc.c (check): Likewise.
38543         * tests/uninorm/test-u16-nfd.c (check): Likewise.
38544         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
38545         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
38546         * tests/uninorm/test-u32-nfc.c (check): Likewise.
38547         * tests/uninorm/test-u32-nfd.c (check): Likewise.
38548         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
38549         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
38550
38551 2009-04-05  Bruno Haible  <bruno@clisp.org>
38552
38553         Work around an autoconf limitation.
38554         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
38555         comment line if it would be longer than 3 KB.
38556
38557 2009-04-05  Bruno Haible  <bruno@clisp.org>
38558
38559         Avoid test failure with libiconv-1.13.
38560         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
38561         of the expected test results.
38562
38563 2009-04-05  Bruno Haible  <bruno@clisp.org>
38564
38565         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
38566         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
38567         that it should be installed.
38568
38569 2009-04-05  Bruno Haible  <bruno@clisp.org>
38570
38571         * gnulib-tool: New option --copy-file.
38572         (func_usage): Document it.
38573         (func_dest_tmpfilename): Moved out of func_import.
38574         (func_add_file, func_update_file): New functions, extracted from
38575         func_import.
38576         (func_import): Update.
38577
38578 2009-04-05  Karl Berry  <karl@gnu.org>
38579
38580         * README: prominently mention gnulib-tool.
38581         Rearrange sections so getting the code is near the top.
38582
38583 2009-04-05  Bruno Haible  <bruno@clisp.org>
38584
38585         * lib/unicase.h: Mention u*_cmp2.
38586         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38587         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
38588         * lib/unicase/ulc-casecmp.c: Likewise.
38589         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
38590         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
38591         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
38592         unistr/u8-cmp.
38593         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
38594         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
38595         unistr/u16-cmp.
38596         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
38597         unistr/u32-cmp.
38598
38599         * lib/uninorm.h: Mention u*_cmp2.
38600         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38601         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
38602         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
38603         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
38604         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
38605         unistr/u8-cmp.
38606         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
38607         unistr/u16-cmp.
38608         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
38609         unistr/u32-cmp.
38610
38611         New module 'unistr/u32-cmp2'.
38612         * lib/unistr/u32-cmp2.c: New file.
38613         * modules/unistr/u32-cmp2: New file.
38614
38615         New module 'unistr/u16-cmp2'.
38616         * lib/unistr/u16-cmp2.c: New file.
38617         * modules/unistr/u16-cmp2: New file.
38618
38619         New module 'unistr/u8-cmp2'.
38620         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
38621         * lib/unistr/u8-cmp2.c: New file.
38622         * lib/unistr/u-cmp2.h: New file.
38623         * modules/unistr/u8-cmp2: New file.
38624
38625 2009-04-05  Bruno Haible  <bruno@clisp.org>
38626
38627         * lib/unictype.h (uc_property_is_valid): New macro.
38628         * tests/unictype/test-pr_byname.c (main): Use it.
38629
38630         * lib/unistr.h: Doc fixes.
38631         * lib/uniconv.h: Doc fixes.
38632         * lib/unictype.h: Doc fixes.
38633
38634 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
38635
38636         Port coreutils 7.2 to Solaris 8.
38637
38638         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
38639         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
38640         for Solaris 8.  This is a bit of a hack, as it means it's the
38641         caller's responsibility to add -lnsl if needed, but most likely it
38642         won't be needed since only getaddrinfo uses this and getaddrinfo
38643         isn't needed on Solaris 8.
38644
38645         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
38646         problem to Solaris 8 encountered with coreutils 7.2, which
38647         resulted in a message "fnmatch.c:292: warning: passing argument 4
38648         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
38649         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
38650
38651 2009-04-03  Simon Josefsson  <simon@josefsson.org>
38652
38653         * m4/ld-version-script.m4: Add FIXME comment.
38654
38655 2009-04-02  Simon Josefsson  <simon@josefsson.org>
38656
38657         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
38658         SOVERSION variable.
38659
38660 2009-04-02  Bruno Haible  <bruno@clisp.org>
38661
38662         * Makefile (info, html, dvi, pdf): Combine the rules.
38663         Suggested by Jim Meyering.
38664
38665 2009-04-01  Bruno Haible  <bruno@clisp.org>
38666
38667         * Makefile (info, html, dvi, pdf): New targets.
38668         Reported by Reuben Thomas <rrt@sc3d.org>.
38669
38670 2009-04-01  Bruno Haible  <bruno@clisp.org>
38671
38672         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
38673         can be put into PATH.
38674         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
38675
38676 2009-04-01  Bruno Haible  <bruno@clisp.org>
38677
38678         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
38679
38680 2009-04-01  Bruno Haible  <bruno@clisp.org>
38681
38682         Rename module 'visibility'.
38683         * modules/lib-symbol-visibility: Renamed from modules/visibility.
38684         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
38685         * doc/gnulib.texi: Update.
38686         * MODULES.html.sh (Misc): Update.
38687         * NEWS: Mention the change.
38688
38689 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38690
38691         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
38692         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
38693         Eric Blake <ebb9@byu.net> for review.
38694         * MODULES.html.sh: Add lib-msvc-compat.
38695         * doc/gnulib.texi: Link to new section.
38696         * m4/ld-output-def.m4: New file.
38697         * doc/ld-output-def.texi: New file.
38698
38699 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38700
38701         Rename ld-version-script to lib-symbol-versions.  Suggested by
38702         Bruno Haible <bruno@clisp.org>.
38703         * modules/ld-version-script: Renamed to lib-symbol-versions.
38704         * doc/ld-version-script.texi: Fix module name.
38705         * MODULES.html.sh: Add lib-symbol-versions.
38706
38707 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38708
38709         * modules/u64-tests: New file.
38710         * tests/test-u64.c: New file.
38711
38712 2009-03-04  Simon Josefsson  <simon@josefsson.org>
38713
38714         * MODULES.html.sh: Mention u64.
38715         * modules/u64: New module.
38716         * modules/crypto/sha512: Depend on u64 module instead of providing
38717         u64.h.
38718
38719 2009-03-27  Eric Blake  <ebb9@byu.net>
38720
38721         test-strerror: make debugging EAI_SYSTEM easier
38722         * modules/getaddrinfo-tests (Depends-on): Add strerror.
38723         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
38724         failure was EAI_SYSTEM.
38725
38726 2009-03-25  Bruno Haible  <bruno@clisp.org>
38727
38728         Fix a problem with --enable-relocatable on Solaris 7.
38729         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
38730         since 2008-02-24.
38731
38732 2009-03-25  Eric Blake  <ebb9@byu.net>
38733
38734         test-sockets: avoid gcc warning
38735         * tests/test-sockets.c (main): Silence compiler warning.
38736
38737 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
38738
38739         New modules nproc, pthread, contributed by Glen Lenker.
38740
38741         * MODULES.html.sh: Add pthread, nproc.
38742         * lib/nproc.c: New file.
38743         * lib/nproc.h: New file.
38744         * lib/pthread.in.h: New file.
38745         * m4/pthread.m4: New file.
38746         * modules/nproc: New file.
38747         * modules/pthread: New file.
38748
38749 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38750
38751         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
38752         New variable.
38753
38754 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
38755
38756         filevercmp: handle simple~ and numbered.~3~ backup suffixes
38757         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
38758         * tests/test-filevercmp.c: Add tests for backup suffixes.
38759
38760 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38761
38762         * modules/stdlib (Depends-on): Add stdint, needed when defining
38763         struct random_data on, for example, HP-UX 10.20.  Reported by
38764         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38765
38766 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38767
38768         * lib/readline.c (readline): Call fflush on stdout after printing
38769         prompt.
38770
38771 2009-03-20  Bruno Haible  <bruno@clisp.org>
38772
38773         Remove dependency from 'close' module to -lws2_32 on native Windows.
38774         * lib/close-hook.h: New file.
38775         * lib/close-hook.c: New file.
38776         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
38777         w32sock.h.
38778         (_gl_close_fd_maybe_socket): Remove function.
38779         (rpl_close): Invoke execute_all_close_hooks instead of
38780         _gl_close_fd_maybe_socket.
38781         * lib/sockets.c: Include close-hook.h, w32sock.h.
38782         (close_fd_maybe_socket): New function, essentially from lib/close.c.
38783         (close_sockets_hook): New variable.
38784         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
38785         (gl_sockets_cleanup): Unregister it.
38786         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
38787         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
38788         * modules/close-hook: New file.
38789         * modules/close (Files): Remove lib/w32sock.h.
38790         (Depends-on): Add close-hook.
38791         (Link): Remove section.
38792         * modules/sockets (Files): Add lib/w32sock.h.
38793         (Depends-on): Add close-hook.
38794         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
38795         invocation.
38796         * NEWS: Mention that LIB_CLOSE is gone.
38797
38798 2009-03-23  Eric Blake  <ebb9@byu.net>
38799
38800         signal-tests: test previous patch
38801         * tests/test-signal.c: New file.
38802         * modules/signal-tests: Likewise.
38803
38804         signal.h: always support 'volatile sig_atomic_t'
38805         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
38806         (gl_SIGNAL_H_DEFAULTS): Add a default.
38807         * modules/signal (Makefile.am): Substitute if needed.
38808         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
38809         users can blindly add volatile.
38810         * doc/posix-headers/signal.texi (signal.h): Document it.
38811         Reported by Matthew Woehlke.
38812
38813 2009-03-23  Jim Meyering  <meyering@redhat.com>
38814
38815         pathmax: PATH_MAX: use pathconf only when available
38816         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
38817         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
38818         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
38819         This avoids a link failure in a PSP cross-compilation environment
38820         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
38821
38822         * lib/vasnprintf.c (divide): Fix typo in comment.
38823
38824 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38825
38826         * gnulib-tool (func_filter_filelist): Fix comment.
38827
38828 2009-03-20  Bruno Haible  <bruno@clisp.org>
38829
38830         Make sockets.h self-contained.
38831         * lib/sockets.c: Include sockets.h first.
38832         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
38833
38834 2009-03-19  Eric Blake  <ebb9@byu.net>
38835
38836         doc: mention more functions added in cygwin 1.7.0
38837         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
38838         addition.
38839         * doc/posix-functions/log2f.texi: Likewise.
38840
38841 2009-03-19  Jim Meyering  <meyering@redhat.com>
38842
38843         fsusage: avoid syntax error due to statement-before-declaration
38844         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
38845         after all declarations.  Reported by Matthew Woehlke in
38846         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
38847
38848 2009-03-18  Eric Blake  <ebb9@byu.net>
38849
38850         build-aux/compile: sync from automake
38851         * build-aux/compile: New file, from automake.
38852         * config/srclist.txt: Mention build-aux/compile.
38853
38854 2009-03-17  Bruno Haible  <bruno@clisp.org>
38855
38856         * lib/git-merge-changelog.c: Fix typo in comment.
38857         Reported by Reuben Thomas <rrt@sc3d.org>.
38858
38859 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
38860
38861         * m4/regex.m4: update and improve help for
38862         --without-included-regex.
38863
38864 2009-03-17  Simon Josefsson  <simon@josefsson.org>
38865
38866         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
38867         failure on missing include files.
38868
38869 2009-03-17  Eric Blake  <ebb9@byu.net>
38870
38871         doc: mention more functions added in cygwin 1.7.0
38872         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
38873         addition.
38874         * doc/posix-functions/fwscanf.texi: Likewise.
38875         * doc/posix-functions/swprintf.texi: Likewise.
38876         * doc/posix-functions/swscanf.texi: Likewise.
38877         * doc/posix-functions/vfwprintf.texi: Likewise.
38878         * doc/posix-functions/vfwscanf.texi: Likewise.
38879         * doc/posix-functions/vswprintf.texi: Likewise.
38880         * doc/posix-functions/vswscanf.texi: Likewise.
38881         * doc/posix-functions/vwprintf.texi: Likewise.
38882         * doc/posix-functions/vwscanf.texi: Likewise.
38883         * doc/posix-functions/wcscasecmp.texi: Likewise.
38884         * doc/posix-functions/wcsdup.texi: Likewise.
38885         * doc/posix-functions/wcsftime.texi: Likewise.
38886         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38887         * doc/posix-functions/wprintf.texi: Likewise.
38888         * doc/posix-functions/wscanf.texi: Likewise.
38889         * doc/glibc-functions/gethostbyname2.texi: Likewise.
38890
38891 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38892
38893         maint.mk: really add $(AM_MAKEFLAGS)
38894         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
38895         was inadvertently omitted in the last commit.
38896         Spotted by Bruno Haible.
38897
38898         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
38899         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
38900         $(AM_MAKEFLAGS)' rather than plain `make'.
38901
38902         gnulib-tool: execute $MAKE not make
38903         * gnulib-tool: Default $MAKE to 'make'.
38904         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
38905         than make.  Initialize $MAKE in the do-autobuild script.
38906
38907         gnulib-tool: use $MAKE not make in generated files
38908         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
38909         make, in generated files.  Initialize $MAKE in the do-autobuild
38910         script.
38911
38912         * top/GNUmakefile (_have-git-version-gen): Fix typo.
38913
38914         GNUmakefile: disable parallelism only for multiple, recursive targets
38915         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
38916         additions in the Makefile.
38917         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
38918         by Automake.
38919         (.NOTPARALLEL): Only disable parallel builds if multiple targets
38920         are listed on the command line and at least one of them is
38921         listed in $(ALL_RECURSIVE_TARGETS).
38922
38923 2009-03-14  Bruno Haible  <bruno@clisp.org>
38924
38925         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
38926         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
38927         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
38928         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
38929         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
38930         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
38931         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
38932         unistr/u8-uctomb.
38933         * modules/unistr/u8-strchr (Depends-on): Likewise.
38934         * modules/unistr/u8-strrchr (Depends-on): Likewise.
38935         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
38936         unistr/u16-uctomb.
38937         * modules/unistr/u16-strchr (Depends-on): Likewise.
38938         * modules/unistr/u16-strrchr (Depends-on): Likewise.
38939
38940 2009-03-12  Bruno Haible  <bruno@clisp.org>
38941
38942         Work around select() bug on Interix 3.5.
38943         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
38944         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
38945         * m4/select.m4: New file.
38946         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
38947         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
38948         * modules/select (Files): Add m4/select.m4.
38949         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
38950         * modules/nanosleep (Depends-on): Add select.
38951         * modules/poll (Depends-on): Likewise.
38952         * doc/posix-functions/select.texi: Mention the Interix bug.
38953         Reported by Markus Duft <mduft@gentoo.org>.
38954
38955         * lib/select.c: Renamed from lib/winsock-select.c.
38956         * modules/select (Files): Add lib/select.c, remove
38957         lib/winsock-select.c.
38958         (configure.ac): Update.
38959
38960 2009-03-12  Jim Meyering  <meyering@redhat.com>
38961
38962         avoid gcc warnings about unused macro definitions
38963         * lib/readtokens.c (STREQ): Remove unused definition.
38964         * lib/xmalloc.c (SIZE_MAX): Likewise.
38965         * lib/openat-die.c (N_): Likewise.
38966         * lib/mountlist.c (SIZE_MAX): Remove definition.
38967         Instead, include <stdint.h>.
38968         * lib/readutmp.c: Likewise.
38969         * modules/readutmp (Depends-on): Add stdint.
38970         * modules/mountlist (Depends-on): Add stdint.
38971         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
38972
38973 2009-03-10  Bruno Haible  <bruno@clisp.org>
38974
38975         Tests for module 'mbmemcasecoll'.
38976         * modules/mbmemcasecoll-tests: New file.
38977         * tests/test-mbmemcasecoll1.sh: New file.
38978         * tests/test-mbmemcasecoll2.sh: New file.
38979         * tests/test-mbmemcasecoll3.sh: New file.
38980         * tests/test-mbmemcasecoll.c: New file.
38981
38982         New module 'mbmemcasecoll'.
38983         * lib/mbmemcasecoll.h: New file.
38984         * lib/mbmemcasecoll.c: New file.
38985         * modules/mbmemcasecoll: New file.
38986
38987         * tests/test-mbmemcasecmp.h: New file, extracted from
38988         tests/test-mbmemcasecmp.c.
38989         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
38990         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
38991         (main): Update.
38992         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
38993
38994 2009-03-09  Bruno Haible  <bruno@clisp.org>
38995
38996         Tests for module 'mbmemcasecmp'.
38997         * modules/mbmemcasecmp-tests: New file.
38998         * tests/test-mbmemcasecmp1.sh: New file.
38999         * tests/test-mbmemcasecmp2.sh: New file.
39000         * tests/test-mbmemcasecmp3.sh: New file.
39001         * tests/test-mbmemcasecmp.c: New file.
39002
39003         New module 'mbmemcasecmp'.
39004         * lib/mbmemcasecmp.h: New file.
39005         * lib/mbmemcasecmp.c: New file.
39006         * modules/mbmemcasecmp: New file.
39007
39008 2009-03-09  Bruno Haible  <bruno@clisp.org>
39009
39010         Tests for module 'unicase/ulc-casecoll'.
39011         * modules/unicase/ulc-casecoll-tests: New file.
39012         * tests/unicase/test-ulc-casecoll1.sh: New file.
39013         * tests/unicase/test-ulc-casecoll2.sh: New file.
39014         * tests/unicase/test-ulc-casecoll.c: New file.
39015
39016         New module 'unicase/ulc-casecoll'.
39017         * lib/unicase.h (ulc_casecoll): New declaration.
39018         * lib/unicase/ulc-casecoll.c: New file.
39019         * modules/unicase/ulc-casecoll: New file.
39020
39021         New module 'unicase/ulc-casexfrm'.
39022         * lib/unicase.h (ulc_casexfrm): New declaration.
39023         * lib/unicase/ulc-casexfrm.c: New file.
39024         * modules/unicase/ulc-casexfrm: New file.
39025
39026 2009-03-09  Bruno Haible  <bruno@clisp.org>
39027
39028         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39029         invocations.
39030
39031         * m4/mbscasecmp.m4: Remove file.
39032         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39033         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39034
39035         * m4/mbscasestr.m4: Remove file.
39036         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39037         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39038
39039         * m4/mbschr.m4: Remove file.
39040         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39041         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39042
39043         * m4/mbscspn.m4: Remove file.
39044         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39045         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39046
39047         * m4/mbslen.m4: Remove file.
39048         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39049         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39050
39051         * m4/mbsncasecmp.m4: Remove file.
39052         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39053         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39054
39055         * m4/mbsnlen.m4: Remove file.
39056         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39057         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39058
39059         * m4/mbspbrk.m4: Remove file.
39060         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39061         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39062
39063         * m4/mbspcasecmp.m4: Remove file.
39064         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39065         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39066
39067         * m4/mbsrchr.m4: Remove file.
39068         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39069         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39070
39071         * m4/mbssep.m4: Remove file.
39072         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39073         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39074
39075         * m4/mbsspn.m4: Remove file.
39076         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39077         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39078
39079         * m4/mbsstr.m4: Remove file.
39080         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39081         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39082
39083         * m4/mbstok_r.m4: Remove file.
39084         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39085         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39086
39087         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39088
39089         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39090         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39091
39092         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39093
39094 2009-03-08  Bruno Haible  <bruno@clisp.org>
39095
39096         Tests for module 'unicase/ulc-casecmp'.
39097         * modules/unicase/ulc-casecmp-tests: New file.
39098         * tests/unicase/test-ulc-casecmp1.sh: New file.
39099         * tests/unicase/test-ulc-casecmp2.sh: New file.
39100         * tests/unicase/test-ulc-casecmp.c: New file.
39101
39102         New module 'unicase/ulc-casecmp'.
39103         * lib/unicase.h (ulc_casecmp): New declaration.
39104         * lib/unicase/ulc-casecmp.c: New file.
39105         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39106         'const SRC_UNIT *'.
39107         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39108         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39109         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39110         * modules/unicase/ulc-casecmp: New file.
39111
39112         Tests for module 'unicase/u32-is-cased'.
39113         * modules/unicase/u32-is-cased-tests: New file.
39114         * tests/unicase/test-u32-is-cased.c: New file.
39115
39116         Tests for module 'unicase/u16-is-cased'.
39117         * modules/unicase/u16-is-cased-tests: New file.
39118         * tests/unicase/test-u16-is-cased.c: New file.
39119
39120         Tests for module 'unicase/u8-is-cased'.
39121         * modules/unicase/u8-is-cased-tests: New file.
39122         * tests/unicase/test-u8-is-cased.c: New file.
39123         * tests/unicase/test-is-cased.h: New file.
39124
39125         New module 'unicase/u32-is-cased'.
39126         * lib/unicase/u32-is-cased.c: New file.
39127         * modules/unicase/u32-is-cased: New file.
39128
39129         New module 'unicase/u16-is-cased'.
39130         * lib/unicase/u16-is-cased.c: New file.
39131         * modules/unicase/u16-is-cased: New file.
39132
39133         New module 'unicase/u8-is-cased'.
39134         * lib/unicase/u8-is-cased.c: New file.
39135         * lib/unicase/u-is-cased.h: New file.
39136         * modules/unicase/u8-is-cased: New file.
39137
39138         Tests for module 'unicase/u32-is-casefolded'.
39139         * modules/unicase/u32-is-casefolded-tests: New file.
39140         * tests/unicase/test-u32-is-casefolded.c: New file.
39141
39142         Tests for module 'unicase/u16-is-casefolded'.
39143         * modules/unicase/u16-is-casefolded-tests: New file.
39144         * tests/unicase/test-u16-is-casefolded.c: New file.
39145
39146         Tests for module 'unicase/u8-is-casefolded'.
39147         * modules/unicase/u8-is-casefolded-tests: New file.
39148         * tests/unicase/test-u8-is-casefolded.c: New file.
39149         * tests/unicase/test-is-casefolded.h: New file.
39150
39151         New module 'unicase/u32-is-casefolded'.
39152         * lib/unicase/u32-is-casefolded.c: New file.
39153         * modules/unicase/u32-is-casefolded: New file.
39154
39155         New module 'unicase/u16-is-casefolded'.
39156         * lib/unicase/u16-is-casefolded.c: New file.
39157         * modules/unicase/u16-is-casefolded: New file.
39158
39159         New module 'unicase/u8-is-casefolded'.
39160         * lib/unicase/u8-is-casefolded.c: New file.
39161         * modules/unicase/u8-is-casefolded: New file.
39162
39163         Tests for module 'unicase/u32-is-titlecase'.
39164         * modules/unicase/u32-is-titlecase-tests: New file.
39165         * tests/unicase/test-u32-is-titlecase.c: New file.
39166
39167         Tests for module 'unicase/u16-is-titlecase'.
39168         * modules/unicase/u16-is-titlecase-tests: New file.
39169         * tests/unicase/test-u16-is-titlecase.c: New file.
39170
39171         Tests for module 'unicase/u8-is-titlecase'.
39172         * modules/unicase/u8-is-titlecase-tests: New file.
39173         * tests/unicase/test-u8-is-titlecase.c: New file.
39174         * tests/unicase/test-is-titlecase.h: New file.
39175
39176         New module 'unicase/u32-is-titlecase'.
39177         * lib/unicase/u32-is-titlecase.c: New file.
39178         * modules/unicase/u32-is-titlecase: New file.
39179
39180         New module 'unicase/u16-is-titlecase'.
39181         * lib/unicase/u16-is-titlecase.c: New file.
39182         * modules/unicase/u16-is-titlecase: New file.
39183
39184         New module 'unicase/u8-is-titlecase'.
39185         * lib/unicase/u8-is-titlecase.c: New file.
39186         * modules/unicase/u8-is-titlecase: New file.
39187
39188         Tests for module 'unicase/u32-is-lowercase'.
39189         * modules/unicase/u32-is-lowercase-tests: New file.
39190         * tests/unicase/test-u32-is-lowercase.c: New file.
39191
39192         Tests for module 'unicase/u16-is-lowercase'.
39193         * modules/unicase/u16-is-lowercase-tests: New file.
39194         * tests/unicase/test-u16-is-lowercase.c: New file.
39195
39196         Tests for module 'unicase/u8-is-lowercase'.
39197         * modules/unicase/u8-is-lowercase-tests: New file.
39198         * tests/unicase/test-u8-is-lowercase.c: New file.
39199         * tests/unicase/test-is-lowercase.h: New file.
39200
39201         New module 'unicase/u32-is-lowercase'.
39202         * lib/unicase/u32-is-lowercase.c: New file.
39203         * modules/unicase/u32-is-lowercase: New file.
39204
39205         New module 'unicase/u16-is-lowercase'.
39206         * lib/unicase/u16-is-lowercase.c: New file.
39207         * modules/unicase/u16-is-lowercase: New file.
39208
39209         New module 'unicase/u8-is-lowercase'.
39210         * lib/unicase/u8-is-lowercase.c: New file.
39211         * modules/unicase/u8-is-lowercase: New file.
39212
39213         Tests for module 'unicase/u32-is-uppercase'.
39214         * modules/unicase/u32-is-uppercase-tests: New file.
39215         * tests/unicase/test-u32-is-uppercase.c: New file.
39216
39217         Tests for module 'unicase/u16-is-uppercase'.
39218         * modules/unicase/u16-is-uppercase-tests: New file.
39219         * tests/unicase/test-u16-is-uppercase.c: New file.
39220
39221         Tests for module 'unicase/u8-is-uppercase'.
39222         * modules/unicase/u8-is-uppercase-tests: New file.
39223         * tests/unicase/test-u8-is-uppercase.c: New file.
39224         * tests/unicase/test-is-uppercase.h: New file.
39225
39226         New module 'unicase/u32-is-uppercase'.
39227         * lib/unicase/u32-is-uppercase.c: New file.
39228         * modules/unicase/u32-is-uppercase: New file.
39229
39230         New module 'unicase/u16-is-uppercase'.
39231         * lib/unicase/u16-is-uppercase.c: New file.
39232         * modules/unicase/u16-is-uppercase: New file.
39233
39234         New module 'unicase/u8-is-uppercase'.
39235         * lib/unicase/u8-is-uppercase.c: New file.
39236         * modules/unicase/u8-is-uppercase: New file.
39237
39238         New module 'unicase/u32-is-invariant'.
39239         * lib/unicase/u32-is-invariant.c: New file.
39240         * modules/unicase/u32-is-invariant: New file.
39241
39242         New module 'unicase/u16-is-invariant'.
39243         * lib/unicase/u16-is-invariant.c: New file.
39244         * modules/unicase/u16-is-invariant: New file.
39245
39246         New module 'unicase/u8-is-invariant'.
39247         * lib/unicase/u8-is-invariant.c: New file.
39248         * lib/unicase/invariant.h: New file.
39249         * lib/unicase/u-is-invariant.h: New file.
39250         * modules/unicase/u8-is-invariant: New file.
39251
39252         Tests for module 'unicase/u32-casecoll'.
39253         * modules/unicase/u32-casecoll-tests: New file.
39254         * tests/unicase/test-u32-casecoll.c: New file.
39255
39256         Tests for module 'unicase/u16-casecoll'.
39257         * modules/unicase/u16-casecoll-tests: New file.
39258         * tests/unicase/test-u16-casecoll.c: New file.
39259
39260         Tests for module 'unicase/u8-casecoll'.
39261         * modules/unicase/u8-casecoll-tests: New file.
39262         * tests/unicase/test-u8-casecoll.c: New file.
39263
39264         New module 'unicase/u32-casecoll'.
39265         * lib/unicase/u32-casecoll.c: New file.
39266         * modules/unicase/u32-casecoll: New file.
39267
39268         New module 'unicase/u16-casecoll'.
39269         * lib/unicase/u16-casecoll.c: New file.
39270         * modules/unicase/u16-casecoll: New file.
39271
39272         New module 'unicase/u8-casecoll'.
39273         * lib/unicase/u8-casecoll.c: New file.
39274         * lib/unicase/u-casecoll.h: New file.
39275         * modules/unicase/u8-casecoll: New file.
39276
39277         New module 'unicase/u32-casexfrm'.
39278         * lib/unicase/u32-casexfrm.c: New file.
39279         * modules/unicase/u32-casexfrm: New file.
39280
39281         New module 'unicase/u16-casexfrm'.
39282         * lib/unicase/u16-casexfrm.c: New file.
39283         * modules/unicase/u16-casexfrm: New file.
39284
39285         New module 'unicase/u8-casexfrm'.
39286         * lib/unicase/u8-casexfrm.c: New file.
39287         * lib/unicase/u-casexfrm.h: New file.
39288         * modules/unicase/u8-casexfrm: New file.
39289
39290         Tests for module 'unicase/u32-casecmp'.
39291         * modules/unicase/u32-casecmp-tests: New file.
39292         * tests/unicase/test-u32-casecmp.c: New file.
39293
39294         Tests for module 'unicase/u16-casecmp'.
39295         * modules/unicase/u16-casecmp-tests: New file.
39296         * tests/unicase/test-u16-casecmp.c: New file.
39297
39298         Tests for module 'unicase/u8-casecmp'.
39299         * modules/unicase/u8-casecmp-tests: New file.
39300         * tests/unicase/test-u8-casecmp.c: New file.
39301         * tests/unicase/test-casecmp.h: New file.
39302
39303         New module 'unicase/u32-casecmp'.
39304         * lib/unicase/u32-casecmp.c: New file.
39305         * modules/unicase/u32-casecmp: New file.
39306
39307         New module 'unicase/u16-casecmp'.
39308         * lib/unicase/u16-casecmp.c: New file.
39309         * modules/unicase/u16-casecmp: New file.
39310
39311         New module 'unicase/u8-casecmp'.
39312         * lib/unicase/u8-casecmp.c: New file.
39313         * lib/unicase/u-casecmp.h: New file.
39314         * modules/unicase/u8-casecmp: New file.
39315
39316         Tests for module 'unicase/u32-casefold'.
39317         * modules/unicase/u32-casefold-tests: New file.
39318         * tests/unicase/test-u32-casefold.c: New file.
39319
39320         Tests for module 'unicase/u16-casefold'.
39321         * modules/unicase/u16-casefold-tests: New file.
39322         * tests/unicase/test-u16-casefold.c: New file.
39323
39324         Tests for module 'unicase/u8-casefold'.
39325         * modules/unicase/u8-casefold-tests: New file.
39326         * tests/unicase/test-u8-casefold.c: New file.
39327
39328         New module 'unicase/u32-casefold'.
39329         * lib/unicase/u32-casefold.c: New file.
39330         * modules/unicase/u32-casefold: New file.
39331
39332         New module 'unicase/u16-casefold'.
39333         * lib/unicase/u16-casefold.c: New file.
39334         * modules/unicase/u16-casefold: New file.
39335
39336         New module 'unicase/u8-casefold'.
39337         * lib/unicase/u8-casefold.c: New file.
39338         * lib/unicase/u-casefold.h: New file.
39339         * modules/unicase/u8-casefold: New file.
39340
39341         New module 'unicase/tocasefold'.
39342         * lib/unicase/casefold.h: New file.
39343         * lib/unicase/tocasefold.c: New file.
39344         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39345         * modules/unicase/tocasefold: New file.
39346
39347         Tests for module 'unicase/u32-totitle'.
39348         * modules/unicase/u32-totitle-tests: New file.
39349         * tests/unicase/test-u32-totitle.c: New file.
39350
39351         Tests for module 'unicase/u16-totitle'.
39352         * modules/unicase/u16-totitle-tests: New file.
39353         * tests/unicase/test-u16-totitle.c: New file.
39354
39355         Tests for module 'unicase/u8-totitle'.
39356         * modules/unicase/u8-totitle-tests: New file.
39357         * tests/unicase/test-u8-totitle.c: New file.
39358
39359         New module 'unicase/u32-totitle'.
39360         * lib/unicase/u32-totitle.c: New file.
39361         * modules/unicase/u32-totitle: New file.
39362
39363         New module 'unicase/u16-totitle'.
39364         * lib/unicase/u16-totitle.c: New file.
39365         * modules/unicase/u16-totitle: New file.
39366
39367         New module 'unicase/u8-totitle'.
39368         * lib/unicase/u8-totitle.c: New file.
39369         * lib/unicase/u-totitle.h: New file.
39370         * modules/unicase/u8-totitle: New file.
39371
39372         Tests for module 'unicase/u32-tolower'.
39373         * modules/unicase/u32-tolower-tests: New file.
39374         * tests/unicase/test-u32-tolower.c: New file.
39375
39376         Tests for module 'unicase/u16-tolower'.
39377         * modules/unicase/u16-tolower-tests: New file.
39378         * tests/unicase/test-u16-tolower.c: New file.
39379
39380         Tests for module 'unicase/u8-tolower'.
39381         * modules/unicase/u8-tolower-tests: New file.
39382         * tests/unicase/test-u8-tolower.c: New file.
39383
39384         New module 'unicase/u32-tolower'.
39385         * lib/unicase/u32-tolower.c: New file.
39386         * modules/unicase/u32-tolower: New file.
39387
39388         New module 'unicase/u16-tolower'.
39389         * lib/unicase/u16-tolower.c: New file.
39390         * modules/unicase/u16-tolower: New file.
39391
39392         New module 'unicase/u8-tolower'.
39393         * lib/unicase/u8-tolower.c: New file.
39394         * modules/unicase/u8-tolower: New file.
39395
39396         Tests for module 'unicase/u32-toupper'.
39397         * modules/unicase/u32-toupper-tests: New file.
39398         * tests/unicase/test-u32-toupper.c: New file.
39399
39400         Tests for module 'unicase/u16-toupper'.
39401         * modules/unicase/u16-toupper-tests: New file.
39402         * tests/unicase/test-u16-toupper.c: New file.
39403
39404         Tests for module 'unicase/u8-toupper'.
39405         * modules/unicase/u8-toupper-tests: New file.
39406         * tests/unicase/test-u8-toupper.c: New file.
39407
39408         New module 'unicase/u32-toupper'.
39409         * lib/unicase/u32-toupper.c: New file.
39410         * modules/unicase/u32-toupper: New file.
39411
39412         New module 'unicase/u16-toupper'.
39413         * lib/unicase/u16-toupper.c: New file.
39414         * modules/unicase/u16-toupper: New file.
39415
39416         New module 'unicase/u8-toupper'.
39417         * lib/unicase/u8-toupper.c: New file.
39418         * modules/unicase/u8-toupper: New file.
39419
39420         New module 'unicase/u32-casemap'.
39421         * lib/unicase/u32-casemap.c: New file.
39422         * modules/unicase/u32-casemap: New file.
39423
39424         New module 'unicase/u16-casemap'.
39425         * lib/unicase/u16-casemap.c: New file.
39426         * modules/unicase/u16-casemap: New file.
39427
39428         New module 'unicase/u8-casemap'.
39429         * lib/unicase/unicasemap.h: New file.
39430         * lib/unicase/u8-casemap.c: New file.
39431         * lib/unicase/u-casemap.h: New file.
39432         * modules/unicase/u8-casemap: New file.
39433
39434         New module 'unicase/special-casing'.
39435         * lib/unicase/special-casing.h: New file.
39436         * lib/unicase/special-casing.c: New file.
39437         * lib/unicase/special-casing-table.gperf: New file, generated by
39438         gen-uni-tables.c.
39439         * modules/unicase/special-casing: New file.
39440
39441         Tests for module 'unicase/locale-language'.
39442         * modules/unicase/locale-language-tests: New file.
39443         * tests/unicase/test-locale-language.sh: New file.
39444         * tests/unicase/test-locale-language.c: New file.
39445
39446         New module 'unicase/locale-language'.
39447         * lib/unicase/locale-language.c: New file.
39448         * lib/unicase/locale-languages.gperf: New file.
39449         * modules/unicase/locale-language: New file.
39450
39451         Generate more tables for case conversion and case folding.
39452         * lib/gen-uni-tables.c (SCC_*): New enum items.
39453         (struct special_casing_rule): New type.
39454         (casing_rules, num_casing_rules, allocated_casing_rules): New
39455         variables.
39456         (add_casing_rule, fill_casing_rules): New functions.
39457         (struct casefold_rule): New type.
39458         (casefolding_rules, num_casefolding_rules,
39459         allocated_casefolding_rules): New variables.
39460         (fill_casefolding_rules): New function.
39461         (unicode_casefold): New variable.
39462         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
39463         sort_casing_rules, output_casing_rules): New functions.
39464         (main): Accept to more arguments: SpecialCasing.txt and
39465         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
39466         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
39467         Output mapping for casefolding.
39468
39469         * lib/unicase.h: Include stdbool.h, uninorm.h.
39470         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
39471         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
39472         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
39473         arguments.
39474         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
39475         resultp arguments.
39476         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
39477         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
39478         resultp arguments.
39479         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
39480         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
39481         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
39482         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
39483         declarations.
39484         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
39485
39486 2009-03-08  Bruno Haible  <bruno@clisp.org>
39487
39488         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39489         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
39490         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
39491         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39492
39493 2009-03-07  Bruno Haible  <bruno@clisp.org>
39494
39495         Adjust u*_normcmp, u*_normcoll API.
39496         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39497         u16_normcoll, u32_normcoll): Change failure conventions.
39498         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
39499         errno and return -1.
39500         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39501
39502 2009-03-07  Bruno Haible  <bruno@clisp.org>
39503
39504         Tests for module 'uninorm/u32-normcoll'.
39505         * modules/uninorm/u32-normcoll-tests: New file.
39506         * tests/uninorm/test-u32-normcoll.c: New file.
39507
39508         Tests for module 'uninorm/u16-normcoll'.
39509         * modules/uninorm/u16-normcoll-tests: New file.
39510         * tests/uninorm/test-u16-normcoll.c: New file.
39511
39512         Tests for module 'uninorm/u8-normcoll'.
39513         * modules/uninorm/u8-normcoll-tests: New file.
39514         * tests/uninorm/test-u8-normcoll.c: New file.
39515
39516 2009-03-07  Bruno Haible  <bruno@clisp.org>
39517
39518         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
39519         tests/uninorm/test-u32-normcmp.c.
39520         * tests/uninorm/test-u32-normcmp.c: Include it.
39521         (test_nonascii): New function, extracted from main. Add some more
39522         tests.
39523         (main): Invoke test_ascii and test_nonascii.
39524         * modules/uninorm/u32-normcmp-tests (Files): Add
39525         tests/uninorm/test-u32-normcmp.h.
39526         (Depends-on): Remove uninorm/u32-normcmp.
39527
39528         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
39529         tests/uninorm/test-u16-normcmp.c.
39530         * tests/uninorm/test-u16-normcmp.c: Include it.
39531         (test_nonascii): New function, extracted from main. Add some more
39532         tests.
39533         (main): Invoke test_ascii and test_nonascii.
39534         * modules/uninorm/u16-normcmp-tests (Files): Add
39535         tests/uninorm/test-u16-normcmp.h.
39536         (Depends-on): Remove uninorm/u16-normcmp.
39537
39538         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
39539         tests/uninorm/test-u8-normcmp.c.
39540         * tests/uninorm/test-u8-normcmp.c: Include it.
39541         (test_nonascii): New function, extracted from main. Add some more
39542         tests.
39543         (main): Invoke test_ascii and test_nonascii.
39544         * modules/uninorm/u8-normcmp-tests (Files): Add
39545         tests/uninorm/test-u8-normcmp.h.
39546         (Depends-on): Remove uninorm/u8-normcmp.
39547
39548 2009-03-07  Bruno Haible  <bruno@clisp.org>
39549
39550         New module 'uninorm/u32-normcoll'.
39551         * lib/uninorm/u32-normcoll.c: New file.
39552         * modules/uninorm/u32-normcoll: New file.
39553
39554         New module 'uninorm/u16-normcoll'.
39555         * lib/uninorm/u16-normcoll.c: New file.
39556         * modules/uninorm/u16-normcoll: New file.
39557
39558         New module 'uninorm/u8-normcoll'.
39559         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
39560         declarations.
39561         * lib/uninorm/u8-normcoll.c: New file.
39562         * lib/uninorm/u-normcoll.h: New file.
39563         * modules/uninorm/u8-normcoll: New file.
39564
39565         New module 'uninorm/u32-normxfrm'.
39566         * lib/uninorm/u32-normxfrm.c: New file.
39567         * modules/uninorm/u32-normxfrm: New file.
39568
39569         New module 'uninorm/u16-normxfrm'.
39570         * lib/uninorm/u16-normxfrm.c: New file.
39571         * modules/uninorm/u16-normxfrm: New file.
39572
39573         New module 'uninorm/u8-normxfrm'.
39574         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
39575         declarations.
39576         * lib/uninorm/u8-normxfrm.c: New file.
39577         * lib/uninorm/u-normxfrm.h: New file.
39578         * modules/uninorm/u8-normxfrm: New file.
39579
39580 2009-03-07  Bruno Haible  <bruno@clisp.org>
39581
39582         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
39583         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
39584         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
39585
39586 2009-03-07  Bruno Haible  <bruno@clisp.org>
39587
39588         New module 'memxfrm'.
39589         * lib/memxfrm.h: New file.
39590         * lib/memxfrm.c: New file.
39591         * modules/memxfrm: New file.
39592
39593 2009-03-07  Bruno Haible  <bruno@clisp.org>
39594
39595         New module 'memcmp2'.
39596         * lib/memcmp2.h: New file.
39597         * lib/memcmp2.c: New file.
39598         * modules/memcmp2: New file.
39599
39600 2009-03-07  Bruno Haible  <bruno@clisp.org>
39601
39602         Tests for module 'uninorm/decomposing-form'.
39603         * modules/uninorm/decomposing-form-tests: New file.
39604         * tests/uninorm/test-decomposing-form.c: New file.
39605
39606         New module 'uninorm/decomposing-form'.
39607         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
39608         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
39609         Add 'decomposing_variant' field.
39610         * lib/uninorm/decomposing-form.c: New file.
39611         * lib/uninorm/nfc.c (uninorm_nfc): Update.
39612         * lib/uninorm/nfd.c (uninorm_nfd): Update.
39613         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
39614         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
39615         * modules/uninorm/decomposing-form: New file.
39616         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
39617         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
39618
39619 2009-03-07  Bruno Haible  <bruno@clisp.org>
39620
39621         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
39622         strings.
39623
39624 2009-03-06  Bruno Haible  <bruno@clisp.org>
39625
39626         Tests for module 'uninorm/u32-normcmp'.
39627         * tests/uninorm/test-u32-normcmp.c: New file.
39628         * modules/uninorm/u32-normcmp-tests: New file.
39629
39630         Tests for module 'uninorm/u16-normcmp'.
39631         * tests/uninorm/test-u16-normcmp.c: New file.
39632         * modules/uninorm/u16-normcmp-tests: New file.
39633
39634         Tests for module 'uninorm/u8-normcmp'.
39635         * tests/uninorm/test-u8-normcmp.c: New file.
39636         * modules/uninorm/u8-normcmp-tests: New file.
39637
39638         New module 'uninorm/u32-normcmp'.
39639         * lib/uninorm/u32-normcmp.c: New file.
39640         * modules/uninorm/u32-normcmp: New file.
39641
39642         New module 'uninorm/u16-normcmp'.
39643         * lib/uninorm/u16-normcmp.c: New file.
39644         * modules/uninorm/u16-normcmp: New file.
39645
39646         New module 'uninorm/u8-normcmp'.
39647         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
39648         declarations.
39649         * lib/uninorm/u8-normcmp.c: New file.
39650         * lib/uninorm/u-normcmp.h: New file.
39651         * modules/uninorm/u8-normcmp: New file.
39652
39653 2009-03-06  Bruno Haible  <bruno@clisp.org>
39654
39655         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
39656         Reported by Eric Blake.
39657
39658 2009-03-06  Eric Blake  <ebb9@byu.net>
39659             Bruno Haible  <bruno@clisp.org>
39660
39661         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
39662         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
39663         condition.
39664         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39665         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
39666         condition.
39667         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39668
39669 2009-03-06  Eric Blake  <ebb9@byu.net>
39670
39671         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
39672         to avoid compiler warnings.
39673         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
39674
39675 2009-03-05  Bruno Haible  <bruno@clisp.org>
39676
39677         * tests/test-ftell.c (main): Disable test beyond end of file on
39678         FreeMiNT.
39679         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39680
39681 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
39682
39683         * lib/filevercmp.c: Move hidden files up in ordering.
39684         * tests/test-filevercmp.c: Add tests for hidden files.
39685
39686 2009-03-04  Bruno Haible  <bruno@clisp.org>
39687
39688         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
39689         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
39690         AM_CFLAGS.
39691         Reported by Simon Josefsson.
39692
39693 2009-03-03  Bruno Haible  <bruno@clisp.org>
39694
39695         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
39696         Reported by Simon Josefsson.
39697
39698         * doc/ld-version-script.texi: Update node reference.
39699
39700 2009-03-03  Bruno Haible  <bruno@clisp.org>
39701
39702         * modules/visibility (License): Change to 'unlimited'.
39703         Suggested by Simon Josefsson.
39704
39705 2009-03-03  Jim Meyering  <meyering@redhat.com>
39706
39707         unlinkdir: cannot_unlink_dir may modify process state
39708         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
39709         it's neither thread-safe nor appropriate for use in a library.
39710
39711 2009-03-03  Eric Blake  <ebb9@byu.net>
39712
39713         test-closein: silence test under Darwin
39714         * tests/test-closein.sh: Ignore stderr from cat, since we don't
39715         care if it dies from EPIPE or EBADF.
39716
39717 2009-03-03  Bruno Haible  <bruno@clisp.org>
39718
39719         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
39720         earlier.
39721         * doc/visibility.texi: Fix @node and @section.
39722
39723 2009-03-03  Simon Josefsson  <simon@josefsson.org>
39724
39725         * doc/gnulib.texi: Link to sections for ld version script and
39726         visibility.
39727         * doc/visibility.texi: Add @node and @section.
39728         * modules/ld-version-script: New module.
39729         * m4/ld-version-script.m4: New file.
39730         * doc/ld-version-script.texi: New file.
39731
39732 2009-03-02  David Lutterkort  <lutter@redhat.com>
39733
39734         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
39735         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39736
39737 2009-03-02  Bruno Haible  <bruno@clisp.org>
39738
39739         * doc/visibility.texi: Mention libtool's -export-symbols option.
39740
39741 2009-03-02  Jim Meyering  <meyering@redhat.com>
39742
39743         announce-gen: new option: --no-print-checksums
39744         * build-aux/announce-gen (usage): Describe it.
39745         (print_checksums): Print a newline here, not in the [*] footnote.
39746         (main): Honor it.
39747
39748 2009-03-01  Bruno Haible  <bruno@clisp.org>
39749
39750         Use socklen_t in the native Windows replacements prototypes.
39751         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
39752         instead of 'int'.
39753         * lib/getsockopt.c (rpl_getsockopt): Likewise.
39754         * lib/setsockopt.c (rpl_setsockopt): Likewise.
39755         * modules/getsockopt (Depends-on): Add socklen.
39756         * modules/setsockopt (Depends-on): Add socklen.
39757
39758 2009-03-01  Bruno Haible  <bruno@clisp.org>
39759
39760         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
39761         least 4.2.
39762
39763 2009-03-01  Eric Blake  <ebb9@byu.net>
39764             Bruno Haible  <bruno@clisp.org>
39765
39766         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
39767         error messages.
39768         * lib/wait-process.c (wait_subprocess): Omit error message about
39769         deadly signal sent to the child of termsigp != NULL.
39770
39771 2009-03-01  Eric Blake  <ebb9@byu.net>
39772
39773         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
39774
39775 2009-03-01  Bruno Haible  <bruno@clisp.org>
39776
39777         Avoid a gcc warning.
39778         * tests/test-sched.c (b): Make global.
39779         Reported by Eric Blake.
39780
39781 2009-01-19  Martin Lambers  <marlam@marlam.de>
39782
39783         Provide POSIX semantics for socket timeout options on W32.
39784         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
39785         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
39786         * modules/setsockopt: Depend on sys_time module for struct timeval.
39787         * modules/getsockopt: Depend on sys_time module for struct timeval.
39788
39789 2009-03-01  Simon Josefsson  <simon@josefsson.org>
39790
39791         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
39792         __USE_GNU, for consistency with netdb.in.h.
39793         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39794
39795 2009-03-01  Bruno Haible  <bruno@clisp.org>
39796
39797         More support for FreeMiNT.
39798         * lib/fseeko.c (rpl_fseeko): Complete last commit.
39799         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39800
39801 2009-03-01  Bruno Haible  <bruno@clisp.org>
39802
39803         More support for FreeMiNT.
39804         * lib/fpurge.c (fpurge): Correct last commit.
39805         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39806
39807 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39808
39809         Fix unportable awk script in vc-list-files.
39810         * build-aux/vc-list-files: In the replacement awk script, use
39811         substr with a second argument of 1, not zero.
39812         Report by Simon Josefsson.
39813
39814 2009-02-28  Bruno Haible  <bruno@clisp.org>
39815
39816         More support for FreeMiNT.
39817         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
39818         to FreeMiNT today.
39819         * lib/fwriting.c (fwriting): Likewise.
39820         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
39821
39822 2009-02-28  Bruno Haible  <bruno@clisp.org>
39823
39824         * tests/test-freadseek.c (main): Disable test beyond end of file on
39825         FreeMiNT.
39826         * tests/test-ftello.c (main): Likewise.
39827         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39828
39829 2009-02-28  Bruno Haible  <bruno@clisp.org>
39830
39831         Add tentative support for FreeMiNT.
39832         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
39833         * lib/fpurge.c (fpurge): Likewise.
39834         * lib/freadable.c (freadable): Likewise.
39835         * lib/freading.c (freading): Likewise.
39836         * lib/freadptr.c (freadptr): Likewise.
39837         * lib/freadseek.c (freadptrinc): Likewise.
39838         * lib/fseeko.c (rpl_fseeko): Likewise.
39839         * lib/fseterr.c (fseterr): Likewise.
39840         * lib/fwritable.c (fwritable): Likewise.
39841         * lib/fwriting.c (fwriting): Likewise.
39842         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
39843         Hourihane.
39844         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39845
39846 2009-02-28  Bruno Haible  <bruno@clisp.org>
39847
39848         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
39849         SIGCHLD.
39850         Reported by Jim Meyering.
39851
39852 2009-02-28  Bruno Haible  <bruno@clisp.org>
39853
39854         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
39855         Mention the results of these tests on various platforms.
39856         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
39857         order.
39858         * doc/posix-functions/printf.texi: Likewise.
39859         * doc/posix-functions/snprintf.texi: Likewise.
39860         * doc/posix-functions/sprintf.texi: Likewise.
39861         * doc/posix-functions/vfprintf.texi: Likewise.
39862         * doc/posix-functions/vprintf.texi: Likewise.
39863         * doc/posix-functions/vsnprintf.texi: Likewise.
39864         * doc/posix-functions/vsprintf.texi: Likewise.
39865         * doc/glibc-functions/obstack_printf.texi: Likewise.
39866         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39867
39868 2009-02-28  Bruno Haible  <bruno@clisp.org>
39869
39870         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
39871         Reported by Loïc Minier <lool@dooz.org>.
39872
39873 2009-02-27  Bruno Haible  <bruno@clisp.org>
39874
39875         * gnulib-tool (func_import): Make the sed expression used to create the
39876         sed script for updating the .gitignore file POSIX compliant.
39877         Reported by Eric Blake.
39878
39879 2009-02-27  Bruno Haible  <bruno@clisp.org>
39880
39881         * gnulib-tool (sed): Don't alias as "sed --posix".
39882         Reported by Eric Blake.
39883
39884 2009-02-27  Bruno Haible  <bruno@clisp.org>
39885
39886         Avoid test link errors.
39887         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
39888         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
39889         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
39890         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
39891         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39892
39893 2009-02-27  Bruno Haible  <bruno@clisp.org>
39894
39895         Avoid spurious "(cached)" in configure output.
39896         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
39897         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
39898         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39899         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39900         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39901         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
39902         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39903         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
39904         Reported by Eric Blake.
39905
39906 2009-02-27  Eric Blake  <ebb9@byu.net>
39907
39908         printf: fix regression in previous patch
39909         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
39910
39911 2009-02-27  Bruno Haible  <bruno@clisp.org>
39912
39913         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
39914         value.
39915         * lib/stdint.in.h: Likewise.
39916         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
39917
39918 2009-02-27  Eric Blake  <ebb9@byu.net>
39919
39920         doc: mention more functions added in cygwin 1.7.0
39921         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
39922         addition.
39923         * doc/posix-functions/open_wmemstream.texi: Likewise.
39924         * doc/posix-functions/wcsnlen.texi: Likewise.
39925         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39926         * doc/posix-functions/wcstod.texi: Likewise.
39927         * doc/posix-functions/wcstof.texi: Likewise.
39928         * doc/posix-functions/wcstoimax.texi: Likewise.
39929         * doc/posix-functions/wcstok.texi: Likewise.
39930         * doc/posix-functions/wcstoumax.texi: Likewise.
39931
39932         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
39933         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
39934         * doc/posix-functions/fprintf.texi: Update.
39935         * doc/posix-functions/printf.texi: Update.
39936         * doc/posix-functions/snprintf.texi: Update.
39937         * doc/posix-functions/sprintf.texi: Update.
39938         * doc/posix-functions/vfprintf.texi: Update.
39939         * doc/posix-functions/vprintf.texi: Update.
39940         * doc/posix-functions/vsnprintf.texi: Update.
39941         * doc/posix-functions/vsprintf.texi: Update.
39942         * doc/glibc-functions/obstack_printf.texi: Update.
39943         * doc/glibc-functions/obstack_vprintf.texi: Update.
39944
39945 2009-02-26  Eric Blake  <ebb9@byu.net>
39946
39947         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
39948         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
39949         compilation bug by using runtime conversion.
39950         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
39951         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
39952         * modules/ceill-tests (Files): Use nan.h.
39953         * modules/floorl-tests (Files): Likewise.
39954         * modules/frexpl-tests (Files): Likewise.
39955         * modules/isnanl-tests (Files): Likewise.
39956         * modules/ldexpl-tests (Files): Likewise.
39957         * modules/roundl-tests (Files): Likewise.
39958         * modules/truncl-tests (Files): Likewise.
39959         * tests/test-ceill.c (main): Use a working NaN.
39960         * tests/test-floorl.c (main): Likewise.
39961         * tests/test-frexpl.c (main): Likewise.
39962         * tests/test-isnan.c (test_long_double): Likewise.
39963         * tests/test-isnanl.h (main): Likewise.
39964         * tests/test-ldexpl.h (main): Likewise.
39965         * tests/test-roundl.h (main): Likewise.
39966         * tests/test-truncl.h (main): Likewise.
39967         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
39968
39969 2009-02-26  Eric Blake  <ebb9@byu.net>
39970             Bruno Haible  <bruno@clisp.org>
39971
39972         Work around a *printf bug with %ls on Solaris.
39973         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
39974         precision is specified, sprintf stops converting the wide string
39975         argument when the number of bytes that have been produced by this
39976         conversion equals or exceeds the precision.
39977         * doc/posix-functions/fprintf.texi: Update.
39978         * doc/posix-functions/printf.texi: Update.
39979         * doc/posix-functions/snprintf.texi: Update.
39980         * doc/posix-functions/sprintf.texi: Update.
39981         * doc/posix-functions/vfprintf.texi: Update.
39982         * doc/posix-functions/vprintf.texi: Update.
39983         * doc/posix-functions/vsnprintf.texi: Update.
39984         * doc/posix-functions/vsprintf.texi: Update.
39985         * doc/glibc-functions/obstack_printf.texi: Update.
39986         * doc/glibc-functions/obstack_vprintf.texi: Update.
39987
39988 2009-02-26  Eric Blake  <ebb9@byu.net>
39989
39990         stdlib: favor compiler check of random.h
39991         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
39992         to avoid an ObjC random.h installed by Swarm.
39993
39994 2009-02-26  Bruno Haible  <bruno@clisp.org>
39995
39996         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
39997         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
39998         Reported by Gary V. Vaughan <gary@gnu.org>.
39999
40000 2009-02-26  Bruno Haible  <bruno@clisp.org>
40001
40002         Fix *printf behaviour regarding the %ls directive.
40003         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40004         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40005         NEED_PRINTF_DIRECTIVE_LS.
40006         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40007         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40008         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40009         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40010         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40011         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40012         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40013         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40014         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40015         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40016         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40017         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40018         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40019         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40020         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40021         * doc/posix-functions/fprintf.texi: Update.
40022         * doc/posix-functions/printf.texi: Update.
40023         * doc/posix-functions/snprintf.texi: Update.
40024         * doc/posix-functions/sprintf.texi: Update.
40025         * doc/posix-functions/vfprintf.texi: Update.
40026         * doc/posix-functions/vprintf.texi: Update.
40027         * doc/posix-functions/vsnprintf.texi: Update.
40028         * doc/posix-functions/vsprintf.texi: Update.
40029         * doc/glibc-functions/obstack_printf.texi: Update.
40030         * doc/glibc-functions/obstack_vprintf.texi: Update.
40031         Reported by Eric Blake.
40032
40033 2009-02-25  Bruno Haible  <bruno@clisp.org>
40034
40035         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40036         with known value.
40037         Reported by Gary V. Vaughan <gary@gnu.org>.
40038
40039 2009-02-25  Bruno Haible  <bruno@clisp.org>
40040
40041         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40042         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40043         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40044         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40045         Reported by Gary V. Vaughan <gary@gnu.org>.
40046
40047 2009-02-25  Bruno Haible  <bruno@clisp.org>
40048
40049         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40050         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40051         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40052         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40053         Reported by Gary V. Vaughan <gary@gnu.org>.
40054
40055 2009-02-25  Eric Blake  <ebb9@byu.net>
40056
40057         tests: skip fseek/ftell tests if ungetc is broken
40058         * m4/ungetc.m4: New file.
40059         * modules/fseek-tests: Split test, so ungetc dependency is
40060         separate from rest of test.
40061         * modules/fseeko-tests: Likewise.
40062         * modules/ftell-tests: Likewise.
40063         * modules/ftello-tests: Likewise.
40064         * tests/test-fseek.c (main): Isolate ungetc dependency.
40065         * tests/test-fseeko.c (main): Likewise.
40066         * tests/test-ftell.c (main): Likewise.
40067         * tests/test-ftello.c (main): Likewise.
40068         * tests/test-fseek2.sh: New file.
40069         * tests/test-fseeko2.sh: Likewise.
40070         * tests/test-ftell2.sh: Likewise.
40071         * tests/test-ftello2.sh: Likewise.
40072
40073 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40074
40075         test-getaddrinfo: fix usage of skip return code 77
40076         * tests/test-gettaddrinfo.c: Return skip code 77 only
40077         for first occurance of skip (4x77 is not 77)
40078
40079 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40080
40081         strtod: avoid C99 decl-after-statement
40082         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40083
40084 2009-02-24  Eric Blake  <ebb9@byu.net>
40085
40086         strtod: detect HP-UX 11.31 bug
40087         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40088         Reported by Gary V. Vaughan.
40089
40090 2009-02-23  Bruno Haible  <bruno@clisp.org>
40091
40092         Fix invalid read past end of memory block.
40093         * lib/vasnprintf.c (DCHAR_SET): Define.
40094         (local_wcslen): Define only when needed.
40095         (local_strnlen, local_wcsnlen): New functions.
40096         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40097         directives that involve a conversion ourselves.
40098         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40099         wcsnlen, mbrtowc, wcrtomb.
40100         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40101         * tests/test-vasprintf-posix.c (test_function): Likewise.
40102         * tests/test-snprintf-posix.h (test_function): Likewise.
40103         * tests/test-sprintf-posix.h (test_function): Likewise.
40104         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40105
40106 2009-02-22  Bruno Haible  <bruno@clisp.org>
40107
40108         Implement new clarified decomposition of Hangul syllables.
40109         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40110         of type LTV, return only a pairwise decomposition.
40111         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40112         Likewise.
40113         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40114         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40115         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40116
40117 2009-02-22  Bruno Haible  <bruno@clisp.org>
40118
40119         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40120         zero-length results and shrink excess allocated memory.
40121         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40122         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40123         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40124         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40125         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40126         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40127         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40128         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40129         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40130         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40131         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40132         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40133
40134 2009-02-21  Bruno Haible  <bruno@clisp.org>
40135
40136         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40137         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40138         spaces after a period. Put a space between a macro name and its
40139         argument list. Trivial rewordings.
40140         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40141         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40142         (main): Return 0 explicitly.
40143
40144 2009-02-21  Bruno Haible  <bruno@clisp.org>
40145
40146         Tests for module 'uninorm/filter'.
40147         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40148         * modules/uninorm/filter-tests: New file.
40149
40150         New module 'uninorm/filter'.
40151         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40152         uninorm_filter_flush, uninorm_filter_free): New declarations.
40153         * lib/uninorm/uninorm-filter.c: New file.
40154         * modules/uninorm/filter: New file.
40155
40156 2009-02-21  Bruno Haible  <bruno@clisp.org>
40157
40158         Tests for module 'uninorm/nfkc'.
40159         * tests/uninorm/test-nfkc.c: New file.
40160         * tests/uninorm/test-u8-nfkc.c: New file.
40161         * tests/uninorm/test-u16-nfkc.c: New file.
40162         * tests/uninorm/test-u32-nfkc.c: New file.
40163         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40164         * tests/uninorm/test-u32-nfkc-big.c: New file.
40165         * modules/uninorm/nfkc-tests: New file.
40166
40167         New module 'uninorm/nfkc'.
40168         * lib/uninorm/nfkc.c: New file.
40169         * modules/uninorm/nfkc: New file.
40170
40171         Tests for module 'uninorm/nfkd'.
40172         * tests/uninorm/test-nfkd.c: New file.
40173         * tests/uninorm/test-u8-nfkd.c: New file.
40174         * tests/uninorm/test-u16-nfkd.c: New file.
40175         * tests/uninorm/test-u32-nfkd.c: New file.
40176         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40177         * tests/uninorm/test-u32-nfkd-big.c: New file.
40178         * modules/uninorm/nfkd-tests: New file.
40179
40180         New module 'uninorm/nfkd'.
40181         * lib/uninorm/nfkd.c: New file.
40182         * modules/uninorm/nfkd: New file.
40183
40184         Tests for module 'uninorm/nfc'.
40185         * tests/uninorm/test-nfc.c: New file.
40186         * tests/uninorm/test-u8-nfc.c: New file.
40187         * tests/uninorm/test-u16-nfc.c: New file.
40188         * tests/uninorm/test-u32-nfc.c: New file.
40189         * tests/uninorm/test-u32-nfc-big.sh: New file.
40190         * tests/uninorm/test-u32-nfc-big.c: New file.
40191         * modules/uninorm/nfc-tests: New file.
40192
40193         New module 'uninorm/nfc'.
40194         * lib/uninorm/nfc.c: New file.
40195         * modules/uninorm/nfc: New file.
40196
40197         Tests for module 'uninorm/nfd'.
40198         * tests/uninorm/test-nfd.c: New file.
40199         * tests/uninorm/test-u8-nfd.c: New file.
40200         * tests/uninorm/test-u16-nfd.c: New file.
40201         * tests/uninorm/test-u32-nfd.c: New file.
40202         * tests/uninorm/test-u32-nfd-big.sh: New file.
40203         * tests/uninorm/test-u32-nfd-big.c: New file.
40204         * tests/uninorm/test-u32-normalize-big.h: New file.
40205         * tests/uninorm/test-u32-normalize-big.c: New file.
40206         * tests/uninorm/NormalizationTest.txt: New file, created from
40207         Unicode 5.1.0 NormalizationTest.txt.
40208         * modules/uninorm/nfd-tests: New file.
40209
40210         New module 'uninorm/nfd'.
40211         * lib/uninorm/nfd.c: New file.
40212         * modules/uninorm/nfd: New file.
40213
40214         New module 'uninorm/u32-normalize'.
40215         * lib/uninorm/u32-normalize.c: New file.
40216         * modules/uninorm/u32-normalize: New file.
40217
40218         New module 'uninorm/u16-normalize'.
40219         * lib/uninorm/u16-normalize.c: New file.
40220         * modules/uninorm/u16-normalize: New file.
40221
40222         New module 'uninorm/u8-normalize'.
40223         * lib/uninorm/u8-normalize.c: New file.
40224         * lib/uninorm/normalize-internal.h: New file.
40225         * lib/uninorm/u-normalize-internal.h: New file.
40226         * modules/uninorm/u8-normalize: New file.
40227
40228         New module 'uninorm/decompose-internal'.
40229         * lib/uninorm/decompose-internal.c: New file.
40230         * modules/uninorm/decompose-internal: New file.
40231
40232         Tests for module 'uninorm/composition'.
40233         * tests/uninorm/test-composition.c: New file.
40234         * modules/uninorm/composition-tests: New file.
40235
40236         New module 'uninorm/composition'.
40237         * lib/uninorm/composition.c: New file.
40238         * lib/uninorm/composition-table.gperf: New file, generated by
40239         gen-uni-tables.
40240         * modules/uninorm/composition: New file.
40241
40242         Tests for module 'uninorm/compat-decomposition'.
40243         * tests/uninorm/test-compat-decomposition.c: New file.
40244         * modules/uninorm/compat-decomposition-tests: New file.
40245
40246         New module 'uninorm/compat-decomposition'.
40247         * lib/uninorm/decompose-internal.h: New file.
40248         * lib/uninorm/compat-decomposition.c: New file.
40249         * modules/uninorm/compat-decomposition: New file.
40250
40251         Tests for module 'uninorm/canonical-decomposition'.
40252         * tests/uninorm/test-canonical-decomposition.c: New file.
40253         * modules/uninorm/canonical-decomposition-tests: New file.
40254
40255         New module 'uninorm/canonical-decomposition'.
40256         * lib/uninorm/canonical-decomposition.c: New file.
40257         * modules/uninorm/canonical-decomposition: New file.
40258
40259         Tests for module 'uninorm/decomposition'.
40260         * tests/uninorm/test-decomposition.c: New file.
40261         * modules/uninorm/decomposition-tests: New file.
40262
40263         New module 'uninorm/decomposition'.
40264         * lib/uninorm/decomposition.c: New file.
40265         * modules/uninorm/decomposition: New file.
40266
40267         New module 'uninorm/decomposition-table'.
40268         * lib/uninorm/decomposition-table.h: New file.
40269         * lib/uninorm/decomposition-table.c: New file.
40270         * lib/uninorm/decomposition-table1.h: New file, generated by
40271         gen-uni-tables.
40272         * lib/uninorm/decomposition-table2.h: New file, generated by
40273         gen-uni-tables.
40274         * modules/uninorm/decomposition-table: New file.
40275
40276         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
40277         (UC_DECOMP_*): New enumeration items.
40278         (get_decomposition): New function.
40279         (struct decomp_table): New type.
40280         (output_decomposition, output_decomposition_tables): New functions.
40281         (unicode_composition_exclusions): New variable.
40282         (fill_composition_exclusions, debug_output_composition_tables): New
40283         functions.
40284         (main): Accept one more argument. Invoke fill_composition_exclusions.
40285         Output decomposition and composition tables.
40286
40287         New module 'uninorm/base'.
40288         * lib/uninorm.h: New file.
40289         * lib/unictype.h: Update comment.
40290         * modules/uninorm/base: New file.
40291
40292 2009-02-21  David Lutterkort  <lutter@redhat.com>
40293
40294         Tests for module 'safe-alloc'.
40295         * tests/test-safe-alloc.c: New file.
40296         * modules/safe-alloc-tests: New file.
40297
40298         New module 'safe-alloc'.
40299         * lib/safe-alloc.h: New file.
40300         * lib/safe-alloc.c: New file.
40301         * m4/safe-alloc.m4: New file.
40302         * modules/safe-alloc: New file.
40303         * doc/safe-alloc.texi: New file.
40304         * doc/gnulib.texi: Include it.
40305         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40306         safe-alloc.
40307
40308 2009-02-18  Bruno Haible  <bruno@clisp.org>
40309
40310         Fix link error on non-glibc systems.
40311         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
40312         variable.
40313         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40314
40315 2009-02-18  Jim Meyering  <meyering@redhat.com>
40316
40317         fts: avoid used-uninitialized error due to recent change
40318         * lib/fts.c (fts_read): Guard uses of the new member,
40319         parent->fts_n_dirs_remaining, since it's not relevant for
40320         the parent of a directory specified on the command-line.
40321
40322 2009-02-17  James Youngman  <jay@gnu.org>
40323             Bruno Haible  <bruno@clisp.org>
40324
40325         * m4/include_next.m4: Reformulate comment.
40326
40327 2009-02-16  Jim Meyering  <meyering@redhat.com>
40328
40329         fts: add #if guards so that the fts_lgpl module still builds
40330         * lib/fts.c: Guard just-added hash-table-using parts with
40331         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
40332         Reported by Simon Josefsson.
40333
40334 2009-02-15  Bruno Haible  <bruno@clisp.org>
40335
40336         * modules/array-mergesort-tests: New file.
40337         * tests/test-array-mergesort.c: New file.
40338
40339         New module 'array-mergesort'.
40340         * modules/array-mergesort: New file.
40341         * lib/array-mergesort.h: New file.
40342
40343 2009-02-15  Bruno Haible  <bruno@clisp.org>
40344
40345         Fix 2009-02-07 commit.
40346         * lib/gen-uni-tables.c (output_predicate, output_category,
40347         output_combclass, output_bidi_category, output_decimal_digit,
40348         output_digit, output_numeric, output_mirror, output_scripts,
40349         output_ident_category, output_simple_mapping): Fix format directives.
40350         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40351
40352 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40353
40354         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40355         fixes are available from IBM.
40356
40357 2009-02-13  Jim Meyering  <meyering@redhat.com>
40358
40359         fts: arrange not to stat non-directories in more cases
40360         This makes GNU find (when it doesn't need to stat each file)
40361         *much* more efficient at traversing reiserfs file systems.
40362         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40363         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40364         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40365         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40366         (leaf_optimization_applies): New function.
40367         (LCO_hash, LCO_compare): New helper functions.
40368         (link_count_optimize_ok): New function.
40369         (fts_stat): Initialize new member (if dir).
40370         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40371         we've just stat'ed a directory.  Skip the stat call when possible.
40372         ---
40373         Note this AFS-related exchange:
40374         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
40375         and note find's pioctl call in find/fstype.c.
40376         But that is necessary only if you want to enable the
40377         optimization for AFS, and for now, I don't.
40378
40379         fts: move a function definition "up" (no semantic change)
40380         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
40381         "up" to precede upcoming use of a related function.
40382
40383 2009-02-11  Jim Meyering  <meyering@redhat.com>
40384
40385         fts: correct internal computation of nlinks (optimization-related)
40386         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
40387         whether the current entry is a directory, so don't test it.
40388
40389 2009-02-10  Bruno Haible  <bruno@clisp.org>
40390
40391         Tests for module 'uniwbrk/ulc-wordbreaks'.
40392         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
40393         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
40394         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
40395
40396         Tests for module 'uniwbrk/u32-wordbreaks'.
40397         * modules/uniwbrk/u32-wordbreaks-tests: New file.
40398         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
40399
40400         Tests for module 'uniwbrk/u16-wordbreaks'.
40401         * modules/uniwbrk/u16-wordbreaks-tests: New file.
40402         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
40403
40404         Tests for module 'uniwbrk/u8-wordbreaks'.
40405         * modules/uniwbrk/u8-wordbreaks-tests: New file.
40406         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
40407
40408 2009-02-10  Bruno Haible  <bruno@clisp.org>
40409
40410         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
40411         property.
40412         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
40413         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40414         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40415
40416 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40417
40418         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
40419         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
40420
40421 2009-02-10  Bruno Haible  <bruno@clisp.org>
40422
40423         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
40424         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
40425         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
40426         * lib/unilbrk/u8-possible-linebreaks.c: Update.
40427         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
40428         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
40429
40430 2009-02-09  Simon Josefsson  <simon@josefsson.org>
40431
40432         * lib/sockets.h (gl_fd_to_handle): New function.
40433
40434         * tests/test-sockets.c: Call gl_fd_to_handle.
40435
40436 2009-02-09  Bruno Haible  <bruno@clisp.org>
40437
40438         * doc/havelib.texi: Document the conventions on bi-arch systems.
40439
40440 2009-02-08  Bruno Haible  <bruno@clisp.org>
40441
40442         Document the AC_LIB_LINKFLAGS macro.
40443         * doc/havelib.texi: New file, mostly written on 2005-05-24.
40444         * doc/gnulib.texi: Include it.
40445
40446 2009-02-08  Bruno Haible  <bruno@clisp.org>
40447
40448         Fix wrong order of sections, compared to TOC.
40449         * doc/gnulib.texi: Include relocatable-maint.texi after the
40450         "Regular expressions" node, not before.
40451
40452 2009-02-08  Bruno Haible  <bruno@clisp.org>
40453
40454         Tests for module 'unicase/totitle'.
40455         * modules/unicase/totitle-tests: New file.
40456
40457         Tests for module 'unicase/tolower'.
40458         * modules/unicase/tolower-tests: New file.
40459
40460         Tests for module 'unicase/toupper'.
40461         * modules/unicase/toupper-tests: New file.
40462         * tests/unicase/test-mapping-part1.h: New file.
40463         * tests/unicase/test-mapping-part2.h: New file.
40464
40465         New module 'unicase/totitle'.
40466         * modules/unicase/totitle: New file.
40467         * lib/unicase/totitle.c: New file.
40468
40469         New module 'unicase/tolower'.
40470         * modules/unicase/tolower: New file.
40471         * lib/unicase/tolower.c: New file.
40472
40473         New module 'unicase/toupper'.
40474         * modules/unicase/toupper: New file.
40475         * lib/unicase/toupper.c: New file.
40476         * lib/unicase/simple-mapping.h: New file.
40477
40478         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
40479         (mapping_table): New structure.
40480         (output_simple_mapping): New function.
40481         (main): Invoke output_simple_mapping_test and output_simple_mapping.
40482         * modules/gen-uni-tables (Description): Update.
40483         * lib/unicase/toupper.h: New file, automatically generated by
40484         gen-uni-tables.
40485         * lib/unicase/tolower.h: New file, automatically generated by
40486         gen-uni-tables.
40487         * lib/unicase/totitle.h: New file, automatically generated by
40488         gen-uni-tables.
40489         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
40490         gen-uni-tables.
40491         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
40492         gen-uni-tables.
40493         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
40494         gen-uni-tables.
40495
40496         New module 'unicase/base'.
40497         * modules/unicase/base: New file.
40498         * lib/unicase.h: New file.
40499
40500 2009-02-08  Bruno Haible  <bruno@clisp.org>
40501
40502         New module 'uniwbrk/ulc-wordbreaks'.
40503         * modules/uniwbrk/ulc-wordbreaks: New file.
40504         * lib/uniwbrk/ulc-wordbreaks.c: New file.
40505
40506         New module 'uniwbrk/u32-wordbreaks'.
40507         * modules/uniwbrk/u32-wordbreaks: New file.
40508         * lib/uniwbrk/u32-wordbreaks.c: New file.
40509
40510         New module 'uniwbrk/u16-wordbreaks'.
40511         * modules/uniwbrk/u16-wordbreaks: New file.
40512         * lib/uniwbrk/u16-wordbreaks.c: New file.
40513
40514         New module 'uniwbrk/u8-wordbreaks'.
40515         * modules/uniwbrk/u8-wordbreaks: New file.
40516         * lib/uniwbrk/u8-wordbreaks.c: New file.
40517         * lib/uniwbrk/u-wordbreaks.h: New file.
40518
40519         New module 'uniwbrk/table'.
40520         * modules/uniwbrk/table: New file.
40521         * lib/uniwbrk/wbrktable.h: New file.
40522         * lib/uniwbrk/wbrktable.c: New file.
40523
40524         New module 'uniwbrk/wordbreak-property'.
40525         * modules/uniwbrk/wordbreak-property: New file.
40526         * lib/uniwbrk/wordbreak-property.c: New file.
40527
40528         * lib/gen-uni-tables.c (WBP_*): New enum items.
40529         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
40530         (unicode_org_wbp): New variable.
40531         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
40532         New functions.
40533         (wbp_table): New structure.
40534         (output_wbp, output_wbrk_tables): New functions.
40535         (main): Accept additional argument. Invoke fill_org_wbp,
40536         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
40537         output_wbrk_tables.
40538         * modules/gen-uni-tables (Description): Update.
40539         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
40540         gen-uni-tables.
40541
40542         New module 'uniwbrk/base'.
40543         * modules/uniwbrk/base: New file.
40544         * lib/uniwbrk.h: New file.
40545
40546 2009-02-08  Bruno Haible  <bruno@clisp.org>
40547
40548         Update to Unicode 5.1.0.
40549         * lib/gen-uni-tables.c (is_property_alphabetic): Include
40550         U+2185..U+2188.
40551         (is_property_default_ignorable_code_point): Don't include characters
40552         of category Cc or Cs and not-a-characters.
40553         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
40554         U+0D79, U+109E, U+109F, U+A60C.
40555         * lib/unictype/bidi_of.h: Regenerated.
40556         * lib/unictype/blocks.h: Regenerated.
40557         * lib/unictype/categ_C.h: Regenerated.
40558         * lib/unictype/categ_Cf.h: Regenerated.
40559         * lib/unictype/categ_Cn.h: Regenerated.
40560         * lib/unictype/categ_L.h: Regenerated.
40561         * lib/unictype/categ_Ll.h: Regenerated.
40562         * lib/unictype/categ_Lm.h: Regenerated.
40563         * lib/unictype/categ_Lo.h: Regenerated.
40564         * lib/unictype/categ_Lu.h: Regenerated.
40565         * lib/unictype/categ_M.h: Regenerated.
40566         * lib/unictype/categ_Mc.h: Regenerated.
40567         * lib/unictype/categ_Me.h: Regenerated.
40568         * lib/unictype/categ_Mn.h: Regenerated.
40569         * lib/unictype/categ_N.h: Regenerated.
40570         * lib/unictype/categ_Nd.h: Regenerated.
40571         * lib/unictype/categ_Nl.h: Regenerated.
40572         * lib/unictype/categ_No.h: Regenerated.
40573         * lib/unictype/categ_P.h: Regenerated.
40574         * lib/unictype/categ_Pd.h: Regenerated.
40575         * lib/unictype/categ_Pe.h: Regenerated.
40576         * lib/unictype/categ_Pf.h: Regenerated.
40577         * lib/unictype/categ_Pi.h: Regenerated.
40578         * lib/unictype/categ_Po.h: Regenerated.
40579         * lib/unictype/categ_Ps.h: Regenerated.
40580         * lib/unictype/categ_S.h: Regenerated.
40581         * lib/unictype/categ_Sk.h: Regenerated.
40582         * lib/unictype/categ_Sm.h: Regenerated.
40583         * lib/unictype/categ_So.h: Regenerated.
40584         * lib/unictype/categ_of.h: Regenerated.
40585         * lib/unictype/combining.h: Regenerated.
40586         * lib/unictype/ctype_alnum.h: Regenerated.
40587         * lib/unictype/ctype_alpha.h: Regenerated.
40588         * lib/unictype/ctype_graph.h: Regenerated.
40589         * lib/unictype/ctype_lower.h: Regenerated.
40590         * lib/unictype/ctype_print.h: Regenerated.
40591         * lib/unictype/ctype_punct.h: Regenerated.
40592         * lib/unictype/ctype_upper.h: Regenerated.
40593         * lib/unictype/decdigit.h: Regenerated.
40594         * lib/unictype/digit.h: Regenerated.
40595         * lib/unictype/mirror.h: Regenerated.
40596         * lib/unictype/numeric.h: Regenerated.
40597         * lib/unictype/pr_alphabetic.h: Regenerated.
40598         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
40599         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
40600         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
40601         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
40602         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
40603         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
40604         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
40605         * lib/unictype/pr_combining.h: Regenerated.
40606         * lib/unictype/pr_dash.h: Regenerated.
40607         * lib/unictype/pr_decimal_digit.h: Regenerated.
40608         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
40609         * lib/unictype/pr_deprecated.h: Regenerated.
40610         * lib/unictype/pr_diacritic.h: Regenerated.
40611         * lib/unictype/pr_extender.h: Regenerated.
40612         * lib/unictype/pr_format_control.h: Regenerated.
40613         * lib/unictype/pr_grapheme_base.h: Regenerated.
40614         * lib/unictype/pr_grapheme_extend.h: Regenerated.
40615         * lib/unictype/pr_grapheme_link.h: Regenerated.
40616         * lib/unictype/pr_id_continue.h: Regenerated.
40617         * lib/unictype/pr_id_start.h: Regenerated.
40618         * lib/unictype/pr_ideographic.h: Regenerated.
40619         * lib/unictype/pr_ignorable_control.h: Regenerated.
40620         * lib/unictype/pr_lowercase.h: Regenerated.
40621         * lib/unictype/pr_math.h: Regenerated.
40622         * lib/unictype/pr_numeric.h: Regenerated.
40623         * lib/unictype/pr_other_alphabetic.h: Regenerated.
40624         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
40625         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
40626         * lib/unictype/pr_other_id_continue.h: Regenerated.
40627         * lib/unictype/pr_other_lowercase.h: Regenerated.
40628         * lib/unictype/pr_other_math.h: Regenerated.
40629         * lib/unictype/pr_punctuation.h: Regenerated.
40630         * lib/unictype/pr_sentence_terminal.h: Regenerated.
40631         * lib/unictype/pr_soft_dotted.h: Regenerated.
40632         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
40633         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
40634         * lib/unictype/pr_unified_ideograph.h: Regenerated.
40635         * lib/unictype/pr_uppercase.h: Regenerated.
40636         * lib/unictype/pr_xid_continue.h: Regenerated.
40637         * lib/unictype/pr_xid_start.h: Regenerated.
40638         * lib/unictype/pr_zero_width.h: Regenerated.
40639         * lib/unictype/scripts.h: Regenerated.
40640         * lib/unictype/scripts_byname.gperf: Regenerated.
40641         * lib/unictype/sy_java_ident.h: Regenerated.
40642         * lib/unilbrk/lbrkprop1.h: Regenerated.
40643         * lib/unilbrk/lbrkprop2.h: Regenerated.
40644         * tests/unictype/test-categ_C.c: Regenerated.
40645         * tests/unictype/test-categ_Cf.c: Regenerated.
40646         * tests/unictype/test-categ_Cn.c: Regenerated.
40647         * tests/unictype/test-categ_L.c: Regenerated.
40648         * tests/unictype/test-categ_Ll.c: Regenerated.
40649         * tests/unictype/test-categ_Lm.c: Regenerated.
40650         * tests/unictype/test-categ_Lo.c: Regenerated.
40651         * tests/unictype/test-categ_Lu.c: Regenerated.
40652         * tests/unictype/test-categ_M.c: Regenerated.
40653         * tests/unictype/test-categ_Mc.c: Regenerated.
40654         * tests/unictype/test-categ_Me.c: Regenerated.
40655         * tests/unictype/test-categ_Mn.c: Regenerated.
40656         * tests/unictype/test-categ_N.c: Regenerated.
40657         * tests/unictype/test-categ_Nd.c: Regenerated.
40658         * tests/unictype/test-categ_Nl.c: Regenerated.
40659         * tests/unictype/test-categ_No.c: Regenerated.
40660         * tests/unictype/test-categ_P.c: Regenerated.
40661         * tests/unictype/test-categ_Pd.c: Regenerated.
40662         * tests/unictype/test-categ_Pe.c: Regenerated.
40663         * tests/unictype/test-categ_Pf.c: Regenerated.
40664         * tests/unictype/test-categ_Pi.c: Regenerated.
40665         * tests/unictype/test-categ_Po.c: Regenerated.
40666         * tests/unictype/test-categ_Ps.c: Regenerated.
40667         * tests/unictype/test-categ_S.c: Regenerated.
40668         * tests/unictype/test-categ_Sk.c: Regenerated.
40669         * tests/unictype/test-categ_Sm.c: Regenerated.
40670         * tests/unictype/test-categ_So.c: Regenerated.
40671         * tests/unictype/test-ctype_alnum.c: Regenerated.
40672         * tests/unictype/test-ctype_alpha.c: Regenerated.
40673         * tests/unictype/test-ctype_graph.c: Regenerated.
40674         * tests/unictype/test-ctype_lower.c: Regenerated.
40675         * tests/unictype/test-ctype_print.c: Regenerated.
40676         * tests/unictype/test-ctype_punct.c: Regenerated.
40677         * tests/unictype/test-ctype_upper.c: Regenerated.
40678         * tests/unictype/test-decdigit.h: Regenerated.
40679         * tests/unictype/test-digit.h: Regenerated.
40680         * tests/unictype/test-numeric.h: Regenerated.
40681         * tests/unictype/test-pr_alphabetic.c: Regenerated.
40682         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
40683         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
40684         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
40685         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
40686         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
40687         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
40688         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
40689         * tests/unictype/test-pr_combining.c: Regenerated.
40690         * tests/unictype/test-pr_dash.c: Regenerated.
40691         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
40692         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
40693         * tests/unictype/test-pr_deprecated.c: Regenerated.
40694         * tests/unictype/test-pr_diacritic.c: Regenerated.
40695         * tests/unictype/test-pr_extender.c: Regenerated.
40696         * tests/unictype/test-pr_format_control.c: Regenerated.
40697         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
40698         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
40699         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
40700         * tests/unictype/test-pr_id_continue.c: Regenerated.
40701         * tests/unictype/test-pr_id_start.c: Regenerated.
40702         * tests/unictype/test-pr_ideographic.c: Regenerated.
40703         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
40704         * tests/unictype/test-pr_lowercase.c: Regenerated.
40705         * tests/unictype/test-pr_math.c: Regenerated.
40706         * tests/unictype/test-pr_numeric.c: Regenerated.
40707         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
40708         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
40709         Regenerated.
40710         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
40711         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
40712         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
40713         * tests/unictype/test-pr_other_math.c: Regenerated.
40714         * tests/unictype/test-pr_punctuation.c: Regenerated.
40715         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
40716         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
40717         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
40718         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
40719         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
40720         * tests/unictype/test-pr_uppercase.c: Regenerated.
40721         * tests/unictype/test-pr_xid_continue.c: Regenerated.
40722         * tests/unictype/test-pr_xid_start.c: Regenerated.
40723         * tests/unictype/test-pr_zero_width.c: Regenerated.
40724
40725         Update to Unicode 5.1.0.
40726         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
40727         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
40728         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
40729         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
40730         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
40731         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
40732         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
40733         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
40734         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
40735         (nonspacing_table_ind): Update.
40736         * tests/uniwidth/test-uc_width2.sh: Update expected result.
40737
40738         Update to Unicode 5.1.0.
40739         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
40740         code transform.
40741         * lib/uniname/uniname.c (unicode_character_name,
40742         unicode_name_character): Add the range 0x1Fxxx to the code transform.
40743         * lib/uniname/uninames.h: Regenerated.
40744         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
40745
40746 2009-02-07  Bruno Haible  <bruno@clisp.org>
40747
40748         Merge gen-ctype and gen-lbrk into a single program.
40749         * lib/gen-uni-tables.c: New file, incorporating
40750         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
40751         Add directory prefixes to the names of the generated files.
40752         * lib/unictype/gen-ctype.c: Remove file.
40753         * lib/unilbrk/gen-lbrk.c: Remove file.
40754         * modules/gen-uni-tables: New file.
40755         * modules/unictype/gen-ctype: Remove file.
40756         * modules/unilbrk/gen-lbrk: Remove file.
40757
40758 2009-02-07  Bruno Haible  <bruno@clisp.org>
40759
40760         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
40761
40762         New module 'unistr/u32-strcoll'.
40763         * modules/unistr/u32-strcoll: New file.
40764         * lib/unistr/u32-strcoll.c: New file.
40765
40766         New module 'unistr/u16-strcoll'.
40767         * modules/unistr/u16-strcoll: New file.
40768         * lib/unistr/u16-strcoll.c: New file.
40769
40770         New module 'unistr/u8-strcoll'.
40771         * modules/unistr/u8-strcoll: New file.
40772         * lib/unistr/u8-strcoll.c: New file.
40773         * lib/unistr/u-strcoll.h: New file.
40774
40775 2009-02-07  Bruno Haible  <bruno@clisp.org>
40776
40777         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
40778         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40779         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40780         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
40781         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
40782         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
40783
40784 2009-02-07  Bruno Haible  <bruno@clisp.org>
40785
40786         Make 64-bit clean.
40787         * lib/unictype/gen-ctype.c (output_predicate, output_category,
40788         output_combclass, output_bidi_category, output_decimal_digit,
40789         output_digit, output_numeric, output_mirror, output_scripts,
40790         output_ident_category): Use proper width specifier in format strings.
40791
40792 2009-02-07  Bruno Haible  <bruno@clisp.org>
40793
40794         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
40795         failure behaviour.
40796
40797 2009-02-07  Jim Meyering  <meyering@redhat.com>
40798
40799         regex: avoid compilation failure with upcoming gcc-4.4
40800         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
40801         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
40802         "... error: integer overflow in preprocessor expression".
40803
40804 2009-02-05  Ben Pfaff  <blp@gnu.org>
40805
40806         Fix link errors on Windows when close module is used.
40807         * modules/close: Add $(LIB_CLOSE) to Link section.
40808         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
40809         $(LIB_CLOSE) on Windows.
40810
40811 2009-02-05  Jim Meyering  <meyering@redhat.com>
40812
40813         still avoid unused-parameter warnings, but do it cleanly
40814         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
40815         (get_fs_usage): Cast to void instead.
40816         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
40817         (dev_from_mount_options, read_file_system_list): Cast to void.
40818         Prompted by Bruno Haible.
40819
40820 2009-02-04  Jim Meyering  <meyering@redhat.com>
40821
40822         fsusage.c: correct copyright year
40823         * lib/fsusage.c: Reflect year in which the change is pushed into
40824
40825         avoid misc. warnings
40826         * lib/fsusage.c (UNUSED_PARAM): Define.
40827         (get_fs_usage): Mark parameter "disk" as unused.
40828         * lib/getugroups.c (getgrent): Use "void" in prototype.
40829         * lib/mountlist.c: Mark unused parameters.
40830         (read_file_system_list): Declare a local with "const".
40831         * lib/nanosleep.c (getnow): Declare static.
40832         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
40833
40834         dirfd: set errno upon failure
40835         * lib/dirfd.c: Include <errno.h>.
40836         Set errno to ENOTSUP when returning -1.
40837         * modules/dirfd (Depends-on): Add errno.
40838         Suggested by John Kodis <kodis@comcast.net>.
40839
40840 2009-02-01  Bruno Haible  <bruno@clisp.org>
40841
40842         Don't assume sizeof (long) >= sizeof (void *).
40843         * lib/memcmp.c: Include stdint.h.
40844         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
40845         srcp2 to 'const byte *'.
40846         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
40847         types to uintptr_t.
40848         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
40849         * modules/memcmp (Depends-on): Add stdint.
40850         Reported by Ozkan Sezer <sezeroz@gmail.com>.
40851
40852 2009-01-30  Eric Blake  <ebb9@byu.net>
40853
40854         fix more require-before-expand issues
40855         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
40856         expand, AC_PROG_AWK.
40857         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
40858
40859 2009-01-28  Eric Blake  <ebb9@byu.net>
40860
40861         version-etc: use consistent URL formatting
40862         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
40863         Improve formatting.  Use fputs for string without %.
40864
40865 2009-01-28  Jim Meyering  <meyering@redhat.com>
40866
40867         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
40868         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
40869         "underquoted definition of NAME" from autoconf-2.59.
40870
40871 2009-01-28  Bruno Haible  <bruno@clisp.org>
40872
40873         * doc/gnulib.texi: Add "Obsolete modules" to index.
40874
40875 2009-01-28  Jim Meyering  <meyering@redhat.com>
40876
40877         useless-if-before-free: recognize more variants
40878         * build-aux/useless-if-before-free: Also recognize e.g.,
40879         if (NULL != p) free (p);
40880
40881 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
40882
40883         test-getaddrinfo: skip (don't fail) this test when there's no network
40884         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
40885         on the presumption that it means you lack network access.
40886
40887 2009-01-26  Jim Meyering  <meyering@redhat.com>
40888
40889         fflush: avoid warnings on modern systems
40890         * lib/fflush.c (rpl_fflush): Move declarations of locals,
40891         pos and result, into scopes where they're used.
40892
40893 2009-01-26  Eric Blake  <ebb9@byu.net>
40894
40895         Silence warning reintroduced by recent extensions patch.
40896         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
40897         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
40898         autoconf.
40899
40900         Backport improved autoconf semantics of AC_DEFUN_ONCE.
40901         * m4/00gnulib.m4: New file.
40902         * gnulib-tool (func_get_filelist): Always use it.
40903         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
40904         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
40905
40906 2009-01-25  Bruno Haible  <bruno@clisp.org>
40907
40908         Make test-quotearg work on MacOS X and AIX.
40909         * tests/test-quotearg.sh: New file.
40910         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
40911         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
40912         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
40913         include <libintl.h>.
40914         (fake_locale): Remove variable.
40915         (gettext, dgettext, dcgettext): Remove functions.
40916         (main): Instead of setting a fake locale, set a real locale. Call
40917         textdomain and bindtextdomain.
40918         * modules/quotearg-tests (Files): Add the new files.
40919         (Depends-on): Add gettext, setenv, unsetenv.
40920         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40921         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
40922         Augment TESTS_ENVIRONMENT.
40923
40924 2009-01-25  Bruno Haible  <bruno@clisp.org>
40925
40926         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
40927         fr_FR.ISO8859-1 locale on MacOS X.
40928         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
40929         ja_JP.eucJP locale on MacOS X.
40930         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
40931         zh_CN.GB18030 locale on MacOS X.
40932
40933 2009-01-25  Bruno Haible  <bruno@clisp.org>
40934
40935         Avoid link errors on MacOS X 10.3.
40936         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
40937         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40938
40939 2009-01-25  Bruno Haible  <bruno@clisp.org>
40940
40941         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40942         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
40943         * modules/pipe (Files): Remove m4/posix_spawn.m4.
40944         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40945         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
40946         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40947         posix_spawnattr_init, posix_spawnattr_setsigmask,
40948         posix_spawnattr_setflags, posix_spawnattr_destroy.
40949
40950         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40951         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
40952         * modules/execute (Files): Remove m4/posix_spawn.m4.
40953         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40954         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40955         posix_spawnattr_init, posix_spawnattr_setsigmask,
40956         posix_spawnattr_setflags, posix_spawnattr_destroy.
40957
40958 2009-01-25  Bruno Haible  <bruno@clisp.org>
40959
40960         * lib/glthread/threadlib.c: Include <stdlib.h>.
40961
40962 2009-01-25  Bruno Haible  <bruno@clisp.org>
40963
40964         * lib/glthread/threadlib.c (dummy): New declaration.
40965
40966 2009-01-25  Bruno Haible  <bruno@clisp.org>
40967
40968         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
40969         multibyte characters also for the GB18030 encoding. Don't crash when
40970         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
40971
40972 2009-01-25  Bruno Haible  <bruno@clisp.org>
40973
40974         Avoid redefining 'struct random_data' on OSF/1 5.1.
40975         * lib/stdlib.in.h: Include <random.h> if it exists.
40976         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
40977         HAVE_RANDOM_H. Include <random.h> when testing whether
40978         'struct random_data' exists.
40979         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
40980
40981 2009-01-25  Bruno Haible  <bruno@clisp.org>
40982
40983         Don't install charset.alias on MacOS X >= 10.3.
40984         * lib/localcharset.c (DARWIN7): New macro.
40985         (get_charset_aliases): Hardcode the result for Darwin7.
40986         * modules/localcharset (install-exec-local): Don't install
40987         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
40988
40989 2009-01-25  Bruno Haible  <bruno@clisp.org>
40990
40991         Don't install charset.alias on mingw and Cygwin.
40992         * modules/localcharset (install-exec-local): Don't install
40993         charset.alias on mingw and Cygwin, if the file does not yet exist.
40994         The result for these platforms is hardcoded in localcharset.c.
40995
40996 2009-01-25  Bruno Haible  <bruno@clisp.org>
40997
40998         Make it possible again to use AC_GNU_SOURCE together with gnulib.
40999         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41000         before requiring AC_USE_SYSTEM_EXTENSIONS.
41001
41002 2009-01-25  Jim Meyering  <meyering@redhat.com>
41003
41004         c-strtod: avoid warnings
41005         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41006         "assignment discards qualifiers from pointer target type" warnings.
41007
41008 2009-01-24  Bruno Haible  <bruno@clisp.org>
41009
41010         Add support for non-UTF-8 locales on MacOS X.
41011         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41012         canonical encodings. For Darwin 7 and newer, don't map traditional
41013         encodings to UTF-8.
41014         Reported by Vincent Lefevre <vincent@vinc17.org>
41015         at <http://savannah.gnu.org/bugs/?25235>.
41016
41017 2009-01-24  Bruno Haible  <bruno@clisp.org>
41018
41019         * doc/gnulib.texi (Obsolete modules): New section.
41020         Reported by Mike Frysinger <vapier@gentoo.org>.
41021
41022 2009-01-24  Bruno Haible  <bruno@clisp.org>
41023
41024         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41025         (%.dvi): New rule.
41026
41027 2009-01-24  Bruno Haible  <bruno@clisp.org>
41028
41029         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41030         Reported by Eric Blake.
41031
41032 2009-01-24  Bruno Haible  <bruno@clisp.org>
41033
41034         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41035         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41036         Reported by Gary V. Vaughan <gary@gnu.org>.
41037
41038 2009-01-24  Bruno Haible  <bruno@clisp.org>
41039
41040         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41041
41042 2009-01-23  Bruno Haible  <bruno@clisp.org>
41043
41044         Make c-strtod, c-strtold usable in libraries.
41045         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41046         (C_STRTOD): Call strdup instead of xstrdup.
41047         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41048         * modules/c-strtold (Depends-on): Likewise.
41049         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41050         * NEWS: Mention the change.
41051         Reported by Michael Gold <mgold@ncf.ca>.
41052
41053 2009-01-23  Jim Meyering  <meyering@redhat.com>
41054
41055         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41056         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41057         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41058
41059 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41060
41061         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41062         GNU CoreUtils.
41063         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41064         * modules/version-etc (Description): Update.
41065
41066 2009-01-22  Bruno Haible  <bruno@clisp.org>
41067
41068         Cache the C locale object.
41069         * lib/c-strtod.c (c_locale_cache): New variable.
41070         (c_locale): New function.
41071         (C_STRTOD): Use it, and don't call freelocale.
41072         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41073         Suggested by Paolo Bonzini.
41074
41075 2009-01-21  Bruno Haible  <bruno@clisp.org>
41076
41077         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41078         conditions other than overflow.
41079
41080 2009-01-21  Bruno Haible  <bruno@clisp.org>
41081
41082         * lib/c-strtod.c: Include errno.h.
41083         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41084         value from STRTOD_L and STRTOD.
41085
41086 2009-01-21  Bruno Haible  <bruno@clisp.org>
41087         and Jim Meyering  <meyering@redhat.com>
41088
41089         nanosleep: skip configure test (fail it) for apple universal builds
41090         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41091         universal builds, assume that nanosleep does not work.
41092         * modules/nanosleep (Depends-on): Add multiarch.
41093
41094         mktime: skip configure test (fail it) for apple universal builds
41095         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41096         universal builds, assume that mktime does not work.
41097         * modules/mktime (Depends-on): Add multiarch.
41098
41099 2009-01-21  Eric Blake  <ebb9@byu.net>
41100
41101         multiarch: avoid expand-before-require warning
41102         * modules/multiarch (configure.ac): Require, rather than expand,
41103         gl_MULTIARCH.
41104         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41105         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41106         enforce that all clients require it.  Partial reversion of
41107         2008-12-29 patch.
41108
41109         error: avoid expand-before-require warning
41110         * modules/errno (configure.ac): Require, rather than expand,
41111         gl_HEADER_ERRNO_H.
41112         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41113         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41114         enforce that all clients require it.
41115
41116         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41117         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41118         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41119         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41120
41121 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41122
41123         Revert:
41124         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41125
41126         regex: do not depend on obsolete modules.
41127         * modules/regex: Remove memcmp and memmove.
41128
41129 2009-01-20  Bruno Haible  <bruno@clisp.org>
41130
41131         Make the 'link' module link on Windows NT 4.
41132         * lib/link.c (_WIN32_WINNT): Don't define.
41133         (CreateHardLinkFuncType): New type.
41134         (CreateHardLinkFunc, initialized): New variables.
41135         (initialize): New function.
41136         (link): Invoke CreateHardLink indirectly through the function pointer.
41137
41138 2009-01-20  Bruno Haible  <bruno@clisp.org>
41139
41140         Fix compilation failure on mingw.
41141         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41142
41143 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41144
41145         * doc/c-strtod.texi: Mention a couple of restrictions.
41146
41147 2009-01-20  Jim Meyering  <meyering@redhat.com>
41148
41149         gettimeofday: move more declarations out of functions
41150         * lib/gettimeofday.c: Move extern declarations of tzset and
41151         gmtime out of containing functions.  Prompted by Bruno Haible.
41152
41153 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41154
41155         regex: do not depend on obsolete modules.
41156         * modules/regex: Remove memcmp and memmove.
41157
41158 2009-01-19  Bruno Haible  <bruno@clisp.org>
41159
41160         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41161         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41162         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41163         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41164         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41165
41166 2009-01-19  Bruno Haible  <bruno@clisp.org>
41167
41168         * tests/test-link.c: Include <errno.h>.
41169         (main): Exit with code 77 when a hard link cannot be created due to
41170         the file system.
41171         * tests/test-link.sh: Skip test when a hard link cannot be created due
41172         to the file system.
41173         Suggested by Eric Blake.
41174
41175 2009-01-19  Martin Lambers  <marlam@marlam.de>
41176
41177         * modules/link-tests: New file.
41178         * tests/test-link.sh: New file.
41179         * tests/test-link.c: New file.
41180
41181 2009-01-19  Eric Blake  <ebb9@byu.net>
41182
41183         doc: mention another function added in cygwin 1.7.0
41184         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41185         Another new function in cygwin 1.7.
41186
41187 2009-01-19  Bruno Haible  <bruno@clisp.org>
41188
41189         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41190         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41191         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41192         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41193         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41194         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41195         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41196         * m4/md4.m4 (gl_MD4): Likewise.
41197         * m4/md5.m4 (gl_MD5): Likewise.
41198         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41199         * m4/sha1.m4 (gl_SHA1): Likewise.
41200         * m4/sha256.m4 (gl_SHA256): Likewise.
41201         * m4/sha512.m4 (gl_SHA512): Likewise.
41202
41203 2009-01-19  Bruno Haible  <bruno@clisp.org>
41204
41205         * modules/uniname/uniname-tests (Depends-on): Add progname.
41206         * tests/uniname/test-uninames.c: Include progname.h.
41207         (main): Call set_program_name.
41208
41209         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41210         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41211         (main): Call set_program_name.
41212
41213         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41214         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41215         (main): Call set_program_name.
41216
41217         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41218         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41219         (main): Call set_program_name.
41220
41221         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41222         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41223         (main): Call set_program_name.
41224
41225         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41226         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41227         (main): Call set_program_name.
41228
41229         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41230         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41231         (main): Call set_program_name.
41232
41233         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41234         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41235         (main): Call set_program_name.
41236
41237         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41238         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41239         (main): Call set_program_name.
41240
41241 2009-01-19  Eric Blake  <ebb9@byu.net>
41242
41243         test-unistd: test previous patch
41244         * tests/test-unistd.c: Test *_FILENO macros.
41245
41246         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
41247         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41248         Guarantee a definition.
41249         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
41250         * modules/unistd-safer (Depends-on): Add dependency on unistd.
41251         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
41252         * lib/dup-safer.c (STDERR_FILENO): Likewise.
41253         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41254         Likewise.
41255         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
41256         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
41257         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41258         Likewise.
41259         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
41260         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
41261         (STDERR_FILENO): Likewise.
41262         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
41263         (STDERR_FILENO): Likewise.
41264         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
41265         (STDERR_FILENO): Likewise.
41266         Reported by Elbert Pol.
41267
41268 2009-01-19  Eric Blake  <ebb9@byu.net>
41269
41270         doc: mention more functions added in cygwin 1.7.0
41271         * doc/posix-functions/abort.texi (abort): Update wording related
41272         to cygwin.
41273         * doc/posix-functions/daylight.texi (daylight): Likewise.
41274         * doc/posix-functions/optarg.texi (optarg): Likewise.
41275         * doc/posix-functions/optarg.texi (opterr): Likewise.
41276         * doc/posix-functions/optarg.texi (optind): Likewise.
41277         * doc/posix-functions/optarg.texi (optopt): Likewise.
41278         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
41279         worked in 1.5.x, and was withdrawn in 1.7.
41280         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
41281         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
41282         cygwin versions.
41283         * doc/posix-functions/perror.texi (perror): Likewise.
41284         * doc/posix-functions/printf.texi (printf): Likewise.
41285         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
41286         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
41287         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
41288         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
41289         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41290         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
41291         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41292         Likewise.
41293         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41294         Likewise.
41295         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
41296         this function.
41297         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
41298         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
41299         Likewise.
41300         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
41301         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
41302         * doc/posix-functions/confstr.texi (confstr): Likewise.
41303         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
41304         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
41305         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
41306         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
41307         * doc/posix-functions/fputws.texi (fputws): Likewise.
41308         * doc/posix-functions/fwide.texi (fwide): Likewise.
41309         * doc/posix-functions/getwc.texi (getwc): Likewise.
41310         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
41311         * doc/posix-functions/putwc.texi (putwc): Likewise.
41312         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
41313         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
41314         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
41315         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
41316         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
41317         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
41318         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
41319         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
41320         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
41321         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
41322         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
41323
41324 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41325
41326         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
41327         * lib/ioctl.c: Include <sys/ioctl.h>.
41328
41329 2009-01-19  Simon Josefsson  <simon@josefsson.org>
41330
41331         * modules/getdate-tests (Depends-on): Add progname.
41332         * tests/test-getdate.c: Use progname module, to avoid link errors
41333         on non-glibc systems.
41334
41335 2009-01-18  Simon Josefsson  <simon@josefsson.org>
41336
41337         * modules/filenamecat-tests (Depends-on): Add progname.
41338         * modules/fstrcmp-tests (Depends-on): Likewise.
41339
41340         * tests/test-filenamecat.c: Use progname module, to avoid link
41341         errors on non-glibc systems.
41342         * tests/test-fstrcmp.c: Likewise.
41343
41344 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41345
41346         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41347         * lib/gettimeofday.c: Move extern declaration out of function.
41348
41349 2009-01-18  Bruno Haible  <bruno@clisp.org>
41350
41351         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41352         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41353         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41354
41355 2009-01-18  Bruno Haible  <bruno@clisp.org>
41356
41357         * lib/strftime.c (MEMPCPY): Remove unused macro.
41358         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41359
41360 2009-01-18  Martin Lambers  <marlam@marlam.de>
41361
41362         New module 'link'.
41363         * lib/unistd.in.h (link): New declaration.
41364         * lib/link.c: New file.
41365         * m4/link.m4: New file.
41366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41367         HAVE_LINK.
41368         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41369         * modules/link: New file.
41370         * doc/posix-functions/link.texi: Mention the new module.
41371
41372 2009-01-18  Bruno Haible  <bruno@clisp.org>
41373
41374         * tests/test-avltree_list.c (main): Call set_program_name.
41375         * tests/test-avltree_oset.c (main): Likewise.
41376         * tests/test-obstack-printf.c: Include progname.h.
41377         (main): Call set_program_name.
41378         * tests/test-quotearg.c: Include progname.h.
41379         (main): Call set_program_name.
41380         * tests/test-xmemdup0.c: Include progname.h.
41381         (main): Call set_program_name.
41382
41383 2009-01-18  Bruno Haible  <bruno@clisp.org>
41384
41385         New module 'alphasort'.
41386         * lib/dirent.in.h (alphasort): New declaration.
41387         * lib/alphasort.c: New file, from glibc with modifications.
41388         * m4/alphasort.m4: New file.
41389         * modules/alphasort: New file.
41390         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
41391         HAVE_ALPHASORT.
41392         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
41393         HAVE_ALPHASORT.
41394         * doc/posix-functions/alphasort.texi: Mention the new module and the
41395         portability problems.
41396
41397 2009-01-18  Bruno Haible  <bruno@clisp.org>
41398
41399         New module 'scandir'.
41400         * lib/dirent.in.h (scandir): New declaration.
41401         * lib/scandir.c: New file, from glibc with modifications.
41402         * m4/scandir.m4: New file.
41403         * modules/scandir: New file.
41404         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
41405         HAVE_SCANDIR.
41406         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
41407         HAVE_SCANDIR.
41408         * doc/posix-functions/scandir.texi: Mention the new module and the
41409         portability problems.
41410
41411 2009-01-17  Bruno Haible  <bruno@clisp.org>
41412
41413         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41414         Update documentation.
41415         (func_remove_suffix): Escape all dots in the suffix. Update
41416         documentation.
41417         (func_filter_filelist): Update documentation.
41418         Reported by Ralf Wildenhues.
41419
41420 2009-01-17  Bruno Haible  <bruno@clisp.org>
41421
41422         * modules/dprintf-posix-tests: New file.
41423         * tests/test-dprintf-posix.sh: New file.
41424         * tests/test-dprintf-posix.c: New file.
41425
41426         New modules 'dprintf', 'dprintf-posix'.
41427         * lib/stdio.in.h (dprintf): New declaration.
41428         * lib/dprintf.c: New file.
41429         * m4/dprintf.m4: New file.
41430         * m4/dprintf-posix.m4: New file.
41431         * modules/dprintf: New file.
41432         * modules/dprintf-posix: New file.
41433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
41434         HAVE_DPRINTF, REPLACE_DPRINTF.
41435         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
41436         HAVE_DPRINTF, REPLACE_DPRINTF.
41437         * doc/posix-functions/dprintf.texi: Mention the new modules.
41438
41439 2009-01-17  Bruno Haible  <bruno@clisp.org>
41440
41441         * modules/vdprintf-posix-tests: New file.
41442         * tests/test-vdprintf-posix.sh: New file.
41443         * tests/test-vdprintf-posix.c: New file.
41444
41445         New modules 'vdprintf', 'vdprintf-posix'.
41446         * lib/stdio.in.h (vdprintf): New declaration.
41447         * lib/vdprintf.c: New file.
41448         * m4/vdprintf.m4: New file.
41449         * m4/vdprintf-posix.m4: New file.
41450         * modules/vdprintf: New file.
41451         * modules/vdprintf-posix: New file.
41452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
41453         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41454         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
41455         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41456         * doc/posix-functions/vdprintf.texi: Mention the new modules.
41457
41458 2009-01-17  Bruno Haible  <bruno@clisp.org>
41459
41460         Fix replacement of fopen on mingw.
41461         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
41462         mingw.
41463
41464 2009-01-17  Bruno Haible  <bruno@clisp.org>
41465
41466         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
41467         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
41468
41469 2009-01-17  Bruno Haible  <bruno@clisp.org>
41470
41471         Avoid test-fflush2.sh failure on mingw.
41472         * tests/test-fflush2.c: Include binary-io.h.
41473         (main): Put standard input into binary mode.
41474         * modules/fflush-tests (Depends-on): Add binary-io.
41475
41476 2009-01-17  Bruno Haible  <bruno@clisp.org>
41477
41478         * lib/wchar.in.h: In another particular situation, include only the
41479         system's <wchar.h> file.
41480         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
41481         Reported by Albert Chin-A-Young <china@thewrittenword.com>
41482         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
41483
41484 2009-01-17  Bruno Haible  <bruno@clisp.org>
41485
41486         Support for stripping executables in --enable-relocatable.
41487         * build-aux/install-reloc: Expect one more argument, or an environment
41488         variable RELOC_STRIP_PROG. If set, strip the destination program and
41489         its wrapper.
41490         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
41491         RELOC_STRIP_PROG.
41492         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
41493         to set RELOCATABLE_STRIP.
41494         * NEWS: Mention the new Makefile requirement.
41495
41496 2009-01-17  Bruno Haible  <bruno@clisp.org>
41497
41498         * build-aux/install-reloc: Remove debugging information left over by
41499         C compiler on MacOS X.
41500
41501 2009-01-17  Bruno Haible  <bruno@clisp.org>
41502
41503         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
41504         * lib/progreloc.c (find_executable): Fix type of pointer passed to
41505         _NSGetExecutablePath.
41506
41507 2009-01-16  Jim Meyering  <meyering@redhat.com>
41508
41509         strerror: avoid warnings about discarding "const"
41510         * lib/strerror.c (rpl_strerror): Instead of returning a const
41511         string from each and every "case", use a variable, and add a single
41512         cast after the switch.
41513
41514 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
41515
41516         * lib/arpa_inet.in.h: Add extern "C" block for C++.
41517
41518 2009-01-16  Bruno Haible  <bruno@clisp.org>
41519
41520         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
41521         array initializer syntax that also works in C++ mode.
41522         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41523
41524 2009-01-16  Jim Meyering  <meyering@redhat.com>
41525
41526         poll: suppress a warning
41527         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
41528         to ignore "...unsigned expression < 0 is always false" warnings.
41529
41530 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
41531
41532         poll: remove declarations of unused variables
41533         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
41534         sockbuf and optlen.
41535
41536 2009-01-15  Bruno Haible  <bruno@clisp.org>
41537
41538         Make fflush-after-ungetc POSIX compliant on BSD systems.
41539         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
41540         (clear_ungetc_buffer): Implement also for other systems.
41541         (rpl_fflush): On glibc systems, invoke
41542         clear_ungetc_buffer_preserving_position. Otherwise, invoke
41543         clear_ungetc_buffer after fetching the stream's position, not before.
41544
41545 2009-01-15  Bruno Haible  <bruno@clisp.org>
41546
41547         Make fflush-after-ungetc POSIX compliant on glibc systems.
41548         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
41549         after ungetc.
41550         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
41551         (rpl_fflush): On glibc systems, simply call the system's fflush
41552         function after clearing the ungetc buffer.
41553         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
41554         Instead, lseek only to the end of file, then use the system's fseeko
41555         for the rest. On glibc systems, reset the EOF indicator bit.
41556
41557 2009-01-15  Jim Meyering  <meyering@redhat.com>
41558
41559         openmp.m4: revert quote-adding change, for portability to older autoconf
41560         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
41561         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
41562         Simon Josefsson noticed the problem when using autoconf-2.61.
41563
41564 2009-01-15  Bruno Haible  <bruno@clisp.org>
41565
41566         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
41567         * tests/test-fflush2.c (ASSERT): Always fail.
41568         (main): Add two tests for fflush() after ungetc(), taking into account
41569         the Austin Group's clarification.
41570         Suggested by Eric Blake.
41571
41572 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
41573
41574         mktime.m4: remove K&R-style function prototypes
41575         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
41576         for the Sun C++ compiler.
41577
41578 2009-01-14  Bruno Haible  <bruno@clisp.org>
41579
41580         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
41581         while including <wchar.h>.
41582         * lib/wchar.in.h: In two particular situations on HP-UX, include only
41583         the system's <wchar.h> file.
41584         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41585
41586 2009-01-14  Bruno Haible  <bruno@clisp.org>
41587
41588         * m4/csharp.m4: Don't mention gettext on the serial number line.
41589         * m4/csharpexec.m4: Likewise.
41590         * m4/eaccess.m4: Likewise.
41591         * m4/javaexec.m4: Likewise.
41592         * m4/sig_atomic_t.m4: Likewise.
41593         * m4/tmpdir.m4: Likewise.
41594         * m4/intldir.m4: Bump gettext version.
41595         * m4/lib-ld.m4: Likewise.
41596
41597 2009-01-14  Bruno Haible  <bruno@clisp.org>
41598
41599         * lib/progname.c (set_program_name): Add more comments.
41600         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41601
41602 2009-01-14  Simon Josefsson  <simon@josefsson.org>
41603
41604         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
41605         were sys/stat.h does not define it.
41606
41607 2009-01-14  Jim Meyering  <meyering@redhat.com>
41608
41609         many *.m4 files: improve m4 quoting
41610         99% of this change was performed by running the following commands:
41611         git ls-files | grep '\.m4$' | xargs perl -pi \
41612           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
41613           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41614           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41615           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
41616         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
41617         The remainder were to add Copyright dates, increment serial numbers,
41618         undo some changes in comments, exclude m4/intl.m4, and add quotes
41619         around the "1" in ",1" where the unusual spacing prohibited the
41620         above regexps from doing the job.  For more details, see
41621         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
41622         * m4/acl.m4: Modified.
41623         * m4/afs.m4: Likewise.
41624         * m4/alloca.m4: Likewise.
41625         * m4/argp.m4: Likewise.
41626         * m4/argz.m4: Likewise.
41627         * m4/atexit.m4: Likewise.
41628         * m4/bison-i18n.m4: Likewise.
41629         * m4/bison.m4: Likewise.
41630         * m4/byteswap.m4: Likewise.
41631         * m4/c-stack.m4: Likewise.
41632         * m4/c-strtod.m4: Likewise.
41633         * m4/calloc.m4: Likewise.
41634         * m4/canonicalize-lgpl.m4: Likewise.
41635         * m4/chown.m4: Likewise.
41636         * m4/clock_time.m4: Likewise.
41637         * m4/codeset.m4: Likewise.
41638         * m4/copy-file.m4: Likewise.
41639         * m4/csharp.m4: Likewise.
41640         * m4/csharpcomp.m4: Likewise.
41641         * m4/csharpexec.m4: Likewise.
41642         * m4/d-ino.m4: Likewise.
41643         * m4/d-type.m4: Likewise.
41644         * m4/dirfd.m4: Likewise.
41645         * m4/double-slash-root.m4: Likewise.
41646         * m4/eaccess.m4: Likewise.
41647         * m4/eealloc.m4: Likewise.
41648         * m4/environ.m4: Likewise.
41649         * m4/errno_h.m4: Likewise.
41650         * m4/euidaccess.m4: Likewise.
41651         * m4/execute.m4: Likewise.
41652         * m4/fatal-signal.m4: Likewise.
41653         * m4/fchdir.m4: Likewise.
41654         * m4/fcntl_h.m4: Likewise.
41655         * m4/fileblocks.m4: Likewise.
41656         * m4/filenamecat.m4: Likewise.
41657         * m4/findprog.m4: Likewise.
41658         * m4/flexmember.m4: Likewise.
41659         * m4/fnmatch.m4: Likewise.
41660         * m4/fopen.m4: Likewise.
41661         * m4/fpending.m4: Likewise.
41662         * m4/fprintf-posix.m4: Likewise.
41663         * m4/free.m4: Likewise.
41664         * m4/frexp.m4: Likewise.
41665         * m4/frexpl.m4: Likewise.
41666         * m4/fsusage.m4: Likewise.
41667         * m4/ftruncate.m4: Likewise.
41668         * m4/gc-camellia.m4: Likewise.
41669         * m4/gc-random.m4: Likewise.
41670         * m4/gc.m4: Likewise.
41671         * m4/getaddrinfo.m4: Likewise.
41672         * m4/getcwd-abort-bug.m4: Likewise.
41673         * m4/getcwd-path-max.m4: Likewise.
41674         * m4/getdate.m4: Likewise.
41675         * m4/getdomainname.m4: Likewise.
41676         * m4/getgroups.m4: Likewise.
41677         * m4/gethostname.m4: Likewise.
41678         * m4/gethrxtime.m4: Likewise.
41679         * m4/getline.m4: Likewise.
41680         * m4/getloadavg.m4: Likewise.
41681         * m4/getndelim2.m4: Likewise.
41682         * m4/getpass.m4: Likewise.
41683         * m4/gettext.m4: Likewise.
41684         * m4/gettime.m4: Likewise.
41685         * m4/gettimeofday.m4: Likewise.
41686         * m4/gnulib-common.m4: Likewise.
41687         * m4/group-member.m4: Likewise.
41688         * m4/host-os.m4: Likewise.
41689         * m4/iconv.m4: Likewise.
41690         * m4/iconv_open.m4: Likewise.
41691         * m4/inet_ntop.m4: Likewise.
41692         * m4/inet_pton.m4: Likewise.
41693         * m4/inline.m4: Likewise.
41694         * m4/intldir.m4: Likewise.
41695         * m4/intlmacosx.m4: Likewise.
41696         * m4/intmax.m4: Likewise.
41697         * m4/intmax_t.m4: Likewise.
41698         * m4/inttypes.m4: Likewise.
41699         * m4/inttypes_h.m4: Likewise.
41700         * m4/inttypes-pri.m4: Likewise.
41701         * m4/isapipe.m4: Likewise.
41702         * m4/isnand.m4: Likewise.
41703         * m4/isnanf.m4: Likewise.
41704         * m4/isnanl.m4: Likewise.
41705         * m4/javacomp.m4: Likewise.
41706         * m4/javaexec.m4: Likewise.
41707         * m4/jm-winsz1.m4: Likewise.
41708         * m4/jm-winsz2.m4: Likewise.
41709         * m4/lchown.m4: Likewise.
41710         * m4/lcmessage.m4: Likewise.
41711         * m4/ldexpl.m4: Likewise.
41712         * m4/lib-ld.m4: Likewise.
41713         * m4/lib-link.m4: Likewise.
41714         * m4/libsigsegv.m4: Likewise.
41715         * m4/link-follow.m4: Likewise.
41716         * m4/localcharset.m4: Likewise.
41717         * m4/locale-fr.m4: Likewise.
41718         * m4/locale-ja.m4: Likewise.
41719         * m4/locale-tr.m4: Likewise.
41720         * m4/locale-zh.m4: Likewise.
41721         * m4/lock.m4: Likewise.
41722         * m4/longlong.m4: Likewise.
41723         * m4/ls-mntd-fs.m4: Likewise.
41724         * m4/lstat.m4: Likewise.
41725         * m4/malloc.m4: Likewise.
41726         * m4/mathl.m4: Likewise.
41727         * m4/mbrtowc.m4: Likewise.
41728         * m4/mbstate_t.m4: Likewise.
41729         * m4/mbswidth.m4: Likewise.
41730         * m4/memchr.m4: Likewise.
41731         * m4/memcmp.m4: Likewise.
41732         * m4/memcpy.m4: Likewise.
41733         * m4/memmem.m4: Likewise.
41734         * m4/memmove.m4: Likewise.
41735         * m4/mempcpy.m4: Likewise.
41736         * m4/memrchr.m4: Likewise.
41737         * m4/memset.m4: Likewise.
41738         * m4/minmax.m4: Likewise.
41739         * m4/mkdir-slash.m4: Likewise.
41740         * m4/mkdtemp.m4: Likewise.
41741         * m4/mktime.m4: Likewise.
41742         * m4/mmap-anon.m4: Likewise.
41743         * m4/mountlist.m4: Likewise.
41744         * m4/nanosleep.m4: Likewise.
41745         * m4/nls.m4: Likewise.
41746         * m4/nocrash.m4: Likewise.
41747         * m4/open.m4: Likewise.
41748         * m4/openat.m4: Likewise.
41749         * m4/openmp.m4: Likewise.
41750         * m4/pathmax.m4: Likewise.
41751         * m4/perl.m4: Likewise.
41752         * m4/physmem.m4: Likewise.
41753         * m4/pipe.m4: Likewise.
41754         * m4/po.m4: Likewise.
41755         * m4/poll.m4: Likewise.
41756         * m4/posixtm.m4: Likewise.
41757         * m4/posixver.m4: Likewise.
41758         * m4/printf-frexp.m4: Likewise.
41759         * m4/printf-frexpl.m4: Likewise.
41760         * m4/printf-posix.m4: Likewise.
41761         * m4/printf-posix-rpl.m4: Likewise.
41762         * m4/printf.m4: Likewise.
41763         * m4/progtest.m4: Likewise.
41764         * m4/putenv.m4: Likewise.
41765         * m4/readline.m4: Likewise.
41766         * m4/readlink.m4: Likewise.
41767         * m4/readutmp.m4: Likewise.
41768         * m4/realloc.m4: Likewise.
41769         * m4/regex.m4: Likewise.
41770         * m4/relocatable.m4: Likewise.
41771         * m4/relocatable-lib.m4: Likewise.
41772         * m4/rename-dest-slash.m4: Likewise.
41773         * m4/rename.m4: Likewise.
41774         * m4/rmdir-errno.m4: Likewise.
41775         * m4/rmdir.m4: Likewise.
41776         * m4/roundf.m4: Likewise.
41777         * m4/roundl.m4: Likewise.
41778         * m4/rpmatch.m4: Likewise.
41779         * m4/save-cwd.m4: Likewise.
41780         * m4/selinux-selinux-h.m4: Likewise.
41781         * m4/setenv.m4: Likewise.
41782         * m4/settime.m4: Likewise.
41783         * m4/sig2str.m4: Likewise.
41784         * m4/sig_atomic_t.m4: Likewise.
41785         * m4/signalblocking.m4: Likewise.
41786         * m4/signbit.m4: Likewise.
41787         * m4/sigpipe.m4: Likewise.
41788         * m4/sockets.m4: Likewise.
41789         * m4/sockpfaf.m4: Likewise.
41790         * m4/st_dm_mode.m4: Likewise.
41791         * m4/stat-time.m4: Likewise.
41792         * m4/stdbool.m4: Likewise.
41793         * m4/stdint.m4: Likewise.
41794         * m4/stdint_h.m4: Likewise.
41795         * m4/stpcpy.m4: Likewise.
41796         * m4/stpncpy.m4: Likewise.
41797         * m4/strcase.m4: Likewise.
41798         * m4/strchrnul.m4: Likewise.
41799         * m4/strcspn.m4: Likewise.
41800         * m4/strdup.m4: Likewise.
41801         * m4/strftime.m4: Likewise.
41802         * m4/strndup.m4: Likewise.
41803         * m4/strnlen.m4: Likewise.
41804         * m4/strpbrk.m4: Likewise.
41805         * m4/strptime.m4: Likewise.
41806         * m4/strsep.m4: Likewise.
41807         * m4/strtod.m4: Likewise.
41808         * m4/strtoimax.m4: Likewise.
41809         * m4/strtok_r.m4: Likewise.
41810         * m4/strtol.m4: Likewise.
41811         * m4/strtoll.m4: Likewise.
41812         * m4/strtoul.m4: Likewise.
41813         * m4/strtoull.m4: Likewise.
41814         * m4/strtoumax.m4: Likewise.
41815         * m4/strverscmp.m4: Likewise.
41816         * m4/threadlib.m4: Likewise.
41817         * m4/timegm.m4: Likewise.
41818         * m4/tm_gmtoff.m4: Likewise.
41819         * m4/tmpdir.m4: Likewise.
41820         * m4/tmpfile.m4: Likewise.
41821         * m4/tzset.m4: Likewise.
41822         * m4/uintmax_t.m4: Likewise.
41823         * m4/unlinkdir.m4: Likewise.
41824         * m4/unlocked-io.m4: Likewise.
41825         * m4/uptime.m4: Likewise.
41826         * m4/userspec.m4: Likewise.
41827         * m4/utimbuf.m4: Likewise.
41828         * m4/utime.m4: Likewise.
41829         * m4/utimes-null.m4: Likewise.
41830         * m4/utimes.m4: Likewise.
41831         * m4/vararrays.m4: Likewise.
41832         * m4/vasnprintf.m4: Likewise.
41833         * m4/vfprintf-posix.m4: Likewise.
41834         * m4/vprintf-posix.m4: Likewise.
41835         * m4/wait-process.m4: Likewise.
41836         * m4/wchar_t.m4: Likewise.
41837         * m4/wint_t.m4: Likewise.
41838         * m4/write-any-file.m4: Likewise.
41839         * m4/yield.m4: Likewise.
41840
41841 2009-01-13  Bruno Haible  <bruno@clisp.org>
41842
41843         Avoid test-copy-file.sh failures when ACL support insufficient.
41844         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
41845         TESTS_ENVIRONMENT.
41846         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
41847         Reported by Jim Meyering.
41848
41849 2009-01-13  Bruno Haible  <bruno@clisp.org>
41850
41851         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
41852         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
41853         * modules/unistdio/u8-printf-parse (Files): Likewise.
41854         * modules/unistdio/u32-printf-parse (Files): Likewise.
41855         * modules/unistdio/ulc-printf-parse (Files): Likewise.
41856
41857 2009-01-13  Simon Josefsson  <simon@josefsson.org>
41858
41859         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
41860         and m4/inttypes_h.m4 too.
41861
41862 2009-01-12  Eric Blake  <ebb9@byu.net>
41863
41864         tests: IRIX 6.2 cc can't compile -0.0 into .data
41865         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
41866         rather than at compile-time.
41867         * tests/test-floorl.c (minus_zero): Likewise.
41868         * tests/test-frexpl.c (minus_zero): Likewise.
41869         * tests/test-isnan.c (minus_zerol): Likewise.
41870         * tests/test-isnanl.h (minus_zero): Likewise.
41871         * tests/test-ldexpl.c (minus_zero): Likewise.
41872         * tests/test-roundl.c (minus_zero): Likewise.
41873         * tests/test-signbit.c (minus_zerol): Likewise.
41874         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41875         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41876         * tests/test-truncl.c (minus_zero): Likewise.
41877         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41878         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41879         Reported by Tom G. Christensen and Nelson H. F. Beebe.
41880
41881 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41882
41883         regex: fix glibc bug 9697
41884         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
41885         handling.
41886
41887 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41888
41889         regex: fix glibc bug 697
41890         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
41891         being NULL also if there are no backreferences.
41892
41893 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41894
41895         regex: merge glibc changes
41896         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
41897         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
41898         re_string_skip_chars, re_string_reconstruct): Likewise.
41899         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
41900
41901 2009-01-07  Jim Meyering  <meyering@redhat.com>
41902
41903         poll: filter through cppi
41904         * lib/poll.c: Indent cpp directives to reflect nesting.
41905
41906 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
41907
41908         poll: don't return uninitialized
41909         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
41910
41911 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
41912
41913         avoid compile failure on AIX 6.1
41914         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
41915         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
41916
41917 2009-01-04  Jim Meyering  <meyering@redhat.com>
41918
41919         remove duplicate inclusion of <stdio.h>
41920         * tests/test-fprintf-posix.c: Likewise.
41921         * tests/test-printf-posix.c: Likewise.
41922         * tests/test-snprintf-posix.c: Likewise.
41923         * tests/test-sprintf-posix.c: Likewise.
41924         * tests/test-vasprintf-posix.c: Likewise.
41925         * tests/test-vfprintf-posix.c: Likewise.
41926         * tests/test-vprintf-posix.c: Likewise.
41927         * tests/test-vsnprintf-posix.c: Likewise.
41928         * tests/test-vsprintf-posix.c: Likewise.
41929
41930 2009-01-03  Jim Meyering  <meyering@redhat.com>
41931
41932         gnulib-tool: fix sed-based filtering
41933         * gnulib-tool (func_filter_filelist): Remove extra backslash
41934         in sed_fff_filter definition.
41935
41936 2009-01-02  Jim Meyering  <meyering@redhat.com>
41937
41938         strftime: avoid compilation failure on Solaris 2.6
41939         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
41940         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
41941         Don't #define mbrlen or mbsinit, since now they're guaranteed to
41942         be available.  Reported by Tom G. Christensen.  Details in
41943         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
41944
41945 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41946             Bruno Haible  <bruno@clisp.org>
41947
41948         Speed up gnulib-tool by doing more string processing through shell
41949         built-ins.
41950         * gnulib-tool (fast_func_append): New variable.
41951         (func_remove_prefix, func_remove_suffix): New functions.
41952         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
41953         (func_filter_filelist): New function.
41954         (func_get_dependencies): Use func_remove_suffix instead of sed.
41955         (func_get_automake_snippet): Use func_filter_filelist instead of a
41956         subshell and sed invocation.
41957
41958 2009-01-01  Bruno Haible  <bruno@clisp.org>
41959
41960         Fix a security bug.
41961         * gnulib-tool (func_import, import, update): Don't allow the characters
41962         '"', '$', '`', '\' in macro arguments that become part of commands that
41963         are evaluated.
41964
41965 2009-01-01  Bruno Haible  <bruno@clisp.org>
41966
41967         * gnulib-tool (func_reset_sigpipe): Add more comments.
41968
41969 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41970
41971         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
41972         func_emit_tests_Makefile_am, func_import): Abort loops early if we
41973         already know the answer.
41974
41975 2009-01-01  Jim Meyering  <meyering@redhat.com>
41976
41977         * lib/version-etc.c (version_etc_va): Update copyright year.
41978
41979 2008-12-30  Bruno Haible  <bruno@clisp.org>
41980
41981         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
41982         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
41983         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
41984
41985 2008-12-29  Eric Blake  <ebb9@byu.net>
41986
41987         multiarch: avoid autoconf AC_REQUIRE bug
41988         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
41989         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
41990         2.63 and older.
41991         Reported by Bruno Haible, and analyzed in
41992         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
41993
41994 2008-12-29  Bruno Haible  <bruno@clisp.org>
41995
41996         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
41997         files in subdirectories correctly.
41998         Reported by Ralf Wildenhues.
41999
42000 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42001
42002         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42003         rather than 'join FILE -', for Solaris join.
42004
42005 2008-12-29  Bruno Haible  <bruno@clisp.org>
42006
42007         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42008         quoting.
42009         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42010         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42011         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42012         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42013         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42014         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42015         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42016         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42017         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42018         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42019         * m4/nls.m4 (AM_NLS): Likewise.
42020         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42021         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42022         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42023         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42024         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42025         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42026         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42027         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42028         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42029         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42030         * m4/xsize.m4 (gl_XSIZE): Likewise.
42031         Suggested by Jim Meyering.
42032
42033 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42034
42035         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42036         * lib/parse-duration.c: use a switch instead of cascading if's.
42037
42038 2008-12-29  Eric Blake  <ebb9@byu.net>
42039
42040         wchar.h: supply WEOF on Irix 5.3
42041         * lib/wchar.in.h (wint_t): Also supply WEOF.
42042         * lib/wctype.in.h (wint_t): Likewise.
42043         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42044         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42045         Reported by Tom G. Christensen.
42046
42047 2008-12-26  Bruno Haible  <bruno@clisp.org>
42048
42049         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42050         i486, i586, i686.
42051
42052 2008-12-26  Bruno Haible  <bruno@clisp.org>
42053
42054         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42055
42056 2008-12-26  Bruno Haible  <bruno@clisp.org>
42057
42058         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42059         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42060         not __STDC_CONSTANT_MACROS.
42061         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42062
42063 2008-12-25  Bruno Haible  <bruno@clisp.org>
42064
42065         Add support for universal builds to vasnprintf.
42066         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42067         universal builds, guess no.
42068         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42069         * modules/vasprintf-posix (Depends-on): Likewise.
42070         * modules/fprintf-posix (Depends-on): Likewise.
42071         * modules/vfprintf-posix (Depends-on): Likewise.
42072         * modules/snprintf-posix (Depends-on): Likewise.
42073         * modules/vsnprintf-posix (Depends-on): Likewise.
42074         * modules/sprintf-posix (Depends-on): Likewise.
42075         * modules/vsprintf-posix (Depends-on): Likewise.
42076         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42077         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42078         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42079         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42080         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42081         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42082         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42083
42084         Add support for universal builds to <inttypes.h>.
42085         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42086         _SCNu64_PREFIX): In Apple
42087         universal builds, define directly, using _LP64.
42088         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42089         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42090         * modules/inttypes (Depends-on): Add multiarch.
42091         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42092
42093         Add support for universal builds to <stdint.h>.
42094         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42095         universal builds, define directly, using _LP64.
42096         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42097         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42098         and size_t.
42099         * modules/stdint (Depends-on): Add multiarch.
42100         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42101
42102         New module 'multiarch'.
42103         * modules/multiarch: New file.
42104         * m4/multiarch.m4: New file.
42105
42106 2008-12-25  Bruno Haible  <bruno@clisp.org>
42107
42108         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42109
42110 2008-12-25  Bruno Haible  <bruno@clisp.org>
42111
42112         * modules/btowc (License): Relicense under LGPLv2+.
42113         * modules/mbsinit (License): Likewise.
42114         * modules/mbrtowc (License): Likewise.
42115         * modules/wcrtomb (License): Likewise.
42116         * modules/streq (License): Likewise.
42117         Reported by David Lutterkort <lutter@redhat.com>.
42118
42119 2008-12-23  Bruno Haible  <bruno@clisp.org>
42120
42121         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42122
42123 2008-12-23  Bruno Haible  <bruno@clisp.org>
42124
42125         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42126         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42127         GETADDRINFO_LIB, not in LIBS.
42128         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42129         * modules/canon-host (Link): Likewise.
42130         * NEWS: Mention the change.
42131         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42132         GETADDRINFO_LIB.
42133
42134 2008-12-22  Bruno Haible  <bruno@clisp.org>
42135
42136         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42137         * doc/posix-functions/iswalpha_l.texi: Likewise.
42138         * doc/posix-functions/iswblank_l.texi: Likewise.
42139         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42140         * doc/posix-functions/iswctype_l.texi: Likewise.
42141         * doc/posix-functions/iswdigit_l.texi: Likewise.
42142         * doc/posix-functions/iswgraph_l.texi: Likewise.
42143         * doc/posix-functions/iswlower_l.texi: Likewise.
42144         * doc/posix-functions/iswprint_l.texi: Likewise.
42145         * doc/posix-functions/iswpunct_l.texi: Likewise.
42146         * doc/posix-functions/iswspace_l.texi: Likewise.
42147         * doc/posix-functions/iswupper_l.texi: Likewise.
42148         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42149         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42150         * doc/posix-functions/open_wmemstream.texi: Likewise.
42151         * doc/posix-functions/swscanf.texi: Likewise.
42152         * doc/posix-functions/towctrans_l.texi: Likewise.
42153         * doc/posix-functions/towlower.texi: Likewise.
42154         * doc/posix-functions/towlower_l.texi: Likewise.
42155         * doc/posix-functions/towupper.texi: Likewise.
42156         * doc/posix-functions/towupper_l.texi: Likewise.
42157         * doc/posix-functions/vfwprintf.texi: Likewise.
42158         * doc/posix-functions/vfwscanf.texi: Likewise.
42159         * doc/posix-functions/vswscanf.texi: Likewise.
42160         * doc/posix-functions/vwprintf.texi: Likewise.
42161         * doc/posix-functions/vwscanf.texi: Likewise.
42162         * doc/posix-functions/wcpcpy.texi: Likewise.
42163         * doc/posix-functions/wcpncpy.texi: Likewise.
42164         * doc/posix-functions/wcscasecmp.texi: Likewise.
42165         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42166         * doc/posix-functions/wcscoll_l.texi: Likewise.
42167         * doc/posix-functions/wcsdup.texi: Likewise.
42168         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42169         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42170         * doc/posix-functions/wcsnlen.texi: Likewise.
42171         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42172         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42173         * doc/posix-functions/wctrans_l.texi: Likewise.
42174         * doc/posix-functions/wctype_l.texi: Likewise.
42175         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42176         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42177         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42178         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42179         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42180         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42181         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42182         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42183         * doc/glibc-functions/wcschrnul.texi: Likewise.
42184         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42185         * doc/glibc-functions/wcstod_l.texi: Likewise.
42186         * doc/glibc-functions/wcstof_l.texi: Likewise.
42187         * doc/glibc-functions/wcstol_l.texi: Likewise.
42188         * doc/glibc-functions/wcstold_l.texi: Likewise.
42189         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42190         * doc/glibc-functions/wcstoq.texi: Likewise.
42191         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42192         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42193         * doc/glibc-functions/wcstouq.texi: Likewise.
42194         * doc/glibc-functions/wmempcpy.texi: Likewise.
42195
42196 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42197             Eric Blake  <ebb9@byu.net>
42198             Paolo Bonzini  <bonzini@gnu.org>
42199             Bruno Haible  <bruno@clisp.org>
42200
42201         Make c-stack work on Haiku.
42202         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42203         (c_stack_action): Use SA_ONSTACK flag.
42204
42205 2008-12-22  Bruno Haible  <bruno@clisp.org>
42206
42207         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42208
42209 2008-12-22  Bruno Haible  <bruno@clisp.org>
42210
42211         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42212         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42213         being overridden.
42214         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42215         New macros.
42216         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42217         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42218         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42219         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42220
42221 2008-12-22  Bruno Haible  <bruno@clisp.org>
42222
42223         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42224         from test code.
42225
42226 2008-12-22  Eric Blake  <ebb9@byu.net>
42227
42228         Avoid gcc warnings on cygwin.
42229         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42230         Avoid unused variable.
42231         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42232         Likewise.
42233
42234 2008-12-22  Bruno Haible  <bruno@clisp.org>
42235
42236         Remove HAVE_MBRTOWC conditionals.
42237         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42238         (mbscasecmp): Assume mbrtowc function.
42239         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42240         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42241         * lib/mbschr.c: Include mbuiter.h unconditionally.
42242         (mbschr): Assume mbrtowc function.
42243         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42244         (mbscspn): Assume mbrtowc function.
42245         * lib/mbslen.c: Include mbuiter.h unconditionally.
42246         (mbslen): Assume mbrtowc function.
42247         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
42248         (mbsncasecmp): Assume mbrtowc function.
42249         * lib/mbsnlen.c: Include mbiter.h unconditionally.
42250         (mbsnlen): Assume mbrtowc function.
42251         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
42252         (mbspbrk): Assume mbrtowc function.
42253         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
42254         (mbspcasecmp): Assume mbrtowc function.
42255         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
42256         (mbsrchr): Assume mbrtowc function.
42257         * lib/mbssep.c: Include mbuiter.h unconditionally.
42258         (mbssep): Assume mbrtowc function.
42259         * lib/mbsspn.c: Include mbuiter.h unconditionally.
42260         (mbsspn): Assume mbrtowc function.
42261         * lib/mbsstr.c: Include mbuiter.h unconditionally.
42262         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
42263         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
42264         (mbstok_r): Assume mbrtowc function.
42265         * lib/propername.c: Include mbuiter.h unconditionally.
42266         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
42267         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
42268         (trim2): Assume mbrtowc function.
42269         * lib/mbswidth.c (mbsinit): Remove fallback definition.
42270         (mbsnwidth): Assume mbrtowc function.
42271         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
42272         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
42273         fallback definitions.
42274         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
42275
42276 2008-12-22  Bruno Haible  <bruno@clisp.org>
42277
42278         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
42279
42280 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
42281
42282         * modules/regex: Request emulations for the mb*/wc* functions we need.
42283         * m4/regex.m4: Don't look for those functions here.
42284         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
42285
42286 2008-12-22  Bruno Haible  <bruno@clisp.org>
42287
42288         * modules/fnmatch (Depends-on): Remove duplicated dependency.
42289
42290 2008-12-21  Bruno Haible  <bruno@clisp.org>
42291
42292         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
42293         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
42294         (Include): Remove conditionalization.
42295         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
42296         (Include): Remove conditionalization.
42297         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
42298         (Include): Remove conditionalization.
42299         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
42300         * m4/mbfile.m4 (gl_MBFILE): Likewise.
42301         * NEWS: Mention the change.
42302         Reported by Alan Hourihane <alanh@fairlite.co.uk>
42303         via Sergey Poznyakoff <gray@gnu.org.ua>.
42304
42305 2008-12-21  Bruno Haible  <bruno@clisp.org>
42306
42307         * MODULES.html.sh (Extended multibyte and wide character utilities
42308         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
42309         wcrtomb, wcsrtombs.
42310         (Support for systems lacking POSIX:2008): Add accept, bind, close,
42311         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
42312         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
42313         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
42314
42315 2008-12-21  Bruno Haible  <bruno@clisp.org>
42316
42317         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
42318
42319 2008-12-21  Bruno Haible  <bruno@clisp.org>
42320
42321         * modules/wcsnrtombs-tests: New file.
42322         * tests/test-wcsnrtombs1.sh: New file.
42323         * tests/test-wcsnrtombs2.sh: New file.
42324         * tests/test-wcsnrtombs3.sh: New file.
42325         * tests/test-wcsnrtombs4.sh: New file.
42326         * tests/test-wcsnrtombs.c: New file.
42327
42328         New module 'wcsnrtombs'.
42329         * lib/wchar.in.h (wcsnrtombs): New declaration.
42330         * lib/wcsnrtombs.c: New file.
42331         * lib/wcsrtombs-state.c: New file.
42332         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
42333         (internal_state): Remove variable.
42334         * m4/wcsnrtombs.m4: New file.
42335         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
42336         compilation units.
42337         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
42338         HAVE_WCSNRTOMBS.
42339         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
42340         HAVE_WCSNRTOMBS.
42341         * modules/wcsnrtombs: New file.
42342         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
42343         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42344
42345 2008-12-21  Bruno Haible  <bruno@clisp.org>
42346
42347         * modules/wcsrtombs-tests: New file.
42348         * tests/test-wcsrtombs1.sh: New file.
42349         * tests/test-wcsrtombs2.sh: New file.
42350         * tests/test-wcsrtombs3.sh: New file.
42351         * tests/test-wcsrtombs4.sh: New file.
42352         * tests/test-wcsrtombs.c: New file.
42353
42354         New module 'wcsrtombs'.
42355         * lib/wchar.in.h (wcsrtombs): New declaration.
42356         * lib/wcsrtombs.c: New file.
42357         * m4/wcsrtombs.m4: New file.
42358         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42359         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42360         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42361         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42362         * modules/wcsrtombs: New file.
42363         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42364         bugs.
42365
42366 2008-12-21  Bruno Haible  <bruno@clisp.org>
42367
42368         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42369         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42370         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42371         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42372         if not correct.
42373         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42374         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
42375         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42376         m4/locale-zh.m4, m4/codeset.m4.
42377         * doc/posix-functions/wcrtomb.texi: Document the bug.
42378
42379 2008-12-21  Bruno Haible  <bruno@clisp.org>
42380
42381         Work around a btowc() bug on IRIX 6.5.
42382         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
42383         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
42384         REPLACE_WTOBC if not.
42385         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
42386         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
42387         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
42388
42389 2008-12-21  Bruno Haible  <bruno@clisp.org>
42390
42391         * modules/wcrtomb-tests: New file.
42392         * tests/test-wcrtomb.sh: New file.
42393         * tests/test-wcrtomb.c: New file.
42394
42395         New module 'wcrtomb'.
42396         * lib/wchar.in.h (wcrtomb): New declaration.
42397         * lib/wcrtomb.c: New file.
42398         * m4/wcrtomb.m4: New file.
42399         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
42400         HAVE_WCRTOMB.
42401         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
42402         HAVE_WCRTOMB.
42403         * modules/wcrtomb: New file.
42404         * doc/posix-functions/wcrtomb.texi: Mention the new module.
42405
42406 2008-12-21  Bruno Haible  <bruno@clisp.org>
42407
42408         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
42409         * modules/mbsrtowcs (Files): Likewise.
42410         * modules/wctob (Files): Likewise.
42411         * modules/c-strcase-tests (Files): Likewise.
42412         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42413         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42414         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42415         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42416         * modules/vasnprintf-posix-tests (Files): Likewise.
42417
42418 2008-12-21  William Pursell  <bill.pursell@gmail.com>
42419
42420         gitlog-to-changelog: pass all command-line arguments to git-log
42421         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
42422         it is sometimes convenient to filter the commits in various ways.
42423         gitlog-to-changelog only allows --since to specify a start date,
42424         but git-log itself supports many other filtering mechanisms.
42425         At the moment, I want to filter by branch name.  Rather than
42426         adding a --branch option to gitlog-to-changelog, it seems more
42427         flexible to simply pass all options directly to git-log and let
42428         git do the work.  Notice that this effectively makes --since a
42429         redundant option for gitlog-to-changelog, but removing it would
42430         require current usage to change since calls would then require
42431         an additional '--'.
42432
42433 2008-12-21  Bruno Haible  <bruno@clisp.org>
42434
42435         * modules/mbsnrtowcs-tests: New file.
42436         * tests/test-mbsnrtowcs1.sh: New file.
42437         * tests/test-mbsnrtowcs2.sh: New file.
42438         * tests/test-mbsnrtowcs3.sh: New file.
42439         * tests/test-mbsnrtowcs4.sh: New file.
42440         * tests/test-mbsnrtowcs.c: New file.
42441
42442         New module 'mbsnrtowcs'.
42443         * lib/wchar.in.h (mbsnrtowcs): New declaration.
42444         * lib/mbsnrtowcs.c: New file.
42445         * lib/mbsrtowcs-state.c: New file.
42446         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
42447         (internal_state): Remove variable.
42448         * m4/mbsnrtowcs.m4: New file.
42449         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
42450         compilation units.
42451         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
42452         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42453         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
42454         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42455         * modules/mbsnrtowcs: New file.
42456         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
42457         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
42458         portability problem.
42459
42460 2008-12-21  Bruno Haible  <bruno@clisp.org>
42461
42462         Work around mbsrtowcs bug.
42463         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
42464         (gl_FUNC_MBSRTOWCS): Invoke it.
42465         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42466         m4/locale-zh.m4.
42467         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
42468
42469 2008-12-21  Bruno Haible  <bruno@clisp.org>
42470
42471         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
42472
42473 2008-12-21  Bruno Haible  <bruno@clisp.org>
42474
42475         Update doc for AIX.
42476         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
42477         16-bit wchar_t type.
42478         * doc/posix-functions/btowc.texi: Likewise.
42479         * doc/posix-functions/fgetwc.texi: Likewise.
42480         * doc/posix-functions/fgetws.texi: Likewise.
42481         * doc/posix-functions/fputwc.texi: Likewise.
42482         * doc/posix-functions/fputws.texi: Likewise.
42483         * doc/posix-functions/fwide.texi: Likewise.
42484         * doc/posix-functions/fwprintf.texi: Likewise.
42485         * doc/posix-functions/fwscanf.texi: Likewise.
42486         * doc/posix-functions/getwchar.texi: Likewise.
42487         * doc/posix-functions/getwc.texi: Likewise.
42488         * doc/posix-functions/iswalnum.texi: Likewise.
42489         * doc/posix-functions/iswalpha.texi: Likewise.
42490         * doc/posix-functions/iswblank.texi: Likewise.
42491         * doc/posix-functions/iswcntrl.texi: Likewise.
42492         * doc/posix-functions/iswctype.texi: Likewise.
42493         * doc/posix-functions/iswdigit.texi: Likewise.
42494         * doc/posix-functions/iswgraph.texi: Likewise.
42495         * doc/posix-functions/iswlower.texi: Likewise.
42496         * doc/posix-functions/iswprint.texi: Likewise.
42497         * doc/posix-functions/iswpunct.texi: Likewise.
42498         * doc/posix-functions/iswspace.texi: Likewise.
42499         * doc/posix-functions/iswupper.texi: Likewise.
42500         * doc/posix-functions/iswxdigit.texi: Likewise.
42501         * doc/posix-functions/mbrtowc.texi: Likewise.
42502         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42503         * doc/posix-functions/mbstowcs.texi: Likewise.
42504         * doc/posix-functions/mbtowc.texi: Likewise.
42505         * doc/posix-functions/putwchar.texi: Likewise.
42506         * doc/posix-functions/putwc.texi: Likewise.
42507         * doc/posix-functions/swprintf.texi: Likewise.
42508         * doc/posix-functions/tolower.texi: Likewise.
42509         * doc/posix-functions/toupper.texi: Likewise.
42510         * doc/posix-functions/towctrans.texi: Likewise.
42511         * doc/posix-functions/ungetwc.texi: Likewise.
42512         * doc/posix-functions/vswprintf.texi: Likewise.
42513         * doc/posix-functions/wcrtomb.texi: Likewise.
42514         * doc/posix-functions/wcscat.texi: Likewise.
42515         * doc/posix-functions/wcschr.texi: Likewise.
42516         * doc/posix-functions/wcscmp.texi: Likewise.
42517         * doc/posix-functions/wcscoll.texi: Likewise.
42518         * doc/posix-functions/wcscpy.texi: Likewise.
42519         * doc/posix-functions/wcscspn.texi: Likewise.
42520         * doc/posix-functions/wcsftime.texi: Likewise.
42521         * doc/posix-functions/wcslen.texi: Likewise.
42522         * doc/posix-functions/wcsncat.texi: Likewise.
42523         * doc/posix-functions/wcsncmp.texi: Likewise.
42524         * doc/posix-functions/wcsncpy.texi: Likewise.
42525         * doc/posix-functions/wcspbrk.texi: Likewise.
42526         * doc/posix-functions/wcsrchr.texi: Likewise.
42527         * doc/posix-functions/wcsrtombs.texi: Likewise.
42528         * doc/posix-functions/wcsspn.texi: Likewise.
42529         * doc/posix-functions/wcsstr.texi: Likewise.
42530         * doc/posix-functions/wcstod.texi: Likewise.
42531         * doc/posix-functions/wcstof.texi: Likewise.
42532         * doc/posix-functions/wcstoimax.texi: Likewise.
42533         * doc/posix-functions/wcstok.texi: Likewise.
42534         * doc/posix-functions/wcstold.texi: Likewise.
42535         * doc/posix-functions/wcstoll.texi: Likewise.
42536         * doc/posix-functions/wcstol.texi: Likewise.
42537         * doc/posix-functions/wcstombs.texi: Likewise.
42538         * doc/posix-functions/wcstoull.texi: Likewise.
42539         * doc/posix-functions/wcstoul.texi: Likewise.
42540         * doc/posix-functions/wcstoumax.texi: Likewise.
42541         * doc/posix-functions/wcswidth.texi: Likewise.
42542         * doc/posix-functions/wcsxfrm.texi: Likewise.
42543         * doc/posix-functions/wctob.texi: Likewise.
42544         * doc/posix-functions/wctomb.texi: Likewise.
42545         * doc/posix-functions/wctrans.texi: Likewise.
42546         * doc/posix-functions/wctype.texi: Likewise.
42547         * doc/posix-functions/wcwidth.texi: Likewise.
42548         * doc/posix-functions/wmemchr.texi: Likewise.
42549         * doc/posix-functions/wmemcmp.texi: Likewise.
42550         * doc/posix-functions/wmemcpy.texi: Likewise.
42551         * doc/posix-functions/wmemmove.texi: Likewise.
42552         * doc/posix-functions/wmemset.texi: Likewise.
42553         * doc/posix-functions/wprintf.texi: Likewise.
42554         * doc/posix-functions/wscanf.texi: Likewise.
42555
42556 2008-12-21  Bruno Haible  <bruno@clisp.org>
42557
42558         Update doc for HP-UX 11.11.
42559         * doc/posix-functions/btowc.texi: Clarify that the function is missing
42560         in HP-UX version 11.00, not in all versions of HP-UX 11.
42561         * doc/posix-functions/fwide.texi: Likewise.
42562         * doc/posix-functions/fwprintf.texi: Likewise.
42563         * doc/posix-functions/fwscanf.texi: Likewise.
42564         * doc/posix-functions/inet_ntop.texi: Likewise.
42565         * doc/posix-functions/inet_pton.texi: Likewise.
42566         * doc/posix-functions/mbrlen.texi: Likewise.
42567         * doc/posix-functions/mbrtowc.texi: Likewise.
42568         * doc/posix-functions/mbsinit.texi: Likewise.
42569         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42570         * doc/posix-functions/swprintf.texi: Likewise.
42571         * doc/posix-functions/swscanf.texi: Likewise.
42572         * doc/posix-functions/towctrans.texi: Likewise.
42573         * doc/posix-functions/vfwprintf.texi: Likewise.
42574         * doc/posix-functions/vswprintf.texi: Likewise.
42575         * doc/posix-functions/vwprintf.texi: Likewise.
42576         * doc/posix-functions/wcrtomb.texi: Likewise.
42577         * doc/posix-functions/wcsrtombs.texi: Likewise.
42578         * doc/posix-functions/wcsstr.texi: Likewise.
42579         * doc/posix-functions/wctob.texi: Likewise.
42580         * doc/posix-functions/wctrans.texi: Likewise.
42581         * doc/posix-functions/wmemchr.texi: Likewise.
42582         * doc/posix-functions/wmemcmp.texi: Likewise.
42583         * doc/posix-functions/wmemcpy.texi: Likewise.
42584         * doc/posix-functions/wmemmove.texi: Likewise.
42585         * doc/posix-functions/wmemset.texi: Likewise.
42586         * doc/posix-functions/wprintf.texi: Likewise.
42587         * doc/posix-functions/wscanf.texi: Likewise.
42588
42589 2008-12-21  Bruno Haible  <bruno@clisp.org>
42590
42591         Work around a portability problem.
42592         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
42593         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
42594
42595 2008-12-20  Bruno Haible  <bruno@clisp.org>
42596
42597         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
42598         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
42599         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
42600         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
42601         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
42602
42603         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
42604         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
42605         set.
42606         (GNULIB_defined_mbstate_t): New macro.
42607         (mbsinit): Redefine if REPLACE_MBSINIT is set.
42608         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
42609         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
42610         reuses the system's mbrtowc function but works around the bugs.
42611         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
42612         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
42613         macros.
42614         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
42615         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
42616         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
42617         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
42618         REPLACE_MBSINIT if mbsinit needs to be overridden.
42619         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
42620         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42621         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
42622         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42623         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42624         m4/locale-zh.m4.
42625         (Depends): Add mbsinit.
42626         * modules/mbsinit (Depends): Add mbrtowc.
42627         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
42628
42629 2008-12-20  Bruno Haible  <bruno@clisp.org>
42630
42631         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
42632         so that there are no conversion errors on AIX.
42633         * tests/test-mbsrtowcs.c (main): LIkewise.
42634
42635 2008-12-20  Bruno Haible  <bruno@clisp.org>
42636
42637         Work around wctob bug on Solaris <= 9.
42638         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
42639         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
42640         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
42641         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
42642         * modules/wctob (Files): Add m4/locale-fr.m4.
42643         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
42644
42645 2008-12-20  Bruno Haible  <bruno@clisp.org>
42646
42647         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
42648         /dev/null.
42649         * tests/test-select-in.sh: Likewise.
42650         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42651
42652 2008-12-20  Bruno Haible  <bruno@clisp.org>
42653
42654         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
42655         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
42656         Cygwin 1.5.x.
42657
42658 2008-12-20  Bruno Haible  <bruno@clisp.org>
42659
42660         Ensure mbstate_t is defined on HP-UX 11.11.
42661         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
42662         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
42663         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
42664         AC_USE_SYSTEM_EXTENSIONS.
42665         * modules/fnmatch (Depends-on): Add extensions.
42666         * modules/mbrlen (Depends-on): Likewise.
42667         * modules/mbrtowc (Depends-on): Likewise.
42668         * modules/mbsinit (Depends-on): Likewise.
42669         * modules/mbsrtowcs (Depends-on): Likewise.
42670         * modules/mbswidth (Depends-on): Likewise.
42671         * modules/quotearg (Depends-on): Likewise.
42672         * modules/strftime (Depends-on): Likewise.
42673
42674 2008-12-20  Bruno Haible  <bruno@clisp.org>
42675
42676         Ensure wctob is declared on IRIX 6.5.
42677         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
42678         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
42679         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
42680         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
42681         of HAVE_WCTOB.
42682         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
42683         HAVE_WCTOB.
42684         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
42685
42686 2008-12-19  Bruno Haible  <bruno@clisp.org>
42687
42688         * modules/mbsrtowcs-tests: New file.
42689         * tests/test-mbsrtowcs1.sh: New file.
42690         * tests/test-mbsrtowcs2.sh: New file.
42691         * tests/test-mbsrtowcs3.sh: New file.
42692         * tests/test-mbsrtowcs4.sh: New file.
42693         * tests/test-mbsrtowcs.c: New file.
42694
42695         New module 'mbsrtowcs'.
42696         * lib/wchar.in.h (mbsrtowcs): New declaration.
42697         * lib/mbsrtowcs.c: New file.
42698         * m4/mbsrtowcs.m4: New file.
42699         * modules/mbsrtowcs: New file.
42700         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
42701         HAVE_MBSRTOWCS.
42702         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
42703         HAVE_MBSRTOWCS.
42704         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
42705
42706 2008-12-19  Bruno Haible  <bruno@clisp.org>
42707
42708         New module 'mbrlen'.
42709         * lib/wchar.in.h (mbrlen): New declaration.
42710         * lib/mbrlen.c: New file.
42711         * m4/mbrlen.m4: New file.
42712         * modules/mbrlen: New file.
42713         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
42714         HAVE_MBRLEN.
42715         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
42716         HAVE_MBRLEN.
42717         * doc/posix-functions/mbrlen.texi: Document the new module.
42718
42719 2008-12-19  Bruno Haible  <bruno@clisp.org>
42720
42721         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
42722         * modules/mbrtowc (Depends-on): Add verify.
42723         Suggested by Paul Eggert.
42724
42725 2008-12-18  Bruno Haible  <bruno@clisp.org>
42726
42727         * modules/mbsinit-tests: New file.
42728         * tests/test-mbsinit.sh: New file.
42729         * tests/test-mbsinit.c: New file.
42730
42731 2008-12-18  Bruno Haible  <bruno@clisp.org>
42732
42733         * modules/mbrtowc-tests: New file.
42734         * tests/test-mbrtowc1.sh: New file.
42735         * tests/test-mbrtowc2.sh: New file.
42736         * tests/test-mbrtowc3.sh: New file.
42737         * tests/test-mbrtowc4.sh: New file.
42738         * tests/test-mbrtowc.c: New file.
42739
42740         New module 'mbrtowc'.
42741         * lib/wchar.in.h (mbstate_t): Override when the system does not have
42742         mbsinit and mbrtowc.
42743         (mbrtowc): New declaration.
42744         * lib/mbrtowc.c: New file.
42745         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
42746         * modules/mbrtowc: New file.
42747         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
42748         HAVE_MBRTOWC.
42749         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
42750         HAVE_MBRTOWC.
42751         * doc/posix-functions/mbrtowc.texi: Document the new module.
42752
42753 2008-12-18  Bruno Haible  <bruno@clisp.org>
42754
42755         New module 'wctob'.
42756         * lib/wchar.in.h (wctob): New declaration.
42757         * lib/wctob.c: New file.
42758         * m4/wctob.m4: New file.
42759         * modules/wctob: New file.
42760         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
42761         HAVE_WCTOB.
42762         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
42763         * doc/posix-functions/wctob.texi: Document the new module.
42764
42765 2008-12-18  Bruno Haible  <bruno@clisp.org>
42766
42767         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
42768         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
42769
42770 2008-12-18  Simon Josefsson  <simon@josefsson.org>
42771
42772         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
42773         G. Christensen" <tgc@jupiterrise.com>.
42774
42775         * lib/flock.c: Need to include errno.h.  Reported by "Tom
42776         G. Christensen" <tgc@jupiterrise.com>.
42777
42778         * lib/flock.c: Need to include string.h.  Reported by "Tom
42779         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
42780         <ebb9@byu.net>.
42781
42782 2008-12-18  Bruno Haible  <bruno@clisp.org>
42783
42784         * m4/locale-ja.m4: New file, from GNU gettext.
42785
42786 2008-12-17  Bruno Haible  <bruno@clisp.org>
42787
42788         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
42789         Suggested by Eric Blake.
42790
42791 2008-12-17  Bruno Haible  <bruno@clisp.org>
42792
42793         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
42794
42795 2008-12-17  Bruno Haible  <bruno@clisp.org>
42796
42797         * lib/mbsinit.c: Include verify.h. Verify an assumption.
42798         * modules/mbsinit (Depends-on): Add verify.
42799         Suggested by Paul Eggert.
42800
42801 2008-12-17  Bruno Haible  <bruno@clisp.org>
42802
42803         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
42804         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
42805         gl_FUNC_MBRTOWC.
42806         * m4/mbiter.m4 (gl_MBITER): LIkewise.
42807         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
42808         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
42809         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
42810         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
42811         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
42812         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
42813         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
42814         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
42815         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
42816         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
42817         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
42818         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
42819         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
42820         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
42821         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42822         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
42823         * modules/trim (configure.ac): Likewise.
42824
42825 2008-12-17  Bruno Haible  <bruno@clisp.org>
42826
42827         * modules/btowc-tests: New file.
42828         * tests/test-btowc1.sh: New file.
42829         * tests/test-btowc2.sh: New file.
42830         * tests/test-btowc.c: New file.
42831
42832         New module 'btowc'.
42833         * lib/wchar.in.h (btowc): New declaration.
42834         * lib/btowc.c: New file.
42835         * m4/btowc.m4: New file.
42836         * modules/btowc: New file.
42837         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
42838         HAVE_BTOWC.
42839         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
42840         * doc/posix-functions/btowc.texi: Document the new module.
42841
42842 2008-12-17  Bruno Haible  <bruno@clisp.org>
42843
42844         New module 'mbsinit'.
42845         * lib/wchar.in.h (mbsinit): New declaration.
42846         * lib/mbsinit.c: New file.
42847         * m4/mbsinit.m4: New file.
42848         * modules/mbsinit: New file.
42849         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
42850         HAVE_MBSINIT.
42851         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
42852         HAVE_MBSINIT.
42853         * doc/posix-functions/mbsinit.texi: Document the new module.
42854
42855 2008-12-16  Bruno Haible  <bruno@clisp.org>
42856
42857         * lib/unistd.in.h: Add comment.
42858         * tests/test-environ.c: Don't include <stdlib.h>.
42859
42860 2008-12-16  Bruno Haible  <bruno@clisp.org>
42861
42862         * lib/parse-duration.h (parse_duration): Document return value
42863         convention.
42864         * lib/parse-duration.c: Include specification header first. Add
42865         comments.
42866         (_): Remove macro.
42867         (parse_year_month_day, parse_hour_minute_second): Move side effects
42868         outside of strchr call.
42869         (parse_non_iso8601): Move side effects outside of isspace call.
42870         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
42871         call.
42872
42873 2008-12-16  Bruno Haible  <bruno@clisp.org>
42874
42875         * tests/test-parse-duration.sh: Produce no output when the test
42876         succeeds.
42877
42878 2008-12-16  Bruno Haible  <bruno@clisp.org>
42879
42880         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
42881         expressions.
42882
42883 2008-12-15  Bruno Haible  <bruno@clisp.org>
42884
42885         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
42886         * doc/glibc-functions/flistxattr.texi: Likewise.
42887         * doc/glibc-functions/fopencookie.texi: Likewise.
42888         * doc/glibc-functions/fremovexattr.texi: Likewise.
42889         * doc/glibc-functions/fsetxattr.texi: Likewise.
42890         * doc/glibc-functions/getxattr.texi: Likewise.
42891         * doc/glibc-functions/lgetxattr.texi: Likewise.
42892         * doc/glibc-functions/listxattr.texi: Likewise.
42893         * doc/glibc-functions/llistxattr.texi: Likewise.
42894         * doc/glibc-functions/lremovexattr.texi: Likewise.
42895         * doc/glibc-functions/lsetxattr.texi: Likewise.
42896         * doc/glibc-functions/removexattr.texi: Likewise.
42897         * doc/glibc-functions/setxattr.texi: Likewise.
42898         * doc/posix-functions/open_memstream.texi: Likewise.
42899
42900 2008-12-15  Eric Blake  <ebb9@byu.net>
42901
42902         Update doc for cygwin 1.7.
42903         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
42904         functions.
42905         * doc/posix-functions/fchmodat.texi: Likewise.
42906         * doc/posix-functions/fchownat.texi: Likewise.
42907         * doc/posix-functions/fdopendir.texi: Likewise.
42908         * doc/posix-functions/fmemopen.texi: Likewise.
42909         * doc/posix-functions/freeaddrinfo.texi: Likewise.
42910         * doc/posix-functions/fstatat.texi: Likewise.
42911         * doc/posix-functions/futimens.texi: Likewise.
42912         * doc/posix-functions/gai_strerror.texi: Likewise.
42913         * doc/posix-functions/getaddrinfo.texi: Likewise.
42914         * doc/posix-functions/getnameinfo.texi: Likewise.
42915         * doc/posix-functions/if_freenameindex.texi: Likewise.
42916         * doc/posix-functions/if_indextoname.texi: Likewise.
42917         * doc/posix-functions/if_nameindex.texi: Likewise.
42918         * doc/posix-functions/if_nametoindex.texi: Likewise.
42919         * doc/posix-functions/insque.texi: Likewise.
42920         * doc/posix-functions/linkat.texi: Likewise.
42921         * doc/posix-functions/llrint.texi: Likewise.
42922         * doc/posix-functions/llrintf.texi: Likewise.
42923         * doc/posix-functions/llrintl.texi: Likewise.
42924         * doc/posix-functions/lockf.texi: Likewise.
42925         * doc/posix-functions/lrintl.texi: Likewise.
42926         * doc/posix-functions/mkdirat.texi: Likewise.
42927         * doc/posix-functions/mkfifoat.texi: Likewise.
42928         * doc/posix-functions/mknodat.texi: Likewise.
42929         * doc/posix-functions/mq_close.texi: Likewise.
42930         * doc/posix-functions/mq_getattr.texi: Likewise.
42931         * doc/posix-functions/mq_notify.texi: Likewise.
42932         * doc/posix-functions/mq_open.texi: Likewise.
42933         * doc/posix-functions/mq_receive.texi: Likewise.
42934         * doc/posix-functions/mq_send.texi: Likewise.
42935         * doc/posix-functions/mq_setattr.texi: Likewise.
42936         * doc/posix-functions/mq_timedreceive.texi: Likewise.
42937         * doc/posix-functions/mq_timedsend.texi: Likewise.
42938         * doc/posix-functions/mq_unlink.texi: Likewise.
42939         * doc/posix-functions/open_memstream.texi: Likewise.
42940         * doc/posix-functions/openat.texi: Likewise.
42941         * doc/posix-functions/posix_fadvise.texi: Likewise.
42942         * doc/posix-functions/posix_fallocate.texi: Likewise.
42943         * doc/posix-functions/posix_madvise.texi: Likewise.
42944         * doc/posix-functions/posix_memalign.texi: Likewise.
42945         * doc/posix-functions/posix_openpt.texi: Likewise.
42946         * doc/posix-functions/readlinkat.texi: Likewise.
42947         * doc/posix-functions/remque.texi: Likewise.
42948         * doc/posix-functions/renameat.texi: Likewise.
42949         * doc/posix-functions/rintl.texi: Likewise.
42950         * doc/posix-functions/sem_unlink.texi: Likewise.
42951         * doc/posix-functions/shm_open.texi: Likewise.
42952         * doc/posix-functions/shm_unlink.texi: Likewise.
42953         * doc/posix-functions/signgam.texi: Likewise.
42954         * doc/posix-functions/sigset.texi: Likewise.
42955         * doc/posix-functions/stpcpy.texi: Likewise.
42956         * doc/posix-functions/stpncpy.texi: Likewise.
42957         * doc/posix-functions/strerror.texi: Likewise.
42958         * doc/posix-functions/strtod.texi: Likewise.
42959         * doc/posix-functions/symlinkat.texi: Likewise.
42960         * doc/posix-functions/unlinkat.texi: Likewise.
42961         * doc/posix-functions/utimensat.texi: Likewise.
42962         * doc/glibc-functions/bindresvport.texi: Likewise.
42963         * doc/glibc-functions/dn_expand.texi: Likewise.
42964         * doc/glibc-functions/exp10.texi: Likewise.
42965         * doc/glibc-functions/exp10f.texi: Likewise.
42966         * doc/glibc-functions/fgetxattr.texi: Likewise.
42967         * doc/glibc-functions/flistxattr.texi: Likewise.
42968         * doc/glibc-functions/fopencookie.texi: Likewise.
42969         * doc/glibc-functions/freeifaddrs.texi: Likewise.
42970         * doc/glibc-functions/fremovexattr.texi: Likewise.
42971         * doc/glibc-functions/fsetxattr.texi: Likewise.
42972         * doc/glibc-functions/getifaddrs.texi: Likewise.
42973         * doc/glibc-functions/getxattr.texi: Likewise.
42974         * doc/glibc-functions/lgetxattr.texi: Likewise.
42975         * doc/glibc-functions/listxattr.texi: Likewise.
42976         * doc/glibc-functions/llistxattr.texi: Likewise.
42977         * doc/glibc-functions/lremovexattr.texi: Likewise.
42978         * doc/glibc-functions/lsetxattr.texi: Likewise.
42979         * doc/glibc-functions/pow10.texi: Likewise.
42980         * doc/glibc-functions/pow10f.texi: Likewise.
42981         * doc/glibc-functions/rcmd_af.texi: Likewise.
42982         * doc/glibc-functions/removexattr.texi: Likewise.
42983         * doc/glibc-functions/res_init.texi: Likewise.
42984         * doc/glibc-functions/res_mkquery.texi: Likewise.
42985         * doc/glibc-functions/res_query.texi: Likewise.
42986         * doc/glibc-functions/res_querydomain.texi: Likewise.
42987         * doc/glibc-functions/res_send.texi: Likewise.
42988         * doc/glibc-functions/rresvport_af.texi: Likewise.
42989         * doc/glibc-functions/setxattr.texi: Likewise.
42990         * doc/glibc-functions/strcasestr.texi: Likewise.
42991
42992 2008-12-15  Bruno Haible  <bruno@clisp.org>
42993
42994         Fix compilation error on OSF/1 4.0.
42995         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
42996         <sys/time.h>, simply delegate to the system header.
42997         Reported by Daniel Richard G. <oss@teragram.com>.
42998
42999 2008-12-15  Bruno Haible  <bruno@clisp.org>
43000
43001         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43002         * doc/posix-functions/fchmodat.texi: Likewise.
43003         * doc/posix-functions/fchownat.texi: Likewise.
43004         * doc/posix-functions/fdopendir.texi: Likewise.
43005         * doc/posix-functions/fstatat.texi: Likewise.
43006         * doc/posix-functions/mkdirat.texi: Likewise.
43007         * doc/posix-functions/unlinkat.texi: Likewise.
43008
43009 2008-12-14  Bruno Haible  <bruno@clisp.org>
43010
43011         Update doc for POSIX:2008.
43012         * doc/posix-functions/faccessat.texi: New file.
43013         * doc/posix-functions/fchmodat.texi: New file.
43014         * doc/posix-functions/fchownat.texi: New file.
43015         * doc/posix-functions/fdopendir.texi: New file.
43016         * doc/posix-functions/fstatat.texi: New file.
43017         * doc/posix-functions/futimens.texi: New file.
43018         * doc/posix-functions/linkat.texi: New file.
43019         * doc/posix-functions/mkdirat.texi: New file.
43020         * doc/posix-functions/mkfifoat.texi: New file.
43021         * doc/posix-functions/mknodat.texi: New file.
43022         * doc/posix-functions/open_wmemstream.texi: New file.
43023         * doc/posix-functions/openat.texi: New file.
43024         * doc/posix-functions/psiginfo.texi: New file.
43025         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43026         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43027         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43028         * doc/posix-functions/readlinkat.texi: New file.
43029         * doc/posix-functions/renameat.texi: New file.
43030         * doc/posix-functions/strerror_l.texi: New file.
43031         * doc/posix-functions/symlinkat.texi: New file.
43032         * doc/posix-functions/unlinkat.texi: New file.
43033         * doc/posix-functions/utimensat.texi: New file.
43034         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43035
43036 2008-12-14  Bruno Haible  <bruno@clisp.org>
43037
43038         Update doc for POSIX:2008.
43039         * doc/posix-functions/alphasort.texi: Renamed from
43040         doc/glibc-functions/alphasort.texi.
43041         * doc/posix-functions/dirfd.texi: Renamed from
43042         doc/glibc-functions/dirfd.texi.
43043         * doc/posix-functions/dprintf.texi: Renamed from
43044         doc/glibc-functions/dprintf.texi.
43045         * doc/posix-functions/duplocale.texi: Renamed from
43046         doc/glibc-functions/duplocale.texi.
43047         * doc/posix-functions/fexecve.texi: Renamed from
43048         doc/glibc-functions/fexecve.texi.
43049         * doc/posix-functions/fmemopen.texi: Renamed from
43050         doc/glibc-functions/fmemopen.texi.
43051         * doc/posix-functions/freelocale.texi: Renamed from
43052         doc/glibc-functions/freelocale.texi.
43053         * doc/posix-functions/getdate_err.texi: Renamed from
43054         doc/glibc-functions/getdate_err.texi.
43055         * doc/posix-functions/isalnum_l.texi: Renamed from
43056         doc/glibc-functions/isalnum_l.texi.
43057         * doc/posix-functions/isalpha_l.texi: Renamed from
43058         doc/glibc-functions/isalpha_l.texi.
43059         * doc/posix-functions/isblank_l.texi: Renamed from
43060         doc/glibc-functions/isblank_l.texi.
43061         * doc/posix-functions/iscntrl_l.texi: Renamed from
43062         doc/glibc-functions/iscntrl_l.texi.
43063         * doc/posix-functions/isdigit_l.texi: Renamed from
43064         doc/glibc-functions/isdigit_l.texi.
43065         * doc/posix-functions/isgraph_l.texi: Renamed from
43066         doc/glibc-functions/isgraph_l.texi.
43067         * doc/posix-functions/islower_l.texi: Renamed from
43068         doc/glibc-functions/islower_l.texi.
43069         * doc/posix-functions/isprint_l.texi: Renamed from
43070         doc/glibc-functions/isprint_l.texi.
43071         * doc/posix-functions/ispunct_l.texi: Renamed from
43072         doc/glibc-functions/ispunct_l.texi.
43073         * doc/posix-functions/isspace_l.texi: Renamed from
43074         doc/glibc-functions/isspace_l.texi.
43075         * doc/posix-functions/isupper_l.texi: Renamed from
43076         doc/glibc-functions/isupper_l.texi.
43077         * doc/posix-functions/iswalnum_l.texi: Renamed from
43078         doc/glibc-functions/iswalnum_l.texi.
43079         * doc/posix-functions/iswalpha_l.texi: Renamed from
43080         doc/glibc-functions/iswalpha_l.texi.
43081         * doc/posix-functions/iswblank_l.texi: Renamed from
43082         doc/glibc-functions/iswblank_l.texi.
43083         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43084         doc/glibc-functions/iswcntrl_l.texi.
43085         * doc/posix-functions/iswctype_l.texi: Renamed from
43086         doc/glibc-functions/iswctype_l.texi.
43087         * doc/posix-functions/iswdigit_l.texi: Renamed from
43088         doc/glibc-functions/iswdigit_l.texi.
43089         * doc/posix-functions/iswgraph_l.texi: Renamed from
43090         doc/glibc-functions/iswgraph_l.texi.
43091         * doc/posix-functions/iswlower_l.texi: Renamed from
43092         doc/glibc-functions/iswlower_l.texi.
43093         * doc/posix-functions/iswprint_l.texi: Renamed from
43094         doc/glibc-functions/iswprint_l.texi.
43095         * doc/posix-functions/iswpunct_l.texi: Renamed from
43096         doc/glibc-functions/iswpunct_l.texi.
43097         * doc/posix-functions/iswspace_l.texi: Renamed from
43098         doc/glibc-functions/iswspace_l.texi.
43099         * doc/posix-functions/iswupper_l.texi: Renamed from
43100         doc/glibc-functions/iswupper_l.texi.
43101         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43102         doc/glibc-functions/iswxdigit_l.texi.
43103         * doc/posix-functions/isxdigit_l.texi: Renamed from
43104         doc/glibc-functions/isxdigit_l.texi.
43105         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43106         doc/glibc-functions/mbsnrtowcs.texi.
43107         * doc/posix-functions/mkdtemp.texi: Renamed from
43108         doc/glibc-functions/mkdtemp.texi.
43109         * doc/posix-functions/newlocale.texi: Renamed from
43110         doc/glibc-functions/newlocale.texi.
43111         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43112         doc/glibc-functions/nl_langinfo_l.texi.
43113         * doc/posix-functions/open_memstream.texi: Renamed from
43114         doc/glibc-functions/open_memstream.texi.
43115         * doc/posix-functions/opterr.texi: Renamed from
43116         doc/glibc-functions/opterr.texi.
43117         * doc/posix-functions/optind.texi: Renamed from
43118         doc/glibc-functions/optind.texi.
43119         * doc/posix-functions/optopt.texi: Renamed from
43120         doc/glibc-functions/optopt.texi.
43121         * doc/posix-functions/psignal.texi: Renamed from
43122         doc/glibc-functions/psignal.texi.
43123         * doc/posix-functions/scandir.texi: Renamed from
43124         doc/glibc-functions/scandir.texi.
43125         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43126         doc/glibc-functions/sched_get_priority_min.texi.
43127         * doc/posix-functions/signgam.texi: Renamed from
43128         doc/glibc-functions/signgam.texi.
43129         * doc/posix-functions/stpcpy.texi: Renamed from
43130         doc/glibc-functions/stpcpy.texi.
43131         * doc/posix-functions/stpncpy.texi: Renamed from
43132         doc/glibc-functions/stpncpy.texi.
43133         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43134         doc/glibc-functions/strcasecmp_l.texi.
43135         * doc/posix-functions/strcoll_l.texi: Renamed from
43136         doc/glibc-functions/strcoll_l.texi.
43137         * doc/posix-functions/strfmon_l.texi: Renamed from
43138         doc/glibc-functions/strfmon_l.texi.
43139         * doc/posix-functions/strftime_l.texi: Renamed from
43140         doc/glibc-functions/strftime_l.texi.
43141         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43142         doc/glibc-functions/strncasecmp_l.texi.
43143         * doc/posix-functions/strndup.texi: Renamed from
43144         doc/glibc-functions/strndup.texi.
43145         * doc/posix-functions/strnlen.texi: Renamed from
43146         doc/glibc-functions/strnlen.texi.
43147         * doc/posix-functions/strsignal.texi: Renamed from
43148         doc/glibc-functions/strsignal.texi.
43149         * doc/posix-functions/strxfrm_l.texi: Renamed from
43150         doc/glibc-functions/strxfrm_l.texi.
43151         * doc/posix-functions/timer_gettime.texi: Renamed from
43152         doc/glibc-functions/timer_gettime.texi.
43153         * doc/posix-functions/tolower_l.texi: Renamed from
43154         doc/glibc-functions/tolower_l.texi.
43155         * doc/posix-functions/toupper_l.texi: Renamed from
43156         doc/glibc-functions/toupper_l.texi.
43157         * doc/posix-functions/towctrans_l.texi: Renamed from
43158         doc/glibc-functions/towctrans_l.texi.
43159         * doc/posix-functions/towlower_l.texi: Renamed from
43160         doc/glibc-functions/towlower_l.texi.
43161         * doc/posix-functions/towupper_l.texi: Renamed from
43162         doc/glibc-functions/towupper_l.texi.
43163         * doc/posix-functions/uselocale.texi: Renamed from
43164         doc/glibc-functions/uselocale.texi.
43165         * doc/posix-functions/vdprintf.texi: Renamed from
43166         doc/glibc-functions/vdprintf.texi.
43167         * doc/posix-functions/wcpcpy.texi:
43168         Renamed from doc/glibc-functions/wcpcpy.texi.
43169         * doc/posix-functions/wcpncpy.texi: Renamed from
43170         doc/glibc-functions/wcpncpy.texi.
43171         * doc/posix-functions/wcscasecmp.texi: Renamed from
43172         doc/glibc-functions/wcscasecmp.texi.
43173         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43174         doc/glibc-functions/wcscasecmp_l.texi.
43175         * doc/posix-functions/wcscoll_l.texi: Renamed from
43176         doc/glibc-functions/wcscoll_l.texi.
43177         * doc/posix-functions/wcsdup.texi: Renamed from
43178         doc/glibc-functions/wcsdup.texi.
43179         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43180         doc/glibc-functions/wcsncasecmp.texi.
43181         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43182         doc/glibc-functions/wcsncasecmp_l.texi.
43183         * doc/posix-functions/wcsnlen.texi: Renamed from
43184         doc/glibc-functions/wcsnlen.texi.
43185         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43186         doc/glibc-functions/wcsnrtombs.texi.
43187         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43188         doc/glibc-functions/wcsxfrm_l.texi.
43189         * doc/posix-functions/wctrans_l.texi: Renamed from
43190         doc/glibc-functions/wctrans_l.texi.
43191         * doc/posix-functions/wctype_l.texi: Renamed from
43192         doc/glibc-functions/wctype_l.texi.
43193         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43194         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43195         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43196         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43197         these subsections.
43198         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43199         Remove sections.
43200
43201 2008-12-14  Bruno Haible  <bruno@clisp.org>
43202
43203         Update doc for POSIX:2008.
43204         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43205
43206 2008-12-14  Bruno Haible  <bruno@clisp.org>
43207
43208         Update doc for POSIX:2008.
43209         * doc/pastposix-functions/bcmp.texi: Renamed from
43210         doc/posix-functions/bcmp.texi.
43211         * doc/pastposix-functions/bcopy.texi: Renamed from
43212         doc/posix-functions/bcopy.texi.
43213         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43214         doc/posix-functions/bsd_signal.texi.
43215         * doc/pastposix-functions/bzero.texi: Renamed from
43216         doc/posix-functions/bzero.texi.
43217         * doc/pastposix-functions/ecvt.texi: Renamed from
43218         doc/posix-functions/ecvt.texi.
43219         * doc/pastposix-functions/fcvt.texi: Renamed from
43220         doc/posix-functions/fcvt.texi.
43221         * doc/pastposix-functions/ftime.texi: Renamed from
43222         doc/posix-functions/ftime.texi.
43223         * doc/pastposix-functions/gcvt.texi: Renamed from
43224         doc/posix-functions/gcvt.texi.
43225         * doc/pastposix-functions/getcontext.texi: Renamed from
43226         doc/posix-functions/getcontext.texi.
43227         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43228         doc/posix-functions/gethostbyaddr.texi.
43229         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43230         doc/posix-functions/gethostbyname.texi.
43231         * doc/pastposix-functions/getwd.texi: Renamed from
43232         doc/posix-functions/getwd.texi.
43233         * doc/pastposix-functions/h_errno.texi: Renamed from
43234         doc/posix-functions/h_errno.texi.
43235         * doc/pastposix-functions/index.texi: Renamed from
43236         doc/posix-functions/index.texi.
43237         * doc/pastposix-functions/makecontext.texi: Renamed from
43238         doc/posix-functions/makecontext.texi.
43239         * doc/pastposix-functions/mktemp.texi: Renamed from
43240         doc/posix-functions/mktemp.texi.
43241         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43242         doc/posix-functions/pthread_attr_getstackaddr.texi.
43243         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43244         doc/posix-functions/pthread_attr_setstackaddr.texi.
43245         * doc/pastposix-functions/rindex.texi: Renamed from
43246         doc/posix-functions/rindex.texi.
43247         * doc/pastposix-functions/scalb.texi: Renamed from
43248         doc/posix-functions/scalb.texi.
43249         * doc/pastposix-functions/setcontext.texi: Renamed from
43250         doc/posix-functions/setcontext.texi.
43251         * doc/pastposix-functions/swapcontext.texi: Renamed from
43252         doc/posix-functions/swapcontext.texi.
43253         * doc/pastposix-functions/ualarm.texi: Renamed from
43254         doc/posix-functions/ualarm.texi.
43255         * doc/pastposix-functions/usleep.texi: Renamed from
43256         doc/posix-functions/usleep.texi.
43257         * doc/pastposix-functions/vfork.texi: Renamed from
43258         doc/posix-functions/vfork.texi.
43259         * doc/pastposix-functions/wcswcs.texi: Renamed from
43260         doc/posix-functions/wcswcs.texi.
43261         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
43262         (Function Substitutes): Update.
43263
43264 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43265
43266         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
43267         m4/strerror.m4.
43268
43269 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43270             Bruno Haible  <bruno@clisp.org>
43271
43272         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
43273
43274 2008-12-13  Bruno Haible  <bruno@clisp.org>
43275
43276         * modules/strtoull (Depends-on): Remove unistd.
43277
43278 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43279
43280         * modules/strtoull (Depends-on): Add stdlib.
43281
43282 2008-12-11  Simon Josefsson  <simon@josefsson.org>
43283
43284         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
43285
43286 2008-12-10  Jim Meyering  <meyering@redhat.com>
43287
43288         gl_ASSERT: don't say assertions are disabled when they're not
43289         * m4/assert.m4 (gl_ASSERT): Do not make configure report
43290         "checking whether to enable assertions... no", when they are in
43291         fact enabled.  This is solely a bug in the output of configure.
43292         In spite of saying "no", NDEBUG was not defined in that case.
43293         Also, as noted by Eric Blake, leave assertions enabled upon
43294         --enable-assert=INVALID.
43295
43296 2008-12-10  Bruno Haible  <bruno@clisp.org>
43297
43298         Change MODULES.html to refer to POSIX:2008 where possible.
43299         * MODULES.html.sh (POSIX2008_URL): New variable.
43300         (posix_headers): Remove sys/timeb, ucontext.
43301         (posix2001_headers): New variable.
43302         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
43303         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
43304         index, makecontext, mktemp, pthread_attr_getstackaddr,
43305         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
43306         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
43307         (posix2001_functions): New variable.
43308         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
43309         otherwise.
43310
43311 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43312
43313         add missing include to parse-duration.c
43314         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
43315         * modules/parse-duration (Depends-on): Add xalloc.
43316
43317         fix sed script reading maint.mk
43318         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
43319         (syntax-check-rules): Use it.
43320
43321 2008-12-09  Bruno Haible  <bruno@clisp.org>
43322
43323         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
43324         MacOS X 10.4/PowerPC.
43325         Reported by Simon Josefsson.
43326
43327 2008-12-08  Jim Meyering  <meyering@redhat.com>
43328
43329         work around mingw's lack of some S_IF definitions
43330         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
43331         Reported by Simon Josefsson.
43332
43333 2008-12-08  Bruno Haible  <bruno@clisp.org>
43334
43335         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
43336         applied to variables. Needed on MacOS X 10.4/PowerPC.
43337         Reported by Simon Josefsson.
43338
43339 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
43340         and Eric Blake  <ebb9@byu.net>
43341
43342         assert: honor --enable-assert
43343         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43344         order to honor --enable-assert, rather than treating it as a
43345         synonym for --disable-assert.
43346
43347 2008-12-08  Jim Meyering  <meyering@redhat.com>
43348
43349         * lib/posixtm.c: Remove now-useless declaration of mktime.
43350
43351         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43352
43353 2008-12-07  Bruno Haible  <bruno@clisp.org>
43354
43355         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43356         test_once): Mark functions as static.
43357         * tests/test-tls.c (test_tls): Likewise.
43358
43359 2008-12-07  Bruno Haible  <bruno@clisp.org>
43360
43361         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43362         iconv_register_autodetect.
43363
43364 2008-12-07  Jim Meyering  <meyering@redhat.com>
43365
43366         posixtm.c: avoid a warning
43367         * lib/posixtm.c (posixtime): Don't initialize tm0.
43368         It's no longer needed to placate gcc4's -Wuninitialized,
43369         and the attempt to placate would elicit a new warning.
43370
43371         unicodeio.c: mark unused parameters
43372         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43373         (fallback_failure_callback): Likewise.
43374
43375 2008-12-07  Bruno Haible  <bruno@clisp.org>
43376
43377         * gnulib-tool (func_create_testdir): When building the tests
43378         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
43379         Reported by Simon Josefsson.
43380
43381 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43382
43383         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
43384
43385 2008-12-06  Bruno Haible  <bruno@clisp.org>
43386
43387         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
43388         Suggested by Eric Blake.
43389
43390 2008-12-06  Bruno Haible  <bruno@clisp.org>
43391
43392         Fix a c-stack test failure on MacOS X.
43393         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
43394         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
43395         handler for SIGBUS as well.
43396         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
43397         install a signal handler for SIGBUS as well.
43398         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
43399
43400 2008-12-06  Bruno Haible  <bruno@clisp.org>
43401
43402         Advocacy documentation.
43403         * doc/gnulib-intro.texi (Benefits): New section.
43404         * doc/gnulib.texi: Update.
43405
43406 2008-12-06  Bruno Haible  <bruno@clisp.org>
43407
43408         Document the 'manywarnings' module.
43409         * doc/manywarnings.texi: New file.
43410         * doc/gnulib.texi: Include it.
43411
43412 2008-12-05  Eric Blake  <ebb9@byu.net>
43413
43414         tests: silence some gcc warnings
43415         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43416         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43417         type mismatches.
43418
43419 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43420             Bruno Haible  <bruno@clisp.org>
43421
43422         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
43423
43424 2008-11-29  Jim Meyering  <meyering@redhat.com>
43425
43426         unicodeio.c: mark unused parameters
43427         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43428         (fallback_failure_callback): Likewise.
43429
43430         fts: fix a thinko
43431         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
43432         (set_stat_type): Return S_IF*-valued "type" directly.
43433         Prompted by James Youngman's spotting a related bug.
43434         Confirmed by further testing through find.
43435
43436         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
43437         * lib/fts.c (D_TYPE): Define.
43438         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
43439         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
43440         (s_ifmt_shift_bits): New function.
43441         (set_stat_type): New function.
43442         (fts_build): When not calling fts_stat, call set_stat_type
43443         to propagate dirent.d_type info to fts_read caller.
43444         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
43445         fts_statp->st_mode type information may be valid.
43446
43447 2008-11-28  Simon Josefsson  <simon@josefsson.org>
43448
43449         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
43450         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
43451         <sds@gnu.org>.
43452
43453 2008-11-20  Bruno Haible  <bruno@clisp.org>
43454
43455         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
43456         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
43457         INCLUDE_NEXT.
43458         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
43459         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
43460         * modules/math (Makefile.am): Substitute
43461         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
43462         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43463
43464 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
43465             Bruno Haible  <bruno@clisp.org>
43466
43467         * lib/stdint.in.h: Define all type macros so that their expansion is
43468         a single typedef'ed token. Fixes a compilation failure in Boost which
43469         does "using ::int8_t;".
43470
43471 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43472
43473         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
43474         gl_MANYWARN_ALL_GCC.
43475         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
43476         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
43477         * modules/manywarnings: New file.
43478         * MODULES.html.sh: Mention manywarnings module.
43479
43480 2008-11-18  Bruno Haible  <bruno@clisp.org>
43481
43482         * doc/gnulib-tool.texi (Unit tests): New section.
43483
43484 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43485
43486         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
43487         paths like 'lib/po/foo.po'.
43488
43489 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43490
43491         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
43492         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
43493
43494 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43495
43496         * m4/warnings.m4: Use CPPFLAGS to really check whether the
43497         parameter works.
43498
43499 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43500
43501         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
43502
43503 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43504
43505         * modules/parse-duration-tests: New file.
43506         * tests/test-parse-duration.sh: New file.
43507         * tests/test-parse-duration.c: New file.
43508
43509         New module 'parse-duration'.
43510         * lib/parse-duration.h: New file.
43511         * lib/parse-duration.c: New file.
43512         * modules/parse-duration: New file.
43513
43514 2008-11-17  Bruno Haible  <bruno@clisp.org>
43515
43516         * tests/test-select-out.sh: Comment out the first pipe test.
43517         Reported by Simon Josefsson.
43518
43519 2008-11-17  Bruno Haible  <bruno@clisp.org>
43520
43521         * modules/getaddrinfo (Depends-on): Add servent, hostent.
43522         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
43523         gl_HOSTENT.
43524
43525 2008-11-17  Bruno Haible  <bruno@clisp.org>
43526
43527         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
43528         -lnetwork and -lnet. Needed for Haiku and BeOS.
43529
43530 2008-11-16  Bruno Haible  <bruno@clisp.org>
43531
43532         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
43533
43534 2008-11-16  Bruno Haible  <bruno@clisp.org>
43535
43536         Avoid test failure on Haiku.
43537         * tests/test-fsync.c: Include <errno.h>.
43538         (main): Don't require that fsync (0) fails.
43539
43540 2008-11-15  Bruno Haible  <bruno@clisp.org>
43541
43542         New module 'hostent'.
43543         * modules/hostent: New file.
43544         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
43545
43546 2008-11-15  Bruno Haible  <bruno@clisp.org>
43547
43548         New module 'servent'.
43549         * modules/servent: New file.
43550         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
43551
43552 2008-11-15  Bruno Haible  <bruno@clisp.org>
43553
43554         Avoid generating same test program with two different rules.
43555         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
43556         test-frexp to test-frexp-nolibm.
43557         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
43558         test-frexpl to test-frexpl-nolibm.
43559
43560 2008-11-15  Bruno Haible  <bruno@clisp.org>
43561
43562         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
43563         $(FREXPL_LIBM).
43564
43565 2008-11-15  Bruno Haible  <bruno@clisp.org>
43566
43567         * lib/netdb.in.h: Activate the definitions also when the system's
43568         <netdb.h> has 'struct addrinfo'.
43569         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
43570         EAI_OVERFLOW or AI_NUMERICSERV.
43571         * doc/posix-headers/netdb.texi: Document the problem.
43572
43573 2008-11-15  Bruno Haible  <bruno@clisp.org>
43574
43575         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
43576
43577         Make the 'sched' module work on platforms where <sched.h> exists but
43578         is incomplete (such as Haiku).
43579         * lib/sched.in.h; Include the system's <sched.h> if it exists.
43580         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
43581         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
43582         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
43583         HAVE_STRUCT_SCHED_PARAM.
43584         * modules/sched (Depends-on): Add include_next.
43585         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
43586         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
43587         * doc/posix-headers/sched.texi: Document the issue.
43588
43589 2008-11-13  Jim Meyering  <meyering@redhat.com>
43590
43591         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
43592         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
43593         test would fail due to the difference in the Report bugs to ...
43594         line.  The expected address is empty, "<>", while the actual
43595         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
43596
43597 2008-11-12  Bruno Haible  <bruno@clisp.org>
43598
43599         lstat: don't compile lstat.c on systems lacking lstat
43600         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
43601         which don't have lstat; this is handled by lib/sys_stat.in.h already.
43602         Reported by Daniel P. Berrange via Jim Meyering.
43603
43604 2008-11-12  Jim Meyering  <meyering@redhat.com>
43605
43606         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
43607
43608 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43609
43610         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
43611         instead.
43612
43613 2008-11-12  Bruno Haible  <bruno@clisp.org>
43614
43615         * lib/unicodeio.c: Include unistr.h.
43616         (utf8_wctomb): Remove function.
43617         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
43618
43619 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43620
43621         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
43622         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
43623         <bruno@clisp.org>.
43624         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
43625
43626 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43627
43628         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
43629         * doc/gnulib.texi: Add section for warnings.
43630
43631 2008-11-11  Bruno Haible  <bruno@clisp.org>
43632
43633         * lib/sockets.h: Add a comment.
43634
43635 2008-11-11  Karl Berry  <karl@gnu.org>
43636
43637         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
43638
43639 2008-11-11  Eric Blake  <ebb9@byu.net>
43640
43641         fdl.texi: avoid git symlinks
43642         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
43643
43644 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43645
43646         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
43647
43648 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43649
43650         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
43651         (gl_WARN_ADD): Substitute $2 if literal.
43652
43653 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43654
43655         * m4/warning.m4: Remove.
43656
43657 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43658
43659         * m4/warnings.m4: Almost complete rewrite. :-)
43660
43661 2008-11-10  Simon Josefsson  <simon@josefsson.org>
43662
43663         * modules/warnings: New module.
43664         * m4/warnings.m4: New file.
43665         * MODULES.html.sh: Mention warnings module.
43666         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
43667         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43668
43669 2008-11-10  Eric Blake  <ebb9@byu.net>
43670
43671         fdl.texi: make a symlink to the latest version
43672         * doc/standards.texi: Revert today's earlier change.
43673         * doc/fdl-1.2.texi: Rename from old fdl.texi...
43674         * doc/fdl.texi: ...and replace this with a symlink to the newer
43675         fdl-1.3.texi.
43676
43677 2008-11-10  Bruno Haible  <bruno@clisp.org>
43678
43679         * tests/test-select-fd.c (main): Accept the result file name as fourth
43680         argument.
43681         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
43682         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
43683
43684 2008-11-10  Bruno Haible  <bruno@clisp.org>
43685
43686         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
43687         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
43688         as autoconf-substituted macros.
43689         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
43690         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
43691         gl_NETDB_H_DEFAULTS. Set these variables.
43692         * modules/netdb (Makefile.am): Substitute these variables.
43693
43694 2008-11-10  Eric Blake  <ebb9@byu.net>
43695
43696         standards.texi: include correct file for FDL 1.3
43697         * doc/standards.texi (GNU Free Documentation License): Change
43698         include file to pull in FDL 1.3, not 1.2.
43699
43700         fdl.texi: revert accidental change to license
43701         * doc/fdl.texi: This is FDL 1.2, not 1.3.
43702
43703 2008-11-10  Bruno Haible  <bruno@clisp.org>
43704
43705         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
43706         cross-compiling guesses also when the native compile gives no result.
43707
43708 2008-11-10  Bruno Haible  <bruno@clisp.org>
43709
43710         * lib/spawni.c (__spawni): Force variable into the stack.
43711
43712 2008-11-10  Bruno Haible  <bruno@clisp.org>
43713
43714         Add support for Haiku.
43715         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
43716         glibc and BeOS, but also on Haiku.
43717         * lib/fpurge.c (fpurge): Likewise.
43718         * lib/freadable.c (freadable): Likewise.
43719         * lib/freadahead.c (freadahead): Likewise.
43720         * lib/freading.c (freading): Likewise.
43721         * lib/freadptr.c (freadptr): Likewise.
43722         * lib/freadseek.c (freadptrinc): Likewise.
43723         * lib/fseeko.c (rpl_fseeko): Likewise.
43724         * lib/fseterr.c (fseterr): Likewise.
43725         * lib/fwritable.c (fwritable): Likewise.
43726         * lib/fwriting.c (fwriting): Likewise.
43727         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
43728
43729 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43730
43731         * lib/config.charset: Treat Haiku like BeOS.
43732
43733 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43734
43735         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
43736         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
43737
43738 2008-11-08  Bruno Haible  <bruno@clisp.org>
43739
43740         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
43741         AC_CACHE_CHECK.
43742
43743 2008-11-08  Bruno Haible  <bruno@clisp.org>
43744
43745         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
43746
43747 2008-11-08  Bruno Haible  <bruno@clisp.org>
43748
43749         * tests/test-select-fd.c: New file.
43750         * tests/test-select-in.sh: New file.
43751         * tests/test-select-out.sh: New file.
43752         * tests/test-select-stdin.c: New file.
43753         * modules/select-tests (Files): Add the new files.
43754         (Depends-on): Add gettimeofday.
43755         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
43756         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
43757         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
43758
43759 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
43760             Bruno Haible  <bruno@clisp.org>
43761
43762         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
43763
43764 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
43765
43766         * build-aux/pmccabe2html: Added support for C++ source files.
43767
43768 2008-11-05  Ben Pfaff  <blp@gnu.org>
43769
43770         Fix lib/close.c build on Windows.
43771         * modules/close (Files): Add lib/w32sock.h.
43772
43773 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
43774
43775         Accept Bison's NEWS format.
43776         * build-aux/announce-gen (print_news_deltas): Tweak
43777         $re_prefix.
43778
43779 2008-11-04  Bruno Haible  <bruno@clisp.org>
43780
43781         * modules/random_r (Maintainer): Add glibc.
43782
43783 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43784
43785         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
43786         by karl@freefriends.org (Karl Berry).
43787         * doc/alloca.texi: Likewise.
43788         * doc/c-ctype.texi: Likewise.
43789         * doc/c-strcase.texi: Likewise.
43790         * doc/c-strcaseeq.texi: Likewise.
43791         * doc/c-strcasestr.texi: Likewise.
43792         * doc/c-strstr.texi: Likewise.
43793         * doc/c-strtod.texi: Likewise.
43794         * doc/c-strtold.texi: Likewise.
43795         * doc/ctime.texi: Likewise.
43796         * doc/error.texi: Likewise.
43797         * doc/fdl.texi: Likewise.
43798         * doc/gcd.texi: Likewise.
43799         * doc/getdate.texi: Likewise.
43800         * doc/gnulib-intro.texi: Likewise.
43801         * doc/gnulib-tool.texi: Likewise.
43802         * doc/gnulib.texi: Likewise.
43803         * doc/inet_ntoa.texi: Likewise.
43804         * doc/maintain.texi: Likewise.
43805         * doc/make-stds.texi: Likewise.
43806         * doc/quote.texi: Likewise.
43807         * doc/regexprops-generic.texi: Likewise.
43808         * doc/standards.texi: Likewise.
43809         * doc/verify.texi: Likewise.
43810         * doc/visibility.texi: Likewise.
43811         * doc/gnulib.texi (GNU Free Documentation License): Include
43812         fdl-1.3.texi instead of fdl.texi.
43813
43814 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43815
43816         * doc/fdl-1.3.texi: New file, from
43817         <http://www.gnu.org/licenses/fdl-1.3.texi>.
43818         * modules/fdl-1.3: Add.
43819         * MODULES.html.sh: Add fdl-1.3.
43820
43821 2008-11-03  Bruno Haible  <bruno@clisp.org>
43822
43823         Make determination of absolute name of header file work with AIX xlc.
43824         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
43825         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
43826         preprocessing.
43827         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43828         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43829
43830 2008-11-03  Simon Josefsson  <simon@josefsson.org>
43831
43832         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
43833         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
43834         <ludo@gnu.org>.
43835
43836 2008-11-02  Bruno Haible  <bruno@clisp.org>
43837
43838         Mark 'strpbrk' obsolete.
43839         * modules/strpbrk (Status, Notice): New sections.
43840         * modules/strtok_r (Depends-on): Add strpbrk.
43841
43842 2008-11-02  Bruno Haible  <bruno@clisp.org>
43843
43844         Mark 'strdup' obsolete.
43845         * modules/strdup (Status, Notice): New sections.
43846         * modules/findprog (Depends-on): Add strdup.
43847         * modules/getaddrinfo (Depends-on): Likewise.
43848         * modules/localename (Depends-on): Likewise.
43849         * modules/relocatable-lib (Depends-on): Likewise.
43850         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
43851         * modules/relocatable-prog (Depends-on): Likewise.
43852         * modules/trim (Depends-on): Likewise.
43853         * modules/unictype/gen-ctype (Depends-on): Likewise.
43854         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43855
43856 2008-11-02  Bruno Haible  <bruno@clisp.org>
43857
43858         Mark 'strcspn' obsolete.
43859         * modules/strcspn (Status, Notice): New sections.
43860
43861 2008-11-02  Bruno Haible  <bruno@clisp.org>
43862
43863         Mark 'rmdir' obsolete.
43864         * modules/rmdir (Status, Notice): New sections.
43865         * modules/clean-temp (Depends-on): Add rmdir.
43866         * modules/openat (Depends-on): Likewise.
43867
43868 2008-11-02  Bruno Haible  <bruno@clisp.org>
43869
43870         Mark 'raise' obsolete.
43871         * modules/raise (Status, Notice): New sections.
43872         (Include): Specify <signal.h>.
43873         * modules/stdio (Depends-on): Add raise.
43874         * modules/write (Depends-on): Likewise.
43875
43876 2008-11-02  Bruno Haible  <bruno@clisp.org>
43877
43878         Mark 'memset' obsolete.
43879         * modules/memset (Status, Notice): New sections.
43880
43881 2008-11-02  Bruno Haible  <bruno@clisp.org>
43882
43883         Mark 'memmove' obsolete.
43884         * modules/memmove (Status, Notice): New sections.
43885         * modules/argp (Depends-on): Add memmove.
43886         * modules/argz (Depends-on): Likewise.
43887         * modules/canonicalize (Depends-on): Likewise.
43888         * modules/canonicalize-lgpl (Depends-on): Likewise.
43889         * modules/fts (Depends-on): Likewise.
43890         * modules/getcwd (Depends-on): Likewise.
43891         * modules/human (Depends-on): Likewise.
43892         * modules/regex (Depends-on): Likewise.
43893         * modules/striconveh (Depends-on): Likewise.
43894         * modules/trim (Depends-on): Likewise.
43895         * modules/unistr/u8-move (Depends-on): Likewise.
43896         * modules/unistr/u16-move (Depends-on): Likewise.
43897         * modules/unistr/u32-move (Depends-on): Likewise.
43898
43899 2008-11-02  Bruno Haible  <bruno@clisp.org>
43900
43901         Mark 'memcpy' obsolete.
43902         * modules/memcpy (Status, Notice): New sections.
43903
43904 2008-11-02  Bruno Haible  <bruno@clisp.org>
43905
43906         Mark 'memcmp' obsolete.
43907         * modules/memcmp (Status, Notice): New sections.
43908         * modules/argmatch (Depends-on): Add memchr.
43909         * modules/backupfile (Depends-on): Likewise.
43910         * modules/c-strcasestr (Depends-on): Likewise.
43911         * modules/crypto/des (Depends-on): Likewise.
43912         * modules/csharpcomp (Depends-on): Likewise.
43913         * modules/fnmatch (Depends-on): Likewise.
43914         * modules/git-merge-changelog (Depends-on): Likewise.
43915         * modules/isnand (Depends-on): Likewise.
43916         * modules/isnand-nolibm (Depends-on): Likewise.
43917         * modules/isnanf (Depends-on): Likewise.
43918         * modules/isnanf-nolibm (Depends-on): Likewise.
43919         * modules/isnanl (Depends-on): Likewise.
43920         * modules/isnanl-nolibm (Depends-on): Likewise.
43921         * modules/mbchar (Depends-on): Likewise.
43922         * modules/memcoll (Depends-on): Likewise.
43923         * modules/quotearg (Depends-on): Likewise.
43924         * modules/regex (Depends-on): Likewise.
43925         * modules/relocatable-prog (Depends-on): Likewise.
43926         * modules/same (Depends-on): Likewise.
43927         * modules/signbit (Depends-on): Likewise.
43928         * modules/strcasestr-simple (Depends-on): Likewise.
43929         * modules/unictype/gen-ctype (Depends-on): Likewise.
43930         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43931         * modules/uniname/uniname (Depends-on): Likewise.
43932         * modules/unistr/u8-cmp (Depends-on): Likewise.
43933
43934 2008-11-02  Bruno Haible  <bruno@clisp.org>
43935
43936         Mark 'memchr' obsolete.
43937         * modules/memchr (Status, Notice): New sections.
43938         * modules/argp (Depends-on): Add memchr.
43939         * modules/base64 (Depends-on): Likewise.
43940         * modules/c-strcasestr (Depends-on): Likewise.
43941         * modules/chdir-long (Depends-on): Likewise.
43942         * modules/fnmatch (Depends-on): Likewise.
43943         * modules/getsubopt (Depends-on): Likewise.
43944         * modules/git-merge-changelog (Depends-on): Likewise.
43945         * modules/glob (Depends-on): Likewise.
43946         * modules/strcasestr-simple (Depends-on): Likewise.
43947         * modules/strnlen (Depends-on): Likewise.
43948
43949 2008-11-02  Bruno Haible  <bruno@clisp.org>
43950
43951         Mark 'atexit' obsolete.
43952         * modules/atexit (Status, Notice): New sections.
43953         * modules/chdir-long (Depends-on): Add atexit.
43954         * modules/wait-process (Depends-on): Likewise.
43955
43956 2008-11-02  Bruno Haible  <bruno@clisp.org>
43957
43958         * gnulib-tool: New option --with-obsolete.
43959         (func_usage): Document it.
43960         (func_modules_transitive_closure): Drop obsolete dependencies if
43961         incobsolete is not true.
43962         (func_import): Read and save the incobsolete variable to the cache.
43963
43964 2008-11-02  Bruno Haible  <bruno@clisp.org>
43965
43966         * modules/TEMPLATE-EXTENDED: New field 'Status'.
43967         * gnulib-tool: New option --extract-status.
43968         (func_usage): Document it.
43969         (sed_extract_prog): Recognize it.
43970         (func_get_status): New function.
43971
43972 2008-10-30  Simon Josefsson  <simon@josefsson.org>
43973
43974         * modules/sockets (License): Change from LGPL to LGPLv2+.
43975
43976 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43977
43978         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
43979
43980 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43981
43982         * MODULES.html.sh (Support for systems lacking POSIX:2001):
43983         Mention times and sys_times.
43984         * modules/sys_times, modules/sys_times-tests: New modules.
43985         * modules/times, modules/times-tests: Likewise
43986         * m4/sys_times_h.m4: New file.
43987         * lib/sys_times.in.h: Likewise
43988         * lib/times.c: Likewise.
43989         * tests/test-sys_times.c: Likewise.
43990         * tests/test-times.c: Likewise.
43991         * doc/posix-headers/sys_times.texi: Update.
43992         * doc/posix-functions/times.texi: Update.
43993
43994 2008-10-28  Jim Meyering  <meyering@redhat.com>
43995
43996         * modules/tempname (Depends-on): Add lstat.
43997
43998         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
43999
44000 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44001
44002         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44003         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44004         using idiom used elsewhere in gnulib.
44005
44006 2008-10-27  Jim Meyering  <meyering@redhat.com>
44007
44008         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44009
44010 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44011
44012         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44013         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44014         programs.
44015         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44016
44017 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44018
44019         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44020
44021 2008-10-27  Bruno Haible  <bruno@clisp.org>
44022
44023         * tests/test-lstat.c: Include <stdio.h>.
44024
44025 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44026
44027         * modules/lstat-tests: New module.
44028         * tests/test-lstat.c: New file.
44029
44030 2008-10-26  Jim Meyering  <meyering@redhat.com>
44031
44032         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44033
44034 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44035             Bruno Haible  <bruno@clisp.org>
44036
44037         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44038         * modules/configmake (Include): Add a note that the include must come
44039         after all system headers.
44040         * lib/javaversion.c: Include configmake.h after all other includes.
44041
44042 2008-10-26  Bruno Haible  <bruno@clisp.org>
44043
44044         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44045         HAVE_STRUCT_RANDOM_DATA to 1.
44046         (gl_STDLIB_H): Simplify.
44047
44048 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44049
44050         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44051         substitute HAVE_STRUCT_RANDOM_DATA.
44052         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44053         random_data.
44054         * modules/stdlib (Makefile.am): Substitute
44055         HAVE_STRUCT_RANDOM_DATA.
44056
44057 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44058
44059         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44060         * doc/gnulib-intro.texi (Copyright): Likewise.
44061
44062 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44063
44064         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44065         findings.
44066
44067 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44068             Bruno Haible  <bruno@clisp.org>
44069
44070         * lib/unistd.in.h: Include <winsock2.h>.
44071         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44072         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44073         Provide dummy declarations.
44074         (gethostname): Override.
44075         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44076         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44077         gl_PREREQ_SYS_H_WINSOCK2.
44078         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44079         * doc/posix-functions/gethostname.texi: More details.
44080
44081 2008-10-25  Bruno Haible  <bruno@clisp.org>
44082
44083         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44084         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44085         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44086
44087         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44088         here ...
44089         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44090         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44091         gl_UNISTD_H_DEFAULTS.
44092
44093 2008-10-25  Eric Blake  <ebb9@byu.net>
44094
44095         signbit: avoid spurious compiler failure
44096         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44097         declarations inside function.
44098
44099 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44100             Bruno Haible  <bruno@clisp.org>
44101
44102         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44103         * modules/random_r (Depends-on): Add stdint.
44104
44105 2008-10-24  Bruno Haible  <bruno@clisp.org>
44106
44107         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44108         Eggert.
44109         * modules/strerror (License): Likewise.
44110
44111 2008-10-24  Jim Meyering  <meyering@redhat.com>
44112
44113         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44114         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44115
44116 2008-10-24  Eric Blake  <ebb9@byu.net>
44117
44118         getgroups: fix compilation when getgroups is available
44119         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44120         but with <config.h> override of getgroups disabled.
44121
44122 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44123
44124         * doc/gnulib.texi (Header files): Add note about C++ problems.
44125         Explained by Bruno Haible <bruno@clisp.org>.
44126
44127 2008-10-23  Bruno Haible  <bruno@clisp.org>
44128
44129         Define a dummy SA_NODEFER macro on Interix.
44130         * lib/signal.in.h (SA_NODEFER): Define fallback.
44131         Reported by Aleksey Cheusov <cheusov@tut.by> via
44132         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44133
44134 2008-10-23  Bruno Haible  <bruno@clisp.org>
44135
44136         * modules/freadahead (License): Change to LGPLv2+.
44137         Suggested by Simon Josefsson.
44138
44139 2008-10-23  Jim Meyering  <meyering@redhat.com>
44140
44141         random_r: new module
44142         * modules/random_r: New file.
44143         * m4/random_r.m4: New file.
44144         * lib/random_r.c: New file, from glibc.
44145         * modules/random_r-tests: New file.
44146         * tests/test-random_r.c: New file.
44147         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44148          Declare.
44149         (RAND_MAX): Define.
44150         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44151         * modules/stdlib: Substitute them, too.
44152         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44153         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44154         * doc/glibc-functions/random_r.texi: Likewise.
44155         * doc/glibc-functions/setstate_r.texi: Likewise.
44156         * doc/glibc-functions/srandom_r.texi: Likewise.
44157         * config/srclist.txt: Mention it.
44158
44159 2008-10-23  David Lutterkort  <lutter@redhat.com>
44160
44161         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44162         link requirement
44163
44164 2008-10-23  Jim Meyering  <meyering@redhat.com>
44165
44166         selinux-h: mark parameters of stub functions as intentionally unused
44167         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44168         * lib/se-context.in.h: Likewise.
44169
44170 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44171
44172         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44173
44174 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44175
44176         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44177
44178 2008-10-22  Eric Blake  <ebb9@byu.net>
44179
44180         glthread/thread: avoid compiler warning
44181         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44182         Add unreachable abort to silence compiler.
44183
44184 2008-10-22  Eric Blake  <ebb9@byu.net>
44185
44186         netdb: also supply struct addrinfo for cygwin 1.5.x
44187         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44188         older cygwin.
44189         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44190         cygwin.
44191         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44192
44193 2008-10-22  Bruno Haible  <bruno@clisp.org>
44194
44195         * users.txt: Update entry about pspp.
44196
44197 2008-10-21  Bruno Haible  <bruno@clisp.org>
44198
44199         Simplification.
44200         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44201         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44202
44203         Simplification.
44204         * lib/ioctl.c (ioctl): Don't undefine.
44205         * lib/socket.c (socket): Don't undefine.
44206
44207         Remove unused module indicator macros.
44208         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44209         GNULIB_$1 as a C macro.
44210
44211         * doc/posix-functions/close.texi: Undo last change.
44212         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44213         Windows platforms.
44214
44215 2008-10-21  Bruno Haible  <bruno@clisp.org>
44216
44217         Add gethostname() declaration to <unistd.h>.
44218         * lib/unistd.in.h (gethostname): New declaration.
44219         * lib/gethostname.c: Include <unistd.h>.
44220         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44221         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44223         and HAVE_GETHOSTNAME.
44224         * modules/gethostname (Depends-on): Add unistd.
44225         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44226         (Include): Specify <unistd.h>.
44227         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44228         HAVE_GETHOSTNAME.
44229         * tests/test-gethostname.c: Include <unistd.h> first.
44230
44231 2008-10-21  Bruno Haible  <bruno@clisp.org>
44232
44233         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44234         * modules/select-tests (Depends-on): Likewise.
44235         Reported by Simon Josefsson.
44236
44237 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44238
44239         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44240         * lib/accept.c: New file, based on winsock.c.
44241         * lib/bind.c: New file, based on winsock.c.
44242         * lib/connect.c: New file, based on winsock.c.
44243         * lib/getpeername.c: New file, based on winsock.c.
44244         * lib/getsockname.c: New file, based on winsock.c.
44245         * lib/getsockopt.c: New file, based on winsock.c.
44246         * lib/ioctl.c: New file, based on winsock.c.
44247         * lib/listen.c: New file, based on winsock.c.
44248         * lib/recv.c: New file, based on winsock.c.
44249         * lib/recvfrom.c: New file, based on winsock.c.
44250         * lib/send.c: New file, based on winsock.c.
44251         * lib/sendto.c: New file, based on winsock.c.
44252         * lib/setsockopt.c: New file, based on winsock.c.
44253         * lib/shutdown.c: New file, based on winsock.c.
44254         * lib/socket.c: New file, based on winsock.c.
44255         * lib/w32sock.h: New file, based on winsock.c.
44256         * lib/winsock.c: Remove file.
44257         * modules/accept: Likewise.
44258         * modules/bind: Likewise.
44259         * modules/connect: Likewise.
44260         * modules/getpeername: Likewise.
44261         * modules/getsockname: Likewise.
44262         * modules/getsockopt: Likewise.
44263         * modules/ioctl: Likewise.
44264         * modules/listen: Likewise.
44265         * modules/recv: Likewise.
44266         * modules/recvfrom: Likewise.
44267         * modules/send: Likewise.
44268         * modules/sendto: Likewise.
44269         * modules/setsockopt: Likewise.
44270         * modules/shutdown: Likewise.
44271         * modules/socket: Use socket.c instead of winsock.c.
44272         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
44273         * doc/posix-functions/accept.texi: Doc fix.
44274         * doc/posix-functions/bind.texi: Doc fix.
44275         * doc/posix-functions/close.texi: Doc fix.
44276         * doc/posix-functions/connect.texi: Doc fix.
44277         * doc/posix-functions/getpeername.texi: Doc fix.
44278         * doc/posix-functions/getsockname.texi: Doc fix.
44279         * doc/posix-functions/getsockopt.texi: Doc fix.
44280         * doc/posix-functions/ioctl.texi: Doc fix.
44281         * doc/posix-functions/listen.texi: Doc fix.
44282         * doc/posix-functions/recv.texi: Doc fix.
44283         * doc/posix-functions/recvfrom.texi: Doc fix.
44284         * doc/posix-functions/send.texi: Doc fix.
44285         * doc/posix-functions/sendto.texi: Doc fix.
44286         * doc/posix-functions/setsockopt.texi: Doc fix.
44287         * doc/posix-functions/shutdown.texi: Doc fix.
44288         * doc/posix-functions/socket.texi: Doc fix.
44289
44290 2008-10-20  Bruno Haible  <bruno@clisp.org>
44291
44292         Take into account the role of SIGABRT_COMPAT on Windows 2008.
44293         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
44294         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
44295         as an alias for SIGABRT.
44296         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
44297         (sigaction): Map it to SIGABRT.
44298         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
44299
44300 2008-10-20  Bruno Haible  <bruno@clisp.org>
44301
44302         * lib/fts.c: Don't include lstat.h.
44303         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
44304
44305         Move the lstat() declaration to <sys/stat.h>.
44306         * lib/lstat.h: Remove file.
44307         * lib/sys_stat.in.h: Add special invocation convention.
44308         (lstat): New declaration.
44309         * lib/lstat.c (orig_lstat): New function.
44310         (rpl_lstat): Use orig_lstat instead of lstat.
44311         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
44312         AC_C_INLINE. Set REPLACE_LSTAT.
44313         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
44314         and REPLACE_LSTAT.
44315         * modules/lstat (Files): Remove lib/lstat.h.
44316         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44317         (Include): Specify <sys/stat.h> instead of lstat.h.
44318         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
44319         REPLACE_LSTAT.
44320         * NEWS: Mention the change.
44321
44322 2008-10-20  Bruno Haible  <bruno@clisp.org>
44323
44324         * modules/posix_spawn-tests: New file.
44325         * tests/test-posix_spawn3.c: New file.
44326
44327 2008-10-20  Bruno Haible  <bruno@clisp.org>
44328
44329         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
44330         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44331         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
44332         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44333         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
44334
44335 2008-10-20  Bruno Haible  <bruno@clisp.org>
44336
44337         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
44338         of posix_spawn on AIX 5.3.
44339
44340 2008-10-20  Bruno Haible  <bruno@clisp.org>
44341
44342         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
44343
44344 2008-10-20  Bruno Haible  <bruno@clisp.org>
44345
44346         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44347         of AC_LANG_PROGRAM.
44348
44349 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44350
44351         * lib/netdb.in.h: Don't define GNU specific constants until they
44352         are supported or needed.  Reported by Bruno Haible
44353         <bruno@clisp.org>.
44354
44355 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44356
44357         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44358
44359 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44360
44361         * lib/getaddrinfo.h: Remove file.
44362         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44363         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44364         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44365         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44366         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44367         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44368         * tests/test-getaddrinfo.c: Likewise.
44369         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44370         * NEWS: Mention change.
44371
44372 2008-10-19  Bruno Haible  <bruno@clisp.org>
44373
44374         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
44375
44376 2008-10-19  Bruno Haible  <bruno@clisp.org>
44377
44378         * lib/wait-process.c: Include simply <sys/wait.h>.
44379         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
44380         WIFSTOPPED): Remove fallback definitions.
44381         * modules/wait-process (Depends-on): Add sys_wait.
44382
44383         New module 'sys_wait'.
44384         * modules/sys_wait: New file.
44385         * lib/sys_wait.in.h: New file, partially copied from
44386         lib/wait-process.c.
44387         * m4/sys_wait_h.m4: New file.
44388         * doc/posix-headers/sys_wait.texi: Mention the new module.
44389
44390 2008-10-19  Bruno Haible  <bruno@clisp.org>
44391
44392         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
44393
44394 2008-10-19  Bruno Haible  <bruno@clisp.org>
44395
44396         Assume that waitpid() fills an 'int' status, not a 'union wait'.
44397         * lib/wait-process.c (WAIT_T): Remove type.
44398         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
44399         (wait_subprocess): Update.
44400
44401 2008-10-19  Bruno Haible  <bruno@clisp.org>
44402
44403         New module 'atoll'.
44404         * modules/atoll: New file.
44405         * lib/stdlib.in.h (atoll): New declaration.
44406         * lib/atoll.c: New file, from glibc with modifications.
44407         * m4/atoll.m4: New file.
44408         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
44409         HAVE_ATOLL.
44410         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
44411         * doc/posix-functions/atoll.texi: Mention the new module.
44412
44413 2008-10-19  Bruno Haible  <bruno@clisp.org>
44414
44415         Add strtoull() declaration to <stdlib.h>.
44416         * lib/stdlib.in.h (strtoull): New declaration.
44417         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44418         Set HAVE_STRTOULL.
44419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
44420         HAVE_STRTOULL.
44421         * modules/strtoull (Depends-on): Add stdlib.
44422         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44423         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44424         HAVE_STRTOULL.
44425
44426 2008-10-19  Bruno Haible  <bruno@clisp.org>
44427
44428         Add strtoll() declaration to <stdlib.h>.
44429         * lib/stdlib.in.h (strtoll): New declaration.
44430         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44431         Set HAVE_STRTOLL.
44432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
44433         HAVE_STRTOLL.
44434         * modules/strtoll (Depends-on): Add stdlib.
44435         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44436         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
44437
44438 2008-10-19  Bruno Haible  <bruno@clisp.org>
44439
44440         * modules/bcopy (Depends-on): Add strings.
44441         (Include): Specify <strings.h>.
44442
44443 2008-10-19  Bruno Haible  <bruno@clisp.org>
44444
44445         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
44446
44447 2008-10-19  Bruno Haible  <bruno@clisp.org>
44448
44449         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
44450         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
44451         mingw.
44452
44453 2008-10-19  Bruno Haible  <bruno@clisp.org>
44454
44455         * lib/atanl.c: Don't include isnanl.h.
44456         * lib/cosl.c: Likewise.
44457         * lib/ldexpl.c: Likewise.
44458         * lib/logl.c: Likewise.
44459         * lib/sinl.c: Likewise.
44460         * lib/sqrtl.c: Likewise.
44461         * lib/tanl.c: Likewise.
44462
44463         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
44464         * lib/isnanf.h: Remove file.
44465         * lib/isnand.h: Remove file.
44466         * lib/isnanl.h: Remove file.
44467         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
44468         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
44469         macros.
44470         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
44471         HAVE_ISNANF, don't define it as a C macro.
44472         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
44473         HAVE_ISNAND, don't define it as a C macro.
44474         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
44475         HAVE_ISNANL, don't define it as a C macro.
44476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
44477         HAVE_ISNAN[FDL].
44478         * modules/isnanf (Files): Remove lib/isnanf.h.
44479         (Depends-on): Add math.
44480         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44481         (Include): Specify <math.h> instead of isnanf.h.
44482         * modules/isnand (Files): Remove lib/isnand.h.
44483         (Depends-on): Add math.
44484         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44485         (Include): Specify <math.h> instead of isnand.h.
44486         * modules/isnanl (Files): Remove lib/isnanl.h.
44487         (Depends-on): Add math.
44488         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44489         (Include): Specify <math.h> instead of isnanl.h.
44490         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
44491         HAVE_ISNAN[FDL].
44492         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
44493         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
44494         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
44495         * NEWS: Mention the change.
44496
44497 2008-10-18  Bruno Haible  <bruno@clisp.org>
44498
44499         Add getusershell(), setusershell(), endusershell() declarations to
44500         <unistd.h>.
44501         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
44502         declarations.
44503         * lib/getusershell.c: Include unistd.h.
44504         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
44505         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44506         HAVE_GETUSERSHELL.
44507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
44508         and HAVE_GETUSERSHELL.
44509         * modules/getusershell (Depends-on): Add unistd, extensions.
44510         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44511         (Include): Specify <unistd.h>.
44512         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
44513         HAVE_GETUSERSHELL.
44514
44515 2008-10-18  Bruno Haible  <bruno@clisp.org>
44516
44517         Add a getloadavg() declaration to <stdlib.h>.
44518         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
44519         getloadavg declaration.
44520         (getloadavg): New declaration.
44521         * lib/getloadavg.c: Include <stdlib.h> first.
44522         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
44523         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
44524         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
44525         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
44526         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44527         * modules/getloadavg (Depends-on): Add stdlib, extensions.
44528         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44529         (Include): Specify <stdlib.h>.
44530         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
44531         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44532
44533 2008-10-18  Bruno Haible  <bruno@clisp.org>
44534
44535         * lib/dirchownmod.c: Don't include lchmod.h.
44536
44537         Move the lchmod() declaration to <sys/stat.h>.
44538         * lib/lchmod.h: Remove file.
44539         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
44540         (lchmod): New declaration, moved here from lib/lchown.h.
44541         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
44542         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
44543         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
44544         and HAVE_LCHMOD.
44545         * modules/lchmod (Files): Remove lib/lchmod.h.
44546         (Depends-on): Add sys_stat, extensions.
44547         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44548         (Include): Specify <sys/stat.h> instead of lchmod.h.
44549         * modules/sys_stat (Depends-on): Add link-warning.
44550         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
44551         definition of GL_LINK_WARNING.
44552         * NEWS: Mention the change.
44553
44554 2008-10-18  Bruno Haible  <bruno@clisp.org>
44555
44556         * lib/fchdir.c: Don't include dirfd.h.
44557         * lib/fts.c: Likewise.
44558         * lib/getcwd.c: Likewise.
44559         * lib/glob.c: Likewise.
44560
44561         Move the dirfd() declaration to <dirent.h>.
44562         * lib/dirfd.h: Remove file.
44563         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
44564         (dirfd): New declaration.
44565         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
44566         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
44567         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
44568         HAVE_DECL_DIRFD.
44569         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
44570         HAVE_DECL_DIRFD.
44571         * modules/dirfd (Files): Remove lib/dirfd.h.
44572         (Depends-on): Add dirent, extensions.
44573         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
44574         (Include): Specify <dirent.h> instead of dirfd.h.
44575         * modules/dirent (Depends-on): Add link-warning.
44576         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
44577         definition of GL_LINK_WARNING.
44578         * NEWS: Mention the change.
44579
44580 2008-10-18  Bruno Haible  <bruno@clisp.org>
44581
44582         Move the euidaccess() declaration to <unistd.h>.
44583         * lib/euidaccess.h: Remove file.
44584         * lib/unistd.in.h (euidaccess): New declaration.
44585         * lib/euidaccess.c: Don't include euidaccess.h.
44586         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
44587         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
44588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
44589         and HAVE_EUIDACCESS.
44590         * modules/euidaccess (Files): Remove lib/euidaccess.h.
44591         (Depends-on): Add unistd.
44592         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44593         (Include): Specify <unistd.h> instead of euidaccess.h.
44594         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
44595         HAVE_EUIDACCESS.
44596         * NEWS: Mention the change.
44597
44598 2008-10-18  Bruno Haible  <bruno@clisp.org>
44599
44600         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
44601
44602         Move the getdomainname() declaration to <unistd.h>.
44603         * lib/getdomainname.h: Remove file.
44604         * lib/unistd.in.h (getdomainname): New declaration.
44605         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
44606         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
44607         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44608         HAVE_GETDOMAINNAME.
44609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44610         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
44611         * modules/getdomainname (Files): Remove lib/getdomainname.h.
44612         (Depends-on): Add unistd, extensions.
44613         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44614         (Includes): Specify <unistd.h> instead of getdomainname.h.
44615         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
44616         HAVE_GETDOMAINNAME.
44617         * NEWS: Mention the change.
44618
44619 2008-10-18  Bruno Haible  <bruno@clisp.org>
44620
44621         * modules/dirent: New file.
44622         * m4/dirent_h.m4: New file.
44623         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
44624         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
44625         * modules/fchdir (Files): Remove lib/dirent.in.h.
44626         (Depends-on): Add dirent.
44627         (Makefile.am): Move rules to modules/dirent.
44628         * doc/posix-headers/dirent.texi: Mention the new module.
44629
44630 2008-10-18  Bruno Haible  <bruno@clisp.org>
44631
44632         Avoid -Wunused-parameter warnings in public gnulib header files.
44633         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
44634         macro.
44635         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
44636
44637 2008-10-18  Bruno Haible  <bruno@clisp.org>
44638
44639         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
44640         * doc/glibc-functions/error.texi: Mention the module 'error'.
44641         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
44642         * doc/glibc-functions/getdomainname.texi: Mention the module
44643         'getdomainname'.
44644         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
44645         * doc/glibc-functions/getpagesize.texi: Mention the module
44646         'getpagesize'.
44647         * doc/glibc-functions/getusershell.texi: Mention the module
44648         'getusershell'.
44649         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
44650         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
44651         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
44652         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
44653         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
44654         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
44655         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
44656         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
44657         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
44658         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
44659         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
44660         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
44661         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
44662         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
44663
44664 2008-10-17  Bruno Haible  <bruno@clisp.org>
44665
44666         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
44667         HP-UX and IRIX, use -0.0L.
44668         * tests/test-ceill.c (minus_zero): Likewise.
44669         * tests/test-floorl.c (minus_zero): Likewise.
44670         * tests/test-frexpl.c (minus_zero): Likewise.
44671         * tests/test-isnan.c (minus_zerol): Likewise.
44672         * tests/test-isnanl.h (minus_zero): Likewise.
44673         * tests/test-ldexpl.c (minus_zero): Likewise.
44674         * tests/test-roundl.c (minus_zero): Likewise.
44675         * tests/test-signbit.c (minus_zerol): Likewise.
44676         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44677         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44678         * tests/test-truncl.c (minus_zero): Likewise.
44679         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44680         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44681         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
44682         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44683
44684 2008-10-17  Bruno Haible  <bruno@clisp.org>
44685
44686         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
44687         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
44688         that it gets activated only for gcc >= 3.0.
44689         * lib/dirent.in.h: Likewise.
44690         * lib/errno.in.h: Likewise.
44691         * lib/fcntl.in.h: Likewise.
44692         * lib/float.in.h: Likewise.
44693         * lib/iconv.in.h: Likewise.
44694         * lib/inttypes.in.h: Likewise.
44695         * lib/locale.in.h: Likewise.
44696         * lib/math.in.h: Likewise.
44697         * lib/netdb.in.h: Likewise.
44698         * lib/netinet_in.in.h: Likewise.
44699         * lib/search.in.h: Likewise.
44700         * lib/signal.in.h: Likewise.
44701         * lib/spawn.in.h: Likewise.
44702         * lib/stdarg.in.h: Likewise.
44703         * lib/stdint.in.h: Likewise.
44704         * lib/stdio.in.h: Likewise.
44705         * lib/stdlib.in.h: Likewise.
44706         * lib/string.in.h: Likewise.
44707         * lib/strings.in.h: Likewise.
44708         * lib/sys_file.in.h: Likewise.
44709         * lib/sys_ioctl.in.h: Likewise.
44710         * lib/sys_select.in.h: Likewise.
44711         * lib/sys_socket.in.h: Likewise.
44712         * lib/sys_stat.in.h: Likewise.
44713         * lib/sys_time.in.h: Likewise.
44714         * lib/sysexits.in.h: Likewise.
44715         * lib/time.in.h: Likewise.
44716         * lib/unistd.in.h: Likewise.
44717         * lib/wchar.in.h: Likewise.
44718         * lib/wctype.in.h: Likewise.
44719         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44720
44721 2008-10-17  Jim Meyering  <meyering@redhat.com>
44722
44723         ignore-value: don't depend on inline module
44724         * modules/ignore-value (Depends-on): Remove 'inline'.
44725         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
44726         Suggestion from Bruno Haible.
44727
44728 2008-10-17  Bruno Haible  <bruno@clisp.org>
44729
44730         New implementation of condition variables for Win32.
44731         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
44732         (gl_linked_waitqueue_t): New type.
44733         (gl_cond_t): Use it.
44734         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
44735         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
44736         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
44737         (glthread_cond_init_func, glthread_cond_wait_func,
44738         glthread_cond_timedwait_func, glthread_cond_signal_func,
44739         glthread_cond_broadcast_func, glthread_cond_destroy_func):
44740         Reimplemented on the basis of gl_linked_waitqueue_t.
44741         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
44742         gl_waitqueue_t.
44743         (gl_rwlock_t): Update.
44744         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
44745
44746 2008-10-17  Simon Josefsson  <simon@josefsson.org>
44747
44748         * modules/recvfrom (Depends-on): Add dependency on getpeername.
44749         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44750
44751 2008-10-17  Jim Meyering  <meyering@redhat.com>
44752
44753         ignore-value: new module
44754         * modules/ignore-value: New file.
44755         * lib/ignore-value.h: New file.
44756         * MODULES.html.sh (Compiler warning management): New section,
44757         just for this module.  More to come.
44758
44759 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44760
44761         open-safer.c: avoid 'signed and unsigned in conditional...' warning
44762         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
44763         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
44764
44765 2008-10-16  Jim Meyering  <meyering@redhat.com>
44766
44767         openat-die.c: avoid 'no previous prototype' warning
44768         * lib/openat-die.c: Include "openat.h".
44769         Reported by Reuben Thomas <rrt@sc3d.org>.
44770
44771 2008-10-16  Simon Josefsson  <simon@josefsson.org>
44772
44773         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
44774         * lib/netdb.in.h: Fix typo.
44775         Reported by Bruno Haible  <bruno@clisp.org>
44776
44777         * lib/netdb.in.h: Include sys/socket.h for platforms without
44778         netdb.h, to get structures like hostent on MinGW.
44779         * modules/netdb (Depends-on): Add sys_socket.
44780
44781 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44782
44783         * modules/netdb, modules/netdb-tests: New file.
44784         * m4/netdb_h.m4: New file.
44785         * lib/netdb.in.h: Add, currently just an empty file pending
44786         definitions.
44787         * tests/test-netdb.c: New file.
44788         * doc/posix-headers/netdb.texi: Mention that we replace it if
44789         needed.
44790         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44791         netdb.
44792
44793 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44794
44795         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
44796         with code.
44797
44798 2008-10-13  Bruno Haible  <bruno@clisp.org>
44799
44800         * lib/glthread/cond.c (glthread_cond_wait_func,
44801         glthread_cond_timedwait_func): Add a comment.
44802
44803 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44804
44805         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
44806         * tests/test-select.c: Likewise,
44807
44808 2008-10-13  Bruno Haible  <bruno@clisp.org>
44809
44810         * lib/glthread/cond.c (glthread_cond_wait_func,
44811         glthread_cond_timedwait_func): Fix variable name.
44812         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44813
44814 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
44815
44816         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
44817         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
44818         struct sockaddr.sa_len.
44819         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
44820
44821 2008-10-13  Simon Josefsson  <simon@josefsson.org>
44822
44823         * build-aux/pmccabe2html: Add css and css_url parameters.
44824
44825 2008-10-12  Bruno Haible  <bruno@clisp.org>
44826
44827         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
44828         calling aclx_get.
44829         Reported by Rainer Tammer <tammer@tammer.net>.
44830
44831 2008-10-12  Bruno Haible  <bruno@clisp.org>
44832
44833         Use msvcrt aware primitives for creation/termination of Win32 threads.
44834         * lib/glthread/thread.c: Include <process.h>.
44835         (glthread_create_func): Use _beginthreadex instead of CreateThread.
44836         (wrapper_func): Update signature.
44837         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
44838
44839 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44840             Bruno Haible  <bruno@clisp.org>
44841
44842         Provide a Win32 implementation of the 'cond' module.
44843         * lib/glthread/cond.h [USE_WIN32]: New implementation.
44844         * lib/glthread/cond.c (glthread_cond_init_func,
44845         glthread_cond_wait_func, glthread_cond_timedwait_func,
44846         glthread_cond_signal_func, glthread_cond_broadcast_func,
44847         glthread_cond_destroy_func) [USE_WIN32]: New functions.
44848         * modules/cond (Dependencies): Add gettimeofday.
44849
44850 2008-10-11  Bruno Haible  <bruno@clisp.org>
44851
44852         Make sleep work on older versions of mingw.
44853         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
44854         only whether it exists.
44855         * doc/posix-functions/sleep.texi: Mention the problem with older
44856         versions of mingw.
44857
44858 2008-10-11  Bruno Haible  <bruno@clisp.org>
44859
44860         New module 'shutdown'.
44861         * modules/shutdown: New file.
44862         * lib/sys_socket.in.h (shutdown): New declaration.
44863         * lib/winsock.c (shutdown): New function.
44864         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44865         GNULIB_SHUTDOWN.
44866         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
44867         * doc/posix-functions/shutdown.texi: Document the new module.
44868
44869 2008-10-11  Jim Meyering  <meyering@redhat.com>
44870
44871         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
44872
44873 2008-10-11  Bruno Haible  <bruno@clisp.org>
44874
44875         New module 'fclose'.
44876         * modules/fclose: New file.
44877         * lib/stdio.in.h (fclose): New declaration.
44878         * lib/fclose.c: New file.
44879         * m4/fclose.m4: New file.
44880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
44881         REPLACE_FCLOSE.
44882         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
44883         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
44884         REPLACE_FCLOSE.
44885         * modules/close (Depends-on): fclose.
44886         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
44887
44888 2008-10-11  Bruno Haible  <bruno@clisp.org>
44889
44890         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
44891         set errno and don't call _close.
44892
44893 2008-10-10  Bruno Haible  <bruno@clisp.org>
44894
44895         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
44896         ACL, not afterwards. Fixes test failure on Cygwin.
44897
44898 2008-10-09  Ben Pfaff  <blp@gnu.org>
44899
44900         * build-aux/announce-gen: Fix gnulib version related part of usage
44901         message.  Die with a useful error message if no tarballs are
44902         found.
44903
44904 2008-10-10  Jim Meyering  <meyering@redhat.com>
44905
44906         bootstrap: use git's --depth=N option only if it's supported
44907         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
44908         recognize the --depth option.  Reported by Pádraig Brady.
44909
44910 2008-10-09  Bruno Haible  <bruno@clisp.org>
44911
44912         New module 'ioctl'.
44913         * modules/ioctl: New file.
44914         * lib/sys_socket.in.h (ioctl): Remove declaration.
44915         * lib/winsock.c: Include <sys/ioctl.h>.
44916         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
44917         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44918         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
44919         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
44920         * doc/posix-functions/ioctl.texi: Mention the new module.
44921
44922 2008-10-09  Bruno Haible  <bruno@clisp.org>
44923
44924         New module 'sys_ioctl'.
44925         * lib/sys_ioctl.in.h: New file.
44926         * m4/sys_ioctl_h.m4: New file.
44927         * modules/sys_ioctl: New file.
44928         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
44929
44930 2008-10-09  Bruno Haible  <bruno@clisp.org>
44931
44932         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
44933         * lib/winsock.c: Include <stdarg.h>.
44934         (rpl_ioctl): Change to second argument 'int' and then varargs.
44935
44936 2008-10-09  Bruno Haible  <bruno@clisp.org>
44937
44938         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
44939         when the sys_socket module is present and the system has <winsock2.h>.
44940
44941 2008-10-09  Bruno Haible  <bruno@clisp.org>
44942
44943         * doc/posix-functions/close.texi: Mention module 'close' instead of
44944         module 'sys_socket'.
44945
44946 2008-10-09  Bruno Haible  <bruno@clisp.org>
44947
44948         * doc/glibc-headers/sys_ioctl.texi: New file.
44949         * doc/gnulib.texi: Include it.
44950
44951 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44952             Bruno Haible  <bruno@clisp.org>
44953
44954         Combine the two replacements of 'close'.
44955         * lib/sys_socket.in.h (close): Define to a reminder to include
44956         <unistd.h>.
44957         (_gl_close_fd_maybe_socket): New declaration.
44958         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
44959         * lib/winsock.c (close): Remove undefinition.
44960         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
44961         needed for the gnulib module 'close'.
44962         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
44963         define to an error symbol or to a warning, if suitable.
44964         * lib/close.c: Include <sys/socket.h>.
44965         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
44966         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
44967         UNISTD_H_HAVE_WINSOCK2_H.
44968         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
44969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44970         UNISTD_H_HAVE_WINSOCK2_H.
44971         * modules/sys_socket (Files): Add m4/unistd_h.m4.
44972         (configure.ac): Set a module indicator.
44973         (Makefile.am): Substitute GNULIB_CLOSE.
44974         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
44975         * modules/poll-tests (Depends-on): Add close.
44976         * modules/select-tests (Depends-on): Likewise.
44977
44978 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44979             Bruno Haible  <bruno@clisp.org>
44980
44981         New module 'close'.
44982         * modules/close: New file.
44983         * lib/unistd.in.h (close): Move declaration out of the
44984         FCHDIR_REPLACEMENT scope.
44985         (_gl_unregister_fd): New declaration.
44986         * lib/close.c: New file.
44987         * lib/fchdir.c (rpl_close): Remove function.
44988         * m4/close.m4: New file.
44989         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44990         close.
44991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
44992         REPLACE_CLOSE.
44993         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
44994         REPLACE_CLOSE.
44995         * modules/fchdir (Depends-on): Add close.
44996
44997 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44998             Bruno Haible  <bruno@clisp.org>
44999
45000         * lib/fcntl.in.h (open): Simplify conditionals.
45001         (_gl_register_fd): New declaration.
45002         * lib/fchdir.c (rpl_open): Remove function.
45003         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45004         also.
45005         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45006         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45007         open.
45008
45009 2008-10-09  Jim Meyering  <meyering@redhat.com>
45010
45011         GNUmakefile: use the more name-space-friendly "_version"
45012         * top/GNUmakefile (_dummy): Update.
45013         (_version): Rename from "version".
45014
45015 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45016             Bruno Haible  <bruno@clisp.org>
45017
45018         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45019         rpl_close.
45020         (_gl_register_fd): New function, extracted from rpl_open.
45021         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45022         (rpl_open, rpl_opendir): Use _gl_register_fd.
45023
45024 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45025
45026         Fix organization of 'open' replacement.
45027         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45028         (gl_FUNC_OPEN): Use it.
45029         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45030
45031 2008-10-08  Bruno Haible  <bruno@clisp.org>
45032
45033         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45034
45035 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45036
45037         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45038         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45039         listen).
45040
45041 2008-10-08  Eric Blake  <ebb9@byu.net>
45042
45043         GNUmakefile: add 'make version' target
45044         * top/GNUmakefile (_curr-ver): Split version update rules...
45045         (version): ...into a target.
45046
45047 2008-10-07  Bruno Haible  <bruno@clisp.org>
45048
45049         Use a more portable replacement expression for -0.0L.
45050         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45051         instead of -0.0L. Fix m4 quotation.
45052
45053         * tests/test-signbit.c: Include <float.h>.
45054         (minus_zero): New variable.
45055         (test_signbitl): Use minus_zero instead of -zero.
45056         * modules/signbit-tests (Depends-on): Add float.
45057
45058         * tests/test-ceill.c: Include <float.h>.
45059         (zero): Remove variable.
45060         (minus_zero): New variable.
45061         (main): Use minus_zero instead of -zero.
45062         * modules/ceill-tests (Depends-on): Add float.
45063
45064         * tests/test-floorl.c: Include <float.h>.
45065         (zero): Remove variable.
45066         (minus_zero): New variable.
45067         (main): Use minus_zero instead of -zero.
45068         * modules/floorl-tests (Depends-on): Add float.
45069
45070         * tests/test-roundl.c: Include <float.h>.
45071         (zero): Remove variable.
45072         (minus_zero): New variable.
45073         (main): Use minus_zero instead of -zero.
45074         * modules/roundl-tests (Depends-on): Add float.
45075
45076         * tests/test-truncl.c: Include <float.h>.
45077         (zero): Remove variable.
45078         (minus_zero): New variable.
45079         (main): Use minus_zero instead of -zero.
45080         * modules/truncl-tests (Depends-on): Add float.
45081
45082         * tests/test-frexpl.c (zero): Remove variable.
45083         (minus_zero): New variable.
45084         (main): Use minus_zero instead of -zero.
45085         * modules/frexpl-tests (Depends-on): Add float.
45086
45087         * tests/test-isnan.c (zerol): Remove variable.
45088         (minus_zerol): New variable.
45089         (test_long_double): Use minus_zerol instead of -zerol.
45090         * modules/isnan-tests (Depends-on): Add float.
45091
45092         * tests/test-isnanl.h (zero): Remove variable.
45093         (minus_zero): New variable.
45094         (main): Use minus_zero instead of -zero.
45095         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45096         * modules/isnanl-tests (Depends-on): Add float.
45097
45098         * tests/test-ldexpl.c (zero): Remove variable.
45099         (minus_zero): New variable.
45100         (main): Use minus_zero instead of -zero.
45101         * modules/ldexpl-tests (Depends-on): Add float.
45102
45103         * tests/test-snprintf-posix.h (zerol): Remove variable.
45104         (minus_zerol): New variable.
45105         (test_function): Use minus_zerol instead of -zerol.
45106         * modules/snprintf-posix-tests (Depends-on): Add float.
45107         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45108
45109         * tests/test-sprintf-posix.h (zerol): Remove variable.
45110         (minus_zerol): New variable.
45111         (test_function): Use minus_zerol instead of -zerol.
45112         * modules/sprintf-posix-tests (Depends-on): Add float.
45113         * modules/vsprintf-posix-tests (Depends-on): Add float.
45114
45115         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45116         (minus_zerol): New variable.
45117         (test_function): Use minus_zerol instead of -zerol.
45118         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45119
45120         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45121         (minus_zerol): New variable.
45122         (test_function): Use minus_zerol instead of -zerol.
45123         * modules/vasprintf-posix-tests (Depends-on): Add float.
45124
45125 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45126
45127         * MODULES.html.sh (Support for building documentation): Mention
45128         pmccabe2html.  Sort entries.
45129
45130         Add pmccabe2html module, from gnupdf.
45131         * build-aux/pmccabe.css: New file.
45132         * build-aux/pmccabe2html: New file.
45133         * m4/pmccabe2html.m4: New file.
45134         * modules/pmccabe2html: New file.
45135
45136 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45137
45138         flock: new module
45139         * MODULES.html.sh: Add to list of modules.
45140         * lib/flock.c: flock implementation for Windows and Unix systems
45141         which have fcntl.
45142         * doc/glibc-functions/flock.texi: Update documentation.
45143         * lib/sys_file.in.h: <sys/file.h> header file.
45144         * m4/flock.m4: M4 macros.
45145         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45146         * modules/flock: flock module.
45147         * modules/flock-tests: flock tests module.
45148         * modules/sys_file: sys/file.h module.
45149         * tests/test-flock.c: test suite for flock.
45150
45151 2008-10-06  Jim Meyering  <meyering@redhat.com>
45152
45153         bootstrap: check for LT_INIT more portably still ;-)
45154         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45155         Spotted by Bruno Haible.
45156
45157 2008-10-06  Eric Blake  <ebb9@byu.net>
45158
45159         test-signbit: avoid tripping Irix cc bug on -0.0L
45160         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45161         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45162         entire testsuite consistent and avoids an Irix 6.2 bug.
45163
45164 2008-10-05  Bruno Haible  <bruno@clisp.org>
45165             Jim Meyering  <jim@meyering.net>
45166
45167         Add an option for ignoring EPIPE during close_stdout.
45168         * lib/closeout.h: Include <stdbool.h>.
45169         (close_stdout_set_ignore_EPIPE): New declaration.
45170         * lib/closeout.c: Include <stdbool.h>.
45171         (ignore_EPIPE): New variable.
45172         (close_stdout_set_ignore_EPIPE): New function.
45173         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45174         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45175         failure.
45176         * modules/closeout (Depends-on): Add stdbool.
45177
45178 2008-10-05  Bruno Haible  <bruno@clisp.org>
45179
45180         * modules/accept: New file.
45181         * modules/bind: New file.
45182         * modules/connect: New file.
45183         * modules/getpeername: New file.
45184         * modules/getsockname: New file.
45185         * modules/getsockopt: New file.
45186         * modules/listen: New file.
45187         * modules/recv: New file.
45188         * modules/recvfrom: New file.
45189         * modules/send: New file.
45190         * modules/sendto: New file.
45191         * modules/setsockopt: New file.
45192         * modules/socket: New file.
45193         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45194         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45195         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45196         the particular module is requested. Add a link warning when the
45197         particular module is not requested.
45198         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45199         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45200         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45201         the particular module is requested.
45202         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45203         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45204         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45205         * modules/sys_socket (Depends-on): Add link-warning.
45206         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45207         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45208         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45209         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45210         GL_LINK_WARNING.
45211         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45212         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45213         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45214         * doc/posix-functions/getpeername.texi: Mention the new module
45215         'getpeername'.
45216         * doc/posix-functions/getsockname.texi: Mention the new module
45217         'getsockname'.
45218         * doc/posix-functions/getsockopt.texi: Mention the new module
45219         'getsockopt'.
45220         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45221         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45222         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45223         * doc/posix-functions/send.texi: Mention the new module 'send'.
45224         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45225         * doc/posix-functions/setsockopt.texi: Mention the new module
45226         'setsockopt'.
45227         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45228         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45229         listen, connect, accept.
45230         * modules/select-tests (Depends-on): Likewise.
45231
45232 2008-10-05  Bruno Haible  <bruno@clisp.org>
45233
45234         * lib/winsock.c (strerror): Remove unused #undef.
45235         (rpl_close): Remove unused local variable.
45236
45237         * modules/sys_socket (Depends-on); Add errno.
45238
45239 2008-10-05  Bruno Haible  <bruno@clisp.org>
45240
45241         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45242         (select): Add a link warning when the 'select' module is not used.
45243         * modules/sys_select (Depends-on): Add link-warning.
45244         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
45245         Suggested by Paolo Bonzini.
45246
45247 2008-10-05  Jim Meyering  <meyering@redhat.com>
45248
45249         bootstrap: check for LT_INIT more portably
45250         * build-aux/bootstrap: Avoid using grep -E, since it's not
45251         portable enough.  Suggestion from Bruno Haible.
45252
45253 2008-10-05  Bruno Haible  <bruno@clisp.org>
45254
45255         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
45256         as being fixed by gnulib.
45257
45258 2008-10-05  Bruno Haible  <bruno@clisp.org>
45259
45260         * modules/select-tests: New file, mostly copied from
45261         modules/sys_select-tests.
45262         * tests/test-select.c: New file, mostly copied from
45263         tests/test-sys_select.c.
45264         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
45265         * modules/sys_select-tests (Depends-on): Remove all dependencies.
45266         (Makefile.am): Remove test_sys_select_LDADD.
45267
45268         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
45269         to an undefined symbol, for an error message.
45270         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
45271         (gl_SYS_SELECT_H_DEFAULTS): New macro.
45272         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
45273         winsock-select.c here.
45274         * modules/sys_select (Files): Remove lib/winsock-select.c.
45275         (Depends-on): Remove alloca.
45276         (Makefile.am): Substitute GNULIB_SELECT.
45277         * modules/select: New file.
45278         * doc/posix-functions/select.texi: Update.
45279
45280 2008-10-05  Bruno Haible  <bruno@clisp.org>
45281
45282         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
45283         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
45284         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
45285         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
45286         getdtablesize.
45287         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45288         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45289
45290 2008-10-05  Bruno Haible  <bruno@clisp.org>
45291
45292         * modules/getdtablesize-tests: New file.
45293         * tests/test-getdtablesize.c: New file.
45294
45295         New module 'getdtablesize'.
45296         * lib/unistd.in.h (getdtablesize): New declaration.
45297         * lib/getdtablesize.c: New file.
45298         * m4/getdtablesize.m4: New file.
45299         * modules/getdtablesize: New file.
45300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45301         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
45302         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
45303         HAVE_GETDTABLESIZE.
45304         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
45305
45306 2008-10-05  Bruno Haible  <bruno@clisp.org>
45307
45308         * modules/sched (Makefile.am): Fix typo.
45309         Reported by Simon Josefsson.
45310
45311 2008-10-05  Jim Meyering  <meyering@redhat.com>
45312
45313         bootstrap: check for LT_INIT, too
45314         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
45315         are deprecated.  Suggestion from Ralf Wildenhues.
45316
45317 2008-10-05  Bruno Haible  <bruno@clisp.org>
45318
45319         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
45320         overriding them by ours.
45321         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
45322
45323 2008-10-05  Jim Meyering  <meyering@redhat.com>
45324
45325         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
45326         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
45327         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
45328
45329 2008-10-04  Bruno Haible  <bruno@clisp.org>
45330
45331         * modules/dup2 (License): Change to LGPLv2+.
45332         * modules/sleep (License): Likewise.
45333         * modules/perror (License): Likewise.
45334         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
45335         Blake.
45336         * modules/signal (License): Likewise.
45337         * modules/sigprocmask (License): Likewise.
45338         * modules/raise (License): Change to LGPLv2+, with approval by Jim
45339         Meyering.
45340
45341 2008-10-04  Bruno Haible  <bruno@clisp.org>
45342
45343         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45344         Reported by Rainer Tammer <tammer@tammer.net>.
45345
45346 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45347             Bruno Haible  <bruno@clisp.org>
45348
45349         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45350         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45351         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45352
45353 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45354
45355         filevercmp: new module
45356         * lib/filevercmp.h: New function filevercmp comparing version strings.
45357         * lib/filevercmp.c: Implementation of filevercmp function.
45358         * modules/filevercmp: Module metadata.
45359         * tests/test-filevercmp.c: Unit test for new module.
45360         * modules/filevercmp-tests: Unit test metadata.
45361         * MODULES.html.sh: Add filevercmp module.
45362
45363 2008-10-03  Bruno Haible  <bruno@clisp.org>
45364
45365         * lib/c-ctype.h: Add comment.
45366         Reported by Jim Meyering.
45367
45368 2008-10-02  Bruno Haible  <bruno@clisp.org>
45369
45370         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45371
45372 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45373
45374         * build-aux/bootstrap: Allow renaming bootstrap, and change the
45375         name of bootstrap.conf accordingly.
45376
45377 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45378
45379         * build-aux/bootstrap: Install git-merge-changelog configuration
45380         items into .gitconfig if needed.
45381
45382 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45383
45384         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
45385         git repository, and initialize/update it accordingly.
45386
45387 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
45388
45389         * modules/fsync-tests: New file.
45390         * tests/test-fsync.c: New file.
45391
45392         New module 'fsync'.
45393         * lib/fsync.c: New file.
45394         * m4/fsync.m4: New file.
45395         * modules/fsync: New file.
45396         * lib/unistd.in.h (fsync): New declaration.
45397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
45398         GNULIB_FSYNC and HAVE_FSYNC.
45399         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
45400         * MODULES.html.sh (posix_functions): Add fsync.
45401         * doc/posix-functions/fsync.texi: Mention the new module.
45402
45403 2008-10-02  Jim Meyering  <meyering@redhat.com>
45404
45405         fts.c: sync with similar code from coreutils' remove.c
45406         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
45407         Guard also with "#if defined __linux__", since for now at least,
45408         this code is Linux-kernel-specific.
45409
45410 2008-10-02  Jim Meyering  <meyering@redhat.com>
45411
45412         fts: bug fixes
45413         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45414         Include <sys/vfs.h>, not <sys/statfs.h>.
45415
45416         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45417         Include <sys/vfs.h>, not <sys/statfs.h>.
45418
45419 2008-10-01  Bruno Haible  <bruno@clisp.org>
45420
45421         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
45422         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
45423         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
45424         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
45425         * doc/posix-functions/posix_spawnp.texi: Likewise.
45426         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
45427         whether posix_spawn actually works.
45428         * m4/pipe.m4 (gl_PIPE): Likewise.
45429         * modules/execute (Files): Add m4/posix_spawn.m4.
45430         * modules/pipe (Files): Add m4/posix_spawn.m4.
45431         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
45432
45433 2008-10-01  Jim Meyering  <meyering@redhat.com>
45434
45435         remove trailing spaces
45436         * NEWS: Likewise.
45437         * lib/poll.c (poll): Likewise.
45438         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
45439         * lib/winsock.c (rpl_close): Likewise.
45440         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
45441         * modules/yield: Likewise.
45442         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
45443         * tests/test-sys_select.c (connect_to_socket): Likewise.
45444
45445         fts.c: adjust a new interface to be more generally useful
45446         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
45447         (fts_build): Adjust caller.
45448
45449 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45450
45451         * modules/cond-tests: New file.
45452         * tests/test-cond.c: New file.
45453
45454 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45455             Bruno Haible  <bruno@clisp.org>
45456
45457         * modules/cond (Dependencies): Add errno, time.
45458         * lib/glthread/cond.h: Include <time.h>.
45459         (gl_cond_define, gl_cond_define_initialized): Use the same definition
45460         across platforms.
45461
45462 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45463             Bruno Haible  <bruno@clisp.org>
45464
45465         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
45466
45467 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45468             Bruno Haible  <bruno@clisp.org>
45469
45470         * modules/tls-tests (Depends-on): Add thread, yield.
45471         (configure.ac): Remove all checks.
45472         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
45473         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45474         gl_thread_self): Remove definitions. Include glthread/thread.h and
45475         glthread/yield.h instead.
45476         (test_tls): Pass an additional NULL argument to gl_thread_join.
45477
45478 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45479             Bruno Haible  <bruno@clisp.org>
45480
45481         * modules/lock-tests (Depends-on): Add thread, yield.
45482         (configure.ac): Remove all checks.
45483         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
45484         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45485         gl_thread_self): Remove definitions. Include glthread/thread.h and
45486         glthread/yield.h instead.
45487         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
45488         additional NULL argument to gl_thread_join.
45489
45490 2008-09-30  Bruno Haible  <bruno@clisp.org>
45491
45492         Fix the Win32 implementation of the 'thread' module.
45493         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
45494         pointer type.
45495         (gl_thread_self): Invoke gl_thread_self_func.
45496         (gl_thread_self_func): New declaration.
45497         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
45498         (do_init_self_key, init_self_key): New functions.
45499         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
45500         Remove some fields.
45501         (running_threads, running_lock): Remove variables.
45502         (get_current_thread_handle): New function.
45503         (gl_thread_self_func, wrapper_func, glthread_create_func,
45504         glthread_join_func, gl_thread_exit_func): Largely rewritten and
45505         simplified.
45506
45507 2008-09-30  Bruno Haible  <bruno@clisp.org>
45508
45509         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
45510         files.
45511
45512 2008-09-30  Jim Meyering  <meyering@redhat.com>
45513
45514         fts.m4: correct the test for statfs.f_type
45515         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
45516         when checking for statfs.f_type.
45517
45518 2008-09-15  Simon Josefsson  <simon@josefsson.org>
45519
45520         tests: avoid some compiler warnings
45521         * tests/test-memchr.c (main): Pass NULL indirectly.
45522         * tests/test-getdate.c (main): Remove unused variable 'ret'.
45523
45524 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
45525
45526         getdate.y: disallow countable dayshifts like "4 yesterday ago"
45527         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
45528         exactly specified dayshifts.
45529         (dayshift): New rule.
45530         (rel): Add dayshift.
45531         (relative_time_table) [tomorrow, yesterday, today, now]:
45532         Use tDAY_SHIFT in place of tDAY_UNIT.
45533         * tests/test-getdate.c: Add tests for now-disallowed countable
45534         dayshifts, e.g., "4 yesterday ago".
45535
45536 2008-09-29  Bruno Haible  <bruno@clisp.org>
45537
45538         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
45539         * tests/test-posix_spawn1.in.sh: Renamed from
45540         tests/test-posix_spawn.in.sh.
45541         * tests/test-posix_spawn2.c: New file.
45542         * tests/test-posix_spawn2.in.sh: New file.
45543         * modules/posix_spawnp-tests (Files): Update.
45544         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
45545
45546 2008-09-29  Bruno Haible  <bruno@clisp.org>
45547
45548         Propagate effects of putenv/setenv/unsetenv to child processes.
45549         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
45550         * lib/pipe.c (create_pipe): Likewise.
45551
45552 2008-09-29  Bruno Haible  <bruno@clisp.org>
45553
45554         Enable use of shell scripts as executables in mingw.
45555         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
45556         run the program as a shell script.
45557         * lib/pipe.c (create_pipe): Likewise.
45558         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
45559         resulting array.
45560
45561 2008-09-29  Eric Blake  <ebb9@byu.net>
45562
45563         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
45564
45565 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
45566
45567         * doc/posix-functions/accept.texi: Update mingw problems.
45568         * doc/posix-functions/bind.texi: Update mingw problems.
45569         * doc/posix-functions/close.texi: Update mingw problems.
45570         * doc/posix-functions/connect.texi: Update mingw problems.
45571         * doc/posix-functions/getpeername.texi: Update mingw problems.
45572         * doc/posix-functions/getsockname.texi: Update mingw problems.
45573         * doc/posix-functions/getsockopt.texi: Update mingw problems.
45574         * doc/posix-functions/ioctl.texi: Update mingw problems.
45575         * doc/posix-functions/listen.texi: Update mingw problems.
45576         * doc/posix-functions/recv.texi: Update mingw problems.
45577         * doc/posix-functions/recvfrom.texi: Update mingw problems.
45578         * doc/posix-functions/select.texi: Update mingw problems.
45579         * doc/posix-functions/send.texi: Update mingw problems.
45580         * doc/posix-functions/sendto.texi: Update mingw problems.
45581         * doc/posix-functions/setsockopt.texi: Update mingw problems.
45582         * doc/posix-functions/socket.texi: Update mingw problems.
45583
45584 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
45585             Bruno Haible  <bruno@clisp.org>
45586
45587         * lib/sys_select.in.h: Include sys/time.h.
45588         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
45589         * modules/sys_select: Depend on sys_time.
45590         * tests/test-sys_select.c: Test that sys/select.h defines struct
45591         timeval fully.
45592
45593 2008-09-29  Bruno Haible  <bruno@clisp.org>
45594
45595         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
45596         * lib/sys_select.in.h: Likewise.
45597
45598 2008-09-29  Bruno Haible  <bruno@clisp.org>
45599
45600         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
45601
45602 2008-09-29  Bruno Haible  <bruno@clisp.org>
45603
45604         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
45605         Set LIBSOCKET instead of augmenting LIBS.
45606         * modules/sockets (Link): New section.
45607         * modules/sockets-tests (test_sockets_LDADD): New variable.
45608         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
45609         * modules/poll-tests (test_poll_LDADD): New variable.
45610         * NEWS: Document the change.
45611
45612 2008-09-29  Bruno Haible  <bruno@clisp.org>
45613
45614         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
45615         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
45616         ARPA_INET_H directly.
45617         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45618
45619 2008-09-28  Bruno Haible  <bruno@clisp.org>
45620
45621         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
45622         from gl_HEADER_SYS_SOCKET.
45623         (gl_HEADER_SYS_SOCKET): Invoke it.
45624         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45625
45626 2008-09-28  Bruno Haible  <bruno@clisp.org>
45627
45628         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
45629         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
45630         Needed on OSF/1 4.0.
45631
45632 2008-09-28  Bruno Haible  <bruno@clisp.org>
45633
45634         Override open more carefully.
45635         * lib/open.c (orig_open): New function.
45636         (rpl_open): Use orig_open instead of open.
45637         * lib/fcntl.in.h: Add special invocation convention.
45638         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
45639         (gl_FUNC_OPEN): Invoke it.
45640
45641         Override freopen more carefully.
45642         * lib/freopen.c (orig_freopen): New function.
45643         (rpl_freopen): Use orig_freopen instead of freopen.
45644         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
45645         (gl_FUNC_FREOPEN): Invoke it.
45646
45647         Override fopen more carefully.
45648         * lib/fopen.c (orig_fopen): New function.
45649         (rpl_fopen): Use orig_fopen instead of fopen.
45650         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
45651         (gl_FUNC_FOPEN): Invoke it.
45652         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
45653
45654 2008-09-28  Bruno Haible  <bruno@clisp.org>
45655
45656         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
45657         SIGPIPE.
45658
45659 2008-09-28  Bruno Haible  <bruno@clisp.org>
45660
45661         * tests/test-sigaction.c (handler, main): Disable the check whether
45662         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
45663         glibc systems with LinuxThreads.
45664
45665 2008-09-28  Bruno Haible  <bruno@clisp.org>
45666
45667         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
45668
45669         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
45670         with AIX xlc.
45671         * lib/fcntl.in.h (open): Likewise.
45672         Reported by Rainer Tammer <tammer@tammer.net>.
45673
45674 2008-09-28  Bruno Haible  <bruno@clisp.org>
45675
45676         * modules/posix_spawnp-tests: New file.
45677         * tests/test-posix_spawn.c: New file.
45678         * tests/test-posix_spawn.in.sh: New file.
45679
45680         New module 'posix_spawnp'.
45681         * modules/posix_spawnp: New file.
45682         * lib/spawnp.c: New file, from GNU libc with modifications.
45683         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
45684
45685         New module 'posix_spawn'.
45686         * modules/posix_spawn: New file.
45687         * lib/spawn.c: New file, from GNU libc with modifications.
45688         * doc/posix-functions/posix_spawn.texi: Mention the new module.
45689
45690         New module 'posix_spawnattr_destroy'.
45691         * modules/posix_spawnattr_destroy: New file.
45692         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
45693         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
45694         module.
45695
45696         New module 'posix_spawnattr_setsigmask'.
45697         * modules/posix_spawnattr_setsigmask: New file.
45698         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
45699         modifications.
45700         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
45701         new module.
45702
45703         New module 'posix_spawnattr_getsigmask'.
45704         * modules/posix_spawnattr_getsigmask: New file.
45705         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
45706         modifications.
45707         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
45708         new module.
45709
45710         New module 'posix_spawnattr_setsigdefault'.
45711         * modules/posix_spawnattr_setsigdefault: New file.
45712         * lib/spawnattr_setdefault.c: New file, from GNU libc with
45713         modifications.
45714         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
45715         new module.
45716
45717         New module 'posix_spawnattr_getsigdefault'.
45718         * modules/posix_spawnattr_getsigdefault: New file.
45719         * lib/spawnattr_getdefault.c: New file, from GNU libc with
45720         modifications.
45721         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
45722         new module.
45723
45724         New module 'posix_spawnattr_setschedpolicy'.
45725         * modules/posix_spawnattr_setschedpolicy: New file.
45726         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
45727         modifications.
45728         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
45729         new module.
45730
45731         New module 'posix_spawnattr_getschedpolicy'.
45732         * modules/posix_spawnattr_getschedpolicy: New file.
45733         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
45734         modifications.
45735         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
45736         new module.
45737
45738         New module 'posix_spawnattr_setschedparam'.
45739         * modules/posix_spawnattr_setschedparam: New file.
45740         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
45741         modifications.
45742         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
45743         new module.
45744
45745         New module 'posix_spawnattr_getschedparam'.
45746         * modules/posix_spawnattr_getschedparam: New file.
45747         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
45748         modifications.
45749         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
45750         new module.
45751
45752         New module 'posix_spawnattr_setpgroup'.
45753         * modules/posix_spawnattr_setpgroup: New file.
45754         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
45755         modifications.
45756         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
45757         module.
45758
45759         New module 'posix_spawnattr_getpgroup'.
45760         * modules/posix_spawnattr_getpgroup: New file.
45761         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
45762         modifications.
45763         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
45764         module.
45765
45766         New module 'posix_spawnattr_setflags'.
45767         * modules/posix_spawnattr_setflags: New file.
45768         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
45769         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
45770         module.
45771
45772         New module 'posix_spawnattr_getflags'.
45773         * modules/posix_spawnattr_getflags: New file.
45774         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
45775         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
45776         module.
45777
45778         New module 'posix_spawnattr_init'.
45779         * modules/posix_spawnattr_init: New file.
45780         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
45781         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
45782         module.
45783
45784         New module 'posix_spawn_file_actions_destroy'.
45785         * modules/posix_spawn_file_actions_destroy: New file.
45786         * lib/spawn_faction_destroy.c: New file, from GNU libc with
45787         modifications.
45788         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
45789         the new module.
45790
45791         New module 'posix_spawn_file_actions_addopen'.
45792         * modules/posix_spawn_file_actions_addopen: New file.
45793         * lib/spawn_faction_addopen.c: New file, from GNU libc with
45794         modifications.
45795         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
45796         the new module.
45797
45798         New module 'posix_spawn_file_actions_adddup2'.
45799         * modules/posix_spawn_file_actions_adddup2: New file.
45800         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
45801         modifications.
45802         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
45803         the new module.
45804
45805         New module 'posix_spawn_file_actions_addclose'.
45806         * modules/posix_spawn_file_actions_addclose: New file.
45807         * lib/spawn_faction_addclose.c: New file, from GNU libc with
45808         modifications.
45809         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
45810         the new module.
45811
45812         New module 'posix_spawn_file_actions_init'.
45813         * modules/posix_spawn_file_actions_init: New file.
45814         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
45815         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
45816         new module.
45817
45818         New module 'posix_spawn-internal'.
45819         * modules/posix_spawn-internal: New file.
45820         * lib/spawn_int.h: New file, from GNU libc with modifications.
45821         * lib/spawni.c: New file, from GNU libc with modifications.
45822         * m4/posix_spawn.m4: New file.
45823
45824         New module 'spawn'.
45825         * modules/spawn: New file.
45826         * lib/spawn.in.h: New file, from GNU libc with modifications.
45827         * m4/spawn_h.m4: New file.
45828         * doc/posix-headers/spawn.texi: Mention the new module.
45829
45830 2008-09-28  Bruno Haible  <bruno@clisp.org>
45831
45832         * modules/sched-tests: New file.
45833         * tests/test-sched.c: New file.
45834
45835         New module 'sched'.
45836         * modules/sched: New file.
45837         * lib/sched.in.h: New file.
45838         * m4/sched_h.m4: New file.
45839         * doc/posix-headers/sched.texi: Mention the new module.
45840
45841 2008-09-27  Eric Blake  <ebb9@byu.net>
45842
45843         Fix previous patch, and tweak references to $0.
45844         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
45845         (func_version, func_gnulib_dir): Don't call this program
45846         gnulib-tool.
45847         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
45848         with using $0 in function.
45849         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
45850         (func_fatal_error): Reuse the name the user invoked us with.
45851
45852 2008-09-27  Bruno Haible  <bruno@clisp.org>
45853
45854         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
45855         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
45856         (gl_ICONV_H): Not here.
45857         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
45858         instead of assigning ICONV_H directly.
45859
45860         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
45861         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
45862         WCHAR_H directly.
45863
45864 2008-09-27  Bruno Haible  <bruno@clisp.org>
45865
45866         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
45867         * modules/arpa_inet (Depends-on): Add link-warning.
45868         (Makefile.am): Insert the definition of GL_LINK-WARNING.
45869         * modules/unistd (Makefile.am): Likewise.
45870
45871 2008-09-26  Bruno Haible  <bruno@clisp.org>
45872
45873         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
45874         variables.
45875         (func_version): Essentially copied from gnulib-tool.
45876         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
45877         func_readlink): Copied from gnulib-tool.
45878
45879 2008-09-26  Bruno Haible  <bruno@clisp.org>
45880
45881         * gnulib-tool (func_version): Change directory to $gnulib_dir before
45882         invoking git-version-gen.
45883
45884 2008-09-26  Bruno Haible  <bruno@clisp.org>
45885
45886         * posix-modules: Update to directory names changed on 2008-01-19.
45887         Remove commas in output before splitting into words. No more need to
45888         avoid 'ftruncate' since 2007-02-19.
45889
45890 2008-09-26  Bruno Haible  <bruno@clisp.org>
45891
45892         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
45893
45894 2008-09-26  Bruno Haible  <bruno@clisp.org>
45895
45896         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
45897         * modules/fwriteerror (Depends-on): Add errno.
45898
45899 2008-09-26  Bruno Haible  <bruno@clisp.org>
45900
45901         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
45902         * tests/test-vc-list-files-cvs.sh: Likewise.
45903
45904 2008-09-26  Bruno Haible  <bruno@clisp.org>
45905
45906         * doc/posix-headers/sys_resource.texi: Reorder items.
45907
45908 2008-09-26  Jim Meyering  <meyering@redhat.com>
45909
45910         fts: tweak inode comparison function
45911         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
45912         inode numbers, as documented.
45913
45914         fts: sort dirent entries on inode number before traversing
45915         This avoids a quadratic, seek-related performance penalty when
45916         operating on a directory containing many entries (measurable at 10k;
45917         3.5 hours at 2 million entries with a cold cache) on certain types
45918         of file systems, including ext3 and ext4, but not tmpfs.
45919         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
45920         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
45921         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
45922         (fs_handles_readdir_ordered_dirents_efficiently): New function.
45923         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
45924         (fts_build): Set the stat.st_ino member from D_INO.
45925         If it is likely to be useful, sort dirent entries on inode number.
45926
45927         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
45928         and the struct statfs.f_type member.
45929         * modules/fts (Depends-on): Add d-ino.
45930
45931 2008-09-26  Bruno Haible  <bruno@clisp.org>
45932
45933         * modules/sigpipe-die (Depends-on): Add sigpipe.
45934
45935         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
45936         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
45937         and GNULIB_STDIO_H_SIGPIPE are set.
45938         * lib/stdio-write.c: New file.
45939         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
45940         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45941         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45942         REPLACE_STDIO_WRITE_FUNCS.
45943         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
45944         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45945         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45946         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45947         * modules/stdio (Files): Add lib/stdio-write.c.
45948         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
45949         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45950         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45951         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45952         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
45953         REPLACE_FPRINTF_POSIX.
45954         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
45955         REPLACE_PRINTF_POSIX.
45956         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
45957         REPLACE_VFPRINTF_POSIX.
45958         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
45959         REPLACE_VPRINTF_POSIX.
45960         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
45961         SIGPIPE issue.
45962         * doc/posix-functions/fputc.texi: Likewise.
45963         * doc/posix-functions/fputs.texi: Likewise.
45964         * doc/posix-functions/fwrite.texi: Likewise.
45965         * doc/posix-functions/printf.texi: Likewise.
45966         * doc/posix-functions/putc.texi: Likewise.
45967         * doc/posix-functions/putchar.texi: Likewise.
45968         * doc/posix-functions/puts.texi: Likewise.
45969         * doc/posix-functions/vfprintf.texi: Likewise.
45970         * doc/posix-functions/vprintf.texi: Likewise.
45971
45972         * modules/safe-write (Depends-on): Add write.
45973
45974         * modules/sigpipe-tests: New file.
45975         * tests/test-sigpipe.c: New file.
45976         * tests/test-sigpipe.sh: New file.
45977
45978         * modules/write: New file.
45979         * lib/unistd.in.h: Include <sys/types.h>.
45980         (write): New declaration.
45981         * lib/write.c: New file.
45982         * m4/write.m4: New file.
45983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45984         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
45985         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
45986         GNULIB_WRITE, REPLACE_WRITE.
45987         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
45988         and the SIGPIPE issue.
45989
45990         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
45991         (raise): New declaration.
45992         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
45993         (ext_signal): New function.
45994         (rpl_raise): New function.
45995         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
45996         GNULIB_SIGNAL_H_SIGPIPE.
45997         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
45998         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
45999
46000         * modules/sigpipe: New file.
46001         * m4/sigpipe.m4: New file.
46002
46003 2008-09-25  Derek Price  <derek@ximbiot.com>
46004             Bruno Haible  <bruno@clisp.org>
46005
46006         * gnulib-tool (func_import): Report all license incompatibilities, not
46007         just the first one.
46008
46009 2008-09-25  Bruno Haible  <bruno@clisp.org>
46010
46011         * gnulib-tool (func_import): When computing the edits, consider not
46012         only the Makefile.ams that exist but also those that will be generated.
46013
46014 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46015
46016         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46017         fixes gnulib-tool --test warning about duplicate dependency.
46018
46019 2008-09-25  Bruno Haible  <bruno@clisp.org>
46020
46021         * gnulib-tool: Don't ask the user to perform edits in the generated
46022         Makefile.ams.
46023         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46024         apply to the Makefile.am being generated.
46025         (func_emit_tests_Makefile_am): Execute edits that apply to the
46026         Makefile.am being generated.
46027         (func_import): Setup list of Makefile.am edits before emitting the
46028         Makefile.ams, not at the end.
46029         (func_create_testdir): Update.
46030         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46031
46032 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46033
46034         * gnulib-tool (func_import): Store the --tests-base option in the
46035         comment in gnulib-cache.m4.
46036
46037 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46038
46039         * NEWS: Document increased portability that sys_select now provides.
46040
46041         * lib/sys_select.in.h: Install select wrapper.
46042         * lib/sys_socket.in.h: Use more descriptive name when there is no
46043         select wrapper.
46044         * lib/winsock-select.c: New.
46045         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46046         Require gl_HEADER_SYS_SOCKET.
46047         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46048         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46049         * tests/test-sys_select.c: Add functional tests.
46050
46051 2008-09-24  Eric Blake  <ebb9@byu.net>
46052
46053         open, fopen: close fd leak in last patch
46054         * lib/open.c (rpl_open): Close fd before returning error.
46055         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46056         * doc/posix-functions/open.texi (open): Document that Irix also
46057         has the bug.
46058         * doc/posix-functions/fopen.texi (fopen): Likewise.
46059         Reported by Paolo Bonzini.
46060
46061 2008-09-24  Bruno Haible  <bruno@clisp.org>
46062
46063         Ensure that a filename ending in a slash cannot be used to access a
46064         non-directory.
46065         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46066         to check whether it's really a directory.
46067         * lib/fopen.c: Include fcntl.h, unistd.h.
46068         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46069         and fdopen().
46070         * modules/fopen (Depends-on): Add unistd.
46071         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46072         * tests/test-fopen.c (main): Likewise.
46073         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46074         * doc/posix-functions/fopen.texi: Likewise.
46075         Reported by Eric Blake.
46076
46077 2008-09-23  Eric Blake  <ebb9@byu.net>
46078
46079         c-stack: avoid compiler optimizations when provoking overflow
46080         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46081         recursion harder to optimize, to ensure a stack overflow occurs.
46082         * tests/test-c-stack.c (recurse): Likewise.
46083         Borrowed from libsigsegv.
46084
46085         c-stack: work around Irix sigaltstack bug
46086         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46087         whether sigaltstack uses wrong end of stack_t (copied in part from
46088         libsigsegv).
46089         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46090         Irix bug, without requiring an over-allocation.
46091         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46092         bug.
46093
46094         fopen: document mingw bug on directories
46095         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46096         not allowing a stream visiting a directory, even though reading
46097         from such a stream is not portable.
46098
46099 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46100
46101         * lib/poll.c: Rewrite.
46102         * modules/poll: Depend on alloca.
46103
46104 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46105
46106         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46107         instead define prototypes for a full set of wrappers.  Ensure
46108         that Cygwin does not use the compatibility code, which is only
46109         for MinGW.
46110         * lib/winsock.c: New.
46111         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46112         * modules/sys_socket: Add lib/winsock.c.
46113
46114         * modules/poll-tests: Add errno and perror.
46115         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46116
46117 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46118
46119         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46120
46121 2008-09-23  Bruno Haible  <bruno@clisp.org>
46122
46123         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46124         * doc/glibc-functions/*: Likewise.
46125
46126 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46127
46128         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46129         success.
46130
46131 2008-09-22  Eric Blake  <ebb9@byu.net>
46132             Bruno Haible  <bruno@clisp.org>
46133
46134         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46135         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46136         supply %A but mishandle pseudo-NaN.
46137         Reported by Simon Josefsson.
46138
46139 2008-09-21  Bruno Haible  <bruno@clisp.org>
46140
46141         * tests/test-lock.c (main): Tweak skip message.
46142         * tests/test-tls.c (main): Likewise.
46143
46144 2008-09-21  Bruno Haible  <bruno@clisp.org>
46145
46146         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46147         whether 'struct sigaction' has sa_sigaction here...
46148         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46149         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46150
46151 2008-09-21  Bruno Haible  <bruno@clisp.org>
46152
46153         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46154         section.
46155         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46156         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46157         the new section.
46158         (Support for obsolete systems lacking POSIX:2001): New section.
46159         (String handling <string.h>): Move strdup to the new section.
46160         Suggested by Simon Josefsson and Paolo Bonzini.
46161
46162 2008-09-21  Bruno Haible  <bruno@clisp.org>
46163
46164         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46165         exponents in %e and %g results on 'long double'. Needed for mingw's
46166         improved *printf functions.
46167         * tests/test-vasprintf-posix.c (test_function): Likewise.
46168         * tests/test-snprintf-posix.h (test_function): Likewise.
46169         * tests/test-sprintf-posix.h (test_function): Likewise.
46170         Reported by Eric Blake.
46171
46172 2008-09-21  Bruno Haible  <bruno@clisp.org>
46173
46174         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46175         * tests/test-sprintf-posix.h (test_function): Likewise.
46176
46177 2008-09-21  Bruno Haible  <bruno@clisp.org>
46178
46179         * modules/getpass (Depends-on): Add strdup-posix.
46180
46181         New module 'strdup-posix'.
46182         * modules/strdup-posix: New file.
46183         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46184         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46185         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46186         REPLACE_STRDUP.
46187         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46188         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46189         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46190         strdup-posix.
46191
46192         * modules/strdup (Depends-on): Remove malloc-posix.
46193
46194 2008-09-20  Bruno Haible  <bruno@clisp.org>
46195
46196         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46197         Wildenhues.
46198
46199 2008-09-20  Bruno Haible  <bruno@clisp.org>
46200
46201         Ensure that wint_t gets defined on IRIX 5.3.
46202         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46203         * lib/wctype.in.h (wint_t): Likewise.
46204         (__wctype_wint_t): Remove type.
46205         (isw*): Use wint_t instead of __wctype_wint_t.
46206         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46207         * modules/wchar (Files): Add m4/wint_t.m4.
46208         (Makefile.am): Substitute HAVE_WINT_T.
46209         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46210         * tests/test-wctype.c: Check that wint_t is defined.
46211         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46212         * doc/posix-headers/wctype.texi: Likewise.
46213         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46214
46215 2008-09-18  Bruno Haible  <bruno@clisp.org>
46216
46217         * gnulib-tool (func_exit): Update comment.
46218
46219 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46220
46221         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46222         assumes strdup exists and does not depend on strdup to return
46223         ENOMEM on out of memory conditions.
46224
46225 2008-09-18  Bruno Haible  <bruno@clisp.org>
46226
46227         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
46228         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46229         digits for the exponent.
46230
46231 2008-09-18  Jim Meyering  <meyering@redhat.com>
46232             Bruno Haible  <bruno@clisp.org>
46233
46234         * lib/vasnprintf.c (decimal_point_char): Define also if
46235         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46236
46237 2008-09-16  Bruno Haible  <bruno@clisp.org>
46238         and Eric Blake  <ebb9@byu.net>
46239
46240         vasnprintf: support Irix 5.3
46241         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46242         that mishandle long double infinity.
46243         Reported by Tom G. Christensen.
46244
46245 2008-09-16  Bruno Haible  <bruno@clisp.org>
46246
46247         * doc/glibc-functions/scandir.texi: Mention the function is missing on
46248         Solaris 9.
46249         * doc/glibc-functions/alphasort.texi: Likewise.
46250         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
46251
46252 2008-09-16  Jim Meyering  <meyering@redhat.com>
46253
46254         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
46255         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
46256         a umask modification leak out of a subshell.  Otherwise, the
46257         opensolaris /bin/sh would be accepted and thus cause unwarranted
46258         failures in the coreutils test suite.
46259
46260 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
46261
46262         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
46263         to succeed.
46264
46265 2008-09-16  Jim Meyering  <meyering@redhat.com>
46266
46267         avoid spurious test failure when library is built without ACL support
46268         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
46269         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
46270         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
46271         * tests/test-copy-acl.sh: Likewise.
46272
46273 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46274
46275         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
46276         based on character occurrence counts.
46277
46278 2008-09-15  Eric Blake  <ebb9@byu.net>
46279
46280         tests: avoid some compiler warnings
46281         * tests/test-memchr.c (main): Pass NULL indirectly.
46282         * tests/test-closein.c (main): Avoid unused variable.
46283
46284 2008-09-15  Bruno Haible  <bruno@clisp.org>
46285
46286         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
46287         are missing on OpenBSD 4.0 individually.
46288         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46289
46290 2008-09-15  Bruno Haible  <bruno@clisp.org>
46291
46292         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
46293         * doc/posix-functions/strerror.texi: Mention also Cygwin.
46294         * doc/posix-functions/perror.texi: Likewise.
46295         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
46296         is missing.
46297         Reported by Eric Blake.
46298
46299         * lib/errno.in.h: Use replacement values >= 2000.
46300         Reported by Eric Blake.
46301
46302 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46303
46304         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
46305         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
46306         limit.
46307         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
46308         compareseq was aborted.
46309
46310 2008-09-14  Bruno Haible  <bruno@clisp.org>
46311
46312         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
46313         yvec_edit_count.
46314         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
46315         (fstrcmp_bounded): Simplify result computation accordingly.
46316
46317 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46318
46319         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
46320         (fstrcmp): Define in terms of fstrcmp_bounded.
46321         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
46322         lower_bound argument.
46323         Return quickly if the result is certainly < lower_bound.
46324         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
46325
46326 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46327
46328         * lib/diffseq.h (EARLY_ABORT): New macro.
46329         (compareseq): Change return type to bool. Return true when EARLY_ABORT
46330         evaluates to true.
46331
46332 2008-09-14  Bruno Haible  <bruno@clisp.org>
46333
46334         * modules/perror-tests: New file.
46335         * tests/test-perror.sh: New file.
46336         * tests/test-perror.c: New file.
46337
46338         New module 'perror'.
46339         * lib/stdio.in.h (perror): New declaration.
46340         * lib/perror.c: New file.
46341         * m4/perror.m4: New file.
46342         * modules/perror: New file.
46343         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46344         * doc/posix-functions/perror.texi: Mention the perror module.
46345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46346         REPLACE_PERROR.
46347         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46348         REPLACE_PERROR.
46349
46350 2008-09-14  Bruno Haible  <bruno@clisp.org>
46351
46352         * modules/stdio (Makefile.am): Reorder to match the order in
46353         lib/stdio.in.h.
46354         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46355
46356 2008-09-13  Bruno Haible  <bruno@clisp.org>
46357
46358         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46359
46360 2008-09-13  Bruno Haible  <bruno@clisp.org>
46361
46362         Extend strerror to cover the added errno values.
46363         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46364         (rpl_strerror): Provide error messages for the added errno values and
46365         for the WSA* values.
46366         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46367         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46368         strerror.
46369         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46370         * modules/strerror (Depends-on): Add errno.
46371         * doc/posix-functions/strerror.texi: Document the change.
46372         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46373         and EOVERFLOW.
46374
46375 2008-09-13  Bruno Haible  <bruno@clisp.org>
46376
46377         * modules/EOVERFLOW: Remove file.
46378         * m4/eoverflow.m4: Remove file.
46379         * modules/EOVERFLOW-tests: Remove file.
46380         * tests/test-EOVERFLOW.c: Remove file.
46381         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
46382         * modules/ftell (Depends-on): Likewise.
46383         * modules/getdelim (Depends-on): Likewise.
46384         * modules/getugroups (Depends-on): Likewise.
46385         * modules/poll (Depends-on): Likewise.
46386         * modules/snprintf (Depends-on): Likewise.
46387         * modules/sprintf-posix (Depends-on): Likewise.
46388         * modules/vasnprintf (Depends-on): Likewise.
46389         * modules/vasprintf (Depends-on): Likewise.
46390         * modules/vfprintf-posix (Depends-on): Likewise.
46391         * modules/vsnprintf (Depends-on): Likewise.
46392         * modules/vsprintf-posix (Depends-on): Likewise.
46393         * modules/xvasprintf (Depends-on): Likewise.
46394         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46395         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
46396         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
46397         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
46398         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46399         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
46400         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
46401         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
46402         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46403         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
46404         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
46405         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
46406         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46407         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
46408         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
46409         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
46410         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46411         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
46412         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
46413         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46414         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46415         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46416         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46417         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
46418         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
46419         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46420         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
46421         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
46422         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
46423         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
46424         * MODULES.html.sh: Remove EOVERFLOW.
46425         * NEWS: Mention the change.
46426
46427 2008-09-13  Bruno Haible  <bruno@clisp.org>
46428
46429         * modules/errno-tests: New file.
46430         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
46431
46432         * lib/errno.in.h: New file.
46433         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
46434         * modules/errno: New file.
46435         * doc/posix-headers/errno.texi: Update documentation.
46436         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
46437
46438 2008-09-13  Bruno Haible  <bruno@clisp.org>
46439
46440         * tests/test-poll.c: Use #if for native Windows, rather than testing
46441         __MSVCRT__.
46442
46443 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46444             Bruno Haible  <bruno@clisp.org>
46445
46446         * lib/glob.c: Don't include <pwd.h> on native Windows.
46447         (WINDOWS32): New macro.
46448         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
46449
46450 2008-09-13  Bruno Haible  <bruno@clisp.org>
46451
46452         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
46453         (ETIMEDOUT): Remove macro.
46454         (glthread_cond_timedwait_multithreaded): New declaration.
46455         (glthread_cond_timedwait): Use it.
46456         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
46457         (glthread_cond_timedwait_multithreaded): New function.
46458
46459 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46460
46461         * modules/poll-tests: Do not check for io.h.
46462         * tests/test-poll.c: Check for __MSVCRT__ instead.
46463
46464 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46465
46466         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
46467         * modules/poll-tests: Add inet_pton, stdbool, sockets.
46468         * tests/test-poll.c: Use them.  Use _pipe on Windows.
46469
46470 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46471
46472         * modules/poll-tests: New.
46473         * tests/test-poll.c: New.
46474
46475 2008-09-12  Eric Blake  <ebb9@byu.net>
46476
46477         frexp: test for NetBSD failure on -0.0
46478         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
46479         not all, bugs from NetBSD 3.0 have been fixed.
46480         * doc/posix-functions/frexp.texi (frexp): Document bug.
46481         Reported by Thomas Klausner.
46482
46483         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
46484         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
46485         literal -0.0.
46486         Reported by Jonathan C. Patschke <jp@centtech.com>.
46487
46488 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46489
46490         * lib/glthread/cond.h: Use dummy implementation also if
46491         USE_WIN32_THREADS.
46492
46493 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46494
46495         * modules/fnmatch-posix (License): Change to LGPLv2+.
46496         * modules/fnmatch-gnu (License): Likewise.
46497
46498 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46499
46500         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
46501
46502 2008-09-11  Jim Meyering  <meyering@redhat.com>
46503
46504         * users.txt: Add gtk-vnc.
46505
46506 2008-09-08  Simon Josefsson  <simon@josefsson.org>
46507
46508         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
46509         rotate amounts.
46510
46511         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
46512         required for 16-bit and 8-bit rotates.
46513         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
46514         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
46515         UINT8_MAX instead of hard-coded constants.
46516         Suggested by Paul Eggert.
46517
46518 2008-09-07  Bruno Haible  <bruno@clisp.org>
46519
46520         * tests/test-striconveh.c (main): Check behaviour when converting from
46521         UTF-7.
46522
46523         Make striconveh work better with stateful encodings.
46524         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
46525         that iconv does not increment the inptr when returning -1/EINVAL.
46526
46527 2008-09-07  Bruno Haible  <bruno@clisp.org>
46528
46529         * build-aux/config.rpath: Update according to libtool-2.2.6.
46530         * build-aux/config.libpath: Likewise.
46531
46532 2008-09-06  Bruno Haible  <bruno@clisp.org>
46533
46534         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
46535         * lib/freadptr.c (freadptr): Likewise.
46536         * lib/freadseek.c (freadptrinc): Likewise.
46537         Reported by Simon Josefsson.
46538
46539 2008-09-06  Bruno Haible  <bruno@clisp.org>
46540
46541         * modules/freadptr (License): Change to LGPLv2+.
46542         * modules/freadseek (License): Likewise.
46543         Suggested by Eric Blake.
46544
46545         * modules/memchr2 (License): Change to LGPLv2+.
46546         Approved by Eric Blake.
46547
46548 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46549             Bruno Haible  <bruno@clisp.org>
46550
46551         Make gnulib-tool work with native 'sed' on AIX.
46552         * gnulib-tool (sed_noop): New variable.
46553         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
46554         func_add_or_update, func_create_testdir): Use it to initialize sed
46555         script variables.
46556         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46557
46558 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
46559             Bruno Haible  <bruno@clisp.org>
46560
46561         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
46562         also works after #include directives.
46563
46564 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
46565
46566         getdate.y: reject an out-of-range timezone value
46567         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
46568         the range [-24...+24].  When specified with only one or two digits,
46569         * tests/test-getdate.c: Tests for the fix.
46570         * doc/getdate.texi: Document this change.
46571
46572 2008-09-03  Bruno Haible  <bruno@clisp.org>
46573
46574         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
46575
46576 2008-09-02  Simon Josefsson  <simon@josefsson.org>
46577
46578         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
46579         <bruce.korb@gmail.com> with ideas from Ben Pfaff
46580         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
46581         Blake <ebb9@byu.net>.
46582
46583         * tests/test-bitrotate.c: Add more test vectors.
46584
46585 2008-09-02  Eric Blake  <ebb9@byu.net>
46586
46587         vasnprintf-posix: handle large precision via %.*d
46588         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
46589         when handling it ourselves.
46590         * tests/test-vasnprintf-posix.c (test_function): Add test.
46591         * tests/test-snprintf-posix.h (test_function): Likewise.
46592         * tests/test-sprintf-posix.h (test_function): Likewise.
46593         * tests/test-vasprintf-posix.c (test_function): Likewise.
46594         Reported by Alain Guibert.
46595
46596 2008-09-01  Eric Blake  <ebb9@byu.net>
46597
46598         c-stack: make configure-time check more robust
46599         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
46600         successful sigaction call.
46601         Reported by Tom G. Christensen.
46602
46603 2008-09-01  Bruno Haible  <bruno@clisp.org>
46604
46605         New module 'findprog-lgpl'.
46606         * modules/findprog-lgpl: New file.
46607         * lib/findprog-lgpl.c: New file.
46608         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
46609         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
46610         to decide whether to use strdup or xstrdup, concatenated_filename or
46611         xconcatenated_filename.
46612
46613 2008-09-01  Bruno Haible  <bruno@clisp.org>
46614
46615         Split module 'concat-filename' into 'concat-filename' (LGPL) and
46616         'xconcat-filename' (GPL).
46617         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
46618         (License): Change to LGPLv2+.
46619         * modules/xconcat-filename: New file.
46620         * lib/concat-filename.h (concatenated_filename): Change specification.
46621         (xconcatenated_filename): New declaration.
46622         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
46623         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
46624         memory situations.
46625         * lib/xconcat-filename.c: New file.
46626         * NEWS: Mention the change.
46627         * lib/findprog.c: Include concat-filename.h, not filename.h.
46628         (find_in_path): Use xconcatenated_filename instead of
46629         concatenated_filename.
46630         * lib/javacomp.c: Include concat-filename.h, not filename.h.
46631         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
46632         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
46633         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
46634         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
46635         instead of concatenated_filename.
46636         * lib/javaexec.c: Include concat-filename.h, not filename.h.
46637         (execute_java_class): Use xconcatenated_filename instead of
46638         concatenated_filename.
46639         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
46640         * modules/javacomp (Depends-on): Likewise.
46641         * modules/javaexec (Depends-on): Likewise.
46642
46643 2008-09-01  Bruno Haible  <bruno@clisp.org>
46644
46645         Split module 'filename' into 'filename' and 'concat-filename'.
46646         * modules/filename: Keep only lib/filename.h.
46647         (License): Change to LGPLv2+.
46648         * modules/concat-filename: New file, extracted from modules/filename.
46649         * lib/filename.h (concatenated_filename): Remove declaration.
46650         * lib/concat-filename.h: New file, extracted from lib/filename.h.
46651         * lib/concat-filename.c: Include concat-filename.h.
46652         * NEWS: Mention the change.
46653
46654 2008-09-01  Simon Josefsson  <simon@josefsson.org>
46655
46656         * lib/bitrotate.h (rotl8, rotr8): Add.
46657
46658         * modules/bitrotate (configure.ac): Need
46659         AC_REQUIRE([AC_C_INLINE]).
46660         (Description): Mention stdint.h.  Reported by Bruno Haible
46661         <bruno@clisp.org>.
46662
46663         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
46664         Paolo Bonzini <bonzini@gnu.org>.
46665
46666 2008-08-31  Bruno Haible  <bruno@clisp.org>
46667
46668         Assume Solaris specific bi-arch conventions on Solaris systems.
46669         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
46670         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
46671         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
46672         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
46673         like acl_libdirstem.
46674         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
46675         acl_libdirstem.
46676         * NEWS: Mention the change.
46677         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
46678
46679 2008-08-31  Jim Meyering  <meyering@redhat.com>
46680
46681         * lib/strftime.h: Add comments describing the two added arguments.
46682
46683         remove duplicate #include directives
46684         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
46685         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
46686
46687 2008-08-31  Bruno Haible  <bruno@clisp.org>
46688
46689         New module 'sigpipe-die'.
46690         * modules/sigpipe-die: New file.
46691         * lib/sigpipe-die.h: New file.
46692         * lib/sigpipe-die.c: New file.
46693         * MODULES.html.sh (Signal handling): Add sigpipe-die.
46694
46695 2008-08-31  Bruno Haible  <bruno@clisp.org>
46696
46697         Don't override previously installed signal handlers.
46698         * lib/fatal-signal.c (saved_sigactions): New variable.
46699         (uninstall_handlers): Reset the signal to the saved handler, not
46700         to SIG_DFL (except when ignored).
46701         (install_handlers): Save the previous handlers.
46702
46703 2008-08-30  Bruno Haible  <bruno@clisp.org>
46704
46705         * gnulib-tool (func_reset_sigpipe): New function.
46706         (func_get_automake_snippet, func_modules_transitive_closure,
46707         func_import): Invoke it before a join command that reads from stdin,
46708         to avoid "echo: write error: Broken pipe" error messages on stderr.
46709         Reported by Sam Steingold <sds@gnu.org>.
46710
46711 2008-08-30  Bruno Haible  <bruno@clisp.org>
46712
46713         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
46714         Code copied from m4/open.m4.
46715         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
46716         access and the filename ends in a slash. Code copied from lib/open.c.
46717         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
46718         * tests/test-fopen.c (main): Check against bug with trailing slash.
46719
46720 2008-08-29  Bruno Haible  <bruno@clisp.org>
46721
46722         Avoid some "gcc -pedantic" warnings.
46723         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
46724         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
46725         * lib/dirent.in.h: Likewise.
46726         * lib/fcntl.in.h: Likewise.
46727         * lib/float.in.h: Likewise.
46728         * lib/iconv.in.h: Likewise.
46729         * lib/inttypes.in.h: Likewise.
46730         * lib/locale.in.h: Likewise.
46731         * lib/math.in.h: Likewise.
46732         * lib/netinet_in.in.h: Likewise.
46733         * lib/search.in.h: Likewise.
46734         * lib/signal.in.h: Likewise.
46735         * lib/stdarg.in.h: Likewise.
46736         * lib/stdint.in.h: Likewise.
46737         * lib/stdio.in.h: Likewise.
46738         * lib/stdlib.in.h: Likewise.
46739         * lib/string.in.h: Likewise.
46740         * lib/strings.in.h: Likewise.
46741         * lib/sys_select.in.h: Likewise.
46742         * lib/sys_socket.in.h: Likewise.
46743         * lib/sys_stat.in.h: Likewise.
46744         * lib/sys_time.in.h: Likewise.
46745         * lib/sysexits.in.h: Likewise.
46746         * lib/time.in.h: Likewise.
46747         * lib/unistd.in.h: Likewise.
46748         * lib/wchar.in.h: Likewise.
46749         * lib/wctype.in.h: Likewise.
46750         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
46751         * modules/fchdir (Makefile.am): Likewise.
46752         * modules/fcntl (Makefile.am): Likewise.
46753         * modules/float (Makefile.am): Likewise.
46754         * modules/iconv_open (Makefile.am): Likewise.
46755         * modules/inttypes (Makefile.am): Likewise.
46756         * modules/locale (Makefile.am): Likewise.
46757         * modules/math (Makefile.am): Likewise.
46758         * modules/netinet_in (Makefile.am): Likewise.
46759         * modules/search (Makefile.am): Likewise.
46760         * modules/signal (Makefile.am): Likewise.
46761         * modules/stdarg (Makefile.am): Likewise.
46762         * modules/stdint (Makefile.am): Likewise.
46763         * modules/stdio (Makefile.am): Likewise.
46764         * modules/stdlib (Makefile.am): Likewise.
46765         * modules/string (Makefile.am): Likewise.
46766         * modules/strings (Makefile.am): Likewise.
46767         * modules/sys_select (Makefile.am): Likewise.
46768         * modules/sys_socket (Makefile.am): Likewise.
46769         * modules/sys_stat (Makefile.am): Likewise.
46770         * modules/sys_time (Makefile.am): Likewise.
46771         * modules/sysexits (Makefile.am): Likewise.
46772         * modules/time (Makefile.am): Likewise.
46773         * modules/unistd (Makefile.am): Likewise.
46774         * modules/wchar (Makefile.am): Likewise.
46775         * modules/wctype (Makefile.am): Likewise.
46776         Reported by Reuben Thomas <rrt@sc3d.org>.
46777
46778 2008-08-29  Bruno Haible  <bruno@clisp.org>
46779
46780         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
46781         any more.
46782
46783 2008-08-29  Simon Josefsson  <simon@josefsson.org>
46784
46785         * MODULES.html.sh (Misc): Add bitrotate.
46786
46787         * modules/bitrotate: New file.
46788
46789         * lib/bitrotate.h: New file.
46790
46791         * modules/bitrotate-tests: New file.
46792
46793         * tests/test-bitrotate.c: New file.
46794
46795         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
46796         on the bitrotate module.
46797
46798         * lib/arctwo.c: Use new bitrotate module.
46799
46800 2008-08-29  Jim Meyering  <meyering@redhat.com>
46801
46802         bootstrap: merge changes from coreutils
46803         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
46804         of copied files.  Remove a kludge, now that this is fixed.
46805         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
46806         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
46807         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
46808
46809 2008-08-29  Bruno Haible  <bruno@clisp.org>
46810
46811         * MODULES.html.sh: Remove --cvs-urls option.
46812
46813 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
46814
46815         maint.mk: adjust to file name change
46816         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
46817
46818 2008-08-28  Jim Meyering  <meyering@redhat.com>
46819
46820         * modules/getndelim2 (License): Relicense to LGPLv2+.
46821         Approved by Richard Stallman for the version of 1995, and by
46822         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
46823
46824 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
46825
46826         * lib/getdelim.c (flockfile, funlockfile): Make all of them
46827         dummy if one is not available.  Do not touch them if
46828         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
46829         (getc_maybe_unlocked): New.
46830         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
46831
46832 2008-08-26  Eric Blake  <ebb9@byu.net>
46833
46834         doc/INSTALL: resync from autoconf
46835         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
46836         (INSTALL_PRELUDE): Delete; this is done more efficiently by
46837         moving...
46838         * install.texi [!autoconf]: ...here.  Resync from autoconf.
46839         * INSTALL: Regenerate.
46840         * INSTALL.ISO: New file.
46841         * INSTALL.UTF-8: Likewise.
46842
46843 2008-08-26  Jim Meyering  <meyering@redhat.com>
46844
46845         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
46846         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
46847         these definitions conditional, so that they may be overridden, too.
46848
46849 2008-08-26  Bruno Haible  <bruno@clisp.org>
46850
46851         Generate INSTALL file variants with prettier quotes.
46852         * doc/Makefile (INSTALL_PRELUDE): New macro.
46853         (INSTALL): Use it.
46854         (INSTALL.ISO, INSTALL.UTF-8): New rules.
46855
46856 2008-08-26  Bruno Haible  <bruno@clisp.org>
46857
46858         Run makeinfo in an English locale.
46859         * doc/Makefile (MAKEINFO): New variable.
46860
46861 2008-08-26  Bruno Haible  <bruno@clisp.org>
46862
46863         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
46864         Suggested by Eric Blake.
46865
46866 2008-08-25  Bruno Haible  <bruno@clisp.org>
46867
46868         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
46869
46870 2008-08-25  Eric Blake  <ebb9@byu.net>
46871
46872         c-stack: test that stack overflow can be caught
46873         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
46874         that platform allows handling stack overflow; at least OS/2 EMX
46875         has sigaltstack, but crashes before transferring control to
46876         handler on stack overflow.
46877         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
46878         check for HAVE_STACK_OVERFLOW_HANDLING.
46879         Reported by Elbert Pol.
46880
46881 2008-08-25  Bruno Haible  <bruno@clisp.org>
46882
46883         * doc/posix-functions/strftime.texi: Fix description of strftime
46884         module.
46885
46886 2008-08-24  Bruno Haible  <bruno@clisp.org>
46887
46888         * tests/uniwidth/test-uc_width2.c: New file.
46889         * tests/uniwidth/test-uc_width2.sh: New file.
46890         * modules/uniwidth/width-tests (Files): Add the new files.
46891         (TESTS): Add uniwidth/test-uc_width2.sh.
46892         (TESTS_ENVIRONMENT): New variable.
46893         (check_PROGRAMS): Add test-uc_width2.
46894         (test_uc_width2_SOURCES): New variable.
46895
46896         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
46897         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
46898         not 0x00AB.
46899         Reported by Alexander V. Lukyanov <lav@netis.ru>.
46900
46901 2008-08-22  Eric Blake  <ebb9@byu.net>
46902
46903         test-lock, test-tls: mention why a test is skipped
46904         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
46905         skipped.
46906         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
46907
46908         count-one-bits: relax license
46909         * modules/count-one-bits (License): Relicense to LGPLv2+.
46910         Suggested by Ludovic Courtès, approved by Ben Pfaff.
46911
46912 2008-08-22  Andreas Schwab  <schwab@suse.de>
46913
46914         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
46915         Remove spurious space in assignment.
46916
46917 2008-08-21  Simon Josefsson  <simon@josefsson.org>
46918
46919         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
46920         Paul Eggert <eggert@CS.UCLA.EDU>.
46921
46922 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
46923
46924         * modules/gettext: Add m4/threadlib.m4.
46925
46926 2008-08-19  Eric Blake  <ebb9@byu.net>
46927
46928         test-c-stack: fix compilation failure on FreeBSD 5.0
46929         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
46930         headers before <sys/resource.h>.
46931         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
46932         the bug.
46933         Reported by Nelson H. F. Beebe.
46934
46935         strverscmp: migrate from "strverscmp.h" to <string.h>
46936         * modules/string (Makefile.am): Add new hooks.
46937         * modules/strverscmp (Files): Remove strverscmp.h.
46938         (Depends-on): Add string.
46939         (configure.ac): Add indicator.
46940         (Include): Mention new header.
46941         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
46942         defaults.
46943         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
46944         results.
46945         * lib/strverscmp.h: Delete.
46946         * lib/string.in.h (strverscmp): Provide declaration, when needed.
46947         * tests/test-strverscmp.c (includes): Adjust client.
46948         * lib/check-version.c (includes): Likewise.
46949         * NEWS: Document the change.
46950
46951         strverscmp: add unit test
46952         * modules/strverscmp-tests: New file.
46953         * tests/test-strverscmp.c: Likewise.
46954
46955 2008-08-19  Simon Josefsson  <simon@josefsson.org>
46956
46957         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
46958         regarding Windows crypto stuff, from Mono.
46959
46960 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
46961
46962         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
46963         if present, for intel RND.  Return error on failures.
46964
46965 2008-08-18  Ben Pfaff  <blp@gnu.org>
46966
46967         gitlog-to-changelog: give better diagnostic for failed pipe-open
46968         * build-aux/gitlog-to-changelog: Improve error message: suggest
46969         that the version of Git may be too old.
46970
46971 2008-08-18  Simon Josefsson  <simon@josefsson.org>
46972
46973         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
46974         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
46975
46976 2008-08-18  Bruno Haible  <bruno@clisp.org>
46977
46978         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
46979         pthread_in_use().
46980
46981 2008-08-18  Bruno Haible  <bruno@clisp.org>
46982
46983         * lib/glthread/threadlib.c: Include <pthread.h>.
46984
46985 2008-08-18  Bruno Haible  <bruno@clisp.org>
46986
46987         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
46988         glthread_recursive_lock_* macros.
46989         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
46990         Fix syntax error.
46991
46992 2008-08-18  Bruno Haible  <bruno@clisp.org>
46993
46994         * lib/glthread/thread.c: Avoid forcing a context switch right after
46995         thread creation.
46996
46997 2008-08-17  Bruno Haible  <bruno@clisp.org>
46998
46999         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47000         * lib/glthread/thread.h: Provide Win32 specific implementation.
47001         * modules/thread (Files): Add lib/glthread/thread.c.
47002         (Depends-on): Add lock.
47003         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47004
47005 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47006
47007         New module 'yield'.
47008         * modules/yield: New file.
47009         * lib/glthread/yield.h: New file.
47010         * m4/yield.m4: New file.
47011         * MODULES.html.sh (Multithreading): Add yield.
47012
47013 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47014
47015         New module 'thread'.
47016         * modules/thread: New file.
47017         * lib/glthread/thread.h: New file.
47018         * m4/thread.m4: New file.
47019         * MODULES.html.sh (Multithreading): Add thread.
47020
47021 2008-08-17  Bruno Haible  <bruno@clisp.org>
47022
47023         * lib/glthread/lock.h: Include <stdlib.h> always.
47024         * lib/glthread/tls.h: Likewise.
47025         * lib/glthread/cond.h: Likewise.
47026
47027 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47028
47029         New module 'cond'.
47030         * modules/cond: New file.
47031         * lib/glthread/cond.h: New file.
47032         * lib/glthread/cond.c: New file.
47033         * m4/cond.m4: New file.
47034         * MODULES.html.sh (Multithreading): Add cond.
47035
47036 2008-08-16  Eric Blake  <ebb9@byu.net>
47037
47038         c-stack: fix regression on Irix 5.3 from 2008-06-21
47039         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47040         sa_sigaction...
47041         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47042         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47043         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47044         * modules/signal (Makefile.am): Use the value.
47045         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47046         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47047         * doc/posix-headers/signal.texi (signal.h): Document this
47048         portability issue.
47049         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47050         Reported by Tom G. Christensen.
47051
47052 2008-08-17  Bruno Haible  <bruno@clisp.org>
47053
47054         New module 'threadlib'.
47055         * modules/threadlib: New file.
47056         * lib/glthread/threadlib.c: New file, extracted from
47057         lib/glthread/lock.c.
47058         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47059         functions.
47060         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47061         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47062         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47063         macros.
47064         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47065         (gl_DISABLE_THREADS): Remove macro.
47066         * modules/lock (Files): Remove build-aux/config.rpath.
47067         (Depends-on): Remove havelib. Add threadlib.
47068         (configure.ac-early): Remove section.
47069         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47070         * modules/tls (Depends-on): Remove lock. Add threadlib.
47071         (Link): New section, copied from threadlib.
47072         * MODULES.html.sh (Multithreading): Add threadlib.
47073
47074 2008-08-14  Bruno Haible  <bruno@clisp.org>
47075
47076         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47077         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47078         glthread_rwlock_unlock, glthread_rwlock_destroy,
47079         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47080         glthread_recursive_lock_destroy): Define as macros always.
47081         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47082         glthread_lock_lock.
47083         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47084         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47085         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47086         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47087         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47088         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47089         (glthread_recursive_lock_lock_func): Renamed from
47090         glthread_recursive_lock_lock.
47091         (glthread_recursive_lock_unlock_func): Renamed from
47092         glthread_recursive_lock_unlock.
47093         (glthread_recursive_lock_destroy_func): Renamed from
47094         glthread_recursive_lock_destroy.
47095
47096 2008-08-14  Bruno Haible  <bruno@clisp.org>
47097
47098         * lib/glthread/lock.h: Renamed from lib/lock.h.
47099         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47100         * lib/glthread/tls.h: Renamed from lib/tls.h.
47101         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47102         * lib/fstrcmp.c: Update includes.
47103         * lib/strsignal.c: Update includes.
47104         * modules/lock (Files, Makefile.am): Update.
47105         (Include): Change to "glthread/lock.h".
47106         * modules/tls (Files, Makefile.am): Update.
47107         (Include): Change to "glthread/tls.h".
47108         * tests/test-lock.c: Update includes.
47109         * tests/test-tls.c: Update includes.
47110         * NEWS: Mention the renamed header files.
47111
47112 2008-08-11  Jim Meyering  <meyering@redhat.com>
47113
47114         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47115
47116 2008-08-11  Eric Blake  <ebb9@byu.net>
47117
47118         test-c-stack: avoid C99-ism
47119         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47120         before statement.
47121         Reported by Alain Guibert.
47122
47123 2008-08-10  Jim Meyering  <meyering@redhat.com>
47124
47125         ensure that return value of uinttostr et al are not ignored
47126         * lib/inttostr.h (__GNUC_PREREQ): Define.
47127         (__attribute_warn_unused_result__): Define.
47128         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47129
47130 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47131
47132         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47133         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47134
47135 2008-08-07  Jim Meyering  <meyering@redhat.com>
47136
47137         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47138
47139         * modules/mkstemp (License): Relicense under LGPLv2+.
47140         * modules/tempname (License): Likewise.
47141
47142 2008-08-06  Bruno Haible  <bruno@clisp.org>
47143
47144         * lib/poll.c (poll): Further micro-optimization.
47145
47146 2008-08-06  Jim Meyering  <meyering@redhat.com>
47147
47148         inet_pton.c: use locale-independent tolower
47149         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47150         (inet_pton6): Use c_tolower rather than tolower.
47151         * modules/inet_pton (Depends-on): Add c-ctype.
47152
47153 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47154
47155         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47156         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47157
47158 2008-08-06  Jim Meyering  <meyering@redhat.com>
47159
47160         * modules/inet_pton (License): Relicense under LGPLv2+.
47161
47162 2008-08-03  Bruno Haible  <bruno@clisp.org>
47163
47164         Additional non-aborting API for lock and tls.
47165         * lib/lock.h: Include <errno.h>.
47166         (glthread_lock_init): New macro/function.
47167         (gl_lock_init): Define as wrapper around glthread_lock_init.
47168         (glthread_lock_lock): New macro/function.
47169         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47170         (glthread_lock_unlock): New macro/function.
47171         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47172         (glthread_lock_destroy): New macro/function.
47173         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47174         (glthread_rwlock_init): New macro/function.
47175         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47176         (glthread_rwlock_rdlock): New macro/function.
47177         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47178         (glthread_rwlock_wrlock): New macro/function.
47179         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47180         (glthread_rwlock_unlock): New macro/function.
47181         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47182         (glthread_rwlock_destroy): New macro/function.
47183         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47184         (glthread_recursive_lock_init): New macro/function.
47185         (gl_recursive_lock_init): Define as wrapper around
47186         glthread_recursive_lock_init.
47187         (glthread_recursive_lock_lock): New macro/function.
47188         (gl_recursive_lock_lock): Define as wrapper around
47189         glthread_recursive_lock_lock.
47190         (glthread_recursive_lock_unlock): New macro/function.
47191         (gl_recursive_lock_unlock): Define as wrapper around
47192         glthread_recursive_lock_unlock.
47193         (glthread_recursive_lock_destroy): New macro/function.
47194         (gl_recursive_lock_destroy): Define as wrapper around
47195         glthread_recursive_lock_destroy.
47196         (glthread_once): New macro/function.
47197         (gl_once): Define as wrapper around glthread_once.
47198         Update function declarations.
47199         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47200         glthread_rwlock_init. Return error code.
47201         (glthread_rwlock_rdlock_multithreaded): Renamed from
47202         glthread_rwlock_rdlock. Return error code.
47203         (glthread_rwlock_wrlock_multithreaded): Renamed from
47204         glthread_rwlock_wrlock. Return error code.
47205         (glthread_rwlock_unlock_multithreaded): Renamed from
47206         glthread_rwlock_unlock. Return error code.
47207         (glthread_rwlock_destroy_multithreaded): Renamed from
47208         glthread_rwlock_destroy. Return error code.
47209         (glthread_recursive_lock_init_multithreaded): Renamed from
47210         glthread_recursive_lock_init. Return error code.
47211         (glthread_recursive_lock_lock_multithreaded): Renamed from
47212         glthread_recursive_lock_lock. Return error code.
47213         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47214         glthread_recursive_lock_unlock. Return error code.
47215         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47216         glthread_recursive_lock_destroy. Return error code.
47217         (glthread_once_call): Make static.
47218         (glthread_once_multithreaded): Renamed from glthread_once.
47219         * lib/tls.h: Include <errno.h>.
47220         (glthread_tls_key_init): New macro/function.
47221         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47222         (glthread_tls_set): New macro/function.
47223         (gl_tls_set): Define as wrapper around glthread_tls_set.
47224         (glthread_tls_key_destroy): New macro/function.
47225         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47226         Update function declarations.
47227         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47228         glthread_tls_get.
47229         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47230
47231 2008-08-04  Eric Blake  <ebb9@byu.net>
47232
47233         gnumakefile: use space, not TAB, outside of targets
47234         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47235
47236 2008-08-02  Jim Meyering  <meyering@redhat.com>
47237
47238         getdate.y: avoid locale-dependent date parsing failure
47239         In Turkish locales, getdate would fail to recognize keywords
47240         containing a lowercase "i".  The solution is not to rely on
47241         locale-sensitive case-conversion.
47242         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47243         (lookup_word): Use c_toupper in place of toupper.
47244         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
47245         Reported by Vefa Bicakci <bicave@superonline.com> in
47246         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
47247         * modules/getdate (Depends-on): Add c-ctype.
47248
47249 2008-08-02  Bruno Haible  <bruno@clisp.org>
47250
47251         * gnulib-tool (func_import): When updating or creating a .gitignore
47252         file, prepend each added line with a slash, and ignore leading slashes
47253         from the existing lines.
47254         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47255
47256 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47257
47258         Portability fix for GNU make 3.79.1.
47259         * top/GNUmakefile: Avoid 'else COND', which older GNU make
47260         versions do not understand.
47261
47262 2008-08-01  Bruno Haible  <bruno@clisp.org>
47263
47264         Work around bug of HP-UX 10.20 cc with -0.0 literal.
47265         * tests/test-isnanf.h (zero): New variable.
47266         (main): Avoid literal -0.0f.
47267         * tests/test-isnand.h (zero): New variable.
47268         (main): Avoid literal -0.0.
47269         * tests/test-isnanl.h (zero): New variable.
47270         (main): Avoid literal -0.0L.
47271         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
47272         (test_float, test_double, test_long_double): Avoid literals -0.0f,
47273         -0.0, -0.0L.
47274         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
47275         (test_signbitd): Avoid literal -0.0.
47276         (test_signbitl): Avoid literal -0.0L.
47277         * tests/test-ceilf1.c (zero): New variable.
47278         (main): Avoid literal -0.0f.
47279         * tests/test-ceill.c (zero): New variable.
47280         (main): Avoid literal -0.0L.
47281         * tests/test-floorf1.c (zero): New variable.
47282         (main): Avoid literal -0.0f.
47283         * tests/test-floorl.c (zero): New variable.
47284         (main): Avoid literal -0.0L.
47285         * tests/test-roundf1.c (zero): New variable.
47286         (main): Avoid literal -0.0f.
47287         * tests/test-round1.c (zero): New variable.
47288         (main): Avoid literal -0.0.
47289         * tests/test-roundl.c (zero): New variable.
47290         (main): Avoid literal -0.0L.
47291         * tests/test-truncf1.c (zero): New variable.
47292         (main): Avoid literal -0.0f.
47293         * tests/test-trunc1.c (zero): New variable.
47294         (main): Avoid literal -0.0.
47295         * tests/test-truncl.c (zero): New variable.
47296         (main): Avoid literal -0.0L.
47297         * tests/test-frexp.c (zero): New variable.
47298         (main): Avoid literal -0.0.
47299         * tests/test-frexpl.c (zero): New variable.
47300         (main): Avoid literal -0.0L.
47301         * tests/test-ldexpl.c (zero): New variable.
47302         (main): Avoid literal -0.0L.
47303         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47304         (zerod, zerol): New variables.
47305         (test_function): Avoid literals -0.0, -0.0L.
47306         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47307         (zerod, zerol): New variables.
47308         (test_function): Avoid literals -0.0, -0.0L.
47309         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47310         (zerod, zerol): New variables.
47311         (test_function): Avoid literals -0.0, -0.0L.
47312         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47313         (zerod, zerol): New variables.
47314         (test_function): Avoid literals -0.0, -0.0L.
47315         * tests/test-strtod.c (zero): New variable.
47316         (main): Avoid literal -0.0.
47317         Reported by Jonathan C. Patschke <jp@centtech.com>.
47318
47319 2008-07-31  Jim Meyering  <meyering@redhat.com>
47320
47321         sha256.h: correct definition of SHA224_DIGEST_SIZE
47322         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
47323         Reported by Paulie Pena IV <paulie4@gmail.com>.
47324         Define as 224 / 8, rather than as a literal.
47325         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
47326         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
47327         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
47328
47329 2008-07-31  Bruno Haible  <bruno@clisp.org>
47330
47331         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
47332         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
47333         Reported by Jonathan Patschke <jp@centtech.com>.
47334
47335 2008-07-31  Bruno Haible  <bruno@clisp.org>
47336
47337         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
47338         Reported by Paolo Bonzini <bonzini@gnu.org>.
47339
47340 2008-07-30  Eric Blake  <ebb9@byu.net>
47341
47342         test-strtod: allow compilation without -lm
47343         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47344         Reported by Dennis Clarke <blastwave@gmail.com>.
47345
47346 2008-07-28  Jim Meyering  <meyering@redhat.com>
47347
47348         bootstrap: work also when there are no .po files in po/
47349         * build-aux/bootstrap (update_po_files): Complete the change
47350         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47351
47352 2008-07-27  Jim Meyering  <meyering@redhat.com>
47353
47354         * users.txt: Add zile.
47355
47356 2008-07-26  Ben Pfaff  <blp@gnu.org>
47357
47358         Add missing dependencies on new m4/exponent[fdl].m4 files.
47359         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47360         * modules/isnand-nolibm: Add m4/exponentd.m4.
47361         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47362         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47363         m4/isnan[fdl].m4, because the macros actually used moved.
47364         Reported by Jim Meyering.
47365
47366 2008-07-14  Ben Pfaff  <blp@gnu.org>
47367
47368         Add isinf module.
47369         * lib/isinf.c: New file.
47370         * lib/math.in.h: Define isinf macro if we have decided to replace
47371         it.
47372         * m4/isinf.m4: New file.
47373         * m4/math_h.m4: Initialize and substitute variables for isinf
47374         module.
47375         * modules/isinf: New file.
47376         * modules/isinf-tests: New file.
47377         * modules/math: Add substitutions for new module.
47378         * tests/test-isinf.c: New file.
47379         * doc/posix-functions/isinf.texi: Mention new module.
47380         * MODULES.html.sh: Mention new module.
47381
47382 2008-07-14  Ben Pfaff  <blp@gnu.org>
47383
47384         Factor out some macros for use by additional modules.
47385         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
47386         exponentf.m4.
47387         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
47388         exponentd.m4.
47389         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
47390         file exponentl.m4.
47391         * m4/exponentf.m4: New file.
47392         * m4/exponentd.m4: New file.
47393         * m4/exponentl.m4: New file.
47394         * modules/isnanf: Use new file m4/exponentf.m4.
47395         * modules/isnand: Use new file m4/exponentd.m4.
47396         * modules/isnanl: Use new file m4/exponentl.m4.
47397
47398 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
47399
47400         mktime.c: normalize tp->tm_isdst value to -1/0/1.
47401         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
47402         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
47403         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
47404
47405         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
47406         readlink on platforms without PATH_MAX.
47407
47408 2008-07-21  Eric Blake  <ebb9@byu.net>
47409
47410         Warn, not fail, on stale version.
47411         * top/GNUmakefile (_curr-ver): Tone down previous patch.
47412
47413         Don't allow installation with stale devel version number.
47414         * top/GNUmakefile (_is-install-target): New macro.
47415         (_curr-ver): Forbid installation with stale version number.
47416
47417 2008-07-20  Bruno Haible  <bruno@clisp.org>
47418
47419         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
47420         TESTS_ENVIRONMENT.
47421         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
47422
47423 2008-07-20  Bruno Haible  <bruno@clisp.org>
47424
47425         * lib/c-stack.h (c_stack_action): Add documentation.
47426         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
47427
47428 2008-07-20  Bruno Haible  <bruno@clisp.org>
47429
47430         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
47431         * modules/readlink (License): Likewise.
47432
47433 2008-07-17  Eric Blake  <ebb9@byu.net>
47434
47435         * modules/c-stack (Link): Fix typo.
47436
47437         Make c-stack use libsigsegv, when available.
47438         * modules/c-stack (Depends-on): Add libsigsegv.
47439         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
47440         needed.
47441         * lib/c-stack.c (SIGSTKSZ): Define fallback.
47442         (segv_handler, overflow_handler, c_stack_action)
47443         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
47444         implementation when libsigsegv is available, but only when using
47445         the library is necessary.
47446         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
47447         comment, explaining why XSI check fails on Linux.
47448         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
47449         * tests/test-c-stack2.sh: Tweak skip message.
47450         * NEWS: Document new link-time requirements.
47451
47452 2008-07-16  Eric Blake  <ebb9@byu.net>
47453
47454         c-stack: Expose false positives when not using libsigsegv.
47455         * modules/c-stack-tests (Files): Expand test.
47456         * tests/test-c-stack.c (main): Add means to conditionally trigger
47457         non-overflow SIGSEGV.
47458         * tests/test-c-stack2.sh: New file.
47459
47460 2008-07-14  Bruno Haible  <bruno@clisp.org>
47461
47462         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
47463         Reported by Eric Blake.
47464
47465 2008-07-14  Sam Steingold  <sds@gnu.org>
47466             Bruno Haible  <bruno@clisp.org>
47467
47468         New module libsigsegv.
47469         * modules/libsigsegv: New file.
47470         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
47471         modifications.
47472         * MODULES.html.sh (Signal handling): New section.
47473
47474 2008-07-14  Bruno Haible  <bruno@clisp.org>
47475
47476         * modules/unictype/ctype-* (Description): Add the word "function".
47477         Improves the resulting doc in MODULES.html.
47478
47479 2008-07-12  Ben Pfaff  <blp@gnu.org>
47480
47481         Add longlong module.
47482         * modules/longlong: New file.
47483
47484 2008-07-12  Bruno Haible  <bruno@clisp.org>
47485
47486         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
47487         to empty.
47488
47489 2008-07-10  Ben Pfaff  <blp@gnu.org>
47490
47491         Add isnan module.
47492         * doc/posix-functions/isnan.texi: Mention new module.
47493         * lib/math.in.h: Define isnan macro if we have decided to replace
47494         it.
47495         * m4/isnan.m4: New file.
47496         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
47497         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
47498         also.
47499         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
47500         redundancy.
47501         * m4/math_h.m4: Initialize and substitute variables for isnan
47502         module.
47503         * modules/isnan: New file.
47504         * modules/isnan-tests: New file.
47505         * modules/math: Add substitutions for new module.
47506         * tests/test-isnan.c: New file.
47507         * MODULES.html.sh: Mention new module.
47508
47509 2008-07-10  Ben Pfaff  <blp@gnu.org>
47510
47511         Add isnanf module.
47512         * lib/isnanf.m4: New file.
47513         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
47514         (gl_HAVE_ISNANF_IN_LIBM): New macro.
47515         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
47516         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
47517         * modules/isnanf: New file.
47518         * modules/isnanf-tests: New file.
47519         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
47520         files.
47521         * tests/test-isnanf-nolibm.c: factored most of its contents into
47522         new file tests/test-isnanf.h.
47523         * tests/test-isnanf.h: New file.
47524         * tests/test-isnanf.c: New file.
47525         * MODULES.html.sh: Mention new module.
47526         * doc/glibc-functions/isnanf.texi: Mention new module.
47527
47528 2008-07-10  Ben Pfaff  <blp@gnu.org>
47529
47530         Add isnand module.
47531         * lib/isnand.h: New file.
47532         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
47533         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
47534         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
47535         functionality also.
47536         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
47537         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
47538         (gl_HAVE_ISNAND_IN_LIBM): New macro.
47539         * modules/isnand: New file.
47540         * modules/isnand-tests: New file.
47541         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
47542         files.
47543         * tests/test-isnand-nolibm.c: factored most of its contents into
47544         new file tests/test-isnand.h.
47545         * tests/test-isnand.h: New file.
47546         * tests/test-isnand.c: New file.
47547         * MODULES.html.sh: Mention new module.
47548
47549 2008-07-10  Ben Pfaff  <blp@gnu.org>
47550
47551         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
47552         * lib/isnand.h: Rename lib/isnand-nolibm.h.
47553         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
47554         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
47555         * modules/isnanf-nolibm: Update references to renamed files.
47556         * modules/isnand-nolibm: Likewise.
47557         * modules/isnanf-nolibm-tests: Likewise.
47558         * modules/isnand-nolibm-tests: Likewise.
47559         * lib/frexp.c: Likewise.
47560         * lib/isfinite.c: Likewise.
47561         * lib/signbitd.c: Likewise.
47562         * lib/signbitf.c: Likewise.
47563         * lib/vasnprintf.c: Likewise.
47564         * tests/test-ceilf1.c: Likewise.
47565         * tests/test-ceilf2.c: Likewise.
47566         * tests/test-floorf1.c: Likewise.
47567         * tests/test-floorf2.c: Likewise.
47568         * tests/test-frexp.c: Likewise.
47569         * tests/test-round1.c: Likewise.
47570         * tests/test-round2.c: Likewise.
47571         * tests/test-roundf1.c: Likewise.
47572         * tests/test-strtod.c: Likewise.
47573         * tests/test-trunc1.c: Likewise.
47574         * tests/test-trunc2.c: Likewise.
47575         * tests/test-truncf1.c: Likewise.
47576         * tests/test-truncf2.c: Likewise.
47577         * NEWS: Mention the renamed header files.
47578
47579 2008-07-11  Jim Meyering  <meyering@redhat.com>
47580
47581         vc-list-files: make the last-resort awk code more portable
47582         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
47583         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
47584         does not support it.
47585
47586 2008-07-10  Eric Blake  <ebb9@byu.net>
47587
47588         Work with tar's bootstrap.
47589         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
47590         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
47591         an m4 comment.
47592
47593 2008-07-09  Jim Meyering  <meyering@redhat.com>
47594
47595         posix-shell.m4: fix typo that made this test malfunction
47596         * m4/posix-shell.m4: Remove capitalization in variable name.
47597
47598 2008-07-08  Bruno Haible  <bruno@clisp.org>
47599
47600         * m4/onceonly.m4: Update comments.
47601         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47602
47603 2008-07-04  Jim Meyering  <meyering@redhat.com>
47604
47605         * users.txt: Add vc-dwim.
47606         (bison, coreutils): Use the gitweb URL.
47607
47608 2008-07-03  Jim Meyering  <meyering@redhat.com>
47609
47610         * users.txt: Add libffcall.  From Sam Steingold.
47611
47612 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
47613
47614         getdate.y: do not ignore TZ with relative day, month or year offset
47615         * lib/getdate.y (get_date): Move the tz-handling block to follow the
47616         relative-date-handling, since otherwise, the latter would clobber the
47617         sole output (an updated Start value) of the tz-handling block.
47618         * tests/test-getdate.c: Tests for the fix
47619
47620 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47621
47622         Recognize 'foo_LIBRARIES += libgnu.a'.
47623         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
47624         makefile snippet has already specified an installation location,
47625         also using '+='.
47626
47627 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
47628
47629         getdate.y: factor out common actions
47630         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
47631         Use them in place of open-coded actions.
47632
47633 2008-07-01  Simon Josefsson  <simon@josefsson.org>
47634
47635         Add self-test for getdate module.
47636         * modules/getdate-tests: New file.
47637         * tests/test-getdate.c: New file.
47638
47639 2008-06-29  Bruno Haible  <bruno@clisp.org>
47640
47641         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
47642         .gitignore.
47643         Reported by Sylvain Beucler <beuc@beuc.net>.
47644
47645 2008-06-29  Bruno Haible  <bruno@clisp.org>
47646
47647         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
47648         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
47649
47650 2008-06-29  Bruno Haible  <bruno@clisp.org>
47651
47652         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
47653         EXTRA_DIST.
47654         Reported by Sylvain Beucler <beuc@beuc.net>.
47655
47656 2008-06-26  Jim Meyering  <meyering@redhat.com>
47657
47658         make several modules depend on the "open" module
47659         This provides slightly increased consistency when opening-for-write
47660         the name of a non-directory spelled with a trailing slash.
47661         * modules/chdir-safer: Likewise.
47662         * modules/chown: Likewise.
47663         * modules/clean-temp: Likewise.
47664         * modules/copy-file: Likewise.
47665         * modules/fchdir: Likewise.
47666         * modules/fcntl-safer: Likewise.
47667         * modules/pipe: Likewise.
47668         * modules/utime: Likewise.
47669         Prompted by Eric Blake and Bruno Haible.
47670
47671 2008-06-24  Andreas Schwab  <schwab@suse.de>
47672
47673         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
47674         literals can be used as initializers for global variables.
47675
47676 2008-06-23  Eric Blake  <ebb9@byu.net>
47677
47678         Make gnulib-cache.m4 easier to diff.
47679         * gnulib-tool (func_import): Allow newlines when reading cached
47680         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
47681
47682 2008-06-23  Bruno Haible  <bruno@clisp.org>
47683
47684         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
47685         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
47686         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
47687         m4/signalblocking.m4.
47688         (gl_PREREQ_SIGACTION): Don't invoke it.
47689         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
47690         gl_PREREQ_SIG_HANDLER_H.
47691         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47692         Don't check for sigaction here.
47693
47694 2008-06-23  Bruno Haible  <bruno@clisp.org>
47695
47696         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
47697         (install_handlers): Don't set the SA_RESETHAND flag.
47698
47699 2008-06-23  Bruno Haible  <bruno@clisp.org>
47700
47701         * m4/sigaction.m4: Comment fixes.
47702         * lib/signal.in.h: Likewise.
47703
47704 2008-06-23  Eric Blake  <ebb9@byu.net>
47705
47706         Fix typo.
47707         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
47708
47709         Avoid SA_ namespace.
47710         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
47711         Reported by Ralf Wildenhues.
47712
47713         Avoid test failure due to SA_RESTORER.
47714         * tests/test-sigaction.c (SA_MASK): New macro.
47715         (main): Avoid failing due to extension flags being set.
47716         Reported by Jim Meyering.
47717
47718         Revert use of sig-handler.h in sigprocmask.c.
47719         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
47720         it requires the existence of struct sigaction.
47721         * lib/sigprocmask.c (handler_t): Restore typedef.
47722         (rpl_signal, old_handlers): Use local type.
47723
47724 2008-06-22  Bruno Haible  <bruno@clisp.org>
47725
47726         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
47727         conditionally.
47728         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47729
47730 2008-06-22  Bruno Haible  <bruno@clisp.org>
47731
47732         * doc/posix-functions/siginterrupt.texi: Move note.
47733
47734         * lib/signal.in.h (SA_RESTART): New macro.
47735         * lib/sigaction.c: Update comment.
47736
47737         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
47738
47739         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
47740         (gl_PREREQ_SIGPROCMASK): Invoke it.
47741         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
47742
47743         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
47744
47745         * lib/sigprocmask.c: Update a comment.
47746
47747 2008-06-21  Eric Blake  <ebb9@byu.net>
47748
47749         Use sigaction module rather than signal().
47750         * modules/c-stack (Depends-on): Add sigaction.
47751         * modules/fatal-signal (Depends-on): Likewise.
47752         * modules/nanosleep (Depends-on): Likewise.
47753         * modules/sigprocmask (Files): Add sig-handler.h.
47754         * modules/sigaction (Files): Likewise.
47755         * lib/sig-handler.h (get_handler): New file, suggested by Paul
47756         Eggert.
47757         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
47758         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
47759         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
47760         (init_fatal_signals): Likewise.
47761         * lib/nanosleep.c (rpl_nanosleep): Likewise.
47762         (siginterrupt): Delete fallback.
47763         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
47764         instead.
47765         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
47766         siginterrupt.
47767
47768         New module sigaction, for mingw.
47769         * modules/sigaction: New module...
47770         * modules/sigaction-tests: ...and its test.
47771         * m4/sigaction.m4: New file.
47772         * lib/sigaction.c: Likewise.
47773         * tests/test-sigaction.c: Likewise.
47774         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
47775         * modules/signal (Makefile.am): Likewise.
47776         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
47777         needed.
47778         * doc/posix-headers/signal.texi (signal.h): Mention provided
47779         types.
47780         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
47781         that sigaction is preferable.
47782         * doc/posix-functions/sigaction.texi (sigaction): Mention new
47783         module.
47784         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47785         sigaction.
47786
47787         Improve robustness of sigprocmask by overriding signal.
47788         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
47789         is in use.
47790         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
47791         (SIGKILL, SIGSTOP): Provide fallbacks.
47792         (rpl_signal): Implement.
47793         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
47794         signal can be called inside handlers.
47795
47796         Fix nanosleep module on mingw.
47797         * modules/nanosleep (Depends-on): Add sys_select.
47798         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
47799
47800         Fix licensing of sigprocmask.
47801         * modules/raise (License): Relicense as LGPL.
47802
47803 2008-06-21  Bruno Haible  <bruno@clisp.org>
47804
47805         * lib/propername.c (proper_name_utf8): Don't use the transliterated
47806         result if it contains question marks.
47807         Reported by Michael Geng <linux@michaelgeng.de>.
47808
47809 2008-06-19  Bruno Haible  <bruno@clisp.org>
47810
47811         Fix CVS-ism.
47812         * doc/gnulib.texi: Include updated-stamp.texi.
47813         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
47814         (updated-stamp.texi): New rule.
47815         (gnulib.info): Depend on it.
47816         * doc/.gitignore: Add updated-stamp.texi.
47817         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
47818
47819 2008-06-19  Bruno Haible  <bruno@clisp.org>
47820
47821         * doc/Makefile (gnulib.info): Update and simplify dependencies.
47822         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47823
47824 2008-06-19  Eric Blake  <ebb9@byu.net>
47825
47826         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
47827         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
47828         Reported by Stepan Kasal.
47829
47830 2008-06-18  Bruno Haible  <bruno@clisp.org>
47831
47832         * lib/fatal-signal.c (init_fatal_signals): Add comment.
47833         Reported by Eric Blake.
47834
47835 2008-06-18  Eric Blake  <ebb9@byu.net>
47836
47837         Work around cygwin 1.5.25 strsignal bug.
47838         * tests/test-strsignal.c: Allow for const char *.
47839         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
47840
47841 2008-06-18  Simon Josefsson  <simon@josefsson.org>
47842
47843         * users.txt: Update URL to article and add author/date
47844         information.
47845
47846 2008-06-17  Bruno Haible  <bruno@clisp.org>
47847
47848         New macro gl_DISABLE_THREADS.
47849         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
47850         if the user did not pass --enable-threads or --disable-threads option.
47851         (gl_DISABLE_THREADS): New macro.
47852         Reported by Eric Blake <ebb9@byu.net>.
47853
47854 2008-06-17  Bruno Haible  <bruno@clisp.org>
47855
47856         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
47857         when the macro ignores it.
47858         Based on a patch by Eric Blake <ebb9@byu.net>.
47859
47860 2008-06-17  Bruno Haible  <bruno@clisp.org>
47861
47862         * modules/tls (License): Change to LGPLv2+.
47863         Reported by Eric Blake.
47864
47865 2008-06-17  Eric Blake  <ebb9@byu.net>
47866
47867         Simplify c-stack prerequisites.
47868         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
47869         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
47870         no longer requires <ucontext.h> to exist.  Optimize setrlimit
47871         check.
47872         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
47873         <sys/resource.h>.
47874
47875         Move c-stack test into testsuite.
47876         * modules/c-stack-tests: New file.
47877         * lib/c-stack.c [DEBUG]: Move test program...
47878         * tests/test-c-stack.c: ...into this new file.  Skip rather than
47879         fail test if sigaltstack is lacking.
47880         * tests/test-c-stack.sh: New driver file.
47881
47882 2008-06-16  Eric Blake  <ebb9@byu.net>
47883
47884         Use raise module consistently.
47885         * modules/fatal-signal (Depends-on): Add raise.
47886         * modules/sigprocmask (Depends-on): Likewise.
47887         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
47888         * lib/sigprocmask.c (sigprocmask): Likewise.
47889         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47890         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
47891
47892         Fix compliance bug in sigpending.
47893         * lib/sigprocmask.c (sigpending): Return pending array via
47894         parameter, not return value.
47895
47896 2008-06-14  Eric Blake  <ebb9@byu.net>
47897
47898         Improve obstack-printf test code.
47899         * tests/test-obstack-printf.c (test_function): Fix comment, and
47900         simplify usage of obstack_* in macros.  Add a test for coverage.
47901         Reported by Bruno Haible.
47902
47903 2008-06-14  Bruno Haible  <bruno@clisp.org>
47904
47905         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
47906         array size as a constant, not as a const variable.
47907         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
47908         AC_USE_SYSTEM_EXTENSIONS.
47909         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47910         Test whether the obstack_printf function actually exists.
47911         * modules/obstack-printf (Depends-on): Add extensions.
47912         (Include): Remove obstack.h.
47913         * modules/obstack-printf-posix (Depends-on): Add extensions.
47914         (Include): Remove obstack.h.
47915
47916 2008-06-13  Eric Blake  <ebb9@byu.net>
47917
47918         Add obstack-printf and obstack-printf-posix modules.
47919         * modules/obstack-printf: New file.
47920         * modules/obstack-printf-posix: Likewise.
47921         * MODULES.html.sh (Misc): Mention them.
47922         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47923         Likewise.
47924         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47925         Likewise.
47926         * modules/stdio (Makefile.am): Accomodate new modules.
47927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47928         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
47929         Declare.
47930         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
47931         functions.
47932         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
47933         (gl_REPLACE_OBSTACK_PRINTF): New macros
47934         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
47935         * tests/test-obstack-printf.c: New file.
47936         * modules/obstack-printf-tests: Likewise.
47937         * modules/obstack-printf-posix-tests: Likewise.
47938
47939 2008-06-11  Bruno Haible  <bruno@clisp.org>
47940
47941         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
47942         * lib/open.c: Include errno.h.
47943         (open): Fail when attempting to write to a file that has a trailing
47944         slash.
47945         * tests/test-open.c (main): Test against trailing slash bug.
47946         * doc/posix-functions/open.texi: Mention the trailing slash bug.
47947
47948 2008-06-10  Bruno Haible  <bruno@clisp.org>
47949
47950         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
47951         for $? to work inside the trap command, with various /bin/sh-s.
47952         * tests/test-vc-list-files-cvs.sh: Likewise.
47953
47954 2008-06-10  Bruno Haible  <bruno@clisp.org>
47955
47956         * lib/acl-internal.h: Don't include gettext.h here.
47957         * lib/set-mode-acl.c: Include gettext.h here.
47958         * lib/copy-acl.c: Likewise.
47959
47960 2008-06-10  Bruno Haible  <bruno@clisp.org>
47961
47962         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
47963         * lib/wait-process.c (wait_subprocess): Likewise.
47964         * lib/execute.h (execute): Add termsigp argument.
47965         * lib/execute.c (execute): Likewise.
47966         * lib/csharpcomp.c (compile_csharp_using_pnet,
47967         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
47968         * lib/csharpexec.c (execute_csharp_using_pnet,
47969         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
47970         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
47971         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
47972         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
47973         is_jikes_present): Update.
47974         * lib/javaexec.c (execute_java_class): Update.
47975         * lib/javaversion.c (execute_and_read_line): Update.
47976         * NEWS: Document the changes.
47977         Reported by Eric Blake.
47978
47979 2008-06-10  Eric Blake  <ebb9@byu.net>
47980
47981         Add missing include.
47982         * tests/test-strstr.c (includes): Add <signal.h>.
47983         * tests/test-strcasestr.c (includes): Likewise.
47984         * tests/test-memmem.c (includes): Likewise.
47985
47986 2008-06-10  Bruno Haible  <bruno@clisp.org>
47987
47988         * lib/wait-process.c (wait_subprocess): Add an assertion.
47989
47990 2008-06-10  Bruno Haible  <bruno@clisp.org>
47991
47992         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
47993
47994 2008-06-10  Bruno Haible  <bruno@clisp.org>
47995
47996         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
47997         using alarm().
47998         * tests/test-strcasestr.c (main): Likewise.
47999         * tests/test-strstr.c (main): Likewise.
48000
48001 2008-06-09  Bruno Haible  <bruno@clisp.org>
48002
48003         Work around the Solaris 10 ACE ACLs ABI change.
48004         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48005         declare if ACL_NO_TRIVIAL is present.
48006         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48007         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48008         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48009         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48010         define if ACL_NO_TRIVIAL is present.
48011         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48012         and use the current ABI.
48013         (file_has_acl): Use same #if condition as elsewhere.
48014         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48015         in use, and use the current ABI.
48016         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48017         Reported by Jim Meyering.
48018
48019 2008-06-09  Eric Blake  <ebb9@byu.net>
48020
48021         Work around environments that (stupidly) ignore SIGALRM.
48022         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48023         before using alarm().
48024         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48025         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48026         Reported by Ian Beckwith <ianb@erislabs.net>.
48027
48028         Produce autobuild blurb earlier in log.
48029         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48030
48031 2008-06-09  Jim Meyering  <meyering@redhat.com>
48032         and OndÅ™ej Vašík  <ovasik@redhat.com>
48033
48034         utimens.c: correct kernel bug work-around
48035         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48036         failure, not success, and the kernel bug we're trying to work
48037         around affects not just the utimensat call, but also the fallback
48038         futimens call.
48039         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48040         not success.
48041         [HAVE_FUTIMENS]: Use the same work-around, here.
48042
48043 2008-06-09  Jim Meyering  <meyering@redhat.com>
48044
48045         add more guards around definition of ACE_-related code
48046         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48047         ALLOW and ACE_OWNER are also defined.
48048
48049 2008-06-08  Bruno Haible  <bruno@clisp.org>
48050
48051         * lib/acl-internal.h: Add me as co-author.
48052         * lib/file-has-acl.c: Likewise.
48053         * lib/set-mode-acl.c: Likewise.
48054         * lib/copy-acl.c: Likewise.
48055
48056 2008-06-08  Bruno Haible  <bruno@clisp.org>
48057
48058         Add support for AIX ACLs.
48059         * lib/acl-internal.h (acl_nontrivial): New declaration.
48060         * lib/file-has-acl.c (acl_nontrivial): New function.
48061         (file_has_acl): Add implementation using AIX 4 ACL API.
48062         * lib/set-mode-acl.c (qset_acl): Likewise.
48063         * lib/copy-acl.c (qcopy_acl): Likewise.
48064
48065 2008-06-08  Bruno Haible  <bruno@clisp.org>
48066
48067         Add support for HP-UX ACLs.
48068         * lib/acl-internal.h (acl_nontrivial): New declaration.
48069         * lib/file-has-acl.c (acl_nontrivial): New function.
48070         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48071         * lib/set-mode-acl.c (qset_acl): Likewise.
48072         * lib/copy-acl.c (qcopy_acl): Likewise.
48073
48074 2008-06-08  Bruno Haible  <bruno@clisp.org>
48075
48076         Add support for Cygwin ACLs.
48077         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48078         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48079         the chmod_or_fchmod call.
48080         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48081
48082 2008-06-08  Bruno Haible  <bruno@clisp.org>
48083
48084         Fix bug with setuid modes in Solaris 10+ code.
48085         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48086         succeeded, when the mode contains some special bits.
48087
48088 2008-06-08  Bruno Haible  <bruno@clisp.org>
48089
48090         Add support for Solaris 7..10 ACLs.
48091         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48092         declarations.
48093         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48094         functions.
48095         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48096         * lib/set-mode-acl.c (qset_acl): Likewise.
48097         * lib/copy-acl.c (qcopy_acl): Likewise.
48098
48099 2008-06-08  Bruno Haible  <bruno@clisp.org>
48100
48101         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48102         declaration.
48103         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48104         (acl_access_nontrivial): Remove MacOS X case.
48105         (file_has_acl): Use acl_extended_nontrivial.
48106         * lib/copy-acl.c (qcopy_acl): Likewise.
48107
48108 2008-06-08  Bruno Haible  <bruno@clisp.org>
48109
48110         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48111
48112 2008-06-08  Jim Meyering  <meyering@redhat.com>
48113
48114         * modules/acl (Maintainer): Add Bruno Haible.
48115
48116 2008-06-07  Bruno Haible  <bruno@clisp.org>
48117
48118         Improve support for Tru64 ACLs.
48119         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48120         ACL on OSF/1.
48121
48122 2008-06-07  Bruno Haible  <bruno@clisp.org>
48123
48124         Add support for MacOS X ACLs.
48125         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48126         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48127         * lib/set-mode-acl.c (qset_acl): Likewise.
48128         * lib/copy-acl.c (qcopy_acl): Likewise.
48129
48130 2008-06-07  Bruno Haible  <bruno@clisp.org>
48131
48132         Fix memory leak introduced on 2008-05-22.
48133         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48134         use.
48135
48136 2008-06-07  Bruno Haible  <bruno@clisp.org>
48137
48138         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48139         to construct an empty ACL.
48140
48141 2008-06-07  Bruno Haible  <bruno@clisp.org>
48142
48143         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48144         precisely.
48145         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48146
48147 2008-06-07  Bruno Haible  <bruno@clisp.org>
48148
48149         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48150         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48151
48152 2008-06-07  Bruno Haible  <bruno@clisp.org>
48153
48154         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48155         regardless of POSIX.
48156         * doc/posix-functions/_longjmp.texi: Likewise.
48157         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48158         SystemV platform in this case.
48159
48160 2008-06-06  Eric Blake  <ebb9@byu.net>
48161
48162         Document abort() bugs.
48163         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48164
48165         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48166         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48167         sigsetjmp.
48168         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48169         siglongjmp, but only as a macro.
48170         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48171         is obsolete.
48172         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48173
48174         Tweak documentation to cover cygwin argz bugs.
48175         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48176         argz bug fix; no code change needed since no cygwin releases
48177         occurred between the last fix and the bug being tested.
48178         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48179         module and recently fixed cygwin bugs.
48180         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48181         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48182         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48183         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48184         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48185         Likewise.
48186         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48187         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48188         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48189         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48190         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48191         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48192         Likewise.
48193
48194         Avoid gcc warning on cygwin.
48195         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48196         !ACL_NO_TRIVIAL]: Avoid unused variable.
48197
48198 2008-06-05  Eric Blake  <ebb9@byu.net>
48199
48200         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48201         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48202         git-version-gen fails to come up with a version.
48203         Reported by Simon Josefsson.
48204
48205 2008-06-05  Jim Meyering  <meyering@redhat.com>
48206             Paul Eggert  <eggert@cs.ucla.edu>
48207
48208         utimens.c: work around a probable Linux kernel bug
48209         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48210         appears to be a kernel bug that causes utimensat to return 280
48211         instead of 0, indicating success.
48212
48213 2008-06-04  Bruno Haible  <bruno@clisp.org>
48214
48215         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48216         2008-06-01 commit.
48217
48218 2008-06-04  Bruno Haible  <bruno@clisp.org>
48219
48220         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48221         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48222         (file_has_acl): Use it. Save errno afterwards.
48223         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48224
48225 2008-06-03  Bruno Haible  <bruno@clisp.org>
48226
48227         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48228         draft code. Simplify #ifs.
48229         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48230         Put Solaris code after POSIX-draft code. Fix comments regarding
48231         Solaris 10, HP-UX. Mention Cygwin.
48232         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48233
48234 2008-06-03  Eric Blake  <ebb9@byu.net>
48235
48236         Provide fallback for older kernels.
48237         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48238         Provide runtime fallback if kernel lacks support.
48239         Reported by Mike Frysinger.
48240
48241 2008-06-02  Bruno Haible  <bruno@clisp.org>
48242
48243         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48244         it exists.
48245
48246 2008-06-02  Bruno Haible  <bruno@clisp.org>
48247
48248         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
48249         * lib/copy-acl.c (qcopy_acl): Update comment.
48250
48251 2008-06-02  Bruno Haible  <bruno@clisp.org>
48252
48253         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
48254         like ACL APIs.
48255
48256 2008-06-02  Bruno Haible  <bruno@clisp.org>
48257
48258         * tests/test-file-has-acl.sh: Use different code for Cygwin.
48259         * tests/test-set-mode-acl.sh: Likewise.
48260         * tests/test-copy-acl.sh: Likewise.
48261         * tests/test-copy-file.sh: Likewise.
48262
48263 2008-06-02  Bruno Haible  <bruno@clisp.org>
48264
48265         * tests/test-file-has-acl.sh: Remove unused code.
48266
48267 2008-06-01  Bruno Haible  <bruno@clisp.org>
48268
48269         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
48270         (copy_acl): Just a wrapper around qcopy_acl that emits the error
48271         messages.
48272         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
48273
48274 2008-06-01  Bruno Haible  <bruno@clisp.org>
48275
48276         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
48277         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
48278         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
48279         APIs.
48280         * modules/acl-tests (configure.ac): Remove tests now contained in
48281         m4/acl.m4.
48282
48283 2008-06-02  Jim Meyering  <meyering@redhat.com>
48284
48285         announce-gen: use a better key-server host name
48286         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
48287         it may be more consistently reliable.  Suggested by Werner Koch
48288         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
48289
48290 2008-06-01  Bruno Haible  <bruno@clisp.org>
48291
48292         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
48293         Reported by Voroskoi Andras <voroskoi@gmail.com>.
48294
48295 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
48296
48297         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
48298
48299 2008-06-01  Bruno Haible  <bruno@clisp.org>
48300
48301         New ACL tests.
48302         * tests/test-file-has-acl.sh: New file.
48303         * tests/test-file-has-acl.c: New file.
48304         * tests/test-set-mode-acl.sh: New file.
48305         * tests/test-set-mode-acl.c: New file.
48306         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
48307         * tests/test-copy-acl.c: New file.
48308         * modules/acl-tests: New file, based on modules/copy-file-tests.
48309         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
48310         (Depends-on): Add acl-tests.
48311         (configure.ac): Remove checks.
48312         (Makefile.am): Don't create test-sameacls program here any more.
48313
48314 2008-06-01  Bruno Haible  <bruno@clisp.org>
48315
48316         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
48317         * tests/test-sameacls.c: Include progname.h.
48318         (main): Invoke set_program_name. Portability fixes for MacOS X,
48319         Solaris, HP-UX.
48320
48321 2008-06-01  Bruno Haible  <bruno@clisp.org>
48322
48323         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
48324         function.
48325         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
48326
48327 2008-06-01  Bruno Haible  <bruno@clisp.org>
48328
48329         * modules/rpmatch (Depends-on): Add strdup.
48330
48331 2008-06-01  Bruno Haible  <bruno@clisp.org>
48332
48333         * lib/pipe.c: Include unistd-safer.h.
48334         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
48335         * modules/pipe (Depends-on): Add unistd-safer.
48336
48337 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48338
48339         * modules/autobuild (configure.ac): Call AB_INIT.
48340
48341 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48342
48343         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48344         Suggested by Bruno Haible <bruno@clisp.org>.
48345
48346 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48347
48348         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48349         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48350         <bruno@clisp.org>.
48351
48352 2008-05-29  Eric Blake  <ebb9@byu.net>
48353
48354         Prefer new POSIX 200x interfaces over futimesat.
48355         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48356         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48357         when available.
48358         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48359
48360 2008-05-28  Bruno Haible  <bruno@clisp.org>
48361
48362         * modules/stpcpy (License): Change to LGPLv2+.
48363         Requested by David Lutterkort <dlutter@redhat.com>.
48364
48365 2008-05-27  Bruno Haible  <bruno@clisp.org>
48366
48367         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48368         current mingw.
48369         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48370
48371 2008-05-27  Bruno Haible  <bruno@clisp.org>
48372
48373         * modules/iconv_open (Link): New section, from module 'iconv'.
48374         * modules/striconv (Link): Likewise.
48375         * modules/striconveh (Link): Likewise.
48376         * modules/xstriconv (Link): Likewise.
48377         * modules/unicodeio (Link): Likewise.
48378         * modules/propername (Link): Likewise.
48379         Reported by Jim Meyering.
48380
48381 2008-05-26  Jim Meyering  <meyering@redhat.com>
48382
48383         sha256: do not artificially restrict buffer length to be < 2^32
48384         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
48385         uint32_t to size_t.
48386         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
48387         to match.
48388
48389         avoid unaligned access errors, e.g., on sparc
48390         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
48391         direct access through a possibly-unaligned uint64* pointer.
48392         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
48393         direct access through a possibly-unaligned uint32* pointer.
48394         Prompted by this patch from Tom "spot" Callaway:
48395         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
48396
48397         sha512.c: fix typo in comment
48398         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
48399
48400 2008-05-25  Bruno Haible  <bruno@clisp.org>
48401
48402         * lib/set-mode-acl.c: Renamed from lib/acl.c.
48403         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
48404         (Makefile.am): Update lib_SOURCES.
48405
48406 2008-05-25  Bruno Haible  <bruno@clisp.org>
48407
48408         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
48409
48410 2008-05-25  Jim Meyering  <meyering@redhat.com>
48411
48412         useless-if-before-free: freed expr may have white-space differences
48413         * build-aux/useless-if-before-free: Recognize cases in which the
48414         freed expression differs from the tested one in embedded white
48415         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48416         $1 was used, so we can't make any regexp shy.  Improved tests now
48417         detect this.
48418
48419         useless-if-before-free: accept white space in the expression.
48420         * build-aux/useless-if-before-free: For now, any white space
48421         in the expression must be identical in the free argument.
48422
48423         useless-if-before-free: efficiency tweak
48424         * build-aux/useless-if-before-free: Make the expression-matching
48425         regexp "shy".
48426         Make the *outer* regexp shy, not the expr-matching one.
48427
48428         update code-in-comment to accept cast of free arg
48429         * build-aux/useless-if-before-free: Update regexp.
48430
48431 2008-05-25  Bruno Haible  <bruno@clisp.org>
48432
48433         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
48434         * modules/copy-file-tests (Files, Makefile.am): Update.
48435         * tests/test-copy-file.c (func_test_copy): Update.
48436
48437 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
48438
48439         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
48440
48441 2008-05-23  Bruno Haible  <bruno@clisp.org>
48442
48443         Improve support for ACLs on OSF/1.
48444         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
48445         Remove fallback for unknown flavors of ACLs.
48446
48447 2008-05-22  Bruno Haible  <bruno@clisp.org>
48448
48449         Add support for ACLs on OSF/1.
48450         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
48451         replacements.
48452         (acl_free_text): New macro fallback.
48453         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
48454         acl_free.
48455         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
48456         acl_free_text function. Require AC_C_INLINE.
48457
48458 2008-05-22  Bruno Haible  <bruno@clisp.org>
48459
48460         Make copy_acl work on MacOS X 10.5.
48461         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
48462         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
48463         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
48464         If MODE_INSIDE_ACL, don't assume that every system has the same text
48465         representation for ACLs as FreeBSD.
48466         * lib/copy-acl.c (copy_acl): Add support for platforms with
48467         !MODE_INSIDE_ACL.
48468         * lib/file-has-acl.c (file_has_acl): Likewise.
48469         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
48470         FreeBSD, MacOS X, or IRIX, respectively.
48471
48472 2008-05-22  Bruno Haible  <bruno@clisp.org>
48473
48474         * lib/acl.h: Don't include <sys/acl.h>.
48475         (GETACLCNT): Move fallback to lib/acl-internal.h.
48476         * lib/acl-internal.h: Include <sys/acl.h> here.
48477         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
48478
48479 2008-05-22  Bruno Haible  <bruno@clisp.org>
48480
48481         Split off copy_acl function to separate file.
48482         * lib/copy-acl.c: New file, extracted from lib/acl.c.
48483         * lib/acl.c (copy_acl): Moved function to separate file.
48484         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
48485         * modules/acl (Files): Add lib/copy-acl.c.
48486         (Makefiles.am): Augment lib_SOURCES.
48487
48488 2008-05-22  Bruno Haible  <bruno@clisp.org>
48489
48490         * modules/copy-file-tests: New file.
48491         * tests/test-copy-file.sh: New file.
48492         * tests/test-copy-file.c: New file.
48493         * tests/test-copy-file-sameacls.c: New file.
48494
48495 2008-05-22  Eric Blake  <ebb9@byu.net>
48496
48497         Avoid gcc warning.
48498         * tests/test-memcmp.c (main): Pass NULL indirectly.
48499
48500 2008-05-21  Bruno Haible  <bruno@clisp.org>
48501
48502         Add reference doc about ACLs.
48503         * doc/acl-resources.txt: New file.
48504         * doc/acl-cygwin.txt: New file.
48505
48506 2008-05-21  Bruno Haible  <bruno@clisp.org>
48507
48508         Avoid one more warning from gcc.
48509         * lib/vasnprintf.c (IF_LINT): Update comments.
48510         (VASNPRINTF): Use it also for the 'prefix' array initializer.
48511
48512 2008-05-21  Jim Meyering  <meyering@redhat.com>
48513
48514         avoid a warning from gcc
48515         * lib/vasnprintf.c (IF_LINT): Define.
48516         (scale10_round_decimal_long_double):
48517         Use it to avoid a "may be used uninitialized" warning.
48518         (scale10_round_decimal_double): Likewise.
48519
48520 2008-05-21  Simon Josefsson  <simon@josefsson.org>
48521
48522         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
48523         declared.
48524
48525 2008-05-20  Bruno Haible  <bruno@clisp.org>
48526
48527         * tests/test-memcmp.c (main): Test also the sign of the result. Test
48528         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
48529
48530 2008-05-20  Simon Josefsson  <simon@josefsson.org>
48531
48532         * modules/memcmp-tests: New file.
48533         * tests/test-memcmp.c: New file.
48534
48535 2008-05-19  Bruno Haible  <bruno@clisp.org>
48536
48537         * modules/propername (Notice, configure.ac): Put quoted "..." into
48538         --keyword option.
48539         * lib/propername.h: Update comments accordingly.
48540         Reported by Eric Blake.
48541
48542 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
48543
48544         * modules/getpass-gnu (Depends-on): Add fseeko.
48545
48546 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48547
48548         * modules/base64-tests: New file.
48549
48550 2008-05-19  Bo Borgerson <gigabo@gmail.com>
48551
48552         * lib/base64.c (base64_decode_ctx): If a decode context structure
48553         was passed in use it to ignore newlines.  If a context structure
48554         was _not_ passed in, continue to treat newlines as garbage (this
48555         is the historical behavior).  Formerly base64_decode.
48556         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48557         takes a decode context structure.
48558         * lib/base64.h (base64_decode): Macro for four-argument calls.
48559         (base64_decode_alloc): Likewise.
48560         * lib/base64.c (base64_decode_ctx): If a decode context structure
48561         was passed in use it to ignore newlines.  If a context structure
48562         was _not_ passed in, continue to treat newlines as garbage (this
48563         is the historical behavior).  Formerly base64_decode.
48564         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48565         takes a decode context structure.
48566         * lib/base64.h (base64_decode): Macro for four-argument calls.
48567         (base64_decode_alloc): Likewise.
48568
48569 2008-05-19  Jim Meyering  <meyering@redhat.com>
48570
48571         avoid a warning from gcc
48572         * lib/trim.c (IF_LINT): Define.
48573         (trim2): Use it to avoid a "may be used uninitialized" warning.
48574
48575         Fix doc typo.
48576         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
48577
48578 2008-05-19  Bruno Haible  <bruno@clisp.org>
48579
48580         * doc/glibc-functions/getpass.texi: Document limits of other
48581         implementations.
48582
48583 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48584             Bruno Haible <bruno@clisp.org>
48585
48586         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
48587
48588 2008-05-18  Bruno Haible  <bruno@clisp.org>
48589
48590         * modules/propername: New file, from GNU gettext.
48591         * lib/propername.h: New file, from GNU gettext.
48592         * lib/propername.c: New file, from GNU gettext.
48593         * MODULES.html.sh (Internationalization functions): Add propername.
48594
48595 2008-05-16  Jim Meyering  <meyering@redhat.com>
48596             Bruno Haible  <bruno@clisp.org>
48597
48598         Avoid some warnings from "gcc -Wshadow".
48599         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
48600
48601 2008-05-15  Eric Blake  <ebb9@byu.net>
48602
48603         Extend previous patch to cygwin 1.7.0.
48604         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
48605         fast implementation in cygwin >= 1.7.0.
48606         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48607         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48608
48609 2008-05-15  Bruno Haible  <bruno@clisp.org>
48610
48611         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
48612         implementation in glibc >= 2.9.
48613         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48614         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48615
48616 2008-05-15  Bruno Haible  <bruno@clisp.org>
48617
48618         * MODULES.html.sh (Internationalization functions): Remove linebreak.
48619         (Unicode string functions): Add unilbrk/*.
48620         Reported by Karl Berry.
48621
48622 2008-05-15  Eric Blake  <ebb9@byu.net>
48623
48624         Fix violation of <stdbool.h> replacement in regex.
48625         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
48626         * lib/regexec.c (re_search_internal): Likewise.
48627         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
48628
48629 2008-05-15  Jim Meyering  <meyering@redhat.com>
48630
48631         avoid distracting test output when git or cvs is not found
48632         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
48633         * tests/test-vc-list-files-git.sh: Likewise.
48634
48635 2008-05-15  Eric Blake  <ebb9@byu.net>
48636
48637         Glibc finally accepted the memmem speedup code, bugzilla #5514.
48638         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
48639         glibc version.
48640         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48641         * doc/posix-functions/strstr.texi (strstr): Likewise.
48642         * lib/str-two-way.h (MAX): Sychronize with glibc.
48643
48644 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
48645
48646         * lib/regcomp.c (optimize_utf8): Add a note on why we test
48647         opr.ctx_type.
48648         (calc_first): Initialize constraint field.
48649         (duplicate_node_closure): Use it instead of special casing ANCHORS.
48650         Fix grammar.
48651         (duplicate_node): Merge constraint field for all node types.
48652         (calc_eclosure_iter): Look at constraint field for all node types.
48653         * lib/regex_internal.c (create_cd_newstate): Don't look at
48654         opr.ctx_type.
48655
48656 2008-05-14  Bruno Haible  <bruno@clisp.org>
48657
48658         Help GCC to do better code generation.
48659         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
48660         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
48661         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
48662         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
48663         Declare with attribute 'malloc' if supported.
48664
48665 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
48666
48667         use "echo STR|wc -c" rather than unportable "expr length STR"
48668         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
48669         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
48670
48671 2008-05-14  Jim Meyering  <meyering@redhat.com>
48672
48673         use dd ibs=$n count=1 ... rather than less-portable head -c$n
48674         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
48675         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
48676         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
48677         via Collin Lasse.
48678
48679 2008-05-14  Eric Blake  <ebb9@byu.net>
48680
48681         Avoid quadratic growth in gl_LIBSOURCES.
48682         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
48683         Suggested by Bruno Haible.
48684
48685         Test xmemdup0.
48686         * modules/xmemdup0-tests: New file.
48687         * tests/test-xmemdup0.c: Likewise.
48688
48689 2008-05-13  Eric Blake  <ebb9@byu.net>
48690
48691         Split xmemdup0 into its own module.
48692         * modules/xmemdup0: New file.
48693         * lib/xmemdup0.h: Likewise.
48694         * lib/xmemdup0.c: Likewise.
48695         * MODULES.html.sh (Memory management functions): Add xmemdup0.
48696         * lib/xalloc.h (xmemdup0): Remove.
48697         * lib/xmalloc.c (xmemdup0): Likewise.
48698
48699 2008-05-13  Eric Blake  <ebb9@byu.net>
48700             Bruno Haible  <bruno@clisp.org>
48701
48702         Reduce number of forks required during autoconf.
48703         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
48704         and gl_LIBSOURCES_DIR.
48705         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
48706         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
48707         m4_syscmd per file.
48708         <m4_foreach_w>: Move...
48709         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
48710
48711 2008-05-13  Eric Blake  <ebb9@byu.net>
48712
48713         * gnulib-tool: Fix various comment typos.
48714
48715 2008-05-12  Bruno Haible  <bruno@clisp.org>
48716
48717         Tailor the linebreaking algorithm.
48718         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
48719
48720 2008-05-12  Bruno Haible  <bruno@clisp.org>
48721
48722         Update to Unicode 5.0.0.
48723         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48724         LBP_JV, LBP_JT. Redistribute values.
48725         (unilbrk_table): Change size.
48726         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
48727         Unicode TR#14 rev. 22.
48728         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48729         LBP_JV, LBP_JT. Redistribute values.
48730         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
48731         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
48732         Update.
48733         * lib/unilbrk/lbrkprop1.h: Regenerated.
48734         * lib/unilbrk/lbrkprop2.h: Regenerated.
48735         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
48736         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
48737         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
48738         Likewise.
48739         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
48740         Likewise.
48741         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
48742         result.
48743         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
48744         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
48745         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
48746         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
48747         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
48748         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
48749
48750 2008-05-11  Bruno Haible  <bruno@clisp.org>
48751
48752         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
48753
48754 2008-05-11  Bruno Haible  <bruno@clisp.org>
48755
48756         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
48757         * modules/unilbrk/gen-lbrk: New file.
48758
48759 2008-05-11  Bruno Haible  <bruno@clisp.org>
48760
48761         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
48762         * m4/sha512.m4 (gl_SHA512): Likewise.
48763
48764 2008-05-11  Jim Meyering  <meyering@redhat.com>
48765
48766         New modules: crypto/sha256, crypto/sha512 (from coreutils)
48767         * modules/crypto/sha256: New file.
48768         * modules/crypto/sha512: Likewise.
48769         * lib/sha256.c: Likewise.
48770         * lib/sha256.h: Likewise.
48771         * lib/sha512.c: Likewise.
48772         * lib/sha512.h: Likewise.
48773         * lib/u64.h: Likewise.
48774         * m4/sha256.m4: Likewise.
48775         * m4/sha512.m4: Likewise.
48776         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
48777
48778 2008-05-10  Bruno Haible  <bruno@clisp.org>
48779
48780         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
48781         (Input/Output <stdio.h>): Add xprintf.
48782         (Signal handling <signal.h>): Add strsignal.
48783         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
48784         (Core language properties): Add func.
48785         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
48786         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
48787         strings.
48788         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
48789         (Input/output): New section.
48790         (File system functions): Add openat-die, stat-macros.
48791         (Networking functions): Add sockets.
48792         (Unicode string functions): Add unictype/*.
48793         (Support for building libraries and executables): Add gperf.
48794         (Support for building documentation): Add agpl-3.0.
48795         (Misc): Add nocrash.
48796
48797 2008-05-10  Bruno Haible  <bruno@clisp.org>
48798
48799         * modules/unictype/gen-ctype: New file.
48800
48801 2008-05-10  Jim Meyering  <meyering@redhat.com>
48802
48803         Make chdir-safer.c more efficient on a system with no symlinks.
48804         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
48805         also if ELOOP is zero.  Suggested by Bruno Haible.
48806
48807         Make chdir-safer.c slightly safer.
48808         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
48809         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
48810
48811         Avoid compile failure on systems without ELOOP (like mingw).
48812         * lib/chdir-safer.c (ELOOP): Define if not already defined.
48813         Reported by Bruno Haible.
48814
48815 2008-05-10  Bruno Haible  <bruno@clisp.org>
48816
48817         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
48818         (is_utf8_encoding): Use a case-insensitive comparison.
48819         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
48820         streq.
48821
48822 2008-05-10  Bruno Haible  <bruno@clisp.org>
48823
48824         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
48825         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
48826         * lib/unilbrk/ulc-common.h (iconv_string_length,
48827         iconv_string_keeping_offsets): Remove declarations.
48828         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
48829         Don't include <iconv.h>, streq.h, xsize.h.
48830         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
48831         conversion.
48832         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
48833         <iconv.h>, streq.h, xsize.h.
48834         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
48835         conversion.
48836         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
48837         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
48838         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
48839         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
48840
48841 2008-05-10  Bruno Haible  <bruno@clisp.org>
48842
48843         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
48844         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
48845
48846         * modules/unilbrk/u32-width-linebreaks-tests: New file.
48847         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
48848
48849         * modules/unilbrk/u16-width-linebreaks-tests: New file.
48850         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
48851
48852         * modules/unilbrk/u8-width-linebreaks-tests: New file.
48853         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
48854
48855         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
48856         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
48857
48858         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
48859         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
48860
48861         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
48862         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
48863
48864         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
48865         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
48866
48867 2008-05-10  Bruno Haible  <bruno@clisp.org>
48868
48869         Split up 'linebreak' module.
48870         * lib/unilbrk.h: New file, based on lib/linebreak.h.
48871         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
48872         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
48873         modifications.
48874         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
48875         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
48876         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
48877         lib/linebreak.c.
48878         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
48879         lib/linebreak.c.
48880         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
48881         lib/linebreak.c.
48882         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
48883         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
48884         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
48885         lib/linebreak.c.
48886         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
48887         lib/linebreak.c.
48888         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
48889         lib/linebreak.c.
48890         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
48891         lib/linebreak.c.
48892         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
48893         lib/linebreak.c.
48894         * modules/unilbrk/base: New file.
48895         * modules/unilbrk/tables: New file.
48896         * modules/unilbrk/u8-possible-linebreaks: New file.
48897         * modules/unilbrk/u16-possible-linebreaks: New file.
48898         * modules/unilbrk/u32-possible-linebreaks: New file.
48899         * modules/unilbrk/ulc-common: New file.
48900         * modules/unilbrk/ulc-possible-linebreaks: New file.
48901         * modules/unilbrk/u8-width-linebreaks: New file.
48902         * modules/unilbrk/u16-width-linebreaks: New file.
48903         * modules/unilbrk/u32-width-linebreaks: New file.
48904         * modules/unilbrk/ulc-width-linebreaks: New file.
48905         * lib/linebreak.h: Remove file.
48906         * lib/linebreak.c: Remove file.
48907         * m4/linebreak.m4: Remove file.
48908         * modules/linebreak: Remove file.
48909         * NEWS: Mention the changes.
48910
48911 2008-05-09  Eric Blake  <ebb9@byu.net>
48912
48913         Add xmemdup0.
48914         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
48915         implementation.
48916         * lib/xmalloc.c (xmemdup0): New C implementation.
48917
48918 2008-05-08  Bruno Haible  <bruno@clisp.org>
48919
48920         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
48921
48922 2008-05-07  Eric Blake  <ebb9@byu.net>
48923
48924         Support cross-compilation of <wctype.h>.
48925         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
48926         AC_CACHE_CHECK.
48927
48928 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
48929
48930         * build-aux/vc-list-files: Add support for bzr.
48931
48932 2008-05-03  Jim Meyering  <meyering@redhat.com>
48933
48934         avoid failed assertion with tight malloc
48935         * tests/test-getndelim2.c: Correct an off-by-one assertion.
48936
48937 2008-05-03  Simon Josefsson  <simon@josefsson.org>
48938
48939         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
48940         are needed from arpa/inet.h.
48941         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
48942         Reported by Bruno Haible.
48943
48944 2008-05-02  Jim Meyering  <meyering@redhat.com>
48945
48946         avoid compilation error on FreeBSD 6
48947         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
48948
48949 2008-05-01  Jim Meyering  <meyering@redhat.com>
48950
48951         useless-if-before-free: correct --help's exit status description
48952         * build-aux/useless-if-before-free (usage): Like grep, exit 0
48953         for one or more matches, etc.  Reported by Bruno Haible.
48954
48955         vc-list-files: make the stand-alone gnulib test work
48956         * modules/vc-list-files-tests (configure.ac):
48957         Define and AC_SUBST abs_aux_dir.
48958         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
48959         $(abs_top_srcdir) to each script and having each of them
48960         duplicate the work of setting PATH, set PATH here, using
48961         the new variable, abs_aux_dir instead.
48962         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
48963         * tests/test-vc-list-files-git.sh: Likewise.
48964         Reported by Bruno Haible.
48965
48966 2008-05-01  Bruno Haible  <bruno@clisp.org>
48967
48968         * lib/getndelim2.c (getndelim2): Fix newsize computation during
48969         reallocation. Rename 'done' to 'found_delimiter'.
48970
48971 2008-05-01  Jim Meyering  <meyering@redhat.com>
48972
48973         vc-list-files: accommodate /bin/sh like the one from Solaris 10
48974         * build-aux/vc-list-files: Use `...`, not $(...).
48975
48976 2008-04-30  Jim Meyering  <meyering@redhat.com>
48977
48978         add tests for vc-list-files
48979         * modules/vc-list-files-tests: New module.
48980         * tests/test-vc-list-files-cvs.sh: New file.
48981         * tests/test-vc-list-files-git.sh: New file.
48982
48983         avoid a warning from gcc
48984         * lib/getndelim2.c (IF_LINT): Define.
48985         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
48986
48987         vc-list-files: work properly with build-aux/cvsu, too
48988         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
48989         to all cvs-based clauses.
48990
48991         vc-list-files: work properly in the CVS+awk case, too
48992         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
48993
48994         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
48995         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
48996         take more than one file argument, so .  Add quotes, just in case $dir
48997         ever contains a shell meta-character.  Prompted by Soren Hansen in
48998         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
48999
49000 2008-04-29  Eric Blake  <ebb9@byu.net>
49001
49002         Optimize getndelim2 to use block operations when possible.
49003         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49004         freadseek, and memchr2.
49005         * lib/getndelim2.c (getndelim2): Use them for block reads.
49006
49007 2008-04-29  Bruno Haible  <bruno@clisp.org>
49008
49009         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49010         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49011         * modules/inet_ntop (Depends-on): Add extensions.
49012         * modules/inet_pton (Depends-on): Likewise.
49013         Reported by Simon Josefsson.
49014
49015 2008-04-29  Jim Meyering  <meyering@redhat.com>
49016
49017         When the is more than one match in a block, match all of them.
49018         * build-aux/useless-if-before-free: Iterate through each block
49019         until there are no more matches.
49020
49021         Fix broken useless-if-before-free script.
49022         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49023         the expression to match cast of argument to free-like function.
49024
49025 2008-04-29  Eric Blake  <ebb9@byu.net>
49026
49027         Use new header.
49028         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49029
49030 2008-04-29  Jim Meyering  <meyering@redhat.com>
49031
49032         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49033         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49034         by gnulib to exist and to declare e.g., inet_ntop.
49035         Don't include "inet_ntop.h", now removed.
49036
49037         * m4/arpa_inet_h.m4: Remove trailing blanks.
49038
49039 2008-04-29  Eric Blake  <ebb9@byu.net>
49040
49041         Silence valgrind on safe reads beyond potential array bounds.
49042         * lib/rawmemchr.valgrind: New file.
49043         * lib/strchrnul.valgrind: Likewise.
49044         * modules/rawmemchr (Files): Distribute new file.
49045         * modules/strchrnul (Files): Likewise.
49046         Suggested by Bruno Haible.
49047
49048 2008-04-29  Bruno Haible  <bruno@clisp.org>
49049
49050         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49051         (inet_ntop, inet_pton): Change portability warning's wording.
49052         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49053         Invoke gl_CHECK_NEXT_HEADERS.
49054         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49055         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49056         set ARPA_INET_H.
49057         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49058         * modules/arpa_inet (Description): No longer only for systems that
49059         lack it.
49060         (Depends-on): Add include_next.
49061         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49062         HAVE_ARPA_INET_H.
49063
49064 2008-04-29  Jim Meyering  <meyering@redhat.com>
49065
49066         * modules/mkdir (License): Re-license as LGPLv2+.
49067
49068 2008-04-29  Bruno Haible  <bruno@clisp.org>
49069
49070         * modules/rawmemchr (Maintainer): Set to Eric.
49071         * modules/strchrnul (Maintainer): Likewise.
49072
49073 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49074
49075         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49076         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49077
49078         * modules/arpa_inet (arpa/inet.h): Use them.
49079
49080 2008-04-28  Eric Blake  <ebb9@byu.net>
49081
49082         Test getndelim2.
49083         * modules/getndelim2-tests: New file.
49084         * tests/test-getndelim2.c: Likewise.
49085         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49086         stream.
49087         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49088
49089         * MODULES.html.sh: Document new module.
49090
49091 2008-04-20  Bruno Haible  <bruno@clisp.org>
49092
49093         * lib/c-stack.c (die): Use raise.
49094         * modules/c-stack (Depends-on): Add raise.
49095
49096 2008-04-28  Bruno Haible  <bruno@clisp.org>
49097
49098         Expect rpmatch to be declared.
49099         * lib/yesno.c (rpmatch): Remove declaration.
49100
49101         Declare rpmatch.
49102         * lib/stdlib.in.h (rpmatch): New declaration.
49103         * lib/rpmatch.c: Include <stdlib.h> first.
49104         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49105         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49106         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49107         HAVE_RPMATCH.
49108         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49109         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49110         (Include): Set to <stdlib.h>.
49111         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49112         HAVE_RPMATCH.
49113         * NEWS: Document the change.
49114
49115 2008-04-28  Bruno Haible  <bruno@clisp.org>
49116
49117         Change rpmatch to use nl_langinfo when appropriate.
49118         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49119         (N_): New macro.
49120         (localized_pattern): New function/macro.
49121         (try): Remove match, nomatch arguments. Copy the pattern into safe
49122         memory before caching it.
49123         (rpmatch): Use localized_pattern. Add translator comments.
49124         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49125         Suggested by Eric Blake.
49126         * modules/rpmatch (Depends-on): Add stdbool.
49127
49128 2008-04-28  Eric Blake  <ebb9@byu.net>
49129
49130         Add rawmemchr module, matching glibc.
49131         * modules/string (Makefile.am): New indicator.
49132         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49133         * lib/string.in.h (rawmemchr): Declare when appropriate.
49134         * modules/rawmemchr: New file.
49135         * m4/rawmemchr.m4: Likewise.
49136         * lib/rawmemchr.c: Likewise.
49137         * modules/rawmemchr-tests: Likewise.
49138         * tests/test-rawmemchr.c: Likewise.
49139         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49140         module.
49141         * modules/strchrnul (Depends-on): Add rawmemchr.
49142         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49143
49144         Whitespace cleanup.
49145         * tests/test-strchrnul.c: Reindent.
49146         * lib/strchrnul.c: Likewise.
49147
49148         Optimize and test strchrnul.
49149         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49150         * modules/strchrnul-tests: New file.
49151         * tests/test-strchrnul.c: Likewise.
49152
49153         Remove intprops dependency.
49154         * modules/memchr (Depends-on): Remove intprops.
49155         * modules/memrchr (Depends-on): Likewise.
49156         * modules/memchr2 (Depends-on): Likewise.
49157         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49158         * lib/memrchr.c (__memrchr): Likewise.
49159         * lib/memrchr2.c (memchr2): Likewise.
49160         Reported by Simon Josefsson.
49161
49162 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49163
49164         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49165         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49166
49167 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49168
49169         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49170
49171         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49172
49173         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49174
49175         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49176         declarations.
49177         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49178
49179         * m4/inet_pton.m4: Don't check for header files.
49180
49181         * m4/inet_ntop.m4: Don't check for header files.
49182
49183 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49184
49185         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49186         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49187         trigger for cygwin).
49188         Reported by Bruno Haible  <bruno@clisp.org>.
49189
49190 2008-04-28  Bruno Haible  <bruno@clisp.org>
49191
49192         * doc/posix-functions/strdup.texi: Mention mingw problem.
49193
49194 2008-04-27  Bruno Haible  <bruno@clisp.org>
49195
49196         * modules/stat-time-tests (Depends-on): Add sleep.
49197         * tests/test-stat-time.c (force_unlink): New function.
49198         (cleanup): Use it.
49199         (test_mtime): Remove the ctime related tests.
49200         (test_ctime): New function, containing the ctime related tests.
49201         (main): Call test_ctime, except on native Windows platforms.
49202
49203 2008-04-27  Bruno Haible  <bruno@clisp.org>
49204
49205         * lib/rpmatch.c (rpmatch): Add some comments.
49206         Reported by James Youngman <jay@gnu.org>.
49207
49208 2008-04-27  Bruno Haible  <bruno@clisp.org>
49209
49210         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49211         quiet NaNs.
49212
49213 2008-04-27  Bruno Haible  <bruno@clisp.org>
49214
49215         Make test-yesno.sh work on mingw.
49216         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49217         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49218         (main): Set stdin to binary mode.
49219         * modules/yesno-tests (Depends-on): Add binary-io.
49220
49221 2008-04-27  Bruno Haible  <bruno@clisp.org>
49222
49223         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49224         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49225         argument that lie outside the IEEE 854 domain.
49226         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49227         (gl_ISFINITE): Use it.
49228         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49229
49230 2008-04-27  Bruno Haible  <bruno@clisp.org>
49231
49232         Allow local renaming in config.h.
49233         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49234
49235 2008-04-27  Bruno Haible  <bruno@clisp.org>
49236
49237         * lib/memchr.c (__memchr): Change type of 'i'.
49238         * lib/memchr2.c (memchr2): Likewise.
49239
49240 2008-04-26  Eric Blake  <ebb9@byu.net>
49241         and Bruno Haible  <bruno@clisp.org>
49242
49243         Optimize and test memrchr.
49244         * modules/memrchr (Depends-on): Add intprops.
49245         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
49246         * modules/memrchr-tests: New file.
49247         * tests/test-memrchr.c: New file.
49248
49249 2008-04-26  Bruno Haible  <bruno@clisp.org>
49250
49251         Add tentative support for DragonFly BSD.
49252         * lib/stdio-impl.h: Add macros for DragonFly BSD.
49253         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
49254         fp.
49255         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49256         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
49257         * lib/fpurge.c (fpurge): Likewise.
49258         * lib/freadable.c (freaadable): Likewise.
49259         * lib/freadahead.c (freadahead): Likewise.
49260         * lib/freading.c (freading): Likewise.
49261         * lib/freadptr.c (freadptr): Likewise.
49262         * lib/freadseek.c (freadptrinc): Likewise.
49263         * lib/fseeko.c (fseeko): Likewise.
49264         * lib/fseterr.c (fseterr): Likewise.
49265         * lib/fwritable.c (fwritable): Likewise.
49266         * lib/fwriting.c (fwriting): Likewise.
49267
49268 2008-04-26  Bruno Haible  <bruno@clisp.org>
49269
49270         * lib/stdio-impl.h: New file.
49271         * lib/fbufmode.c: Include stdio-impl.h.
49272         (fbufmode): Use fp_, remove redundant #defines.
49273         * lib/fflush.c: Include stdio-impl.h.
49274         (clear_ungetc_buffer): Remove redundant #defines.
49275         * lib/fpurge.c: Include stdio-impl.h.
49276         (fpurge): Remove redundant #defines.
49277         * lib/freadable.c: Include stdio-impl.h.
49278         (freadable): Remove redundant #defines.
49279         * lib/freadahead.c: Include stdio-impl.h.
49280         (freadahead): Remove redundant #defines.
49281         * lib/freading.c: Include stdio-impl.h.
49282         (freading): Remove redundant #defines.
49283         * lib/freadptr.c: Include stdio-impl.h.
49284         (freadptr): Remove redundant #defines.
49285         * lib/freadseek.c: Include stdio-impl.h.
49286         (freadptrinc): Remove redundant #defines.
49287         * lib/fseeko.c: Include stdio-impl.h.
49288         (rpl_fseeko): Remove redundant #defines.
49289         * lib/fseterr.c: Include stdio-impl.h.
49290         (fseterr): Remove redundant #defines.
49291         * lib/fwritable.c: Include stdio-impl.h.
49292         (fwritable: Remove redundant #defines.
49293         * lib/fwriting.c: Include stdio-impl.h.
49294         (fwriting): Remove redundant #defines.
49295         * modules/fbufmode (Files): Add lib/stdio-impl.h.
49296         * modules/fflush (Files): Likewise.
49297         * modules/fpurge (Files): Likewise.
49298         * modules/freadable (Files): Likewise.
49299         * modules/freadahead (Files): Likewise.
49300         * modules/freading (Files): Likewise.
49301         * modules/freadptr (Files): Likewise.
49302         * modules/freadseek (Files): Likewise.
49303         * modules/fseeko (Files): Likewise.
49304         * modules/fseterr (Files): Likewise.
49305         * modules/fwritable (Files): Likewise.
49306         * modules/fwriting (Files): Likewise.
49307
49308 2008-04-26  Bruno Haible  <bruno@clisp.org>
49309
49310         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49311         restore_seek_optimization, update_fpos_cache): New functions, extracted
49312         from rpl_fflush.
49313         (rpl_fflush): Use them.
49314         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
49315         (gl_REPLACE_FFLUSH): Use it.
49316
49317 2008-04-26  Bruno Haible  <bruno@clisp.org>
49318
49319         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
49320         on Solaris.
49321         * tests/test-xstrtoimax.sh: Likewise.
49322         * tests/test-xstrtoumax.sh: Likewise.
49323         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49324
49325 2008-04-26  Bruno Haible  <bruno@clisp.org>
49326
49327         * modules/memchr-tests: New file.
49328         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
49329
49330 2008-04-26  Eric Blake  <ebb9@byu.net>
49331             Bruno Haible  <bruno@clisp.org>
49332
49333         * lib/memchr.c: Include intprops.h.
49334         (__memchr): Optimize parallel detection of matching bytes. Rename local
49335         variables. Add explanatory comments.
49336
49337 2008-04-26  Bruno Haible  <bruno@clisp.org>
49338
49339         Fix module 'memchr', broken since 2000-10-28.
49340         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
49341
49342 2008-04-26  Bruno Haible  <bruno@clisp.org>
49343
49344         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49345         comments.
49346
49347 2008-04-25  Eric Blake  <ebb9@byu.net>
49348
49349         Use native fstatat on cygwin 1.7.0.
49350         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49351         first.
49352
49353 2008-04-23  Eric Blake  <ebb9@byu.net>
49354
49355         Improve memchr2 performance.
49356         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49357         NUL bytes.
49358         * modules/memchr2 (Depends-on): Use intprops.h.
49359
49360 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49361
49362         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49363         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49364         <blp@cs.stanford.edu>.
49365
49366 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49367
49368         * lib/arpa_inet.in.h: New file.
49369
49370         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49371         (Makefile.am): Sed in substitute header file.
49372
49373         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49374         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
49375
49376         * modules/inet_ntop (configure.ac): Use
49377         gl_ARPA_INET_MODULE_INDICATOR.
49378
49379         * modules/inet_pton (configure.ac): Use
49380         gl_ARPA_INET_MODULE_INDICATOR.
49381
49382 2008-04-22  Jim Meyering  <meyering@redhat.com>
49383
49384         * modules/verify (License): Re-license as LGPLv2+.
49385
49386 2008-04-22  Simon Josefsson  <simon@josefsson.org>
49387
49388         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
49389         parameter to void* as per POSIX standard (MinGW uses char*).
49390
49391 2008-04-21  Bruno Haible  <bruno@clisp.org>
49392
49393         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49394         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49395         Define to replacements if REPLACE_ISWCNTRL is 1.
49396         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
49397         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
49398         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
49399         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
49400         what it fixes.
49401         * doc/posix-functions/iswalpha.texi: Likewise.
49402         * doc/posix-functions/iswblank.texi: Likewise.
49403         * doc/posix-functions/iswcntrl.texi: Likewise.
49404         * doc/posix-functions/iswdigit.texi: Likewise.
49405         * doc/posix-functions/iswgraph.texi: Likewise.
49406         * doc/posix-functions/iswlower.texi: Likewise.
49407         * doc/posix-functions/iswprint.texi: Likewise.
49408         * doc/posix-functions/iswpunct.texi: Likewise.
49409         * doc/posix-functions/iswspace.texi: Likewise.
49410         * doc/posix-functions/iswupper.texi: Likewise.
49411         * doc/posix-functions/iswxdigit.texi: Likewise.
49412         Reported by Alain Guibert.
49413
49414 2008-04-21  Bruno Haible  <bruno@clisp.org>
49415
49416         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49417         Patch by Alain Guibert.
49418
49419 2008-04-21  Bruno Haible  <bruno@clisp.org>
49420
49421         Fix test failures on mingw.
49422         * tests/test-xstrtol.c (print_no_progname): New function.
49423         (main): Install it in error_print_progname hook.
49424         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
49425         * tests/test-xstrtoimax.sh: Likewise.
49426         * tests/test-xstrtoumax.sh: Likewise.
49427
49428 2008-04-21  Bruno Haible  <bruno@clisp.org>
49429
49430         Fix test failure on mingw.
49431         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
49432
49433 2008-04-21  Bruno Haible  <bruno@clisp.org>
49434
49435         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
49436         Actually assign a value.
49437
49438 2008-04-20  Bruno Haible  <bruno@clisp.org>
49439
49440         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
49441         take 2.
49442         * lib/canonicalize.c (canonicalize_file_name): Elide if the
49443         'canonicalize-lgpl' module is also used.
49444         * lib/canonicalize-lgpl.c: Undo last change.
49445         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
49446
49447 2008-04-20  Bruno Haible  <bruno@clisp.org>
49448
49449         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
49450         config.h. Provide _mkdir based fallback for mingw.
49451         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
49452         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
49453         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
49454         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
49455         rather than defining mkdir in config.h.
49456         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
49457         (gl_SYS_STAT_H_DEFAULTS): New macro.
49458         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
49459         HAVE_IO_H any more.
49460         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
49461         HAVE_DECL_MKDIR and HAVE_IO_H.
49462
49463 2008-04-20  Bruno Haible  <bruno@clisp.org>
49464
49465         * lib/isapipe.c: Port to native Windows platforms.
49466
49467 2008-04-20  Bruno Haible  <bruno@clisp.org>
49468
49469         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
49470
49471 2008-04-21  Eric Blake  <ebb9@byu.net>
49472
49473         Work around preprocessors that don't handle UINTMAX_MAX.
49474         * lib/memchr2.c (memchr2): Avoid embedded #if.
49475         Reported by Alain Guibert, fix suggested by Bruno Haible.
49476
49477 2008-04-21  Simon Josefsson  <simon@josefsson.org>
49478
49479         * doc/posix-functions/strftime.texi (strftime): Explain better
49480         Windows incompatibility.  Suggested by Micah Cowan
49481         <micah@cowan.name>.
49482
49483 2008-04-20  Bruno Haible  <bruno@clisp.org>
49484
49485         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
49486         unistr/u8-mblen.
49487
49488 2008-04-20  Bruno Haible  <bruno@clisp.org>
49489
49490         Fix test failure on platforms with non-GNU iconv.
49491         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
49492         (U_TO_U8): Use it, rather than u16_to_u8.
49493         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
49494         units at the end of the input string.
49495         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
49496
49497 2008-04-20  Bruno Haible  <bruno@clisp.org>
49498
49499         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
49500         when the resulting length is 0.
49501         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
49502
49503 2008-04-20  Bruno Haible  <bruno@clisp.org>
49504
49505         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
49506         works.
49507         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
49508
49509 2008-04-20  Bruno Haible  <bruno@clisp.org>
49510
49511         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
49512         * modules/tsearch-tests (configure.ac): Test for initstate function.
49513
49514 2008-04-20  Bruno Haible  <bruno@clisp.org>
49515
49516         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
49517         for nlink_t if missing.
49518         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
49519
49520 2008-04-19  Bruno Haible  <bruno@clisp.org>
49521
49522         Work around snprintf bug on Linux libc5.
49523         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
49524         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49525         gl_SNPRINTF_SIZE1.
49526         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49527         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
49528         that test failed.
49529         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49530         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
49531         * modules/snprintf (Files): Add m4/printf.m4.
49532         * modules/vsnprintf (Files): Likewise.
49533         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
49534         * doc/posix-functions/vsnprintf.texi: Likewise.
49535
49536 2008-04-19  Bruno Haible  <bruno@clisp.org>
49537
49538         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
49539         from 0.0058 to less than 10^-7.
49540
49541 2008-04-19  Bruno Haible  <bruno@clisp.org>
49542
49543         Fix rounding when a precision is given.
49544         * lib/vasnprintf.c (is_borderline): New function.
49545         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
49546         9...9x.
49547         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
49548         %e, %g.
49549         * tests/test-vasprintf-posix.c (test_function): Likewise.
49550         * tests/test-snprintf-posix.h (test_function): Likewise.
49551         * tests/test-sprintf-posix.h (test_function): Likewise.
49552         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
49553         * tests/test-printf-posix.h (test_function): Likewise.
49554         * tests/test-printf-posix.output: Update.
49555         Reported by John Darrington <john@darrington.wattle.id.au> via
49556         Ben Pfaff <blp@cs.stanford.edu>.
49557
49558 2008-04-18  Simon Josefsson  <simon@josefsson.org>
49559
49560         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
49561         Suggested by Bruno Haible <bruno@clisp.org>.
49562
49563 2008-04-17  Bruno Haible  <bruno@clisp.org>
49564
49565         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
49566         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
49567         implementation.
49568         Patch by Bruce Merry <bmerry@gmail.com>.
49569
49570 2008-04-17  Simon Josefsson  <simon@josefsson.org>
49571
49572         * doc/posix-functions/strftime.texi (strftime): Mention that %e
49573         doesn't work under Windows.
49574
49575 2008-04-16  Bruno Haible  <bruno@clisp.org>
49576
49577         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
49578         New macros.
49579         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
49580         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
49581         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
49582         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
49583         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
49584         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
49585         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
49586         macros.
49587         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
49588         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
49589         Northern Sotho, Uighur.
49590
49591 2008-04-16  Bruno Haible  <bruno@clisp.org>
49592
49593         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
49594         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
49595         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
49596         Reported by Daniel Bergström <daniel@octocode.com>.
49597
49598 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
49599             Bruno Haible  <bruno@clisp.org>
49600
49601         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
49602         function.
49603         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
49604         New functions, mostly extracted from gl_locale_name_default.
49605         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
49606
49607 2008-04-16  Eric Blake  <ebb9@byu.net>
49608
49609         Adjust strtod detection to catch glibc 2.7 bug.
49610         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
49611         Reported by John Gatewood Ham.
49612
49613 2008-04-16  Bruno Haible  <bruno@clisp.org>
49614
49615         Add tentative support for Linux libc5.
49616         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
49617         * lib/fpurge.c (fpurge): Likewise.
49618         * lib/freadable.c (freadable): Likewise.
49619         * lib/freadahead.c (freadahead): Likewise.
49620         * lib/freading.c (freading): Likewise.
49621         * lib/freadptr.c (freadptr): Likewise.
49622         * lib/freadseek.c (freadptrinc): Likewise.
49623         * lib/fseeko.c (rpl_fseeko): Likewise.
49624         * lib/fseterr.c (fseterr): Likewise.
49625         * lib/fwritable.c (fwritable): Likewise.
49626         * lib/fwriting.c (fwriting): Likewise.
49627         Reported by Alain Guibert <alguibert+bts@free.fr>.
49628
49629 2008-04-15  Bruno Haible  <bruno@clisp.org>
49630
49631         * modules/mathl (configure.ac): Define module indicator.
49632
49633 2008-04-15  Bruno Haible  <bruno@clisp.org>
49634
49635         * lib/logl.c (logl): Remove unused variables.
49636
49637 2008-04-15  Bruno Haible  <bruno@clisp.org>
49638
49639         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
49640         fails.
49641
49642 2008-04-15  Bruno Haible  <bruno@clisp.org>
49643
49644         * lib/trim.c (trim2): Fix argument of isspace() macro.
49645
49646 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
49647
49648         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
49649         to 0.
49650         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
49651
49652 2008-04-14  Bruno Haible  <bruno@clisp.org>
49653
49654         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
49655         AC_LANG_PROGRAM argument.
49656         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
49657         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
49658         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
49659         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49660         * m4/math_h.m4 (gl_MATH_H): Likewise.
49661         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
49662         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49663         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49664         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
49665         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
49666         * m4/regex.m4 (gl_REGEX): Likewise.
49667         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
49668         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
49669         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49670         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
49671         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49672         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49673         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49674         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49675
49676 2008-04-14  Jim Meyering  <meyering@redhat.com>
49677
49678         test-strtod: fix typos: s/abs/fabs/
49679         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
49680
49681 2008-04-13  Bruno Haible  <bruno@clisp.org>
49682
49683         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
49684         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
49685         module is also used and while not building the reloc-wrapper.
49686
49687 2008-04-13  Bruno Haible  <bruno@clisp.org>
49688
49689         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
49690
49691 2008-04-13  Bruno Haible  <bruno@clisp.org>
49692
49693         Fix AIX compilation failure introduced on 2008-04-02.
49694         * tests/test-frexp.c (exp): Undefine before redefining.
49695         * tests/test-frexpl.c (exp): Likewise.
49696
49697 2008-04-13  Bruno Haible  <bruno@clisp.org>
49698
49699         Work around a HP-UX stdio bug.
49700         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
49701         * tests/test-ftello.c (main): Likewise.
49702         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
49703         * doc/posix-functions/ftello.texi: Likewise.
49704
49705 2008-04-13  Bruno Haible  <bruno@clisp.org>
49706
49707         Make test-signbit pass on HP-UX/hppa.
49708         * tests/test-signbit.c (minus_zerol): New variable.
49709         (test_signbitl): Use it.
49710
49711 2008-04-13  Bruno Haible  <bruno@clisp.org>
49712
49713         Make truncl work on OSF/1 4.0.
49714         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
49715         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49716         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
49718         HAVE_DECL_TRUNCL.
49719         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
49720         HAVE_DECL_TRUNCL.
49721         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
49722
49723 2008-04-13  Bruno Haible  <bruno@clisp.org>
49724
49725         * lib/unictype.h: Remove trailing comma from enumeration definitions.
49726
49727 2008-04-13  Bruno Haible  <bruno@clisp.org>
49728
49729         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
49730         expression, so as to avoid HP-UX 11 cc compiler bug.
49731
49732 2008-04-13  Bruno Haible  <bruno@clisp.org>
49733
49734         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
49735
49736 2008-04-13  Bruno Haible  <bruno@clisp.org>
49737
49738         * lib/git-merge-changelog.c: Remove empty declaration outside of
49739         functions.
49740
49741 2008-04-13  Bruno Haible  <bruno@clisp.org>
49742
49743         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
49744
49745 2008-04-13  Bruno Haible  <bruno@clisp.org>
49746
49747         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
49748         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
49749         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
49750         also if it exists but lacks definitions of the SHUT_* macros.
49751         * modules/sys_socket (Description): Update.
49752         Reported by Elbert Pol <e.pol@chello.nl>.
49753
49754 2008-04-13  Bruno Haible  <bruno@clisp.org>
49755
49756         * lib/localcharset.c (OS2): Don't redefine if already defined.
49757         Reported by Elbert Pol <e.pol@chello.nl>.
49758
49759 2008-04-13  Bruno Haible  <bruno@clisp.org>
49760
49761         * lib/binary-io.h [__EMX__]: Include <io.h>.
49762         Reported by Elbert Pol <e.pol@chello.nl>.
49763
49764 2008-04-12  Bruno Haible  <bruno@clisp.org>
49765
49766         * lib/fpucw.h: Enable the definitions also for x86_64.
49767         Needed for NetBSD/x86_64.
49768         Reported by Thomas Klausner <tk@giga.or.at>.
49769
49770 2008-04-12  Bruno Haible  <bruno@clisp.org>
49771
49772         * tests/test-strtod.c: Include isnand.h.
49773         (main): Use isnand instead of isnan.
49774         Reported by Jim Meyering.
49775
49776 2008-04-12  Bruno Haible  <bruno@clisp.org>
49777
49778         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
49779         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49780
49781 2008-04-12  Jim Meyering  <meyering@redhat.com>
49782
49783         * m4/math_h.m4 (gl_MATH_H): Fix typos.
49784
49785 2008-04-12  Bruno Haible  <bruno@clisp.org>
49786
49787         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
49788         Reported by Elbert Pol <e.pol@chello.nl>.
49789
49790 2008-04-12  Eric Blake  <ebb9@byu.net>
49791
49792         Work around Solaris 10 math.h bug.
49793         * m4/math_h.m4 (gl_MATH_H): Check for bug.
49794         (gl_MATH_H_DEFAULTS): Set up default.
49795         * modules/math (Makefile.am): Replace new indicators.
49796         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
49797         * tests/test-math.c (main): Test this.
49798         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
49799         * doc/posix-headers/math.texi (math.h): Mention bug.
49800         Reported by Nelson H. F. Beebe and Jim Meyering.
49801
49802 2008-04-11  Bruno Haible  <bruno@clisp.org>
49803
49804         Adapt to future versions of Apple GCC.
49805         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
49806         Reported by Peter O'Gorman <peter@pogma.com>.
49807
49808 2008-04-11  Bruno Haible  <bruno@clisp.org>
49809
49810         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
49811
49812 2008-04-11  Bruno Haible  <bruno@clisp.org>
49813
49814         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
49815
49816         * modules/getaddrinfo-tests (Makefile.am): Define
49817         test_getaddrinfo_LDADD.
49818
49819 2008-04-11  Bruno Haible  <bruno@clisp.org>
49820
49821         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
49822         (init): Fix syntax error.
49823         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
49824         is declared.
49825
49826 2008-04-11  Bruno Haible  <bruno@clisp.org>
49827
49828         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
49829         * modules/glob (Depends-on): Add stdbool.
49830
49831 2008-04-11  Bruno Haible  <bruno@clisp.org>
49832
49833         * lib/trim.c: Include <string.h>.
49834
49835 2008-04-11  Eric Blake  <ebb9@byu.net>
49836
49837         Avoid compile failure on OS/2.
49838         * lib/regex_internal.h (internal_function): Disable optimization
49839         on OS/2 (__EMX__), where it caused compiler error.
49840         Reported by Elbert Pol.
49841
49842 2008-04-11  Bruno Haible  <bruno@clisp.org>
49843
49844         Flush the standard error stream before aborting. Needed on mingw.
49845         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
49846         * tests/test-array_list.c (ASSERT): Likewise.
49847         * tests/test-array_oset.c (ASSERT): Likewise.
49848         * tests/test-avltree_list.c (ASSERT): Likewise.
49849         * tests/test-avltree_oset.c (ASSERT): Likewise.
49850         * tests/test-avltreehash_list.c (ASSERT): Likewise.
49851         * tests/test-binary-io.c (ASSERT): Likewise.
49852         * tests/test-byteswap.c (ASSERT): Likewise.
49853         * tests/test-c-ctype.c (ASSERT): Likewise.
49854         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
49855         * tests/test-c-strcasestr.c (ASSERT): Likewise.
49856         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
49857         * tests/test-c-strstr.c (ASSERT): Likewise.
49858         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
49859         * tests/test-canonicalize.c (ASSERT): Likewise.
49860         * tests/test-carray_list.c (ASSERT): Likewise.
49861         * tests/test-ceilf1.c (ASSERT): Likewise.
49862         * tests/test-ceilf2.c (ASSERT): Likewise.
49863         * tests/test-ceill.c (ASSERT): Likewise.
49864         * tests/test-count-one-bits.c (ASSERT): Likewise.
49865         * tests/test-fbufmode.c (ASSERT): Likewise.
49866         * tests/test-fflush2.c (ASSERT): Likewise.
49867         * tests/test-floorf1.c (ASSERT): Likewise.
49868         * tests/test-floorf2.c (ASSERT): Likewise.
49869         * tests/test-floorl.c (ASSERT): Likewise.
49870         * tests/test-fopen.c (ASSERT): Likewise.
49871         * tests/test-fpending.c (ASSERT): Likewise.
49872         * tests/test-fprintf-posix.c (ASSERT): Likewise.
49873         * tests/test-fpurge.c (ASSERT): Likewise.
49874         * tests/test-freadable.c (ASSERT): Likewise.
49875         * tests/test-freadahead.c (ASSERT): Likewise.
49876         * tests/test-freading.c (ASSERT): Likewise.
49877         * tests/test-freadptr.c (ASSERT): Likewise.
49878         * tests/test-freadptr2.c (ASSERT): Likewise.
49879         * tests/test-freadseek.c (ASSERT): Likewise.
49880         * tests/test-freopen.c (ASSERT): Likewise.
49881         * tests/test-frexp.c (ASSERT): Likewise.
49882         * tests/test-frexpl.c (ASSERT): Likewise.
49883         * tests/test-fseek.c (ASSERT): Likewise.
49884         * tests/test-fseeko.c (ASSERT): Likewise.
49885         * tests/test-fstrcmp.c (ASSERT): Likewise.
49886         * tests/test-ftell.c (ASSERT): Likewise.
49887         * tests/test-ftello.c (ASSERT): Likewise.
49888         * tests/test-func.c (ASSERT): Likewise.
49889         * tests/test-fwritable.c (ASSERT): Likewise.
49890         * tests/test-fwriting.c (ASSERT): Likewise.
49891         * tests/test-getdelim.c (ASSERT): Likewise.
49892         * tests/test-getline.c (ASSERT): Likewise.
49893         * tests/test-i-ring.c (ASSERT): Likewise.
49894         * tests/test-iconv-utf.c (ASSERT): Likewise.
49895         * tests/test-iconv.c (ASSERT): Likewise.
49896         * tests/test-isfinite.c (ASSERT): Likewise.
49897         * tests/test-isnand.c (ASSERT): Likewise.
49898         * tests/test-isnanf.c (ASSERT): Likewise.
49899         * tests/test-isnanl.h (ASSERT): Likewise.
49900         * tests/test-ldexpl.c (ASSERT): Likewise.
49901         * tests/test-linked_list.c (ASSERT): Likewise.
49902         * tests/test-linkedhash_list.c (ASSERT): Likewise.
49903         * tests/test-localename.c (ASSERT): Likewise.
49904         * tests/test-lseek.c (ASSERT): Likewise.
49905         * tests/test-mbscasecmp.c (ASSERT): Likewise.
49906         * tests/test-mbscasestr1.c (ASSERT): Likewise.
49907         * tests/test-mbscasestr2.c (ASSERT): Likewise.
49908         * tests/test-mbscasestr3.c (ASSERT): Likewise.
49909         * tests/test-mbscasestr4.c (ASSERT): Likewise.
49910         * tests/test-mbschr.c (ASSERT): Likewise.
49911         * tests/test-mbscspn.c (ASSERT): Likewise.
49912         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
49913         * tests/test-mbspbrk.c (ASSERT): Likewise.
49914         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
49915         * tests/test-mbsrchr.c (ASSERT): Likewise.
49916         * tests/test-mbsspn.c (ASSERT): Likewise.
49917         * tests/test-mbsstr1.c (ASSERT): Likewise.
49918         * tests/test-mbsstr2.c (ASSERT): Likewise.
49919         * tests/test-mbsstr3.c (ASSERT): Likewise.
49920         * tests/test-memchr2.c (ASSERT): Likewise.
49921         * tests/test-memmem.c (ASSERT): Likewise.
49922         * tests/test-open.c (ASSERT): Likewise.
49923         * tests/test-printf-frexp.c (ASSERT): Likewise.
49924         * tests/test-printf-frexpl.c (ASSERT): Likewise.
49925         * tests/test-printf-posix.c (ASSERT): Likewise.
49926         * tests/test-quotearg.c (ASSERT): Likewise.
49927         * tests/test-rbtree_list.c (ASSERT): Likewise.
49928         * tests/test-rbtree_oset.c (ASSERT): Likewise.
49929         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
49930         * tests/test-round1.c (ASSERT): Likewise.
49931         * tests/test-roundf1.c (ASSERT): Likewise.
49932         * tests/test-roundl.c (ASSERT): Likewise.
49933         * tests/test-signbit.c (ASSERT): Likewise.
49934         * tests/test-sleep.c (ASSERT): Likewise.
49935         * tests/test-snprintf-posix.c (ASSERT): Likewise.
49936         * tests/test-snprintf.c (ASSERT): Likewise.
49937         * tests/test-sprintf-posix.c (ASSERT): Likewise.
49938         * tests/test-stat-time.c (ASSERT): Likewise.
49939         * tests/test-strcasestr.c (ASSERT): Likewise.
49940         * tests/test-strerror.c (ASSERT): Likewise.
49941         * tests/test-striconv.c (ASSERT): Likewise.
49942         * tests/test-striconveh.c (ASSERT): Likewise.
49943         * tests/test-striconveha.c (ASSERT): Likewise.
49944         * tests/test-strsignal.c (ASSERT): Likewise.
49945         * tests/test-strstr.c (ASSERT): Likewise.
49946         * tests/test-strtod.c (ASSERT): Likewise.
49947         * tests/test-trunc1.c (ASSERT): Likewise.
49948         * tests/test-trunc2.c (ASSERT): Likewise.
49949         * tests/test-truncf1.c (ASSERT): Likewise.
49950         * tests/test-truncf2.c (ASSERT): Likewise.
49951         * tests/test-truncl.c (ASSERT): Likewise.
49952         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
49953         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
49954         * tests/test-vasnprintf.c (ASSERT): Likewise.
49955         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
49956         * tests/test-vasprintf.c (ASSERT): Likewise.
49957         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
49958         * tests/test-vprintf-posix.c (ASSERT): Likewise.
49959         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
49960         * tests/test-vsnprintf.c (ASSERT): Likewise.
49961         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
49962         * tests/test-wcwidth.c (ASSERT): Likewise.
49963         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
49964         * tests/test-xprintf-posix.c (ASSERT): Likewise.
49965         * tests/test-xvasprintf.c (ASSERT): Likewise.
49966         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
49967         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
49968         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
49969         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
49970         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
49971         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
49972         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
49973         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
49974         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
49975         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
49976         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
49977         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
49978         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
49979         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
49980         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
49981         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
49982         * tests/unictype/test-block_list.c (ASSERT): Likewise.
49983         * tests/unictype/test-block_of.c (ASSERT): Likewise.
49984         * tests/unictype/test-block_test.c (ASSERT): Likewise.
49985         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
49986         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
49987         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
49988         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
49989         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
49990         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
49991         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
49992         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
49993         * tests/unictype/test-combining.c (ASSERT): Likewise.
49994         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
49995         * tests/unictype/test-digit.c (ASSERT): Likewise.
49996         * tests/unictype/test-mirror.c (ASSERT): Likewise.
49997         * tests/unictype/test-numeric.c (ASSERT): Likewise.
49998         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
49999         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50000         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50001         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50002         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50003         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50004         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50005         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50006         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50007         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50008         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50009         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50010         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50011         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50012         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50013         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50014         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50015         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50016         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50017         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50018         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50019         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50020         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50021         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50022         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50023         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50024         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50025         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50026         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50027         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50028         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50029         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50030         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50031         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50032         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50033         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50034         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50035         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50036         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50037         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50038         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50039         Reported by Eric Blake.
50040
50041 2008-04-11  Bruno Haible  <bruno@clisp.org>
50042
50043         * lib/wchar.in.h: Tweak comment.
50044
50045 2008-04-11  Bruno Haible  <bruno@clisp.org>
50046
50047         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50048         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50049         gl_COMMON.
50050         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50051
50052 2008-04-11  Bruno Haible  <bruno@clisp.org>
50053
50054         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50055
50056 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50057
50058         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50059         of attempting to use non-existing /dev/*random.  Based on patch
50060         from Adam Strzelecki <ono@java.pl> in
50061         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50062
50063 2008-04-08  Bruno Haible  <bruno@clisp.org>
50064
50065         Add tentative support for emx+gcc.
50066         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50067         * lib/fpurge.c (fpurge): Likewise.
50068         * lib/freadable.c (freadable): Likewise.
50069         * lib/freadahead.c (freadahead): Likewise.
50070         * lib/freading.c (freading): Likewise.
50071         * lib/freadptr.c (freadptr): Likewise.
50072         * lib/freadseek.c (freadptrinc): Likewise.
50073         * lib/fseeko.c (rpl_fseeko): Likewise.
50074         * lib/fseterr.c (fseterr): Likewise.
50075         * lib/fwritable.c (fwritable): Likewise.
50076         * lib/fwriting.c (fwriting): Likewise.
50077         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50078
50079 2008-04-09  Eric Blake  <ebb9@byu.net>
50080
50081         Avoid some autoconf warnings.
50082         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50083         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50084         * m4/afs.m4 (gl_AFS): Likewise.
50085         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50086         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50087         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50088         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50089         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50090         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50091         (AC_CHECK_DECLS_ONCE): Likewise.
50092         Rename file...
50093         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50094         gnulib-tool requires autoconf 2.59 or better.
50095         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50096
50097 2008-04-08  Eric Blake  <ebb9@byu.net>
50098
50099         Use 'git describe --match' if present (added in git 1.5.5).
50100         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50101         if possible.
50102
50103 2008-04-08  Bruno Haible  <bruno@clisp.org>
50104
50105         Add tentative support for OpenServer.
50106         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50107         _ptr, _cnt.
50108         * lib/fpurge.c (fpurge): Likewise.
50109         * lib/freadable.c (freadable): Likewise.
50110         * lib/freadahead.c (freadahead): Likewise.
50111         * lib/freading.c (freading): Likewise.
50112         * lib/freadptr.c (freadptr): Likewise.
50113         * lib/freadseek.c (freadptrinc): Likewise.
50114         * lib/fseeko.c (rpl_fseeko): Likewise.
50115         * lib/fseterr.c (fseterr): Likewise.
50116         * lib/fwritable.c (fwritable): Likewise.
50117         * lib/fwriting.c (fwriting): Likewise.
50118         Reported by Roger Cornelius <rac@tenzing.org> and
50119         Brian K. White <brian@aljex.com>.
50120
50121 2008-04-06  Jim Meyering  <meyering@redhat.com>
50122
50123         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50124
50125 2008-04-06  Bruno Haible  <bruno@clisp.org>
50126
50127         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50128         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50129         * tests/test-printf-posix.sh: Likewise.
50130         * tests/test-vfprintf-posix.sh: Likewise.
50131         * tests/test-vprintf-posix.sh: Likewise.
50132         * tests/test-xprintf-posix.sh: Likewise.
50133
50134 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50135
50136         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50137         hide error from 'ls', needed on OS/2.
50138         Report by Elbert Pol <elbert.pol@gmail.com>.
50139
50140 2008-04-04  Eric Blake  <ebb9@byu.net>
50141
50142         Make test-fseeko.c failures meaningful.
50143         * tests/test-fseeko.c: Print line number on failure.
50144         * tests/test-fseek.c: Likewise.
50145         Reported by Nelson H. F. Beebe.
50146
50147         Improve strtod bug detection check.
50148         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50149         required for Solaris 10.
50150         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50151
50152 2008-04-04  Bruno Haible  <bruno@clisp.org>
50153
50154         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50155         by m4/setenv.m4.
50156
50157 2008-04-03  Eric Blake  <ebb9@byu.net>
50158
50159         Ensure sane .version contents.
50160         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50161         version string.
50162         * build-aux/git-version-gen: Improve documentation.
50163
50164         Make GNU make output nicer.
50165         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50166         MAKECMDGOALS to enforce message for all command line targets.  Set
50167         srcdir for use in maint.mk.
50168
50169         Another maintainer tweak.
50170         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50171         a target that regenerates version.
50172
50173 2008-04-03  Jim Meyering  <meyering@redhat.com>
50174
50175         vc-list-files: don't cause coreutils "make po-check" failure
50176         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50177
50178 2008-04-03  Eric Blake  <ebb9@byu.net>
50179
50180         Allow VPATH usage of vc-list-files.
50181         * build-aux/vc-list-files (scriptversion): Add timestamp.
50182         (options): Add --help, --version, -C.
50183         (CVS): Support installed cvsu.
50184
50185 2008-04-02  Bruno Haible  <bruno@clisp.org>
50186
50187         Avoid some "statement with no effect" warnings from gcc.
50188         * tests/test-wctype.c (main): Explicitly ignore unused values.
50189         Reported by Jim Meyering.
50190
50191 2008-04-02  Jim Meyering  <meyering@redhat.com>
50192
50193         Avoid some warnings from "gcc -Wshadow".
50194         * tests/test-frexp.c (exp): Define to a different identifier.
50195         * tests/test-frexpl.c (exp): Likewise.
50196
50197 2008-04-03  Jim Meyering  <meyering@redhat.com>
50198
50199         bootstrap: remove dangling *.[ch] symlinks from lib
50200         * build-aux/bootstrap [dangling symlink removal]: Move find's
50201         -depth option to precede all others, to avoid a warning.
50202         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50203
50204 2008-04-02  Bruno Haible  <bruno@clisp.org>
50205
50206         Avoid some warnings from "gcc -Wshadow".
50207         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50208         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50209         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50210         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50211         Reported by Jim Meyering.
50212
50213 2008-04-01  Bruno Haible  <bruno@clisp.org>
50214
50215         Fix test to work on IRIX 6.5 with cc.
50216         * tests/test-math.c (numeric_equal): New function.
50217         (main): Use it.
50218
50219 2008-04-01  Bruno Haible  <bruno@clisp.org>
50220
50221         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50222
50223 2008-04-01  Bruno Haible  <bruno@clisp.org>
50224
50225         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50226         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50227         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50228         (Depends-on): Remove math.
50229
50230         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50231         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50232         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50233         (Depends-on): Remove math.
50234
50235         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50236         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50237         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50238         (Depends-on): Remove math.
50239         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50240         (Depends-on): Remove math.
50241
50242         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50243         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50244         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
50245         (Depends-on): Remove math.
50246         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
50247         (Depends-on): Remove math.
50248
50249         * tests/test-round1.c: Include nan.h.
50250         (main): Use NaNd instead of NAN.
50251         * modules/round-tests (Files): Add tests/nan.h.
50252
50253         * tests/test-trunc1.c: Include nan.h.
50254         (main): Use NaNd instead of NAN.
50255         * modules/trunc-tests (Files): Add tests/nan.h.
50256
50257         * tests/test-roundf1.c: Include nan.h.
50258         (main): Use NaNf instead of NAN.
50259         * modules/roundf-tests (Files): Add tests/nan.h.
50260
50261         * tests/test-truncf1.c: Include nan.h.
50262         (main): Use NaNf instead of NAN.
50263         * modules/truncf-tests (Files): Add tests/nan.h.
50264
50265         * tests/test-ceilf1.c: Include nan.h.
50266         (main): Use NaNf instead of NAN.
50267         * modules/ceilf-tests (Files): Add tests/nan.h.
50268
50269         * tests/test-floorf1.c: Include nan.h.
50270         (main): Use NaNf instead of NAN.
50271         * modules/floorf-tests (Files): Add tests/nan.h.
50272
50273         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
50274         (main): Use NaNf instead of NAN.
50275         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
50276
50277         * tests/test-isnand.c: Include nan.h instead of <math.h>.
50278         (main): Use NaNd instead of NAN.
50279         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
50280
50281         * tests/test-frexp.c: Include nan.h.
50282         (main): Use NaNd instead of NAN.
50283         * modules/frexp-tests (Files): Add tests/nan.h.
50284
50285         * lib/isnan.c: Don't include <math.h>.
50286         (FUNC): Don't use NAN macro.
50287         * modules/isnand-nolibm (Depends-on): Remove math.
50288         * modules/isnanf-nolibm (Depends-on): Remove math.
50289         * modules/isnanl (Depends-on): Remove math.
50290         * modules/isnanl-nolibm (Depends-on): Remove math.
50291
50292         * tests/nan.h: New file.
50293
50294 2008-04-01  Eric Blake  <ebb9@byu.net>
50295
50296         Fix typos.
50297         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
50298         values to be the right type.
50299
50300         For now, cater to gnulib strtod inaccuracies.
50301         * tests/test-strtod.c (main): Allow 1-ulp error on expected
50302         fractional results.  While not as nice from a QoI perspective, it
50303         is a quicker patch than correctly implementing decimal to binary
50304         rounding.
50305
50306 2008-03-31  Eric Blake  <ebb9@byu.net>
50307
50308         Guarantee a definition of NAN.
50309         * lib/math.in.h (NAN): Define if missing.
50310         * tests/test-math.c (main): Test it.
50311         * doc/posix-headers/math.texi (math.h): Document this.
50312         * lib/isnan.c (rpl_isnand): Use it.
50313         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
50314         * tests/test-floorf1.c (NaN): Likewise.
50315         * tests/test-frexp.c (NaN): Likewise.
50316         * tests/test-isnand.c (NaN): Likewise.
50317         * tests/test-isnanf.c (NaN): Likewise.
50318         * tests/test-round1.c (NaN): Likewise.
50319         * tests/test-roundf1.c (NaN): Likewise.
50320         * tests/test-snprintf-posix.h (NaN): Likewise.
50321         * tests/test-sprintf-posix.h (NaN): Likewise.
50322         * tests/test-trunc1.c (NaN): Likewise.
50323         * tests/test-truncf1.c (NaN): Likewise.
50324         * tests/test-vasnprintf-posix.c (NaN): Likewise.
50325         * tests/test-vasprintf-posix.c (NaN): Likewise.
50326         * modules/isnand-nolibm (Depends-on): Add math.
50327         * modules/isnanf-nolibm (Depends-on): Likewise.
50328         * modules/isnanl (Depends-on): Likewise.
50329         * modules/isnanl-nolibm (Depends-on): Likewise.
50330         * modules/snprintf-posix-tests (Depends-on): Likewise.
50331         * modules/sprintf-posix-tests (Depends-on): Likewise.
50332         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
50333         * modules/vsprintf-posix-tests (Depends-on): Likewise.
50334         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
50335         * modules/vasprintf-posix-tests (Depends-on): Likewise.
50336
50337 2008-03-31  Bruno Haible  <bruno@clisp.org>
50338
50339         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
50340         * doc/posix-functions/strtod.texi: Likewise.
50341
50342 2008-03-31  Bruno Haible  <bruno@clisp.org>
50343
50344         * tests/test-strtod.c (main): Don't use C99 syntax.
50345
50346 2008-03-31  Bruno Haible  <bruno@clisp.org>
50347
50348         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50349         Reported by Eric Blake.
50350
50351 2008-03-31  Jim Meyering  <meyering@redhat.com>
50352
50353         Don't compare actual signbit return values.
50354         * tests/test-strtod.c (main): Rather, compare only their
50355         zero/non-zero nature.
50356
50357 2008-03-31  Eric Blake  <ebb9@byu.net>
50358
50359         More strtod documentation.
50360         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50361         failures as distinct bugs.
50362
50363 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50364
50365         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50366         Problem reported by Erik Benada in
50367         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50368
50369 2008-03-30  Bruno Haible  <bruno@clisp.org>
50370
50371         * tests/test-strtod.c: Add comments about which assertion fails on which
50372         platform.
50373         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50374
50375 2008-03-30  Eric Blake  <ebb9@byu.net>
50376
50377         Test signbit behavior on zeros.
50378         * tests/test-signbit.c (test_signbitf): Add tests for zero.
50379         (test_signbitd, test_signbitl): Likewise.
50380
50381         More strtod touchups.
50382         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
50383         sign of negative underflow, for now.  Use .5, not .1.
50384         * doc/posix-functions/strtod.texi (strtod): Mention these
50385         limitations.
50386         Reported by Jim Meyering.
50387
50388 2008-03-30  Bruno Haible  <bruno@clisp.org>
50389
50390         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
50391         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
50392
50393 2008-03-30  Bruno Haible  <bruno@clisp.org>
50394
50395         Avoid failure when attempting to return empty iconv results on some
50396         platforms.
50397         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
50398         allocation, don't report ENOMEM when the resulting string is empty.
50399
50400 2008-03-30  Bruno Haible  <bruno@clisp.org>
50401
50402         Fix buffer overrun.
50403         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
50404         Don't consider the width for tmp_length. Check count against tmp_length
50405         before doing the padding. Ensure enough allocation during padding.
50406
50407 2008-03-30  Eric Blake  <ebb9@byu.net>
50408
50409         strtod touchups.
50410         * lib/strtod.c (strtod): Avoid compiler warnings.
50411         Reported by Jim Meyering.
50412
50413 2008-03-30  Bruno Haible  <bruno@clisp.org>
50414
50415         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50416         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50417         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
50418         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
50419         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
50420         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
50421         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
50422         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
50423
50424         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
50425         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
50426         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
50427         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
50428         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
50429         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
50430         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
50431         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
50432
50433         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
50434         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
50435         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
50436         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
50437         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
50438         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
50439         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
50440         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
50441
50442         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
50443         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
50444
50445         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
50446         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
50447
50448         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
50449         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
50450
50451         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
50452         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
50453         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
50454
50455         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
50456         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
50457         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
50458
50459         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
50460         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
50461         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
50462
50463         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
50464         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
50465         * modules/vasprintf (Depends-on): Add EOVERFLOW.
50466
50467         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
50468         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
50469         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
50470         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
50471         (Depends-on): Add EOVERFLOW.
50472         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
50473         (Depends-on): Add EOVERFLOW.
50474         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50475         (Depends-on): Add EOVERFLOW.
50476         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50477         (Depends-on): Add EOVERFLOW.
50478         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50479         (Depends-on): Add EOVERFLOW.
50480         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50481         (Depends-on): Add EOVERFLOW.
50482         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50483         (Depends-on): Add EOVERFLOW.
50484         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50485         (Depends-on): Add EOVERFLOW.
50486
50487         * lib/sprintf.c (EOVERFLOW): Remove fallback.
50488         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
50489         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
50490
50491         * lib/snprintf.c (EOVERFLOW): Remove fallback.
50492         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
50493         * modules/snprintf (Depends-on): Add EOVERFLOW.
50494
50495         * lib/poll.c (EOVERFLOW): Remove fallback.
50496         * modules/poll (Depends-on): Add EOVERFLOW.
50497
50498         * lib/getugroups.c (EOVERFLOW): Remove fallback.
50499         * modules/getugroups (Depends-on): Add EOVERFLOW.
50500
50501         * lib/getdelim.c (EOVERFLOW): Remove fallback.
50502         * modules/getdelim (Depends-on): Add EOVERFLOW.
50503
50504         * lib/ftell.c (EOVERFLOW): Remove fallback.
50505         * modules/ftell (Depends-on): Add EOVERFLOW.
50506
50507         * lib/fprintf.c (EOVERFLOW): Remove fallback.
50508         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
50509         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
50510
50511         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
50512
50513         * modules/EOVERFLOW-tests: New file.
50514         * tests/test-EOVERFLOW.c: New file.
50515
50516         * modules/EOVERFLOW: New file.
50517         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
50518
50519 2008-03-30  Bruno Haible  <bruno@clisp.org>
50520
50521         Fix bug introduced on 2007-06-10.
50522         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
50523         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
50524
50525 2008-03-30  Bruno Haible  <bruno@clisp.org>
50526
50527         Improve freadseek's efficiency after ungetc.
50528         * lib/freadseek.c: Include freadahead.h.
50529         (freadptrinc): New function, extracted from freadseek.
50530         (freadseek): Use it in a loop. Use freadahead to determine the number
50531         of loop iterations.
50532         * modules/freadseek (Depends-on): Add freadahead.
50533         (configure.ac): Require AC_C_INLINE.
50534
50535 2008-03-30  Bruno Haible  <bruno@clisp.org>
50536
50537         * lib/freadseek.c (freadseek): Don't ignore the return value of
50538         freadptr.
50539
50540 2008-03-29  Eric Blake  <ebb9@byu.net>
50541
50542         Add hex float support.
50543         * modules/strtod (Depends-on): Add c-ctype.
50544         (Link): Mention POW_LIB.
50545         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
50546         whitespace between 'e' and exponent.
50547         * tests/test-strtod.c (main): Enable hex float tests.
50548         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
50549         now provides.
50550
50551         Document various strtod bugs, with some fixes.
50552         * doc/posix-functions/strtod.texi (strtod): Document bugs with
50553         "-0x", "inf", "nan", and hex constants.
50554         * doc/posix-functions/atof.texi (atof): Likewise.
50555         * modules/stdlib (Makefile.am): Support strtod.
50556         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
50557         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
50558         detect additional strtod bugs.
50559         * lib/stdlib.in.h (rpl_strtod): Add declarations.
50560         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
50561         bool where appropriate.  Parse 'inf' and 'nan'.
50562         * tests/test-strtod.c: New file.
50563         * modules/strtod (Depends-on): Add stdbool, stdlib.
50564         (configure.ac): Turn on module indicator.
50565         * modules/strtod-tests: New module.
50566
50567 2008-03-29  Eric Blake  <ebb9@byu.net>
50568
50569         Fix ftell on mingw.
50570         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
50571         * modules/ftell-tests (Depends-on): Add binary-io.
50572         * modules/ftello-tests (Depends-on): Likewise.
50573         * tests/test-ftell.c (main): Enhance test to cover behavior after
50574         ungetc.  Enforce binary mode.
50575         * tests/test-ftello.c (main): Likewise.
50576
50577         Pass test-freadseek on cygwin.
50578         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
50579         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
50580         ungetc buffer.
50581
50582         * tests/test-fflush2.c (main): Fix typo.
50583
50584 2008-03-29  Bruno Haible  <bruno@clisp.org>
50585
50586         * tests/test-fflush2.c (main): Temporarily disable the contents of
50587         this test.
50588         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
50589         Reported by Eric Blake.
50590
50591 2008-03-28  Simon Josefsson  <simon@josefsson.org>
50592
50593         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
50594         (GC_SHA224_DIGEST_SIZE): Add.
50595
50596         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
50597         (gc_hash_digest_length): Likewise.
50598         (gc_hash_buffer): Likewise.
50599
50600 2008-03-25  Bruno Haible  <bruno@clisp.org>
50601
50602         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
50603         detail which gettext release to use.
50604         Reported by Simon Josefsson.
50605
50606 2008-03-26  Jim Meyering  <meyering@redhat.com>
50607
50608         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
50609         * modules/gnumakefile (clean-GNUmakefile): Also, use
50610         test ... && ... || : syntax rather than if-then ... fi.
50611
50612         gnumakefile: Don't double-quote-expand $(VPATH) value.
50613         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
50614
50615 2008-03-24  Eric Blake  <ebb9@byu.net>
50616
50617         Alter GNUmakefile to install into top directory.
50618         * modules/maintainer-makefile: Split, and add dependency...
50619         * modules/gnumakefile: to this new module.
50620         * build-aux/GNUmakefile: Move...
50621         * top/GNUmakefile: ...here.
50622         * build-aux/maint.mk: Move...
50623         * top/maint.mk: ...here.
50624         * MODULES.html.sh (Support for maintaining...): Document new
50625         module.
50626
50627 2008-03-23  Bruno Haible  <bruno@clisp.org>
50628
50629         * gnulib-tool: New options --vc-files, --no-vc-files.
50630         (func_usage): Document them.
50631         (vc_files): New variable.
50632         (func_import): Consider vc_files.
50633         (func_create_testdir): Set vc_files to empty.
50634         Suggested by Jim Meyering and Karl Berry.
50635
50636 2008-03-23  Bruno Haible  <bruno@clisp.org>
50637
50638         Fix regex compilation error on HP-UX 11.
50639         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
50640         * modules/regex (Files): Add m4/mbstate_t.m4.
50641         Reported by Ton Voon <ton.voon@altinity.com>.
50642
50643 2008-03-23  Bruno Haible  <bruno@clisp.org>
50644
50645         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
50646
50647 2008-03-23  Eric Blake  <ebb9@byu.net>
50648             Bruno Haible  <bruno@clisp.org>
50649
50650         Install files from top/ in the destination directory.
50651         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50652         augmentation also for the files from top/.
50653         (func_import, func_create_testdir): Rewrite file names:
50654         top/filename -> filename.
50655
50656 2008-03-23  Bruno Haible  <bruno@clisp.org>
50657
50658         Tweak "gnulib --version" output.
50659         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
50660
50661 2008-03-23  Bruno Haible  <bruno@clisp.org>
50662
50663         Tweak "gnulib --version" output.
50664         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
50665         rather than contents of ChangeLog, when possible.
50666
50667 2008-03-21  Eric Blake  <ebb9@byu.net>
50668
50669         More --version tweaks.
50670         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
50671         date of last ChangeLog entry.
50672
50673 2008-03-21  Jim Meyering  <meyering@redhat.com>
50674
50675         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
50676
50677 2008-03-20  Eric Blake  <ebb9@byu.net>
50678
50679         VPATH fix.
50680         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
50681
50682 2008-03-20  Simon Josefsson  <simon@josefsson.org>
50683
50684         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
50685         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
50686
50687 2008-03-20  Eric Blake  <ebb9@byu.net>
50688
50689         Sync GNUmakefile with coreutils.
50690         * build-aux/GNUmakefile (have-Makefile): Rename...
50691         (_have-Makefile): ...to this, for namespace consideration.
50692         (GNUmakefile.cfg): Include, if present.
50693         (_autoreconf): Define a default.
50694         (_is-dist-target): New rule for rebuilds to pick up intra-release
50695         version.
50696         (maint-cfg.mk): Rename...
50697         (cfg.mk): ...to this.
50698
50699 2008-03-18  Jim Meyering  <meyering@redhat.com>
50700
50701         New script and module: mktempd
50702         * MODULES.html.sh (maint+release support): Add mktempd.
50703         * build-aux/mktempd: New file.
50704         * modules/mktempd: New file.
50705
50706 2008-03-15  Jim Meyering  <meyering@redhat.com>
50707
50708         Undo last change.
50709         * lib/sha1.c, lib/md5.c: 63 != ~63.
50710         Reported by Andreas Schwab.
50711
50712         sha1.c, md5.c: Hoist a redundant expression.
50713         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
50714         "ctx->buflen" only once, before calling *_process_block.
50715         * lib/md5.c (md5_process_bytes): Likewise.
50716
50717 2008-03-14  Eric Blake  <ebb9@byu.net>
50718
50719         Bump copyright year in files generated by gnulib-tool.
50720         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
50721         gnulib-tool, rather than hard-coding it.
50722
50723         Fix 'gnulib-tool --version' output to work with git.
50724         * gnulib-tool (func_gnulib_dir): New function, extracted from...
50725         (startup): ...here.
50726         (func_version): Use it to invoke git-version-gen, rather than
50727         relying on CVS keyword expansion.  Modernize wording.
50728         (cvsdatestamp, last_checkin_date, version): Kill unused
50729         variables.
50730
50731 2008-03-12  Jim Meyering  <meyering@redhat.com>
50732
50733         Recognize optional cast of the argument to free.
50734         * build-aux/useless-if-before-free: Update regexps.
50735
50736         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
50737
50738 2008-03-11  Bruno Haible  <bruno@clisp.org>
50739
50740         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
50741         by a single package.
50742         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
50743         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
50744         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
50745         Reported by Sam Steingold <sds@gnu.org>.
50746
50747 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50748
50749         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
50750         repositories.
50751
50752 2008-03-11  Bruno Haible  <bruno@clisp.org>
50753
50754         Avoid conflicts between local macro definitions.
50755         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50756         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
50757
50758 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
50759             Bruno Haible  <bruno@clisp.org>
50760
50761         Make va_copy work with some version of xlc on AIX 5.1.
50762         * lib/stdarg.in.h: New file.
50763         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
50764         On AIX, use a <stdarg.h> file substitute.
50765         * modules/stdarg (Files): Add lib/stdarg.in.h.
50766         (Depends-on): Add include_next.
50767         (Makefile.am): Build a stdarg.h substitute if requested.
50768         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
50769
50770 2008-03-10  Bruno Haible  <bruno@clisp.org>
50771
50772         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
50773         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50774         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50775
50776 2008-03-10  Bruno Haible  <bruno@clisp.org>
50777
50778         * modules/stdlib (Depends-on): Add include_next, remove
50779         absolute-header.
50780
50781 2008-03-09  Bruno Haible  <bruno@clisp.org>
50782
50783         * lib/freadahead.h (freadahead): Document more precisely.
50784         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
50785         the sum of both buffer sizes.
50786         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
50787         * NEWS: Document the change.
50788
50789 2008-03-09  Bruno Haible  <bruno@clisp.org>
50790
50791         Extend freadptr to return also the buffer size.
50792         * lib/freadptr.h (freadptr): Add sizep argument.
50793         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
50794         (freadptr): Add sizep argument. Determine buffer size like freadahead
50795         does.
50796         * tests/test-freadptr.c: Don't include freadahead.h.
50797         (main): Adapt for new calling convention of freadptr.
50798         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
50799         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
50800         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
50801         tests/test-freadptr2.sh.
50802         (Depends): Remove freadahead.
50803         (TESTS): Add test-freadptr2.sh.
50804         (check_PROGRAMS): Add test-freadptr2.
50805
50806 2008-03-09  Bruno Haible  <bruno@clisp.org>
50807
50808         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
50809         Report and solution by Simon Josefsson.
50810
50811 2008-03-06  Bruno Haible  <bruno@clisp.org>
50812
50813         Make fflush after ungetc work on BSD platforms.
50814         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
50815         * tests/test-fflush2.c: New file.
50816         * tests/test-fflush2.sh: New file.
50817         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
50818         tests/test-fflush2.c.
50819         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
50820         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
50821
50822 2008-03-06  Eric Blake  <ebb9@byu.net>
50823
50824         Likewise for ftello.
50825         * modules/ftello (Dependencies): Add extensions.
50826         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
50827
50828 2008-03-06  Bruno Haible  <bruno@clisp.org>
50829
50830         * modules/fseeko (Dependencies): Add extensions.
50831         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
50832         Needed on glibc systems.
50833
50834 2008-03-06  Bruno Haible  <bruno@clisp.org>
50835
50836         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
50837         email address.
50838         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50839
50840 2008-03-06  Bruno Haible  <bruno@clisp.org>
50841
50842         * users.txt: Add libgnupdf.
50843
50844 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50845
50846         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
50847         (Header File Substitutes, Function Substitutes,
50848         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
50849         (Build robot for gnulib): Fix typo.
50850
50851 2008-03-06  Bruno Haible  <bruno@clisp.org>
50852
50853         * doc/gnulib-tool.texi (VCS Issues): Small updates.
50854         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50855
50856 2008-03-06  Bruno Haible  <bruno@clisp.org>
50857
50858         * doc/func.texi: New file, extracted from doc/gnulib.texi.
50859         * doc/gnulib.texi: Include it.
50860
50861 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50862
50863         * modules/func (License): Change license to unlimited; there was
50864         no LGPL parts in the module anyway.
50865
50866 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50867
50868         * modules/__func__: Renamed to modules/func.
50869         * modules/__func__-tests: Renamed to modules/func-tests.
50870         * tests/test-__func__.c: Renamed to tests/test-func.c.
50871         * m4/__func__.m4: Renamed to m4/func.m4.
50872         * doc/gnulib.texi (__func__): Section renamed to func.
50873         Suggested by Eric Blake <ebb9@byu.net>.
50874
50875 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50876
50877         * doc/gnulib.texi (__func__): Use C99 terminology when talking
50878         about __func__.  Make example self-contained.  Suggested by Eric
50879         Blake <ebb9@byu.net>.
50880
50881         * tests/test-__func__.c (main): Avoid extraneous () around __func.
50882         Suggested by Eric Blake <ebb9@byu.net>.
50883
50884 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50885
50886         * modules/__func__: New file.
50887         * modules/__func__-tests: New file.
50888         * tests/test-__func__.c: New file.
50889         * m4/__func__.m4: New file.
50890         * doc/gnulib.texi (__func__): Document __func__ module.
50891
50892 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50893
50894         * modules/byteswap (License): Re-license as LGPLv2+.
50895
50896 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50897
50898         * doc/Makefile: Add pdf target.
50899
50900 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50901
50902         * modules/inline (License): Use 'unlimited', since there are only
50903         *.m4 files in this module.
50904
50905 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50906             Bruno Haible  <bruno@clisp.org>
50907
50908         Add support for HP C 7.1 on OpenVMS 8.3.
50909         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
50910
50911 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50912
50913         Update VMS specifics.
50914         * lib/getopt.c [VMS]: Remove include of unixlib.h.
50915
50916 2008-03-02  Jim Meyering  <meyering@redhat.com>
50917
50918         Remove the last dependency on the "free" module.
50919         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
50920         Reported by Bob Proulx.
50921
50922         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
50923
50924         Remove useless "if" tests before free.  Deprecate "free" module.
50925         * doc/posix-functions/free.texi: Mention that this
50926         module is no longer useful.
50927         * modules/free (Notice): Say this module is obsolete.
50928         * modules/readutmp (Depends-on): Remove free.
50929         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
50930         * lib/putenv.c (putenv): Likewise.
50931         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
50932         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
50933         * tests/test-c-strcasestr.c (main): Likewise.
50934         * tests/test-c-strstr.c (main): Likewise.
50935         * tests/test-mbscasestr1.c (main): Likewise.
50936         * tests/test-mbscasestr2.c (main): Likewise.
50937         * tests/test-mbsstr1.c (main): Likewise.
50938         * tests/test-mbsstr2.c (main): Likewise.
50939         * tests/test-memmem.c (main): Likewise.
50940         * tests/test-strcasestr.c (main): Likewise.
50941         * tests/test-striconv.c (main): Likewise.
50942         * tests/test-striconveh.c (main): Likewise.
50943         * tests/test-striconveha.c (main): Likewise.
50944         * tests/test-strstr.c (main): Likewise.
50945
50946         * build-aux/git-version-gen: Adjust a comment and the Usage string.
50947
50948         bootstrap: sync from coreutils again
50949         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
50950
50951 2008-03-01  Jim Meyering  <meyering@redhat.com>
50952
50953         bootstrap: sync from coreutils
50954         * build-aux/bootstrap (update_po_files): Copy a .po file into place
50955         also when the target doesn't exist.
50956
50957 2008-03-01  Eric Blake  <ebb9@byu.net>
50958
50959         Fix bugs in last patch.
50960         * lib/memchr2.c (memchr2): Fix typo.
50961         * tests/test-memchr2.c: Test previous bug, and don't use GNU
50962         extension.
50963         Reported by Bruce Korb.
50964
50965         New module 'memchr2'.
50966         * modules/memchr2: New file.
50967         * modules/memchr2-tests: Likewise.
50968         * lib/memchr2.h: Likewise.
50969         * lib/memchr2.c: Likewise, based on memchr.c.
50970         * tests/test-memchr2.c: New test.
50971         * MODULES.html.sh (String handling): Add memchr2.
50972
50973 2008-02-29  Bruno Haible  <bruno@clisp.org>
50974
50975         * modules/freadseek-tests: New file.
50976         * tests/test-freadseek.sh: New file.
50977         * tests/test-freadseek.c: New file.
50978
50979         New module 'freadseek'.
50980         * modules/freadseek: New file.
50981         * lib/freadseek.h: New file.
50982         * lib/freadseek.c: New file.
50983         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
50984
50985 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50986
50987         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
50988         wydawca.
50989
50990         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
50991         program_invocation_name and program_invocation_short_name are
50992         present.
50993
50994 2008-02-28  Bruno Haible  <bruno@clisp.org>
50995
50996         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
50997         * tests/test-freadptr.sh: Also test non-seekable stdin.
50998
50999 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51000
51001         * build-aux/bootstrap (source_base, m4_base)
51002         (doc_base, tests_base): New variables.
51003         (gnulib_tool_options): Do not hardcode base directories, use
51004         the above variables instead.
51005
51006 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51007
51008         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51009
51010 2008-02-28  Bruno Haible  <bruno@clisp.org>
51011
51012         * modules/freadptr-tests: New file.
51013         * tests/test-freadptr.sh: New file.
51014         * tests/test-freadptr.c: New file.
51015
51016         New module 'freadptr'.
51017         * modules/freadptr: New file.
51018         * lib/freadptr.h: New file.
51019         * lib/freadptr.c: New file.
51020         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51021
51022 2008-02-26  Karl Berry  <karl@freefriends.org>
51023
51024         Sync from Libtool:
51025         * libltdl/argz.c (argz_add, argz_count): New functions.
51026         * libltdl/argz.in.h: Declare them.
51027         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51028
51029 2008-02-22  Bruno Haible  <bruno@clisp.org>
51030
51031         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51032         is a pointer type.  Needed for HP-UX 10.
51033         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51034         * doc/posix-functions/gmtime_r.texi: Likewise.
51035         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51036
51037 2008-02-24  Bruno Haible  <bruno@clisp.org>
51038
51039         * modules/environ-tests: New file.
51040         * tests/test-environ.c: New file.
51041
51042         New module 'environ'.
51043         * modules/environ: New file.
51044         * lib/unistd.in.h (environ): New declaration.
51045         * m4/environ.m4: New file.
51046         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51047         after use.
51048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51049         HAVE_DECL_ENVIRON.
51050         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51051         HAVE_DECL_ENVIRON.
51052         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51053         wrong claim that 'environ' is missing on some systems.
51054         * modules/execute (Depends-on): Add environ.
51055         * lib/execute.c (environ): Remove fallback declaration.
51056         * modules/pipe (Depends-on): Add environ.
51057         * lib/pipe.c (environ): Remove fallback declaration.
51058         * modules/setenv (Depends-on): Add environ.
51059         * lib/setenv.c (environ): Remove fallback declaration.
51060         * modules/unsetenv (Depends-on): Add environ.
51061         * lib/unsetenv.c (environ): Remove fallback declaration.
51062         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51063         m4/environ.m4.
51064         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51065         (gl_PREREQ_UNSETENV): Likewise.
51066
51067 2008-02-24  Bruno Haible  <bruno@clisp.org>
51068
51069         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51070
51071 2008-02-20  Bob Proulx  <bob@proulx.com>
51072
51073         Enable use of older two part flavor 'git describe'.
51074         * build-aux/git-version-gen: If using the older two part flavor of
51075         git version then recreate the third part now present in the
51076         newer three part flavor of git describe.
51077
51078 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51079
51080         * lib/fts.c (fts_build): Typo correction to comment.
51081
51082 2008-02-17  Bruno Haible  <bruno@clisp.org>
51083
51084         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51085         generating no-op conflicts.
51086
51087 2008-02-17  Bruno Haible  <bruno@clisp.org>
51088
51089         Speed up by 10%.
51090         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51091         result_entries, rather than an index-based loop.
51092
51093 2008-02-17  Bruno Haible  <bruno@clisp.org>
51094
51095         Speed up by 25%.
51096         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51097         'hashcode_cached'.
51098         (entry_create): New function.
51099         (entry_hashcode): Use the cached hashcode if possible.
51100         (read_changelog_file, try_split_merged_entry): Use entry_create.
51101
51102 2008-02-17  Bruno Haible  <bruno@clisp.org>
51103
51104         Speed up from O(n^2) to O(n) for long ChangeLog files.
51105         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51106         (read_changelog_file): Change implementation of entries_reversed list
51107         to rbtreehash.
51108         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51109
51110 2008-02-17  Bruno Haible  <bruno@clisp.org>
51111
51112         New option --split-merged-entry.
51113         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51114         (find_paragraph_end, try_split_merged_entry): New functions.
51115         (long_options): Add option --split-merged-entry.
51116         (usage): Document option --split-merged-entry.
51117         (main): Implement option --split-merged-entry.
51118         Reported by Eric Blake.
51119
51120 2008-02-17  Bruno Haible  <bruno@clisp.org>
51121
51122         * lib/git-merge-changelog.c: Include c-strstr.h.
51123         (main): Support the "git pull --rebase" situation.
51124         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51125         Reported by Eric Blake.
51126
51127 2008-02-16  Eric Blake  <ebb9@byu.net>
51128
51129         Avoid doubling \ in common case of "c-maybe" quoting style.
51130         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51131         eliding outer quotes.
51132         * lib/quotearg.h: Document this.
51133         * tests/test-quotearg.c (result_strings, inputs, results_g)
51134         (flag_results, locale_results): Test it by adding a new string to
51135         each test group.
51136         (compare_strings): Test new string.
51137
51138 2008-02-13  Eric Blake  <ebb9@byu.net>
51139
51140         Avoid trigraph quoting in default output.
51141         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51142         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51143         unless explicitly requested.
51144         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51145
51146 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51147
51148         Don't rely on signed integer overflowing to negative value.
51149         * lib/getugroups.c (getugroups): Include <limits.h>.
51150         Instead, compare against INT_MAX, and increment only if the test passes.
51151
51152 2008-02-13  Jim Meyering  <meyering@redhat.com>
51153         and Eric Blake  <ebb9@byu.net>
51154
51155         Avoid shadowing warning and compile errors on Linux.
51156         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51157         forwarding macros on Linux.
51158         (dcgettext): Define a stub, for Linux.
51159         (results_g, main): Avoid warnings.
51160
51161 2008-02-12  Eric Blake  <ebb9@byu.net>
51162
51163         Silence warning in last patch.
51164         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51165
51166         Quotearg part 4: add tests, fix c-maybe colon quoting.
51167         * lib/quotearg.h: Improve documentation.
51168         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51169         escapes when adding outer quotes.  When quoting trigraphs, use
51170         valid C notation.  When quoting NUL, omit extra characters if next
51171         character is not digit.  Alter prototype.
51172         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51173         callers.
51174         * modules/quotearg-tests: New module.
51175         * tests/test-quotearg.c: New test.
51176
51177 2008-02-07  Eric Blake  <ebb9@byu.net>
51178
51179         Quotearg part 3: add flag to control outer quote elision.
51180         * lib/quotearg.h (c_maybe_quoting_style): New style.
51181         (enum quoting_flags): Better documentation of flags.
51182         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51183         c-maybe style.
51184         (quotearg_buffer_restyled): Handle new flag to elide outer
51185         quotes.
51186
51187         Quotearg part 2: add flag that can control NUL elision.
51188         * lib/quotearg.h (set_quoting_flags): New prototype.
51189         * lib/quotearg.c (struct quoting_options): Add flag field.
51190         (set_quoting_flags): New function.
51191         (quotearg_buffer_restyled): Add flags parameter.
51192         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51193         (quotearg_n_options): Set the flag, since length cannot be
51194         returned.
51195         (quoting_options_from_style): Default flags correctly.
51196
51197         Quotearg part 1: more wrappers, restore quotearg_char state.
51198         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51199         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51200         (quotearg_colon_mem): New wrappers.
51201         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51202         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51203         functions.
51204         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51205         (quotearg_colon_mem): New functions.
51206
51207 2008-02-11  Bruno Haible  <bruno@clisp.org>
51208
51209         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51210         library in the current directory: it does not work with parallel make.
51211         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51212
51213 2008-02-11  Bruno Haible  <bruno@clisp.org>
51214
51215         * .gitattributes: New file.
51216
51217 2008-02-11  Jim Meyering  <meyering@redhat.com>
51218
51219         useless-if-before-free: Fix reversed exit values.
51220         * build-aux/useless-if-before-free: Use correct values
51221         for EXIT_MATCH and EXIT_NO_MATCH.
51222
51223         * build-aux/useless-if-before-free: Close stdout carefully.
51224
51225 2008-02-10  Bruno Haible  <bruno@clisp.org>
51226
51227         New module 'git-merge-changelog'.
51228         * modules/git-merge-changelog: New file.
51229         * lib/git-merge-changelog.c: New file.
51230
51231 2008-02-10  Jim Meyering  <meyering@redhat.com>
51232
51233         useless-if-before-free: New option: --list (-l).
51234
51235         useless-if-before-free: Don't exit immediately upon open failure.
51236         * build-aux/useless-if-before-free: Exit 2 for errors.
51237         Upon failure to open a file, don't exit immediately.
51238         Rather, just warn and continue with any remaining files.
51239
51240 2008-02-10  Bruno Haible  <bruno@clisp.org>
51241
51242         New abstract list operation 'node_set_value'.
51243         * lib/gl_list.h (gl_list_node_set_value): New function.
51244         (struct gl_list_implementation): New field node_set_value.
51245         * lib/gl_list.c (gl_list_node_set_value): New function.
51246         * lib/gl_array_list.c (gl_array_node_set_value): New function.
51247         (gl_array_list_implementation): Update.
51248         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
51249         (gl_carray_list_implementation): Update.
51250         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
51251         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51252         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51253         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
51254         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51255         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51256         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51257         Update.
51258         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51259         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
51260         (gl_sublist_list_implementation): Update.
51261
51262 2008-02-10  Bruno Haible  <bruno@clisp.org>
51263
51264         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
51265         Needed when ELEMENT is #defined to 'some_type *'.
51266
51267 2008-02-10  Jim Meyering  <meyering@redhat.com>
51268
51269         New script and module: useless-if-before-free
51270         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
51271         * build-aux/useless-if-before-free: New file.
51272         * modules/useless-if-before-free: New file.
51273
51274         * build-aux/gitlog-to-changelog: Use committer date, not author date.
51275
51276         xstrtol_error: Fix typo.
51277         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
51278         s/exit_failure/exit_status/.
51279
51280 2008-02-09  Jim Meyering  <meyering@redhat.com>
51281
51282         New script and module: gitlog-to-changelog
51283         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
51284         * modules/gitlog-to-changelog: New file.
51285         * build-aux/gitlog-to-changelog: New file.
51286
51287 2008-02-08  Jim Meyering  <meyering@redhat.com>
51288
51289         Avoid two "parameter unused" warnings.
51290         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
51291         Mark "st" as used.
51292
51293         Use "git COMMAND", not "git-COMMAND".
51294         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
51295         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
51296         * build-aux/git-version-gen: Use "git status", not "git-status".
51297
51298 2008-02-07  Bruno Haible  <bruno@clisp.org>
51299
51300         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
51301         Avoids a crash on Windows Vista.
51302         Reported by Adam Strzelecki <ono@java.pl> via
51303         Simon Josefsson <simon@josefsson.org>.
51304
51305 2008-02-06  Bruno Haible  <bruno@clisp.org>
51306
51307         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
51308         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
51309         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
51310         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
51311         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51312         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51313         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
51314         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
51315         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51316         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51317         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51318         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51319         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51320         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51321         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51322         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
51323         left-adjust flag.
51324         * tests/test-snprintf-posix.h (test_function): Likewise.
51325         * tests/test-sprintf-posix.h (test_function): Likewise.
51326         * tests/test-vasprintf-posix.c (test_function): Likewise.
51327         * doc/posix-functions/fprintf.texi: Update.
51328         * doc/posix-functions/printf.texi: Update.
51329         * doc/posix-functions/snprintf.texi: Update.
51330         * doc/posix-functions/sprintf.texi: Update.
51331         * doc/posix-functions/vfprintf.texi: Update.
51332         * doc/posix-functions/vprintf.texi: Update.
51333         * doc/posix-functions/vsnprintf.texi: Update.
51334         * doc/posix-functions/vsprintf.texi: Update.
51335         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51336
51337 2008-02-06  Bruno Haible  <bruno@clisp.org>
51338
51339         Fix bug introduced on 2008-01-26.
51340         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
51341
51342 2008-02-06  Bruno Haible  <bruno@clisp.org>
51343
51344         Fix bug introduced on 2007-06-10.
51345         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51346         !NEED_PRINTF_FLAG_ZERO.
51347
51348 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51349
51350         getloadavg: use libperfstat on AIX5
51351         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51352
51353 2008-02-03  Bruno Haible  <bruno@clisp.org>
51354
51355         * lib/diffseq.h: Add comments about required #includes.
51356         Reported by Michael Biggs <gnulib@doubleplum.net>.
51357
51358 2008-02-01  Bruno Haible  <bruno@clisp.org>
51359
51360         * users.txt: Add gnuit.
51361
51362 2008-01-31  Bruno Haible  <bruno@clisp.org>
51363
51364         * lib/md4.c (set_uint32): Mark as inline.
51365         * lib/md5.c (set_uint32): Likewise.
51366         * lib/sha1.c (set_uint32): Likewise.
51367         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51368         * m4/md5.m4 (gl_MD5): Likewise.
51369         * m4/sha1.m4 (gl_SHA1): Likewise.
51370
51371 2008-01-31  Jim Meyering  <meyering@redhat.com>
51372
51373         Use "sizeof VAR", rather than a literal "4".
51374         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
51375         * lib/md4.c (md4_read_ctx): Likewise.
51376         * lib/sha1.c (sha1_read_ctx): Likewise.
51377
51378 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51379
51380         * tests/test-sha1.c: New file, based on test-md5.c.
51381
51382         * modules/crypto/sha1-tests: New file.
51383
51384 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51385
51386         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
51387
51388 2008-01-31  Jim Meyering  <meyering@redhat.com>
51389
51390         Prefer "sizeof v" over the equivalent "4".
51391         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
51392         * lib/md5.c (set_uint32): Likewise.
51393         * lib/sha1.c (set_uint32): Likewise.
51394
51395 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51396
51397         * lib/sha1.c (set_uint32): Mark function as static.
51398
51399 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51400
51401         md2: clarify comments to say that alignment is not required.
51402         * lib/md2.h: Remove warning about alignment in comment.
51403         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
51404         never been required.
51405
51406 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51407
51408         md4: adapt alignment constraint fix from sha1.
51409         * lib/md4.c (set_uint32): New function, from sha1.c
51410         (md4_read_ctx): Use it.
51411         (md4_finish_ctx): Doc fix.
51412         * lib/md4.h: Doc fix.
51413
51414 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51415
51416         md5: adapt alignment constraint fix from sha1.
51417         * lib/md5.c (set_uint32): New function, from sha1.c
51418         (md5_read_ctx): Use it.
51419         (md5_finish_ctx): Doc fix.
51420         * lib/md5.h: Doc fix.
51421
51422 2008-01-30  Peter Palfrader  <weasel@debian.org>
51423
51424         sha1: remove the result buffer alignment constraint
51425         * lib/sha1.c (set_uint32): New function.
51426         (sha1_read_ctx): Rewrite to remove the result buffer alignment
51427         constraint.
51428         (sha1_finish_ctx): Remove comment warning about alignment constraint.
51429         * lib/sha1.h: Likewise.
51430
51431 2008-01-30  Andreas Schwab  <schwab@suse.de>
51432             Bruno Haible  <bruno@clisp.org>
51433
51434         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
51435         correct definition of LDBL_MIN_EXP.
51436
51437 2008-01-30  Karl Berry  <karl@gnu.org>
51438
51439         * config/srclist-update: try to preserve x bit on updates.
51440         * config/srclistvars.sh: update for karl.
51441
51442 2008-01-29  Jim Meyering  <meyering@redhat.com>
51443
51444         vasnprintf.c: Avoid warning about unused label
51445         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
51446         "overflow" label definition and associated code with the
51447         same cpp condition that guards the sole use of that label.
51448
51449 2008-01-26  Bruno Haible  <bruno@clisp.org>
51450
51451         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
51452         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
51453         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
51454         * lib/isnanl-nolibm.h (isnanl): Likewise.
51455         Reported by Paul Eggert <eggert@cs.ucla.edu>.
51456
51457 2008-01-26  Bruno Haible  <bruno@clisp.org>
51458
51459         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
51460         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
51461
51462 2008-01-26  Bruno Haible  <bruno@clisp.org>
51463
51464         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
51465         GCC >= 4.0 built-in.
51466         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
51467
51468 2008-01-26  Bruno Haible  <bruno@clisp.org>
51469
51470         Rename isnan, applicable to 'double' only, to isnand.
51471         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
51472         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
51473         (configure.ac): Update.
51474         (Include): Replace "isnan.h" with "isnand.h".
51475         * m4/isnand.m4: Renamed from m4/isnan.m4.
51476         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
51477         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
51478         instead of isnan.c.
51479         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
51480         instead of HAVE_ISNAN_IN_LIBC.
51481         (isnand): Renamed from isnan.
51482         * lib/isnand.c: New file.
51483         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
51484         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
51485         (Makefile.am): Update.
51486         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
51487         Include isnand.h instead of isnan.h.
51488         (main): Test isnand instead of isnan.
51489         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
51490         isnan-nolibm.
51491         * modules/frexp (Depends-on): Likewise.
51492         * modules/frexp-tests (Depends-on): Likewise.
51493         * modules/frexp-nolibm (Depends-on): Likewise.
51494         * modules/frexp-nolibm-tests (Depends-on): Likewise.
51495         * modules/isfinite (Depends-on): Likewise.
51496         * modules/round-tests (Depends-on): Likewise.
51497         * modules/signbit (Depends-on): Likewise.
51498         * modules/signbit-tests (Depends-on): Likewise.
51499         * modules/snprintf-posix (Depends-on): Likewise.
51500         * modules/sprintf-posix (Depends-on): Likewise.
51501         * modules/trunc-tests (Depends-on): Likewise.
51502         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51503         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51504         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51505         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51506         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51507         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51508         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51509         * modules/vasnprintf-posix (Depends-on): Likewise.
51510         * modules/vasprintf-posix (Depends-on): Likewise.
51511         * modules/vfprintf-posix (Depends-on): Likewise.
51512         * modules/vsnprintf-posix (Depends-on): Likewise.
51513         * modules/vsprintf-posix (Depends-on): Likewise.
51514         * lib/frexp.c: Include isnand.h instead of isnan.h.
51515         (ISNAN): Set to isnand instead of isnan.
51516         * lib/isfinite.c: Include isnand.h instead of isnan.h.
51517         (gl_isfinited): Use isnand instead of isnan.
51518         * lib/signbitd.c: Include isnand.h instead of isnan.h.
51519         (gl_signbitd): Use isnand instead of isnan.
51520         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
51521         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
51522         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
51523         (main): Use isnand instead of isnan.
51524         * tests/test-round1.c: Include isnand.h.
51525         (main): Use isnand instead of isnan.
51526         * tests/test-round2.c: Include isnand.h instead of isnan.h.
51527         (ISNAN): Set to isnand instead of isnan.
51528         * tests/test-trunc1.c: Include isnand.h.
51529         (main): Use isnand instead of isnan.
51530         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
51531         (equal): Use isnand instead of isnan.
51532         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
51533         isnand-nolibm.
51534         * NEWS: Mention the change.
51535
51536 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51537             Bruno Haible  <bruno@clisp.org>
51538
51539         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
51540         the GCC builtins for signbits are present and set
51541         REPLACE_SIGNBIT_USING_GCC if so.
51542         * lib/math.in.h (signbit): Define using GCC builtins if
51543         REPLACE_SIGNBIT_USING_GCC is set.
51544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
51545         REPLACE_SIGNBIT_USING_GCC.
51546         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
51547
51548 2008-01-25  Jim Meyering  <meyering@redhat.com>
51549
51550         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
51551         * lib/poll.c: Include <config.h>, not "config.h".
51552         * tests/test-getaddrinfo.c: Likewise.
51553
51554 2008-01-25  Simon Josefsson  <simon@josefsson.org>
51555
51556         * modules/sockets-tests: New file.
51557
51558 2008-01-24  Simon Josefsson  <simon@josefsson.org>
51559
51560         * modules/sockets: New module, can be used to call WSA_Startup and
51561         WSA_Cleanup when needed.
51562
51563         * lib/sockets.h, lib/sockets.c: New files.
51564
51565         * m4/sockets.m4: New file.
51566
51567         * tests/test-sockets.c: New file.
51568
51569 2008-01-19  Bruno Haible  <bruno@clisp.org>
51570
51571         * doc/posix-headers: Renamed from doc/headers.
51572         * doc/posix-functions: Renamed from doc/functions.
51573         * doc/gnulib.texi: Update.
51574
51575 2008-01-19  Bruno Haible  <bruno@clisp.org>
51576
51577         * doc/glibc-functions/strcasestr.texi: Include contents of
51578         doc/functions/strcasestr.texi, fixing the list of platforms.
51579         * doc/functions/strcasestr.texi: Remove file.
51580
51581 2008-01-19  Bruno Haible  <bruno@clisp.org>
51582
51583         * doc/glibc-functions/memmem.texi: Include contents of
51584         doc/functions/memmem.texi.
51585         * doc/functions/memmem.texi: Remove file.
51586
51587 2008-01-18  Bruno Haible  <bruno@clisp.org>
51588
51589         * doc/glibc-functions/*.texi: New files.
51590         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
51591         to use the new files.
51592
51593 2008-01-17  Bruno Haible  <bruno@clisp.org>
51594
51595         * tests/test-gethostname.c (main): Fix printf statement.
51596
51597 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51598
51599         * modules/gethostname-tests: New file.
51600
51601         * tests/test-gethostname.c: New file.
51602
51603 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51604
51605         * lib/gethostname.c: Include string.h unconditionally, strncpy is
51606         used by the UNAME case.  Reported by Bruno Haible
51607         <bruno@clisp.org>.
51608
51609 2008-01-17  Eric Blake  <ebb9@byu.net>
51610
51611         Convert c-strcasestr to be more efficient.
51612         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
51613         (Depends-on): Add c-strcase, remove malloca, strnlen.
51614         * tests/test-c-strcasestr.c (main): Enhance test.
51615         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
51616
51617 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
51618
51619         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
51620         Use it in creating po/Makevars.
51621
51622 2008-01-15  Simon Josefsson  <simon@josefsson.org>
51623
51624         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
51625         Applications that requires it should initialize libgcrypt
51626         manually.
51627
51628 2008-01-16  Simon Josefsson  <simon@josefsson.org>
51629
51630         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
51631
51632 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
51633
51634         Fix problem with getdate on mingw32 reported by Simon Josefsson
51635         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
51636         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
51637         tzname", when deciding whether to declare tzname.
51638         * lib/strftime.c (tzname): Likewise.
51639
51640 2008-01-15  Bruno Haible  <bruno@clisp.org>
51641
51642         Work around a MacOS X 10.5 bug in frexpl().
51643         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
51644         * doc/functions/frexpl.texi: Document the bug.
51645         Reported by Elias Pipping <pipping@gentoo.org>.
51646
51647 2008-01-14  Eric Blake  <ebb9@byu.net>
51648
51649         Touch up previous patch.
51650         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
51651         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
51652
51653         Convert strcasestr module to use Two-Way algorithm.
51654         * modules/strcasestr-simple: New module, based on the old
51655         strcasestr, but with Two-Way rather than KMP.
51656         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
51657         * lib/string.in.h (rpl_strcasestr): Declare.
51658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
51659         performance.
51660         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
51661         * modules/string (Makefile.am): Support strcasestr.
51662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
51663         * modules/strcasestr-tests (Depends-on): Check for alarm.
51664         * tests/test-strcasestr.c: Augment test.
51665         * lib/str-two-way.h: Clean up stray macro.
51666         * NEWS: Document new module.
51667         * MODULES.html.sh (string handling): Likewise.
51668         * doc/functions/strcasestr.texi: New file.
51669         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
51670         here, since it is not a POSIX function.
51671
51672 2008-01-14  Colin Watson  <cjwatson@debian.org>
51673             Bruno Haible  <bruno@clisp.org>
51674
51675         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
51676         works fine; if not, set REPLACE_STRSIGNAL.
51677         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
51678         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51679         REPLACE_STRSIGNAL.
51680         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
51681         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
51682         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
51683
51684 2008-01-14  Bruno Haible  <bruno@clisp.org>
51685
51686         * modules/strsignal (Include): Change to <string.h>.
51687
51688 2008-01-14  Colin Watson  <cjwatson@debian.org>
51689
51690         * modules/argp (Notice): Add a notice recommending to change
51691         XGETTEXT_OPTIONS.
51692         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
51693
51694 2008-01-13  Colin Watson  <cjwatson@debian.org>
51695
51696         * modules/strsignal-tests: New file.
51697         * tests/test-strsignal.c: New file.
51698
51699         * lib/strsignal.c: New file, from glibc with modifications.
51700         * lib/siglist.h: New file, from glibc with modifications.
51701         * lib/string.in.h (strsignal): New declaration.
51702         * m4/strsignal.m4: New file.
51703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51704         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
51705         * modules/strsignal: New file.
51706         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
51707         HAVE_DECL_STRSIGNAL.
51708
51709 2008-01-13  Bruno Haible  <bruno@clisp.org>
51710
51711         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
51712         locale encoding is not ASCII. Needed for OpenBSD 4.0.
51713         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51714         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51715
51716 2008-01-13  Bruno Haible  <bruno@clisp.org>
51717
51718         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
51719         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
51720         * lib/argp.h (__attribute__): Likewise.
51721         * lib/c-stack.c (__attribute__): Likewise.
51722         * lib/error.h (__attribute__): Likewise.
51723         * lib/fts.c (__attribute__): Likewise.
51724         * lib/openat.h (__attribute__): Likewise.
51725         * lib/stdio.in.h (__attribute__): Likewise.
51726         * lib/string.in.h (__attribute__): Likewise.
51727         * lib/utimens.c (__attribute__): Likewise.
51728         * lib/vasnprintf.h (__attribute__): Likewise.
51729         * lib/xalloc.h (__attribute__): Likewise.
51730         * lib/xprintf.h (__attribute__): Likewise.
51731         * lib/xstrtol.h (__attribute__): Likewise.
51732         * lib/xvasprintf.h (__attribute__): Likewise.
51733
51734 2008-01-12  Bruno Haible  <bruno@clisp.org>
51735
51736         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
51737         * doc/glibc-headers/a.out.texi: New file.
51738         * doc/glibc-headers/aliases.texi: New file.
51739         * doc/glibc-headers/alloca.texi: New file.
51740         * doc/glibc-headers/ar.texi: New file.
51741         * doc/glibc-headers/argp.texi: New file.
51742         * doc/glibc-headers/argz.texi: New file.
51743         * doc/glibc-headers/byteswap.texi: New file.
51744         * doc/glibc-headers/crypt.texi: New file.
51745         * doc/glibc-headers/endian.texi: New file.
51746         * doc/glibc-headers/envz.texi: New file.
51747         * doc/glibc-headers/err.texi: New file.
51748         * doc/glibc-headers/error.texi: New file.
51749         * doc/glibc-headers/execinfo.texi: New file.
51750         * doc/glibc-headers/fpu_control.texi: New file.
51751         * doc/glibc-headers/fstab.texi: New file.
51752         * doc/glibc-headers/fts.texi: New file.
51753         * doc/glibc-headers/getopt.texi: New file.
51754         * doc/glibc-headers/ieee754.texi: New file.
51755         * doc/glibc-headers/ifaddrs.texi: New file.
51756         * doc/glibc-headers/libintl.texi: New file.
51757         * doc/glibc-headers/mcheck.texi: New file.
51758         * doc/glibc-headers/mntent.texi: New file.
51759         * doc/glibc-headers/obstack.texi: New file.
51760         * doc/glibc-headers/paths.texi: New file.
51761         * doc/glibc-headers/printf.texi: New file.
51762         * doc/glibc-headers/pty.texi: New file.
51763         * doc/glibc-headers/resolv.texi: New file.
51764         * doc/glibc-headers/shadow.texi: New file.
51765         * doc/glibc-headers/sysexits.texi: New file.
51766         * doc/glibc-headers/ttyent.texi: New file.
51767
51768 2008-01-12  Jim Meyering  <meyering@redhat.com>
51769
51770         announce-gen: emit Gnulib's git-based version string.
51771         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
51772         New option --gnulib-version=V, where V is expected to be
51773         the output of running git describe in the gnulib directory.
51774         (get_tool_versions): Request feedback on xdelta.  I suspect it's
51775         not useful, and plan to stop publishing an xdelta file with each
51776         coreutils release.
51777
51778         * build-aux/announce-gen: Also check for lzma-compressed files.
51779
51780 2008-01-11  Bruno Haible  <bruno@clisp.org>
51781
51782         * tests/test-memmem.c (main): Increase maximum allowed time.
51783         * tests/test-strstr.c (main): Likewise.
51784
51785 2008-01-11  Bruno Haible  <bruno@clisp.org>
51786
51787         * doc/functions/memmem.texi: Add more precisions about platforms.
51788         * doc/functions/strstr.texi: Likewise.
51789
51790 2008-01-10  Eric Blake  <ebb9@byu.net>
51791
51792         * m4/strstr.m4: Delete cruft from copy-n-paste.
51793         Reported by Bruno Haible.
51794
51795 2008-01-10  Bruno Haible  <bruno@clisp.org>
51796
51797         Make c-strstr rely on strstr.
51798         * lib/c-strstr.c: Don't include str-kmp.h.
51799         (c_strstr): Define in terms of strstr.
51800         * modules/c-strstr (Files): Remove lib/str-kmp.h.
51801         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
51802
51803 2008-01-10  Bruno Haible  <bruno@clisp.org>
51804
51805         * doc/gnulib.texi (String Functions in C Locale): New section.
51806         * doc/c-ctype.texi: New file.
51807         * doc/c-strcase.texi: New file.
51808         * doc/c-strcaseeq.texi: New file.
51809         * doc/c-strcasestr.texi: New file.
51810         * doc/c-strstr.texi: New file.
51811         * doc/c-strtod.texi: New file.
51812         * doc/c-strtold.texi: New file.
51813
51814 2008-01-10  Eric Blake  <ebb9@byu.net>
51815
51816         * lib/relocatable.h: Fix a comment.
51817
51818 2008-01-10  Eric Blake  <ebb9@byu.net>
51819
51820         Share two-way algorithm.
51821         * lib/str-two-way.h: New file, merged from...
51822         * lib/memmem.c: ...here...
51823         * lib/strstr.c: ...and here.
51824         * modules/memmem (Files): Use it.
51825         * modules/strstr (Files): Likewise.
51826
51827         Avoid quadratic strstr implementations.
51828         * lib/strstr.c: New file.
51829         * m4/strstr.m4: Likewise.
51830         * modules/strstr: Likewise.
51831         * modules/strstr-tests: Likewise.
51832         * tests/test-strstr.c: Likewise.
51833         * lib/string.in.h (rpl_strstr): Declare.
51834         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
51835         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
51836         * modules/string (Makefile.am): Likewise.
51837         * MODULES.html.sh (string handling): Mention new module.
51838         * doc/functions/strstr.texi (strstr): Document the bug.
51839
51840 2008-01-10  Bruno Haible  <bruno@clisp.org>
51841
51842         * lib/relocatable.h (relocate): State whether result is freshly
51843         allocated or not.
51844         * lib/relocatable.c (relocate): Return a freshly allocated string
51845         instead of a pointer to a privately held string.
51846         Reported by Sylvain Beucler <beuc@gnu.org>.
51847
51848 2008-01-10  Colin Watson  <cjwatson@debian.org>
51849
51850         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
51851         s/S_ISNLK/S_ISLNK/.
51852
51853 2008-01-09  Bruno Haible  <bruno@clisp.org>
51854
51855         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
51856         and other files.
51857         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
51858         if it's only a guess.
51859         * modules/memmem: Simplify by depending on memmem-simple.
51860
51861 2008-01-09  Bruno Haible  <bruno@clisp.org>
51862
51863         Work around OpenBSD 4.0 tdelete() bug.
51864         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
51865         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
51866         macros and don't redefine the enum values.
51867         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
51868         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
51869         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
51870
51871 2008-01-09  Bruno Haible  <bruno@clisp.org>
51872
51873         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
51874         (main): Don't perform the tests if setlocale did not install a UTF-8
51875         locale. Needed on OpenBSD 4.0.
51876         * modules/wcwidth-tests (Depends-on): Add localcharset.
51877
51878 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51879
51880         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
51881         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
51882         * NEWS: announce this.
51883         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
51884
51885 2008-01-09  Simon Josefsson  <simon@josefsson.org>
51886         and Eric Blake  <ebb9@byu.net>
51887
51888         Add memmem-simple module.
51889         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
51890         (gl_FUNC_MEMMEM): Separate performance from presence checks.
51891         * modules/memmem-simple: New file.
51892         * modules/memmem (Description): Tweak.
51893         * MODULES.html.sh (string handling): Mention new module.
51894         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
51895         addressed by memmem-simple.
51896         * NEWS: Document the difference.
51897
51898 2008-01-09  Eric Blake  <ebb9@byu.net>
51899
51900         Give gcc some memmem optimization hints.
51901         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
51902         (strcasestr): Declare as pure.
51903         * modules/memmem (Maintainer): Claim my implementation.
51904
51905 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51906
51907         Support AIX 6.1 and higher.
51908         * build-aux/config.libpath: Likewise.
51909         * build-aux/config.rpath: Likewise.
51910
51911 2008-01-08  Jim Meyering  <meyering@redhat.com>
51912             Bruno Haible  <bruno@clisp.org>
51913
51914         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
51915         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
51916         Reported by Peter Fales in
51917         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
51918
51919 2008-01-08  Bruno Haible  <bruno@clisp.org>
51920
51921         * modules/unictype/category-of (Depends-on): Add
51922         unictype/category-none.
51923         * modules/unictype/category-and-tests (Depends-on): Add
51924         unictype/category-{L,N,Lu,Nd}.
51925         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
51926         * modules/unictype/category-or-tests (Depends-on): Add
51927         unictype/category-{L,N}.
51928         * modules/unictype/category-name-tests (Depends-on): Add
51929         unictype/category-{Z,Nl}.
51930         Reported by Simon Josefsson.
51931
51932 2008-01-08  Bruno Haible  <bruno@clisp.org>
51933
51934         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
51935         convention better.
51936         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
51937         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
51938         Reported by Peter Miller <millerp@canb.auug.org.au>.
51939
51940 2008-01-08  Eric Blake  <ebb9@byu.net>
51941
51942         Rewrite memmem to guarantee linear complexity without malloc.
51943         * lib/memmem.c (memmem): Use Two-Way rather than
51944         Knuth-Morris-Pratt, to allow O(1) space usage.
51945         (critical_factorization, two_way_short_needle)
51946         (two_way_long_needle): New functions.
51947         (knuth_morris_pratt): Delete.
51948         * modules/memmem (Depends-on): No longer need malloca or stdbool.
51949         Add stdint.
51950         * tests/test-memmem.c (main): Add tests for periodic needle and
51951         sublinear performance.
51952         * doc/functions/memmem.texi (memmem): Document other deficiencies
51953         in cygwin and older glibc.
51954
51955 2008-01-08  Bruno Haible  <bruno@clisp.org>
51956
51957         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
51958         augmentation.
51959
51960 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
51961
51962         Add a configure time option: --disable-acl.
51963         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
51964         AC_ARG_ENABLE(acl).
51965
51966 2008-01-06  Simon Josefsson  <simon@josefsson.org>
51967
51968         * tests/test-localename.c: Don't include obsolete "setenv.h".
51969
51970         * modules/localename-tests (Depends-on): Need unsetenv.
51971
51972 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51973
51974         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
51975
51976 2008-01-06  Colin Watson  <cjwatson@debian.org>
51977
51978         * users.txt: Add man-db.
51979
51980 2008-01-07  Bruno Haible  <bruno@clisp.org>
51981
51982         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
51983         previous section name.
51984
51985 2008-01-07  Bruno Haible  <bruno@clisp.org>
51986
51987         * lib/progname.c (set_program_name): Don't strip off a leading
51988         "lt-" prefix outside a .libs directory.
51989         Suggested by Paul Eggert.
51990
51991 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
51992             Bruno Haible  <bruno@clisp.org>
51993
51994         Improve memory cleanup in 'relocatable' module.
51995         * lib/relocatable.h (compute_curr_prefix): Change return type to
51996         'char *'.
51997         * lib/relocatable.c (compute_curr_prefix): Change return type to
51998         'char *'. Free curr_installdir after use.
51999         (relocate): Free curr_prefix_better after use.
52000         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52001
52002 2008-01-01  Bruno Haible  <bruno@clisp.org>
52003
52004         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52005         failure on older glibc systems.
52006         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52007
52008 2008-01-05  Eric Blake  <ebb9@byu.net>
52009
52010         Avoid quadratic system memmem.
52011         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52012         Reported by Ralf Wildenhues.
52013
52014         Fix memmem test for mingw.
52015         * modules/memmem-tests (configure.ac): Check for alarm.
52016         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52017         it.
52018         * doc/functions/memmem.texi: New file.
52019         * doc/gnulib.texi (Function Substitutes): Add memmem.
52020         Reported by Bruno Haible.
52021
52022 2008-01-04  Bruno Haible  <bruno@clisp.org>
52023
52024         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52025         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52026         gl_HEADER_STRING_H_DEFAULTS.
52027
52028 2008-01-04  Eric Blake  <ebb9@byu.net>
52029
52030         Shorten duration of memmem test.
52031         * tests/test-memmem.c (main): Use alarm to declare failure if test
52032         is taking too long.
52033         Reported by Ralf Wildenhues.
52034
52035 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52036
52037         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52038         string, needed by strerror.
52039
52040 2008-01-03  Colin Watson  <cjwatson@debian.org>
52041             Bruno Haible  <bruno@clisp.org>
52042
52043         * doc/gnulib-tool.texi (Localization): New section.
52044
52045 2008-01-02  Bruno Haible  <bruno@clisp.org>
52046
52047         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52048         variables to 'unsigned char *' type.
52049         Reported by Paul Eggert.
52050
52051 2008-01-02  Jim Meyering  <jim@meyering.net>
52052
52053         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52054
52055 2007-12-31  Jim Meyering  <jim@meyering.net>
52056
52057         Avoid use of private FTS type name.
52058         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52059
52060 2007-12-30  Karl Berry  <karl@gnu.org>
52061
52062         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52063         work around defect in Texinfo and/or the standalone Info browser.
52064
52065 2007-12-30  Bruno Haible  <bruno@clisp.org>
52066
52067         Unify 5 copies of the KMP code.
52068         * lib/str-kmp.h: New file.
52069         * lib/c-strcasestr.c: Include str-kmp.h.
52070         (knuth_morris_pratt): Remove function.
52071         (c_strcasestr): Update.
52072         * lib/c-strstr.c: Include str-kmp.h.
52073         (knuth_morris_pratt): Remove function.
52074         (c_strcasestr): Update.
52075         * lib/mbscasestr.c: Include str-kmp.h.
52076         (knuth_morris_pratt_unibyte): Remove function.
52077         * lib/mbsstr.c: Include str-kmp.h.
52078         (knuth_morris_pratt_unibyte): Remove function.
52079         * lib/strcasestr.c: Include str-kmp.h.
52080         (knuth_morris_pratt): Remove function.
52081         (strcasestr): Update.
52082         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52083         * modules/c-strstr (Files): Likewise.
52084         * modules/mbscasestr (Files): Likewise.
52085         * modules/mbsstr (Files): Likewise.
52086         * modules/strcasestr (Files): Likewise.
52087         Suggested by Paul Eggert.
52088
52089 2007-12-30  Bruno Haible  <bruno@clisp.org>
52090
52091         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52092         defined.
52093
52094 2007-12-30  Bruno Haible  <bruno@clisp.org>
52095
52096         * lib/xmalloca.h: Include xalloc.h.
52097         (xnmalloca): New macro.
52098
52099 2007-12-30  Bruno Haible  <bruno@clisp.org>
52100
52101         * lib/malloca.h (nmalloca): New macro.
52102         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52103         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52104         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52105         knuth_morris_pratt_multibyte): Likewise.
52106         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52107         knuth_morris_pratt_multibyte): Likewise.
52108         * lib/memmem.c (knuth_morris_pratt): Likewise.
52109         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52110
52111 2007-12-25  Bruno Haible  <bruno@clisp.org>
52112
52113         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52114         * lib/glob.c: Don't include openat.h.
52115         (link_exists2_p): Add back the code that deals with the
52116         !GLOB_ALTDIRFUNC case.
52117         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52118         let it do the filename concatenation.
52119         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52120         * modules/glob (Depends-on): Remove openat.
52121
52122 2007-12-31  Bruno Haible  <bruno@clisp.org>
52123
52124         * modules/dirfd (License): Change to LGPLv2+.
52125         Approved by Jim Meyering.
52126
52127 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52128
52129         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52130         when multiplying M by sizeof (size_t).
52131
52132 2007-12-10  Martin Lambers  <marlam@marlam.de>
52133
52134         Override getpagesize on mingw.
52135         * lib/getpagesize.c: New file.
52136         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52137         * modules/getpagesize (Files): Add lib/getpagesize.c.
52138         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52140         REPLACE_GETPAGESIZE.
52141         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52142
52143 2007-12-25  Bruno Haible  <bruno@clisp.org>
52144
52145         * modules/localcharset (Notice): New field.
52146         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52147         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52148
52149 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52150             Bruno Haible  <bruno@clisp.org>
52151
52152         Avoid using the syntax symbol() in formatted documentation.
52153         * MODULES.html.sh (func_module): When replacing symbol() with a
52154         hyperlink, remove the parentheses. Show an error if some remain.
52155         Recognize and render the '...' syntax.
52156         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52157         Rework. Add paragraph about GCC's inlining.
52158         * doc/alloca.texi: Likewise.
52159         * doc/error.texi: Remove parentheses from symbol reference.
52160         * doc/gnulib-intro.texi: Likewise.
52161         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52162         * modules/fnmatch (Description): Reword to say "the ... function".
52163         * modules/full-read (Description): Likewise.
52164         * modules/full-write (Description): Likewise.
52165         * modules/safe-read (Description): Likewise.
52166         * modules/safe-write (Description): Likewise.
52167         * modules/strchrnul (Description): Likewise.
52168         * modules/trim (Description): Likewise.
52169         * modules/error (Description): Remove parentheses from symbol
52170         references.
52171         * modules/verror (Description): Likewise.
52172         Reported by Karl Berry.
52173
52174 2007-12-25  Bruno Haible  <bruno@clisp.org>
52175
52176         Fixup after 2007-10-16 commit.
52177         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52178
52179 2007-12-24  Bruno Haible  <bruno@clisp.org>
52180
52181         Make --enable-relocatable work with DESTDIR.
52182         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52183         to compute installdir from destprog.
52184         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52185         also set the RELOC_DESTDIR variable.
52186         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52187
52188 2007-12-24  Bruno Haible  <bruno@clisp.org>
52189
52190         Fix link error due to xalloc_die().
52191         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52192         of xreadlink.
52193         * lib/relocwrapper.c: Update comments.
52194         * build-aux/install-reloc: Remove xreadlink.c from file list.
52195         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52196         xreadlink.c.
52197         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52198
52199 2007-12-24  Bruno Haible  <bruno@clisp.org>
52200
52201         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52202         * lib/setenv.h: Remove file.
52203         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52204         lib/setenv.h.
52205         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52206         (Depends-on): Add stdlib.
52207         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52208         gl_FUNC_UNSETENV.
52209         (Include): Replace setenv.h with <stdlib.h>.
52210         * modules/unsetenv: New file.
52211         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52212         * lib/unsetenv.c: Include <stdlib.h> first.
52213         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52214         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52215         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52216         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52217         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52218         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52220         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52221         * doc/functions/unsetenv.texi: Update.
52222         * modules/xsetenv (Depends-on): Add unsetenv.
52223         * modules/getdate (Depends-on): Likewise.
52224         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52225         * lib/xsetenv.c: Don't include setenv.h.
52226         * lib/getdate.y: Likewise.
52227         * lib/relocwrapper.c: Likewise.
52228         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52229         (Depends-on): Add stdlib.
52230         * NEWS: Mention the changes.
52231         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52232
52233 2007-12-23  Bruno Haible  <bruno@clisp.org>
52234
52235         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52236         indentation.
52237
52238 2007-12-23  Bruno Haible  <bruno@clisp.org>
52239
52240         * lib/c-strcasestr.c: Add more comments.
52241         * lib/c-strstr.c: Likewise.
52242         * lib/mbscasestr.c: Likewise.
52243         * lib/mbsstr.c: Likewise.
52244         * lib/strcasestr.c: Likewise.
52245         * lib/memmem.c: Likewise.
52246
52247 2007-12-23  Bruno Haible  <bruno@clisp.org>
52248
52249         * tests/test-memmem.c: Include <string.h> first.
52250
52251 2007-12-22  Bruno Haible  <bruno@clisp.org>
52252
52253         * gnulib-tool (func_create_testdir): Change $auxdir while generating
52254         the contents of $testsbase.
52255         Reported by Ralf Wildenhues.
52256
52257 2007-12-22  Bruno Haible  <bruno@clisp.org>
52258
52259         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
52260         two variables local_ldadd_before, local_ldadd_last.
52261
52262 2007-12-20  Eric Blake  <ebb9@byu.net>
52263
52264         Work around circular library issue when cross-compiling.
52265         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
52266         that progname.o does not need to pull in rpl_memcmp.
52267
52268 2007-12-19  Eric Blake  <ebb9@byu.net>
52269
52270         Fix memmem to avoid O(n^2) worst-case complexity.
52271         * lib/memmem.c (knuth_morris_pratt): New function.
52272         (memmem): Use it if first few naive iterations fail.
52273         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
52274         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
52275         * modules/memchr (License): Likewise.
52276         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
52277         malloca.
52278         * tests/test-memmem.c: Rewrite, borrowing ideas from
52279         test-mbsstr1.c; the old version wouldn't even compile!
52280         * modules/memmem-tests: New file.
52281         * lib/string.in.h (rpl_memmem): Add declaration.
52282         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
52283         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
52284         REPLACE_MEMMEM.
52285
52286 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52287
52288         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
52289         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
52290         before any system include files, and undef after them all.  This
52291         should fix a problem on VMS reported by John E. Malmberg in
52292         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
52293
52294 2007-12-17  Eric Blake  <ebb9@byu.net>
52295
52296         Revert addition of verify, for BSD/OS.
52297         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
52298         can't handle large files, for the sake of obsolete platforms.
52299         * modules/fseeko (Depends-on): Remove verify.
52300         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
52301         * doc/functions/ftello.texi (ftello): Likewise.
52302         * doc/functions/fgetpos.texi (fgetpos): Likewise.
52303         Reported by Larry Jones.
52304
52305 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
52306
52307         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
52308         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
52309
52310 2007-12-17  Jim Meyering  <meyering@redhat.com>
52311
52312         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
52313         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
52314         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
52315         * modules/getcwd (Depends-on): Add openat.
52316         Reported by Petr Salinger.
52317
52318 2007-12-17  Bruno Haible  <bruno@clisp.org>
52319
52320         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
52321         avoid a segmentation fault of the configure test on x86_64 systems.
52322
52323 2007-12-15  Jim Meyering  <meyering@redhat.com>
52324
52325         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
52326
52327 2007-12-13  Eric Blake  <ebb9@byu.net>
52328
52329         Another fseek test.
52330         * tests/test-fseek.c (main): Also test ungetc handling.
52331         * tests/test-fseeko.c (main): Likewise.
52332         * modules/fseeko (Depends-on): Add verify.
52333         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
52334         large.
52335         Reported by Larry Jones.
52336
52337         Fix fseeko on mingw.
52338         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
52339         seek.
52340
52341         Beef up fseek tests.
52342         * tests/test-fseek.c (main): Also test eof handling.
52343         * tests/test-fseeko.c (main): Likewise.
52344         Reported by Larry Jones.
52345
52346 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52347
52348         Fix fseeko on BSD-based platforms.
52349         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52350         successful seek.
52351
52352 2007-12-12  Eric Blake  <ebb9@byu.net>
52353
52354         Allow circular dependency of separate libtests.a
52355         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52356         when use_libtests.
52357
52358 2007-12-11  Eric Blake  <ebb9@byu.net>
52359
52360         Fix bug with -0.0L in previous patch.
52361         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52362         * tests/test-isnan.c (main): Also test on zeroes.
52363         * tests/test-isnanf.c (main): Likewise.
52364         * tests/test-isnanl.h (main): Likewise.
52365
52366         Detect pseudo-denormals on x86 even when cross-compiling.
52367         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52368         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52369         invalid bit patterns that happen to satisfy ==.
52370
52371         Avoid link failures with separate libtests.a.
52372         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52373         last, to satisfy circular dependencies.
52374
52375 2007-12-11  Eric Blake  <ebb9@byu.net>
52376         and Bruno Haible  <bruno@clisp.org>
52377
52378         Fix OpenBSD 4.0 <float.h> handling of long double.
52379         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
52380         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
52381         * doc/headers/float.texi (float.h): Document OpenBSD bug.
52382
52383 2007-12-11  Jim Meyering  <meyering@redhat.com>
52384
52385         * users.txt: Add libvirt.
52386
52387         Support versions of autoconf prior to 2.59c.
52388         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
52389         if it is not already defined.
52390
52391 2007-12-09  Bruno Haible  <bruno@clisp.org>
52392
52393         Let 'gnulib-tool --import' collect sources needed for the tests in
52394         tests/ rather than in lib/.
52395         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
52396         argument. If true, add rules to generate libtests.a, and put libtests.a
52397         into $(LDADD). Consider source files in subdirectories and set
52398         uses_subdirs.
52399         (func_emit_initmacro_start, func_emit_initmacro_end,
52400         func_emit_initmacro_done): Pass all arguments explicitly.
52401         (func_import): Determine two module lists main_modules,
52402         testsrelated_modules. Determine use_libtests. Determine two variables
52403         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
52404         instead of just sed_transform_lib_file. Determine two variables
52405         main_files and testsrelated_files. Compute 'files' as the union of
52406         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
52407         func_add_or_update. In the generated gnulib-comp.m4, collect the
52408         object files for tests/ in different variables than those for lib/.
52409         Substitute LIBTESTS_LIBDEPS.
52410         (func_create_testdir): Combine the uses_subdirs results from
52411         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
52412
52413 2007-12-09  Bruno Haible  <bruno@clisp.org>
52414
52415         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52416         the build-aux directory.
52417
52418 2007-12-09  Bruno Haible  <bruno@clisp.org>
52419
52420         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
52421         introduced on 2006-09-09.
52422
52423 2007-12-07  Jim Meyering  <meyering@redhat.com>
52424
52425         Let these macros work also with autoconf-2.59.
52426         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
52427         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
52428         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52429
52430 2007-12-06  Jim Meyering  <meyering@redhat.com>
52431
52432         Avoid a configure-time syntax error in gl_FUNC_ACL.
52433         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
52434         function in each branch, before testing the cache variable.
52435
52436 2007-12-04  Eric Blake  <ebb9@byu.net>
52437
52438         Make scripts executable.
52439         * build-aux/config.guess: Add execute permissions.
52440         * build-aux/config.sub: Likewise.
52441         * build-aux/gendocs.sh: Likewise.
52442
52443         Fix frexp on mingw.
52444         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
52445         cross-compiling.
52446         * doc/functions/frexp.texi (frexp): Document the bug.
52447
52448         Make cygwin fseeko check more reliable.
52449         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
52450         version numbers, rather than unrelated feature check.
52451         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
52452         * doc/functions/ftello.texi (ftello): Likewise.
52453         Reported by Bruno Haible.
52454
52455         * m4/strerror.m4: Bump version number.
52456
52457 2007-12-03  Bruno Haible  <bruno@clisp.org>
52458
52459         * doc/functions/mprotect.texi: Mention the mingw problem.
52460
52461 2007-12-03  Eric Blake  <ebb9@byu.net>
52462
52463         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
52464         REPLACE_STRERROR is initialized before this macro.
52465
52466 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52467
52468         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
52469         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
52470         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
52471         put -lsec in even for programs other than 'ls'.  This fixes a problem
52472         for gettext reported by Bruno Haible in
52473         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
52474         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
52475         Add support for Solaris 10.  This isn't efficient, but should get the
52476         job done for now.
52477
52478 2007-12-03  James Youngman  <jay@gnu.org>
52479
52480         * doc/regexprops-generic.texi: change "an close-group" to "a
52481         close-group" and "illegal" to "not allowed".
52482
52483 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52484
52485         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
52486         pr_byname.h. Needed for the rare case when the maintainer has done
52487         "make maintainer-clean" in the source directory and then attempts a
52488         build outside the source directory.
52489         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
52490         scripts_byname.h.
52491
52492 2007-12-02  Martin Lambers <marlam@marlam.de>
52493             Bruno Haible  <bruno@clisp.org>
52494
52495         * lib/getpagesize.h: Remove file.
52496         * lib/unistd.in.h: Include declaration of getpagesize here.
52497         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
52498         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
52499         HAVE_SYS_PARAM_H.
52500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
52501         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52502         * modules/getpagesize (Files): Remove lib/getpagesize.h.
52503         (Depends-on): Add unistd.
52504         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52505         (Include): Use <unistd.h> instead of getpagesize.h.
52506         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
52507         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52508         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
52509         gl_GETPAGESIZE invocation, already handled by module dependency.
52510         * lib/pagealign_alloc.c: Don't include getpagesize.h.
52511
52512 2007-12-02  Bruno Haible  <bruno@clisp.org>
52513
52514         * modules/strings-tests: New file.
52515         * tests/test-strings.c: New file.
52516
52517         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
52518         * lib/strings.in.h: New file.
52519         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
52520         * m4/strings_h.m4: New file.
52521         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
52522         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
52523         * modules/strings: New file.
52524         * modules/string (Makefile.am): Update.
52525         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
52526         Reported by Karl Berry.
52527
52528 2007-12-01  Eric Blake  <ebb9@byu.net>
52529
52530         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
52531         accomodate fix in cygwin 1.5.25.
52532
52533 2007-12-01  Jim Meyering  <meyering@redhat.com>
52534
52535         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
52536         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
52537         that would inhibit utf8-optimization of a regexp containing line-
52538         or buffer-anchors, e.g., `^', `$'.
52539
52540 2007-11-30  Bruno Haible  <bruno@clisp.org>
52541
52542         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
52543         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
52544         glthread_recursive_lock_init.
52545         * lib/lock.c (glthread_recursive_lock_init)
52546         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
52547         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52548
52549 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
52550
52551         New function qset_acl, like set_acl but with syscall semantics.
52552         * lib/acl.h (qset_acl): New decl.
52553         * lib/acl.c (qset_acl): New function.
52554         (set_acl): Use new function.  Use more-consistent diagnostics.
52555
52556 2007-11-28  Jim Meyering  <meyering@redhat.com>
52557
52558         * modules/physmem (License): Change from GPL to LGPLv2+.
52559
52560 2007-11-26  Bruno Haible  <bruno@clisp.org>
52561
52562         * lib/vasnprintf.c (decode_long_double): Don't abort if the
52563         'long double' type has excess precision.
52564         Reported by Jim Meyering in
52565         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
52566
52567 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52568
52569         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
52570         Sync from <http://gnu.org/licenses>.
52571         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
52572         with license text from same location.
52573         * doc/maintain.texi, doc/standards.texi:  Sync from
52574         <http://savannah.gnu.org/projects/gnustandards>.
52575
52576 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
52577         and Jim Meyering  <meyering@redhat.com>
52578
52579         Adjust getdate' grammar to accept a slightly more regular language.
52580         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
52581         Before, the former was rejected.
52582         * lib/getdate.y (digits_to_date_time): New function, factored
52583         out of ...
52584         (number): ...here.  Just call digits_to_date_time.
52585         (hybrid): New non-terminal to handle an <unsigned number,
52586         signed relative offset> sequence consistently.
52587
52588 2007-11-18  Jim Meyering  <meyering@redhat.com>
52589
52590         Pull my changes from coreutils:
52591         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
52592         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
52593         use of $gnulib_tool_option_extras, so that it's separated from the
52594         preceding argument.
52595
52596         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
52597         * build-aux/bootstrap (cp_mark_as_generated): Create any required
52598         parent destination directories before copying a file into place.
52599
52600 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52601
52602         bootstrap: work also with 4-argument variant of AC_INIT
52603         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
52604
52605 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52606
52607         Port test-getaddrinfo to Solaris.
52608         Problem reported by Bruno Haible in
52609         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
52610         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
52611         explanation of setting 'hints'.
52612         Don't reject an implementation merely because it returns EAI_SERVICE.
52613         (EAI_SERVICE): Define to 0 if not defined.
52614
52615 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52616
52617         The license of gnu-make and posix-shell is now "GPLed build tool".
52618         * modules/gnu-make (License): Likewise.
52619         * modules/posix-shell (License): Likewise.
52620
52621         New module posix-shell, for determining a POSIX shell
52622         or perhaps something that is close enough to a POSIX shell.
52623         * m4/posix-shell.m4: New file.
52624         * modules/posix-shell: New file.
52625
52626         * MODULES.html.sh: Mention new module.
52627
52628         New module gnu-make, for determining whether we're using GNU Make.
52629         * m4/gnu-make.m4: New file.
52630         * modules/gnu-make: New file.
52631         * MODULES.html.sh: Mention new module.
52632
52633 2007-11-14  Jim Meyering  <meyering@redhat.com>
52634
52635         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
52636         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
52637         use this macro to create a function _definition_.
52638         Remove useless "#undef ARGMATCH_DIE".
52639
52640 2007-11-14  Bruno Haible  <bruno@clisp.org>
52641
52642         * lib/config.charset: Update for OpenBSD 4.1.
52643         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
52644
52645 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
52646
52647         Document 64-bit #if problems in stdint.texi.
52648         * doc/headers/stdint.texi (stdint.h): Mention problems with
52649         64-bit-#if, and how to work around them.
52650
52651         Don't insist on 'long long int' support in the preprocessor.  It
52652         breaks too many things.  For example, PRIdMAX still uses a 'long
52653         long int' format with the latest Sun compiler, even though
52654         HAVE_LONG_LONG_INT isn't defined due to that compiler's
52655         preprocessor problem.  This causes the latest coreutils to dump
52656         core on Solaris 10 sparc with the Sun C compiler.
52657         Instead, fix the 2007-10-16 problem in a different way, by evaluating
52658         the troublesome expressions at configure-time, not at #if-time.
52659         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
52660         preprocessor.
52661         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
52662         compile-time C checks, done at 'configure'-time.
52663         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
52664         * modules/inttypes (Makefile): Substitute the new symbols that
52665         gl_INTTYPES_H now generates.
52666         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
52667
52668 2007-11-12  Bruno Haible  <bruno@clisp.org>
52669
52670         Tests for Unicode character classification functions.
52671
52672         * modules/unictype/bidicategory-byname-tests: New file.
52673         * modules/unictype/bidicategory-name-tests: New file.
52674         * modules/unictype/bidicategory-of-tests: New file.
52675         * modules/unictype/bidicategory-test-tests: New file.
52676         * modules/unictype/block-list-tests: New file.
52677         * modules/unictype/block-of-tests: New file.
52678         * modules/unictype/block-test-tests: New file.
52679         * modules/unictype/category-C-tests: New file.
52680         * modules/unictype/category-Cc-tests: New file.
52681         * modules/unictype/category-Cf-tests: New file.
52682         * modules/unictype/category-Cn-tests: New file.
52683         * modules/unictype/category-Co-tests: New file.
52684         * modules/unictype/category-Cs-tests: New file.
52685         * modules/unictype/category-L-tests: New file.
52686         * modules/unictype/category-Ll-tests: New file.
52687         * modules/unictype/category-Lm-tests: New file.
52688         * modules/unictype/category-Lo-tests: New file.
52689         * modules/unictype/category-Lt-tests: New file.
52690         * modules/unictype/category-Lu-tests: New file.
52691         * modules/unictype/category-M-tests: New file.
52692         * modules/unictype/category-Mc-tests: New file.
52693         * modules/unictype/category-Me-tests: New file.
52694         * modules/unictype/category-Mn-tests: New file.
52695         * modules/unictype/category-N-tests: New file.
52696         * modules/unictype/category-Nd-tests: New file.
52697         * modules/unictype/category-Nl-tests: New file.
52698         * modules/unictype/category-No-tests: New file.
52699         * modules/unictype/category-P-tests: New file.
52700         * modules/unictype/category-Pc-tests: New file.
52701         * modules/unictype/category-Pd-tests: New file.
52702         * modules/unictype/category-Pe-tests: New file.
52703         * modules/unictype/category-Pf-tests: New file.
52704         * modules/unictype/category-Pi-tests: New file.
52705         * modules/unictype/category-Po-tests: New file.
52706         * modules/unictype/category-Ps-tests: New file.
52707         * modules/unictype/category-S-tests: New file.
52708         * modules/unictype/category-Sc-tests: New file.
52709         * modules/unictype/category-Sk-tests: New file.
52710         * modules/unictype/category-Sm-tests: New file.
52711         * modules/unictype/category-So-tests: New file.
52712         * modules/unictype/category-Z-tests: New file.
52713         * modules/unictype/category-Zl-tests: New file.
52714         * modules/unictype/category-Zp-tests: New file.
52715         * modules/unictype/category-Zs-tests: New file.
52716         * modules/unictype/category-and-not-tests: New file.
52717         * modules/unictype/category-and-tests: New file.
52718         * modules/unictype/category-byname-tests: New file.
52719         * modules/unictype/category-name-tests: New file.
52720         * modules/unictype/category-none-tests: New file.
52721         * modules/unictype/category-of-tests: New file.
52722         * modules/unictype/category-or-tests: New file.
52723         * modules/unictype/category-test-withtable-tests: New file.
52724         * modules/unictype/combining-class-tests: New file.
52725         * modules/unictype/ctype-alnum-tests: New file.
52726         * modules/unictype/ctype-alpha-tests: New file.
52727         * modules/unictype/ctype-blank-tests: New file.
52728         * modules/unictype/ctype-cntrl-tests: New file.
52729         * modules/unictype/ctype-digit-tests: New file.
52730         * modules/unictype/ctype-graph-tests: New file.
52731         * modules/unictype/ctype-lower-tests: New file.
52732         * modules/unictype/ctype-print-tests: New file.
52733         * modules/unictype/ctype-punct-tests: New file.
52734         * modules/unictype/ctype-space-tests: New file.
52735         * modules/unictype/ctype-upper-tests: New file.
52736         * modules/unictype/ctype-xdigit-tests: New file.
52737         * modules/unictype/decimal-digit-tests: New file.
52738         * modules/unictype/digit-tests: New file.
52739         * modules/unictype/mirror-tests: New file.
52740         * modules/unictype/numeric-tests: New file.
52741         * modules/unictype/property-alphabetic-tests: New file.
52742         * modules/unictype/property-ascii-hex-digit-tests: New file.
52743         * modules/unictype/property-bidi-arabic-digit-tests: New file.
52744         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
52745         * modules/unictype/property-bidi-block-separator-tests: New file.
52746         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
52747         * modules/unictype/property-bidi-common-separator-tests: New file.
52748         * modules/unictype/property-bidi-control-tests: New file.
52749         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
52750         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
52751         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
52752         * modules/unictype/property-bidi-european-digit-tests: New file.
52753         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
52754         * modules/unictype/property-bidi-left-to-right-tests: New file.
52755         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
52756         * modules/unictype/property-bidi-other-neutral-tests: New file.
52757         * modules/unictype/property-bidi-pdf-tests: New file.
52758         * modules/unictype/property-bidi-segment-separator-tests: New file.
52759         * modules/unictype/property-bidi-whitespace-tests: New file.
52760         * modules/unictype/property-byname-tests: New file.
52761         * modules/unictype/property-combining-tests: New file.
52762         * modules/unictype/property-composite-tests: New file.
52763         * modules/unictype/property-currency-symbol-tests: New file.
52764         * modules/unictype/property-dash-tests: New file.
52765         * modules/unictype/property-decimal-digit-tests: New file.
52766         * modules/unictype/property-default-ignorable-code-point-tests: New file.
52767         * modules/unictype/property-deprecated-tests: New file.
52768         * modules/unictype/property-diacritic-tests: New file.
52769         * modules/unictype/property-extender-tests: New file.
52770         * modules/unictype/property-format-control-tests: New file.
52771         * modules/unictype/property-grapheme-base-tests: New file.
52772         * modules/unictype/property-grapheme-extend-tests: New file.
52773         * modules/unictype/property-grapheme-link-tests: New file.
52774         * modules/unictype/property-hex-digit-tests: New file.
52775         * modules/unictype/property-hyphen-tests: New file.
52776         * modules/unictype/property-id-continue-tests: New file.
52777         * modules/unictype/property-id-start-tests: New file.
52778         * modules/unictype/property-ideographic-tests: New file.
52779         * modules/unictype/property-ids-binary-operator-tests: New file.
52780         * modules/unictype/property-ids-trinary-operator-tests: New file.
52781         * modules/unictype/property-ignorable-control-tests: New file.
52782         * modules/unictype/property-iso-control-tests: New file.
52783         * modules/unictype/property-join-control-tests: New file.
52784         * modules/unictype/property-left-of-pair-tests: New file.
52785         * modules/unictype/property-line-separator-tests: New file.
52786         * modules/unictype/property-logical-order-exception-tests: New file.
52787         * modules/unictype/property-lowercase-tests: New file.
52788         * modules/unictype/property-math-tests: New file.
52789         * modules/unictype/property-non-break-tests: New file.
52790         * modules/unictype/property-not-a-character-tests: New file.
52791         * modules/unictype/property-numeric-tests: New file.
52792         * modules/unictype/property-other-alphabetic-tests: New file.
52793         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
52794         * modules/unictype/property-other-grapheme-extend-tests: New file.
52795         * modules/unictype/property-other-id-continue-tests: New file.
52796         * modules/unictype/property-other-id-start-tests: New file.
52797         * modules/unictype/property-other-lowercase-tests: New file.
52798         * modules/unictype/property-other-math-tests: New file.
52799         * modules/unictype/property-other-uppercase-tests: New file.
52800         * modules/unictype/property-paired-punctuation-tests: New file.
52801         * modules/unictype/property-paragraph-separator-tests: New file.
52802         * modules/unictype/property-pattern-syntax-tests: New file.
52803         * modules/unictype/property-pattern-white-space-tests: New file.
52804         * modules/unictype/property-private-use-tests: New file.
52805         * modules/unictype/property-punctuation-tests: New file.
52806         * modules/unictype/property-quotation-mark-tests: New file.
52807         * modules/unictype/property-radical-tests: New file.
52808         * modules/unictype/property-sentence-terminal-tests: New file.
52809         * modules/unictype/property-soft-dotted-tests: New file.
52810         * modules/unictype/property-space-tests: New file.
52811         * modules/unictype/property-terminal-punctuation-tests: New file.
52812         * modules/unictype/property-test-tests: New file.
52813         * modules/unictype/property-titlecase-tests: New file.
52814         * modules/unictype/property-unassigned-code-value-tests: New file.
52815         * modules/unictype/property-unified-ideograph-tests: New file.
52816         * modules/unictype/property-uppercase-tests: New file.
52817         * modules/unictype/property-variation-selector-tests: New file.
52818         * modules/unictype/property-white-space-tests: New file.
52819         * modules/unictype/property-xid-continue-tests: New file.
52820         * modules/unictype/property-xid-start-tests: New file.
52821         * modules/unictype/property-zero-width-tests: New file.
52822         * modules/unictype/scripts-tests: New file.
52823         * modules/unictype/syntax-c-ident-tests: New file.
52824         * modules/unictype/syntax-c-whitespace-tests: New file.
52825         * modules/unictype/syntax-java-ident-tests: New file.
52826         * modules/unictype/syntax-java-whitespace-tests: New file.
52827         * tests/unictype/test-bidi_byname.c: New file.
52828         * tests/unictype/test-bidi_name.c: New file.
52829         * tests/unictype/test-bidi_of.c: New file.
52830         * tests/unictype/test-bidi_test.c: New file.
52831         * tests/unictype/test-block_list.c: New file.
52832         * tests/unictype/test-block_of.c: New file.
52833         * tests/unictype/test-block_test.c: New file.
52834         * tests/unictype/test-categ_and.c: New file.
52835         * tests/unictype/test-categ_and_not.c: New file.
52836         * tests/unictype/test-categ_byname.c: New file.
52837         * tests/unictype/test-categ_name.c: New file.
52838         * tests/unictype/test-categ_none.c: New file.
52839         * tests/unictype/test-categ_of.c: New file.
52840         * tests/unictype/test-categ_or.c: New file.
52841         * tests/unictype/test-categ_test_withtable.c: New file.
52842         * tests/unictype/test-combining.c: New file.
52843         * tests/unictype/test-decdigit.c: New file.
52844         * tests/unictype/test-digit.c: New file.
52845         * tests/unictype/test-mirror.c: New file.
52846         * tests/unictype/test-numeric.c: New file.
52847         * tests/unictype/test-pr_byname.c: New file.
52848         * tests/unictype/test-pr_test.c: New file.
52849         * tests/unictype/test-predicate-part1.h: New file.
52850         * tests/unictype/test-predicate-part2.h: New file.
52851         * tests/unictype/test-scripts.c: New file.
52852         * tests/unictype/test-sy_c_ident.c: New file.
52853         * tests/unictype/test-sy_java_ident.c: New file.
52854
52855         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
52856         for Unicode 5.0.0.
52857         * tests/unictype/test-categ_Cc.c: Likewise.
52858         * tests/unictype/test-categ_Cf.c: Likewise.
52859         * tests/unictype/test-categ_Cn.c: Likewise.
52860         * tests/unictype/test-categ_Co.c: Likewise.
52861         * tests/unictype/test-categ_Cs.c: Likewise.
52862         * tests/unictype/test-categ_L.c: Likewise.
52863         * tests/unictype/test-categ_Ll.c: Likewise.
52864         * tests/unictype/test-categ_Lm.c: Likewise.
52865         * tests/unictype/test-categ_Lo.c: Likewise.
52866         * tests/unictype/test-categ_Lt.c: Likewise.
52867         * tests/unictype/test-categ_Lu.c: Likewise.
52868         * tests/unictype/test-categ_M.c: Likewise.
52869         * tests/unictype/test-categ_Mc.c: Likewise.
52870         * tests/unictype/test-categ_Me.c: Likewise.
52871         * tests/unictype/test-categ_Mn.c: Likewise.
52872         * tests/unictype/test-categ_N.c: Likewise.
52873         * tests/unictype/test-categ_Nd.c: Likewise.
52874         * tests/unictype/test-categ_Nl.c: Likewise.
52875         * tests/unictype/test-categ_No.c: Likewise.
52876         * tests/unictype/test-categ_P.c: Likewise.
52877         * tests/unictype/test-categ_Pc.c: Likewise.
52878         * tests/unictype/test-categ_Pd.c: Likewise.
52879         * tests/unictype/test-categ_Pe.c: Likewise.
52880         * tests/unictype/test-categ_Pf.c: Likewise.
52881         * tests/unictype/test-categ_Pi.c: Likewise.
52882         * tests/unictype/test-categ_Po.c: Likewise.
52883         * tests/unictype/test-categ_Ps.c: Likewise.
52884         * tests/unictype/test-categ_S.c: Likewise.
52885         * tests/unictype/test-categ_Sc.c: Likewise.
52886         * tests/unictype/test-categ_Sk.c: Likewise.
52887         * tests/unictype/test-categ_Sm.c: Likewise.
52888         * tests/unictype/test-categ_So.c: Likewise.
52889         * tests/unictype/test-categ_Z.c: Likewise.
52890         * tests/unictype/test-categ_Zl.c: Likewise.
52891         * tests/unictype/test-categ_Zp.c: Likewise.
52892         * tests/unictype/test-categ_Zs.c: Likewise.
52893         * tests/unictype/test-ctype_alnum.c: Likewise.
52894         * tests/unictype/test-ctype_alpha.c: Likewise.
52895         * tests/unictype/test-ctype_blank.c: Likewise.
52896         * tests/unictype/test-ctype_cntrl.c: Likewise.
52897         * tests/unictype/test-ctype_digit.c: Likewise.
52898         * tests/unictype/test-ctype_graph.c: Likewise.
52899         * tests/unictype/test-ctype_lower.c: Likewise.
52900         * tests/unictype/test-ctype_print.c: Likewise.
52901         * tests/unictype/test-ctype_punct.c: Likewise.
52902         * tests/unictype/test-ctype_space.c: Likewise.
52903         * tests/unictype/test-ctype_upper.c: Likewise.
52904         * tests/unictype/test-ctype_xdigit.c: Likewise.
52905         * tests/unictype/test-decdigit.h: Likewise.
52906         * tests/unictype/test-digit.h: Likewise.
52907         * tests/unictype/test-numeric.h: Likewise.
52908         * tests/unictype/test-pr_alphabetic.c: Likewise.
52909         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
52910         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
52911         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
52912         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
52913         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
52914         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
52915         * tests/unictype/test-pr_bidi_control.c: Likewise.
52916         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
52917         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
52918         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
52919         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
52920         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
52921         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
52922         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
52923         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
52924         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
52925         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
52926         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
52927         * tests/unictype/test-pr_combining.c: Likewise.
52928         * tests/unictype/test-pr_composite.c: Likewise.
52929         * tests/unictype/test-pr_currency_symbol.c: Likewise.
52930         * tests/unictype/test-pr_dash.c: Likewise.
52931         * tests/unictype/test-pr_decimal_digit.c: Likewise.
52932         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
52933         * tests/unictype/test-pr_deprecated.c: Likewise.
52934         * tests/unictype/test-pr_diacritic.c: Likewise.
52935         * tests/unictype/test-pr_extender.c: Likewise.
52936         * tests/unictype/test-pr_format_control.c: Likewise.
52937         * tests/unictype/test-pr_grapheme_base.c: Likewise.
52938         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
52939         * tests/unictype/test-pr_grapheme_link.c: Likewise.
52940         * tests/unictype/test-pr_hex_digit.c: Likewise.
52941         * tests/unictype/test-pr_hyphen.c: Likewise.
52942         * tests/unictype/test-pr_id_continue.c: Likewise.
52943         * tests/unictype/test-pr_id_start.c: Likewise.
52944         * tests/unictype/test-pr_ideographic.c: Likewise.
52945         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
52946         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
52947         * tests/unictype/test-pr_ignorable_control.c: Likewise.
52948         * tests/unictype/test-pr_iso_control.c: Likewise.
52949         * tests/unictype/test-pr_join_control.c: Likewise.
52950         * tests/unictype/test-pr_left_of_pair.c: Likewise.
52951         * tests/unictype/test-pr_line_separator.c: Likewise.
52952         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
52953         * tests/unictype/test-pr_lowercase.c: Likewise.
52954         * tests/unictype/test-pr_math.c: Likewise.
52955         * tests/unictype/test-pr_non_break.c: Likewise.
52956         * tests/unictype/test-pr_not_a_character.c: Likewise.
52957         * tests/unictype/test-pr_numeric.c: Likewise.
52958         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
52959         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
52960         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
52961         * tests/unictype/test-pr_other_id_continue.c: Likewise.
52962         * tests/unictype/test-pr_other_id_start.c: Likewise.
52963         * tests/unictype/test-pr_other_lowercase.c: Likewise.
52964         * tests/unictype/test-pr_other_math.c: Likewise.
52965         * tests/unictype/test-pr_other_uppercase.c: Likewise.
52966         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
52967         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
52968         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
52969         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
52970         * tests/unictype/test-pr_private_use.c: Likewise.
52971         * tests/unictype/test-pr_punctuation.c: Likewise.
52972         * tests/unictype/test-pr_quotation_mark.c: Likewise.
52973         * tests/unictype/test-pr_radical.c: Likewise.
52974         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
52975         * tests/unictype/test-pr_soft_dotted.c: Likewise.
52976         * tests/unictype/test-pr_space.c: Likewise.
52977         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
52978         * tests/unictype/test-pr_titlecase.c: Likewise.
52979         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
52980         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
52981         * tests/unictype/test-pr_uppercase.c: Likewise.
52982         * tests/unictype/test-pr_variation_selector.c: Likewise.
52983         * tests/unictype/test-pr_white_space.c: Likewise.
52984         * tests/unictype/test-pr_xid_continue.c: Likewise.
52985         * tests/unictype/test-pr_xid_start.c: Likewise.
52986         * tests/unictype/test-pr_zero_width.c: Likewise.
52987         * tests/unictype/test-sy_c_whitespace.c: Likewise.
52988         * tests/unictype/test-sy_java_whitespace.c: Likewise.
52989
52990 2007-11-12  Bruno Haible  <bruno@clisp.org>
52991
52992         Unicode character classification functions.
52993         * lib/unictype.h: New file.
52994         * modules/unictype/base: New file.
52995         * modules/unictype/category-L: New file.
52996         * modules/unictype/category-Lu: New file.
52997         * modules/unictype/category-Ll: New file.
52998         * modules/unictype/category-Lt: New file.
52999         * modules/unictype/category-Lm: New file.
53000         * modules/unictype/category-Lo: New file.
53001         * modules/unictype/category-M: New file.
53002         * modules/unictype/category-Mn: New file.
53003         * modules/unictype/category-Mc: New file.
53004         * modules/unictype/category-Me: New file.
53005         * modules/unictype/category-N: New file.
53006         * modules/unictype/category-Nd: New file.
53007         * modules/unictype/category-Nl: New file.
53008         * modules/unictype/category-No: New file.
53009         * modules/unictype/category-P: New file.
53010         * modules/unictype/category-Pc: New file.
53011         * modules/unictype/category-Pd: New file.
53012         * modules/unictype/category-Ps: New file.
53013         * modules/unictype/category-Pe: New file.
53014         * modules/unictype/category-Pi: New file.
53015         * modules/unictype/category-Pf: New file.
53016         * modules/unictype/category-Po: New file.
53017         * modules/unictype/category-S: New file.
53018         * modules/unictype/category-Sm: New file.
53019         * modules/unictype/category-Sc: New file.
53020         * modules/unictype/category-Sk: New file.
53021         * modules/unictype/category-So: New file.
53022         * modules/unictype/category-Z: New file.
53023         * modules/unictype/category-Zs: New file.
53024         * modules/unictype/category-Zl: New file.
53025         * modules/unictype/category-Zp: New file.
53026         * modules/unictype/category-C: New file.
53027         * modules/unictype/category-Cc: New file.
53028         * modules/unictype/category-Cf: New file.
53029         * modules/unictype/category-Cs: New file.
53030         * modules/unictype/category-Co: New file.
53031         * modules/unictype/category-Cn: New file.
53032         * modules/unictype/category-or: New file.
53033         * modules/unictype/category-of: New file.
53034         * modules/unictype/category-test: New file.
53035         * modules/unictype/category-test-withtable: New file.
53036         * modules/unictype/category-byname: New file.
53037         * modules/unictype/category-none: New file.
53038         * modules/unictype/category-and: New file.
53039         * modules/unictype/category-and-not: New file.
53040         * modules/unictype/category-name: New file.
53041         * modules/unictype/combining-class: New file.
53042         * modules/unictype/category-all: New file.
53043         * modules/unictype/bidicategory-all: New file.
53044         * modules/unictype/bidicategory-byname: New file.
53045         * modules/unictype/bidicategory-name: New file.
53046         * modules/unictype/bidicategory-of: New file.
53047         * modules/unictype/bidicategory-test: New file.
53048         * modules/unictype/decimal-digit: New file.
53049         * modules/unictype/digit: New file.
53050         * modules/unictype/numeric: New file.
53051         * modules/unictype/mirror: New file.
53052         * modules/unictype/property-white-space: New file.
53053         * modules/unictype/property-alphabetic: New file.
53054         * modules/unictype/property-other-alphabetic: New file.
53055         * modules/unictype/property-not-a-character: New file.
53056         * modules/unictype/property-default-ignorable-code-point: New file.
53057         * modules/unictype/property-other-default-ignorable-code-point: New
53058         file.
53059         * modules/unictype/property-deprecated: New file.
53060         * modules/unictype/property-logical-order-exception: New file.
53061         * modules/unictype/property-variation-selector: New file.
53062         * modules/unictype/property-private-use: New file.
53063         * modules/unictype/property-unassigned-code-value: New file.
53064         * modules/unictype/property-uppercase: New file.
53065         * modules/unictype/property-other-uppercase: New file.
53066         * modules/unictype/property-lowercase: New file.
53067         * modules/unictype/property-other-lowercase: New file.
53068         * modules/unictype/property-titlecase: New file.
53069         * modules/unictype/property-soft-dotted: New file.
53070         * modules/unictype/property-id-start: New file.
53071         * modules/unictype/property-other-id-start: New file.
53072         * modules/unictype/property-id-continue: New file.
53073         * modules/unictype/property-other-id-continue: New file.
53074         * modules/unictype/property-xid-start: New file.
53075         * modules/unictype/property-xid-continue: New file.
53076         * modules/unictype/property-pattern-white-space: New file.
53077         * modules/unictype/property-pattern-syntax: New file.
53078         * modules/unictype/property-join-control: New file.
53079         * modules/unictype/property-grapheme-base: New file.
53080         * modules/unictype/property-grapheme-extend: New file.
53081         * modules/unictype/property-other-grapheme-extend: New file.
53082         * modules/unictype/property-grapheme-link: New file.
53083         * modules/unictype/property-bidi-control: New file.
53084         * modules/unictype/property-bidi-left-to-right: New file.
53085         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53086         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53087         * modules/unictype/property-bidi-european-digit: New file.
53088         * modules/unictype/property-bidi-eur-num-separator: New file.
53089         * modules/unictype/property-bidi-eur-num-terminator: New file.
53090         * modules/unictype/property-bidi-arabic-digit: New file.
53091         * modules/unictype/property-bidi-common-separator: New file.
53092         * modules/unictype/property-bidi-block-separator: New file.
53093         * modules/unictype/property-bidi-segment-separator: New file.
53094         * modules/unictype/property-bidi-whitespace: New file.
53095         * modules/unictype/property-bidi-non-spacing-mark: New file.
53096         * modules/unictype/property-bidi-boundary-neutral: New file.
53097         * modules/unictype/property-bidi-pdf: New file.
53098         * modules/unictype/property-bidi-embedding-or-override: New file.
53099         * modules/unictype/property-bidi-other-neutral: New file.
53100         * modules/unictype/property-hex-digit: New file.
53101         * modules/unictype/property-ascii-hex-digit: New file.
53102         * modules/unictype/property-ideographic: New file.
53103         * modules/unictype/property-unified-ideograph: New file.
53104         * modules/unictype/property-radical: New file.
53105         * modules/unictype/property-ids-binary-operator: New file.
53106         * modules/unictype/property-ids-trinary-operator: New file.
53107         * modules/unictype/property-zero-width: New file.
53108         * modules/unictype/property-space: New file.
53109         * modules/unictype/property-non-break: New file.
53110         * modules/unictype/property-iso-control: New file.
53111         * modules/unictype/property-format-control: New file.
53112         * modules/unictype/property-dash: New file.
53113         * modules/unictype/property-hyphen: New file.
53114         * modules/unictype/property-punctuation: New file.
53115         * modules/unictype/property-line-separator: New file.
53116         * modules/unictype/property-paragraph-separator: New file.
53117         * modules/unictype/property-quotation-mark: New file.
53118         * modules/unictype/property-sentence-terminal: New file.
53119         * modules/unictype/property-terminal-punctuation: New file.
53120         * modules/unictype/property-currency-symbol: New file.
53121         * modules/unictype/property-math: New file.
53122         * modules/unictype/property-other-math: New file.
53123         * modules/unictype/property-paired-punctuation: New file.
53124         * modules/unictype/property-left-of-pair: New file.
53125         * modules/unictype/property-combining: New file.
53126         * modules/unictype/property-composite: New file.
53127         * modules/unictype/property-decimal-digit: New file.
53128         * modules/unictype/property-numeric: New file.
53129         * modules/unictype/property-diacritic: New file.
53130         * modules/unictype/property-extender: New file.
53131         * modules/unictype/property-ignorable-control: New file.
53132         * modules/unictype/property-test: New file.
53133         * modules/unictype/property-byname: New file.
53134         * modules/unictype/property-all: New file.
53135         * modules/unictype/scripts: New file.
53136         * modules/unictype/scripts-all: New file.
53137         * modules/unictype/block-of: New file.
53138         * modules/unictype/block-test: New file.
53139         * modules/unictype/block-list: New file.
53140         * modules/unictype/block-all: New file.
53141         * modules/unictype/syntax-c-whitespace: New file.
53142         * modules/unictype/syntax-java-whitespace: New file.
53143         * modules/unictype/syntax-c-ident: New file.
53144         * modules/unictype/syntax-java-ident: New file.
53145         * modules/unictype/ctype-alnum: New file.
53146         * modules/unictype/ctype-alpha: New file.
53147         * modules/unictype/ctype-cntrl: New file.
53148         * modules/unictype/ctype-digit: New file.
53149         * modules/unictype/ctype-graph: New file.
53150         * modules/unictype/ctype-lower: New file.
53151         * modules/unictype/ctype-print: New file.
53152         * modules/unictype/ctype-punct: New file.
53153         * modules/unictype/ctype-space: New file.
53154         * modules/unictype/ctype-upper: New file.
53155         * modules/unictype/ctype-xdigit: New file.
53156         * modules/unictype/ctype-blank: New file.
53157         * lib/unictype/bidi_byname.c: New file.
53158         * lib/unictype/bidi_name.c: New file.
53159         * lib/unictype/bidi_of.c: New file.
53160         * lib/unictype/bidi_test.c: New file.
53161         * lib/unictype/bitmap.h: New file.
53162         * lib/unictype/block_test.c: New file.
53163         * lib/unictype/blocks.c: New file.
53164         * lib/unictype/categ_C.c: New file.
53165         * lib/unictype/categ_Cc.c: New file.
53166         * lib/unictype/categ_Cf.c: New file.
53167         * lib/unictype/categ_Cn.c: New file.
53168         * lib/unictype/categ_Co.c: New file.
53169         * lib/unictype/categ_Cs.c: New file.
53170         * lib/unictype/categ_L.c: New file.
53171         * lib/unictype/categ_Ll.c: New file.
53172         * lib/unictype/categ_Lm.c: New file.
53173         * lib/unictype/categ_Lo.c: New file.
53174         * lib/unictype/categ_Lt.c: New file.
53175         * lib/unictype/categ_Lu.c: New file.
53176         * lib/unictype/categ_M.c: New file.
53177         * lib/unictype/categ_Mc.c: New file.
53178         * lib/unictype/categ_Me.c: New file.
53179         * lib/unictype/categ_Mn.c: New file.
53180         * lib/unictype/categ_N.c: New file.
53181         * lib/unictype/categ_Nd.c: New file.
53182         * lib/unictype/categ_Nl.c: New file.
53183         * lib/unictype/categ_No.c: New file.
53184         * lib/unictype/categ_P.c: New file.
53185         * lib/unictype/categ_Pc.c: New file.
53186         * lib/unictype/categ_Pd.c: New file.
53187         * lib/unictype/categ_Pe.c: New file.
53188         * lib/unictype/categ_Pf.c: New file.
53189         * lib/unictype/categ_Pi.c: New file.
53190         * lib/unictype/categ_Po.c: New file.
53191         * lib/unictype/categ_Ps.c: New file.
53192         * lib/unictype/categ_S.c: New file.
53193         * lib/unictype/categ_Sc.c: New file.
53194         * lib/unictype/categ_Sk.c: New file.
53195         * lib/unictype/categ_Sm.c: New file.
53196         * lib/unictype/categ_So.c: New file.
53197         * lib/unictype/categ_Z.c: New file.
53198         * lib/unictype/categ_Zl.c: New file.
53199         * lib/unictype/categ_Zp.c: New file.
53200         * lib/unictype/categ_Zs.c: New file.
53201         * lib/unictype/categ_and.c: New file.
53202         * lib/unictype/categ_and_not.c: New file.
53203         * lib/unictype/categ_byname.c: New file.
53204         * lib/unictype/categ_name.c: New file.
53205         * lib/unictype/categ_none.c: New file.
53206         * lib/unictype/categ_of.c: New file.
53207         * lib/unictype/categ_or.c: New file.
53208         * lib/unictype/categ_test.c: New file.
53209         * lib/unictype/combining.c: New file.
53210         * lib/unictype/ctype_alnum.c: New file.
53211         * lib/unictype/ctype_alpha.c: New file.
53212         * lib/unictype/ctype_blank.c: New file.
53213         * lib/unictype/ctype_cntrl.c: New file.
53214         * lib/unictype/ctype_digit.c: New file.
53215         * lib/unictype/ctype_graph.c: New file.
53216         * lib/unictype/ctype_lower.c: New file.
53217         * lib/unictype/ctype_print.c: New file.
53218         * lib/unictype/ctype_punct.c: New file.
53219         * lib/unictype/ctype_space.c: New file.
53220         * lib/unictype/ctype_upper.c: New file.
53221         * lib/unictype/ctype_xdigit.c: New file.
53222         * lib/unictype/decdigit.c: New file.
53223         * lib/unictype/digit.c: New file.
53224         * lib/unictype/identsyntaxmap.h: New file.
53225         * lib/unictype/mirror.c: New file.
53226         * lib/unictype/numeric.c: New file.
53227         * lib/unictype/pr_alphabetic.c: New file.
53228         * lib/unictype/pr_ascii_hex_digit.c: New file.
53229         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53230         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53231         * lib/unictype/pr_bidi_block_separator.c: New file.
53232         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53233         * lib/unictype/pr_bidi_common_separator.c: New file.
53234         * lib/unictype/pr_bidi_control.c: New file.
53235         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53236         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53237         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53238         * lib/unictype/pr_bidi_european_digit.c: New file.
53239         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53240         * lib/unictype/pr_bidi_left_to_right.c: New file.
53241         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53242         * lib/unictype/pr_bidi_other_neutral.c: New file.
53243         * lib/unictype/pr_bidi_pdf.c: New file.
53244         * lib/unictype/pr_bidi_segment_separator.c: New file.
53245         * lib/unictype/pr_bidi_whitespace.c: New file.
53246         * lib/unictype/pr_byname.c: New file.
53247         * lib/unictype/pr_byname.gperf: New file.
53248         * lib/unictype/pr_combining.c: New file.
53249         * lib/unictype/pr_composite.c: New file.
53250         * lib/unictype/pr_currency_symbol.c: New file.
53251         * lib/unictype/pr_dash.c: New file.
53252         * lib/unictype/pr_decimal_digit.c: New file.
53253         * lib/unictype/pr_default_ignorable_code_point.c: New file.
53254         * lib/unictype/pr_deprecated.c: New file.
53255         * lib/unictype/pr_diacritic.c: New file.
53256         * lib/unictype/pr_extender.c: New file.
53257         * lib/unictype/pr_format_control.c: New file.
53258         * lib/unictype/pr_grapheme_base.c: New file.
53259         * lib/unictype/pr_grapheme_extend.c: New file.
53260         * lib/unictype/pr_grapheme_link.c: New file.
53261         * lib/unictype/pr_hex_digit.c: New file.
53262         * lib/unictype/pr_hyphen.c: New file.
53263         * lib/unictype/pr_id_continue.c: New file.
53264         * lib/unictype/pr_id_start.c: New file.
53265         * lib/unictype/pr_ideographic.c: New file.
53266         * lib/unictype/pr_ids_binary_operator.c: New file.
53267         * lib/unictype/pr_ids_trinary_operator.c: New file.
53268         * lib/unictype/pr_ignorable_control.c: New file.
53269         * lib/unictype/pr_iso_control.c: New file.
53270         * lib/unictype/pr_join_control.c: New file.
53271         * lib/unictype/pr_left_of_pair.c: New file.
53272         * lib/unictype/pr_line_separator.c: New file.
53273         * lib/unictype/pr_logical_order_exception.c: New file.
53274         * lib/unictype/pr_lowercase.c: New file.
53275         * lib/unictype/pr_math.c: New file.
53276         * lib/unictype/pr_non_break.c: New file.
53277         * lib/unictype/pr_not_a_character.c: New file.
53278         * lib/unictype/pr_numeric.c: New file.
53279         * lib/unictype/pr_other_alphabetic.c: New file.
53280         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
53281         * lib/unictype/pr_other_grapheme_extend.c: New file.
53282         * lib/unictype/pr_other_id_continue.c: New file.
53283         * lib/unictype/pr_other_id_start.c: New file.
53284         * lib/unictype/pr_other_lowercase.c: New file.
53285         * lib/unictype/pr_other_math.c: New file.
53286         * lib/unictype/pr_other_uppercase.c: New file.
53287         * lib/unictype/pr_paired_punctuation.c: New file.
53288         * lib/unictype/pr_paragraph_separator.c: New file.
53289         * lib/unictype/pr_pattern_syntax.c: New file.
53290         * lib/unictype/pr_pattern_white_space.c: New file.
53291         * lib/unictype/pr_private_use.c: New file.
53292         * lib/unictype/pr_punctuation.c: New file.
53293         * lib/unictype/pr_quotation_mark.c: New file.
53294         * lib/unictype/pr_radical.c: New file.
53295         * lib/unictype/pr_sentence_terminal.c: New file.
53296         * lib/unictype/pr_soft_dotted.c: New file.
53297         * lib/unictype/pr_space.c: New file.
53298         * lib/unictype/pr_terminal_punctuation.c: New file.
53299         * lib/unictype/pr_test.c: New file.
53300         * lib/unictype/pr_titlecase.c: New file.
53301         * lib/unictype/pr_unassigned_code_value.c: New file.
53302         * lib/unictype/pr_unified_ideograph.c: New file.
53303         * lib/unictype/pr_uppercase.c: New file.
53304         * lib/unictype/pr_variation_selector.c: New file.
53305         * lib/unictype/pr_white_space.c: New file.
53306         * lib/unictype/pr_xid_continue.c: New file.
53307         * lib/unictype/pr_xid_start.c: New file.
53308         * lib/unictype/pr_zero_width.c: New file.
53309         * lib/unictype/scripts.c: New file.
53310         * lib/unictype/sy_c_ident.c: New file.
53311         * lib/unictype/sy_c_whitespace.c: New file.
53312         * lib/unictype/sy_java_ident.c: New file.
53313         * lib/unictype/sy_java_whitespace.c: New file.
53314
53315         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
53316         Unicode 5.0.0.
53317         * lib/unictype/blocks.h: Likewise.
53318         * lib/unictype/categ_C.h: Likewise.
53319         * lib/unictype/categ_Cc.h: Likewise.
53320         * lib/unictype/categ_Cf.h: Likewise.
53321         * lib/unictype/categ_Cn.h: Likewise.
53322         * lib/unictype/categ_Co.h: Likewise.
53323         * lib/unictype/categ_Cs.h: Likewise.
53324         * lib/unictype/categ_L.h: Likewise.
53325         * lib/unictype/categ_Ll.h: Likewise.
53326         * lib/unictype/categ_Lm.h: Likewise.
53327         * lib/unictype/categ_Lo.h: Likewise.
53328         * lib/unictype/categ_Lt.h: Likewise.
53329         * lib/unictype/categ_Lu.h: Likewise.
53330         * lib/unictype/categ_M.h: Likewise.
53331         * lib/unictype/categ_Mc.h: Likewise.
53332         * lib/unictype/categ_Me.h: Likewise.
53333         * lib/unictype/categ_Mn.h: Likewise.
53334         * lib/unictype/categ_N.h: Likewise.
53335         * lib/unictype/categ_Nd.h: Likewise.
53336         * lib/unictype/categ_Nl.h: Likewise.
53337         * lib/unictype/categ_No.h: Likewise.
53338         * lib/unictype/categ_P.h: Likewise.
53339         * lib/unictype/categ_Pc.h: Likewise.
53340         * lib/unictype/categ_Pd.h: Likewise.
53341         * lib/unictype/categ_Pe.h: Likewise.
53342         * lib/unictype/categ_Pf.h: Likewise.
53343         * lib/unictype/categ_Pi.h: Likewise.
53344         * lib/unictype/categ_Po.h: Likewise.
53345         * lib/unictype/categ_Ps.h: Likewise.
53346         * lib/unictype/categ_S.h: Likewise.
53347         * lib/unictype/categ_Sc.h: Likewise.
53348         * lib/unictype/categ_Sk.h: Likewise.
53349         * lib/unictype/categ_Sm.h: Likewise.
53350         * lib/unictype/categ_So.h: Likewise.
53351         * lib/unictype/categ_Z.h: Likewise.
53352         * lib/unictype/categ_Zl.h: Likewise.
53353         * lib/unictype/categ_Zp.h: Likewise.
53354         * lib/unictype/categ_Zs.h: Likewise.
53355         * lib/unictype/categ_of.h: Likewise.
53356         * lib/unictype/combining.h: Likewise.
53357         * lib/unictype/ctype_alnum.h: Likewise.
53358         * lib/unictype/ctype_alpha.h: Likewise.
53359         * lib/unictype/ctype_blank.h: Likewise.
53360         * lib/unictype/ctype_cntrl.h: Likewise.
53361         * lib/unictype/ctype_digit.h: Likewise.
53362         * lib/unictype/ctype_graph.h: Likewise.
53363         * lib/unictype/ctype_lower.h: Likewise.
53364         * lib/unictype/ctype_print.h: Likewise.
53365         * lib/unictype/ctype_punct.h: Likewise.
53366         * lib/unictype/ctype_space.h: Likewise.
53367         * lib/unictype/ctype_upper.h: Likewise.
53368         * lib/unictype/ctype_xdigit.h: Likewise.
53369         * lib/unictype/decdigit.h: Likewise.
53370         * lib/unictype/digit.h: Likewise.
53371         * lib/unictype/mirror.h: Likewise.
53372         * lib/unictype/numeric.h: Likewise.
53373         * lib/unictype/pr_alphabetic.h: Likewise.
53374         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53375         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
53376         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53377         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53378         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53379         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53380         * lib/unictype/pr_bidi_control.h: Likewise.
53381         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53382         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53383         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
53384         * lib/unictype/pr_bidi_european_digit.h: Likewise.
53385         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
53386         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
53387         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
53388         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
53389         * lib/unictype/pr_bidi_pdf.h: Likewise.
53390         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53391         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53392         * lib/unictype/pr_combining.h: Likewise.
53393         * lib/unictype/pr_composite.h: Likewise.
53394         * lib/unictype/pr_currency_symbol.h: Likewise.
53395         * lib/unictype/pr_dash.h: Likewise.
53396         * lib/unictype/pr_decimal_digit.h: Likewise.
53397         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53398         * lib/unictype/pr_deprecated.h: Likewise.
53399         * lib/unictype/pr_diacritic.h: Likewise.
53400         * lib/unictype/pr_extender.h: Likewise.
53401         * lib/unictype/pr_format_control.h: Likewise.
53402         * lib/unictype/pr_grapheme_base.h: Likewise.
53403         * lib/unictype/pr_grapheme_extend.h: Likewise.
53404         * lib/unictype/pr_grapheme_link.h: Likewise.
53405         * lib/unictype/pr_hex_digit.h: Likewise.
53406         * lib/unictype/pr_hyphen.h: Likewise.
53407         * lib/unictype/pr_id_continue.h: Likewise.
53408         * lib/unictype/pr_id_start.h: Likewise.
53409         * lib/unictype/pr_ideographic.h: Likewise.
53410         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53411         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53412         * lib/unictype/pr_ignorable_control.h: Likewise.
53413         * lib/unictype/pr_iso_control.h: Likewise.
53414         * lib/unictype/pr_join_control.h: Likewise.
53415         * lib/unictype/pr_left_of_pair.h: Likewise.
53416         * lib/unictype/pr_line_separator.h: Likewise.
53417         * lib/unictype/pr_logical_order_exception.h: Likewise.
53418         * lib/unictype/pr_lowercase.h: Likewise.
53419         * lib/unictype/pr_math.h: Likewise.
53420         * lib/unictype/pr_non_break.h: Likewise.
53421         * lib/unictype/pr_not_a_character.h: Likewise.
53422         * lib/unictype/pr_numeric.h: Likewise.
53423         * lib/unictype/pr_other_alphabetic.h: Likewise.
53424         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53425         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53426         * lib/unictype/pr_other_id_continue.h: Likewise.
53427         * lib/unictype/pr_other_id_start.h: Likewise.
53428         * lib/unictype/pr_other_lowercase.h: Likewise.
53429         * lib/unictype/pr_other_math.h: Likewise.
53430         * lib/unictype/pr_other_uppercase.h: Likewise.
53431         * lib/unictype/pr_paired_punctuation.h: Likewise.
53432         * lib/unictype/pr_paragraph_separator.h: Likewise.
53433         * lib/unictype/pr_pattern_syntax.h: Likewise.
53434         * lib/unictype/pr_pattern_white_space.h: Likewise.
53435         * lib/unictype/pr_private_use.h: Likewise.
53436         * lib/unictype/pr_punctuation.h: Likewise.
53437         * lib/unictype/pr_quotation_mark.h: Likewise.
53438         * lib/unictype/pr_radical.h: Likewise.
53439         * lib/unictype/pr_sentence_terminal.h: Likewise.
53440         * lib/unictype/pr_soft_dotted.h: Likewise.
53441         * lib/unictype/pr_space.h: Likewise.
53442         * lib/unictype/pr_terminal_punctuation.h: Likewise.
53443         * lib/unictype/pr_titlecase.h: Likewise.
53444         * lib/unictype/pr_unassigned_code_value.h: Likewise.
53445         * lib/unictype/pr_unified_ideograph.h: Likewise.
53446         * lib/unictype/pr_uppercase.h: Likewise.
53447         * lib/unictype/pr_variation_selector.h: Likewise.
53448         * lib/unictype/pr_white_space.h: Likewise.
53449         * lib/unictype/pr_xid_continue.h: Likewise.
53450         * lib/unictype/pr_xid_start.h: Likewise.
53451         * lib/unictype/pr_zero_width.h: Likewise.
53452         * lib/unictype/scripts.h: Likewise.
53453         * lib/unictype/scripts_byname.gperf: Likewise.
53454         * lib/unictype/sy_c_ident.h: Likewise.
53455         * lib/unictype/sy_c_whitespace.h: Likewise.
53456         * lib/unictype/sy_java_ident.h: Likewise.
53457         * lib/unictype/sy_java_whitespace.h: Likewise.
53458
53459         * lib/unictype/Makefile: New file.
53460         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
53461         glibc.
53462         * lib/unictype/3level.h: New file, copied from glibc.
53463         * lib/unictype/3levelbit.h: New file.
53464
53465 2007-11-11  Bruno Haible  <bruno@clisp.org>
53466
53467         * modules/gperf: New file.
53468         * modules/iconv_open (Depends-on): Add it.
53469         (Makefile.am): Remove the GPERF definition.
53470
53471 2007-11-11  Bruno Haible  <bruno@clisp.org>
53472
53473         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
53474         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
53475
53476 2007-11-11  Bruno Haible  <bruno@clisp.org>
53477
53478         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
53479         (usage): Remove function.
53480
53481 2007-11-11  Bruno Haible  <bruno@clisp.org>
53482
53483         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
53484         gl_FUNC_CEILF_LIBS.
53485         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
53486         gl_FUNC_CEIL_LIBS.
53487         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
53488         gl_FUNC_CEILL_LIBS.
53489         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
53490         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
53491         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
53492
53493 2007-11-11  Bruno Haible  <bruno@clisp.org>
53494
53495         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
53496         roundf were declared but do not exist on functions.
53497         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
53498         roundl were declared but do not exist on functions.
53499         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
53500         HAVE_FLOORL_AND_CEILL, respectively.
53501         Needed for Sun C on Solaris 10.
53502
53503 2007-11-11  Bruno Haible  <bruno@clisp.org>
53504
53505         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
53506         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
53507         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
53508         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
53509         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
53510         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
53511         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
53512         HAVE_DECL_ROUNDF.
53513         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
53514         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
53515         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
53516         of HAVE_DECL_ROUND*.
53517         * modules/math (Makefile.am): Update.
53518
53519 2007-11-10  Bruno Haible  <bruno@clisp.org>
53520
53521         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
53522         ptrdiff_t as m4/intl.m4.
53523
53524 2007-11-10  Jim Meyering  <meyering@redhat.com>
53525
53526         Avoid link failure for the argmatch test.
53527         * tests/test-argmatch.c (usage): Define function to avoid a link
53528         failure: argmatch_die requires a usage function.
53529
53530 2007-11-09  Bruno Haible  <bruno@clisp.org>
53531
53532         * doc/functions/snprintf.texi: Mention BeOS deficiency.
53533         * doc/functions/vsnprintf.texi: Likewise.
53534         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
53535         with a size argument < 2.
53536
53537 2007-11-09  Bruno Haible  <bruno@clisp.org>
53538
53539         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
53540         buffer. Fixes an inefficiency introduced on 2007-11-03.
53541
53542 2007-11-09  Bruno Haible  <bruno@clisp.org>
53543
53544         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
53545         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
53546
53547 2007-11-08  Jim Meyering  <meyering@redhat.com>
53548
53549         Change cache variable name prefix "jm_" to "gl_" everywhere.
53550         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
53551         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
53552         * m4/uptime.m4: s/gl_/jm_/
53553
53554 2007-11-07  Bruno Haible  <bruno@clisp.org>
53555
53556         Update to GNU gettext 0.17.
53557         * m4/intl.m4: Update to GNU gettext 0.17.
53558         * m4/po.m4: Likewise.
53559         * modules/gettext (Files): Remove m4/ulonglong.m4.
53560         (configure.ac): Require gettext infrastructure from version 0.17.
53561
53562 2007-11-06  Bruno Haible  <bruno@clisp.org>
53563
53564         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
53565         symbolic values are not defined in a public header.
53566         * lib/freadable.c (freadable) [QNX]: Likewise.
53567         * lib/freadahead.c (freadahead) [QNX]: Likewise.
53568         * lib/freading.c (freading) [QNX]: Likewise.
53569         * lib/fseterr.c (fseterr) [QNX]: Likewise.
53570         * lib/fwritable.c (fwritable) [QNX]: Likewise.
53571         * lib/fwriting.c (fwriting) [QNX]: Likewise.
53572         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
53573         Reported by Alain Magloire.
53574
53575         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
53576
53577 2007-11-05  Bruno Haible  <bruno@clisp.org>
53578
53579         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
53580         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
53581         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
53582         Reported by Eric Blake.
53583
53584 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53585             Bruno Haible  <bruno@clisp.org>
53586
53587         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
53588         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
53589         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
53590         (malloc): Undefine also before including <stdlib.h>.
53591         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
53592         Needed on OSF/1 4.0.
53593
53594 2007-11-05  Jim Meyering  <meyering@redhat.com>
53595
53596         git-version-gen: sync from coreutils.
53597         * build-aux/git-version-gen: Add comments.
53598         Change the first '-' to '.' in the snapshot version string,
53599         e.g., 6.9-377-08144 -> 6.9.377-08144
53600         Remove first parameter.
53601         Don't declare a version "-dirty" merely because a time
53602         stamp has changed.
53603
53604 2007-11-04  Bruno Haible  <bruno@clisp.org>
53605
53606         * lib/lock.h: Protect all macro definitions containing an 'if'
53607         statement through a "do { ... } while (0)".
53608         * lib/tls.h: Likewise.
53609
53610 2007-11-04  Bruno Haible  <bruno@clisp.org>
53611
53612         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
53613
53614 2007-11-04  Bruno Haible  <bruno@clisp.org>
53615
53616         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
53617         * modules/fprintf-posix (Depends-on): Add nocrash.
53618         * modules/snprintf-posix (Depends-on): Likewise.
53619         * modules/sprintf-posix (Depends-on): Likewise.
53620         * modules/vasnprintf-posix (Depends-on): Likewise.
53621         * modules/vasprintf-posix (Depends-on): Likewise.
53622         * modules/vfprintf-posix (Depends-on): Likewise.
53623         * modules/vsnprintf-posix (Depends-on): Likewise.
53624         * modules/vsprintf-posix (Depends-on): Likewise.
53625         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53626         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53627         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53628         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53629         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53630         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53631         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53632
53633 2007-11-04  Bruno Haible  <bruno@clisp.org>
53634
53635         * modules/nocrash: New file.
53636         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
53637         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
53638
53639 2007-11-04  Bruno Haible  <bruno@clisp.org>
53640
53641         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
53642         precision handling.
53643         * tests/test-vasprintf-posix.c (test_function): Likewise.
53644         * tests/test-snprintf-posix.h (test_function): Likewise.
53645         * tests/test-sprintf-posix.h (test_function): Likewise.
53646
53647         Fix *printf behaviour for large precisions on mingw and BeOS.
53648         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
53649         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
53650         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
53651         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53652         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53653         gl_PRINTF_PRECISION and test its result. Invoke
53654         gl_PREREQ_VASNPRINTF_PRECISION.
53655         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53656         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53657         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53658         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53659         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53660         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53661         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53662         * doc/functions/fprintf.texi: Update.
53663         * doc/functions/printf.texi: Update.
53664         * doc/functions/snprintf.texi: Update.
53665         * doc/functions/sprintf.texi: Update.
53666         * doc/functions/vfprintf.texi: Update.
53667         * doc/functions/vprintf.texi: Update.
53668         * doc/functions/vsnprintf.texi: Update.
53669         * doc/functions/vsprintf.texi: Update.
53670
53671 2007-11-04  Bruno Haible  <bruno@clisp.org>
53672
53673         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
53674
53675 2007-11-04  Bruno Haible  <bruno@clisp.org>
53676
53677         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
53678         Reported by Sylvain Beucler <beuc@gnu.org>.
53679
53680 2007-11-03  Bruno Haible  <bruno@clisp.org>
53681
53682         * tests/test-fprintf-posix2.sh: New file.
53683         * tests/test-fprintf-posix2.c: New file.
53684         * modules/fprintf-posix-tests (Files): Add them.
53685         (TESTS): Add test-fprintf-posix2.sh.
53686         (configure.ac): Check for getrlimit and setrlimit.
53687         (check_PROGRAMS): Add test-fprintf-posix2.
53688
53689         * tests/test-printf-posix2.sh: New file.
53690         * tests/test-printf-posix2.c: New file.
53691         * modules/printf-posix-tests (Files): Add them.
53692         (TESTS): Add test-printf-posix2.sh.
53693         (configure.ac): Check for getrlimit and setrlimit.
53694         (check_PROGRAMS): Add test-printf-posix2.
53695
53696         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
53697         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
53698         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
53699         (decode_double): New function, copied from decode_long_double.
53700         (scale10_round_decimal_decoded): New function, extracted from
53701         scale10_round_decimal_long_double.
53702         (scale10_round_decimal_long_double): Use it.
53703         (scale10_round_decimal_double): New function.
53704         (floorlog10): New function.
53705         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
53706         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
53707         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53708         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53709         gl_PRINTF_ENOMEM and test its result. Invoke
53710         gl_PREREQ_VASNPRINTF_ENOMEM.
53711         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53712         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53713         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53714         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53715         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53716         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53717         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53718         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
53719         * modules/snprintf-posix (Depends-on): Likewise.
53720         * modules/sprintf-posix (Depends-on): Likewise.
53721         * modules/vasnprintf-posix (Depends-on): Likewise.
53722         * modules/vasprintf-posix (Depends-on): Likewise.
53723         * modules/vfprintf-posix (Depends-on): Likewise.
53724         * modules/vsnprintf-posix (Depends-on): Likewise.
53725         * modules/vsprintf-posix (Depends-on): Likewise.
53726         * doc/functions/fprintf.texi: Update.
53727         * doc/functions/printf.texi: Update.
53728         * doc/functions/snprintf.texi: Update.
53729         * doc/functions/sprintf.texi: Update.
53730         * doc/functions/vfprintf.texi: Update.
53731         * doc/functions/vprintf.texi: Update.
53732         * doc/functions/vsnprintf.texi: Update.
53733         * doc/functions/vsprintf.texi: Update.
53734
53735 2007-11-03  Bruno Haible  <bruno@clisp.org>
53736
53737         * modules/frexp-nolibm-tests: New file.
53738
53739         * modules/frexp-nolibm: New file.
53740         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
53741
53742 2007-11-03  Bruno Haible  <bruno@clisp.org>
53743
53744         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
53745         value is C99 compliant.
53746         Needed for OSF/1 5.1.
53747
53748 2007-11-03  Bruno Haible  <bruno@clisp.org>
53749
53750         Fix out-of-memory handling of vasnprintf.
53751         * lib/printf-parse.c: Include <errno.h>.
53752         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
53753         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
53754         is already set.
53755
53756 2007-11-02  Eric Blake  <ebb9@byu.net>
53757
53758         Fix tests on cygwin.
53759         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
53760
53761 2007-11-01  Bruno Haible  <bruno@clisp.org>
53762
53763         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
53764         warning.
53765         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
53766         needed for POSIX compatibility.
53767
53768 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53769
53770         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
53771         for compatibility with GNU.
53772
53773 2007-11-01  Bruno Haible  <bruno@clisp.org>
53774
53775         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
53776         (putenv): Renamed from rpl_putenv. Change argument type from
53777         'const char *' to 'char *'.
53778         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
53779         of defining putenv in config.h, just set REPLACE_PUTENV.
53780         * modules/putenv (Depends-on): Add stdlib.
53781         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53782         (Include): Use <stdlib.h>.
53783         * lib/stdlib.in.h (putenv): New declaration.
53784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
53785         REPLACE_PUTENV.
53786         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
53787         REPLACE_PUTENV.
53788         Needed for MacOS X 10.5.0.
53789         Reported by Peter O'Gorman <peter@pogma.com>.
53790
53791 2007-11-01  Jim Meyering  <meyering@redhat.com>
53792
53793         Treat an empty date string exactly like "0".
53794         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
53795         if the remaining date string (to be parsed) is empty, use "0".
53796         Reported by Mischa Molhoek and discussed in this thread:
53797         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
53798
53799 2007-10-31  Bruno Haible  <bruno@clisp.org>
53800
53801         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
53802         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
53803         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
53804         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
53805         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
53806         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
53807
53808 2007-10-31  Bruno Haible  <bruno@clisp.org>
53809
53810         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
53811         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
53812         (AC_TYPE_LONG_LONG_INT): Use it.
53813         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
53814         it as well.
53815         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
53816         to m4/longlong.m4.
53817         * modules/stdint (Files): Remove m4/ulonglong.m4.
53818         * modules/strtoull (Files): Use m4/longlong.m4 instead of
53819         m4/ulonglong.m4.
53820         * modules/strtoumax (Files): Likewise.
53821
53822 2007-10-30  Bruno Haible  <bruno@clisp.org>
53823
53824         * modules/xvasprintf-posix: New file.
53825         Suggested by Eric Blake.
53826
53827 2007-10-30  Bruno Haible  <bruno@clisp.org>
53828
53829         * modules/xprintf-posix-tests: New file.
53830         * tests/test-xprintf-posix.sh: New file.
53831         * tests/test-xprintf-posix.c: New file.
53832         * tests/test-xfprintf-posix.c: New file.
53833
53834         * modules/xprintf-posix: New file.
53835
53836 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53837
53838         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
53839         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
53840         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
53841
53842 2007-10-29  Bruno Haible  <bruno@clisp.org>
53843
53844         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
53845         contain the special marker '_cv_'.
53846         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
53847         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
53848         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
53849         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
53850         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
53851         Reported by Ralf Wildenhues.
53852
53853 2007-10-29  Bruno Haible  <bruno@clisp.org>
53854
53855         * gnulib-tool (func_import): When --lgpl is not specified, set
53856         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
53857         GPLv3.
53858         Reported by Simon Josefsson.
53859
53860 2007-10-28  Bruno Haible  <bruno@clisp.org>
53861
53862         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
53863         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
53864         HAVE_DECL_ISFINITE.
53865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53866         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
53867         HAVE_DECL_ISFINITE.
53868
53869 2007-10-28  Bruno Haible  <bruno@clisp.org>
53870
53871         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
53872         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
53873
53874 2007-10-28  Bruno Haible  <bruno@clisp.org>
53875
53876         Fix link errors with Sun C 5.0 on Solaris 10.
53877         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
53878         function is declared but not present in the compiler's libm.
53879         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53880         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
53881         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
53882         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
53883         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
53884         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
53885         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
53886         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53887         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
53888         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
53889         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
53890         HAVE_DECL_FLOORL.
53891
53892 2007-10-28  Bruno Haible  <bruno@clisp.org>
53893
53894         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
53895         gl_FUNC_FLOORL. Cache the result.
53896         (gl_FUNC_FLOORL): Use it.
53897         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
53898         gl_FUNC_CEILL. Cache the result.
53899         (gl_FUNC_CEILL): Use it.
53900
53901         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
53902         gl_FUNC_FLOOR. Cache the result.
53903         (gl_FUNC_FLOOR): Use it.
53904         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
53905         gl_FUNC_CEIL. Cache the result.
53906         (gl_FUNC_CEIL): Use it.
53907
53908         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
53909         gl_FUNC_FLOORF. Cache the result.
53910         (gl_FUNC_FLOORF): Use it.
53911         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
53912         gl_FUNC_CEILF. Cache the result.
53913         (gl_FUNC_CEILF): Use it.
53914
53915 2007-10-28  Bruno Haible  <bruno@clisp.org>
53916
53917         * gnulib-tool: Allow specifying the LGPL version number through
53918         --lgpl=2 or --lgpl=3.
53919         (func_usage): Document --lgpl with argument.
53920         Handle --lgpl=... arguments.
53921         (func_import): Recognize also gl_LGPL calls with an argument. When
53922         --lgpl=2 is used and the module's license is just LGPL, report an
53923         error. Set sed_transform_lib_file according to the lgpl variable. In
53924         the generated files, use --lgpl or gl_LGPL invocations with argument,
53925         if necessary.
53926         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
53927         an LGPv2+ license.
53928         * doc/gnulib-tool.texi (Modified imports): Update explanation of
53929         gl_LGPL macro.
53930
53931 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53932             Bruno Haible  <bruno@clisp.org>
53933
53934         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
53935         (u16_uctomb_aux): Likewise.
53936         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
53937         !HAVE_INLINE.
53938         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
53939
53940 2007-10-28  Bruno Haible  <bruno@clisp.org>
53941
53942         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
53943         Invoke AM_GETTEXT_OPTION if it exists.
53944         * modules/vasprintf: Likewise.
53945         * modules/verror: Likewise.
53946         * modules/xprintf: Likewise.
53947         * modules/xvasprintf: Likewise.
53948
53949 2007-10-27  Ben Pfaff  <blp@gnu.org>
53950
53951         * lib/math.in.h: Define isfinite macro and prototypes for
53952         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
53953         implementations.
53954         * m4/math_h.m4: New substitutions for isfinite module.
53955         * lib/isfinite.c: New file.
53956         * m4/isfinite.m4: New file.
53957         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
53958         * modules/isfinite: New file.
53959         * modules/isfinite-tests: New file.
53960         * tests/tests-isfinite.c: New file.
53961         * doc/functions/isfinite.texi: Mention isfinite module.
53962         * MODULES.html.sh: Mention new module.
53963
53964 2007-10-27  Ben Pfaff  <blp@gnu.org>
53965
53966         Ralf Wildenhues reported that Tru64 4.0D declares the round
53967         functions but does not have definitions.
53968         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
53969         cannot be found in any library, set the output variable to
53970         "missing" instead of "".
53971         * m4/round.m4: Also use our substitute if we cannot find round in
53972         any library, even if it is declared.
53973         * m4/roundf.m4: Likewise for roundf.
53974         * m4/roundl.m4: Likewise for roundl.
53975         * lib/math.in.h: Undefine roundf, round, roundl before defining
53976         their replacements, to allow for hypothetical systems where these
53977         may be defined as macros but not available in libraries.
53978
53979 2007-10-27  Bruno Haible  <bruno@clisp.org>
53980
53981         * doc/gnulib.texi: Invoke @firstparagraphindent.
53982         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
53983         changes in gnulib.
53984         (Source changes): New section.
53985
53986 2007-10-26  Bruno Haible  <bruno@clisp.org>
53987
53988         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
53989         borrowed from autoconf.
53990
53991 2007-10-26  Bruno Haible  <bruno@clisp.org>
53992
53993         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
53994         strerror returned the empty string. Needed on HP-UX 11.00.
53995
53996 2007-10-24  Micah Cowan  <micah@cowan.name>
53997
53998         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
53999         * build-aux/bootstrap: Remove support for now-unnecessary option,
54000         --cvs-user, and envvars CVS_USER, CVS_RSH.
54001
54002 2007-10-24  Jim Meyering  <meyering@redhat.com>
54003
54004         Avoid diagnostics from sha1sum when there is no cached checksum.
54005         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54006         if the po.s1 file hasn't been created yet.
54007
54008         * build-aux/bootstrap: Sync from coreutils:
54009         2007-10-24  Jim Meyering  <meyering@redhat.com>
54010         Get gnulib from the git repository, not from an obsolete cvs one.
54011         * build-aux/bootstrap: Suggestion from Micah Cowan.
54012         2007-10-04  Jim Meyering  <jim@meyering.net>
54013         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54014         (update_po_files): Work also when there are no .po files in po/.
54015
54016 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54017
54018         * README: Append ".git" to git and cg examples.
54019         Problem reported by Benoit Sigoure.
54020
54021 2007-10-23  Micah Cowan  <micah@cowan.name>
54022
54023         * users.txt: Add wget.
54024
54025 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54026
54027         Fix linking of some unistdio tests on FreeBSD.
54028         * modules/unistdio/u16-vsnprintf-tests
54029         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54030         * modules/unistdio/u16-vsprintf-tests
54031         (test_u16_vsnprintf1_LDADD): Likewise.
54032         * modules/unistdio/u32-vsnprintf-tests
54033         (test_u32_vsnprintf1_LDADD): Likewise.
54034         * modules/unistdio/u32-vsprintf-tests
54035         (test_u32_vsprintf1_LDADD): Likewise.
54036         * modules/unistdio/u8-vsnprintf-tests
54037         (test_u8_vsnprintf1_LDADD): Likewise.
54038         * modules/unistdio/u8-vsprintf-tests
54039         (test_u8_vsprintf1_LDADD): Likewise.
54040         * modules/unistdio/ulc-vsnprintf-tests
54041         (test_ulc_vsnprintf1_LDADD): Likewise.
54042         * modules/unistdio/ulc-vsprintf-tests
54043         (test_ulc_vsprintf1_LDADD): Likewise.
54044
54045         Fix linking of some uniconv tests on FreeBSD.
54046         * modules/uniconv/u16-conv-from-enc-tests
54047         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54048         * modules/uniconv/u16-conv-to-enc-tests
54049         (test_u16_conv_to_enc_LDADD): Likewise.
54050         * modules/uniconv/u16-strconv-from-enc-tests
54051         (test_u16_strconv_from_enc_LDADD): Likewise.
54052         * modules/uniconv/u16-strconv-to-enc-tests
54053         (test_u16_strconv_to_enc_LDADD): Likewise.
54054         * modules/uniconv/u32-conv-from-enc-tests
54055         (test_u32_conv_from_enc_LDADD): Likewise.
54056         * modules/uniconv/u32-conv-to-enc-tests
54057         (test_u32_conv_to_enc_LDADD): Likewise.
54058         * modules/uniconv/u32-strconv-from-enc-tests
54059         (test_u32_strconv_from_enc_LDADD): Likewise.
54060         * modules/uniconv/u32-strconv-to-enc-tests
54061         (test_u32_strconv_to_enc_LDADD): Likewise.
54062         * modules/uniconv/u8-conv-from-enc-tests
54063         (test_u8_conv_from_enc_LDADD): Likewise.
54064         * modules/uniconv/u8-conv-to-enc-tests
54065         (test_u8_conv_to_enc_LDADD): Likewise.
54066         * modules/uniconv/u8-strconv-from-enc-tests
54067         (test_u8_strconv_from_enc_LDADD): Likewise.
54068         * modules/uniconv/u8-strconv-to-enc-tests
54069         (test_u8_strconv_to_enc_LDADD): Likewise.
54070
54071 2007-10-22  Bruno Haible  <bruno@clisp.org>
54072
54073         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54074         size.
54075
54076 2007-10-22  Eric Blake  <ebb9@byu.net>
54077
54078         Tweak x*printf documentation.
54079         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54080         variable name and comments.
54081         Suggested by Bruno Haible.
54082
54083 2007-10-22  Bruno Haible  <bruno@clisp.org>
54084
54085         * lib/acl.c (copy_acl): Fix file name in comment.
54086
54087 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54088
54089         Fix Tru64 problem with stdbool.h.
54090         * lib/stdbool.in.h (false, true):
54091         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54092         Don't declare as an enum in this situation; it runs afoul of Tru64.
54093         Problem reported by Steven M. Schweda in
54094         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54095
54096 2007-10-22  Eric Blake  <ebb9@byu.net>
54097
54098         Also wrap vf?printf.
54099         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54100         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54101         (xvprintf, xvfprintf): New functions.
54102
54103 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54104
54105         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54106         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54107
54108         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54109         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54110
54111 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54112
54113         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54114         by Bruno Haible.
54115
54116 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54117
54118         * lib/getloadavg.c
54119         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54120         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54121
54122         * tests/test-i-ring.c: Work for C89.
54123
54124 2007-10-22  Bruno Haible  <bruno@clisp.org>
54125
54126         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54127         -1u, in preprocessor expression, so that we don't test for the bug
54128         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54129         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54130
54131 2007-10-22  Eric Blake  <ebb9@byu.net>
54132
54133         * tests/test-yesno.sh: Silence stderr during test.
54134
54135 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54136
54137         * modules/crypto/gc-camellia: New file.
54138
54139         * m4/gc-camellia.m4: New file.
54140
54141         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54142
54143         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54144
54145 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54146
54147         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54148         --help to stdout.  Reported by sms@antinode.org (Steven
54149         M. Schweda).
54150
54151 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54152
54153         * users.txt: Fix link to libksba.
54154
54155 2007-10-21  Ben Pfaff  <blp@gnu.org>
54156
54157         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54158         round.c roundf implementation that depends on floorf and ceilf to
54159         be tested unconditionally.
54160
54161 2007-10-21  Ben Pfaff  <blp@gnu.org>
54162
54163         * m4/check-libm-func.m4: Removed.
54164         * m4/check-math-lib.m4: New file.
54165         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54166         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54167         definition and lack of AC_LIBOBJ([roundf]).
54168         * m4/roundl.m4: Ditto, and similarly for roundl.
54169         * modules/round: Reference new m4 file.
54170         * modules/roundf: Ditto.
54171         * modules/roundl: Ditto.
54172         * tests/test-round2.c (main): Use ROUND instead of round.
54173         Bug report from Bruno Haible.
54174
54175 2007-10-21  Bruno Haible  <bruno@clisp.org>
54176
54177         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54178         context.
54179
54180 2007-10-21  Bruno Haible  <bruno@clisp.org>
54181
54182         * tests/test-wcwidth.c (main): Allow negative result for some control
54183         characters.
54184
54185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54186         Needed on OSF/1 5.1.
54187
54188 2007-10-21  Bruno Haible  <bruno@clisp.org>
54189
54190         * tests/test-floorf1.c: Include isnanf.h.
54191         (main): Use isnanf() instead of isnan().
54192         * tests/test-ceilf1.c: Include isnanf.h.
54193         (main): Use isnanf() instead of isnan().
54194         * tests/test-truncf1.c: Include isnanf.h.
54195         (main): Use isnanf() instead of isnan().
54196         * tests/test-roundf1.c: Include isnanf.h.
54197         (main): Use isnanf() instead of isnan().
54198
54199 2007-10-21  Eric Blake  <ebb9@byu.net>
54200
54201         * users.txt: Update URL for m4.
54202
54203 2007-10-21  Bruno Haible  <bruno@clisp.org>
54204
54205         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54206
54207 2007-10-21  Bruno Haible  <bruno@clisp.org>
54208
54209         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54210         Git's management files if the CVS files are not present.
54211
54212 2007-10-20  Bruno Haible  <bruno@clisp.org>
54213
54214         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54215         gcc-3.4.x.
54216
54217 2007-10-20  Ben Pfaff  <blp@gnu.org>
54218
54219         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54220         implementations.
54221         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54222         * lib/round.c: New file.
54223         * lib/roundf.c: New file.
54224         * lib/roundl.c: New file.
54225         * m4/round.m4: New file.
54226         * m4/roundf.m4: New file.
54227         * m4/roundl.m4: New file.
54228         * m4/check-libm-func-m4: New file.
54229         * modules/math: Replace round, roundf, roundl related @VARS@ in
54230         math.in.h.
54231         * modules/round: New file.
54232         * modules/round-tests: New file.
54233         * modules/roundf: New file.
54234         * modules/roundf-tests: New file.
54235         * modules/roundl: New file.
54236         * modules/roundl-tests: New file.
54237         * tests/test-round1.c: New file.
54238         * tests/test-round2.c: New file.
54239         * tests/test-roundf1.c: New file.
54240         * tests/test-roundf2.c: New file.
54241         * tests/test-roundl.c: New file.
54242         * doc/functions/round.texi: Mention round module.
54243         * doc/functions/roundf.texi: Mention roundf module.
54244         * doc/functions/roundl.texi: Mention roundl module.
54245         * MODULES.html.sh: Mention new modules.
54246         Thanks to Bruno Haible for suggestions.
54247
54248 2007-10-20  Jim Meyering  <meyering@redhat.com>
54249
54250         * lib/xprintf.c: Include <config.h> unconditionally.
54251
54252         Change xprintf's license to GPL.
54253         * modules/xprintf (License): s/LGPL/GPL/, since this module
54254         depends on modules (exit and exitfail) which are GPL.
54255         Suggestion from Bruno Haible.
54256
54257         xprintf fixes.
54258         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
54259         Use a clearer diagnostic.
54260         Patch from Bruno Haible.
54261
54262 2007-10-20  Bruno Haible  <bruno@clisp.org>
54263
54264         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
54265         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
54266         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54267
54268 2007-10-20  Bruno Haible  <bruno@clisp.org>
54269
54270         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
54271         precision in the comparison result > x - 1 or similar.
54272         * tests/test-ceilf2.c (correct_result_p): Likewise.
54273         * tests/test-truncf2.c (correct_result_p): Likewise.
54274         * tests/test-trunc2.c (correct_result_p): Likewise.
54275         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54276
54277 2007-10-20  Bruno Haible  <bruno@clisp.org>
54278
54279         * modules/ceil: New file.
54280         * m4/ceil.m4: New file.
54281         * doc/functions/ceil.texi: Mention the 'ceil' module.
54282
54283 2007-10-20  Bruno Haible  <bruno@clisp.org>
54284
54285         * modules/floor: New file.
54286         * m4/floor.m4: New file.
54287         * doc/functions/floor.texi: Mention the 'floor' module.
54288
54289 2007-10-20  Bruno Haible  <bruno@clisp.org>
54290
54291         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
54292         of %a.
54293         * modules/floorf-tests (Depends-on): Likewise.
54294         * modules/truncf-tests (Depends-on): Likewise.
54295         * modules/trunc-tests (Depends-on): Likewise.
54296         Reported by Ben Pfaff.
54297
54298 2007-10-19  Jim Meyering  <meyering@redhat.com>
54299
54300         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
54301         Don't bother testing specific errno values.  Just test ferror.
54302
54303         New module: xprintf
54304         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
54305
54306 2007-10-19  Bruno Haible  <bruno@clisp.org>
54307
54308         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
54309         syntax.
54310         * modules/javaexec (Makefile.am): Likewise.
54311         * modules/relocatable-prog (Makefile.am): Likewise.
54312         Suggested by Jim Meyering.
54313
54314 2007-10-18  Bruno Haible  <bruno@clisp.org>
54315
54316         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
54317         Reported by Jim Meyering.
54318
54319 2007-10-18  Eric Blake  <ebb9@byu.net>
54320
54321         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
54322
54323 2007-10-18  Bruno Haible  <bruno@clisp.org>
54324
54325         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
54326         the format string into writable memory. Needed in Fortify conditions.
54327
54328 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
54329             Bruno Haible  <bruno@clisp.org>
54330
54331         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
54332         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
54333         * modules/trim (Depends-on): Add mbchar.
54334         (configure.ac): Add gl_FUNC_MBRTOWC.
54335         (Makefile.am): Augment lib_SOURCES.
54336
54337 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54338
54339         Modify glob.c to use fstatat and dirfd, to simplify it.
54340         Suggested by Eric Blake.
54341         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
54342         Don't include <stdbool.h>; not used.
54343         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54344         (link_exists_p): Simplify implementation, since we can now assume
54345         dirfd and fstatat.
54346         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54347
54348 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54349
54350         * gnulib-tool (func_get_dependencies): Fix sed script to
54351         match only tests.
54352
54353 2007-10-17  Bruno Haible  <bruno@clisp.org>
54354
54355         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54356         allow locale names without encoding suffix.
54357         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54358         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54359
54360 2007-10-16  Bruno Haible  <bruno@clisp.org>
54361
54362         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54363         * lib/getgroups.c (getgroups): Likewise.
54364         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54365
54366 2007-10-16  Bruno Haible  <bruno@clisp.org>
54367
54368         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54369         * modules/malloc-posix (License): Likewise.
54370         * modules/realloc-posix (License): Likewise.
54371         * modules/calloc-posix (License): Likewise.
54372         * modules/intprops (License): Change from GPL to LGPL, with
54373         Paul Eggert's approval.
54374
54375 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54376
54377         Merge glibc changes into lib/glob.c.
54378
54379         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
54380         2007-10-15 04:59:03 UTC.  Here are the changes:
54381
54382         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
54383
54384         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
54385
54386         * lib/glob.c: Add some branch prediction throughout.
54387
54388         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
54389
54390         [BZ #5103]
54391         * lib/glob.c (glob): Recognize patterns starting \/.
54392
54393         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
54394
54395         [BZ #3996]
54396         * lib/glob.c (attribute_hidden): Define if not defined.
54397         (glob): Unescape dirname, filename or username when needed and not
54398         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
54399         is NULL.  Handle unescaped [ in pattern without closing ].
54400         Don't pass GLOB_CHECK down to recursive glob for directories.
54401         (__glob_pattern_type): New function.
54402         (__glob_pattern_p): Implement using __glob_pattern_type.
54403         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
54404         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
54405         Remove unreachable code.
54406
54407         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
54408
54409         * lib/glob.c (glob_in_dir): Add some comments and asserts to
54410         explain why there are no leaks.
54411
54412         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
54413
54414         [BZ #3253]
54415         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54416         time, rather allocate increasingly bigger arrays of pointers, if
54417         possible with alloca, if too large with malloc.
54418
54419 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54420
54421         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
54422         Problem reported by H.Merijn Brand in
54423         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
54424         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
54425         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54426
54427 2007-10-15  Bruno Haible  <bruno@clisp.org>
54428
54429         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
54430         with explicit rpl_ prefix.
54431         * lib/fopen.c (fopen): Likewise.
54432         * lib/freopen.c (freopen): Likewise.
54433         * lib/iconv.c (iconv): Likewise.
54434         * lib/iconv_close.c (iconv_close): Likewise.
54435
54436 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54437
54438         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
54439
54440 2007-10-15  Bruno Haible  <bruno@clisp.org>
54441
54442         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
54443         <stddef.h> instead of <stdlib.h> since we only need NULL.
54444         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54445
54446 2007-10-15  Bruno Haible  <bruno@clisp.org>
54447
54448         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
54449         Replace paragraph talking about LIBOBJS.
54450         Reported by Colin Watson <cjwatson@debian.org>.
54451
54452 2007-10-15  Bruno Haible  <bruno@clisp.org>
54453
54454         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
54455         <stdlib.h> before using NULL.
54456
54457 2007-10-15  Simon Josefsson  <simon@josefsson.org>
54458
54459         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
54460         Reported by Albert Chin <china@thewrittenword.com>.
54461
54462 2007-10-14  Bruno Haible  <bruno@clisp.org>
54463
54464         * modules/iconv_open-utf-tests: New file.
54465         * tests/test-iconv-utf.c: New file.
54466
54467         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
54468         * modules/iconv_open-utf: New file.
54469         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
54470         (iconv, iconv_close): New declarations.
54471         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
54472         be defined.
54473         (iconv_open): Add special handling of conversion between UTF-8 and
54474         UTF-{16,32}{BE,LE}.
54475         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
54476         * lib/iconv_close.c: New file.
54477         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
54478         gl_FUNC_ICONV_OPEN.
54479         (gl_FUNC_ICONV_OPEN): Use it.
54480         (gl_FUNC_ICONV_OPEN_UTF): New macro.
54481         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
54482         and REPLACE_ICONV_UTF.
54483         * modules/iconv_open (Depends-on): Add c-strcase.
54484         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
54485         ICONV_CONST.
54486         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
54487
54488 2007-10-13  Albert Chin  <china@thewrittenword.com>
54489             Bruno Haible  <bruno@clisp.org>
54490
54491         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
54492         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
54493
54494 2007-10-13  Bruno Haible  <bruno@clisp.org>
54495
54496         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
54497         defined, use the ISO C99 inline semantics.
54498         * lib/argp.h (ARGP_EI): Likewise.
54499
54500 2007-10-13  Bruno Haible  <bruno@clisp.org>
54501
54502         Handle 'inline' change in gcc 4.3.0.
54503         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
54504         argp_fmtstream_write, argp_fmtstream_set_lmargin,
54505         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
54506         argp_fmtstream_point): Disable 'extern' declaration if the function
54507         definition is going to be provided inline.
54508         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
54509         semantics, not the ISO C99 inline semantics.
54510         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
54511         'extern' declaration if the function definition is going to be provided
54512         inline.
54513         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
54514         the GNU C inline semantics, not the ISO C99 inline semantics. With
54515         GCC 4.2, avoid a warning.
54516
54517 2007-10-13  Bruno Haible  <bruno@clisp.org>
54518
54519         * lib/freading.h (freading): Enable the use of __freading for
54520         glibc >= 2.7.
54521         * lib/freading.c (freading): Likewise.
54522
54523 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54524
54525         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
54526         "warning: C99 inline functions are not supported; using GNU89".
54527
54528 2007-10-12  Bruno Haible  <bruno@clisp.org>
54529
54530         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
54531         of 2.
54532         * tests/test-ceilf2.c: New file.
54533         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
54534
54535         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
54536         * modules/ceilf-tests: Update.
54537
54538 2007-10-12  Bruno Haible  <bruno@clisp.org>
54539
54540         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
54541         of 2.
54542         * tests/test-floorf2.c: New file.
54543         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
54544
54545         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
54546         * modules/floorf-tests: Update.
54547
54548 2007-10-12  Bruno Haible  <bruno@clisp.org>
54549
54550         * tests/test-trunc2.c: New file.
54551         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
54552
54553         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
54554         * modules/trunc-tests: Update.
54555
54556 2007-10-12  Bruno Haible  <bruno@clisp.org>
54557
54558         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
54559         of 2.
54560         * tests/test-truncf2.c: New file.
54561         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
54562
54563         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
54564         * modules/truncf-tests: Update.
54565
54566 2007-10-11  Eric Blake  <ebb9@byu.net>
54567
54568         Don't claim strerror is broken on Interix.
54569         * doc/functions/strerror.texi (strerror): Known broken systems are
54570         now Solaris 8, and not Interix.
54571         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
54572         Interix on cross-compile.
54573         Reported by Martin Koeppe in
54574         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
54575
54576 2007-10-11  Bruno Haible  <bruno@clisp.org>
54577
54578         * modules/i-ring-tests: New file.
54579         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
54580         instead of assert.
54581
54582 2007-10-11  Bruno Haible  <bruno@clisp.org>
54583
54584         * modules/filenamecat-tests: New file.
54585         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
54586         * lib/filenamecat.c: Remove test code.
54587
54588 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54589
54590         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
54591
54592         * lib/strerror.c: Include <string.h> always, to test interface,
54593         and to remove the need for the dummy.
54594         Include intprops.h to compute width instead of doing it ourselves
54595         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
54596         (strerror): Define it to return NULL if there's no system strerror.
54597         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
54598         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
54599         ancient pre-strerror Unix systems well any more.  Saying "unknown
54600         system error" is enough.
54601         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
54602         simpler strerror.c implementation.
54603         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
54604         Simplify the tests to reflect the simpler strerror implementation.
54605         * modules/strerror (Depends-on): Add intprops.
54606
54607 2007-10-09  Eric Blake  <ebb9@byu.net>
54608
54609         Silence test-fpending.
54610         * modules/fpending-tests (Files): Add wrapper script.
54611         * tests/test-fpending.sh: New file.
54612
54613 2007-10-09  Bruno Haible  <bruno@clisp.org>
54614
54615         * MODULES.html.sh (func_module): Don't create a hyperlink for
54616         function names like 'printf_frexp'.
54617         (Misc): Add crc, memxor.
54618         (Characteristics of floating types): New section.
54619         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
54620         isnanf-nolibm, signbit, trunc, truncf, truncl.
54621         (Enhancements for ISO C 99 functions): New subsection Input/output.
54622         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
54623         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
54624         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
54625         (Compatibility checks for POSIX:2001 functions): Add clock-time.
54626         (Enhancements for POSIX:2001 functions): Add chdir-long.
54627         (File system functions): Add areadlink, chdir-safer, read-file.
54628         Remove cycle-check.
54629         (File system as inode set): New section.
54630         (Date and time): Add gethrxtime.
54631         (Multithreading): Add openmp.
54632         (Internationalization functions): Add localename.
54633         (Unicode string functions): Add unistr/u*-mbsnlen.
54634         (Support for maintaining and releasing projects): Add git-version-gen.
54635         (Lone files): Remove directories.
54636
54637 2007-10-08  Ben Pfaff  <blp@gnu.org>
54638
54639         * lib/xmalloca.h: Fix typo in comment.
54640
54641 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54642
54643         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
54644         when avoiding problems with integer overflow.  Use a portable test
54645         instead.
54646
54647 2007-10-08  Simon Josefsson  <simon@josefsson.org>
54648
54649         * modules/dummy (License): Change to LGPLv2+.
54650         * modules/float (License): Likewise
54651         * modules/realloc (License): Likewise
54652         * modules/stdlib (License): Likewise
54653
54654 2007-10-07  Bruno Haible  <bruno@clisp.org>
54655
54656         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
54657         * floor.c (TWO_MANT_DIG): Likewise.
54658         * ceil.c (TWO_MANT_DIG): Likewise.
54659         Reported by Ben Pfaff.
54660
54661 2007-10-07  Bruno Haible  <bruno@clisp.org>
54662
54663         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
54664         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
54665         * lib/frexp.c (FUNC): Likewise.
54666         * lib/printf-frexp.h (printf_frexp): Likewise.
54667         * lib/printf-frexpl.h (printf_frexpl): Likewise.
54668         * lib/printf-frexp.c (FUNC): Likewise.
54669         Suggested by Jim Meyering.
54670
54671 2007-10-07  Jim Meyering  <meyering@redhat.com>
54672
54673         Make xnanosleep's integer overflow test more robust.
54674         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
54675         so that gcc-4.3.0 doesn't optimize away this test for overflow.
54676
54677 2007-10-07  Bruno Haible  <bruno@clisp.org>
54678
54679         * NEWS: Mention the license change.
54680
54681         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
54682         abbreviations in the modules files.
54683
54684         Change copyright notice from GPLv2+ to GPLv3+.
54685         * README: Change copyright notice.
54686         * MODULES.html.sh: Likewise.
54687         * build-aux/bootstrap.conf: Likewise.
54688         * build-aux/config.libpath: Likewise.
54689         * build-aux/csharpcomp.sh.in: Likewise.
54690         * build-aux/csharpexec.sh.in: Likewise.
54691         * build-aux/install-reloc: Likewise.
54692         * build-aux/javacomp.sh.in: Likewise.
54693         * build-aux/javaexec.sh.in: Likewise.
54694         * build-aux/ldd.sh.in: Likewise.
54695         * build-aux/reloc-ldflags: Likewise.
54696         * build-aux/relocatable.sh.in: Likewise.
54697         * build-aux/x-to-1.in: Likewise.
54698         * check-module: Likewise.
54699         * config/srclistvars.sh: Likewise.
54700         * gnulib-tool: Likewise.
54701         * lib/acl-internal.h: Likewise.
54702         * lib/acl.c: Likewise.
54703         * lib/acl.h: Likewise.
54704         * lib/acl_entries.c: Likewise.
54705         * lib/areadlink-with-size.c: Likewise.
54706         * lib/areadlink.c: Likewise.
54707         * lib/areadlink.h: Likewise.
54708         * lib/argmatch.c: Likewise.
54709         * lib/argmatch.h: Likewise.
54710         * lib/argp-ba.c: Likewise.
54711         * lib/argp-eexst.c: Likewise.
54712         * lib/argp-fmtstream.c: Likewise.
54713         * lib/argp-fmtstream.h: Likewise.
54714         * lib/argp-fs-xinl.c: Likewise.
54715         * lib/argp-help.c: Likewise.
54716         * lib/argp-namefrob.h: Likewise.
54717         * lib/argp-parse.c: Likewise.
54718         * lib/argp-pin.c: Likewise.
54719         * lib/argp-pv.c: Likewise.
54720         * lib/argp-pvh.c: Likewise.
54721         * lib/argp-xinl.c: Likewise.
54722         * lib/argp.h: Likewise.
54723         * lib/at-func.c: Likewise.
54724         * lib/atanl.c: Likewise.
54725         * lib/backupfile.c: Likewise.
54726         * lib/backupfile.h: Likewise.
54727         * lib/basename.c: Likewise.
54728         * lib/binary-io.h: Likewise.
54729         * lib/byteswap.in.h: Likewise.
54730         * lib/c-stack.c: Likewise.
54731         * lib/c-stack.h: Likewise.
54732         * lib/c-strcasestr.c: Likewise.
54733         * lib/c-strcasestr.h: Likewise.
54734         * lib/c-strstr.c: Likewise.
54735         * lib/c-strstr.h: Likewise.
54736         * lib/c-strtod.c: Likewise.
54737         * lib/calloc.c: Likewise.
54738         * lib/canon-host.c: Likewise.
54739         * lib/canon-host.h: Likewise.
54740         * lib/canonicalize-lgpl.c: Likewise.
54741         * lib/canonicalize.c: Likewise.
54742         * lib/canonicalize.h: Likewise.
54743         * lib/ceil.c: Likewise.
54744         * lib/ceilf.c: Likewise.
54745         * lib/ceill.c: Likewise.
54746         * lib/chdir-long.c: Likewise.
54747         * lib/chdir-long.h: Likewise.
54748         * lib/chdir-safer.c: Likewise.
54749         * lib/chdir-safer.h: Likewise.
54750         * lib/chown.c: Likewise.
54751         * lib/classpath.c: Likewise.
54752         * lib/classpath.h: Likewise.
54753         * lib/clean-temp.c: Likewise.
54754         * lib/clean-temp.h: Likewise.
54755         * lib/cloexec.c: Likewise.
54756         * lib/close-stream.c: Likewise.
54757         * lib/closein.c: Likewise.
54758         * lib/closein.h: Likewise.
54759         * lib/closeout.c: Likewise.
54760         * lib/closeout.h: Likewise.
54761         * lib/concat-filename.c: Likewise.
54762         * lib/copy-file.c: Likewise.
54763         * lib/copy-file.h: Likewise.
54764         * lib/count-one-bits.h: Likewise.
54765         * lib/crc.c: Likewise.
54766         * lib/crc.h: Likewise.
54767         * lib/creat-safer.c: Likewise.
54768         * lib/csharpcomp.c: Likewise.
54769         * lib/csharpcomp.h: Likewise.
54770         * lib/csharpexec.c: Likewise.
54771         * lib/csharpexec.h: Likewise.
54772         * lib/cycle-check.c: Likewise.
54773         * lib/cycle-check.h: Likewise.
54774         * lib/diacrit.c: Likewise.
54775         * lib/diacrit.h: Likewise.
54776         * lib/diffseq.h: Likewise.
54777         * lib/dirchownmod.c: Likewise.
54778         * lib/dirent.in.h: Likewise.
54779         * lib/dirfd.c: Likewise.
54780         * lib/dirfd.h: Likewise.
54781         * lib/dirname.c: Likewise.
54782         * lib/dirname.h: Likewise.
54783         * lib/dummy.c: Likewise.
54784         * lib/dup-safer.c: Likewise.
54785         * lib/dup2.c: Likewise.
54786         * lib/eealloc.h: Likewise.
54787         * lib/error.c: Likewise.
54788         * lib/error.h: Likewise.
54789         * lib/euidaccess.c: Likewise.
54790         * lib/exclude.c: Likewise.
54791         * lib/exclude.h: Likewise.
54792         * lib/execute.c: Likewise.
54793         * lib/execute.h: Likewise.
54794         * lib/exitfail.c: Likewise.
54795         * lib/exitfail.h: Likewise.
54796         * lib/expl.c: Likewise.
54797         * lib/fatal-signal.c: Likewise.
54798         * lib/fatal-signal.h: Likewise.
54799         * lib/fbufmode.c: Likewise.
54800         * lib/fbufmode.h: Likewise.
54801         * lib/fchdir.c: Likewise.
54802         * lib/fchmodat.c: Likewise.
54803         * lib/fchownat.c: Likewise.
54804         * lib/fcntl--.h: Likewise.
54805         * lib/fcntl-safer.h: Likewise.
54806         * lib/fcntl.in.h: Likewise.
54807         * lib/fd-safer.c: Likewise.
54808         * lib/fflush.c: Likewise.
54809         * lib/file-has-acl.c: Likewise.
54810         * lib/file-set.c: Likewise.
54811         * lib/file-type.c: Likewise.
54812         * lib/file-type.h: Likewise.
54813         * lib/fileblocks.c: Likewise.
54814         * lib/filemode.c: Likewise.
54815         * lib/filemode.h: Likewise.
54816         * lib/filename.h: Likewise.
54817         * lib/filenamecat.c: Likewise.
54818         * lib/filenamecat.h: Likewise.
54819         * lib/findprog.c: Likewise.
54820         * lib/findprog.h: Likewise.
54821         * lib/float.in.h: Likewise.
54822         * lib/floor.c: Likewise.
54823         * lib/floorf.c: Likewise.
54824         * lib/floorl.c: Likewise.
54825         * lib/fopen-safer.c: Likewise.
54826         * lib/fopen.c: Likewise.
54827         * lib/fpending.c: Likewise.
54828         * lib/fpending.h: Likewise.
54829         * lib/fprintf.c: Likewise.
54830         * lib/fprintftime.h: Likewise.
54831         * lib/fpucw.h: Likewise.
54832         * lib/fpurge.c: Likewise.
54833         * lib/fpurge.h: Likewise.
54834         * lib/freadable.c: Likewise.
54835         * lib/freadable.h: Likewise.
54836         * lib/freadahead.c: Likewise.
54837         * lib/freadahead.h: Likewise.
54838         * lib/freading.c: Likewise.
54839         * lib/freading.h: Likewise.
54840         * lib/free.c: Likewise.
54841         * lib/freopen.c: Likewise.
54842         * lib/frexp.c: Likewise.
54843         * lib/frexpl.c: Likewise.
54844         * lib/fseek.c: Likewise.
54845         * lib/fseterr.c: Likewise.
54846         * lib/fseterr.h: Likewise.
54847         * lib/fstatat.c: Likewise.
54848         * lib/fstrcmp.c: Likewise.
54849         * lib/fstrcmp.h: Likewise.
54850         * lib/fsusage.c: Likewise.
54851         * lib/fsusage.h: Likewise.
54852         * lib/ftell.c: Likewise.
54853         * lib/ftello.c: Likewise.
54854         * lib/fts-cycle.c: Likewise.
54855         * lib/fts.c: Likewise.
54856         * lib/fts_.h: Likewise.
54857         * lib/full-read.c: Likewise.
54858         * lib/full-read.h: Likewise.
54859         * lib/full-write.c: Likewise.
54860         * lib/full-write.h: Likewise.
54861         * lib/fwritable.c: Likewise.
54862         * lib/fwritable.h: Likewise.
54863         * lib/fwriteerror.c: Likewise.
54864         * lib/fwriteerror.h: Likewise.
54865         * lib/fwriting.c: Likewise.
54866         * lib/fwriting.h: Likewise.
54867         * lib/gcd.c: Likewise.
54868         * lib/gcd.h: Likewise.
54869         * lib/getcwd.c: Likewise.
54870         * lib/getdate.h: Likewise.
54871         * lib/getdate.y: Likewise.
54872         * lib/getdomainname.c: Likewise.
54873         * lib/getdomainname.h: Likewise.
54874         * lib/getgroups.c: Likewise.
54875         * lib/gethostname.c: Likewise.
54876         * lib/gethrxtime.c: Likewise.
54877         * lib/gethrxtime.h: Likewise.
54878         * lib/getloadavg.c: Likewise.
54879         * lib/getndelim2.c: Likewise.
54880         * lib/getndelim2.h: Likewise.
54881         * lib/getnline.c: Likewise.
54882         * lib/getnline.h: Likewise.
54883         * lib/getopt.c: Likewise.
54884         * lib/getopt.in.h: Likewise.
54885         * lib/getopt1.c: Likewise.
54886         * lib/getopt_int.h: Likewise.
54887         * lib/getpagesize.h: Likewise.
54888         * lib/getsubopt.c: Likewise.
54889         * lib/gettime.c: Likewise.
54890         * lib/getugroups.c: Likewise.
54891         * lib/getugroups.h: Likewise.
54892         * lib/getusershell.c: Likewise.
54893         * lib/gl_anyavltree_list1.h: Likewise.
54894         * lib/gl_anyavltree_list2.h: Likewise.
54895         * lib/gl_anyhash_list1.h: Likewise.
54896         * lib/gl_anyhash_list2.h: Likewise.
54897         * lib/gl_anylinked_list1.h: Likewise.
54898         * lib/gl_anylinked_list2.h: Likewise.
54899         * lib/gl_anyrbtree_list1.h: Likewise.
54900         * lib/gl_anyrbtree_list2.h: Likewise.
54901         * lib/gl_anytree_list1.h: Likewise.
54902         * lib/gl_anytree_list2.h: Likewise.
54903         * lib/gl_anytree_oset.h: Likewise.
54904         * lib/gl_anytreehash_list1.h: Likewise.
54905         * lib/gl_anytreehash_list2.h: Likewise.
54906         * lib/gl_array_list.c: Likewise.
54907         * lib/gl_array_list.h: Likewise.
54908         * lib/gl_array_oset.c: Likewise.
54909         * lib/gl_array_oset.h: Likewise.
54910         * lib/gl_avltree_list.c: Likewise.
54911         * lib/gl_avltree_list.h: Likewise.
54912         * lib/gl_avltree_oset.c: Likewise.
54913         * lib/gl_avltree_oset.h: Likewise.
54914         * lib/gl_avltreehash_list.c: Likewise.
54915         * lib/gl_avltreehash_list.h: Likewise.
54916         * lib/gl_carray_list.c: Likewise.
54917         * lib/gl_carray_list.h: Likewise.
54918         * lib/gl_linked_list.c: Likewise.
54919         * lib/gl_linked_list.h: Likewise.
54920         * lib/gl_linkedhash_list.c: Likewise.
54921         * lib/gl_linkedhash_list.h: Likewise.
54922         * lib/gl_list.c: Likewise.
54923         * lib/gl_list.h: Likewise.
54924         * lib/gl_oset.c: Likewise.
54925         * lib/gl_oset.h: Likewise.
54926         * lib/gl_rbtree_list.c: Likewise.
54927         * lib/gl_rbtree_list.h: Likewise.
54928         * lib/gl_rbtree_oset.c: Likewise.
54929         * lib/gl_rbtree_oset.h: Likewise.
54930         * lib/gl_rbtreehash_list.c: Likewise.
54931         * lib/gl_rbtreehash_list.h: Likewise.
54932         * lib/gl_sublist.c: Likewise.
54933         * lib/gl_sublist.h: Likewise.
54934         * lib/group-member.c: Likewise.
54935         * lib/group-member.h: Likewise.
54936         * lib/hard-locale.c: Likewise.
54937         * lib/hard-locale.h: Likewise.
54938         * lib/hash-pjw.c: Likewise.
54939         * lib/hash-pjw.h: Likewise.
54940         * lib/hash-triple.c: Likewise.
54941         * lib/hash.c: Likewise.
54942         * lib/hash.h: Likewise.
54943         * lib/human.c: Likewise.
54944         * lib/human.h: Likewise.
54945         * lib/i-ring.c: Likewise.
54946         * lib/i-ring.h: Likewise.
54947         * lib/idcache.c: Likewise.
54948         * lib/imaxabs.c: Likewise.
54949         * lib/imaxdiv.c: Likewise.
54950         * lib/inet_pton.c: Likewise.
54951         * lib/inet_pton.h: Likewise.
54952         * lib/intprops.h: Likewise.
54953         * lib/inttostr.c: Likewise.
54954         * lib/inttostr.h: Likewise.
54955         * lib/inttypes.in.h: Likewise.
54956         * lib/isapipe.c: Likewise.
54957         * lib/isdir.c: Likewise.
54958         * lib/isnan.c: Likewise.
54959         * lib/isnan.h: Likewise.
54960         * lib/isnanf.c: Likewise.
54961         * lib/isnanf.h: Likewise.
54962         * lib/isnanl-nolibm.h: Likewise.
54963         * lib/isnanl.c: Likewise.
54964         * lib/isnanl.h: Likewise.
54965         * lib/javacomp.c: Likewise.
54966         * lib/javacomp.h: Likewise.
54967         * lib/javaexec.c: Likewise.
54968         * lib/javaexec.h: Likewise.
54969         * lib/javaversion.c: Likewise.
54970         * lib/javaversion.h: Likewise.
54971         * lib/javaversion.java: Likewise.
54972         * lib/lbrkprop.h: Likewise.
54973         * lib/lchmod.h: Likewise.
54974         * lib/lchown.c: Likewise.
54975         * lib/ldexpl.c: Likewise.
54976         * lib/linebreak.c: Likewise.
54977         * lib/linebreak.h: Likewise.
54978         * lib/linebuffer.c: Likewise.
54979         * lib/linebuffer.h: Likewise.
54980         * lib/locale.in.h: Likewise.
54981         * lib/logl.c: Likewise.
54982         * lib/long-options.c: Likewise.
54983         * lib/long-options.h: Likewise.
54984         * lib/lstat.c: Likewise.
54985         * lib/lstat.h: Likewise.
54986         * lib/math.in.h: Likewise.
54987         * lib/mbchar.c: Likewise.
54988         * lib/mbchar.h: Likewise.
54989         * lib/mbfile.h: Likewise.
54990         * lib/mbiter.h: Likewise.
54991         * lib/mbscasecmp.c: Likewise.
54992         * lib/mbscasestr.c: Likewise.
54993         * lib/mbschr.c: Likewise.
54994         * lib/mbscspn.c: Likewise.
54995         * lib/mbslen.c: Likewise.
54996         * lib/mbsncasecmp.c: Likewise.
54997         * lib/mbsnlen.c: Likewise.
54998         * lib/mbspbrk.c: Likewise.
54999         * lib/mbspcasecmp.c: Likewise.
55000         * lib/mbsrchr.c: Likewise.
55001         * lib/mbssep.c: Likewise.
55002         * lib/mbsspn.c: Likewise.
55003         * lib/mbsstr.c: Likewise.
55004         * lib/mbstok_r.c: Likewise.
55005         * lib/mbswidth.c: Likewise.
55006         * lib/mbswidth.h: Likewise.
55007         * lib/mbuiter.h: Likewise.
55008         * lib/memcasecmp.c: Likewise.
55009         * lib/memcasecmp.h: Likewise.
55010         * lib/memchr.c: Likewise.
55011         * lib/memcmp.c: Likewise.
55012         * lib/memcoll.c: Likewise.
55013         * lib/memcoll.h: Likewise.
55014         * lib/memcpy.c: Likewise.
55015         * lib/memrchr.c: Likewise.
55016         * lib/mkancesdirs.c: Likewise.
55017         * lib/mkdir-p.c: Likewise.
55018         * lib/mkdir-p.h: Likewise.
55019         * lib/mkdir.c: Likewise.
55020         * lib/mkdirat.c: Likewise.
55021         * lib/mkdtemp.c: Likewise.
55022         * lib/mkstemp-safer.c: Likewise.
55023         * lib/mkstemp.c: Likewise.
55024         * lib/modechange.c: Likewise.
55025         * lib/modechange.h: Likewise.
55026         * lib/mountlist.c: Likewise.
55027         * lib/mountlist.h: Likewise.
55028         * lib/mpsort.c: Likewise.
55029         * lib/nanosleep.c: Likewise.
55030         * lib/obstack.c: Likewise.
55031         * lib/obstack.h: Likewise.
55032         * lib/open-safer.c: Likewise.
55033         * lib/open.c: Likewise.
55034         * lib/openat-die.c: Likewise.
55035         * lib/openat-priv.h: Likewise.
55036         * lib/openat-proc.c: Likewise.
55037         * lib/openat.c: Likewise.
55038         * lib/openat.h: Likewise.
55039         * lib/pagealign_alloc.c: Likewise.
55040         * lib/pagealign_alloc.h: Likewise.
55041         * lib/physmem.c: Likewise.
55042         * lib/physmem.h: Likewise.
55043         * lib/pipe-safer.c: Likewise.
55044         * lib/pipe.c: Likewise.
55045         * lib/pipe.h: Likewise.
55046         * lib/posixtm.c: Likewise.
55047         * lib/posixtm.h: Likewise.
55048         * lib/posixver.c: Likewise.
55049         * lib/printf-frexp.c: Likewise.
55050         * lib/printf-frexp.h: Likewise.
55051         * lib/printf-frexpl.c: Likewise.
55052         * lib/printf-frexpl.h: Likewise.
55053         * lib/printf.c: Likewise.
55054         * lib/progname.c: Likewise.
55055         * lib/progname.h: Likewise.
55056         * lib/progreloc.c: Likewise.
55057         * lib/putenv.c: Likewise.
55058         * lib/quote.c: Likewise.
55059         * lib/quote.h: Likewise.
55060         * lib/quotearg.c: Likewise.
55061         * lib/quotearg.h: Likewise.
55062         * lib/raise.c: Likewise.
55063         * lib/readline.c: Likewise.
55064         * lib/readline.h: Likewise.
55065         * lib/readlink.c: Likewise.
55066         * lib/readtokens.c: Likewise.
55067         * lib/readtokens.h: Likewise.
55068         * lib/readtokens0.c: Likewise.
55069         * lib/readtokens0.h: Likewise.
55070         * lib/readutmp.c: Likewise.
55071         * lib/readutmp.h: Likewise.
55072         * lib/realloc.c: Likewise.
55073         * lib/relocwrapper.c: Likewise.
55074         * lib/rename-dest-slash.c: Likewise.
55075         * lib/rename.c: Likewise.
55076         * lib/rmdir.c: Likewise.
55077         * lib/rpmatch.c: Likewise.
55078         * lib/safe-read.c: Likewise.
55079         * lib/safe-read.h: Likewise.
55080         * lib/safe-write.c: Likewise.
55081         * lib/safe-write.h: Likewise.
55082         * lib/same-inode.h: Likewise.
55083         * lib/same.c: Likewise.
55084         * lib/same.h: Likewise.
55085         * lib/save-cwd.c: Likewise.
55086         * lib/save-cwd.h: Likewise.
55087         * lib/savedir.c: Likewise.
55088         * lib/savedir.h: Likewise.
55089         * lib/savewd.c: Likewise.
55090         * lib/savewd.h: Likewise.
55091         * lib/search.in.h: Likewise.
55092         * lib/setenv.c: Likewise.
55093         * lib/setenv.h: Likewise.
55094         * lib/settime.c: Likewise.
55095         * lib/sh-quote.c: Likewise.
55096         * lib/sh-quote.h: Likewise.
55097         * lib/sig2str.c: Likewise.
55098         * lib/sig2str.h: Likewise.
55099         * lib/signal.in.h: Likewise.
55100         * lib/signbitd.c: Likewise.
55101         * lib/signbitf.c: Likewise.
55102         * lib/signbitl.c: Likewise.
55103         * lib/sigprocmask.c: Likewise.
55104         * lib/sincosl.c: Likewise.
55105         * lib/sleep.c: Likewise.
55106         * lib/sprintf.c: Likewise.
55107         * lib/sqrtl.c: Likewise.
55108         * lib/stat-time.h: Likewise.
55109         * lib/stdio--.h: Likewise.
55110         * lib/stdio-safer.h: Likewise.
55111         * lib/stdlib--.h: Likewise.
55112         * lib/stdlib-safer.h: Likewise.
55113         * lib/stdlib.in.h: Likewise.
55114         * lib/stpcpy.c: Likewise.
55115         * lib/stpncpy.c: Likewise.
55116         * lib/strchrnul.c: Likewise.
55117         * lib/strcspn.c: Likewise.
55118         * lib/strerror.c: Likewise.
55119         * lib/strftime.c: Likewise.
55120         * lib/strftime.h: Likewise.
55121         * lib/striconveh.c: Likewise.
55122         * lib/striconveh.h: Likewise.
55123         * lib/striconveha.c: Likewise.
55124         * lib/striconveha.h: Likewise.
55125         * lib/stripslash.c: Likewise.
55126         * lib/strnlen1.c: Likewise.
55127         * lib/strnlen1.h: Likewise.
55128         * lib/strtod.c: Likewise.
55129         * lib/strtoimax.c: Likewise.
55130         * lib/strtok_r.c: Likewise.
55131         * lib/strtol.c: Likewise.
55132         * lib/strtoll.c: Likewise.
55133         * lib/strtoul.c: Likewise.
55134         * lib/strtoull.c: Likewise.
55135         * lib/sysexits.in.h: Likewise.
55136         * lib/tempname.c: Likewise.
55137         * lib/tempname.h: Likewise.
55138         * lib/timespec.h: Likewise.
55139         * lib/tls.c: Likewise.
55140         * lib/tls.h: Likewise.
55141         * lib/tmpdir.c: Likewise.
55142         * lib/tmpdir.h: Likewise.
55143         * lib/tmpfile-safer.c: Likewise.
55144         * lib/tmpfile.c: Likewise.
55145         * lib/trigl.c: Likewise.
55146         * lib/trigl.h: Likewise.
55147         * lib/trim.c: Likewise.
55148         * lib/trim.h: Likewise.
55149         * lib/trunc.c: Likewise.
55150         * lib/truncf.c: Likewise.
55151         * lib/truncl.c: Likewise.
55152         * lib/tsearch.c: Likewise.
55153         * lib/unicodeio.c: Likewise.
55154         * lib/unicodeio.h: Likewise.
55155         * lib/unistd--.h: Likewise.
55156         * lib/unistd-safer.h: Likewise.
55157         * lib/unistdio/ulc-fprintf.c: Likewise.
55158         * lib/unistdio/ulc-vfprintf.c: Likewise.
55159         * lib/unlinkdir.c: Likewise.
55160         * lib/unlinkdir.h: Likewise.
55161         * lib/unlocked-io.h: Likewise.
55162         * lib/unsetenv.c: Likewise.
55163         * lib/userspec.c: Likewise.
55164         * lib/utime.c: Likewise.
55165         * lib/utimecmp.c: Likewise.
55166         * lib/utimecmp.h: Likewise.
55167         * lib/utimens.c: Likewise.
55168         * lib/verify.h: Likewise.
55169         * lib/verror.c: Likewise.
55170         * lib/verror.h: Likewise.
55171         * lib/version-etc-fsf.c: Likewise.
55172         * lib/version-etc.c: Likewise.
55173         * lib/version-etc.h: Likewise.
55174         * lib/vfprintf.c: Likewise.
55175         * lib/vprintf.c: Likewise.
55176         * lib/vsprintf.c: Likewise.
55177         * lib/w32spawn.h: Likewise.
55178         * lib/wait-process.c: Likewise.
55179         * lib/wait-process.h: Likewise.
55180         * lib/wcwidth.c: Likewise.
55181         * lib/write-any-file.c: Likewise.
55182         * lib/xalloc-die.c: Likewise.
55183         * lib/xalloc.h: Likewise.
55184         * lib/xasprintf.c: Likewise.
55185         * lib/xgetcwd.c: Likewise.
55186         * lib/xgetcwd.h: Likewise.
55187         * lib/xgetdomainname.c: Likewise.
55188         * lib/xgetdomainname.h: Likewise.
55189         * lib/xgethostname.c: Likewise.
55190         * lib/xmalloc.c: Likewise.
55191         * lib/xmalloca.c: Likewise.
55192         * lib/xmalloca.h: Likewise.
55193         * lib/xmemcoll.c: Likewise.
55194         * lib/xnanosleep.c: Likewise.
55195         * lib/xreadlink.c: Likewise.
55196         * lib/xreadlink.h: Likewise.
55197         * lib/xsetenv.c: Likewise.
55198         * lib/xsetenv.h: Likewise.
55199         * lib/xstriconv.c: Likewise.
55200         * lib/xstriconv.h: Likewise.
55201         * lib/xstrndup.c: Likewise.
55202         * lib/xstrndup.h: Likewise.
55203         * lib/xstrtod.c: Likewise.
55204         * lib/xstrtod.h: Likewise.
55205         * lib/xstrtol-error.c: Likewise.
55206         * lib/xstrtol.c: Likewise.
55207         * lib/xstrtol.h: Likewise.
55208         * lib/xtime.h: Likewise.
55209         * lib/xvasprintf.c: Likewise.
55210         * lib/xvasprintf.h: Likewise.
55211         * lib/yesno.c: Likewise.
55212         * lib/yesno.h: Likewise.
55213         * posix-modules: Likewise.
55214         * tests/test-alloca-opt.c: Likewise.
55215         * tests/test-arcfour.c: Likewise.
55216         * tests/test-arctwo.c: Likewise.
55217         * tests/test-argmatch.c: Likewise.
55218         * tests/test-argp-2.sh: Likewise.
55219         * tests/test-argp.c: Likewise.
55220         * tests/test-arpa_inet.c: Likewise.
55221         * tests/test-array_list.c: Likewise.
55222         * tests/test-array_oset.c: Likewise.
55223         * tests/test-atexit.c: Likewise.
55224         * tests/test-avltree_list.c: Likewise.
55225         * tests/test-avltree_oset.c: Likewise.
55226         * tests/test-avltreehash_list.c: Likewise.
55227         * tests/test-base64.c: Likewise.
55228         * tests/test-binary-io.c: Likewise.
55229         * tests/test-byteswap.c: Likewise.
55230         * tests/test-c-ctype.c: Likewise.
55231         * tests/test-c-strcasecmp.c: Likewise.
55232         * tests/test-c-strcasestr.c: Likewise.
55233         * tests/test-c-strncasecmp.c: Likewise.
55234         * tests/test-c-strstr.c: Likewise.
55235         * tests/test-canonicalize-lgpl.c: Likewise.
55236         * tests/test-canonicalize.c: Likewise.
55237         * tests/test-carray_list.c: Likewise.
55238         * tests/test-ceilf.c: Likewise.
55239         * tests/test-ceill.c: Likewise.
55240         * tests/test-count-one-bits.c: Likewise.
55241         * tests/test-crc.c: Likewise.
55242         * tests/test-dirname.c: Likewise.
55243         * tests/test-fbufmode.c: Likewise.
55244         * tests/test-fcntl.c: Likewise.
55245         * tests/test-fflush.c: Likewise.
55246         * tests/test-floorf.c: Likewise.
55247         * tests/test-floorl.c: Likewise.
55248         * tests/test-fopen.c: Likewise.
55249         * tests/test-fprintf-posix.c: Likewise.
55250         * tests/test-fprintf-posix.h: Likewise.
55251         * tests/test-fpurge.c: Likewise.
55252         * tests/test-freadable.c: Likewise.
55253         * tests/test-freadahead.c: Likewise.
55254         * tests/test-freading.c: Likewise.
55255         * tests/test-freopen.c: Likewise.
55256         * tests/test-frexp.c: Likewise.
55257         * tests/test-frexpl.c: Likewise.
55258         * tests/test-fseek.c: Likewise.
55259         * tests/test-fseeko.c: Likewise.
55260         * tests/test-fseterr.c: Likewise.
55261         * tests/test-fstrcmp.c: Likewise.
55262         * tests/test-ftell.c: Likewise.
55263         * tests/test-ftello.c: Likewise.
55264         * tests/test-fwritable.c: Likewise.
55265         * tests/test-fwriting.c: Likewise.
55266         * tests/test-getaddrinfo.c: Likewise.
55267         * tests/test-getpass.c: Likewise.
55268         * tests/test-gettimeofday.c: Likewise.
55269         * tests/test-hmac-md5.c: Likewise.
55270         * tests/test-hmac-sha1.c: Likewise.
55271         * tests/test-iconv.c: Likewise.
55272         * tests/test-iconvme.c: Likewise.
55273         * tests/test-inttypes.c: Likewise.
55274         * tests/test-isnan.c: Likewise.
55275         * tests/test-isnanf.c: Likewise.
55276         * tests/test-isnanl-nolibm.c: Likewise.
55277         * tests/test-isnanl.c: Likewise.
55278         * tests/test-isnanl.h: Likewise.
55279         * tests/test-ldexpl.c: Likewise.
55280         * tests/test-linked_list.c: Likewise.
55281         * tests/test-linkedhash_list.c: Likewise.
55282         * tests/test-locale.c: Likewise.
55283         * tests/test-localename.c: Likewise.
55284         * tests/test-lock.c: Likewise.
55285         * tests/test-lseek.c: Likewise.
55286         * tests/test-malloca.c: Likewise.
55287         * tests/test-math.c: Likewise.
55288         * tests/test-mbscasecmp.c: Likewise.
55289         * tests/test-mbscasestr1.c: Likewise.
55290         * tests/test-mbscasestr2.c: Likewise.
55291         * tests/test-mbscasestr3.c: Likewise.
55292         * tests/test-mbscasestr4.c: Likewise.
55293         * tests/test-mbschr.c: Likewise.
55294         * tests/test-mbscspn.c: Likewise.
55295         * tests/test-mbsncasecmp.c: Likewise.
55296         * tests/test-mbspbrk.c: Likewise.
55297         * tests/test-mbspcasecmp.c: Likewise.
55298         * tests/test-mbsrchr.c: Likewise.
55299         * tests/test-mbsspn.c: Likewise.
55300         * tests/test-mbsstr1.c: Likewise.
55301         * tests/test-mbsstr2.c: Likewise.
55302         * tests/test-mbsstr3.c: Likewise.
55303         * tests/test-md5.c: Likewise.
55304         * tests/test-memmem.c: Likewise.
55305         * tests/test-netinet_in.c: Likewise.
55306         * tests/test-open.c: Likewise.
55307         * tests/test-printf-frexp.c: Likewise.
55308         * tests/test-printf-frexpl.c: Likewise.
55309         * tests/test-printf-posix.c: Likewise.
55310         * tests/test-printf-posix.h: Likewise.
55311         * tests/test-rbtree_list.c: Likewise.
55312         * tests/test-rbtree_oset.c: Likewise.
55313         * tests/test-rbtreehash_list.c: Likewise.
55314         * tests/test-read-file.c: Likewise.
55315         * tests/test-rijndael.c: Likewise.
55316         * tests/test-search.c: Likewise.
55317         * tests/test-signbit.c: Likewise.
55318         * tests/test-sleep.c: Likewise.
55319         * tests/test-snprintf-posix.c: Likewise.
55320         * tests/test-snprintf-posix.h: Likewise.
55321         * tests/test-snprintf.c: Likewise.
55322         * tests/test-sprintf-posix.c: Likewise.
55323         * tests/test-sprintf-posix.h: Likewise.
55324         * tests/test-stat-time.c: Likewise.
55325         * tests/test-stdbool.c: Likewise.
55326         * tests/test-stdint.c: Likewise.
55327         * tests/test-stdio.c: Likewise.
55328         * tests/test-stdlib.c: Likewise.
55329         * tests/test-stpncpy.c: Likewise.
55330         * tests/test-strcasestr.c: Likewise.
55331         * tests/test-striconv.c: Likewise.
55332         * tests/test-striconveh.c: Likewise.
55333         * tests/test-striconveha.c: Likewise.
55334         * tests/test-string.c: Likewise.
55335         * tests/test-sys_select.c: Likewise.
55336         * tests/test-sys_socket.c: Likewise.
55337         * tests/test-sys_stat.c: Likewise.
55338         * tests/test-sys_time.c: Likewise.
55339         * tests/test-sysexits.c: Likewise.
55340         * tests/test-time.c: Likewise.
55341         * tests/test-tls.c: Likewise.
55342         * tests/test-trunc.c: Likewise.
55343         * tests/test-truncf.c: Likewise.
55344         * tests/test-truncl.c: Likewise.
55345         * tests/test-unistd.c: Likewise.
55346         * tests/test-vasnprintf-posix.c: Likewise.
55347         * tests/test-vasnprintf-posix2.c: Likewise.
55348         * tests/test-vasnprintf.c: Likewise.
55349         * tests/test-vasprintf-posix.c: Likewise.
55350         * tests/test-vasprintf.c: Likewise.
55351         * tests/test-verify.c: Likewise.
55352         * tests/test-vfprintf-posix.c: Likewise.
55353         * tests/test-vprintf-posix.c: Likewise.
55354         * tests/test-vsnprintf-posix.c: Likewise.
55355         * tests/test-vsnprintf.c: Likewise.
55356         * tests/test-vsprintf-posix.c: Likewise.
55357         * tests/test-wchar.c: Likewise.
55358         * tests/test-wctype.c: Likewise.
55359         * tests/test-wcwidth.c: Likewise.
55360         * tests/test-xstrtol.c: Likewise.
55361         * tests/test-xvasprintf.c: Likewise.
55362         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55363         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55364         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55365         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55366         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55367         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55368         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55369         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55370         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55371         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55372         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55373         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55374         * tests/uniname/test-uninames.c: Likewise.
55375         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55376         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
55377         * tests/unistdio/test-u16-printf1.h: Likewise.
55378         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55379         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55380         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55381         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55382         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55383         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55384         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55385         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
55386         * tests/unistdio/test-u32-printf1.h: Likewise.
55387         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55388         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55389         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55390         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55391         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55392         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55393         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55394         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
55395         * tests/unistdio/test-u8-printf1.h: Likewise.
55396         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55397         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55398         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55399         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55400         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55401         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55402         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55403         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
55404         * tests/unistdio/test-ulc-printf1.h: Likewise.
55405         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55406         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55407         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55408         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55409         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55410         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55411         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55412         * tests/uniwidth/test-u16-width.c: Likewise.
55413         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55414         * tests/uniwidth/test-u32-width.c: Likewise.
55415         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55416         * tests/uniwidth/test-u8-width.c: Likewise.
55417         * tests/uniwidth/test-uc_width.c: Likewise.
55418         * config/srclist-update: Likewise.
55419         (fixlicense): Update to GPLv3+.
55420
55421         Change copyright notice from LGPLv2.1+ to LGPLv3+.
55422         * tests/test-tsearch.c: Change copyright notice.
55423
55424         Change copyright notice from LGPLv2.0+ to LGPLv3+.
55425         * lib/c-strcaseeq.h: Change copyright notice.
55426         * lib/streq.h: Likewise.
55427         * lib/uniconv.h: Likewise.
55428         * lib/uniconv/u-conv-from-enc.h: Likewise.
55429         * lib/uniconv/u-conv-to-enc.h: Likewise.
55430         * lib/uniconv/u-strconv-from-enc.h: Likewise.
55431         * lib/uniconv/u-strconv-to-enc.h: Likewise.
55432         * lib/uniconv/u16-conv-from-enc.c: Likewise.
55433         * lib/uniconv/u16-conv-to-enc.c: Likewise.
55434         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
55435         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
55436         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
55437         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
55438         * lib/uniconv/u32-conv-from-enc.c: Likewise.
55439         * lib/uniconv/u32-conv-to-enc.c: Likewise.
55440         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
55441         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
55442         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
55443         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
55444         * lib/uniconv/u8-conv-from-enc.c: Likewise.
55445         * lib/uniconv/u8-conv-to-enc.c: Likewise.
55446         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
55447         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
55448         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
55449         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
55450         * lib/uniname.h: Likewise.
55451         * lib/uniname/uniname.c: Likewise.
55452         * lib/unistdio.h: Likewise.
55453         * lib/unistdio/u-asnprintf.h: Likewise.
55454         * lib/unistdio/u-asprintf.h: Likewise.
55455         * lib/unistdio/u-printf-args.c: Likewise.
55456         * lib/unistdio/u-printf-args.h: Likewise.
55457         * lib/unistdio/u-printf-parse.h: Likewise.
55458         * lib/unistdio/u-snprintf.h: Likewise.
55459         * lib/unistdio/u-sprintf.h: Likewise.
55460         * lib/unistdio/u-vasprintf.h: Likewise.
55461         * lib/unistdio/u-vsnprintf.h: Likewise.
55462         * lib/unistdio/u-vsprintf.h: Likewise.
55463         * lib/unistdio/u16-asnprintf.c: Likewise.
55464         * lib/unistdio/u16-asprintf.c: Likewise.
55465         * lib/unistdio/u16-printf-parse.c: Likewise.
55466         * lib/unistdio/u16-snprintf.c: Likewise.
55467         * lib/unistdio/u16-sprintf.c: Likewise.
55468         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
55469         * lib/unistdio/u16-u16-asprintf.c: Likewise.
55470         * lib/unistdio/u16-u16-snprintf.c: Likewise.
55471         * lib/unistdio/u16-u16-sprintf.c: Likewise.
55472         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
55473         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
55474         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
55475         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
55476         * lib/unistdio/u16-vasnprintf.c: Likewise.
55477         * lib/unistdio/u16-vasprintf.c: Likewise.
55478         * lib/unistdio/u16-vsnprintf.c: Likewise.
55479         * lib/unistdio/u16-vsprintf.c: Likewise.
55480         * lib/unistdio/u32-asnprintf.c: Likewise.
55481         * lib/unistdio/u32-asprintf.c: Likewise.
55482         * lib/unistdio/u32-printf-parse.c: Likewise.
55483         * lib/unistdio/u32-snprintf.c: Likewise.
55484         * lib/unistdio/u32-sprintf.c: Likewise.
55485         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
55486         * lib/unistdio/u32-u32-asprintf.c: Likewise.
55487         * lib/unistdio/u32-u32-snprintf.c: Likewise.
55488         * lib/unistdio/u32-u32-sprintf.c: Likewise.
55489         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
55490         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
55491         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
55492         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
55493         * lib/unistdio/u32-vasnprintf.c: Likewise.
55494         * lib/unistdio/u32-vasprintf.c: Likewise.
55495         * lib/unistdio/u32-vsnprintf.c: Likewise.
55496         * lib/unistdio/u32-vsprintf.c: Likewise.
55497         * lib/unistdio/u8-asnprintf.c: Likewise.
55498         * lib/unistdio/u8-asprintf.c: Likewise.
55499         * lib/unistdio/u8-printf-parse.c: Likewise.
55500         * lib/unistdio/u8-snprintf.c: Likewise.
55501         * lib/unistdio/u8-sprintf.c: Likewise.
55502         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
55503         * lib/unistdio/u8-u8-asprintf.c: Likewise.
55504         * lib/unistdio/u8-u8-snprintf.c: Likewise.
55505         * lib/unistdio/u8-u8-sprintf.c: Likewise.
55506         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
55507         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
55508         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
55509         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
55510         * lib/unistdio/u8-vasnprintf.c: Likewise.
55511         * lib/unistdio/u8-vasprintf.c: Likewise.
55512         * lib/unistdio/u8-vsnprintf.c: Likewise.
55513         * lib/unistdio/u8-vsprintf.c: Likewise.
55514         * lib/unistdio/ulc-asnprintf.c: Likewise.
55515         * lib/unistdio/ulc-asprintf.c: Likewise.
55516         * lib/unistdio/ulc-printf-parse.c: Likewise.
55517         * lib/unistdio/ulc-snprintf.c: Likewise.
55518         * lib/unistdio/ulc-sprintf.c: Likewise.
55519         * lib/unistdio/ulc-vasnprintf.c: Likewise.
55520         * lib/unistdio/ulc-vasprintf.c: Likewise.
55521         * lib/unistdio/ulc-vsnprintf.c: Likewise.
55522         * lib/unistdio/ulc-vsprintf.c: Likewise.
55523         * lib/unistr.h: Likewise.
55524         * lib/unistr/u-cpy-alloc.h: Likewise.
55525         * lib/unistr/u-cpy.h: Likewise.
55526         * lib/unistr/u-endswith.h: Likewise.
55527         * lib/unistr/u-move.h: Likewise.
55528         * lib/unistr/u-set.h: Likewise.
55529         * lib/unistr/u-startswith.h: Likewise.
55530         * lib/unistr/u-stpcpy.h: Likewise.
55531         * lib/unistr/u-stpncpy.h: Likewise.
55532         * lib/unistr/u-strcat.h: Likewise.
55533         * lib/unistr/u-strcpy.h: Likewise.
55534         * lib/unistr/u-strcspn.h: Likewise.
55535         * lib/unistr/u-strdup.h: Likewise.
55536         * lib/unistr/u-strlen.h: Likewise.
55537         * lib/unistr/u-strncat.h: Likewise.
55538         * lib/unistr/u-strncpy.h: Likewise.
55539         * lib/unistr/u-strnlen.h: Likewise.
55540         * lib/unistr/u-strpbrk.h: Likewise.
55541         * lib/unistr/u-strspn.h: Likewise.
55542         * lib/unistr/u-strstr.h: Likewise.
55543         * lib/unistr/u-strtok.h: Likewise.
55544         * lib/unistr/u16-check.c: Likewise.
55545         * lib/unistr/u16-chr.c: Likewise.
55546         * lib/unistr/u16-cmp.c: Likewise.
55547         * lib/unistr/u16-cpy-alloc.c: Likewise.
55548         * lib/unistr/u16-cpy.c: Likewise.
55549         * lib/unistr/u16-endswith.c: Likewise.
55550         * lib/unistr/u16-mblen.c: Likewise.
55551         * lib/unistr/u16-mbsnlen.c: Likewise.
55552         * lib/unistr/u16-mbtouc-aux.c: Likewise.
55553         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
55554         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
55555         * lib/unistr/u16-mbtouc.c: Likewise.
55556         * lib/unistr/u16-mbtoucr.c: Likewise.
55557         * lib/unistr/u16-move.c: Likewise.
55558         * lib/unistr/u16-next.c: Likewise.
55559         * lib/unistr/u16-prev.c: Likewise.
55560         * lib/unistr/u16-set.c: Likewise.
55561         * lib/unistr/u16-startswith.c: Likewise.
55562         * lib/unistr/u16-stpcpy.c: Likewise.
55563         * lib/unistr/u16-stpncpy.c: Likewise.
55564         * lib/unistr/u16-strcat.c: Likewise.
55565         * lib/unistr/u16-strchr.c: Likewise.
55566         * lib/unistr/u16-strcmp.c: Likewise.
55567         * lib/unistr/u16-strcpy.c: Likewise.
55568         * lib/unistr/u16-strcspn.c: Likewise.
55569         * lib/unistr/u16-strdup.c: Likewise.
55570         * lib/unistr/u16-strlen.c: Likewise.
55571         * lib/unistr/u16-strmblen.c: Likewise.
55572         * lib/unistr/u16-strmbtouc.c: Likewise.
55573         * lib/unistr/u16-strncat.c: Likewise.
55574         * lib/unistr/u16-strncmp.c: Likewise.
55575         * lib/unistr/u16-strncpy.c: Likewise.
55576         * lib/unistr/u16-strnlen.c: Likewise.
55577         * lib/unistr/u16-strpbrk.c: Likewise.
55578         * lib/unistr/u16-strrchr.c: Likewise.
55579         * lib/unistr/u16-strspn.c: Likewise.
55580         * lib/unistr/u16-strstr.c: Likewise.
55581         * lib/unistr/u16-strtok.c: Likewise.
55582         * lib/unistr/u16-to-u32.c: Likewise.
55583         * lib/unistr/u16-to-u8.c: Likewise.
55584         * lib/unistr/u16-uctomb-aux.c: Likewise.
55585         * lib/unistr/u16-uctomb.c: Likewise.
55586         * lib/unistr/u32-check.c: Likewise.
55587         * lib/unistr/u32-chr.c: Likewise.
55588         * lib/unistr/u32-cmp.c: Likewise.
55589         * lib/unistr/u32-cpy-alloc.c: Likewise.
55590         * lib/unistr/u32-cpy.c: Likewise.
55591         * lib/unistr/u32-endswith.c: Likewise.
55592         * lib/unistr/u32-mblen.c: Likewise.
55593         * lib/unistr/u32-mbsnlen.c: Likewise.
55594         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
55595         * lib/unistr/u32-mbtouc.c: Likewise.
55596         * lib/unistr/u32-mbtoucr.c: Likewise.
55597         * lib/unistr/u32-move.c: Likewise.
55598         * lib/unistr/u32-next.c: Likewise.
55599         * lib/unistr/u32-prev.c: Likewise.
55600         * lib/unistr/u32-set.c: Likewise.
55601         * lib/unistr/u32-startswith.c: Likewise.
55602         * lib/unistr/u32-stpcpy.c: Likewise.
55603         * lib/unistr/u32-stpncpy.c: Likewise.
55604         * lib/unistr/u32-strcat.c: Likewise.
55605         * lib/unistr/u32-strchr.c: Likewise.
55606         * lib/unistr/u32-strcmp.c: Likewise.
55607         * lib/unistr/u32-strcpy.c: Likewise.
55608         * lib/unistr/u32-strcspn.c: Likewise.
55609         * lib/unistr/u32-strdup.c: Likewise.
55610         * lib/unistr/u32-strlen.c: Likewise.
55611         * lib/unistr/u32-strmblen.c: Likewise.
55612         * lib/unistr/u32-strmbtouc.c: Likewise.
55613         * lib/unistr/u32-strncat.c: Likewise.
55614         * lib/unistr/u32-strncmp.c: Likewise.
55615         * lib/unistr/u32-strncpy.c: Likewise.
55616         * lib/unistr/u32-strnlen.c: Likewise.
55617         * lib/unistr/u32-strpbrk.c: Likewise.
55618         * lib/unistr/u32-strrchr.c: Likewise.
55619         * lib/unistr/u32-strspn.c: Likewise.
55620         * lib/unistr/u32-strstr.c: Likewise.
55621         * lib/unistr/u32-strtok.c: Likewise.
55622         * lib/unistr/u32-to-u16.c: Likewise.
55623         * lib/unistr/u32-to-u8.c: Likewise.
55624         * lib/unistr/u32-uctomb.c: Likewise.
55625         * lib/unistr/u8-check.c: Likewise.
55626         * lib/unistr/u8-chr.c: Likewise.
55627         * lib/unistr/u8-cmp.c: Likewise.
55628         * lib/unistr/u8-cpy-alloc.c: Likewise.
55629         * lib/unistr/u8-cpy.c: Likewise.
55630         * lib/unistr/u8-endswith.c: Likewise.
55631         * lib/unistr/u8-mblen.c: Likewise.
55632         * lib/unistr/u8-mbsnlen.c: Likewise.
55633         * lib/unistr/u8-mbtouc-aux.c: Likewise.
55634         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
55635         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
55636         * lib/unistr/u8-mbtouc.c: Likewise.
55637         * lib/unistr/u8-mbtoucr.c: Likewise.
55638         * lib/unistr/u8-move.c: Likewise.
55639         * lib/unistr/u8-next.c: Likewise.
55640         * lib/unistr/u8-prev.c: Likewise.
55641         * lib/unistr/u8-set.c: Likewise.
55642         * lib/unistr/u8-startswith.c: Likewise.
55643         * lib/unistr/u8-stpcpy.c: Likewise.
55644         * lib/unistr/u8-stpncpy.c: Likewise.
55645         * lib/unistr/u8-strcat.c: Likewise.
55646         * lib/unistr/u8-strchr.c: Likewise.
55647         * lib/unistr/u8-strcmp.c: Likewise.
55648         * lib/unistr/u8-strcpy.c: Likewise.
55649         * lib/unistr/u8-strcspn.c: Likewise.
55650         * lib/unistr/u8-strdup.c: Likewise.
55651         * lib/unistr/u8-strlen.c: Likewise.
55652         * lib/unistr/u8-strmblen.c: Likewise.
55653         * lib/unistr/u8-strmbtouc.c: Likewise.
55654         * lib/unistr/u8-strncat.c: Likewise.
55655         * lib/unistr/u8-strncmp.c: Likewise.
55656         * lib/unistr/u8-strncpy.c: Likewise.
55657         * lib/unistr/u8-strnlen.c: Likewise.
55658         * lib/unistr/u8-strpbrk.c: Likewise.
55659         * lib/unistr/u8-strrchr.c: Likewise.
55660         * lib/unistr/u8-strspn.c: Likewise.
55661         * lib/unistr/u8-strstr.c: Likewise.
55662         * lib/unistr/u8-strtok.c: Likewise.
55663         * lib/unistr/u8-to-u16.c: Likewise.
55664         * lib/unistr/u8-to-u32.c: Likewise.
55665         * lib/unistr/u8-uctomb-aux.c: Likewise.
55666         * lib/unistr/u8-uctomb.c: Likewise.
55667         * lib/unitypes.h: Likewise.
55668         * lib/uniwidth.h: Likewise.
55669         * lib/uniwidth/cjk.h: Likewise.
55670         * lib/uniwidth/u16-strwidth.c: Likewise.
55671         * lib/uniwidth/u16-width.c: Likewise.
55672         * lib/uniwidth/u32-strwidth.c: Likewise.
55673         * lib/uniwidth/u32-width.c: Likewise.
55674         * lib/uniwidth/u8-strwidth.c: Likewise.
55675         * lib/uniwidth/u8-width.c: Likewise.
55676         * lib/uniwidth/width.c: Likewise.
55677
55678 2007-10-07  Bruno Haible  <bruno@clisp.org>
55679
55680         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
55681         The file is still under LGPL (see modules/inttypes).
55682
55683 2007-10-06  Bruno Haible  <bruno@clisp.org>
55684
55685         * modules/trunc (Dependencies): Add 'extensions'.
55686         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
55687         Reported by Ben Pfaff <blp@gnu.org>.
55688
55689 2007-10-06  Bruno Haible  <bruno@clisp.org>
55690
55691         * modules/freopen-tests: New file.
55692         * tests/test-freopen.c: New file.
55693
55694         * modules/fopen-tests: New file.
55695         * tests/test-fopen.c: New file.
55696
55697         * modules/fopen: New file.
55698         * lib/fopen.c: New file.
55699         * m4/fopen.m4: New file.
55700         * modules/freopen: New file.
55701         * lib/freopen.c: New file.
55702         * m4/freopen.m4: New file.
55703         * lib/stdio.in.h (fopen, freopen): New declarations.
55704         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
55705         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55706         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
55707         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55708         * doc/functions/fopen.texi: Mention the 'fopen' module.
55709         * doc/functions/freopen.texi: Mention the 'freopen' module.
55710
55711 2007-10-06  Bruno Haible  <bruno@clisp.org>
55712
55713         * modules/open-tests: New file.
55714         * tests/test-open.c: New file.
55715
55716         * modules/open: New file.
55717         * lib/open.c: New file.
55718         * m4/open.m4: New file.
55719         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
55720         lib/open.c does.
55721         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
55722         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
55723         macros.
55724         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
55725         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
55726         REPLACE_OPEN.
55727         * doc/functions/open.texi: Mention the 'open' module.
55728
55729 2007-10-04  Bruno Haible  <bruno@clisp.org>
55730
55731         * modules/ceill-tests: New file.
55732         * tests/test-ceill.c: New file.
55733
55734         * modules/ceill: New file.
55735         * lib/ceill.c: Replace entire file.
55736         * m4/ceill.m4: New file.
55737         * lib/math.in.h (ceill): Replace declaration.
55738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
55739         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
55740         * doc/functions/ceill.texi: Mention the 'ceill' module.
55741         * modules/mathl (Files): Remove lib/ceill.c.
55742         (Depends-on): Add ceill.
55743
55744 2007-10-04  Bruno Haible  <bruno@clisp.org>
55745
55746         * modules/ceilf-tests: New file.
55747         * tests/test-ceilf.c: New file.
55748
55749         * modules/ceilf: New file.
55750         * lib/ceil.c: New file.
55751         * lib/ceilf.c: New file.
55752         * m4/ceilf.m4: New file.
55753         * lib/math.in.h (ceilf): New declaration.
55754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
55755         HAVE_DECL_CEILF.
55756         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
55757         HAVE_DECL_CEILF.
55758         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
55759
55760 2007-10-04  Bruno Haible  <bruno@clisp.org>
55761
55762         * modules/floorl-tests: New file.
55763         * tests/test-floorl.c: New file.
55764
55765         * modules/floorl: New file.
55766         * lib/floorl.c: Replace entire file.
55767         * m4/floorl.m4: New file.
55768         * lib/math.in.h (floorl): Replace declaration.
55769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
55770         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
55771         * doc/functions/floorl.texi: Mention the 'floorl' module.
55772         * modules/mathl (Files): Remove lib/floorl.c.
55773         (Depends-on): Add floorl.
55774
55775 2007-10-04  Bruno Haible  <bruno@clisp.org>
55776
55777         * modules/floorf-tests: New file.
55778         * tests/test-floorf.c: New file.
55779
55780         * modules/floorf: New file.
55781         * lib/floor.c: New file.
55782         * lib/floorf.c: New file.
55783         * m4/floorf.m4: New file.
55784         * lib/math.in.h (floorf): New declaration.
55785         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
55786         HAVE_DECL_FLOORF.
55787         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
55788         HAVE_DECL_FLOORF.
55789         * doc/functions/floorf.texi: Mention the 'floorf' module.
55790
55791 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
55792             Bruno Haible  <bruno@clisp.org>
55793
55794         Advertise for the Git server instead of the CVS server.
55795         * doc/gnulib-intro.texi (Steady Development): Mention the Git
55796         repository instead of the CVS one.
55797         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
55798         about all VCS systems generically.
55799         * doc/gnulib.texi (Introduction): Capitalize `Git'.
55800
55801 2007-10-04  Bruno Haible  <bruno@clisp.org>
55802
55803         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
55804         means.
55805         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
55806
55807 2007-10-04  Bruno Haible  <bruno@clisp.org>
55808
55809         * modules/truncl-tests: New file.
55810         * tests/test-truncl.c: New file.
55811
55812         * modules/truncl: New file.
55813         * lib/truncl.c: New file.
55814         * m4/truncl.m4: New file.
55815         * lib/math.in.h (truncl): New declaration.
55816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
55817         HAVE_DECL_TRUNCL.
55818         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
55819         HAVE_DECL_TRUNCL.
55820         * doc/functions/truncl.texi: Mention the 'truncl' module.
55821
55822 2007-10-04  Bruno Haible  <bruno@clisp.org>
55823
55824         * modules/truncf-tests: New file.
55825         * tests/test-truncf.c: New file.
55826
55827         * modules/truncf: New file.
55828         * lib/trunc.c: Make paramerizable through USE_* macros.
55829         * lib/truncf.c: New file.
55830         * m4/truncf.m4: New file.
55831         * lib/math.in.h (truncf): New declaration.
55832         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
55833         HAVE_DECL_TRUNCF.
55834         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
55835         HAVE_DECL_TRUNCF.
55836         * doc/functions/truncf.texi: Mention the 'truncf' module.
55837
55838 2007-10-03  Bruno Haible  <bruno@clisp.org>
55839
55840         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55841         augmentation also for tests modules.
55842         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
55843         * modules/atexit-tests (Makefile.am): Likewise.
55844         * modules/binary-io-tests (Makefile.am): Likewise.
55845         * modules/c-strcase-tests (Makefile.am): Likewise.
55846         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
55847         * modules/canonicalize-tests (Makefile.am): Likewise.
55848         * modules/closein-tests (Makefile.am): Likewise.
55849         * modules/fprintf-posix-tests (Makefile.am): Likewise.
55850         * modules/freadahead-tests (Makefile.am): Likewise.
55851         * modules/fseek-tests (Makefile.am): Likewise.
55852         * modules/fseeko-tests (Makefile.am): Likewise.
55853         * modules/ftell-tests (Makefile.am): Likewise.
55854         * modules/ftello-tests (Makefile.am): Likewise.
55855         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
55856         * modules/isnanl-tests (Makefile.am): Likewise.
55857         * modules/lseek-tests (Makefile.am): Likewise.
55858         * modules/mbscasecmp-tests (Makefile.am): Likewise.
55859         * modules/mbscasestr-tests (Makefile.am): Likewise.
55860         * modules/mbschr-tests (Makefile.am): Likewise.
55861         * modules/mbscspn-tests (Makefile.am): Likewise.
55862         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
55863         * modules/mbspbrk-tests (Makefile.am): Likewise.
55864         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
55865         * modules/mbsrchr-tests (Makefile.am): Likewise.
55866         * modules/mbsspn-tests (Makefile.am): Likewise.
55867         * modules/mbsstr-tests (Makefile.am): Likewise.
55868         * modules/printf-posix-tests (Makefile.am): Likewise.
55869         * modules/snprintf-posix-tests (Makefile.am): Likewise.
55870         * modules/sprintf-posix-tests (Makefile.am): Likewise.
55871         * modules/tsearch-tests (Makefile.am): Likewise.
55872         * modules/uniname/uniname-tests (Makefile.am): Likewise.
55873         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
55874         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
55875         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
55876         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
55877         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
55878         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
55879         * modules/vprintf-posix-tests (Makefile.am): Likewise.
55880         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
55881         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
55882         * modules/xstrtoimax-tests (Makefile.am): Likewise.
55883         * modules/xstrtol-tests (Makefile.am): Likewise.
55884         * modules/xstrtoumax-tests (Makefile.am): Likewise.
55885         * modules/yesno-tests (Makefile.am): Likewise.
55886
55887 2007-10-03  Bruno Haible  <bruno@clisp.org>
55888
55889         * modules/trunc-tests: New file.
55890         * tests/test-trunc.c: New file.
55891
55892         * modules/trunc: New file.
55893         * lib/trunc.c: New file.
55894         * m4/trunc.m4: New file.
55895         * lib/math.in.h (trunc): New declaration.
55896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
55897         HAVE_DECL_TRUNC.
55898         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
55899         HAVE_DECL_TRUNC.
55900         * doc/functions/trunc.texi: Mention the 'trunc' module.
55901
55902 2007-10-03  Bruno Haible  <bruno@clisp.org>
55903
55904         * tests/test-fpending.c: New file, mostly copied
55905         from coreutils/lib/t-fpending.c.
55906         * modules/fpending-tests: New file.
55907
55908 2007-10-03  Bruno Haible  <bruno@clisp.org>
55909
55910         Port the stdio extensions to QNX (untested).
55911         * lib/fseterr.c (fseterr): Add support for QNX.
55912         * lib/fbufmode.c (fbufmode): Likewise.
55913         * lib/freadable.c (freadable): Likewise.
55914         * lib/fwritable.c (fwritable): Likewise.
55915         * lib/freading.c (freading): Likewise.
55916         * lib/fwriting.c (fwriting): Likewise.
55917         * lib/freadahead.c (freadahed): Likewise.
55918         * lib/fpurge.c (fpurge): Likewise.
55919         * lib/fseeko.c (rpl_fseeko): Likewise.
55920
55921 2007-10-03  Bruno Haible  <bruno@clisp.org>
55922             Jim Meyering  <jim@meyering.net>
55923             Eric Blake  <ebb9@byu.net>
55924
55925         * doc/relocatable.texi: Use @command instead of @program.
55926
55927 2007-10-02  Jim Meyering  <jim@meyering.net>
55928
55929         Perform one more "_.h" -> ".in.h" substitution.
55930         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
55931         instead of unistd_.h here, too.
55932
55933 2007-10-01  Bruno Haible  <bruno@clisp.org>
55934
55935         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
55936         Needed for the alloca-opt module.
55937
55938 2007-09-30  Bruno Haible  <bruno@clisp.org>
55939
55940         * lib/alloca.in.h: Renamed from lib/alloca_.h.
55941         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
55942         alloca_.h.
55943         * lib/argz.in.h: Renamed from lib/argz_.h.
55944         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
55945         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
55946         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
55947         byteswap_.h.
55948         * lib/dirent.in.h: Renamed from lib/dirent_.h.
55949         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
55950         dirent_.h.
55951         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
55952         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
55953         fcntl_.h.
55954         * lib/float.in.h: Renamed from lib/float_.h.
55955         * modules/float (Files, Makefile.am): Use float.in.h instead of
55956         float_.h.
55957         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
55958         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
55959         fnmatch_.h.
55960         * lib/getopt.in.h: Renamed from lib/getopt_.h.
55961         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
55962         getopt_.h.
55963         * lib/glob.in.h: Renamed from lib/glob_.h.
55964         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
55965         * lib/iconv.in.h: Renamed from lib/iconv_.h.
55966         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
55967         iconv_.h.
55968         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
55969         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
55970         inttypes_.h.
55971         * lib/locale.in.h: Renamed from lib/locale_.h.
55972         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
55973         locale_.h.
55974         * lib/math.in.h: Renamed from lib/math_.h.
55975         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
55976         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
55977         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
55978         of netinet_in_.h. Add dependency.
55979         * lib/poll.in.h: Renamed from lib/poll_.h.
55980         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
55981         * lib/search.in.h: Renamed from lib/search_.h.
55982         * modules/search (Files, Makefile.am): Use search.in.h instead of
55983         search_.h.
55984         * lib/signal.in.h: Renamed from lib/signal_.h.
55985         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
55986         _signal.h.
55987         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
55988         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
55989         stdbool_.h.
55990         * lib/stdint.in.h: Renamed from lib/stdint_.h.
55991         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
55992         stdint_.h.
55993         * lib/stdio.in.h: Renamed from lib/stdio_.h.
55994         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
55995         stdio_.h.
55996         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
55997         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
55998         stdlib_.h.
55999         * lib/string.in.h: Renamed from lib/string_.h.
56000         * modules/string (Files, Makefile.am): Use string.in.h instead of
56001         string_.h.
56002         * doc/gnulib-tool.texi (Initial import): Update.
56003         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56004         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56005         of sys_select_.h. Add dependency.
56006         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56007         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56008         of sys_socket_.h.
56009         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56010         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56011         sys_stat_.h.
56012         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56013         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56014         sys_time_.h.
56015         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56016         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56017         sysexits_.h.
56018         * lib/time.in.h: Renamed from lib/time_.h.
56019         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56020         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56021         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56022         unistd_.h.
56023         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56024         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56025         wchar_.h.
56026         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56027         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56028         wctype_.h.
56029         * build-aux/bootstrap (slurp): Update.
56030         * lib/.cppi-disable: Update.
56031
56032 2007-09-30  Bruno Haible  <bruno@clisp.org>
56033
56034         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56035         Needed on BeOS.
56036
56037 2007-09-30  Bruno Haible  <bruno@clisp.org>
56038
56039         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56040
56041 2007-09-29  Bruno Haible  <bruno@clisp.org>
56042
56043         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56044
56045 2007-09-29  Bruno Haible  <bruno@clisp.org>
56046
56047         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56048         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56049         * build-aux/install-reloc: Compile also areadlink.c.
56050         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56051
56052 2007-09-29  Bruno Haible  <bruno@clisp.org>
56053
56054         * gnulib-tool (func_emit_initmacro_done): Indentation.
56055
56056 2007-09-29  Bruno Haible  <bruno@clisp.org>
56057
56058         * README: Add CVS checkout update instructions.
56059         Info from Bob Proulx <bob@proulx.com>.
56060
56061 2007-09-28  Eric Blake  <ebb9@byu.net>
56062
56063         Provide move-if-change.
56064         * build-aux/move-if-change: New file, based on best practice
56065         rather than any canonical upstream location.
56066
56067 2007-09-28  Jim Meyering  <jim@meyering.net>
56068
56069         Fix canonicalize loop-detection corner case.
56070         Do not attempt to stat the symlink values stored via seen_triple.
56071         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56072         on linux-2.6.18, (but not 2.6.22).
56073         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56074         triple_compare.  The former compares dev,ino,filename, while the latter
56075         would actually stat dirname(filename) when dev and ino were equal.
56076         * lib/hash-triple.c: Install <string.h>.
56077         (STREQ): Define.
56078         (triple_compare_ino_str): New function.
56079         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56080
56081 2007-09-28  Eric Blake  <ebb9@byu.net>
56082
56083         Enforce that AC_REPLACE_FUNCS files exist.
56084         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56085         override check for typos.
56086
56087         Fix test-closein on Solaris 10.
56088         * tests/test-closein.c (main): Don't assume stdin can be inherited
56089         closed on all systems.
56090         * tests/test-closein.sh: Likewise.
56091         Reported by Piotr Tarnowski.
56092
56093 2007-09-28  Jim Meyering  <jim@meyering.net>
56094
56095         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56096
56097 2007-09-27  Jim Meyering  <jim@meyering.net>
56098
56099         canonicalize: Avoid a false-positive cycle failure.
56100         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56101         Sort.  Remove cycle-check.
56102         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56103         not cycle-check.h.
56104         (seen_triple): New function.
56105         (canonicalize_filename_mode): Use it instead of cycle-check.
56106         * tests/test-canonicalize.c: Add a test for this bug.
56107         * tests/test-canonicalize.sh: Set up and run the test.
56108
56109         New module, file-set, from coreutils.
56110         * modules/file-set: Define it.
56111         * lib/file-set.c, lib/file-set.h: Implement.
56112
56113         New module, hash-triple, from coreutils.
56114         * modules/hash-triple: Define it.
56115         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56116
56117 2007-09-25  Eric Blake  <ebb9@byu.net>
56118
56119         Fix strerror on Interix.
56120         * lib/string_.h (strerror): Declare replacement.
56121         * doc/functions/strerror.texi (strerror): Document the Interix
56122         shortcoming.
56123         * modules/string (Makefile.am): Support new hooks.
56124         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56125         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56126         gl_FUNC_STRERROR_SEPARATE.
56127         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56128         * lib/strerror.c (rpl_strerror): Provide replacement.
56129         * modules/strerror (Depends-on): Add string.
56130         (configure.ac): Detect use of module.
56131         * tests/test-strerror.c: New file.
56132         * modules/strerror-tests: New test module.
56133         * modules/argp (Depends-on): Add strerror.
56134         * modules/error (Depends-on): Likewise.
56135         Reported by Martin Koeppe.
56136
56137 2007-09-24  Bruno Haible  <bruno@clisp.org>
56138
56139         * README: Update git instructions.
56140
56141 2007-09-24  Eric Blake  <ebb9@byu.net>
56142
56143         Revert fpending breakage from 2007-09-08.
56144         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56145         __fpending.c.
56146
56147 2007-09-24  Jim Meyering  <jim@meyering.net>
56148
56149         filenamecat.c: Add a test.
56150         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56151         showing how the function works when DIR is the empty string.
56152
56153 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56154
56155         * tests/test-canonicalize.sh: Turn on executable bit.
56156
56157 2007-09-19  Eric Blake  <ebb9@byu.net>
56158
56159         * README: Update CVS instructions.
56160
56161 2007-09-18  Bruno Haible  <bruno@clisp.org>
56162
56163         * modules/areadlink: New file.
56164         * lib/areadlink.h (areadlink): New declaration.
56165         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56166
56167 2007-09-17  Jim Meyering  <jim@meyering.net>
56168
56169         * lib/savewd.c (ESTALE) [!defined]: Define.
56170         Reported to be required on Interix by Martin Koeppe.
56171
56172 2007-09-17  Bruno Haible  <bruno@clisp.org>
56173
56174         * gnulib-tool (func_version): Use $version.
56175
56176 2007-09-16  Bruno Haible  <bruno@clisp.org>
56177
56178         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56179         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56180         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56181         Reported by Greg Schafer <gschafer@zip.com.au>.
56182
56183 2007-09-15  Bruno Haible  <bruno@clisp.org>
56184
56185         * gnulib-tool (sed): Try a little harder to make bash understand the
56186         alias.
56187         Reported by Bruce Korb <bruce.korb@gmail.com>.
56188
56189 2007-09-13  Eric Blake  <ebb9@byu.net>
56190
56191         * ChangeLog: Remove conflict markers.
56192
56193 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56194
56195         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56196         Reported by Bruno Haible <bruno@clisp.org>.
56197
56198 2007-09-12  Bruno Haible  <bruno@clisp.org>
56199
56200         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56201         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56202         is not defined.
56203
56204 2007-09-12  Eric Blake  <ebb9@byu.net>
56205
56206         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56207         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56208         Autoconf definition.
56209         * modules/euidaccess (Depends-on): Add extensions, for
56210         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56211         * modules/fnmatch (Depends-on): Likewise.
56212         * modules/getaddrinfo (Depends-on): Likewise.
56213         * modules/getdelim (Depends-on): Likewise.
56214         * modules/getline (Depends-on): Likewise.
56215         * modules/getsubopt (Depends-on): Likewise.
56216         * modules/gettext (Depends-on): Likewise.
56217         * modules/group-member (Depends-on): Likewise.
56218         * modules/mbchar (Depends-on): Likewise.
56219         * modules/memmem (Depends-on): Likewise.
56220         * modules/mempcpy (Depends-on): Likewise.
56221         * modules/memrchr (Depends-on): Likewise.
56222         * modules/pagealign_alloc (Depends-on): Likewise.
56223         * modules/readutmp (Depends-on): Likewise.
56224         * modules/stpcpy (Depends-on): Likewise.
56225         * modules/stpncpy (Depends-on): Likewise.
56226         * modules/strchrnul (Depends-on): Likewise.
56227         * modules/strndup (Depends-on): Likewise.
56228         * modules/strsep (Depends-on): Likewise.
56229         * modules/strverscmp (Depends-on): Likewise.
56230         * modules/vasprintf (Depends-on): Likewise.
56231         * modules/wcwidth (Depends-on): Likewise.
56232         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56233         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56234         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56235         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56236         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56237         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56238         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56239         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56240         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56241         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56242         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56243         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56244         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56245         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
56246         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
56247         * m4/readutmp.m4 (gl_READUTMP): Likewise.
56248         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56249         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56250         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56251         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56252         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56253         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56254         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56255         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
56256         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
56257         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56258         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
56259         so that lock.m4 can be used in gettext without extensions module.
56260
56261 2007-09-11  Bruno Haible  <bruno@clisp.org>
56262
56263         * m4/isc-posix.m4: Remove file.
56264         Suggested by Eric Blake.
56265
56266 2007-09-11  Eric Blake  <ebb9@byu.net>
56267
56268         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
56269
56270 2007-09-10  Bruno Haible  <bruno@clisp.org>
56271
56272         * posix-modules: Fix typo in error message.
56273         Reported by Matt <mkraai@beckman.com>.
56274
56275 2007-09-09  Bruno Haible  <bruno@clisp.org>
56276
56277         * doc/functions/getdelim.texi: Update list of platforms lacking the
56278         function.
56279         * doc/functions/getline.texi: Likewise.
56280
56281 2007-09-09  Jim Meyering  <jim@meyering.net>
56282
56283         * lib/hash.c (hash_initialize): Detect calloc failure.
56284         Reported by Bruno Haible.
56285
56286 2007-09-09  Bruno Haible  <bruno@clisp.org>
56287
56288         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
56289         malloc or realloc fails.
56290
56291 2007-09-09  Bruno Haible  <bruno@clisp.org>
56292
56293         * modules/getcwd (Depends-on): Add malloc-posix.
56294         * modules/glob (Depends-on): Likewise.
56295         * modules/putenv (Depends-on): Likewise.
56296         * modules/strdup (Depends-on): Likewise.
56297         * modules/getdelim (Depends-on): Add realloc-posix.
56298         * modules/read-file (Depends-on): Likewise.
56299
56300 2007-09-09  Bruno Haible  <bruno@clisp.org>
56301
56302         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
56303         (gl_FUNC_MALLOC_POSIX): Require it.
56304         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
56305         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
56306         * modules/realloc (Files): Add m4/malloc.m4.
56307         * modules/calloc (Files): Likewise.
56308
56309 2007-09-09  Bruno Haible  <bruno@clisp.org>
56310
56311         * modules/malloc-posix: New file.
56312         * modules/malloc (Depends-on): Add malloc-posix.
56313         * lib/malloc.c: Include errno.h.
56314         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
56315         and a POSIX-compatible malloc into a single function. Set ENOMEM
56316         when returning NULL.
56317         * m4/malloc.m4: New file.
56318         * doc/functions/malloc.texi: Mention the malloc-posix module.
56319         * lib/stdlib_.h (malloc): New declaration.
56320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56321         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
56322         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
56323         and HAVE_MALLOC_POSIX.
56324
56325 2007-09-09  Bruno Haible  <bruno@clisp.org>
56326
56327         * modules/realloc-posix: New file.
56328         * modules/realloc (Depends-on): Add realloc-posix.
56329         * lib/realloc.c: Include errno.h.
56330         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
56331         and a POSIX-compatible realloc into a single function. Set ENOMEM
56332         when returning NULL.
56333         * m4/realloc.m4: New file.
56334         * doc/functions/realloc.texi: Mention the realloc-posix module.
56335         * lib/stdlib_.h (realloc): New declaration.
56336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56337         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
56338         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
56339         and HAVE_REALLOC_POSIX.
56340
56341 2007-09-09  Bruno Haible  <bruno@clisp.org>
56342
56343         * modules/calloc-posix: New file.
56344         * modules/calloc (Depends-on): Add calloc-posix.
56345         * lib/calloc.c: Include errno.h.
56346         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56347         and a POSIX-compatible calloc into a single function. Set ENOMEM
56348         when returning NULL.
56349         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56350         * doc/functions/calloc.texi: Mention the calloc-posix module.
56351         * lib/stdlib_.h (calloc): New declaration.
56352         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56353         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56354         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56355         and HAVE_CALLOC_POSIX.
56356
56357 2007-09-09  Bruno Haible  <bruno@clisp.org>
56358
56359         Allow for modules to show an arbitrary notice.
56360         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56361         * gnulib-tool: New option --extract-notice.
56362         (func_usage): Document it.
56363         (sed_extract_prog): Update.
56364         (func_get_notice): New function.
56365         (func_modules_notice): New function.
56366         (func_import, func_create_testdir): Invoke it.
56367         Suggested by Jim Meyering.
56368
56369 2007-09-09  Bruno Haible  <bruno@clisp.org>
56370
56371         * gnulib-tool: New options --verbose, --quiet.
56372         (func_usage): Document them.
56373         (verbose): New variable.
56374         (func_execute_command): New function.
56375         (func_import): Don't show the module list and the file list if
56376         $verbose < 0.
56377         (func_create_testdir): Likewise. Use func_execute_command.
56378         (func_create_megatestdir): Use func_execute_command.
56379
56380 2007-09-08  Bruno Haible  <bruno@clisp.org>
56381
56382         * gnulib-tool (func_import): Prefer rsync over wget when available,
56383         for fetching the PO files.
56384
56385 2007-09-08  Bruno Haible  <bruno@clisp.org>
56386
56387         * posix-modules: New file. Portions copied from gnulib-tool.
56388         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
56389
56390 2007-09-08  Jim Meyering  <jim@meyering.net>
56391
56392         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
56393         * lib/fpending.h: Rename from __fpending.h.
56394         * lib/fpending.c: Rename from __fpending.c.
56395         Include "fpending.h", not "__fpending.h".
56396         * lib/__fpending.h, lib/__fpending.c: Remove files.
56397         * modules/fpending (Files): Reflect new file names.
56398         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
56399
56400 2007-09-08  Bruno Haible  <bruno@clisp.org>
56401
56402         * m4/inttypes-h.m4: Remove stub file.
56403
56404 2007-09-07  Simon Josefsson  <simon@josefsson.org>
56405
56406         * doc/headers/stdint.texi: Discuss #include_next issue.
56407
56408 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56409
56410         * build-aux/bootstrap: Remove obsolete comment about wget --help.
56411
56412 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56413
56414         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56415         in variable name.
56416
56417 2007-09-03  Jim Meyering  <jim@meyering.net>
56418
56419         New module: git-version-gen.
56420         * modules/git-version-gen: New file.
56421
56422         Import changes from coreutils for bootstrap script.
56423
56424         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
56425
56426         bootstrap: uses rsync to download the .po files
56427         * build-aux/bootstrap (po_download_command_format): New global.
56428         (download_po_files): Use rsync.
56429         (update_po_files): Don't remove .po files after download,
56430         so future rsync runs can take advantage of the copies.
56431
56432         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
56433
56434         Solve the unnecessary-.po-file-regeneration problem once and for all.
56435         * build-aux/bootstrap (download_po_files): New function, renamed from
56436         get_translations.  Now, downloads, but doesn't update LINGUAS.
56437         (update_po_files): New function.
56438
56439         bootstrap: Ignore more.
56440         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
56441         uniwidth to e.g., lib/.gitignore.
56442         (slurp): Handle the sys_stat_.h -> sys mapping, too.
56443
56444         * build-aux/bootstrap: New setting: vc_ignore.
56445         (insert_sorted_if_absent): Create $file if absent.
56446         Adapt to new, possibly empty, list: $vc_ignore.
56447
56448         bootstrap: generate more ignorable names
56449         * build-aux/bootstrap (slurp): When generating ignorable names,
56450         also map .sin to .sed, .gperf to .c, and .y to .c.
56451
56452 2007-09-03  Jim Meyering  <jim@meyering.net>
56453
56454         * build-aux/git-version-gen: New file, from coreutils.  For details, see
56455         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
56456
56457 2007-09-02  Bruno Haible  <bruno@clisp.org>
56458
56459         Fix mis-recognition of 'mcs' on QNX 6.
56460         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
56461         output contains the string "Mono".
56462         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
56463         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
56464
56465 2007-09-01  Bruno Haible  <bruno@clisp.org>
56466
56467         Fix collision between uniwidth/* and linebreak modules.
56468         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
56469         u32_width): Remove declarations.
56470         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
56471         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
56472         streq3, streq2, streq1, streq0): Remove functions.
56473         (STREQ): Remove macro.
56474         (is_cjk_encoding): Remove function.
56475         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
56476         (uc_width, u8_width, u16_width, u32_width): Remove functions.
56477         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
56478         * NEWS: Document the change.
56479
56480 2007-09-01  Bruno Haible  <bruno@clisp.org>
56481
56482         * lib/streq.h: Add double-inclusion guard.
56483
56484 2007-09-01  Karl Berry  <karl@gnu.org>
56485
56486         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
56487
56488 2007-08-28  Jim Meyering  <jim@meyering.net>
56489
56490         Rename mreadlink_with_size to areadlink_with_size.
56491         * NEWS: Document the change.
56492         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
56493         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
56494         * lib/mreadlink.h: Rename this to...
56495         * lib/areadlink.h: ...this.
56496         * modules/mreadlink-with-size: Rename this to...
56497         * modules/areadlink-with-size: ...this.
56498         * lib/canonicalize.c: Reflect the renaming.
56499         * modules/canonicalize: Likewise.
56500
56501 2007-08-26  Bruno Haible  <bruno@clisp.org>
56502
56503         * gnulib-tool (func_import): When deciding which files to remove,
56504         consider also dangling symbolic links.
56505         Reported by Eric Blake.
56506
56507 2007-08-26  Bruno Haible  <bruno@clisp.org>
56508
56509         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
56510
56511 2007-08-23  Simon Josefsson  <simon@josefsson.org>
56512
56513         * lib/readline.c: Don't include getline.h, the prototype is now
56514         found in stdio.h.
56515
56516 2007-08-23  Jim Meyering  <jim@meyering.net>
56517
56518         Getdelim touchup.
56519         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
56520         around the funlockfile call, since funlockfile never sets errno.
56521         Don't set errno upon failed realloc.
56522
56523 2007-08-22  Eric Blake  <ebb9@byu.net>
56524
56525         Getline touchups.
56526         * lib/getdelim.c (getdelim): Revert regression that required *n to
56527         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
56528         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
56529         getdelim, rather than whether implementation is missing.
56530         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
56531         * lib/stdio_.h (getline): Also declare if replacement is
56532         required.
56533         * doc/functions/getdelim.texi: New file.
56534         * doc/functions/getline.texi: Likewise.
56535         * doc/gnulib.texi (Function Substitutes): Add new files.
56536         Reported by Bruno Haible.
56537
56538 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
56539
56540         * users.txt: Add Guile.
56541
56542 2007-08-22  Eric Blake  <ebb9@byu.net>
56543
56544         * tests/test-getdelim.c (main): Use remove, not unlink.
56545         * tests/test-getline.c (main): Likewise.
56546
56547         Move getline and getdelim into stdio.h, per POSIX 200x.
56548         * modules/getline (Files): Remove getline.h.
56549         (Depends-on): Add stdio.
56550         (configure.ac): Add module indicator.
56551         * modules/getdelim (Files): Remove getdelim.h.
56552         (Depends-on): Add stdio.
56553         (configure.ac): Add module indicator.
56554         * modules/stdio (Makefile.am): Work with new indicators.
56555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
56556         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
56557         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56558         * lib/getdelim.h: Delete.
56559         * lib/getline.h: Delete.
56560         * lib/stdio_.h (getdelim, getline): Declare.
56561         * modules/getdelim-tests: New module.
56562         * modules/getline-tests: Likewise.
56563         * tests/test-getdelim.c: New file.
56564         * tests/test-getline.c: Likewise.
56565         * NEWS: Document the change.
56566         * lib/getline.c: Update choice of header.
56567         * lib/csharpcomp.c: Likewise.
56568         * lib/getpass.c: Likewise.
56569         * lib/javacomp.c: Likewise.
56570         * lib/javaversion.c: Likewise.
56571         * lib/yesno.c: Likewise.
56572         * lib/getdelim.c: Likewise.
56573         (getdelim): Set errno on failure, and avoid memory leak.
56574
56575 2007-08-19  Bruno Haible  <bruno@clisp.org>
56576
56577         * modules/closein (Depends-on): Add freadahead.
56578         * lib/closein.c: Include freadahead.h.
56579         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
56580         is zero.
56581
56582 2007-08-19  Bruno Haible  <bruno@clisp.org>
56583
56584         * modules/freadahead-tests: New file.
56585         * tests/test-freadahead.sh: New file.
56586         * tests/test-freadahead.c: New file.
56587
56588         * modules/freadahead: New file.
56589         * lib/freadahead.h: New file.
56590         * lib/freadahead.c: New file.
56591         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
56592         fbufmode, fpurge, freadable, fwritable.
56593
56594 2007-08-19  Eric Blake  <ebb9@byu.net>
56595
56596         Test yesno in combination with closein.
56597         * lib/yesno.c (yesno): Document use of stdin.
56598         * modules/yesno-tests (Files): New module.
56599         * tests/test-yesno.c (main): New file.
56600         * tests/test-yesno.sh: Likewise.
56601
56602 2007-08-19  Bruno Haible  <bruno@clisp.org>
56603
56604         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
56605         * lib/fseeko.c (rpl_fseeko): Likewise.
56606         * lib/fseterr.c (fseterr): Likewise.
56607
56608 2007-08-19  Bruno Haible  <bruno@clisp.org>
56609
56610         * tests/test-lseek.c (main): Disable a test for BeOS.
56611         * doc/functions/lseek.texi: Document the BeOS bug.
56612
56613 2007-08-19  Bruno Haible  <bruno@clisp.org>
56614             Eric Blake  <ebb9@byu.net>
56615
56616         * lib/lseek.c: Include <sys/stat.h>.
56617         (rpl_lseek): Add workaround code also for Unix platforms.
56618         Needed for BeOS.
56619         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
56620         * doc/functions/lseek.texi: Document BeOS definiency.
56621
56622 2007-08-18  Bruno Haible  <bruno@clisp.org>
56623
56624         * modules/fstrcmp-tests: New file.
56625         * tests/test-fstrcmp.c: New file.
56626
56627 2007-08-18  Bruno Haible  <bruno@clisp.org>
56628
56629         * modules/fstrcmp: New file, from GNU gettext with modifications.
56630         * lib/fstrcmp.h: New file, from GNU gettext.
56631         * lib/fstrcmp.c: New file, from GNU gettext.
56632         * MODULES.html.sh (String handling): Add fstrcmp.
56633
56634 2007-08-18  Bruno Haible  <bruno@clisp.org>
56635
56636         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
56637         'bool'.
56638         (diag, compareseq): Remove const from the ctxt argument.
56639         (USE_HEURISTIC): Undefine at the end.
56640
56641 2007-08-18  Jim Meyering  <jim@meyering.net>
56642
56643         New file: lib/idcache.h
56644         * NEWS: Mention the addition.
56645         * modules/idcache (Files): Add lib/idcache.h
56646         * lib/idcache.c: Include "idcache.h".
56647         Don't include <sys/types.h>.
56648         Add a FIXME comment.
56649         Move file-scoped "static" declarations to the top.
56650         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
56651
56652 2007-08-17  Bruno Haible  <bruno@clisp.org>
56653         and Paul Eggert  <eggert@cs.ucla.edu>
56654
56655         * MODULES.html.sh: Add diffseq.
56656         * modules/diffseq: New file.
56657         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
56658         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
56659
56660 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56661
56662         Import changes from coreutils for bootstrap script.
56663
56664         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
56665
56666         * build-aux/bootstrap (slurp): Work even in environments where
56667         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
56668         current code does not slurp files whose names start with ".", and
56669         this looks like it might be a troublesome area.
56670
56671         2007-07-11  Jim Meyering  <jim@meyering.net>
56672
56673         If there's a GPL vN copyright comment, require that N == 3.
56674
56675         2007-07-08  Jim Meyering  <jim@meyering.net>
56676
56677         Run the coreutils-specific code only if tests/Makefile.am.in exists.
56678         * build-aux/bootstrap (mam_template): Move definition out of loop.
56679
56680         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
56681
56682         * build-aux/bootstrap (symlink_to_dir): Rename function from
56683         symlink_to_gnulib.  Add a directory parameter.  Update all
56684         callers.
56685         (cp_mark_as_generated): Also check for -- and link to -- files in
56686         gl/.
56687
56688         2007-07-08  Jim Meyering  <jim@meyering.net>
56689
56690         Adapt to deeper hierarchy in gnulib.
56691         * build-aux/bootstrap (symlink_to_dir): If the destination
56692         directory doesn't exist, create it. This is required at least for
56693         "lib/uniwidth/cjk.h".
56694
56695         2007-05-15  Jim Meyering  <jim@meyering.net>
56696
56697         * build-aux/bootstrap: Now that generated Makefile.am files
56698         are no longer under version control, they must be created at
56699         bootstrap time.
56700
56701 2007-08-14  Ben Pfaff  <blp@gnu.org>
56702
56703         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
56704
56705 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56706
56707         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
56708         given the changes below.
56709         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
56710         even on hosts that have padding bits beyond the supported 64.
56711
56712 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56713
56714         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
56715         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
56716         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
56717         depends on it.
56718         (xstrtol_error): Remove.
56719         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
56720         but with a different signature.
56721         (ATTRIBUTE_NORETURN, __attribute__): New macros.
56722         * lib/xstrtol-error.c: Include exitfail.h.
56723         (xstrtol_fatal): New function, with a different signature from the
56724         old xstrtol_error, so that the caller need not worry about passing
56725         in an exit status, or about storage management of the option argument.
56726         (xstrtol_error): Now a static function.  Redo signature to
56727         implement xstrtol_fatal.  Output the correct number of hyphens in
56728         front of the option so that the caller need not worry about
56729         storage management.
56730         (N_): New macro.
56731         (_): Remove; not used now.
56732         * modules/xstrtol: Depend on getopt.
56733         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
56734         of old STRTOL_FATAL_ERROR macro.
56735         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
56736         of test program.
56737         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
56738         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
56739
56740 2007-08-08  Eric Blake  <ebb9@byu.net>
56741
56742         * lib/xstrtol-error.c: Add missing include.
56743
56744         Move xstrtol messages into gnulib domain, when --pobase is used.
56745         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
56746         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
56747         * modules/xstrtol (Files): Distribute new file.
56748         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
56749         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
56750         * tests/test-xstrtol.c: ...into new file.
56751         * tests/test-xstrtoul.c: Also test xstrtoul.
56752         * tests/test-xstrtoimax.c: Also test xstrtoimax.
56753         * tests/test-xstrtoumax.c: Also test xstrtoumax.
56754         * tests/test-xstrtol.sh: Drive the tests.
56755         * tests/test-xstrtoimax.sh: Likewise.
56756         * tests/test-xstrtoumax.sh: Likewise.
56757         * modules/xstrtol-tests: New module.
56758         * modules/xstrtoimax-tests: Likewise.
56759         * modules/xstrtoumax-tests: Likewise.
56760
56761 2007-08-08  Jim Meyering  <jim@meyering.net>
56762
56763         New function: mfile_name_concat.
56764         * lib/filenamecat.c (mfile_name_concat): New function, just like
56765         file_name_concat, but return NULL upon failure rather than exiting
56766         with a diagnostic.
56767         * lib/filenamecat.h: Declare it.
56768
56769 2007-08-07  Bruno Haible  <bruno@clisp.org>
56770
56771         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
56772         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
56773         warning from gcc.
56774         Reported by Eric Blake.
56775
56776 2007-08-07  Simon Josefsson  <simon@josefsson.org>
56777
56778         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
56779         * modules/crypto/arcfour (License): Likewise.
56780         * modules/crypto/des-tests (License): Likewise.
56781         * modules/crypto/gc-arctwo-tests (License): Likewise.
56782         * modules/crypto/gc-des-tests (License): Likewise.
56783         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
56784         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
56785         * modules/crypto/gc-md2-tests (License): Likewise.
56786         * modules/crypto/gc-md4-tests (License): Likewise.
56787         * modules/crypto/gc-md5-tests (License): Likewise.
56788         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
56789         * modules/crypto/gc-rijndael-tests (License): Likewise.
56790         * modules/crypto/gc-sha1-tests (License): Likewise.
56791         * modules/crypto/gc-tests (License): Likewise.
56792         * modules/crypto/hmac-md5 (License): Likewise.
56793         * modules/crypto/hmac-sha1 (License): Likewise.
56794         * modules/crypto/md2-tests (License): Likewise.
56795         * modules/crypto/md4-tests (License): Likewise.
56796         * modules/crypto/md5 (License): Likewise.
56797         * modules/crypto/rijndael (License): Likewise.
56798         * modules/crypto/sha1 (License): Likewise.
56799         * modules/memxor (License): Likewise.
56800
56801 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56802         and Bruno Haible  <bruno@clisp.org>
56803
56804         * NEWS: Describe interface changes to human, xstrtol.
56805         * lib/human.h: Include <xstrtol.h>.
56806         (human_options): Return enum strtol_error, not int.  Remove
56807         bool arg; take int * instead.
56808         * lib/human.c: Don't include "gettext.h".
56809         (_): Remove; no longer used.
56810         Don't include <xstrtol.h>, since human.h does it.
56811         (human_options): Adjust to abovementioned interface changes.
56812         Do not report error to stderr; that's now the caller's
56813         responsibility.
56814         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
56815         interface change.
56816         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
56817         Str, Argument_type_string.  All uses changed.  Put " argument"
56818         in diagnostics to make them clearer.  Change wording of suffix
56819         message for clarity.
56820         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
56821         Argument_type_string.
56822         (STRTOL_FATAL_WARN): Remove; no longer used.
56823         * modules/human (Depends-on): Remove gettext-h.
56824
56825 2007-08-06  Simon Josefsson  <simon@josefsson.org>
56826
56827         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
56828
56829 2007-07-31  Bruno Haible  <bruno@clisp.org>
56830
56831         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
56832         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
56833         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
56834
56835 2007-07-31  Bruno Haible  <bruno@clisp.org>
56836
56837         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
56838         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
56839
56840 2007-07-30  Bruno Haible  <bruno@clisp.org>
56841
56842         * modules/base64 (License): Use the synonymous term "LGPLv2+".
56843         * modules/c-ctype (License): Likewise.
56844         * modules/c-strcase (License): Likewise.
56845         * modules/check-version (License): Likewise.
56846         * modules/iconv (License): Likewise.
56847         * modules/iconv_open (License): Likewise.
56848         * modules/read-file (License): Likewise.
56849         * modules/striconv (License): Likewise.
56850         * modules/strverscmp (License): Likewise.
56851         * modules/vasprintf (License): Likewise.
56852         * modules/crypto/des (License): Likewise.
56853         * modules/crypto/gc (License): Likewise.
56854         * modules/crypto/gc-arcfour (License): Likewise.
56855         * modules/crypto/gc-arctwo (License): Likewise.
56856         * modules/crypto/gc-des (License): Likewise.
56857         * modules/crypto/gc-hmac-md5 (License): Likewise.
56858         * modules/crypto/gc-hmac-sha1 (License): Likewise.
56859         * modules/crypto/gc-md2 (License): Likewise.
56860         * modules/crypto/gc-md4 (License): Likewise.
56861         * modules/crypto/gc-md5 (License): Likewise.
56862         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
56863         * modules/crypto/gc-random (License): Likewise.
56864         * modules/crypto/gc-rijndael (License): Likewise.
56865         * modules/crypto/gc-sha1 (License): Likewise.
56866         * modules/crypto/md2 (License): Likewise.
56867         * modules/crypto/md4 (License): Likewise.
56868
56869 2007-07-30  Jim Meyering  <jim@meyering.net>
56870
56871         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
56872         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
56873         it has valid stat data.  This bug would cause du not to count the
56874         sizes of inaccessible directories.
56875         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
56876         in <http://bugzilla.redhat.com/250077>.
56877
56878 2007-07-25  Peter O'Gorman  <peter@pogma.com>
56879             Bruno Haible  <bruno@clisp.org>
56880
56881         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
56882         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
56883         #include_next, gives a diagnostic about it, but reports no error in
56884         the exit code.
56885         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
56886
56887 2007-07-24  Ben Pfaff  <blp@gnu.org>
56888
56889         Improve name: "count-one-bits" is better than "popcount".
56890         * MODULES.html.sh: Update name.
56891         * lib/popcount.h: Renamed lib/count-one-bits.h.
56892         (popcount): Renamed count_one_bits.
56893         (popcountl): Renamed count_one_bits_l.
56894         (popcountll): Renamed count_one_bits_ll.
56895         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
56896         * modules/popcount: Renamed module/count-one-bits.
56897         * modules/popcount-tests: Renamed module/count-one-bits-tests.
56898         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
56899
56900 2007-07-23  Ben Pfaff  <blp@gnu.org>
56901
56902         * lib/popcount.h (popcount32): Reduce size of constants, to allow
56903         better code generation, and add U to large constants to avoid
56904         warnings, in non-GCC case.
56905         Suggested by Bruno Haible.
56906
56907 2007-07-23  Ben Pfaff  <blp@gnu.org>
56908
56909         * lib/popcount.h: Use verify_true instead of if...abort.
56910         * modules/popcount: Depend on verify module.
56911         Suggested by Jim Meyering.
56912
56913 2007-07-23  Bruno Haible  <bruno@clisp.org>
56914
56915         * gnulib-tool (func_import): Create a .cvsignore file also when the
56916         directory is not yet in CVS but the toplevel directory is. When
56917         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
56918         Reported by Karl Berry.
56919
56920 2007-07-22  Ben Pfaff  <blp@gnu.org>
56921
56922         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
56923         case.
56924         Suggested by Eric Blake.
56925
56926 2007-07-22  Ben Pfaff  <blp@gnu.org>
56927
56928         New module: popcount.
56929         * MODULES.html.sh: Add popcount.
56930         * modules/popcount: New file.
56931         * modules/popcount-tests: New file.
56932         * tests/test-popcount.c: New file.
56933         * lib/popcount.h: New file.
56934         * m4/popcount.m4: New file.
56935
56936 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56937
56938         * build-aux/announce-gen: Update to GPLv3.
56939
56940         * build-aux/config.guess: Update from config.
56941
56942 2007-07-21  Bruno Haible  <bruno@clisp.org>
56943
56944         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
56945         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
56946
56947 2007-07-20  Jim Meyering  <jim@meyering.net>
56948
56949         * check-module: Diagnose a self-dependency.
56950
56951 2007-07-19  Bruno Haible  <bruno@clisp.org>
56952
56953         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
56954         empty.
56955         Reported by Eric Blake.
56956
56957 2007-07-18  Bruno Haible  <bruno@clisp.org>
56958
56959         * gnulib-tool: New options --po-base, --po-domain.
56960         (func_usage): Document them.
56961         (pobase, po_domain): New variables.
56962         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
56963         DEFAULT_TEXT_DOMAIN.
56964         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
56965         (func_import): Consider pobase and po_domain. Create a po/ directory.
56966         (func_create_testdir): Set pobase and po_domain to empty.
56967         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
56968         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
56969
56970 2007-07-18  Bruno Haible  <bruno@clisp.org>
56971
56972         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56973         EXTRA_DIST augmentation for files in build-aux/.
56974
56975 2007-07-16  Bruno Haible  <bruno@clisp.org>
56976
56977         * modules/lseek (License): Use the synonymous term "LGPLv2+".
56978         * modules/getdelim (License): Likewise.
56979
56980 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56981
56982         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
56983         * modules/d-type (License): Likewise.
56984         * modules/extensions (License): Likewise.
56985         * modules/fnmatch (License): Likewise.
56986         * modules/fseeko (License): Likewise.
56987         * modules/getaddrinfo (License): Likewise.
56988         * modules/getline (License): Likewise.
56989         * modules/getlogin_r (License): Likewise.
56990         * modules/getpass (License): Likewise.
56991         * modules/gettimeofday (License): Likewise.
56992         * modules/glob (License): Likewise.
56993         * modules/inet_ntop (License): Likewise.
56994         * modules/malloc (License): Likewise.
56995         * modules/malloca (License): Likewise.
56996         * modules/memmem (License): Likewise.
56997         * modules/mempcpy (License): Likewise.
56998         * modules/memset (License): Likewise.
56999         * modules/minmax (License): Likewise.
57000         * modules/mktime (License): Likewise.
57001         * modules/netinet_in (License): Likewise.
57002         * modules/pathmax (License): Likewise.
57003         * modules/poll (License): Likewise.
57004         * modules/regex (License): Likewise.
57005         * modules/snprintf (License): Likewise.
57006         * modules/stdbool (License): Likewise.
57007         * modules/stdint (License): Likewise.
57008         * modules/stdio (License): Likewise.
57009         * modules/strcase (License): Likewise.
57010         * modules/strcasestr (License): Likewise.
57011         * modules/strdup (License): Likewise.
57012         * modules/string (License): Likewise.
57013         * modules/strndup (License): Likewise.
57014         * modules/strnlen (License): Likewise.
57015         * modules/strpbrk (License): Likewise.
57016         * modules/strptime (License): Likewise.
57017         * modules/strsep (License): Likewise.
57018         * modules/sys_select (License): Likewise.
57019         * modules/sys_socket (License): Likewise.
57020         * modules/sys_stat (License): Likewise.
57021         * modules/sys_time (License): Likewise.
57022         * modules/time (License): Likewise.
57023         * modules/time_r (License): Likewise.
57024         * modules/timegm (License): Likewise.
57025         * modules/unistd (License): Likewise.
57026         * modules/vsnprintf (License): Likewise.
57027         * modules/wctype (License): Likewise.
57028
57029 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57030
57031         * modules/argz (License): LGPLv2+.
57032
57033 2007-07-15  Karl Berry  <karl@gnu.org>
57034
57035         * doc/gnulib.texi: revise node structure per new fdl.texi.
57036
57037 2007-07-14  Bruno Haible  <bruno@clisp.org>
57038
57039         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57040         the output file.
57041         * lib/uniname/uninames.h: Regenerated.
57042
57043 2007-07-14  Karl Berry  <karl@gnu.org>
57044
57045         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57046         omitting sectioning and index commands.
57047
57048 2007-07-13  Bruno Haible  <bruno@clisp.org>
57049
57050         New gnulib-tool option --more-symlinks.
57051         * gnulib-tool (func_usage): Document --more-symlinks.
57052         (do_copyrights): New variable.
57053         Recognize option --more-symlinks.
57054         (func_import): Don't add a copyright notice transform to
57055         sed_transform_lib_file if do_copyrights is empty.
57056
57057 2007-07-13  Bruno Haible  <bruno@clisp.org>
57058
57059         * lib/vasnprintf.c (decimal_point_char): Define also if
57060         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57061         && !NEED_PRINTF_DIRECTIVE_A.
57062         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57063         Gary V. Vaughan <gary@gnu.org>.
57064
57065 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57066
57067         * lib/inttypes_.h: Undo previous change, since it was fixed
57068         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57069
57070 2007-07-13  Bruno Haible  <bruno@clisp.org>
57071
57072         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57073         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57074
57075 2007-07-13  Jim Meyering  <jim@meyering.net>
57076
57077         df: Don't fail for Tru64's "file-on-file mount".
57078         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57079         so we fall through and use statfs instead.  Details here:
57080         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57081         Reported by Albert Chin.
57082
57083 2007-07-13  Bruno Haible  <bruno@clisp.org>
57084
57085         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57086         * modules/configmake (License): Likewise.
57087         * modules/gettext (License): Likewise.
57088         * modules/gettext-h (License): Likewise.
57089         * modules/include_next (License): Likewise.
57090         * modules/link-warning (License): Likewise.
57091         * modules/localcharset (License): Likewise.
57092         * modules/localename (License): Likewise.
57093         * modules/lock (License): Likewise.
57094         * modules/relocatable-lib-lgpl (License): Likewise.
57095         * modules/size_max (License): Likewise.
57096         * modules/vasnprintf (License): Likewise.
57097         * modules/wchar (License): Likewise.
57098         * modules/xsize (License): Likewise.
57099
57100 2007-07-13  Bruno Haible  <bruno@clisp.org>
57101
57102         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57103         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57104
57105 2007-07-12  Bruno Haible  <bruno@clisp.org>
57106
57107         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57108         in the modules files.
57109
57110 2007-07-11  Karl Berry  <karl@gnu.org>
57111
57112         * MODULES.html.sh (func_module): use
57113          sed -e '\|^'"${includefile}"'$|d'
57114          instead of /.../d, to avoid errors on $includefile's containing /.
57115
57116 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57117
57118         * gnulib-tool (func_import): Avoid duplication of --avoid
57119         statements
57120         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57121         names to `_' in variable names.
57122
57123 2007-07-10  Eric Blake  <ebb9@byu.net>
57124
57125         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57126         * NEWS: Document this change.
57127
57128 2007-07-08  Bruno Haible  <bruno@clisp.org>
57129
57130         Update to Unicode 5.0.
57131         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57132         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57133         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57134         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57135         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57136         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57137         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57138         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57139         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57140         U+10A3F, U+1D242..U+1D244.
57141         (nonspacing_table_ind): Update.
57142         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57143         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57144
57145 2007-07-08  Bruno Haible  <bruno@clisp.org>
57146
57147         Update to Unicode 5.0.
57148         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57149         code transform. Extend the name index field of unicode_name_to_code and
57150         unicode_code_to_name from 16 to 24 bits.
57151         * lib/uniname/uniname.c (unicode_character_name,
57152         unicode_name_character): Add the range 0x12xxx to the code transform.
57153         * lib/uniname/uninames.h: Regenerated.
57154         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57155
57156 2007-07-07  Bruno Haible  <bruno@clisp.org>
57157
57158         * modules/wcwidth-tests: New file.
57159         * tests/test-wcwidth.c: New file.
57160
57161         Work around MacOS X wcwidth() bug.
57162         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57163         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57164         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57165         original wcwidth in non-UTF-8 locales.
57166         * modules/wcwidth (Depends-on): Add localcharset, streq,
57167         uniwidth/width.
57168         * doc/functions/wcwidth.texi: Update.
57169
57170 2007-07-07  Bruno Haible  <bruno@clisp.org>
57171
57172         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57173         (wcwidth): New declaration.
57174         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57175         macros.
57176         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57177         here. Prepare for creating <wchar.h> unconditionally.
57178         * modules/wchar (Depends-on): Add link-warning.
57179         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57180         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57181         * lib/wcwidth.h: Remove file.
57182         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57183         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57184         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57185         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57186         (Include): Replace wcwidth.h with <wchar.h>.
57187         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57188         * lib/mbchar.h: Don't include wcwidth.h.
57189         * lib/mbswidth.c: Likewise.
57190         * NEWS: Mention the change.
57191
57192 2007-07-07  Bruno Haible  <bruno@clisp.org>
57193
57194         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57195         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57196         definition with an external declaration.
57197         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57198         defined as a function. Remove AC_C_INLINE requirement.
57199         * modules/wcwidth (Files): Add lib/wcwidth.c.
57200         (Makefile.am): Remove redundant statement.
57201
57202 2007-07-07  Bruno Haible  <bruno@clisp.org>
57203
57204         * MODULES.html.sh (Unicode string functions): Add the new modules.
57205
57206         * tests/uniwidth/test-u32-strwidth.c: New file.
57207         * modules/uniwidth/u32-strwidth-tests: New file.
57208
57209         * lib/uniwidth/u32-strwidth.c: New file.
57210         * modules/uniwidth/u32-strwidth: New file.
57211
57212         * tests/uniwidth/test-u16-strwidth.c: New file.
57213         * modules/uniwidth/u16-strwidth-tests: New file.
57214
57215         * lib/uniwidth/u16-strwidth.c: New file.
57216         * modules/uniwidth/u16-strwidth: New file.
57217
57218         * tests/uniwidth/test-u8-strwidth.c: New file.
57219         * modules/uniwidth/u8-strwidth-tests: New file.
57220
57221         * lib/uniwidth/u8-strwidth.c: New file.
57222         * modules/uniwidth/u8-strwidth: New file.
57223
57224         * tests/uniwidth/test-u32-width.c: New file.
57225         * modules/uniwidth/u32-width-tests: New file.
57226
57227         * lib/uniwidth/u32-width.c: New file.
57228         * modules/uniwidth/u32-width: New file.
57229
57230         * tests/uniwidth/test-u16-width.c: New file.
57231         * modules/uniwidth/u16-width-tests: New file.
57232
57233         * lib/uniwidth/u16-width.c: New file.
57234         * modules/uniwidth/u16-width: New file.
57235
57236         * tests/uniwidth/test-u8-width.c: New file.
57237         * modules/uniwidth/u8-width-tests: New file.
57238
57239         * lib/uniwidth/u8-width.c: New file.
57240         * modules/uniwidth/u8-width: New file.
57241
57242         * tests/uniwidth/test-uc_width.c: New file.
57243         * modules/uniwidth/width-tests: New file.
57244
57245         * lib/uniwidth/width.c: New file, from GNU libiconv.
57246         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
57247         * modules/uniwidth/width: New file.
57248
57249         * lib/uniwidth.h: New file, from GNU libiconv.
57250         * modules/uniwidth/base: New file.
57251
57252 2007-07-07  Bruno Haible  <bruno@clisp.org>
57253
57254         * lib/uniname.h: New file, from GNU gettext.
57255         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
57256         * lib/uniname/uninames.h: New file, from GNU gettext.
57257         * lib/uniname/uniname.c: New file, from GNU gettext.
57258         * tests/uniname/test-uninames.sh: New file.
57259         * tests/uniname/test-uninames.c: New file, from GNU gettext.
57260         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
57261         * modules/uniname/base: New file.
57262         * modules/uniname/uniname: New file.
57263         * modules/uniname/uniname-tests: New file.
57264         * MODULES.html.sh (Unicode string functions): Add the new modules.
57265
57266 2007-07-06  Bruno Haible  <bruno@clisp.org>
57267
57268         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
57269
57270 2007-07-06  Bruno Haible  <bruno@clisp.org>
57271
57272         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
57273         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
57274         includes <cygwin/sys_time.h> which includes <sys/select.h> which
57275         include <sys/time.h>.
57276         Reported by Eric Blake.
57277
57278 2007-07-06  Eric Blake  <ebb9@byu.net>
57279
57280         Fix testing canonicalize on cygwin.
57281         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57282         Revert patch from 2007-06-19.
57283         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
57284         canonicalize module is also in use.
57285         * tests/test-canonicalize.c: New file.
57286         * tests/test-canonicalize.sh: Likewise.
57287         * modules/canonicalize-tests: Likewise.
57288
57289 2007-07-06  Jim Meyering  <jim@meyering.net>
57290
57291         * lib/getugroups.c (getugroups): Detect getgrent failure.
57292         Adjust comment to reflect reality: this function may return -1.
57293
57294 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
57295
57296         * build-aux/bootstrap (TP_URL,get_translations): Update to use
57297         the new TP address.
57298         (usage): Fix typo
57299         (gnulib_mk): New variable.
57300
57301 2007-07-05  Jim Meyering  <jim@meyering.net>
57302
57303         Don't let endgrent clobber errno, no matter how improbable.
57304         * lib/getugroups.c (getugroups): Save and restore errno around
57305         endgrent call.
57306
57307         Close the group DB even when failing with 2^31 or more members.
57308         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
57309
57310 2007-07-04  Jim Meyering  <jim@meyering.net>
57311
57312         * lib/getugroups.h: New file.
57313         * lib/getugroups.c: Include "getugroups.h".
57314         Remove uses of "register" keyword.
57315         Move local variable, "cp", down into scope where used.
57316         Give "username" parameter the "const" attribute.
57317         * modules/getugroups (Files): Add lib/getugroups.h
57318
57319 2007-07-04  Karl Berry  <karl@gnu.org>
57320
57321         * MODULES.html.sh (func_all_modules): Complete rename of
57322         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
57323
57324 2007-07-02  Bruno Haible  <bruno@clisp.org>
57325
57326         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
57327         mode, when inttypes.h comes from gnulib.
57328         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57329
57330 2007-07-02  Simon Josefsson  <simon@josefsson.org>
57331
57332         * NEWS: Mention lgpl module name change.
57333
57334         * modules/lgpl-2.1: Renamed from lgpl.
57335
57336         * NEWS: Mention gpl module name change.
57337
57338         * modules/gpl-3.0: New file, based on gpl-2.0.
57339
57340         * modules/gpl-2.0: Renamed from gpl.
57341
57342         * modules/gpl: Fix filename, doc/gpl.texi is now found at
57343         doc/gpl-2.0.texi.
57344
57345 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57346
57347         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57348         #define __STDC_LIMIT_MACROS temporarily while including
57349         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57350         Problem reported by Joel E. Denny in
57351         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57352
57353 2007-07-01  Bruno Haible  <bruno@clisp.org>
57354
57355         * lib/unistdio.h: New file.
57356         * lib/unistdio/u-asnprintf.h: New file.
57357         * lib/unistdio/u-asprintf.h: New file.
57358         * lib/unistdio/u-printf-args.c: New file.
57359         * lib/unistdio/u-printf-args.h: New file.
57360         * lib/unistdio/u-printf-parse.h: New file.
57361         * lib/unistdio/u-snprintf.h: New file.
57362         * lib/unistdio/u-sprintf.h: New file.
57363         * lib/unistdio/u-vasprintf.h: New file.
57364         * lib/unistdio/u-vsnprintf.h: New file.
57365         * lib/unistdio/u-vsprintf.h: New file.
57366         * lib/unistdio/ulc-asnprintf.c: New file.
57367         * lib/unistdio/ulc-asprintf.c: New file.
57368         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57369         * lib/unistdio/ulc-printf-parse.c: New file.
57370         * lib/unistdio/ulc-snprintf.c: New file.
57371         * lib/unistdio/ulc-sprintf.c: New file.
57372         * lib/unistdio/ulc-vasnprintf.c: New file.
57373         * lib/unistdio/ulc-vasprintf.c: New file.
57374         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57375         * lib/unistdio/ulc-vsnprintf.c: New file.
57376         * lib/unistdio/ulc-vsprintf.c: New file.
57377         * lib/unistdio/u8-asnprintf.c: New file.
57378         * lib/unistdio/u8-asprintf.c: New file.
57379         * lib/unistdio/u8-printf-parse.c: New file.
57380         * lib/unistdio/u8-snprintf.c: New file.
57381         * lib/unistdio/u8-sprintf.c: New file.
57382         * lib/unistdio/u8-vasnprintf.c: New file.
57383         * lib/unistdio/u8-vasprintf.c: New file.
57384         * lib/unistdio/u8-vsnprintf.c: New file.
57385         * lib/unistdio/u8-vsprintf.c: New file.
57386         * lib/unistdio/u8-u8-asnprintf.c: New file.
57387         * lib/unistdio/u8-u8-asprintf.c: New file.
57388         * lib/unistdio/u8-u8-snprintf.c: New file.
57389         * lib/unistdio/u8-u8-sprintf.c: New file.
57390         * lib/unistdio/u8-u8-vasnprintf.c: New file.
57391         * lib/unistdio/u8-u8-vasprintf.c: New file.
57392         * lib/unistdio/u8-u8-vsnprintf.c: New file.
57393         * lib/unistdio/u8-u8-vsprintf.c: New file.
57394         * lib/unistdio/u16-asnprintf.c: New file.
57395         * lib/unistdio/u16-asprintf.c: New file.
57396         * lib/unistdio/u16-printf-parse.c: New file.
57397         * lib/unistdio/u16-snprintf.c: New file.
57398         * lib/unistdio/u16-sprintf.c: New file.
57399         * lib/unistdio/u16-vasnprintf.c: New file.
57400         * lib/unistdio/u16-vasprintf.c: New file.
57401         * lib/unistdio/u16-vsnprintf.c: New file.
57402         * lib/unistdio/u16-vsprintf.c: New file.
57403         * lib/unistdio/u16-u16-asnprintf.c: New file.
57404         * lib/unistdio/u16-u16-asprintf.c: New file.
57405         * lib/unistdio/u16-u16-snprintf.c: New file.
57406         * lib/unistdio/u16-u16-sprintf.c: New file.
57407         * lib/unistdio/u16-u16-vasnprintf.c: New file.
57408         * lib/unistdio/u16-u16-vasprintf.c: New file.
57409         * lib/unistdio/u16-u16-vsnprintf.c: New file.
57410         * lib/unistdio/u16-u16-vsprintf.c: New file.
57411         * lib/unistdio/u32-asnprintf.c: New file.
57412         * lib/unistdio/u32-asprintf.c: New file.
57413         * lib/unistdio/u32-printf-parse.c: New file.
57414         * lib/unistdio/u32-snprintf.c: New file.
57415         * lib/unistdio/u32-sprintf.c: New file.
57416         * lib/unistdio/u32-vasnprintf.c: New file.
57417         * lib/unistdio/u32-vasprintf.c: New file.
57418         * lib/unistdio/u32-vsnprintf.c: New file.
57419         * lib/unistdio/u32-vsprintf.c: New file.
57420         * lib/unistdio/u32-u32-asnprintf.c: New file.
57421         * lib/unistdio/u32-u32-asprintf.c: New file.
57422         * lib/unistdio/u32-u32-snprintf.c: New file.
57423         * lib/unistdio/u32-u32-sprintf.c: New file.
57424         * lib/unistdio/u32-u32-vasnprintf.c: New file.
57425         * lib/unistdio/u32-u32-vasprintf.c: New file.
57426         * lib/unistdio/u32-u32-vsnprintf.c: New file.
57427         * lib/unistdio/u32-u32-vsprintf.c: New file.
57428         * tests/unistdio/test-ulc-asnprintf1.c: New file.
57429         * tests/unistdio/test-ulc-asnprintf1.h: New file.
57430         * tests/unistdio/test-ulc-printf1.h: New file.
57431         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
57432         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
57433         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
57434         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
57435         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
57436         * tests/unistdio/test-ulc-vasprintf1.c: New file.
57437         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
57438         * tests/unistdio/test-ulc-vsprintf1.c: New file.
57439         * tests/unistdio/test-u8-asnprintf1.c: New file.
57440         * tests/unistdio/test-u8-asnprintf1.h: New file.
57441         * tests/unistdio/test-u8-printf1.h: New file.
57442         * tests/unistdio/test-u8-vasnprintf1.c: New file.
57443         * tests/unistdio/test-u8-vasnprintf2.c: New file.
57444         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
57445         * tests/unistdio/test-u8-vasnprintf3.c: New file.
57446         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
57447         * tests/unistdio/test-u8-vasprintf1.c: New file.
57448         * tests/unistdio/test-u8-vsnprintf1.c: New file.
57449         * tests/unistdio/test-u8-vsprintf1.c: New file.
57450         * tests/unistdio/test-u16-asnprintf1.c: New file.
57451         * tests/unistdio/test-u16-asnprintf1.h: New file.
57452         * tests/unistdio/test-u16-printf1.h: New file.
57453         * tests/unistdio/test-u16-vasnprintf1.c: New file.
57454         * tests/unistdio/test-u16-vasnprintf2.c: New file.
57455         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
57456         * tests/unistdio/test-u16-vasnprintf3.c: New file.
57457         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
57458         * tests/unistdio/test-u16-vasprintf1.c: New file.
57459         * tests/unistdio/test-u16-vsnprintf1.c: New file.
57460         * tests/unistdio/test-u16-vsprintf1.c: New file.
57461         * tests/unistdio/test-u32-asnprintf1.c: New file.
57462         * tests/unistdio/test-u32-asnprintf1.h: New file.
57463         * tests/unistdio/test-u32-printf1.h: New file.
57464         * tests/unistdio/test-u32-vasnprintf1.c: New file.
57465         * tests/unistdio/test-u32-vasnprintf2.c: New file.
57466         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
57467         * tests/unistdio/test-u32-vasnprintf3.c: New file.
57468         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
57469         * tests/unistdio/test-u32-vasprintf1.c: New file.
57470         * tests/unistdio/test-u32-vsnprintf1.c: New file.
57471         * tests/unistdio/test-u32-vsprintf1.c: New file.
57472         * modules/unistdio/base: New file.
57473         * modules/unistdio/u-printf-args: New file.
57474         * modules/unistdio/ulc-asnprintf: New file.
57475         * modules/unistdio/ulc-asprintf: New file.
57476         * modules/unistdio/ulc-fprintf: New file.
57477         * modules/unistdio/ulc-printf-parse: New file.
57478         * modules/unistdio/ulc-snprintf: New file.
57479         * modules/unistdio/ulc-sprintf: New file.
57480         * modules/unistdio/ulc-vasnprintf: New file.
57481         * modules/unistdio/ulc-vasprintf: New file.
57482         * modules/unistdio/ulc-vfprintf: New file.
57483         * modules/unistdio/ulc-vsnprintf: New file.
57484         * modules/unistdio/ulc-vsprintf: New file.
57485         * modules/unistdio/u8-asnprintf: New file.
57486         * modules/unistdio/u8-asprintf: New file.
57487         * modules/unistdio/u8-printf-parse: New file.
57488         * modules/unistdio/u8-snprintf: New file.
57489         * modules/unistdio/u8-sprintf: New file.
57490         * modules/unistdio/u8-vasnprintf: New file.
57491         * modules/unistdio/u8-vasprintf: New file.
57492         * modules/unistdio/u8-vsnprintf: New file.
57493         * modules/unistdio/u8-vsprintf: New file.
57494         * modules/unistdio/u8-u8-asnprintf: New file.
57495         * modules/unistdio/u8-u8-asprintf: New file.
57496         * modules/unistdio/u8-u8-snprintf: New file.
57497         * modules/unistdio/u8-u8-sprintf: New file.
57498         * modules/unistdio/u8-u8-vasnprintf: New file.
57499         * modules/unistdio/u8-u8-vasprintf: New file.
57500         * modules/unistdio/u8-u8-vsnprintf: New file.
57501         * modules/unistdio/u8-u8-vsprintf: New file.
57502         * modules/unistdio/u16-asnprintf: New file.
57503         * modules/unistdio/u16-asprintf: New file.
57504         * modules/unistdio/u16-printf-parse: New file.
57505         * modules/unistdio/u16-snprintf: New file.
57506         * modules/unistdio/u16-sprintf: New file.
57507         * modules/unistdio/u16-vasnprintf: New file.
57508         * modules/unistdio/u16-vasprintf: New file.
57509         * modules/unistdio/u16-vsnprintf: New file.
57510         * modules/unistdio/u16-vsprintf: New file.
57511         * modules/unistdio/u16-u16-asnprintf: New file.
57512         * modules/unistdio/u16-u16-asprintf: New file.
57513         * modules/unistdio/u16-u16-snprintf: New file.
57514         * modules/unistdio/u16-u16-sprintf: New file.
57515         * modules/unistdio/u16-u16-vasnprintf: New file.
57516         * modules/unistdio/u16-u16-vasprintf: New file.
57517         * modules/unistdio/u16-u16-vsnprintf: New file.
57518         * modules/unistdio/u16-u16-vsprintf: New file.
57519         * modules/unistdio/u32-asnprintf: New file.
57520         * modules/unistdio/u32-asprintf: New file.
57521         * modules/unistdio/u32-printf-parse: New file.
57522         * modules/unistdio/u32-snprintf: New file.
57523         * modules/unistdio/u32-sprintf: New file.
57524         * modules/unistdio/u32-vasnprintf: New file.
57525         * modules/unistdio/u32-vasprintf: New file.
57526         * modules/unistdio/u32-vsnprintf: New file.
57527         * modules/unistdio/u32-vsprintf: New file.
57528         * modules/unistdio/u32-u32-asnprintf: New file.
57529         * modules/unistdio/u32-u32-asprintf: New file.
57530         * modules/unistdio/u32-u32-snprintf: New file.
57531         * modules/unistdio/u32-u32-sprintf: New file.
57532         * modules/unistdio/u32-u32-vasnprintf: New file.
57533         * modules/unistdio/u32-u32-vasprintf: New file.
57534         * modules/unistdio/u32-u32-vsnprintf: New file.
57535         * modules/unistdio/u32-u32-vsprintf: New file.
57536         * modules/unistdio/ulc-asnprintf-tests: New file.
57537         * modules/unistdio/ulc-vasnprintf-tests: New file.
57538         * modules/unistdio/ulc-vasprintf-tests: New file.
57539         * modules/unistdio/ulc-vsnprintf-tests: New file.
57540         * modules/unistdio/ulc-vsprintf-tests: New file.
57541         * modules/unistdio/u8-asnprintf-tests: New file.
57542         * modules/unistdio/u8-vasnprintf-tests: New file.
57543         * modules/unistdio/u8-vasprintf-tests: New file.
57544         * modules/unistdio/u8-vsnprintf-tests: New file.
57545         * modules/unistdio/u8-vsprintf-tests: New file.
57546         * modules/unistdio/u16-asnprintf-tests: New file.
57547         * modules/unistdio/u16-vasnprintf-tests: New file.
57548         * modules/unistdio/u16-vasprintf-tests: New file.
57549         * modules/unistdio/u16-vsnprintf-tests: New file.
57550         * modules/unistdio/u16-vsprintf-tests: New file.
57551         * modules/unistdio/u32-asnprintf-tests: New file.
57552         * modules/unistdio/u32-vasnprintf-tests: New file.
57553         * modules/unistdio/u32-vasprintf-tests: New file.
57554         * modules/unistdio/u32-vsnprintf-tests: New file.
57555         * modules/unistdio/u32-vsprintf-tests: New file.
57556         * MODULES.html.sh (Unicode string functions): Add the new modules.
57557
57558 2007-07-01  Bruno Haible  <bruno@clisp.org>
57559
57560         * lib/sprintf.c (sprintf): Limit the available length estimation,
57561         to avoid address wraparound.
57562         * lib/vsprintf.c (vsprintf): Likewise.
57563         * modules/sprintf-posix (Dependencies): Add stdint.
57564         * modules/vsprintf-posix (Dependencies): Likewise.
57565
57566 2007-07-01  Bruno Haible  <bruno@clisp.org>
57567
57568         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
57569         Windows PATH as well. Conservative double-quoting. Comments.
57570
57571 2007-07-01  Bruno Haible  <bruno@clisp.org>
57572             Eric Blake  <ebb9@byu.net>
57573             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57574
57575         * gnulib-tool (self_abspathname): Fix algorithm to cope with
57576         empty components in $PATH, denoting '.'.
57577
57578 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57579
57580         * gnulib-tool: Fix indentation.
57581         (func_create_megatestdir): Likewise.
57582         Report by Bruno Haible.
57583
57584 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57585
57586         Sync from Automake.
57587         * build-aux/gnupload: Fix shell portability issues with for loops.
57588         Report by Karl Berry.
57589
57590 2007-06-29  Simon Josefsson  <simon@josefsson.org>
57591
57592         * build-aux/maint.mk (POURL): Use translationproject.org.
57593
57594 2007-06-27  Simon Josefsson  <simon@josefsson.org>
57595             Bruno Haible  <bruno@clisp.org>
57596
57597         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
57598         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
57599         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
57600         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
57601         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
57602
57603 2007-06-27  Bruno Haible  <bruno@clisp.org>
57604
57605         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
57606         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
57607
57608 2007-06-26  Karl Berry  <karl@gnu.org>
57609
57610         * MODULES.html.sh: remove xreadlink-with-size.
57611
57612 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57613
57614         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
57615         method that I hope also handles the double-include problem noted
57616         by Bruno Haible in
57617         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
57618
57619 2007-06-23  Bruno Haible  <bruno@clisp.org>
57620
57621         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57622         Don't let the 'mostlyclean' target fail if the last subdirectory could
57623         not be removed.
57624         Reported by Karl Berry.
57625
57626 2007-06-23  Bruno Haible  <bruno@clisp.org>
57627
57628         * gnulib-tool (echo): Add a speedier workaround for ksh.
57629         * tests/test-echo.sh: Likewise.
57630
57631 2007-06-23  Bruno Haible  <bruno@clisp.org>
57632
57633         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
57634         * tests/test-echo.sh: Likewise.
57635
57636 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57637
57638         * gnulib-tool (IFS): Initialize early, so we don't set it to
57639         empty later.
57640         (self_abspathname): Rewrite algorithm to set it, reindent.
57641         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
57642         (func_create_megatestdir): Merge some sed scripts.
57643
57644 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57645
57646         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
57647         exposed by Sun Studio 11 cc on Solaris 8.
57648
57649 2007-06-22  Bruno Haible  <bruno@clisp.org>
57650
57651         * gnulib-tool (echo): Ensure the echo primitive does not interpret
57652         backslashes.
57653         * tests/test-echo.sh: New file.
57654
57655 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57656
57657         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
57658         simplify `sed_replace_build_aux' scripts, they are portable but
57659         echoing them with `echo' is not.
57660         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
57661
57662 2007-06-21  Karl Berry  <karl@gnu.org>
57663
57664         * config/srclist.txt: guess we can't handle the licenses via
57665         srclist at the moment.
57666
57667 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57668
57669         * MODULES.html.sh: Add include_next.
57670         * modules/include_next: New file.
57671
57672 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57673
57674         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
57675         INCLUDE_NEXT.
57676         (gl_CHECK_NEXT_HEADERS): New macro.
57677         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
57678         the obsolescent gl_ABSOLUTE_HEADER.
57679         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
57680         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
57681         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
57682         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57683         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57684         * m4/math_h.m4 (gl_MATH_H): Likewise.
57685         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57686         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57687         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
57688         * m4/stdint.m4 (gl_STDINT_H): Likewise.
57689         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
57690         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
57691         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
57692         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57693         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57694         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
57695         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57696         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
57697         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
57698         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57699         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57700         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57701         * m4/inttypes.m4 (gl_INTTYPES_H): Define
57702         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
57703         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
57704         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
57705         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
57706         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
57707         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
57708         * lib/float_.h: Likewise.
57709         * lib/inttypes_.h: Likewise.
57710         * lib/math_.h: Likewise.
57711         * lib/search_.h: Likewise.
57712         * lib/signal_.h: Likewise.
57713         * lib/stdint_.h: Likewise.
57714         * lib/stdio_.h: Likewise.
57715         * lib/stdlib_.h: Likewise.
57716         * lib/string_.h: Likewise.
57717         * lib/sys_stat_.h: Likewise.
57718         * lib/sys_time_.h: Likewise.
57719         * lib/time_.h: Likewise.
57720         * lib/unistd_.h: Likewise.
57721         * lib/wchar_.h: Likewise.
57722         * lib/wctype_.h: Likewise.
57723         * lib/dirent_.h: Likewise.
57724         * lib/iconv_.h: Likewise.
57725         * lib/locale_.h: Likewise.
57726         * lib/netinet_in_.h: Likewise.
57727         * lib/sys_select_.h: Likewise.
57728         * lib/sys_socket_.h: Likewise.
57729         * lib/sysexits_.h: Likewise.
57730         * modules/fcntl (Depends-on): Depend on include_next, not
57731         absolute_header.
57732         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
57733         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
57734         * modules/fchdir: Likewise.
57735         * modules/float: Likewise.
57736         * modules/iconv_open: Likewise.
57737         * modules/inttypes: Likewise.
57738         * modules/locale: Likewise.
57739         * modules/math: Likewise.
57740         * modules/netinet_in: Likewise.
57741         * modules/search: Likewise.
57742         * modules/signal: Likewise.
57743         * modules/stdint: Likewise.
57744         * modules/stdio: Likewise.
57745         * modules/stdlib: Likewise.
57746         * modules/string: Likewise.
57747         * modules/sys_select: Likewise.
57748         * modules/sys_socket: Likewise.
57749         * modules/sys_stat: Likewise.
57750         * modules/sys_time: Likewise.
57751         * modules/sysexits: Likewise.
57752         * modules/time: Likewise.
57753         * modules/unistd: Likewise.
57754         * modules/wchar: Likewise.
57755         * modules/wctype: Likewise.
57756         * modules/sys_stat: Change maintainer to "all".
57757         * modules/unistd: Likewise.
57758
57759 2007-06-20  Karl Berry  <karl@gnu.org>
57760
57761         * config/srclist.txt: track www changes in license files.
57762
57763 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
57764
57765         * build-aux/bootstrap: Remove stray dot.
57766         Make sure build_aux settings are honored when linking
57767         gnulib_extra_files.
57768
57769 2007-06-19  Eric Blake  <ebb9@byu.net>
57770
57771         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57772         Allow compilation on cygwin.
57773
57774 2007-06-19  Jim Meyering  <jim@meyering.net>
57775
57776         xreadlink-with-size: Remove module.  No longer used.
57777         Ex-callers now use xreadlink or mreadlink-with-size.
57778         * modules/xreadlink-with-size: Remove module.
57779         * lib/xreadlink-with-size.c: Remove file.
57780         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
57781         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
57782         just before the function definition *is* accurate.
57783
57784         Eliminate one way canonicalize_filename_mode could exit.
57785         * lib/canonicalize.c (canonicalize_filename_mode):
57786         Use mreadlink_with_size, not xreadlink_with_size.
57787
57788 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
57789
57790         Detect porting problems to FreeBSD/arm, which has time_t wider than
57791         long int.  Original problem reported for GNU diff by Xin Li in
57792         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
57793         * modules/getdate (Depends-on): Add intprops, verify.
57794         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
57795         is an integer type no wider than long int.
57796
57797 2007-06-18  Jim Meyering  <jim@meyering.net>
57798
57799         New module: mreadlink-with-size.
57800         * MODULES.html.sh: Add mreadlink-with-size.
57801         * modules/mreadlink-with-size: New module
57802         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
57803         not xreadlink-with-size.
57804         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
57805
57806 2007-06-16  Bruno Haible  <bruno@clisp.org>
57807
57808         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
57809         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
57810         Reported by Gary V. Vaughan <gary@gnu.org>.
57811
57812 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
57813
57814         Revamp lchown so that it lives in unistd.h where it belongs.
57815         * lib/lchown.h: Remove.
57816         * lib/dirchownmod.c: Don't include lib/lchown.h.
57817         * lib/fchownat.c: Likewise.
57818         * lib/openat.c: Likewise.
57819         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
57820         does not follow symlinks.
57821         (EOPNOTSUPP): Define if not defined.
57822         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
57823         is defined to 0.
57824         (lchown): New decl.
57825         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
57826         Do not check for lchown decl.
57827         Set REPLACE_LCHOWN.
57828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
57829         REPLACE_LCHOWN.
57830         * modules/chown: Make it clear it follows symlinks.
57831         * modules/lchown: Make it clear it doesn't follow symlinks.
57832         (Files): Remove lib/lchown.h
57833         (Depends-on): Add unistd.
57834         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
57835         (Include): Include <unistd.h>, not "lchown.h".
57836         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
57837         REPLACE_LCHOWN.
57838
57839 2007-06-15  Jim Meyering  <jim@meyering.net>
57840
57841         Change license (GPL to LGPL) of fsusage and dependents.
57842         * modules/fsusage (License): Change to LGPL.
57843         * modules/full-read (License): Likewise.
57844         * modules/full-write (License): Likewise.
57845         * modules/safe-read (License): Likewise.
57846         * modules/safe-write (License): Likewise.
57847
57848 2007-06-14  Ben Pfaff  <blp@gnu.org>
57849
57850         Missing part of allocsa -> malloca transition.
57851         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
57852         gl_MALLOCA.
57853
57854 2007-06-12  Bruno Haible  <bruno@clisp.org>
57855
57856         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
57857         to ia64, x86_64, i386.
57858         Reported by Eric Blake.
57859
57860 2007-06-12  Bruno Haible  <bruno@clisp.org>
57861
57862         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
57863         cross-compiling to x86_64.
57864
57865 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
57866
57867         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
57868         glitch reported by Ralf Wildenhues in
57869         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
57870
57871         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
57872         Vin Shelton.
57873
57874 2007-06-11  Bruno Haible  <bruno@clisp.org>
57875
57876         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
57877         replacement string.
57878         Reported by Eric Blake.
57879
57880 2007-06-10  Bruno Haible  <bruno@clisp.org>
57881
57882         Prepare vasnprintf code for use with Unicode strings.
57883         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
57884         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
57885         TYPE_U32_STRING.
57886         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
57887         a_u32_string variants.
57888         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57889         * lib/printf-args.c: Don't include config.h and the specification
57890         header if PRINTF_FETCHARGS is already defined.
57891         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57892         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
57893         TYPE_U16_STRING, TYPE_U32_STRING.
57894         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
57895         u16_directive, u16_directives, u32_directive, u32_directives): New
57896         types.
57897         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
57898         New declarations.
57899         * lib/printf-parse.c: Don't include config.h and the specification
57900         header if PRINTF_PARSE is already defined. Eliminate the set of
57901         parameters for WIDE_CHAR_VERSION; the user of this file must provide
57902         them now. Include c-ctype.h.
57903         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
57904         directive and CHAR_T_ONLY_ASCII.
57905         * lib/vasnprintf.c: Don't include config.h and the specification header
57906         if VASNPRINTF is already defined.
57907         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
57908         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
57909         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
57910         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
57911         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
57912         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
57913         code accordingly.
57914         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
57915         pad_ourselves also in this case, with the 'c' and 's' directives, and
57916         with a different notion of "width".
57917         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
57918
57919 2007-06-10  Bruno Haible  <bruno@clisp.org>
57920
57921         * modules/unistr/u32-mbsnlen: New file.
57922         * lib/unistr/u32-mbsnlen.c: New file.
57923
57924         * modules/unistr/u16-mbsnlen: New file.
57925         * lib/unistr/u16-mbsnlen.c: New file.
57926
57927         * modules/unistr/u8-mbsnlen: New file.
57928         * lib/unistr/u8-mbsnlen.c: New file.
57929
57930         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
57931         declarations.
57932
57933 2007-06-10  Bruno Haible  <bruno@clisp.org>
57934
57935         * lib/string_.h (mbsnlen): New declaration.
57936         * lib/mbsnlen.c: New file.
57937         * m4/mbsnlen.m4: New file.
57938         * modules/mbsnlen: New file.
57939         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
57940         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
57941         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
57942
57943 2007-06-10  Bruno Haible  <bruno@clisp.org>
57944
57945         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
57946
57947 2007-06-10  Bruno Haible  <bruno@clisp.org>
57948
57949         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
57950         * lib/mbuiter.h: Likewise.
57951
57952 2007-06-10  Bruno Haible  <bruno@clisp.org>
57953
57954         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
57955         declaration.
57956
57957 2007-06-10  Karl Berry  <karl@gnu.org>
57958
57959         * config/srclist.txt: remove gettext entries, Bruno prefers
57960         to update individually.
57961
57962 2007-06-10  Bruno Haible  <bruno@clisp.org>
57963
57964         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
57965         'maxlen'. Ensure only length + width bytes are allocated, not
57966         length + 1 + width.
57967
57968 2007-06-09  Bruno Haible  <bruno@clisp.org>
57969
57970         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
57971         (CHAR_T): Remove macro.
57972         (VASNPRINTF): Update.
57973
57974 2007-06-09  Bruno Haible  <bruno@clisp.org>
57975
57976         * MODULES.html.sh (Unicode string functions): Add the new modules.
57977
57978         * modules/uniconv/u32-conv-to-enc: New file.
57979         * lib/uniconv/u32-conv-to-enc.c: New file.
57980         * modules/uniconv/u32-conv-to-enc-tests: New file.
57981         * tests/uniconv/test-u32-conv-to-enc.c: New file.
57982
57983         * modules/uniconv/u16-conv-to-enc: New file.
57984         * lib/uniconv/u16-conv-to-enc.c: New file.
57985         * lib/uniconv/u-conv-to-enc.h: New file.
57986         * modules/uniconv/u16-conv-to-enc-tests: New file.
57987         * tests/uniconv/test-u16-conv-to-enc.c: New file.
57988
57989         * modules/uniconv/u8-conv-to-enc: New file.
57990         * lib/uniconv/u8-conv-to-enc.c: New file.
57991         * modules/uniconv/u8-conv-to-enc-tests: New file.
57992         * tests/uniconv/test-u8-conv-to-enc.c: New file.
57993
57994         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
57995         u32_conv_to_encoding): New declarations.
57996
57997 2007-06-09  Bruno Haible  <bruno@clisp.org>
57998
57999         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58000
58001 2007-06-09  Bruno Haible  <bruno@clisp.org>
58002
58003         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58004         * modules/malloca: Renamed from modules/allocsa, updated.
58005         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58006         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58007         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58008         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58009         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58010         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58011         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58012         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58013         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58014         * modules/c-strcasestr (Depends-on): Update.
58015         * lib/c-strcasestr.c: Update.
58016         * modules/c-strstr (Depends-on): Update.
58017         * lib/c-strstr.c: Update.
58018         * modules/canonicalize-lgpl (Depends-on): Update.
58019         * lib/canonicalize-lgpl.c: Update.
58020         * modules/clean-temp (Depends-on): Update.
58021         * lib/clean-temp.c: Update.
58022         * modules/csharpcomp (Depends-on): Update.
58023         * lib/csharpcomp.c: Update.
58024         * modules/csharpexec (Depends-on): Update.
58025         * lib/csharpexec.c: Update.
58026         * modules/javacomp (Depends-on): Update.
58027         * lib/javacomp.c: Update.
58028         * modules/javaexec (Depends-on): Update.
58029         * lib/javaexec.c: Update.
58030         * modules/mbscasestr (Depends-on): Update.
58031         * lib/mbscasestr.c: Update.
58032         * modules/mbsstr (Depends-on): Update.
58033         * lib/mbsstr.c: Update.
58034         * modules/setenv (Depends-on): Update.
58035         * lib/setenv.c: Update.
58036         * modules/strcasestr (Depends-on): Update.
58037         * lib/strcasestr.c: Update.
58038         * modules/striconveha (Depends-on): Update.
58039         * lib/striconveha.c: Update.
58040         * modules/relocatable-prog-wrapper (Files): Update.
58041         * lib/relocwrapper.c: Update.
58042         * build-aux/install-reloc: Update.
58043         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58044
58045 2007-06-08  Bruno Haible  <bruno@clisp.org>
58046
58047         Port to uClibc.
58048         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58049         * lib/fpurge.c (fpurge): Likewise.
58050         * lib/freading.c (freading): Likewise.
58051         * lib/fseeko.c (rpl_fseeko): Likewise.
58052         * lib/fseterr.c (fseterr): Likewise.
58053         * lib/fwriting.c (fwriting): Likewise.
58054         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58055
58056 2007-06-08  Bruno Haible  <bruno@clisp.org>
58057
58058         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58059         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58060         * modules/gettext (Files): Add m4/intlmacosx.m4.
58061
58062 2007-06-07  Bruno Haible  <bruno@clisp.org>
58063
58064         * modules/localename-tests: New file.
58065         * tests/test-localename.c: New file.
58066
58067         New module 'localename'.
58068         * lib/localename.h: New file.
58069         * lib/localename.c: New file, from GNU gettext.
58070         * m4/localename.m4: New file.
58071         * modules/localename: New file.
58072
58073 2007-06-07  Bruno Haible  <bruno@clisp.org>
58074
58075         Work around the lack of <wchar.h> on some builds of uClibc.
58076         * doc/headers/wchar.texi: Update.
58077         * lib/wchar_.h: Include <wchar.h> only if it exists.
58078         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58079         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58080         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58081         doesn't exist.
58082         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58083         * modules/mbfile (Depends-on): Add wchar.
58084         * modules/mbiter (Depends-on): Likewise.
58085         * modules/mbuiter (Depends-on): Likewise.
58086         Reported by Simon Josefsson.
58087
58088 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58089
58090         Work around problem reported by Steven M. Schweda in
58091         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58092         Tru64 5.1B with the Compaq compiler environment installed declares
58093         an 'isblank' function but does not define it in the C library.
58094         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58095         * lib/regex_internal.h (isblank): Likewise.
58096         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58097         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58098
58099 2007-06-05  Bruno Haible  <bruno@clisp.org>
58100
58101         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58102         ia64.
58103         * modules/printf-safe: New file.
58104         * modules/fprintf-posix (Depends-on): Add printf-safe.
58105         * modules/printf-posix (Depends-on): Likewise.
58106         * modules/snprintf-posix (Depends-on): Likewise.
58107         * modules/sprintf-posix (Depends-on): Likewise.
58108         * modules/vasnprintf-posix (Depends-on): Likewise.
58109         * modules/vasprintf-posix (Depends-on): Likewise.
58110         * modules/vfprintf-posix (Depends-on): Likewise.
58111         * modules/vprintf-posix (Depends-on): Likewise.
58112         * modules/vsnprintf-posix (Depends-on): Likewise.
58113         * modules/vsprintf-posix (Depends-on): Likewise.
58114         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58115         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58116         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58117         "no" on i386, x86_64, ia64.
58118         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58119         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58120         on i386, x86_64, ia64.
58121         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58122         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58123         on i386, x86_64, ia64.
58124         * tests/test-vasnprintf-posix.c: Include float.h.
58125         (LDBL80_WORDS): New macro.
58126         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58127         on i386, x86_64, ia64.
58128         * tests/test-vasprintf-posix.c: Include float.h.
58129         (LDBL80_WORDS): New macro.
58130         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58131         on i386, x86_64, ia64.
58132         * tests/test-snprintf-posix.c: Include float.h.
58133         * tests/test-sprintf-posix.c: Likewise.
58134         * tests/test-vsnprintf-posix.c: Likewise.
58135         * tests/test-vsprintf-posix.c: Likewise.
58136
58137 2007-06-05  Bruno Haible  <bruno@clisp.org>
58138
58139         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58140         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58141         non-IEEE numbers on i386, x86_64, ia64.
58142         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58143         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58144         * tests/test-isnanl.h: Include float.h.
58145         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58146
58147 2007-06-05  Bruno Haible  <bruno@clisp.org>
58148
58149         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58150         also the %a / %A. Handle the %a / %A code before this extra handling.
58151
58152 2007-06-05  Bruno Haible  <bruno@clisp.org>
58153
58154         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58155         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58156
58157 2007-06-05  Bruno Haible  <bruno@clisp.org>
58158
58159         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58160         typo in variable name.
58161
58162 2007-06-05  Eric Blake  <ebb9@byu.net>
58163
58164         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58165         Reported by Simon Josefsson.
58166
58167 2007-06-04  Bruno Haible  <bruno@clisp.org>
58168
58169         Avoid test failures on some PowerPC platforms.
58170         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58171         Define differently for PowerPC.
58172         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58173         Reported by Gary V. Vaughan <gary@gnu.org>.
58174
58175 2007-06-02  Bruno Haible  <bruno@clisp.org>
58176
58177         Fix test-stdint failure on FreeBSD/ia64.
58178         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58179         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58180         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58181         * doc/headers/stdint.texi: Update.
58182
58183 2007-06-01  Bruno Haible  <bruno@clisp.org>
58184
58185         * tests/test-binary-io.c (main): Pass a third argument to open().
58186         Reported by Gary V. Vaughan <gary@gnu.org>.
58187
58188 2007-06-01  Bruno Haible  <bruno@clisp.org>
58189
58190         * doc/functions/frexpl.texi: Update for mingw.
58191
58192 2007-06-01  Bruno Haible  <bruno@clisp.org>
58193
58194         * tests/test-lseek.c (main): Disable test of errno for invalid third
58195         argument.
58196         * doc/functions/lseek.texi: Update.
58197         Reported by Gary V. Vaughan <gary@gnu.org>.
58198
58199 2007-05-28  Bruno Haible  <bruno@clisp.org>
58200
58201         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58202
58203 2007-05-31  Eric Blake  <ebb9@byu.net>
58204
58205         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58206         cross compiling.
58207
58208 2007-05-30  Eric Blake  <ebb9@byu.net>
58209         and Bruno Haible  <bruno@clisp.org>
58210
58211         Work around mingw test failures exposed by m4-1.4.9b.
58212         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58213         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58214         moment.
58215
58216 2007-05-30  Bruno Haible  <bruno@clisp.org>
58217
58218         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58219         assuming that they are closed. Needed on HP-UX 11.
58220
58221 2007-05-29  Bruno Haible  <bruno@clisp.org>
58222
58223         Fix a problem with #include_next.
58224         * lib/dirent_.h: Split the double-inclusion guard.
58225         * lib/fcntl_.h: Likewise.
58226         * lib/float_.h: Likewise.
58227         * lib/iconv_.h: Likewise.
58228         * lib/inttypes_.h: Likewise.
58229         * lib/locale_.h: Likewise.
58230         * lib/math_.h: Likewise.
58231         * lib/netinet_in_.h: Likewise.
58232         * lib/search_.h: Likewise.
58233         * lib/signal_.h: Likewise.
58234         * lib/stdint_.h: Likewise.
58235         * lib/stdio_.h: Likewise.
58236         * lib/stdlib_.h: Likewise.
58237         * lib/string_.h: Likewise.
58238         * lib/sys_select_.h: Likewise.
58239         * lib/sys_socket_.h: Likewise.
58240         * lib/sys_stat_.h: Likewise.
58241         * lib/sys_time_.h: Likewise.
58242         * lib/sysexits_.h: Likewise.
58243         * lib/time_.h: Likewise.
58244         * lib/unistd_.h: Likewise.
58245         * lib/wchar_.h: Likewise.
58246         * lib/wctype_.h: Likewise.
58247
58248 2007-05-29  Bruno Haible  <bruno@clisp.org>
58249
58250         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
58251         for the moment.
58252
58253 2007-05-29  Bruno Haible  <bruno@clisp.org>
58254
58255         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
58256         invocation.
58257         Reported by Eric Blake.
58258
58259 2007-05-29  Bruno Haible  <bruno@clisp.org>
58260
58261         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
58262         compiling case.
58263
58264 2007-05-29  Eric Blake  <ebb9@byu.net>
58265             Bruno Haible  <bruno@clisp.org>
58266
58267         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
58268         cross compiles.
58269
58270 2007-05-28  Eric Blake  <ebb9@byu.net>
58271
58272         * modules/closein-tests (test_closein_LDADD): Support test on
58273         cygwin with libtool.
58274
58275 2007-05-28  Bruno Haible  <bruno@clisp.org>
58276
58277         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
58278         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58279         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58280         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58281         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58282         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58283         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58284         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58285         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58286
58287 2007-05-28  Eric Blake  <ebb9@byu.net>
58288
58289         Unconditionally include <config.h> in unit tests.
58290         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
58291         * tests/test-allocsa.c, tests/test-arcfour.c,
58292         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
58293         tests/test-array_list.c, tests/test-array_oset.c,
58294         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
58295         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
58296         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
58297         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
58298         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
58299         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
58300         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
58301         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
58302         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
58303         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
58304         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
58305         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
58306         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
58307         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
58308         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
58309         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
58310         test-md5.c, test-memmem.c, test-printf-posix.c,
58311         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
58312         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
58313         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
58314         test-strcasestr.c, test-striconv.c, test-striconveh.c,
58315         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
58316         test-vasnprintf-posix2.c, test-vasnprintf.c,
58317         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
58318         test-vfprintf-posix.c, test-vprintf-posix.c,
58319         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
58320         test-xvasprintf.c: Likewise.
58321
58322 2007-05-28  Bruno Haible  <bruno@clisp.org>
58323
58324         * gnulib-tool (func_import): Remember the --with-tests command-line
58325         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
58326         Reported by Eric Blake.
58327
58328 2007-05-28  Bruno Haible  <bruno@clisp.org>
58329
58330         * modules/ftell-tests: New file.
58331         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
58332         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
58333
58334         * lib/ftell.c: New file.
58335         * modules/ftell: New file.
58336         * m4/ftell.m4: New file.
58337         * doc/functions/ftell.texi: Update.
58338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
58339         REPLACE_FTELL.
58340         * lib/stdio_.h (rpl_ftell): New declaration.
58341         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
58342         REPLACE_FTELL.
58343
58344 2007-05-28  Eric Blake  <ebb9@byu.net>
58345
58346         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58347
58348 2007-05-28  Bruno Haible  <bruno@clisp.org>
58349
58350         * modules/fseek-tests: New file.
58351         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58352         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58353
58354         * lib/fseek.c: New file.
58355         * modules/fseek: New file.
58356         * m4/fseek.m4: New file.
58357         * doc/functions/fseek.texi: Update.
58358         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58359         REPLACE_FSEEK.
58360         * lib/stdio_.h (rpl_fseek): New declaration.
58361         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58362         REPLACE_FSEEK.
58363
58364 2007-05-28  Bruno Haible  <bruno@clisp.org>
58365
58366         * lib/stdio_.h (fflush): More comments.
58367
58368 2007-05-28  Bruno Haible  <bruno@clisp.org>
58369
58370         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58371         runtime test.
58372
58373 2007-05-28  Eric Blake  <ebb9@byu.net>
58374
58375         Improve lseek module.
58376         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
58377         * lib/unistd_.h (lseek): Scale back link warning message.
58378         * tests/test-lseek.c: Beef up test.
58379         * tests/test-lseek.sh: Exercise more facets of lseek.
58380         Reported by Bruno Haible.
58381
58382 2007-05-28  Bruno Haible  <bruno@clisp.org>
58383
58384         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
58385         to define.
58386
58387 2007-05-27  Bruno Haible  <bruno@clisp.org>
58388
58389         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
58390
58391 2007-05-27  Bruno Haible  <bruno@clisp.org>
58392
58393         * modules/openmp: New file.
58394         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
58395         Noah Misch.
58396
58397 2007-05-26  Bruno Haible  <bruno@clisp.org>
58398
58399         * modules/chdir-long (Depends-on): Add fchdir.
58400         * modules/chdir-safer (Depends-on): Likewise.
58401         * modules/fts (Depends-on): Likewise.
58402         * modules/fts-lgpl (Depends-on): Likewise.
58403         * modules/openat (Depends-on): Likewise.
58404         * modules/savewd (Depends-on): Likewise.
58405
58406 2007-05-24  Eric Blake  <ebb9@byu.net>
58407
58408         Fix lseek on mingw.
58409         * modules/lseek: New module.
58410         * m4/lseek.m4: New file.
58411         * lib/lseek.c: New file.
58412         * modules/lseek-tests: New file.
58413         * tests/test-lseek.c: New file.
58414         * tests/test-lseek.sh: New file.
58415         * MODULES.html.sh: Document lseek module.
58416         * modules/fflush (Depends-on): Add lseek, fseeko.
58417         * modules/fseeko (Depends-on): Likewise.
58418         * modules/ftello (Depends-on): Likewise.
58419         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
58420         broken.
58421         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
58422         broken.
58423         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
58424         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
58425         * lib/ftello.c (rpl_ftello): Likewise.
58426         * tests/test-fseeko.c (main): Test this.
58427         * tests/test-fseeko.sh: Likewise.
58428         * tests/test-ftello.c (main): Likewise.
58429         * tests/test-ftello.sh: Likewise.
58430         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
58431         implies replacing fseek.
58432         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
58433         HAVE_FTELLO.
58434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
58435         * modules/unistd (Makefile.am): Likewise.
58436         * lib/unistd_.h (lseek): Declare a replacement.
58437         * doc/functions/lseek.texi (lseek): Document this fix.
58438         * doc/functions/fseek.texi (fseek): Likewise.
58439         * doc/functions/ftell.texi (ftell): Likewise.
58440
58441 2007-05-24  Bruno Haible  <bruno@clisp.org>
58442
58443         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
58444         in the printed representation of a NaN.
58445         * tests/test-vasprintf-posix.c (test_function): Likewise.
58446         * tests/test-snprintf-posix.h (test_function): Likewise.
58447         * tests/test-sprintf-posix.h (test_function): Likewise.
58448         Reported by Eric Blake.
58449
58450 2007-05-23  Eric Blake  <ebb9@byu.net>
58451
58452         Fix fseeko/ftello on cygwin 1.5.24.
58453         * doc/functions/fseeko.texi (fseeko): Document the fix.
58454         * doc/functions/ftello.texi (ftello): Document the fix.
58455         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
58456         * doc/functions/stdout.text (stdout): New file.
58457         * doc/functions/stderr.text (stderr): New file.
58458         * doc/gnulib.texi (Function Substitutes): Use new files.
58459         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
58460         prior to 1.7.0.
58461         * tests/test-ftello.c (main): Likewise for ftello.
58462         * tests/test-fseeko.sh: New file.
58463         * tests/test-ftello.sh: New file.
58464         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
58465         with seekable stdin.
58466         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
58467         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
58468         (gl_REPLACE_FSEEKO): New macro.
58469         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
58470         * modules/fseeko (Files): Distribute fseeko.c.
58471         * modules/ftello (Files): Distribute ftello.c.
58472         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
58473         mode.
58474         * lib/ftello.c (rpl_ftello): New file.
58475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
58476         fseeko, ftello.
58477         (gl_STDIN_LARGE_OFFSET): New macro.
58478         * modules/stdio (Makefile.am): Perform the replacement.
58479         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
58480
58481 2007-05-23  Bruno Haible  <bruno@clisp.org>
58482
58483         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
58484         GNULIB_POSIXCHECK is defined.
58485
58486 2007-05-21  Bruno Haible  <bruno@clisp.org>
58487
58488         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
58489         Check also the output for NaN arguments. When cross-compiling, guess
58490         no on IRIX.
58491         * lib/vasnprintf.c: Update comments.
58492         * tests/test-vasnprintf-posix.c (strisnan): New function.
58493         (test_function): Use it.
58494         * tests/test-vasprintf-posix.c (strisnan): New function.
58495         (test_function): Use it.
58496         * tests/test-snprintf-posix.h (strisnan): New function.
58497         (test_function): Use it.
58498         * tests/test-sprintf-posix.h (strisnan): New function.
58499         (test_function): Use it.
58500         Reported by Eric Blake.
58501
58502 2007-05-20  Bruno Haible  <bruno@clisp.org>
58503
58504         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
58505         numbers that fails on BeOS.
58506         * doc/functions/frexpl.texi: Update.
58507
58508 2007-05-20  Jim Meyering  <jim@meyering.net>
58509
58510         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
58511         forced upon us by glibc-2.6.
58512
58513 2007-05-20  Bruno Haible  <bruno@clisp.org>
58514
58515         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
58516         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
58517         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
58518         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
58519         NEED_PRINTF_INFINITE.
58520         (is_infinitel): New function.
58521         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
58522         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
58523         gl_PREREQ_VASNPRINTF_INFINITE.
58524         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
58525         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58526         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
58527         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
58528         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
58529         gl_PREREQ_VASNPRINTF_INFINITE.
58530         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58531         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58532         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58533         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58534         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58535         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58536         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58537         * doc/functions/fprintf.texi: Update.
58538         * doc/functions/printf.texi: Update.
58539         * doc/functions/snprintf.texi: Update.
58540         * doc/functions/sprintf.texi: Update.
58541         * doc/functions/vfprintf.texi: Update.
58542         * doc/functions/vprintf.texi: Update.
58543         * doc/functions/vsnprintf.texi: Update.
58544         * doc/functions/vsprintf.texi: Update.
58545
58546 2007-05-20  Bruno Haible  <bruno@clisp.org>
58547
58548         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
58549         was not found in libc.
58550         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58551
58552 2007-05-20  Bruno Haible  <bruno@clisp.org>
58553
58554         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58555         printed as "-nan" instead of "nan".
58556         * tests/test-vasprintf-posix.c (test_function): Likewise.
58557         * tests/test-snprintf-posix.h (test_function): Likewise.
58558         * tests/test-sprintf-posix.h (test_function): Likewise.
58559         Needed for HP-UX 11.
58560
58561 2007-05-20  Jim Meyering  <jim@meyering.net>
58562
58563         Fix buggy test for the fchownat-deref bug.
58564         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
58565         symlink required for the run-test.  Without it, this test would
58566         always declare that fchownat doesn't work, and client code would
58567         unnecessarily use the replacement function with fixed libc.
58568         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
58569         Reported by Greg Schafer.
58570
58571 2007-05-19  Bruno Haible  <bruno@clisp.org>
58572
58573         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
58574         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
58575         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
58576         Needed for IRIX 6.5 and Solaris 2.5.1.
58577
58578 2007-05-19  Bruno Haible  <bruno@clisp.org>
58579
58580         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
58581         (test_function): Skip tests involving -0.0 on platforms where
58582         -0.0 = 0.0.
58583         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
58584         (test_function): Skip tests involving -0.0 on platforms where
58585         -0.0 = 0.0.
58586         * tests/test-snprintf-posix.h (have_minus_zero): New function.
58587         (test_function): Skip tests involving -0.0 on platforms where
58588         -0.0 = 0.0.
58589         * tests/test-sprintf-posix.h (have_minus_zero): New function.
58590         (test_function): Skip tests involving -0.0 on platforms where
58591         -0.0 = 0.0.
58592         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
58593         tests.
58594         * tests/test-printf-posix.h (test_function): Likewise.
58595         * tests/test-printf-posix.output: Remove all -0.0 related results.
58596         Needed for IRIX 6.5.
58597
58598 2007-05-19  Bruno Haible  <bruno@clisp.org>
58599
58600         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58601         printed as "nan0x7fffffff" instead of "nan".
58602         * tests/test-vasprintf-posix.c (test_function): Likewise.
58603         * tests/test-snprintf-posix.h (test_function): Likewise.
58604         * tests/test-sprintf-posix.h (test_function): Likewise.
58605         * tests/test-fprintf-posix.h (NaN): Remove macro.
58606         (test_function): Remove all NaN related tests.
58607         * tests/test-printf-posix.h (NaN): Remove macro.
58608         (test_function): Remove all NaN related tests.
58609         * tests/test-printf-posix.output: Remove all NaN related results.
58610         Needed for IRIX 6.5.
58611
58612 2007-05-19  Bruno Haible  <bruno@clisp.org>
58613
58614         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
58615         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
58616
58617 2007-05-19  Bruno Haible  <bruno@clisp.org>
58618
58619         * lib/float_.h: New file.
58620         * m4/float_h.m4: New file.
58621         * modules/float: New file.
58622         * modules/isnanl (Dependencies): Add float.
58623         * modules/isnanl-nolibm (Dependencies): Likewise.
58624         * modules/mathl (Dependencies): Likewise.
58625         * modules/printf-frexpl (Dependencies): Likewise.
58626         * modules/signbit (Dependencies): Likewise.
58627         * modules/vasnprintf (Dependencies): Likewise.
58628         * doc/headers/float.texi: Update.
58629
58630 2007-05-19  Jim Meyering  <jim@meyering.net>
58631
58632         * lib/utimens.c (gl_futimens): Rename from futimens,
58633         now that glibc-2.6 declares futimens.
58634         * lib/utimens.h: Likewise.
58635
58636 2007-05-19  Bruno Haible  <bruno@clisp.org>
58637
58638         Avoid test failures on mingw.
58639         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
58640         * tests/test-printf-posix.sh: Likewise.
58641         * tests/test-vfprintf-posix.sh: Likewise.
58642         * tests/test-vprintf-posix.sh: Likewise.
58643
58644 2007-05-19  Bruno Haible  <bruno@clisp.org>
58645
58646         Fix *printf result for NaN, Inf, -0.0 on mingw.
58647         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
58648         * lib/vasnprintf.c: Include math.h and isnan.h.
58649         (is_infinite_or_zero): New function.
58650         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
58651         values in the %f, %F, %e, %E, %g, %G directives.
58652         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
58653         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58654         gl_PRINTF_INFINITE and test its result. Invoke
58655         gl_PREREQ_VASNPRINTF_INFINITE.
58656         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58657         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58658         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58659         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58660         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58661         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58662         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58663         * doc/functions/fprintf.texi: Update.
58664         * doc/functions/printf.texi: Update.
58665         * doc/functions/snprintf.texi: Update.
58666         * doc/functions/sprintf.texi: Update.
58667         * doc/functions/vfprintf.texi: Update.
58668         * doc/functions/vprintf.texi: Update.
58669         * doc/functions/vsnprintf.texi: Update.
58670         * doc/functions/vsprintf.texi: Update.
58671
58672 2007-05-19  Bruno Haible  <bruno@clisp.org>
58673
58674         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
58675         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
58676         Instead of multiplying with 10^k, set extra_zeroes to k.
58677         (scale10_round_long_double): Remove function.
58678
58679 2007-05-18  Bruno Haible  <bruno@clisp.org>
58680
58681         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
58682         introduced on 2007-05-06.
58683
58684 2007-05-18  Bruno Haible  <bruno@clisp.org>
58685
58686         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
58687         %g directives.
58688         * tests/test-vasprintf-posix.c (test_function): Likewise.
58689         * tests/test-snprintf-posix.h (test_function): Likewise.
58690         * tests/test-sprintf-posix.h (test_function): Likewise.
58691
58692 2007-05-18  Bruno Haible  <bruno@clisp.org>
58693
58694         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
58695         (strmatch): New function.
58696         (test_function): Test the %f directive on numbers of various exponents.
58697         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
58698         (strmatch): New function.
58699         (test_function): Test the %f directive on numbers of various exponents.
58700         * tests/test-snprintf-posix.h (strmatch): New function.
58701         (test_function): Test the %f directive on numbers of various exponents.
58702         * tests/test-sprintf-posix.h (strmatch): New function.
58703         (test_function): Test the %f directive on numbers of various exponents.
58704         * tests/test-snprintf-posix.c (SIZEOF): New macro.
58705         * tests/test-sprintf-posix.c (SIZEOF): New macro.
58706         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
58707         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
58708
58709 2007-05-18  Bruno Haible  <bruno@clisp.org>
58710
58711         Add support for 'long double' number output.
58712         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
58713         * lib/vasnprintf.c: Include math.h and float+.h.
58714         (mp_limb_t): New type.
58715         (GMP_LIMB_BITS): New macro.
58716         (mp_twolimb_t): New type.
58717         (GMP_TWOLIMB_BITS): New macro.
58718         (mpn_t): New type.
58719         (multiply, divide, convert_to_decimal, decode_long_double,
58720         scale10_round_long_double, scale10_round_decimal_long_double,
58721         floorlog10l): New functions.
58722         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
58723         for the %f, %F, %e, %E, %g, %G directives.
58724         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
58725         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58726         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
58727         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
58728         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58729         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58730         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58731         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58732         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58733         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58734         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58735         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
58736         * modules/snprintf-posix (Depends-on): Likewise.
58737         * modules/sprintf-posix (Depends-on): Likewise.
58738         * modules/vasnprintf-posix (Depends-on): Likewise.
58739         * modules/vasprintf-posix (Depends-on): Likewise.
58740         * modules/vfprintf-posix (Depends-on): Likewise.
58741         * modules/vsnprintf-posix (Depends-on): Likewise.
58742         * modules/vsprintf-posix (Depends-on): Likewise.
58743         * modules/vasnprintf (Files): Add lib/float+.h.
58744         * doc/functions/fprintf.texi: Update.
58745         * doc/functions/printf.texi: Update.
58746         * doc/functions/snprintf.texi: Update.
58747         * doc/functions/sprintf.texi: Update.
58748         * doc/functions/vfprintf.texi: Update.
58749         * doc/functions/vprintf.texi: Update.
58750         * doc/functions/vsnprintf.texi: Update.
58751         * doc/functions/vsprintf.texi: Update.
58752
58753 2007-05-18  Bruno Haible  <bruno@clisp.org>
58754
58755         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
58756
58757 2007-05-18  Bruno Haible  <bruno@clisp.org>
58758
58759         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
58760         for printing 64-bit integers. Needed for mingw.
58761
58762 2007-05-18  Bruno Haible  <bruno@clisp.org>
58763
58764         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58765         gl_FUNC_FREXPL_WORKS.
58766         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
58767
58768 2007-05-18  Bruno Haible  <bruno@clisp.org>
58769
58770         * modules/frexpl-nolibm-tests: New file.
58771
58772         * modules/frexpl-nolibm: New file.
58773         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
58774
58775 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58776
58777         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
58778         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58779         GCC 4.2, which otherwise issues a lot of warnings.
58780         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
58781         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
58782         Likewise.
58783         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
58784         * modules/iconv_open (iconv.h): Likewise.
58785         * modules/locale (locale.h): Likewise.
58786         * modules/netinet_in (netinet/in.h): Likewise.
58787         * modules/sys_select (sys_select.h): Likewise.
58788         * modules/sys_socket (sys/socket.h): Likewise.
58789         * modules/sys_stat (sys/stat.h): Likewise.
58790         * modules/sysexits (sysexits.h): Likewise.
58791         * modules/unistd (unistd.h): Likewise.
58792
58793 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58794
58795         * modules/closein-tests (Makefile.am): Distribute
58796         `test-closein.sh'.
58797
58798 2007-05-17  Bruno Haible  <bruno@clisp.org>
58799
58800         * tests/test-printf-posix.output: Renamed from
58801         tests/test-fprintf-posix.out.
58802         * modules/fprintf-posix-tests: Update.
58803         * modules/printf-posix-tests: Update.
58804         * modules/vfprintf-posix-tests: Update.
58805         * modules/vprintf-posix-tests: Update.
58806         * tests/test-fprintf-posix.sh: Update.
58807         * tests/test-printf-posix.sh: Update.
58808         * tests/test-vfprintf-posix.sh: Update.
58809         * tests/test-vprintf-posix.sh: Update.
58810         Reported by Ralf Wildenhues.
58811
58812 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58813
58814         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
58815         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58816         GCC 4.2, which otherwise issues a lot of warnings.
58817         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
58818         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
58819         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
58820         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
58821         it should no longer be needed.
58822         * lib/string_.h: Likewise.
58823         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
58824         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
58825         * modules/inttypes (inttypes.h): Likewise.
58826         * modules/math (math.h): Likewise.
58827         * modules/search (search.h): Likewise.
58828         * modules/signal (signal.h): Likewise.
58829         * modules/stdint (stdint.h): Likewise.
58830         * modules/stdio (stdio.h): Likewise.
58831         * modules/stdlib (stdlib.h): Likewise.
58832         * modules/string (string.h): Likewise.
58833         * modules/sys_time (sys/time.h): Likewise.
58834         * modules/time (time.h): Likewise.
58835         * modules/wchar (wchar.h): Likewise.
58836         * modules/wctype (wtype.h): Likewise.
58837
58838 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58839
58840         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
58841
58842 2007-05-13  Bruno Haible  <bruno@clisp.org>
58843
58844         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
58845         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58846         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
58847         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58848         (gl_PREREQ_STRTOK_R): Don't require it here.
58849
58850 2007-05-13  Bruno Haible  <bruno@clisp.org>
58851
58852         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
58853         when used in C++ mode.
58854
58855 2007-05-12  Bruno Haible  <bruno@clisp.org>
58856
58857         * lib/linebuffer.h: Tweak doc.
58858         * lib/linebuffer.c: Likewise.
58859
58860 2007-05-12  James Youngman  <jay@gnu.org>
58861
58862         * lib/linebuffer.c (readlinebuffer_delim): New function,
58863         like readlinebuffer, but use a caller-specified delimiter.
58864         (readlinebuffer): Just call readlinebuffer_delim with '\n'
58865         as the delimiter.
58866         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
58867
58868 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58869
58870         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
58871         * modules/openat (Files): Remove openat-die.c.
58872         (Depends-on): Add openat-die.
58873         * modules/openat-die: New module.
58874
58875 2007-05-06  Bruno Haible  <bruno@clisp.org>
58876
58877         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
58878         Update with info about Cygwin.
58879         * doc/functions/fprintf.texi: Update.
58880         * doc/functions/printf.texi: Update.
58881         * doc/functions/snprintf.texi: Update.
58882         * doc/functions/sprintf.texi: Update.
58883         * doc/functions/vfprintf.texi: Update.
58884         * doc/functions/vprintf.texi: Update.
58885         * doc/functions/vsnprintf.texi: Update.
58886         * doc/functions/vsprintf.texi: Update.
58887         Reported by Eric Blake.
58888
58889 2007-05-06  Bruno Haible  <bruno@clisp.org>
58890
58891         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
58892         padding ourselves for the floating-point directives.
58893         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
58894         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
58895         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58896         gl_PRINTF_FLAG_ZERO and test its result. Invoke
58897         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
58898         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58899         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58900         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58901         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58902         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58903         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58904         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58905         * tests/test-snprintf-posix.h (test_function): Also check the width
58906         and some flags in the %f directive.
58907         * tests/test-sprintf-posix.h (test_function): Likewise.
58908         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58909         * tests/test-vasprintf-posix.c (test_function): Likewise.
58910         * doc/functions/fprintf.texi: Update.
58911         * doc/functions/printf.texi: Update.
58912         * doc/functions/snprintf.texi: Update.
58913         * doc/functions/sprintf.texi: Update.
58914         * doc/functions/vfprintf.texi: Update.
58915         * doc/functions/vprintf.texi: Update.
58916         * doc/functions/vsnprintf.texi: Update.
58917         * doc/functions/vsprintf.texi: Update.
58918
58919 2007-05-06  Bruno Haible  <bruno@clisp.org>
58920
58921         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
58922         pass the ' flag character to sprintf or snprintf.
58923         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
58924         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
58925         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58926         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
58927         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
58928         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58929         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58930         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58931         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58932         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58933         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58934         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58935         * tests/test-snprintf-posix.h (test_function): Also check the grouping
58936         flag.
58937         * tests/test-sprintf-posix.h (test_function): Likewise.
58938         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58939         * tests/test-vasprintf-posix.c (test_function): Likewise.
58940         * doc/functions/fprintf.texi: Update.
58941         * doc/functions/printf.texi: Update.
58942         * doc/functions/snprintf.texi: Update.
58943         * doc/functions/sprintf.texi: Update.
58944         * doc/functions/vfprintf.texi: Update.
58945         * doc/functions/vprintf.texi: Update.
58946         * doc/functions/vsnprintf.texi: Update.
58947         * doc/functions/vsprintf.texi: Update.
58948
58949 2007-05-01  Bruno Haible  <bruno@clisp.org>
58950
58951         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
58952
58953 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
58954
58955         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
58956         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
58957
58958 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58959
58960         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
58961         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
58962         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
58963
58964 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
58965
58966         * lib/argp-help.c (struct hol_entry): New member `ord'.
58967         (HOL_ENTRY_PTRCMP): Use ord for comparison
58968         (hol_sort): Initialize ord.
58969
58970 2007-05-01  Bruno Haible  <bruno@clisp.org>
58971
58972         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
58973         Reported by Eric Blake.
58974         * doc/gnulib.texi (Function Substitutes): Update.
58975
58976 2007-05-01  Bruno Haible  <bruno@clisp.org>
58977
58978         * doc/functions.texi: Remove file, now redundant through
58979         doc/functions/*.texi.
58980
58981 2007-05-01  Bruno Haible  <bruno@clisp.org>
58982
58983         * modules/argp (Depends-on): Add sleep.
58984
58985 2007-05-01  Bruno Haible  <bruno@clisp.org>
58986
58987         * modules/sleep-tests: New file.
58988         * tests/test-sleep.c: New file.
58989
58990         * modules/sleep: New file.
58991         * lib/sleep.c: New file.
58992         * m4/sleep.m4: New file.
58993         * lib/unistd_.h (sleep): New declaration.
58994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
58995         HAVE_SLEEP.
58996         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
58997         * doc/functions/sleep.texi: Document the sleep module.
58998
58999 2007-05-01  Bruno Haible  <bruno@clisp.org>
59000
59001         * lib/sigprocmask.h: Remove file.
59002         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59003         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59004         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59005         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59006         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59007         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59008         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59009         HAVE_SIGSET_T as a shell variable.
59010         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59011         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59012         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59013         (Depends-on): Add signal. Remove verify.
59014         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59015         (Include): Mention <signal.h> instead of sigprocmask.h.
59016         * NEWS: Mention the change.
59017         * lib/fatal-signal.c: Don't include sigprocmask.h.
59018
59019 2007-05-01  Bruno Haible  <bruno@clisp.org>
59020
59021         * modules/signal: New file.
59022         * lib/signal_.h: New file.
59023         * m4/signal_h.m4: New file.
59024
59025 2007-05-01  Bruno Haible  <bruno@clisp.org>
59026
59027         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59028         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59029         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59030         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59031
59032 2007-05-01  Bruno Haible  <bruno@clisp.org>
59033
59034         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59035         configure time.
59036         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59037         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59038         * modules/sys_stat (Makefile.am): Substitute their values into
59039         sys/stat.h.
59040
59041 2007-05-01  Bruno Haible  <bruno@clisp.org>
59042
59043         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59044         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59045         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59046
59047 2007-05-01  Bruno Haible  <bruno@clisp.org>
59048
59049         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59050         'assert' module here.
59051
59052 2007-05-01  Bruno Haible  <bruno@clisp.org>
59053
59054         * doc/functions/*.texi: New files.
59055         * doc/functions/google-ranking.txt: New file.
59056         * doc/gnulib.texi (Function Substitutes): New chapter.
59057         (ctime, inet_ntoa): Remove sections.
59058         * doc/ctime.texi: Remove file.
59059         * doc/inet_ntoa.texi: Remove file.
59060         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59061         dependencies.
59062         (%.info): New rule, specifying a --reference-limit.
59063
59064 2007-05-01  Bruno Haible  <bruno@clisp.org>
59065
59066         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59067
59068 2007-05-01  Bruno Haible  <bruno@clisp.org>
59069
59070         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59071         the portability of 'mkdir' to mingw systems.
59072
59073 2007-05-01  Bruno Haible  <bruno@clisp.org>
59074
59075         * doc/headers/google-ranking.txt: New file.
59076
59077 2007-04-30  Eric Blake  <ebb9@byu.net>
59078
59079         Prefer fseeko to fseek.
59080         * modules/getpass (Depends-on): Add fseeko.
59081         * lib/getpass.c (getpass): Use fseeko, not fseek.
59082
59083 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59084
59085         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59086         assumes the sorting is stable, while most qsort implementations
59087         are not.  Use argument addresses to ensure they never compare as
59088         equal.
59089
59090         * tests/test-argp-2.sh (usage-indent test): Fix output
59091         (func_compare): Restore diff options
59092         * tests/test-argp.c: Restore #include "progname.h"
59093
59094 2007-04-29  Bruno Haible  <bruno@clisp.org>
59095
59096         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59097         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59098         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59099         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59100         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59101         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59102         (TESTS, check_PROGRAMS): Add test-snprintf.
59103         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59104         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59105         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59106         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59107         assertions that fail on HP-UX, OSF/1, or IRIX.
59108         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59109
59110 2007-04-29  Bruno Haible  <bruno@clisp.org>
59111
59112         * MODULES.html.sh (posix_functions): Remove 'contents'.
59113
59114 2007-04-29  Karl Berry  <karl@gnu.org>
59115
59116         * config/srclist.txt (gendocs_template_min): new entry.
59117
59118 2007-04-29  Bruno Haible  <bruno@clisp.org>
59119
59120         Work around fpurge bug on BSD systems.
59121         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59122         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59123         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59124         fpurge to rpl_fpurge if the system already has this function.
59125         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59126         the case where the system already has this function. Correct invariants
59127         on BSD systems.
59128         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59129         BSD systems.
59130
59131 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59132
59133         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59134         proposed by Sven Verdoolaege.
59135
59136         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59137         options.
59138         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59139         (usage and help tests): Update
59140
59141 2007-04-29  Bruno Haible  <bruno@clisp.org>
59142
59143         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59144         Print more information in case of failure. Disable a test on BeOS.
59145
59146 2007-04-29  Bruno Haible  <bruno@clisp.org>
59147
59148         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59149         This helps debugging on systems on which no gdb is available.
59150
59151 2007-04-29  Bruno Haible  <bruno@clisp.org>
59152
59153         * lib/freading.h: Improve comments.
59154         * lib/fwriting.h: Likewise.
59155         * tests/test-freading.c (main): Don't check freading immediately after
59156         repositioning. Needed for glibc.
59157
59158 2007-04-29  Bruno Haible  <bruno@clisp.org>
59159
59160         * lib/freading.c (freading): Trivial simplification.
59161
59162 2007-04-28  Bruno Haible  <bruno@clisp.org>
59163
59164         * tests/test-fwriting.c (main): Also test the interaction between
59165         fflush and fwriting.
59166         * modules/fwriting-tests (Depends-on): Add fflush.
59167
59168         * tests/test-freading.c (main): Also test the interaction between
59169         fflush and freading.
59170         * modules/freading-tests (Depends-on): Add fflush.
59171
59172 2007-04-28  Bruno Haible  <bruno@clisp.org>
59173
59174         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59175         fseeko and ftello.
59176         Suggested by Eric Blake.
59177
59178 2007-04-28  Jim Meyering  <jim@meyering.net>
59179
59180         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59181         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59182         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59183
59184 2007-04-27  Eric Blake  <ebb9@byu.net>
59185
59186         * doc/headers/assert.texi (assert.h): Document assert module use.
59187
59188 2007-04-27  Bruno Haible  <bruno@clisp.org>
59189
59190         * doc/headers/*.texi: New files.
59191         * doc/gnulib.texi (Header File Substitutes): New chapter.
59192         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59193         dependencies.
59194         (standards.info ,standards.html, standards.dvi): Update dependencies.
59195         (mostlyclean, clean): New targets.
59196
59197 2007-04-27  Bruno Haible  <bruno@clisp.org>
59198
59199         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59200         * modules/sysexits (Files, Makefile.am): Update.
59201
59202         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59203         * modules/sys_socket (Files, Makefile.am): Update.
59204
59205         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59206         * modules/sys_stat (Files, Makefile.am): Update.
59207
59208 2007-04-27  Eric Blake  <ebb9@byu.net>
59209
59210         * lib/freading.h: Improve comments.
59211         * lib/fwriting.h: Likewise.
59212         * lib/fflush.c: Likewise.
59213
59214         Fix closein for mingw.
59215         * modules/closein-tests: Add tests for closein.
59216         * tests/test-closein.c: New file.
59217         * tests/test-closein.sh: Likewise.
59218         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59219         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59220
59221 2007-04-27  Bruno Haible  <bruno@clisp.org>
59222
59223         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59224         version is < 6.
59225         * lib/math_.h [__DECC]: Likewise.
59226         * lib/stdio_.h [__DECC]: Likewise.
59227         * lib/stdlib_.h [__DECC]: Likewise.
59228         * lib/string_.h [__DECC]: Likewise.
59229         * lib/time_.h [__DECC]: Likewise.
59230         * lib/wchar_.h [__DECC]: Likewise.
59231         * lib/wctype_.h [__DECC]: Likewise.
59232
59233 2007-04-27  Bruno Haible  <bruno@clisp.org>
59234
59235         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59236
59237 2007-04-27  Bruno Haible  <bruno@clisp.org>
59238
59239         * lib/fflush.c: Add comments.
59240         * modules/fpurge-tests (Depends-on): Add fflush.
59241         * modules/freadable-tests (Depends-on): Likewise.
59242         * modules/fwritable-tests (Depends-on): Likewise.
59243
59244 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
59245
59246         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
59247         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
59248         Report by Bruno Haible <bruno@clisp.org>.
59249
59250 2007-04-26  Eric Blake  <ebb9@byu.net>
59251
59252         Fix fflush on mingw.
59253         * modules/fflush (Depends-on): Add freading.
59254         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
59255         but unread data.
59256
59257 2007-04-26  Eric Blake  <ebb9@byu.net>
59258         and Bruno Haible  <bruno@clisp.org>
59259
59260         Implement freading and fwriting.
59261         * lib/freading.c: New file.
59262         * lib/freading.h: Likewise.
59263         * m4/freading.m4: Likewise.
59264         * modules/freading: Likewise.
59265         * modules/freading-tests: Likewise.
59266         * tests/test-freading.c: Likewise.
59267         * lib/fwriting.c: New file.
59268         * lib/fwriting.h: Likewise.
59269         * m4/fwriting.m4: Likewise.
59270         * modules/fwriting: Likewise.
59271         * modules/fwriting-tests: Likewise.
59272         * tests/test-fwriting.c: Likewise.
59273         * MODULES.html.sh (File stream based Input/Output): Mention them.
59274
59275 2007-04-26  Bruno Haible  <bruno@clisp.org>
59276
59277         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
59278         'long' when we assume it.
59279         Suggested by Eric Blake.
59280
59281 2007-04-26  Bruno Haible  <bruno@clisp.org>
59282
59283         Ensure fseeko, ftello are declared on glibc systems.
59284         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
59285         * modules/fseeko (configure.ac-early): Likewise.
59286         * modules/ftello (configure.ac-early): Likewise.
59287         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
59288         AC_FUNC_FSEEKO for this.
59289         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
59290         (gl_CHECK_FSEEKO): Remove macro.
59291
59292 2007-04-26  Bruno Haible  <bruno@clisp.org>
59293
59294         * tests/test-fflush.c (main): Also check the ftell result after
59295         fflush and fseek/fseeko.
59296         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
59297         file descriptor position cache in the stream.
59298         * lib/fseeko.c (rpl_fseeko): Likewise.
59299
59300 2007-04-26  Bruno Haible  <bruno@clisp.org>
59301
59302         * modules/fflush-tests (Depends-on): Add fseeko.
59303
59304 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
59305             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59306
59307         * lib/argz_.h: ensure error_t definition is obtained in same
59308         mechanism system argz.h would have.
59309         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
59310         argz facilities are known bad.  Err on the side of caution if
59311         cross-compiling.
59312
59313 2007-04-25  Eric Blake  <ebb9@byu.net>
59314
59315         * lib/fpurge.c (includes): Use stdlib.h for free.
59316         * tests/test-fflush.c (main): Also test fflush-fseeko.
59317
59318 2007-04-25  Bruno Haible  <bruno@clisp.org>
59319
59320         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
59321         * lib/fseeko.c: New file.
59322         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
59323         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
59324         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
59325         gl_FUNC_FSEEKO.
59326         (gl_FUNC_FSEEKO): Invoke it.
59327         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
59328         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
59329         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
59330
59331 2007-04-25  Bruno Haible  <bruno@clisp.org>
59332
59333         * modules/fflush (Depends-on): Add ftello.
59334
59335 2007-04-25  Bruno Haible  <bruno@clisp.org>
59336
59337         * modules/ftello-tests: New file.
59338         * tests/test-ftello.c: New file.
59339
59340         * modules/ftello: New file.
59341         * m4/ftello.m4: New file.
59342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
59343         HAVE_FTELLO.
59344         * lib/stdio_.h (ftello): New declaration.
59345         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59346         HAVE_FTELLO.
59347
59348 2007-04-25  Bruno Haible  <bruno@clisp.org>
59349
59350         * modules/fseeko-tests: New file.
59351         * tests/test-fseeko.c: New file.
59352
59353         * modules/fseeko: New file.
59354         * m4/fseeko.m4: New file.
59355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59356         HAVE_FSEEKO.
59357         * lib/stdio_.h (fseeko): New declaration.
59358         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59359         HAVE_FSEEKO.
59360
59361 2007-04-25  Bruno Haible  <bruno@clisp.org>
59362
59363         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59364
59365 2007-04-25  Bruno Haible  <bruno@clisp.org>
59366
59367         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59368         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59369         * tests/test-unistd.c: Likewise.
59370         * tests/test-fcntl.c: Likewise.
59371
59372 2007-04-23  Eric Blake  <ebb9@byu.net>
59373
59374         * lib/fflush.c: Fix missing include.
59375         Reported by Bruno Haible.
59376
59377 2007-04-23  Bruno Haible  <bruno@clisp.org>
59378
59379         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
59380         Reported by Eric Blake.
59381
59382 2007-04-23  Bruno Haible  <bruno@clisp.org>
59383
59384         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
59385
59386 2007-04-23  Bruno Haible  <bruno@clisp.org>
59387
59388         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
59389
59390 2007-04-23  Bruno Haible  <bruno@clisp.org>
59391
59392         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
59393         Needed on HP-UX 11.
59394
59395 2007-04-16  Eric Blake  <ebb9@byu.net>
59396
59397         Make fflush rely on fpurge.
59398         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
59399         open coding all variants.
59400         * modules/fflush (Depends-on): Add fpurge and unistd.
59401         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
59402         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
59403
59404         Fix --with-tests compilation on cygwin.
59405         * modules/argmatch-tests (Makefile.am): List gnulib library first
59406         in LDADD.
59407         * modules/argp-tests (Makefile.am): Likewise.
59408         * modules/array-list-tests (Makefile.am): Likewise.
59409         * modules/array-oset-tests (Makefile.am): Likewise.
59410         * modules/avltree-list-tests (Makefile.am): Likewise.
59411         * modules/avltree-oset-tests (Makefile.am): Likewise.
59412         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59413         * modules/carray-list-tests (Makefile.am): Likewise.
59414         * modules/dirname-tests (Makefile.am): Likewise.
59415         * modules/frexp-tests (Makefile.am): Likewise.
59416         * modules/isnanl-tests (Makefile.am): Likewise.
59417         * modules/linked-list-tests (Makefile.am): Likewise.
59418         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59419         * modules/lock-tests (Makefile.am): Likewise.
59420         * modules/rbtree-list-tests (Makefile.am): Likewise.
59421         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59422         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59423         * modules/tls-tests (Makefile.am): Likewise.
59424         * modules/tsearch-tests (Makefile.am): Likewise.
59425         * modules/xvasprintf-tests (Makefile.am): Likewise.
59426
59427         Fix fpurge for cygwin.
59428         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
59429         value.
59430         * modules/fpurge-tests (Depends-on): Clean up trash.
59431
59432 2007-04-16  Simon Josefsson  <simon@josefsson.org>
59433
59434         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
59435
59436         * m4/autobuild.m4: Re-indent.
59437
59438 2007-04-13  Bruno Haible  <bruno@clisp.org>
59439
59440         * modules/fpurge-tests: New file.
59441         * tests/test-fpurge.c: New file.
59442
59443         * modules/fpurge: New file.
59444         * lib/fpurge.h: New file.
59445         * lib/fpurge.c: New file.
59446         * m4/fpurge.m4: New file.
59447
59448 2007-04-13  Bruno Haible  <bruno@clisp.org>
59449
59450         * modules/fbufmode-tests: New file.
59451         * tests/test-fbufmode.c: New file.
59452
59453         * modules/fbufmode: New file.
59454         * lib/fbufmode.h: New file.
59455         * lib/fbufmode.c: New file.
59456         * m4/fbufmode.m4: New file.
59457
59458 2007-04-13  Bruno Haible  <bruno@clisp.org>
59459
59460         * modules/fwritable-tests: New file.
59461         * tests/test-fwritable.c: New file.
59462
59463         * modules/fwritable: New file.
59464         * lib/fwritable.h: New file.
59465         * lib/fwritable.c: New file.
59466         * m4/fwritable.m4: New file.
59467
59468 2007-04-13  Bruno Haible  <bruno@clisp.org>
59469
59470         * modules/freadable-tests: New file.
59471         * tests/test-freadable.c: New file.
59472
59473         * modules/freadable: New file.
59474         * lib/freadable.h: New file.
59475         * lib/freadable.c: New file.
59476         * m4/freadable.m4: New file.
59477
59478 2007-04-13  Bruno Haible  <bruno@clisp.org>
59479
59480         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
59481         MOSTLYCLEANFILES.
59482
59483 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59484
59485         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
59486         gzip bootstrap.conf to avoid dragging in i18n machinery.
59487         (gnulib_tool_option): Use it.
59488
59489 2007-04-13  Bruno Haible  <bruno@clisp.org>
59490
59491         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
59492         %F directives.
59493         * tests/test-vasprintf-posix.c (test_function): Likewise.
59494         * tests/test-snprintf-posix.h (test_function): Likewise.
59495         * tests/test-sprintf-posix.h (test_function): Likewise.
59496         * tests/test-fprintf-posix.h (test_function): Likewise.
59497         * tests/test-printf-posix.h (test_function): Likewise.
59498         * tests/test-fprintf-posix.out: Likewise.
59499
59500 2007-04-13  Bruno Haible  <bruno@clisp.org>
59501
59502         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
59503         * modules/tls-tests (configure.ac): Likewise.
59504         Reported by Arto C. Nirkko <anirkko@insel.ch>.
59505
59506 2007-04-13  Bruno Haible  <bruno@clisp.org>
59507
59508         * lib/tls.c (glthread_tls_get): Fix return type.
59509         Patch by Arto C. Nirkko <anirkko@insel.ch>.
59510
59511 2007-04-12  Eric Blake  <ebb9@byu.net>
59512
59513         * modules/gettime (Depends-on): Remove gettime.
59514         Reported by Dmitry V. Levin.
59515
59516 2007-04-12  Bruno Haible  <bruno@clisp.org>
59517
59518         * modules/fflush (Include): Mention <stdio.h>.
59519         * modules/strtoimax (Include): Mention <inttypes.h>.
59520         * modules/strtoumax (Include): Likewise.
59521
59522 2007-04-12  Eric Blake  <ebb9@byu.net>
59523
59524         * .cvsignore: New file.
59525         * .gitignore: Likewise.
59526
59527 2007-04-12  Bruno Haible  <bruno@clisp.org>
59528
59529         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
59530         not before, since $(LDADD) often contains libgnu.a.
59531         * modules/striconv-tests (test_striconv_LDADD): Likewise.
59532         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
59533         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
59534         Needed on Cygwin.
59535
59536 2007-04-12  Eric Blake  <ebb9@byu.net>
59537
59538         Work around glibc's failure to flush stdin on fclose.
59539         * lib/closein.c (close_stdin): Flush stdin before closing.
59540
59541         Work around glibc's failure to reset seekable stdin on exit.
59542         * modules/closein: New module.
59543         * lib/closein.c: New file.
59544         * lib/closein.h: Likewise.
59545         * m4/closein.m4: Likewise.
59546         * MODULES.html.sh (File stream based Input/Output): Document it.
59547
59548 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59549
59550         * gnulib-tool: Rename generated 'autobuild' script to
59551         'do-autobuild' in --create-megatestdir output.
59552
59553         * doc/gnulib.texi (Build robot for gnulib): Fix.
59554
59555 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59556
59557         * modules/sysexits (Depends-on): Add absolute-header.
59558
59559 2007-04-12  Eric Blake  <ebb9@byu.net>
59560
59561         No need to preserve errno on success.
59562         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
59563         Reported by Bruno Haible.
59564
59565 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59566
59567         * MODULES.html.sh (Support for maintaining and releasing
59568         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
59569
59570 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59571
59572         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
59573
59574 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59575
59576         * modules/autobuild: New module.
59577
59578         * m4/autobuild.m4: New file.
59579
59580 2007-04-11  Bruno Haible  <bruno@clisp.org>
59581
59582         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
59583         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
59584         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
59585         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
59586         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59587         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59588         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59589         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59590         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59591         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59592         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
59593         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59594         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59595         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
59596         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59597         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59598         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
59599         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59600         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59601         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
59602         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59603         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59604         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
59605         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59606         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59607         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
59608         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59609         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59610         Reported by Eric Blake.
59611
59612 2007-04-11  Bruno Haible  <bruno@clisp.org>
59613
59614         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
59615
59616 2007-04-10  Bruno Haible  <bruno@clisp.org>
59617
59618         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
59619         for NaN and Infinity. Needed on FreeBSD 6.1.
59620         * tests/test-vasnprintf-posix.c (test_function): Undo last change
59621         regarding results for "%010a" of Infinity and NaN.
59622         * tests/test-vasprintf-posix.c (test_function): Likewise.
59623         * tests/test-snprintf-posix.h (test_function): Likewise.
59624         * tests/test-sprintf-posix.h (test_function): Likewise.
59625         * tests/test-fprintf-posix.h (test_function): Likewise.
59626         * tests/test-printf-posix.h (test_function): Likewise.
59627         * tests/test-fprintf-posix.out: Likewise.
59628
59629 2007-04-10  Bruno Haible  <bruno@clisp.org>
59630
59631         * modules/locale-tests: New file.
59632         * tests/test-locale.c: New file.
59633
59634         * modules/locale: New file.
59635         * lib/locale_.h: New file.
59636         * m4/locale_h.m4: New file.
59637
59638 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
59639             Bruno Haible  <bruno@clisp.org>
59640
59641         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
59642         be determined, test for availability of the copysignf, copysign,
59643         copysignl functions.
59644         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
59645         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
59646         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
59647
59648 2007-04-09  Eric Blake  <ebb9@byu.net>
59649
59650         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
59651         * modules/stdio (Makefile.am): Support fflush.
59652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59653         * modules/fflush: New file.
59654         * lib/fflush.c: Likewise.
59655         * m4/fflush.m4: Likewise.
59656         * modules/fflush-tests: New test.
59657         * tests/test-fflush.c: Likewise.
59658         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
59659
59660 2007-04-06  Bruno Haible  <bruno@clisp.org>
59661
59662         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
59663         (VASNPRINTF): Use signbit for faster determination whether to print a
59664         minus sign.
59665         * modules/vasnprintf (Files): Remove lib/float+.h.
59666         * modules/fprintf-posix (Depends-on): Add signbit.
59667         * modules/snprintf-posix (Depends-on): Likewise.
59668         * modules/sprintf-posix (Depends-on): Likewise.
59669         * modules/vasnprintf-posix (Depends-on): Likewise.
59670         * modules/vasprintf-posix (Depends-on): Likewise.
59671         * modules/vfprintf-posix (Depends-on): Likewise.
59672         * modules/vsnprintf-posix (Depends-on): Likewise.
59673         * modules/vsprintf-posix (Depends-on): Likewise.
59674
59675 2007-04-06  Bruno Haible  <bruno@clisp.org>
59676
59677         * tests/test-frexp.c (main): Test also the sign bit of zero results.
59678         * tests/test-frexpl.c (main): Likewise.
59679         * tests/test-ldexpl.c (main): Likewise.
59680         * modules/frexp-tests (Depends-on): Add signbit.
59681         * modules/frexpl-tests (Depdends-on): Likewise.
59682         * modules/ldexpl-tests (Depdends-on): Likewise.
59683
59684 2007-04-06  Bruno Haible  <bruno@clisp.org>
59685
59686         * modules/signbit-tests: New file.
59687         * tests/test-signbit.c: New file.
59688
59689         * modules/signbit: New file.
59690         * lib/signbitf.c: New file.
59691         * lib/signbitd.c: New file.
59692         * lib/signbitl.c: New file.
59693         * m4/signbit.m4: New file.
59694         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
59695         (signbit): New macro.
59696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
59697         REPLACE_SIGNBIT.
59698         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
59699         REPLACE_FREXPL into math.h.
59700
59701 2007-04-06  Bruno Haible  <bruno@clisp.org>
59702
59703         * modules/isnanf-nolibm-tests: New file.
59704         * tests/test-isnanf.c: New file.
59705
59706         * modules/isnanf-nolibm: New file.
59707         * lib/isnanf.h: New file.
59708         * lib/isnanf.c: New file.
59709         * lib/isnan.c: Consider the USE_FLOAT macro.
59710         * m4/isnanf.m4: New file.
59711
59712 2007-04-06  Bruno Haible  <bruno@clisp.org>
59713
59714         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
59715         (Link): New section.
59716
59717         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
59718
59719 2007-04-06  Bruno Haible  <bruno@clisp.org>
59720
59721         Assume the 'long double' type.
59722         * m4/longdouble.m4: Remove file.
59723         * config/srclist.txt: Don't mention longdouble.m4.
59724         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
59725         * lib/float+.h: Likewise.
59726         * lib/frexp.c: Likewise.
59727         * lib/printf-args.h: Likewise.
59728         * lib/printf-args.c: Likewise.
59729         * lib/printf-frexp.c: Likewise.
59730         * lib/printf-parse.c: Likewise.
59731         * lib/vasnprintf.c: Likewise.
59732         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
59733         * m4/intl.m4: Likewise.
59734         * m4/isnanl.m4: Likewise.
59735         * m4/printf.m4: Likewise.
59736         * m4/printf-frexpl.m4: Likewise.
59737         * m4/vasnprintf.m4: Likewise.
59738         * modules/allocsa (Files): Remove m4/longdouble.m4.
59739         * modules/gettext (Files): Likewise.
59740         * modules/relocatable-prog-wrapper (Files): Likewise.
59741         * modules/vasnprintf (Files): Likewise.
59742         * modules/isnanl (Files): Likewise.
59743         (Include): Simplify.
59744         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
59745         (Include): Simplify.
59746         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
59747         (Include): Simplify.
59748         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
59749         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59750         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
59751         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59752         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59753         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59754         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
59755         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59756         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59757         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59758         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
59759         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59760         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
59761         * tests/test-isnanl.c: Likewise.
59762         * tests/test-snprintf-posix.h: Likewise.
59763         * tests/test-sprintf-posix.h: Likewise.
59764         * tests/test-vasnprintf-posix.c: Likewise.
59765         * tests/test-vasnprintf-posix2.c: Likewise.
59766         * tests/test-vasprintf-posix.c: Likewise.
59767
59768 2007-04-06  Bruno Haible  <bruno@clisp.org>
59769
59770         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
59771         * lib/math_.h [__DECC]: Include the overridden include file through
59772         #include_next, outside the double-inclusion guard.
59773         * lib/stdio_.h [__DECC]: Likewise.
59774         * lib/stdlib_.h [__DECC]: Likewise.
59775         * lib/string_.h [__DECC]: Likewise.
59776         * lib/time_.h [__DECC]: Likewise.
59777         * lib/wchar_.h [__DECC]: Likewise.
59778         * lib/wctype_.h [__DECC]: Likewise.
59779         * lib/inttypes_.h [__DECC]: Likewise.
59780         Reported by Albert Chin <china@thewrittenword.com> in
59781         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
59782
59783 2007-04-04  Eric Blake  <ebb9@byu.net>
59784
59785         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
59786         1.5.x.
59787
59788 2007-04-04  Bruno Haible  <bruno@clisp.org>
59789
59790         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
59791         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
59792
59793 2007-04-04  Bruno Haible  <bruno@clisp.org>
59794
59795         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
59796         results for "%010a" of Infinity and NaN.
59797         * tests/test-vasprintf-posix.c (test_function): Likewise.
59798         * tests/test-snprintf-posix.h (test_function): Likewise.
59799         * tests/test-sprintf-posix.h (test_function): Likewise.
59800         * tests/test-fprintf-posix.h (test_function): Remove these tests.
59801         * tests/test-printf-posix.h (test_function): Likewise.
59802         * tests/test-fprintf-posix.out: Update.
59803         Needed for FreeBSD 6.1.
59804
59805 2007-04-04  Bruno Haible  <bruno@clisp.org>
59806
59807         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
59808         directly used by the gnulib modules nor by gnulib-tool.
59809
59810 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59811
59812         * DEPENDENCIES: Give overall description of version dependency
59813         desirability.  Use more-typical names for apps.
59814         Add shell, coreutils, diffutils, grep, tar, gzip.
59815
59816 2007-04-04  Simon Josefsson  <simon@josefsson.org>
59817
59818         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
59819
59820 2007-04-04  Karl Berry  <karl@gnu.org>
59821
59822         * MODULES.html.sh (func_module): missing '.
59823
59824 2007-04-03  Bruno Haible  <bruno@clisp.org>
59825
59826         * modules/argmatch-tests (Makefile.am): New variable
59827         test_argmatch_LDADD.
59828         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
59829         * modules/array-list-tests (Makefile.am): New variable
59830         test_array_list_LDADD.
59831         * modules/array-oset-tests (Makefile.am): New variable
59832         test_array_oset_LDADD.
59833         * modules/avltree-list-tests (Makefile.am): New variable
59834         test_avltree_list_LDADD.
59835         * modules/avltree-oset-tests (Makefile.am): New variable
59836         test_avltree_oset_LDADD.
59837         * modules/avltreehash-list-tests (Makefile.am): New variable
59838         test_avltreehash_list_LDADD.
59839         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
59840         test_canonicalize_lgpl_LDADD.
59841         * modules/carray-list-tests (Makefile.am): New variable
59842         test_carray_list_LDADD.
59843         * modules/dirname-tests (Makefile.am): New variable
59844         test_dirname_LDADD.
59845         * modules/linked-list-tests (Makefile.am): New variable
59846         test_linked_list_LDADD.
59847         * modules/linkedhash-list-tests (Makefile.am): New variable
59848         test_linkedhash_list_LDADD.
59849         * modules/rbtree-list-tests (Makefile.am): New variable
59850         test_rbtree_list_LDADD.
59851         * modules/rbtree-oset-tests (Makefile.am): New variable
59852         test_rbtree_oset_LDADD.
59853         * modules/rbtreehash-list-tests (Makefile.am): New variable
59854         test_rbtreehash_list_LDADD.
59855         * modules/xvasprintf-tests (Makefile.am): New variable
59856         test_xvasprintf_LDADD.
59857         Reported by Eric Blake.
59858
59859 2007-04-03  Eric Blake  <ebb9@byu.net>
59860
59861         * DEPENDENCIES: Weaken m4 requirements.
59862
59863 2007-04-03  Bruno Haible  <bruno@clisp.org>
59864
59865         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
59866         * modules/isnanl-tests (configure.ac): Likewise.
59867
59868 2007-04-03  Ben Pfaff  <blp@gnu.org>
59869
59870         * modules/iconv_open: Add $(srcdir)/ to source directory
59871         references in Makefile fragments that call gperf, to fix VPATH
59872         builds.
59873
59874 2007-04-03  Bruno Haible  <bruno@clisp.org>
59875
59876         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
59877         * lib/ldexpl.c: Undo last change.
59878
59879 2007-04-03  Bruno Haible  <bruno@clisp.org>
59880
59881         * modules/printf-frexpl (Depends-on): Undo last change.
59882         (Files): Add m4/ldexpl.m4.
59883
59884 2007-04-03  Bruno Haible  <bruno@clisp.org>
59885
59886         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
59887         * modules/isnanl (Link): New section.
59888
59889         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
59890         * modules/frexp (Link): New section.
59891
59892         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
59893         * modules/frexpl (Link): New section.
59894
59895         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
59896         * modules/ldexpl (Link): New section.
59897
59898 2007-04-03  Bruno Haible  <bruno@clisp.org>
59899
59900         * modules/TEMPLATE-EXTENDED: New file.
59901         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
59902
59903 2007-04-03  Bruno Haible  <bruno@clisp.org>
59904
59905         * DEPENDENCIES: New file.
59906         Suggested by Simon Josefsson.
59907
59908 2007-04-03  Bruno Haible  <bruno@clisp.org>
59909
59910         * doc/gnulib.texi: Escape @.
59911
59912 2007-04-03  James Youngman  <jay@gnu.org>
59913         and Paul Eggert  <eggert@cs.ucla.edu>
59914
59915         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
59916         birthtime on all systems that have birthtime, not just those which
59917         use st_birthtimensec rather than st_birthtim.  Putting zero in
59918         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
59919         that the birth time is not available for files on an NFS mount.
59920
59921 2007-04-03  Simon Josefsson  <simon@josefsson.org>
59922
59923         * modules/memxor: Move back from crypto/, suggested by Bruno.
59924         * modules/crypto/hmac-sha1: Fix memxor dependency.
59925
59926         * modules/crypto/gc: Moved from ../.
59927
59928 2007-04-02  Eric Blake  <ebb9@byu.net>
59929
59930         * lib/ldexpl.c (includes): Avoid libm.
59931
59932         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
59933
59934 2007-04-02  Bruno Haible  <bruno@clisp.org>
59935
59936         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
59937         on IRIX.
59938
59939 2007-04-02  Bruno Haible  <bruno@clisp.org>
59940
59941         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
59942         x86 or x86_64 platforms running MacOS X.
59943         Reported by Ryan Schmidt <@ryandesign.com>.
59944
59945 2007-04-02  Bruno Haible  <bruno@clisp.org>
59946
59947         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
59948         i386.
59949
59950 2007-04-01  Simon Josefsson  <simon@josefsson.org>
59951
59952         * modules/crypto/arcfour: Moved from ../.
59953         * modules/crypto/arcfour-tests: Moved from ../.
59954         * modules/crypto/arctwo: Moved from ../.
59955         * modules/crypto/arctwo-tests: Moved from ../.
59956         * modules/crypto/des: Moved from ../.
59957         * modules/crypto/des-tests: Moved from ../.
59958         * modules/crypto/gc-arcfour: Moved from ../.
59959         * modules/crypto/gc-arcfour-tests: Moved from ../.
59960         * modules/crypto/gc-arctwo: Moved from ../.
59961         * modules/crypto/gc-arctwo-tests: Moved from ../.
59962         * modules/crypto/gc-des: Moved from ../.
59963         * modules/crypto/gc-des-tests: Moved from ../.
59964         * modules/crypto/gc-hmac-md5: Moved from ../.
59965         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
59966         * modules/crypto/gc-hmac-sha1: Moved from ../.
59967         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
59968         * modules/crypto/gc-md2: Moved from ../.
59969         * modules/crypto/gc-md2-tests: Moved from ../.
59970         * modules/crypto/gc-md4: Moved from ../.
59971         * modules/crypto/gc-md4-tests: Moved from ../.
59972         * modules/crypto/gc-md5: Moved from ../.
59973         * modules/crypto/gc-md5-tests: Moved from ../.
59974         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
59975         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
59976         * modules/crypto/gc-random: Moved from ../.
59977         * modules/crypto/gc-rijndael: Moved from ../.
59978         * modules/crypto/gc-rijndael-tests: Moved from ../.
59979         * modules/crypto/gc-sha1: Moved from ../.
59980         * modules/crypto/gc-sha1-tests: Moved from ../.
59981         * modules/crypto/gc-tests: Moved from ../.
59982         * modules/crypto/hmac-md5: Moved from ../.
59983         * modules/crypto/hmac-md5-tests: Moved from ../.
59984         * modules/crypto/hmac-sha1: Moved from ../.
59985         * modules/crypto/hmac-sha1-tests: Moved from ../.
59986         * modules/crypto/md2: Moved from ../.
59987         * modules/crypto/md2-tests: Moved from ../.
59988         * modules/crypto/md4: Moved from ../.
59989         * modules/crypto/md4-tests: Moved from ../.
59990         * modules/crypto/md5: Moved from ../.
59991         * modules/crypto/md5-tests: Moved from ../.
59992         * modules/crypto/memxor: Moved from ../.
59993         * modules/crypto/rijndael: Moved from ../.
59994         * modules/crypto/rijndael-tests: Moved from ../.
59995         * modules/crypto/sha1: Moved from ../.
59996
59997 2007-03-30  James Youngman  <jay@gnu.org>
59998
59999         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60000         rename() to change the ctime of a file (because ctime is unaffected
60001         by rename on jfs2 on AIX 5.1).
60002         (main): Start by doing cleanup, in case a previous run failed leaving
60003         test files behind.
60004
60005 2007-03-31  Bruno Haible  <bruno@clisp.org>
60006
60007         Support old proprietary implementations of iconv.
60008         * modules/iconv_open: New file.
60009         * lib/iconv_.h: New file.
60010         * m4/iconv_h.m4: New file.
60011         * lib/iconv_open.c: New file.
60012         * lib/iconv_open-aix.gperf: New file.
60013         * lib/iconv_open-hpux.gperf: New file.
60014         * lib/iconv_open-irix.gperf: New file.
60015         * lib/iconv_open-osf.gperf: New file.
60016         * m4/iconv_open.m4: New file.
60017         * modules/linebreak (Depends-on): Add iconv_open.
60018         * modules/striconv (Depends-on): Likewise.
60019         * modules/striconveh (Depends-on): Likewise.
60020         * modules/unicodeio (Depends-on): Likewise.
60021         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60022         (iconv_t)(-1).
60023         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60024         conversion if cd is (iconv_t)(-1).
60025         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60026         is not possible.
60027
60028 2007-03-31  Bruno Haible  <bruno@clisp.org>
60029
60030         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60031         work on Solaris either. Protect also second use of "autodetect_jp".
60032
60033 2007-03-31  Bruno Haible  <bruno@clisp.org>
60034
60035         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60036         the function is not present.
60037
60038 2007-03-31  Bruno Haible  <bruno@clisp.org>
60039
60040         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60041         the function is not present.
60042
60043 2007-03-31  Bruno Haible  <bruno@clisp.org>
60044
60045         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60046         a bug in HP-UX iconv_open().
60047
60048 2007-03-31  Bruno Haible  <bruno@clisp.org>
60049
60050         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60051         (Mathematics <math.h>): New section, add fpieee.
60052         (Input/output <stdio.h>): Add fseterr.
60053         (Mathematics <math.h>): New section, add printf-frexp.
60054         (Container data structures): Add sublist.
60055         (Core language properties): Add fpucw, inline.
60056         (Functions for greatest-width integer types <inttypes.h>): Add
60057         imaxabs, imaxdiv, inttypes.
60058         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60059         isnanl-nolibm, ldexp.
60060         (Mathematics <math.h>): New section, add printf-frexpl.
60061         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60062         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60063         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60064         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60065         (Unicode string functions): Add unistr/u*-mbtoucr.
60066         (Java): Add javacomp-script, javaexec-script.
60067         (C#): Add csharpcomp-script, csharpexec-script.
60068         (Support for building libraries and executables): Add havelib,
60069         relocatable-*.
60070         (Support for maintaining and releasing projects): Renamed from
60071         'Support for maintaining and release projects'. Add announce-gen.
60072
60073 2007-03-31  Bruno Haible  <bruno@clisp.org>
60074
60075         * README: Talk primarily about git.
60076         (git and CVS): Renamed from CVS.
60077         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60078         gnulib is available through git.
60079         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60080
60081 2007-03-30  Bruno Haible  <bruno@clisp.org>
60082
60083         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60084         * lib/poll_.h: Likewise.
60085         * lib/stat_.h: Likewise.
60086         * lib/sys_time_.h: Likewise.
60087         * lib/sysexit_.h: Likewise.
60088         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60089         * lib/stdbool_.h: Likewise.
60090         * lib/byteswap_.h: Add double-inclusion guard.
60091
60092 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60093
60094         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60095
60096 2007-03-30  Karl Berry  <karl@gnu.org>
60097
60098         * config/srclist-update: double space after USA in the license
60099         substitution, since that's how it's usually (?) written.
60100
60101 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60102
60103         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60104         reported by Bruno Haible.
60105
60106 2007-03-29  Bruno Haible  <bruno@clisp.org>
60107
60108         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60109         a bug in AIX iconv().
60110
60111 2007-03-29  Bruno Haible  <bruno@clisp.org>
60112
60113         * modules/ldexpl-tests: New file.
60114         * tests/test-ldexpl.c: New file.
60115
60116 2007-03-29  Bruno Haible  <bruno@clisp.org>
60117
60118         * lib/ldexpl.c: Include fpucw.h.
60119         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60120         multiplication.
60121         * modules/ldexpl (Depends-on): Add fpucw.
60122
60123 2007-03-29  Bruno Haible  <bruno@clisp.org>
60124
60125         * modules/ldexpl: New file.
60126         * m4/ldexpl.m4: New file.
60127         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60128         set.
60129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60130         REPLACE_LDEXPL.
60131         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60132         REPLACE_LDEXPL.
60133         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60134         gl_FUNC_LDEXPL_WORKS.
60135         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60136         * modules/mathl (Files): Remove lib/ldexpl.c.
60137         (Depends-on): Add ldexpl.
60138
60139 2007-03-29  Bruno Haible  <bruno@clisp.org>
60140
60141         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60142
60143 2007-03-29  Bruno Haible  <bruno@clisp.org>
60144
60145         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60146         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60147         and possibly also HP-UX.
60148         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60149         work on AIX, IRIX, HP-UX, OSF/1.
60150         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60151         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60152         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60153         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60154         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60155         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60156
60157 2007-03-29  Bruno Haible  <bruno@clisp.org>
60158
60159         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60160
60161 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60162
60163         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60164         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60165
60166 2007-03-29  Eric Blake  <ebb9@byu.net>
60167
60168         * lib/acl-internal.h: Remove redundant include.
60169         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60170         Cygwin when a file is locked.
60171
60172 2007-03-29  Bruno Haible  <bruno@clisp.org>
60173
60174         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60175         file.
60176         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60177
60178 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60179
60180         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60181         try to remove a parent directory if the child couldn't be removed
60182         (except for the first rmdir, which could fail because the child
60183         doesn't exist).  Problem reported by Jeff Blaine in
60184         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60185
60186 2007-03-28  Bruno Haible  <bruno@clisp.org>
60187
60188         * lib/striconveh.c (utf8conv_carefully): New function.
60189         (mem_cd_iconveh_internal): Invoke it.
60190
60191 2007-03-28  Bruno Haible  <bruno@clisp.org>
60192
60193         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60194         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60195         input.
60196         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60197         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60198         unistr/u8-uctomb.
60199
60200 2007-03-28  Bruno Haible  <bruno@clisp.org>
60201
60202         * modules/unistr/u8-mbtoucr: New file.
60203         * lib/unistr/u8-mbtoucr.c: New file.
60204         * modules/unistr/u16-mbtoucr: New file.
60205         * lib/unistr/u16-mbtoucr.c: New file.
60206         * modules/unistr/u16-mbtoucr: New file.
60207         * lib/unistr/u16-mbtoucr.c: New file.
60208         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60209
60210 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60211             Bruno Haible  <bruno@clisp.org>
60212
60213         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60214         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60215         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60216
60217         * m4/stdio_h.m4: Add stubs for vasprintf too.
60218
60219         * modules/stdio: Support vasprintf in sed command.
60220
60221         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60222         vasprintf.h.  Add stdio module indicator.
60223
60224         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60225         vasprintf.h.
60226
60227         * lib/vasprintf.h: File removed.
60228
60229         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60230         * lib/vasprintf.c: Ditto.
60231         * lib/xvasprintf.c: Ditto.
60232         * tests/test-vasprintf-posix.c: Ditto.
60233         * tests/test-vasprintf.c: Ditto.
60234
60235 2007-03-27  Bruno Haible  <bruno@clisp.org>
60236
60237         Make vasnprintf multithread-safe.
60238         * lib/vasnprintf.c (decimal_point_char): New function.
60239         (VASNPRINTF): Use it.
60240         Suggested by Simon Josefsson.
60241
60242 2007-03-27  Eric Blake  <ebb9@byu.net>
60243
60244         Support sub-second birthtime on cygwin.
60245         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
60246         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
60247         (get_stat_birthtime): Also work with st_birthtim.
60248
60249 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
60250
60251         * lib/stat-time.h (USE_BIRTHTIME): Remove.
60252         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
60253         (get_stat_birthtime_ns): Do not try to use "spare" fields.
60254         (get_stat_birthtime_ns): Simplify compile-time tests.
60255         (get_stat_birthtime): Change the API to look like
60256         get_stat_mtime etc., except return a negative tv_nsec on error.
60257         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
60258         Don't check for "spare" fields.
60259         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
60260         or for struct stat.st_birthtime, as these tests aren't used.
60261         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
60262
60263 2007-03-27  Bruno Haible  <bruno@clisp.org>
60264
60265         * lib/stat-time.h: Include <sys/stat.h>.
60266
60267 2007-03-27  James Youngman  <jay@gnu.org>
60268
60269         * lib/stat-time.h (get_stat_birthtime): New function for
60270           retrieving st_birthtime as provided by UFS2 (hence *BSD).
60271         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
60272           and its variants.
60273         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
60274         * modules/stat-time-test: New file.
60275         * tests/test-stat-time.c: New test, devised by Bruno Haible.
60276
60277 2007-03-26  Bruno Haible  <bruno@clisp.org>
60278
60279         Better support of signalling NaNs.
60280         * lib/atanl.c: Include isnanl.h.
60281         (atanl): Perform test for NaN at the beginning of the function and
60282         through a call to isnanl.
60283         * lib/cosl.c: Include isnanl.h.
60284         (cosl): Perform test for NaN at the beginning of the function and
60285         through a call to isnanl.
60286         * lib/ldexpl.c: Include isnanl.h.
60287         (ldexpl): Perform test for NaN through a call to isnanl.
60288         * lib/logl.c: Include isnanl.h.
60289         (logl): Perform test for NaN at the beginning of the function and
60290         through a call to isnanl.
60291         * lib/sinl.c: Include isnanl.h.
60292         (sinl): Perform test for NaN at the beginning of the function and
60293         through a call to isnanl.
60294         * lib/sqrtl.c: Include isnanl.h.
60295         (sqrtl): Perform test for NaN at the beginning of the function and
60296         through a call to isnanl.
60297         * lib/tanl.c: Include isnanl.h.
60298         (tanl): Perform test for NaN at the beginning of the function and
60299         through a call to isnanl.
60300         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
60301         * modules/mathl (Depends-on): Add isnanl.
60302
60303 2007-03-26  Eric Blake  <ebb9@byu.net>
60304
60305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
60306         regression in logic sense of previous patch.
60307
60308 2007-03-26  Bruno Haible  <bruno@clisp.org>
60309
60310         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
60311         unportable shell command "if ! ...".
60312         Reported by Ralf Wildenhues.
60313
60314 2007-03-25  Bruno Haible  <bruno@clisp.org>
60315
60316         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
60317         <sysexits.h> file, and only add EX_CONFIG.
60318         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
60319         absolute file name and whether it is sufficient. Substitute also
60320         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
60321         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
60322         ABSOLUTE_SYSEXITS_H into sysexits.h.
60323
60324 2007-03-25  Bruno Haible  <bruno@clisp.org>
60325
60326         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
60327         hints is NULL.
60328
60329 2007-03-25  Bruno Haible  <bruno@clisp.org>
60330
60331         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
60332         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
60333
60334 2007-03-25  Bruno Haible  <bruno@clisp.org>
60335
60336         * lib/vasnprintf.c: Include langinfo.h.
60337         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
60338         multithread-safe.
60339         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
60340         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
60341         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60342         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60343         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60344         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60345         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60346         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60347         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60348         Reported by Simon Josefsson.
60349
60350 2007-03-25  Bruno Haible  <bruno@clisp.org>
60351
60352         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60353         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60354         * modules/vasnprintf (Depends-on): Add stdint.
60355
60356 2007-03-25  Bruno Haible  <bruno@clisp.org>
60357
60358         * modules/fpieee: New file.
60359         * m4/fpieee.m4: New file.
60360         * modules/isnan-nolibm (Depends-on): Add fpieee.
60361         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60362         * modules/isnanl (Depends-on): Add fpieee.
60363
60364 2007-03-25  Bruno Haible  <bruno@clisp.org>
60365
60366         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60367
60368 2007-03-25  Bruno Haible  <bruno@clisp.org>
60369
60370         Avoid test failures on IRIX 6.5.
60371         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60372         (main): Use it.
60373         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60374         macros.
60375         (main): Use them.
60376
60377 2007-03-25  Bruno Haible  <bruno@clisp.org>
60378
60379         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
60380         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
60381         exists but doesn't work.
60382         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
60383         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
60384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
60385         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
60386         math.h.
60387
60388 2007-03-25  Bruno Haible  <bruno@clisp.org>
60389
60390         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
60391         returns inf. Needed on IRIX 6.5.
60392
60393 2007-03-25  Bruno Haible  <bruno@clisp.org>
60394
60395         * tests/test-frexpl.c: Include isnanl-nolibm.h.
60396         (main): Use isnanl instead of x != x idiom.
60397         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
60398
60399         * tests/test-frexp.c: Include isnan.h.
60400         (main): Use isnan instead of x != x idiom.
60401         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
60402
60403 2007-03-25  Bruno Haible  <bruno@clisp.org>
60404
60405         * tests/test-frexp.c (NaN): New function/macro.
60406         (main): Use it instead of 0.0 / 0.0.
60407         * tests/test-isnan.c (NaN): New function/macro.
60408         (main): Use it instead of 0.0 / 0.0.
60409         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
60410         (test_function): Use it instead of 0.0 / 0.0.
60411         * tests/test-vasprintf-posix.c (NaN): New function/macro.
60412         (test_function): Use it instead of 0.0 / 0.0.
60413         * tests/test-snprintf-posix.h (NaN): New function/macro.
60414         (test_function): Use it instead of 0.0 / 0.0.
60415         * tests/test-sprintf-posix.h (NaN): New function/macro.
60416         (test_function): Use it instead of 0.0 / 0.0.
60417         * tests/test-fprintf-posix.h (NaN): New function/macro.
60418         (test_function): Use it instead of 0.0 / 0.0.
60419         * tests/test-printf-posix.h (NaN): New function/macro.
60420         (test_function): Use it instead of 0.0 / 0.0.
60421
60422         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
60423
60424 2007-03-25  Bruno Haible  <bruno@clisp.org>
60425
60426         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
60427
60428 2007-03-25  Bruno Haible  <bruno@clisp.org>
60429
60430         * lib/regexec.c (merge_state_with_log): Make static.
60431
60432 2007-03-25  Bruno Haible  <bruno@clisp.org>
60433
60434         * lib/trigl.c (kernel_rem_pio2): Make static.
60435
60436 2007-03-25  Bruno Haible  <bruno@clisp.org>
60437
60438         * lib/sincosl.c (sincosl_table): Make static.
60439
60440 2007-03-25  Bruno Haible  <bruno@clisp.org>
60441
60442         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
60443         if the compiler does not support C99.
60444
60445 2007-03-25  Bruno Haible  <bruno@clisp.org>
60446
60447         * modules/time (Makefile.am): Ensure all rule action lines start with a
60448         tab.
60449
60450 2007-03-24  Bruno Haible  <bruno@clisp.org>
60451
60452         * modules/tsearch-tests: New file.
60453         * tests/test-tsearch.sh: New file.
60454         * tests/test-tsearch.c: New file, mostly copied from glibc.
60455
60456         * modules/search-tests: New file.
60457         * tests/test-search.c: New file.
60458
60459         * modules/search: New file.
60460         * lib/search_.h: New file, incorporating lib/tsearch.h.
60461         * m4/search_h.m4: New file.
60462         * lib/tsearch.h: Remove file.
60463         * lib/tsearch.c: Include search.h instead of tsearch.h.
60464         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
60465         HAVE_TSEARCH.
60466         * modules/tsearch (Files): Remove lib/tsearch.h.
60467         (Depends-on): Add search.
60468         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
60469         (Include): Change tsearch.h into search.h.
60470
60471 2007-03-24  Bruno Haible  <bruno@clisp.org>
60472
60473         * modules/fpucw: New file.
60474         * lib/fpucw.h: New file.
60475         * lib/frexp.c: Include fpucw.h.
60476         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60477         (FUNC): Use them.
60478         * lib/printf-frexp.c: Include fpucw.h.
60479         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60480         (FUNC): Use them.
60481         * lib/vasnprintf.c: Include fpucw.h.
60482         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
60483         'long double' calculations.
60484         * tests/test-frexpl.c: Include fpucw.h.
60485         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60486         * tests/test-printf-frexpl.c: Include fpucw.h.
60487         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60488         * modules/frexpl (Depends-on): Add fpucw.
60489         * modules/printf-frexpl (Depends-on): Likewise.
60490         * modules/fprintf-posix (Depends-on): Likewise.
60491         * modules/snprintf-posix (Depends-on): Likewise.
60492         * modules/sprintf-posix (Depends-on): Likewise.
60493         * modules/vasnprintf-posix (Depends-on): Likewise.
60494         * modules/vasprintf-posix (Depends-on): Likewise.
60495         * modules/vfprintf-posix (Depends-on): Likewise.
60496         * modules/vsnprintf-posix (Depends-on): Likewise.
60497         * modules/vsprintf-posix (Depends-on): Likewise.
60498         * modules/frexpl-tests (Depends-on): Likewise.
60499         * modules/printf-frexpl-tests (Depends-on): Likewise.
60500
60501 2007-03-24  Bruno Haible  <bruno@clisp.org>
60502
60503         * lib/float+.h: New file.
60504         * lib/isnan.c: Include float+.h.
60505         (SIZE): New macro.
60506         (FUNC): Compare only SIZE bytes of the value.
60507         * lib/vasnprintf.c: Include float+.h.
60508         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
60509         SIZEOF_LDBL or SIZEOF_DBL bytes.
60510         * modules/isnan-nolibm (Files): Add lib/float+.h.
60511         * modules/isnanl-nolibm (Files): Add lib/float+.h.
60512         * modules/isnanl (Files): Add lib/float+.h.
60513         * modules/vasnprintf (Files): Add lib/float+.h.
60514
60515 2007-03-24  Bruno Haible  <bruno@clisp.org>
60516
60517         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
60518         include isnanl-nolibm.h.
60519
60520 2007-03-24  Bruno Haible  <bruno@clisp.org>
60521
60522         * tests/test-read-file.c (main): Don't produce spurious output for
60523         expected situations. Make the test fail if it encountered unexpected
60524         results.
60525
60526 2007-03-24  Bruno Haible  <bruno@clisp.org>
60527
60528         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
60529         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
60530
60531 2007-03-24  Bruno Haible  <bruno@clisp.org>
60532
60533         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
60534
60535 2007-03-24  Bruno Haible  <bruno@clisp.org>
60536
60537         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
60538         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
60539
60540         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
60541         * modules/utf8-ucs4: Turn into a symbolic link to module
60542         unistr/u8-mbtouc.
60543
60544         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
60545         utf8-ucs4-unsafe.
60546         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
60547         unistr/u8-mbtouc-unsafe.
60548
60549         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
60550         * modules/utf16-ucs4: Turn into a symbolic link to module
60551         unistr/u16-mbtouc.
60552
60553         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
60554         utf16-ucs4-unsafe.
60555         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
60556         unistr/u16-mbtouc-unsafe.
60557
60558         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
60559         * modules/ucs4-utf8: Turn into a symbolic link to module
60560         unistr/u8-ubtomb.
60561
60562         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
60563         * modules/ucs4-utf16: Turn into a symbolic link to module
60564         unistr/u16-ubtomb.
60565
60566 2007-03-24  Bruno Haible  <bruno@clisp.org>
60567
60568         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
60569         Enable the function only if HAVE_INLINE.
60570         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
60571         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60572         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
60573         Enable the function only if HAVE_INLINE.
60574         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
60575         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60576         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
60577         Enable the function only if HAVE_INLINE.
60578         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
60579         Enable the function only if HAVE_INLINE.
60580         * modules/utf8-ucs4: Update.
60581         * modules/utf8-ucs4-unsafe: Update.
60582         * modules/utf16-ucs4: Update.
60583         * modules/utf16-ucs4-unsafe: Update.
60584         * modules/ucs4-utf8: Update.
60585         * modules/ucs4-utf16: Update.
60586
60587 2007-03-24  Bruno Haible  <bruno@clisp.org>
60588
60589         * lib/utf8-ucs4.h: Remove file.
60590         * lib/utf8-ucs4-unsafe.h: Remove file.
60591         * lib/utf16-ucs4.h: Remove file.
60592         * lib/utf16-ucs4-unsafe.h: Remove file.
60593         * lib/ucs4-utf8.h: Remove file.
60594         * lib/ucs4-utf16.h: Remove file.
60595         * lib/unistr.h: Include their previous contents.
60596         * m4/utf-ucs4.m4: Remove file.
60597         * m4/ucs4-utf.m4: Remove file.
60598         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
60599         (Depends-on): Add unistr/base.
60600         (configure.ac): Remove gl_UTF_UCS4.
60601         (Makefile.am): Update.
60602         (Include): Change to unistr.h.
60603         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
60604         (Depends-on): Add unistr/base.
60605         (configure.ac): Remove gl_UTF_UCS4.
60606         (Makefile.am): Update.
60607         (Include): Change to unistr.h.
60608         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
60609         (Depends-on): Add unistr/base.
60610         (configure.ac): Remove gl_UTF_UCS4.
60611         (Makefile.am): Update.
60612         (Include): Change to unistr.h.
60613         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
60614         (Depends-on): Add unistr/base.
60615         (configure.ac): Remove gl_UTF_UCS4.
60616         (Makefile.am): Update.
60617         (Include): Change to unistr.h.
60618         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
60619         (Depends-on): Add unistr/base.
60620         (configure.ac): Remove gl_UCS4_UTF.
60621         (Makefile.am): Update.
60622         (Include): Change to unistr.h.
60623         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
60624         (Depends-on): Add unistr/base.
60625         (configure.ac): Remove gl_UCS4_UTF.
60626         (Makefile.am): Update.
60627         (Include): Change to unistr.h.
60628         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
60629         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
60630         utf8-ucs4-unsafe.h.
60631         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
60632         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
60633         utf16-ucs4-unsafe.h.
60634         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
60635         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
60636         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
60637         * lib/unistr/u8-strchr.c: Likewise.
60638         * lib/unistr/u8-strrchr.c: Likewise.
60639         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
60640         * lib/unistr/u16-strchr.c: Likewise.
60641         * lib/unistr/u16-strrchr.c: Likewise.
60642         * lib/striconveh.c: Update.
60643         * lib/linebreak.c: Update.
60644
60645 2007-03-24  Bruno Haible  <bruno@clisp.org>
60646
60647         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
60648         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
60649
60650 2007-03-22  Bruno Haible  <bruno@clisp.org>
60651
60652         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
60653
60654 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60655
60656         * MODULES.html.sh (File system functions): New module write-any-file.
60657         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
60658         * m4/write-any-file.m4: New files.
60659
60660 2007-03-23  Eric Blake  <ebb9@byu.net>
60661
60662         * gnulib-tool: Rearrange space-tab sequences, since some editors
60663         like to eat them.
60664
60665 2007-03-23  Eric Blake  <ebb9@byu.net>
60666
60667         * lib/version-etc.c (version_etc_va): Update license wording to
60668         be more concise.  Recommended by Richard Stallman.
60669
60670 2007-03-22  Bruno Haible  <bruno@clisp.org>
60671
60672         * lib/poll.c (MSG_PEEK): New fallback definition.
60673
60674 2007-03-22  Bruno Haible  <bruno@clisp.org>
60675
60676         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
60677         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
60678         (main): Update.
60679         Fixes a compilation error on BeOS.
60680
60681 2007-03-22  Bruno Haible  <bruno@clisp.org>
60682
60683         * modules/frexpl-tests: New file.
60684         * tests/test-frexpl.c: New file.
60685
60686         * modules/frexpl: New file.
60687         * m4/frexpl.m4: New file.
60688         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
60689         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
60690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
60691         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
60692         (Depends-on): Add frexpl. Remove isnanl-nolibm.
60693         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
60694
60695 2007-03-22  Bruno Haible  <bruno@clisp.org>
60696
60697         * lib/frexpl.c: Share code with lib/frexp.c.
60698         * modules/mathl (Files): Add lib/frexp.c.
60699         (Depends-on): Add isnanl-nolibm.
60700
60701 2007-03-22  Bruno Haible  <bruno@clisp.org>
60702
60703         * modules/printf-frexp (Files): Add m4/frexp.m4.
60704         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
60705         only if the found frexp function actually works.
60706
60707 2007-03-22  Bruno Haible  <bruno@clisp.org>
60708
60709         * lib/frexp.c: Remove older implementation that uses divisions.
60710
60711 2007-03-21  Bruno Haible  <bruno@clisp.org>
60712
60713         * modules/frexp-tests: New file.
60714         * tests/test-frexp.c: New file.
60715
60716         * modules/frexp: New file.
60717         * lib/frexp.c: New file.
60718         * m4/frexp.m4: New file.
60719         * lib/math_.h (frexp): New declaration.
60720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
60721         REPLACE_FREXP.
60722         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
60723
60724 2007-03-21  Bruno Haible  <bruno@clisp.org>
60725
60726         * modules/isnanl-tests: New file.
60727         * tests/test-isnanl.c: New file.
60728
60729         * modules/isnanl: New file.
60730         * lib/isnanl.h: New file.
60731         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
60732         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
60733         gl_FUNC_ISNANL_WORKS.
60734         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
60735         New macros.
60736
60737 2007-03-21  Bruno Haible  <bruno@clisp.org>
60738
60739         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
60740         lib/isnanl.h.
60741         (Include): Update.
60742         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
60743         * lib/vasnprintf.c: Update.
60744         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
60745         tests/test-isnanl.h, remove tests/test-isnanl.c.
60746         (Makefile.am): Update.
60747         * tests/test-isnanl-nolibm.c: New file.
60748         * tests/test-isnanl.h: New file.
60749         * tests/test-isnanl.c: Remove file.
60750
60751 2007-03-21  Jim Meyering  <jim@meyering.net>
60752
60753         When trying to open ".", treat ESTALE like EACCES.
60754         * lib/savewd.c (savewd_save): Resort to forking not just upon
60755         failure with EACCES, but also when errno is ESTALE.
60756
60757 2007-03-20  Bruno Haible  <bruno@clisp.org>
60758
60759         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
60760         Needed on AIX 5.1. Reported by Matthew Woehlke.
60761
60762 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60763
60764         Suggestions by Bruno Haible:
60765         * lib/acl-internal.h: Include "gettext.h" rather than rolling
60766         our own.
60767         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
60768         * modules/acl (Depends-on): Add gettext.
60769
60770 2007-03-19  Bruno Haible  <bruno@clisp.org>
60771
60772         * modules/iconvme: Remove file.
60773         * lib/iconvme.h: Remove file.
60774         * lib/iconvme.c: Remove file.
60775         * m4/iconvme.m4: Remove file.
60776
60777 2007-03-19  Bruno Haible  <bruno@clisp.org>
60778
60779         * doc/relocatable-maint.texi: Break long shell script line.
60780         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60781
60782 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60783
60784         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
60785         handle file_has_acl.
60786         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
60787         * lib/acl.c: Move header inclusions and related macro defns into
60788         lib/acl-internal.h.
60789         (S_ISLNK): Remove defn, since that's now done for us.
60790         (file_has_acl): Move to lib/file-has-acl.c.
60791         Call acl_trivial if available.  This is the crucial part of the fix.
60792         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
60793         shared within the library.  Rewrite a bit, partly to make it compatible
60794         with the GNU coding style.
60795         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
60796         Remove unnecessary double-quotes.
60797         Don't test for acl_to_text; the build will catch that.
60798         Replace acl_entries if it doesn't exist and it is needed.
60799         Check for -lsec and acl_trivial (as used on Solaris 10).
60800         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
60801         lib/file-has-acl.c.
60802         (Depends-on): Add sys_stat, for S_ISLNK.
60803
60804 2007-03-19  Ben Pfaff  <blp@gnu.org>
60805
60806         * doc/gnulib.texi: Fix typos.
60807         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60808
60809 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60810
60811         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
60812         If size is zero here, buf must be zero.
60813
60814 2007-03-19  Simon Josefsson  <simon@josefsson.org>
60815
60816         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
60817         <bruno@clisp.org>.
60818
60819 2007-03-18  Bruno Haible  <bruno@clisp.org>
60820
60821         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
60822         Suggested by Eric Blake.
60823
60824 2007-03-18  Ben Pfaff  <blp@gnu.org>
60825
60826         * doc/relocatable.texi: Recommend using as prefix a directory
60827         that does not exist and will never be created.  Based on
60828         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
60829         and others.
60830
60831 2007-03-17  Bruno Haible  <bruno@clisp.org>
60832
60833         * lib/fchownat.c: Include lchown.h.
60834
60835 2007-03-17  Bruno Haible  <bruno@clisp.org>
60836
60837         Fix endless loop when the given allocated size was > INT_MAX.
60838         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
60839         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
60840         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
60841         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
60842         * lib/sprintf.c (sprintf): Likewise.
60843
60844 2007-03-17  Bruno Haible  <bruno@clisp.org>
60845
60846         * tests/test-argp-2.sh (func_compare): Output a context diff.
60847
60848 2007-03-17  Bruno Haible  <bruno@clisp.org>
60849
60850         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
60851         locale's decimal-point character.
60852
60853 2007-03-17  Bruno Haible  <bruno@clisp.org>
60854
60855         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
60856         before comparing it. Needed because on some platforms (e.g. x86) a
60857         'long double' occupies less bytes than sizeof (long double).
60858
60859 2007-03-17  Bruno Haible  <bruno@clisp.org>
60860
60861         * tests/test-crc.c (main): Make printf statements 64-bit clean.
60862         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
60863         * tests/test-getaddrinfo.c (simple): Likewise.
60864         * tests/test-read-file.c (main): Likewise.
60865
60866 2007-03-17  Bruno Haible  <bruno@clisp.org>
60867
60868         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
60869
60870 2007-03-17  Bruno Haible  <bruno@clisp.org>
60871
60872         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
60873         unused variable.
60874
60875 2007-03-17  Bruno Haible  <bruno@clisp.org>
60876
60877         * tests/test-c-strcasecmp.c: Include c-strcase.h.
60878         * tests/test-c-strncasecmp.c: Likewise.
60879
60880 2007-03-17  Bruno Haible  <bruno@clisp.org>
60881
60882         * modules/stdlib (Depends-on): Add unistd.
60883         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
60884         Needed for MacOS X 10.3.
60885
60886 2007-03-17  Bruno Haible  <bruno@clisp.org>
60887
60888         * lib/unistr/u-strdup.h: Include <stdlib.h>.
60889
60890 2007-03-17  Bruno Haible  <bruno@clisp.org>
60891
60892         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
60893
60894 2007-03-17  Bruno Haible  <bruno@clisp.org>
60895
60896         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
60897         to reflect files copied from gnulib (with or without modifications).
60898         Suggested by Jim Meyering.
60899
60900 2007-03-17  Eric Blake  <ebb9@byu.net>
60901
60902         * NEWS: Document stdlib change from 2007-02-18.
60903
60904 2007-03-17  Jim Meyering  <jim@meyering.net>
60905
60906         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
60907         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
60908         someone uses a name containing shell meta-characters.
60909         Reported by Alfred M. Szmidt.
60910
60911         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
60912
60913 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60914
60915         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
60916         and copy gettext configuration files only if configure.ac contains
60917         a use of AM_GNU_GETTEXT_VERSION.
60918
60919 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60920
60921         * build-aux/bootstrap (gnulib_name): New variable.
60922         (gnulib_tool_options): Use it.
60923
60924 2007-03-13  Simon Josefsson  <simon@josefsson.org>
60925
60926         * tests/test-des.c: Use new namespace.
60927
60928 2007-03-15  Bruno Haible  <bruno@clisp.org>
60929
60930         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
60931         Reported by James Youngman <jay@gnu.org>.
60932
60933 2007-03-15  Bruno Haible  <bruno@clisp.org>
60934
60935         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
60936         declared prototype. Needed with cc on OSF/1 5.1.
60937
60938 2007-03-15  Bruno Haible  <bruno@clisp.org>
60939
60940         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
60941         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
60942         (struct gl_list_implementation): Add dispose_fn argument to the
60943         'create_empty', 'create' methods.
60944         (struct gl_list_impl_base): Add field 'dispose_fn'.
60945         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
60946         argument.
60947         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
60948         dispose_fn argument.
60949         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
60950         dispose_fn on the dropped values.
60951         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
60952         dispose_fn argument.
60953         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
60954         dropped values.
60955         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
60956         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60957         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
60958         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60959         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
60960         argument.
60961         (gl_tree_list_free): Call dispose_fn on the dropped values.
60962         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
60963         the dropped values.
60964         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60965         Add dispose_fn argument.
60966         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
60967         Call dispose_fn on the dropped values.
60968         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
60969         Add dispose_fn argument.
60970         (gl_sublist_create): Initialize the 'dispose_fn' field.
60971         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
60972         * tests/test-array_list.c (main): Update.
60973         * tests/test-carray_list.c (main): Update.
60974         * tests/test-avltree_list.c (main): Update.
60975         * tests/test-rbtree_list.c (main): Update.
60976         * tests/test-avltreehash_list.c (main): Update.
60977         * tests/test-rbtreehash_list.c (main): Update.
60978         * tests/test-linked_list.c (main): Update.
60979         * tests/test-linkedhash_list.c (main): Update.
60980         * tests/test-array_oset.c (main): Update.
60981
60982 2007-03-15  Bruno Haible  <bruno@clisp.org>
60983
60984         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
60985         (gl_oset_create_empty): Add dispose_fn argument.
60986         (struct gl_oset_implementation): Add dispose_fn argument to
60987         'create_empty' method.
60988         (struct gl_oset_impl_base): Add dispose_fn field.
60989         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
60990         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
60991         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
60992         values.
60993         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
60994         (gl_tree_oset_free): Call dispose_fn on the dropped values.
60995         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60996         dropped value.
60997         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60998         dropped value.
60999         * tests/test-array_oset.c (main): Update.
61000         * tests/test-avltree_oset.c (main): Update.
61001         * tests/test-rbtree_oset.c (main): Update.
61002         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61003
61004 2007-03-13  Bruno Haible  <bruno@clisp.org>
61005
61006         * tests/test-stdbool.c (i): Update after last patch.
61007
61008 2007-03-12  Bruno Haible  <bruno@clisp.org>
61009
61010         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61011         the iswprint macro. Needed on Solaris 2.5.1.
61012
61013 2007-03-12  Bruno Haible  <bruno@clisp.org>
61014
61015         * tests/test-printf-frexp.c (main): Declare x as volatile.
61016
61017 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61018
61019         * doc/gnulib.texi (Build robot for gnulib): New section.
61020
61021 2007-03-12  Jim Meyering  <jim@meyering.net>
61022
61023         * build-aux/bootstrap: New file.
61024         * build-aux/bootstrap.conf: New file, from coreutils.
61025
61026 2007-03-11  Bruno Haible  <bruno@clisp.org>
61027
61028         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61029
61030 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61031
61032         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61033         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61034         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61035
61036 2007-03-11  Bruno Haible  <bruno@clisp.org>
61037
61038         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61039         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61040
61041 2007-03-11  Bruno Haible  <bruno@clisp.org>
61042
61043         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61044         formula. Needed for SunPRO C 5.0.
61045
61046 2007-03-11  Bruno Haible  <bruno@clisp.org>
61047
61048         * modules/long-options (Depends-on): Add getopt.
61049
61050 2007-03-11  Bruno Haible  <bruno@clisp.org>
61051
61052         * modules/modechange (Depends-on): Add stdbool.
61053
61054 2007-03-11  Bruno Haible  <bruno@clisp.org>
61055
61056         * modules/i-ring (Depends-on): Add stdbool.
61057
61058 2007-03-11  Bruno Haible  <bruno@clisp.org>
61059
61060         * modules/gc-des (Depends-on): Add stdbool.
61061
61062 2007-03-11  Bruno Haible  <bruno@clisp.org>
61063
61064         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61065
61066 2007-03-11  Bruno Haible  <bruno@clisp.org>
61067
61068         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61069
61070 2007-03-11  Bruno Haible  <bruno@clisp.org>
61071
61072         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61073
61074 2007-03-11  Bruno Haible  <bruno@clisp.org>
61075
61076         * lib/vasnprintf.c (sprintf): Undefine.
61077
61078 2007-03-11  Bruno Haible  <bruno@clisp.org>
61079
61080         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61081         initializers in SunPRO C and Compaq C compilers.
61082
61083 2007-03-11  Bruno Haible  <bruno@clisp.org>
61084
61085         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61086         decrementing code ANSI C compliant.
61087
61088 2007-03-11  Bruno Haible  <bruno@clisp.org>
61089
61090         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61091         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61092
61093 2007-03-11  Bruno Haible  <bruno@clisp.org>
61094
61095         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61096         <stdbool.h> substitute doesn't pass.
61097
61098 2007-03-11  Bruno Haible  <bruno@clisp.org>
61099
61100         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61101
61102 2007-03-11  Bruno Haible  <bruno@clisp.org>
61103
61104         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61105         script, for submission to autobuild.josefsson.org.
61106
61107 2007-03-10  Bruno Haible  <bruno@clisp.org>
61108
61109         * modules/canonicalize-lgpl-tests: New file.
61110         * tests/test-canonicalize-lgpl.sh: New file.
61111         * tests/test-canonicalize-lgpl.c: New file.
61112
61113         * modules/c-strcase-tests: New file.
61114         * tests/test-c-strcase.sh: New file.
61115         * tests/test-c-strcasecmp.c: New file.
61116         * tests/test-c-strncasecmp.c: New file.
61117
61118         * modules/atexit-tests: New file.
61119         * tests/test-atexit.sh: New file.
61120         * tests/test-atexit.c: New file.
61121
61122 2007-03-10  Bruno Haible  <bruno@clisp.org>
61123
61124         * tests/test-binary-io.sh: Use temporary filenames that are not so
61125         likely to clash with those of other tests (in a parallel make).
61126         * tests/test-binary-io.c: Likewise.
61127
61128 2007-03-10  Bruno Haible  <bruno@clisp.org>
61129
61130         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61131         fallback; use #error instead.
61132         Suggested by Simon Josefsson.
61133
61134 2007-03-10  Bruno Haible  <bruno@clisp.org>
61135
61136         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61137         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61138         first and the last.
61139
61140 2007-03-10  Bruno Haible  <bruno@clisp.org>
61141
61142         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61143
61144 2007-03-10  Bruno Haible  <bruno@clisp.org>
61145
61146         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61147         "make distcheck".
61148         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61149         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61150         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61151
61152 2007-03-10  Bruno Haible  <bruno@clisp.org>
61153
61154         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61155         variable.
61156         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61157         variable.
61158
61159 2007-03-09  Eric Blake  <ebb9@byu.net>
61160         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61161
61162         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61163         types are not being provided by gnulib.
61164         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61165         types are supported.
61166
61167 2007-03-10  Bruno Haible  <bruno@clisp.org>
61168
61169         * lib/stdio_.h (__attribute__): New macro.
61170         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61171         vsprintf): Specify __attribute__ __format__ for GCC.
61172         Suggested by Eric Blake.
61173
61174 2007-03-09  Bruno Haible  <bruno@clisp.org>
61175
61176         * modules/printf-posix-tests: New file.
61177         * tests/test-printf-posix.sh: New file.
61178         * tests/test-printf-posix.c: New file.
61179
61180         * modules/printf-posix: New file.
61181         * lib/printf.c: New file.
61182         * m4/printf-posix-rpl.m4: New file.
61183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61184         REPLACE_PRINTF.
61185         * lib/stdio_.h (printf): New declaration.
61186         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61187         ____strfmon____): New macros.
61188         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61189         REPLACE_PRINTF.
61190
61191 2007-03-09  Bruno Haible  <bruno@clisp.org>
61192
61193         * tests/test-vasnprintf-posix2.sh: New file.
61194         * tests/test-vasnprintf-posix2.c: New file.
61195         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61196         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61197         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61198
61199         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61200         a locale dependent decimal point, rather than always '.'.
61201
61202 2007-03-09  Eric Blake  <ebb9@byu.net>
61203
61204         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61205         spite of platforms like Tandem/NSK that define it to -1.
61206
61207 2007-03-08  Bruno Haible  <bruno@clisp.org>
61208
61209         * modules/vprintf-posix-tests: New file.
61210         * tests/test-vprintf-posix.sh: New file.
61211         * tests/test-vprintf-posix.c: New file.
61212         * tests/test-printf-posix.h: New file.
61213
61214         * modules/vprintf-posix: New file.
61215         * lib/vprintf.c: New file.
61216         * m4/vprintf-posix.m4: New file.
61217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61218         REPLACE_VPRINTF.
61219         * lib/stdio_.h (vprintf): New declaration.
61220         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61221         REPLACE_VPRINTF.
61222
61223 2007-03-08  Bruno Haible  <bruno@clisp.org>
61224
61225         * modules/fprintf-posix-tests: New file.
61226         * tests/test-fprintf-posix.sh: New file.
61227         * tests/test-fprintf-posix.c: New file.
61228
61229         * modules/fprintf-posix: New file.
61230         * lib/fprintf.c: New file.
61231         * m4/fprintf-posix.m4: New file.
61232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61233         REPLACE_FPRINTF.
61234         * lib/stdio_.h (fprintf): New declaration.
61235         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61236         REPLACE_FPRINTF.
61237
61238 2007-03-08  Bruno Haible  <bruno@clisp.org>
61239
61240         * modules/vfprintf-posix-tests: New file.
61241         * tests/test-vfprintf-posix.sh: New file.
61242         * tests/test-vfprintf-posix.c: New file.
61243         * tests/test-fprintf-posix.h: New file.
61244         * tests/test-fprintf-posix.out: New file.
61245
61246         * modules/vfprintf-posix: New file.
61247         * lib/vfprintf.c: New file.
61248         * m4/vfprintf-posix.m4: New file.
61249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
61250         REPLACE_VFPRINTF.
61251         * lib/stdio_.h (vfprintf): New declaration.
61252         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
61253         REPLACE_VFPRINTF.
61254
61255 2007-03-08  Bruno Haible  <bruno@clisp.org>
61256
61257         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
61258
61259 2007-03-08  Bruno Haible  <bruno@clisp.org>
61260
61261         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
61262         instead of 'expr' invocations.
61263         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61264         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61265         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61266         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61267         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61268         Suggested by Paul Eggert.
61269
61270 2007-03-08  Bruno Haible  <bruno@clisp.org>
61271
61272         * modules/fseterr-tests: New file.
61273         * tests/test-fseterr.c: New file.
61274
61275         * modules/fseterr: New file.
61276         * lib/fseterr.h: New file.
61277         * lib/fseterr.c: New file.
61278
61279 2007-03-08  Bruno Haible  <bruno@clisp.org>
61280
61281         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
61282         * lib/getopt_.h: Likewise.
61283         * lib/mbswidth.h: Likewise.
61284         * lib/setenv.h: Likewise.
61285         * lib/vasnprintf.h: Likewise.
61286         * lib/vasprintf.h: Likewise.
61287         * lib/verror.h: Likewise.
61288         * lib/xsetenv.h: Likewise.
61289         * lib/xvasprintf.h: Likewise.
61290
61291 2007-03-08  Jim Meyering  <jim@meyering.net>
61292
61293         * users.txt: Add parted.
61294
61295         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
61296
61297 2007-03-07  Bruno Haible  <bruno@clisp.org>
61298
61299         * m4/printf.m4: Make the shell script snippets copy&pastable.
61300
61301 2007-03-02  Bruno Haible  <bruno@clisp.org>
61302
61303         * lib/netinet_in_.h: New file.
61304         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
61305         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
61306         * modules/netinet_in (Files): Add lib/netinet_in_.h.
61307         (Depends-on): Add absolute-header.
61308         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
61309         into netinet/in.h.
61310
61311 2007-03-03  Bruno Haible  <bruno@clisp.org>
61312
61313         * lib/sys_select_.h: New file.
61314         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
61315         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
61316         * modules/sys_select (Files): Add lib/sys_select_.h.
61317         (Depends-on): Add absolute-header.
61318         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
61319         into sys/select.h.
61320
61321 2007-03-02  Bruno Haible  <bruno@clisp.org>
61322
61323         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
61324         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
61325         values.
61326         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
61327         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
61328         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
61329         * modules/sys_socket (Depends-on): Add absolute-header.
61330         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
61331         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
61332         (Include): Remove requirement of inclusion of <sys/types.h>.
61333
61334 2007-03-02  Bruno Haible  <bruno@clisp.org>
61335
61336         * lib/byteswap_.h (bswap_32): Fix formula.
61337
61338 2007-03-06  Bruno Haible  <bruno@clisp.org>
61339
61340         * modules/sprintf-posix-tests: New file.
61341         * tests/test-sprintf-posix.c: New file.
61342
61343         * modules/sprintf-posix: New file.
61344         * lib/sprintf.c: New file.
61345         * m4/sprintf-posix.m4: New file.
61346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61347         REPLACE_SPRINTF.
61348         * lib/stdio_.h (sprintf): New declaration.
61349         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61350         REPLACE_SPRINTF.
61351
61352 2007-03-06  Bruno Haible  <bruno@clisp.org>
61353
61354         * modules/vsprintf-posix-tests: New file.
61355         * tests/test-vsprintf-posix.c: New file.
61356         * tests/test-sprintf-posix.h: New file.
61357
61358         * modules/vsprintf-posix: New file.
61359         * lib/vsprintf.c: New file.
61360         * m4/vsprintf-posix.m4: New file.
61361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61362         REPLACE_VSPRINTF.
61363         * lib/stdio_.h (vsprintf): New declaration.
61364         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61365         REPLACE_VSPRINTF.
61366
61367 2007-03-06  Bruno Haible  <bruno@clisp.org>
61368
61369         * modules/vsnprintf (Depend-on): Remove minmax.
61370
61371 2007-03-06  Bruno Haible  <bruno@clisp.org>
61372
61373         * modules/snprintf-posix-tests: New file.
61374         * tests/test-snprintf-posix.c: New file.
61375
61376         * modules/snprintf-posix: New file.
61377         * m4/snprintf-posix.m4: New file.
61378         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
61379         gl_FUNC_SNPRINTF.
61380         (gl_FUNC_SNPRINTF): Invoke it.
61381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
61382         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
61383         is set.
61384         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
61385
61386 2007-03-06  Bruno Haible  <bruno@clisp.org>
61387
61388         * modules/vsnprintf-posix-tests: New file.
61389         * tests/test-vsnprintf-posix.c: New file.
61390         * tests/test-snprintf-posix.h: New file.
61391
61392         * modules/vsnprintf-posix: New file.
61393         * m4/vsnprintf-posix.m4: New file.
61394         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
61395         gl_FUNC_VSNPRINTF.
61396         (gl_FUNC_VSNPRINTF): Invoke it.
61397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
61398         * lib/stdio_.h (vsnprintf): Define as a replacement if
61399         REPLACE_VSNPRINTF is set.
61400         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
61401
61402 2007-03-06  Bruno Haible  <bruno@clisp.org>
61403
61404         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
61405         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
61406
61407 2007-03-06  Bruno Haible  <bruno@clisp.org>
61408
61409         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
61410         (asinl): Declare also if HAVE_DECL_ASINL is set.
61411         (atanl): Declare also if HAVE_DECL_ATANL is set.
61412         (ceill): Declare also if HAVE_DECL_CEILL is set.
61413         (cosl): Declare also if HAVE_DECL_COSL is set.
61414         (expl): Declare also if HAVE_DECL_EXPL is set.
61415         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61416         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61417         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
61418         (logl): Declare also if HAVE_DECL_LOGL is set.
61419         (sinl): Declare also if HAVE_DECL_SINL is set.
61420         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
61421         (tanl): Declare also if HAVE_DECL_TANL is set.
61422         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
61423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
61424         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
61425         declaration of frexpl, ldexpl.
61426         * modules/printf-frexpl (Depends-on): Add math.
61427         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
61428
61429 2007-03-05  Bruno Haible  <bruno@clisp.org>
61430
61431         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
61432         frexpl and ldexpl are declared.
61433         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
61434
61435 2007-03-05  Bruno Haible  <bruno@clisp.org>
61436
61437         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
61438         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
61439
61440 2007-03-05  Bruno Haible  <bruno@clisp.org>
61441
61442         * lib/stdio_.h: Include <stddef.h>.
61443
61444 2007-03-05  Bruno Haible  <bruno@clisp.org>
61445
61446         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
61447
61448 2007-03-05  Bruno Haible  <bruno@clisp.org>
61449
61450         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
61451         NetBSD 4, from Ralf Wildenhues.
61452
61453 2007-03-04  Bruno Haible  <bruno@clisp.org>
61454
61455         * lib/vasprintf.h: Update #if logic for the case when the functions
61456         exist but are overridden.
61457
61458 2007-03-04  Bruno Haible  <bruno@clisp.org>
61459
61460         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
61461         implementations: glibc-2.4 and MacOS X 10.3.
61462         * tests/test-vasnprintf-posix.c (test_function): Test also the case
61463         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
61464         * tests/test-vasprintf-posix.c (test_function): Likewise.
61465
61466 2007-03-04  Bruno Haible  <bruno@clisp.org>
61467
61468         * modules/vasprintf-posix-tests: New file.
61469         * tests/test-vasprintf-posix.c: New file.
61470
61471         * modules/vasprintf-posix: New file.
61472         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
61473         defined.
61474         * m4/vasprintf-posix.m4: New file.
61475         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
61476         gl_FUNC_VASPRINTF.
61477         (gl_FUNC_VASPRINTF): Invoke it.
61478         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
61479         here.
61480         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
61481
61482 2007-03-04  Bruno Haible  <bruno@clisp.org>
61483
61484         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
61485         REPLACE_GETTIMEOFDAY.
61486         * modules/sys_time (Makefile.am): Likewise.
61487         * m4/sys_time_h.m4: Likewise.
61488         * m4/gettimeofday.m4: Likewise.
61489
61490 2007-03-04  Bruno Haible  <bruno@clisp.org>
61491
61492         * modules/vasnprintf-posix-tests: New file.
61493         * tests/test-vasnprintf-posix.c: New file.
61494
61495         * modules/vasnprintf-posix: New file.
61496         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
61497         printf-frexpl.h.
61498         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
61499         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
61500         REPLACE_VASNPRINTF is defined.
61501         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
61502         gl_FUNC_VASNPRINTF.
61503         (gl_FUNC_VASNPRINTF): Invoke it.
61504         * m4/vasnprintf-posix.m4: New file.
61505         * m4/printf.m4: New file.
61506
61507 2007-03-04  Bruno Haible  <bruno@clisp.org>
61508
61509         Compile progreloc.c only if --enable-relocatable is specified.
61510         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
61511         if --enable-relocatable was specified.
61512         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
61513         lib_SOURCES.
61514
61515 2007-03-04  Jim Meyering  <jim@meyering.net>
61516
61517         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
61518         Use it consistently, rather than enumerating errno constants.
61519
61520 2007-03-04  Bruno Haible  <bruno@clisp.org>
61521
61522         * modules/xvasprintf-tests: New file.
61523         * tests/test-xvasprintf.c: New file.
61524
61525         * modules/vasprintf-tests: New file.
61526         * tests/test-vasprintf.c: New file.
61527
61528         * modules/vasnprintf-tests: New file.
61529         * tests/test-vasnprintf.c: New file.
61530
61531         * modules/vsnprintf-tests: New file.
61532         * tests/test-vsnprintf.c: New file.
61533
61534         * modules/snprintf-tests: New file.
61535         * tests/test-snprintf.c: New file.
61536
61537 2007-03-04  Bruno Haible  <bruno@clisp.org>
61538
61539         Compile relocatable.c only if --enable-relocatable is specified.
61540         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
61541         gl_RELOCATABLE_LIBRARY.
61542         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
61543         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
61544         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
61545         gl_RELOCATABLE_LIBRARY.
61546         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
61547         (Makefile.am): Remove lib_SOURCES.
61548         * modules/relocatable-lib-lgpl (configure.ac): Invoke
61549         gl_RELOCATABLE_LIBRARY.
61550         (Makefile.am): Remove lib_SOURCES.
61551         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
61552         always.
61553         * modules/relocatable-prog-wrapper (configure.ac): Invoke
61554         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
61555
61556 2007-03-04  Bruno Haible  <bruno@clisp.org>
61557
61558         * modules/argmatch-tests: New file.
61559         * tests/test-argmatch.c: New file.
61560
61561         * tests/test-allocsa.c (main): Halve the number of loop runs.
61562
61563         * modules/alloca-opt-tests: New file.
61564         * tests/test-alloca-opt.c: New file.
61565
61566 2007-03-04  Jim Meyering  <jim@meyering.net>
61567
61568         Work around difference between Linux ACLs and Solaris 10 ZFS.
61569         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
61570         for EINVAL.
61571
61572 2007-03-03  Bruno Haible  <bruno@clisp.org>
61573
61574         * modules/relocatable-prog (Depends-on): Add back progreloc's
61575         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
61576
61577 2007-03-03  Bruno Haible  <bruno@clisp.org>
61578
61579         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
61580         * modules/relocatable-lib: New file.
61581
61582 2007-03-03  Bruno Haible  <bruno@clisp.org>
61583
61584         * modules/relocatable-prog: Renamed from modules/relocatable.
61585         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
61586
61587 2007-03-03  Bruno Haible  <bruno@clisp.org>
61588
61589         * modules/relocatable-script (Files): Add doc/relocatable.texi,
61590         m4/relocatable-lib.m4.
61591         (Depends-on): Remove 'relocatable'.
61592         (configure.ac): Add gl_RELOCATABLE_NOP.
61593
61594 2007-03-03  Bruno Haible  <bruno@clisp.org>
61595
61596         * modules/relocatable-prog-wrapper: New file.
61597         * modules/relocatable (Depends-on): Add it. Remove all other
61598         dependencies except progname.
61599         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
61600
61601         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
61602         (gl_FUNC_STRERROR): Nop.
61603         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
61604
61605         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
61606         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
61607
61608         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
61609         (gl_FUNC_READLINK): Update.
61610
61611         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
61612
61613 2007-03-03  Bruno Haible  <bruno@clisp.org>
61614
61615         * lib/xreadlink.c: Include <unistd.h> unconditionally.
61616         * modules/xreadlink (Depends-on): Add unistd.
61617         * modules/xreadlink-with-size (Depends-on): Likewise.
61618
61619 2007-03-03  Bruno Haible  <bruno@clisp.org>
61620
61621         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
61622         extracted from gt_FUNC_SETENV.
61623         (gt_FUNC_SETENV): Remove macro.
61624         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
61625         remove gt_FUNC_SETENV.
61626
61627 2007-03-03  Bruno Haible  <bruno@clisp.org>
61628
61629         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
61630         ENABLE_RELOCATABLE here.
61631         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
61632
61633 2007-03-03  Bruno Haible  <bruno@clisp.org>
61634
61635         * modules/rbtreehash-list-tests (Depends-on): Add progname.
61636         * tests/test-rbtreehash_list.c: Include progname.h.
61637         (main): Call set_program_name.
61638
61639         * modules/rbtree-oset-tests (Depends-on): Add progname.
61640         * tests/test-rbtree_oset.c: Include progname.h.
61641         (main): Call set_program_name.
61642
61643         * modules/rbtree-list-tests (Depends-on): Add progname.
61644         * tests/test-rbtree_list.c: Include progname.h.
61645         (main): Call set_program_name.
61646
61647         * modules/linked-list-tests (Depends-on): Add progname.
61648         * tests/test-linked_list.c: Include progname.h.
61649         (main): Call set_program_name.
61650
61651 2007-03-03  Bruno Haible  <bruno@clisp.org>
61652
61653         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
61654         All uses of __restrict changed to _Restrict_.
61655         * lib/glob_.h (__restrict): Remove macro.
61656
61657 2007-03-02  Bruno Haible  <bruno@clisp.org>
61658
61659         * modules/gettext (configure.ac): Require gettext infrastructure
61660         from version 0.16.1.
61661
61662 2007-03-02  Bruno Haible  <bruno@clisp.org>
61663
61664         * modules/linkedhash-list-tests (Depends-on): Add progname.
61665         * tests/test-linkedhash_list.c: Include progname.h.
61666         (main): Call set_program_name.
61667
61668         * modules/carray-list-tests (Depends-on): Add progname.
61669         * tests/test-carray_list.c: Include progname.h.
61670         (main): Call set_program_name.
61671
61672         * modules/avltreehash-list-tests (Depends-on): Add progname.
61673         * tests/test-avltreehash_list.c: Include progname.h.
61674         (main): Call set_program_name.
61675
61676         * modules/avltree-oset-tests (Depends-on): Add progname.
61677         * tests/test-avltree_oset.c: Include progname.h.
61678         (main): Call set_program_name.
61679
61680         * modules/avltree-list-tests (Depends-on): Add progname.
61681         * tests/test-avltree_list.c: Include progname.h.
61682         (main): Call set_program_name.
61683
61684         * modules/array-oset-tests (Depends-on): Add progname.
61685         * tests/test-array_oset.c: Include progname.h.
61686         (main): Call set_program_name.
61687
61688         * modules/array-list-tests (Depends-on): Add progname.
61689         * tests/test-array_list.c: Include progname.h.
61690         (main): Call set_program_name.
61691
61692         * modules/argp-tests (Depends-on): Add progname.
61693         * tests/test-argp.c: Include argp.h first. Include progname.h.
61694         (main): Call set_program_name.
61695
61696 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
61697
61698         * doc/gnulib-tool.texi (Initial import): Reword description of
61699         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
61700         limited effect even if defined after the first system include.
61701
61702 2007-03-01  Bruno Haible  <bruno@clisp.org>
61703
61704         * build-aux/config.libpath: Update to libtool-1.5.22.
61705         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61706
61707 2007-03-01  Bruno Haible  <bruno@clisp.org>
61708
61709         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
61710         foo_CFLAGS.
61711         Reported by Ralf Wildenhues.
61712
61713 2007-03-01  Bruno Haible  <bruno@clisp.org>
61714
61715         * build-aux/install-reloc: Remove object files left over by some
61716         compilers.
61717         Reported by Ralf Wildenhues.
61718
61719 2007-03-01  Bruno Haible  <bruno@clisp.org>
61720
61721         * build-aux/install-reloc: Break long lines.
61722
61723 2007-03-01  Bruno Haible  <bruno@clisp.org>
61724
61725         * doc/relocatable.texi: Document that it may not work on OpenBSD.
61726         Reported by Ralf Wildenhues.
61727
61728 2007-03-01  Bruno Haible  <bruno@clisp.org>
61729
61730         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
61731         include ordering constraints.
61732
61733 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61734
61735         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
61736         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
61737         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
61738         as another example.
61739         * lib/time_.h: Fix misspelling.
61740         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61741         Require gl_HEADER_TIME_H_DEFAULTS.
61742         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
61743         * m4/time_r.m4 (gl_TIME_R): Likewise.
61744         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
61745
61746 2007-03-01  Bruno Haible  <bruno@clisp.org>
61747
61748         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
61749         * m4/utimens.m4 (gl_UTIMENS): Likewise.
61750
61751 2007-03-01  Jim Meyering  <jim@meyering.net>
61752
61753         * modules/xreadlink (Maintainer): Add my name.
61754         * modules/xreadlink-with-size (Depends-on): Alphabetize.
61755
61756 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
61757             Bruno Haible  <bruno@clisp.org>
61758
61759         * build-aux/install-reloc: Compile also c-ctype.c.
61760         * build-aux/relocatable.sh.in: New file.
61761         * doc/relocatable.texi: New file.
61762         * doc/relocatable-maint.texi: New file.
61763         * doc/gnulib.texi: Include relocatable-maint.texi.
61764         * lib/progreloc.c: Include unistd.h unconditionally.
61765         * lib/relocwrapper.c: Include unistd.h unconditionally.
61766         Include c-ctype.h.
61767         (add_dotbin): Use c_tolower.
61768         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
61769         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
61770         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
61771         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
61772         to m4/relocatable-lib.m4.
61773         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
61774         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
61775         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
61776         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
61777         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
61778         * modules/relocatable: New file.
61779         * modules/relocatable-lib: New file.
61780         * modules/relocatable-script: New file.
61781
61782 2007-02-28  Bruno Haible  <bruno@clisp.org>
61783
61784         Import --enable-relocatable infrastructure.
61785         * build-aux/config.libpath: New file, from GNU gettext.
61786         * build-aux/install-reloc: New file, from GNU gettext.
61787         * build-aux/reloc-ldflags: New file, from GNU gettext.
61788         * lib/relocatable.h: New file, from GNU gettext.
61789         * lib/relocatable.c: New file, from GNU gettext.
61790         * lib/relocwrapper.c: New file, from GNU gettext.
61791         * m4/relocatable.m4: New file, from GNU gettext.
61792
61793 2007-02-28  Bruno Haible  <bruno@clisp.org>
61794
61795         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
61796
61797         * modules/xreadlink: New file, from GNU gettext with modifications.
61798         * lib/xreadlink.c: New file, from GNU gettext.
61799         * lib/xreadlink.h: Add comments.
61800         (xreadlink): New declaration.
61801
61802         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
61803         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
61804         lib/xreadlink-with-size.c.
61805         (configure.ac): Remove gl_XREADLINK invocation.
61806         (Makefile.am): Augment lib_SOURCES.
61807         * m4/xreadlink.m4: Remove file.
61808         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
61809         (xreadlink_with_size): Renamed from xreadink.
61810         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
61811         * modules/canonicalize (Depends-on): Replace xreadlink with
61812         xreadlink-with-size.
61813         * lib/canonicalize.c (canonicalize_filename_mode): Update.
61814
61815 2007-02-25  Jim Meyering  <jim@meyering.net>
61816
61817         * build-aux/announce-gen: When complaining about excess arguments,
61818         list them.
61819
61820 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61821
61822         * README: Document signed integer overflow situation more
61823         accurately.
61824
61825 2007-02-25  Bruno Haible  <bruno@clisp.org>
61826
61827         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
61828         'a' or 'A' conversion.
61829
61830 2007-02-25  Bruno Haible  <bruno@clisp.org>
61831
61832         * modules/filename: Renamed from modules/pathname.
61833         (Files): Replace lib/pathname.h with lib/filename.h. Replace
61834         lib/concatpath.c with lib/concat-filename.c.
61835         (Makefile.am): Update.
61836         (Include): Replace pathname.h with filename.h.
61837         * lib/filename.h: Renamed from lib/pathname.h.
61838         (concatenated_filename): Renamed from concatenated_pathname.
61839         * lib/concat-filename.c: Renamed from lib/concatpath.c.
61840         (concatenated_filename): Renamed from concatenated_pathname.
61841         * lib/findprog.c: Include filename.h instead of pathname.h.
61842         (find_in_path): Update.
61843         * lib/javacomp.c: Include filename.h instead of pathname.h.
61844         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
61845         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
61846         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
61847         is_oldgcj_14_13_usable, is_javac_usable): Update.
61848         * lib/javaexec.c: Include filename.h instead of pathname.h.
61849         (execute_java_class): Update.
61850         * modules/findprog: Update.
61851         * modules/javacomp: Update.
61852         * modules/javaexec: Update.
61853         * MODULES.html.sh (File system functions): Add 'filename', remove
61854         'pathname'.
61855
61856 2007-02-25  Bruno Haible  <bruno@clisp.org>
61857
61858         * modules/printf-frexpl-tests: New file.
61859         * tests/test-printf-frexpl.c: New file.
61860
61861         * modules/printf-frexpl: New file.
61862         * lib/printf-frexpl.h: New file.
61863         * lib/printf-frexpl.c: New file.
61864         * m4/printf-frexpl.m4: New file.
61865
61866 2007-02-25  Bruno Haible  <bruno@clisp.org>
61867
61868         * modules/printf-frexp-tests: New file.
61869         * tests/test-printf-frexp.c: New file.
61870
61871         * modules/printf-frexp: New file.
61872         * lib/printf-frexp.h: New file.
61873         * lib/printf-frexp.c: New file.
61874         * m4/printf-frexp.m4: New file.
61875
61876 2007-02-25  Bruno Haible  <bruno@clisp.org>
61877
61878         Assume automake >= 1.10 for the tests.
61879         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
61880         * modules/arctwo-tests: Likewise.
61881         * modules/argp-tests: Likewise.
61882         * modules/avltree-list-tests: Likewise.
61883         * modules/avltree-oset-tests: Likewise.
61884         * modules/avltreehash-list-tests: Likewise.
61885         * modules/carray-list-tests: Likewise.
61886         * modules/crc-tests: Likewise.
61887         * modules/des-tests: Likewise.
61888         * modules/gc-arcfour-tests: Likewise.
61889         * modules/gc-arctwo-tests: Likewise.
61890         * modules/gc-des-tests: Likewise.
61891         * modules/gc-hmac-md5-tests: Likewise.
61892         * modules/gc-hmac-sha1-tests: Likewise.
61893         * modules/gc-md2-tests: Likewise.
61894         * modules/gc-md4-tests: Likewise.
61895         * modules/gc-md5-tests: Likewise.
61896         * modules/gc-pbkdf2-sha1-tests: Likewise.
61897         * modules/gc-rijndael-tests: Likewise.
61898         * modules/gc-sha1-tests: Likewise.
61899         * modules/gc-tests: Likewise.
61900         * modules/getaddrinfo-tests: Likewise.
61901         * modules/hmac-md5-tests: Likewise.
61902         * modules/hmac-sha1-tests: Likewise.
61903         * modules/linked-list-tests: Likewise.
61904         * modules/linkedhash-list-tests: Likewise.
61905         * modules/lock-tests: Likewise.
61906         * modules/md2-tests: Likewise.
61907         * modules/md4-tests: Likewise.
61908         * modules/md5-tests: Likewise.
61909         * modules/rbtree-list-tests: Likewise.
61910         * modules/rbtree-oset-tests: Likewise.
61911         * modules/rbtreehash-list-tests: Likewise.
61912         * modules/read-file-tests: Likewise.
61913         * modules/rijndael-tests: Likewise.
61914         * modules/stdint-tests: Likewise.
61915         * modules/tls-tests: Likewise.
61916
61917 2007-02-24  Bruno Haible  <bruno@clisp.org>
61918
61919         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
61920         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
61921         function; instead check whether isnan with a double argument links.
61922         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
61923         function; instead check whether isnan with a 'long double' argument
61924         links.
61925         Reported by Eric Blake <ebb9@byu.net>.
61926
61927 2007-02-24  Bruno Haible  <bruno@clisp.org>
61928
61929         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
61930         defined.
61931         * lib/isnanl.c: Remove all code. Just include isnan.c.
61932         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
61933
61934 2007-02-25  Jim Meyering  <jim@meyering.net>
61935
61936         Avoid conflicting types for 'unsetenv' on FreeBSD.
61937         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
61938         conflicting with FreeBSD's (5.0 and 6.1) function declaration
61939         in stdlib.h.
61940
61941 2007-02-24  Bruno Haible  <bruno@clisp.org>
61942
61943         * modules/isnanl-nolibm-tests: New file.
61944         * tests/test-isnanl.c: New file.
61945
61946         * modules/isnanl-nolibm: New file.
61947         * lib/isnanl.h: New file.
61948         * lib/isnanl.c: New file.
61949         * m4/isnanl.m4: New file.
61950
61951 2007-02-24  Bruno Haible  <bruno@clisp.org>
61952
61953         * modules/isnan-nolibm-tests: New file.
61954         * tests/test-isnan.c: New file.
61955
61956         * modules/isnan-nolibm: New file.
61957         * lib/isnan.h: New file.
61958         * lib/isnan.c: New file.
61959         * m4/isnan.m4: New file.
61960
61961 2007-02-24  Bruno Haible  <bruno@clisp.org>
61962
61963         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
61964         assume that an exponent fits in 20 bits.
61965
61966 2007-02-24  Jim Meyering  <jim@meyering.net>
61967
61968         * m4/regex.m4: Update the description of the configure-time option,
61969         --without-included-regex, to state accurately what the defaults are,
61970         and perhaps to give people an idea why using this option is risky.
61971
61972 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61973
61974         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
61975         loops on small arguments.  This attempts to avoid the problem
61976         Bruno Haible reported for AIX 4.3.2 in
61977         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
61978
61979 2007-02-23  Bruno Haible  <bruno@clisp.org>
61980
61981         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
61982         Needed for help2man.
61983
61984 2007-02-23  Karl Berry  <karl@gnu.org>
61985
61986         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
61987         exists, foo.h should be cvs-ignored, not committed.
61988
61989 2007-02-23  Eric Blake  <ebb9@byu.net>
61990
61991         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
61992         * lib/stat-time.h (includes): Likewise.
61993         * lib/utimecmp.c (includes): Likewise.
61994         * lib/utimens.h (includes): Likewise.
61995         * lib/getdate.y (includes): Also include "timespec.h" for use
61996         internal to the module.
61997         * modules/utimens (Depends-on): Revert yesterday's patch.
61998         * modules/nanosleep (Depends-on): Add missing dependency.
61999
62000 2007-02-22  Bruno Haible  <bruno@clisp.org>
62001
62002         * lib/glob.c: Don't include getlogin_r.h.
62003
62004 2007-02-22  Jim Meyering  <jim@meyering.net>
62005
62006         * modules/utimens (Depends-on): Add timespec, required for
62007         utimens.h's inclusion of timespec.h.
62008
62009 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62010
62011         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62012         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62013         Schwab in
62014         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62015         I'll try to think of a better way to fix the Solaris problem.
62016
62017         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62018         like glibc; on Solaris 10, it fails with errno == EINVAL.
62019         POSIX says the behavior is unspecified if the first argument is NULL,
62020         so play it safe and never pass NULL to the system getcwd.
62021
62022 2007-02-21  Jim Meyering  <jim@meyering.net>
62023
62024         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62025         of gettimeofday.  It would conflict with the one now always
62026         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62027         an IRIX 6.5 build failure.
62028
62029 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62030
62031         Minor fixups to port to Solaris 10 with Sun C 5.8.
62032         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62033         * modules/getcwd (Depends-on): Add dirfd.
62034         * lib/putenv.c (putenv): #undef it.
62035         (rpl_putenv): New decl.
62036         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62037
62038 2007-02-20  Bruno Haible  <bruno@clisp.org>
62039
62040         * modules/stdio-tests: New file.
62041         * tests/test-stdio.c: New file.
62042
62043         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62044         (Depends-on): Add stdio.
62045         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62046         (Include): Use <stdio.h> instead of vsnprintf.h.
62047         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62048         HAVE_DECL_VSNPRINTF.
62049         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62050
62051         * modules/snprintf (Files): Remove lib/snprintf.h.
62052         (Depends-on): Add stdio.
62053         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62054         (Include): Use <stdio.h> instead of snprintf.h.
62055         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62056         HAVE_DECL_SNPRINTF.
62057         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62058         * lib/getaddrinfo.c: Likewise.
62059
62060         * modules/stdio: New file.
62061         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62062         * lib/snprintf.h: Remove file.
62063         * lib/vsnprintf.h: Remove file.
62064         * lib/.cppi-disable: Remove snprintf.h.
62065         * m4/stdio_h.m4: New file.
62066         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62067
62068 2007-02-20  Jim Meyering  <jim@meyering.net>
62069
62070         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62071         used by e.g., mingw.  From Bruno Haible.
62072
62073 2007-02-19  Bruno Haible  <bruno@clisp.org>
62074
62075         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62076         warnings.
62077         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62078
62079 2007-02-19  Bruno Haible  <bruno@clisp.org>
62080
62081         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62082         from mingw users.
62083
62084 2007-02-19  Bruno Haible  <bruno@clisp.org>
62085
62086         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62087         warnings.
62088         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62089
62090 2007-02-19  Jim Meyering  <jim@meyering.net>
62091
62092         Don't use FD after a successful "fdopendir (fd)".
62093         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62094         Reset it by calling dirfd on the just-obtained DIR*.
62095
62096         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62097         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62098
62099 2007-02-18  Bruno Haible  <bruno@clisp.org>
62100
62101         * lib/readlink.c: Include <unistd.h>.
62102         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62103         HAVE_READLINK.
62104         * modules/readlink (Depends-on): Add unistd.
62105         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62106         (Include): Add <unistd.h>.
62107
62108         * lib/getlogin_r.h: Remove file.
62109         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62110         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62111         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62112         HAVE_DECL_GETLOGIN_R.
62113         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62114         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62115         (Include): Use <unistd.h> instead of getlogin_r.h.
62116
62117         * lib/getcwd.h: Remove file.
62118         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62119         * lib/xgetcwd.c: Likewise.
62120         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62121         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62122         * modules/getcwd (Files): Remove lib/getcwd.h.
62123         (Depends-on): Add unistd.
62124         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62125         (Include): Use <unistd.h> instad of getcwd.h.
62126
62127         * lib/ftruncate.c: Include <unistd.h> first.
62128         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62129         Set HAVE_FTRUNCATE.
62130         * modules/ftruncate (Depends-on): Add unistd.
62131         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62132
62133         * lib/fchdir.c: Include <unistd.h> first.
62134         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62135         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62136         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62137         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62138         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62139
62140         * lib/dup2.c: Include <unistd.h> first.
62141         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62142         HAVE_DUP2.
62143         * modules/dup2 (Depends-on): Add unistd.
62144         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62145
62146         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62147         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62148         REPLACE_CHOWN. Don't define chown as a macro here.
62149         * modules/chown (Depends-on): Add unistd.
62150         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62151
62152         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62153         Add definition for GL_LINK_WARNING.
62154         (chown, dup2): New declarations.
62155         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62156         link warning.
62157         (ftruncate): New declaration.
62158         (getcwd): New declaration, taken from old getcwd.h.
62159         (getlogin_r): New declaration, taken from old getlogin_r.h.
62160         (readlink): New declaration.
62161         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62162         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62163         (gl_PREREQ_UNISTD): Remove macro.
62164         (gl_UNISTD_MODULE_INDICATOR): New macro.
62165         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62166         many new variables. Don't set UNISTD_H.
62167         * modules/unistd (Description): Change.
62168         (Depends-on): Add link-warning.
62169         (configure.ac): Update.
62170         (Makefile.am): Create unistd.h always. Substitute many new variables
62171         into it.
62172
62173 2007-02-18  Bruno Haible  <bruno@clisp.org>
62174
62175         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62176         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62177         HAVE_GETSUBOPT.
62178         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62179         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62180         * lib/getsubopt.h: Remove file.
62181         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62182         (Depends-on): Add stdlib.
62183         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62184         (Includes): Use <stdlib.h> instead of getsubopt.h.
62185         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62186         Set HAVE_GETSUBOPT.
62187         * lib/getsubopt.c: Don't include getsubopt.h.
62188
62189 2007-02-18  Bruno Haible  <bruno@clisp.org>
62190
62191         * modules/fchdir (Depends-on): Add dup2.
62192
62193 2007-02-18  Bruno Haible  <bruno@clisp.org>
62194
62195         * lib/stdlib_.h: Handle glibc's special invocation convention
62196         specially.
62197
62198 2007-02-18  Bruno Haible  <bruno@clisp.org>
62199
62200         * modules/stdlib-tests: New file.
62201         * tests/test-stdlib.c: New file.
62202
62203         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62204         (Depends-on): Add stdlib.
62205         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62206         (Includes): Use <stdlib.h> instead of mkstemp.h.
62207         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62208         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62209         * lib/mkstemp.c: Don't include mkstemp.h.
62210         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62211         * lib/stdlib--.h: Don't include mkstemp.h.
62212
62213         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62214         (Depends-on): Add stdlib.
62215         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62216         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62217         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62218         HAVE_MKDTEMP.
62219         * lib/mkdtemp.c: Don't include mkdtemp.h.
62220         * lib/clean-temp.c: Don't include mkdtemp.h.
62221
62222         * modules/exit (Files): Remove lib/exit.h.
62223         (Depends-on): Add stdlib.
62224         (Makefile.am): Remove lib_SOURCES.
62225         (Include): Use <stdlib.h> instead of exit.h.
62226         * lib/argmatch.c: Don't include exit.h.
62227         * lib/execute.c: Likewise.
62228         * lib/pagealign_alloc.c: Likewise.
62229         * lib/pipe.c: Likewise.
62230         * lib/wait-process.c: Likewise.
62231         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62232         * lib/exitfail.c: Likewise.
62233         * lib/savewd.c: Likewise.
62234         * lib/xsetenv.c: Likewise.
62235
62236         * modules/stdlib: New file.
62237         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62238         and extra comments about mkstemp().
62239         * lib/exit.h: Remove file.
62240         * lib/mkdtemp.h: Remove file.
62241         * lib/mkstemp.h: Remove file.
62242         * m4/stdlib_h.m4: New file.
62243         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62244
62245 2007-02-18  Bruno Haible  <bruno@clisp.org>
62246
62247         * modules/math-tests: New file.
62248         * tests/test-math.c: New file.
62249
62250         * modules/math: New file.
62251         * modules/mathl (Files): Remove lib/mathl.h.
62252         (Depends-on): Add math.
62253         (Makefile.am): Don't mention mathl.h.
62254         (Include): Use <math.h> instead of mathl.h.
62255         * lib/math_.h: New file.
62256         * lib/mathl.h: Remove file.
62257         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
62258         mathl.h.
62259         * lib/asinl.c: Likewise.
62260         * lib/atanl.c: Likewise.
62261         * lib/ceill.c: Likewise.
62262         * lib/cosl.c: Likewise.
62263         * lib/expl.c: Likewise.
62264         * lib/floorl.c: Likewise.
62265         * lib/frexpl.c: Likewise.
62266         * lib/ldexpl.c: Likewise.
62267         * lib/logl.c: Likewise.
62268         * lib/sincosl.c: Likewise.
62269         * lib/sinl.c: Likewise.
62270         * lib/sqrtl.c: Likewise.
62271         * lib/tanl.c: Likewise.
62272         * lib/trigl.c: Likewise.
62273         * m4/math_h.m4: New file.
62274         * MODULES.html.sh (Mathematics): Add math.
62275
62276 2007-02-17  Bruno Haible  <bruno@clisp.org>
62277
62278         * modules/wctype-tests: New file.
62279         * tests/test-wctype.c: New file.
62280
62281         * modules/wchar-tests: New file.
62282         * tests/test-wchar.c: New file.
62283
62284         * modules/unistd-tests: New file.
62285         * tests/test-unistd.c: New file.
62286
62287         * modules/time-tests: New file.
62288         * tests/test-time.c: New file.
62289
62290         * modules/sysexits-tests: New file.
62291         * tests/test-sysexits.c: New file.
62292
62293         * modules/sys_time-tests: New file.
62294         * tests/test-sys_time.c: New file.
62295
62296         * modules/sys_stat-tests: New file.
62297         * tests/test-sys_stat.c: New file.
62298
62299         * modules/sys_socket-tests: New file.
62300         * tests/test-sys_socket.c: New file.
62301
62302         * modules/sys_select-tests: New file.
62303         * tests/test-sys_select.c: New file.
62304
62305         * modules/string-tests: New file.
62306         * tests/test-string.c: New file.
62307
62308         * modules/stdbool-tests: New file.
62309         * tests/test-stdbool.c: New file.
62310
62311         * modules/netinet_in-tests: New file.
62312         * tests/test-netinet_in.c: New file.
62313
62314         * modules/inttypes-tests: New file.
62315         * tests/test-inttypes.c: New file.
62316
62317         * modules/fcntl-tests: New file.
62318         * tests/test-fcntl.c: New file.
62319
62320         * modules/byteswap-tests: New file.
62321         * tests/test-byteswap.c: New file.
62322
62323         * modules/arpa_inet-tests: New file.
62324         * tests/test-arpa_inet.c: New file.
62325
62326 2007-02-17  Bruno Haible  <bruno@clisp.org>
62327
62328         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
62329         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
62330         if the corresponding module is not enabled. Emit link warnings if
62331         the function is used nevertheless.
62332         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
62333         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
62334         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
62335         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
62336         * modules/inttypes (Depends-on): Add link-warning.
62337         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62338         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
62339         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
62340         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
62341         * modules/imaxdiv (configure.ac): Likewise.
62342         * modules/strtoimax (configure.ac): Likewise.
62343         * modules/strtoumax (configure.ac): Likewise.
62344
62345 2007-02-17  Bruno Haible  <bruno@clisp.org>
62346
62347         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62348         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62349         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62350         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62351
62352 2007-02-17  Bruno Haible  <bruno@clisp.org>
62353
62354         * modules/link-warning: New file.
62355         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62356         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62357         * modules/string (Depends-on): Add link-warning.
62358         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62359         string.h.
62360         * MODULES.html.sh (Support for building libraries and executables): Add
62361         link-warning.
62362
62363 2007-02-17  Bruno Haible  <bruno@clisp.org>
62364
62365         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62366         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62367         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62368         long lines.
62369
62370 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62371             Bruno Haible  <bruno@clisp.org>
62372
62373         * modules/tmpfile: New file.
62374         * lib/tmpfile.c: New file.
62375         * m4/tmpfile.m4: New file.
62376         * MODULES.html.sh (func_all_modules): New section "Input/output".
62377
62378 2007-02-15  Bruno Haible  <bruno@clisp.org>
62379
62380         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
62381         (supports_delete_on_close): New function.
62382         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
62383
62384 2007-02-14  Bruno Haible  <bruno@clisp.org>
62385
62386         * modules/mbspcasecmp-tests: New file.
62387         * tests/test-mbspcasecmp.sh: New file.
62388         * tests/test-mbspcasecmp.c: New file.
62389
62390         New module mbspcasecmp.
62391         * modules/mbspcasecmp: New file.
62392         * lib/mbspcasecmp.c: New file.
62393         * lib/string_.h (strncasecmp): Change warning message.
62394         (mbspcasecmp): New declaration.
62395         * m4/mbspcasecmp.m4: New file.
62396         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62397         GNULIB_MBSPCASECMP.
62398         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
62399         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
62400
62401 2007-02-14  Bruno Haible  <bruno@clisp.org>
62402
62403         * modules/mbsncasecmp-tests: New file.
62404         * tests/test-mbsncasecmp.sh: New file.
62405         * tests/test-mbsncasecmp.c: New file.
62406
62407         New module mbsncasecmp.
62408         * modules/mbsncasecmp: New file.
62409         * lib/mbsncasecmp.c: New file.
62410         * lib/string_.h (mbsncasecmp): New declaration.
62411         * m4/mbsncasecmp.m4: New file.
62412         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62413         GNULIB_MBSNCASECMP.
62414         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62415         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62416
62417 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62418
62419         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
62420         Verify that it doesn't overlap with our flags.
62421         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
62422         do not have the desired effect in multibyte locales; instead, use
62423         mbscasecmp.
62424         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
62425         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
62426         we don't require GNU fnmatch ourselves (if our users require it, they
62427         should do so explicitly).
62428
62429         Fix regex code so it doesn't rely on strcasecmp.
62430         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
62431         Otherwise, include gnulib's langinfo.h.
62432         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
62433         undesirable behavior in non-C locales.  Instead, rely on localecharset.
62434         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
62435         * modules/regex (FILES): Remove m4/codeset.m4.
62436         (Depends-on): Add localcharset.  Remove strcase.
62437
62438 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62439
62440         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
62441         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62442
62443 2007-02-13  Bruno Haible  <bruno@clisp.org>
62444
62445         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
62446         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62447
62448 2007-02-12  Bruno Haible  <bruno@clisp.org>
62449
62450         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62451         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
62452         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
62453         time warning rather than a link error.
62454
62455 2007-02-12  Bruno Haible  <bruno@clisp.org>
62456
62457         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
62458         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62459         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62460
62461 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62462
62463         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
62464         args, not 2.
62465
62466 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62467
62468         New module 'time', so that apps can include <time.h> as per
62469         POSIX and GNU instead of separate include files like time_r.h
62470         and timegm.h.  This implementation tries out a simpler approach
62471         for replacing decls in standard include files (as compared to
62472         the string module), somewhat as an experiment.
62473
62474         * config/srclist.txt: Comment out mktime.c for now.
62475         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
62476         since it doesn't apply any more.  Use generic wording instead.
62477         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
62478         'time'.
62479         * lib/time_.h, m4/time_h.m4, modules/time: New files.
62480         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
62481         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
62482         Don't include <sys/types.h>; no longer needed since we assume C89.
62483         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
62484         * lib/strftime.c: Likewise.
62485         * lib/time_r.c: Likewise.
62486         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
62487         * lib/nanosleep.c: Include <time.h> first, to check interface.
62488         * lib/strptime.c: Likewise.
62489         * lib/time_r.c: Likewise.
62490         * lib/timegm.c: Likewise.
62491         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
62492         needed.
62493         * lib/timegm.c: Don't include timegm.h; no longer needed.
62494         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
62495         time.h now handles any problems in that area.
62496         (struct timespec, nanosleep): Remove; time.h now arranges for these.
62497         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
62498         that time.h defines struct timespec.
62499         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
62500         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
62501         handles that.
62502         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
62503         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
62504         needed.  Set REPLACE_LOCALTIME.
62505         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
62506         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
62507         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
62508         nanosleep; time_h.m4 now does that.  Don't require
62509         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
62510         module handles this now.
62511         * modules/getdate (Depends-on): Remove timespec.  Add time.
62512         * modules/nanosleep (Depends-on): Likewise.
62513         * modules/stat-time (Depends-on): Likewise.
62514         * modules/nanosleep (Include): Include time.h, not timespec.h.
62515         * modules/strptime (Files): Remove lib/strptime.h.
62516         (Depends-on): Add extensions, time.
62517         (Include): Include time.h, not strptime.h.
62518         * modules/time_r (Files): Remove lib/time_r.h.
62519         (Depends-on): Add time.
62520         (Include): Include time.h, not time_r.h.
62521         * modules/timegm: Likewise.
62522         * modules/timespec (Description): Now does timespec-related decls
62523         of our own, instead of struct timespec itself.
62524         (Depends-on): Add time; remove extensions.
62525         (Maintainer): Add self.
62526         * modules/utimecmp (Depends-on): Add time; remove timespec.
62527         * modules/utimens (Depends-on): Likewise.
62528         * modules/xnanosleep (Depends-on): Likewise.
62529
62530 2007-02-11  Bruno Haible  <bruno@clisp.org>
62531
62532         * lib/c-strstr.c: Include allocsa.h.
62533         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62534         * lib/c-strcasestr.c: Include allocsa.h.
62535         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62536         * lib/strcasestr.c: Include allocsa.h.
62537         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62538         * lib/mbsstr.c: Include allocsa.h.
62539         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62540         allocsa/freesa instead of malloc/free.
62541         * lib/mbscasestr.c: Include allocsa.h.
62542         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62543         allocsa/freesa instead of malloc/free.
62544         * modules/c-strstr (Depends-on): Add allocsa.
62545         * modules/c-strcasestr (Depends-on): Likewise.
62546         * modules/strcasestr (Depends-on): Likewise.
62547         * modules/mbsstr (Depends-on): Likewise.
62548         * modules/mbscasestr (Depends-on): Likewise.
62549
62550 2007-02-11  Bruno Haible  <bruno@clisp.org>
62551
62552         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
62553
62554         * modules/mbsspn-tests: New file.
62555         * tests/test-mbsspn.sh: New file.
62556         * tests/test-mbsspn.c: New file.
62557
62558 2007-02-11  Bruno Haible  <bruno@clisp.org>
62559
62560         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
62561
62562         * modules/mbspbrk-tests: New file.
62563         * tests/test-mbspbrk.sh: New file.
62564         * tests/test-mbspbrk.c: New file.
62565
62566 2007-02-11  Bruno Haible  <bruno@clisp.org>
62567
62568         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
62569         unneeded cast.
62570
62571         * modules/mbscspn-tests: New file.
62572         * tests/test-mbscspn.sh: New file.
62573         * tests/test-mbscspn.c: New file.
62574
62575 2007-02-11  Bruno Haible  <bruno@clisp.org>
62576
62577         * modules/mbscasecmp-tests: New file.
62578         * tests/test-mbscasecmp.sh: New file.
62579         * tests/test-mbscasecmp.c: New file.
62580
62581 2007-02-11  Bruno Haible  <bruno@clisp.org>
62582
62583         Ensure O(n) worst-case complexity of mbscasestr.
62584         * lib/mbscasestr.c: Include stdbool.h.
62585         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62586         functions.
62587         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
62588         the bookkeeping indicates that it's worth it.
62589         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
62590
62591         * modules/mbscasestr-tests: New file.
62592         * tests/test-mbscasestr1.c: New file.
62593         * tests/test-mbscasestr2.sh: New file.
62594         * tests/test-mbscasestr2.c: New file.
62595         * tests/test-mbscasestr3.sh: New file.
62596         * tests/test-mbscasestr3.c: New file.
62597         * tests/test-mbscasestr4.sh: New file.
62598         * tests/test-mbscasestr4.c: New file.
62599         * m4/locale-tr.m4: New file.
62600
62601 2007-02-11  Bruno Haible  <bruno@clisp.org>
62602
62603         Ensure O(n) worst-case complexity of mbsstr.
62604         * lib/mbsstr.c: Include stdbool.h.
62605         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62606         functions.
62607         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
62608         bookkeeping indicates that it's worth it.
62609         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
62610
62611         * modules/mbsstr-tests: New file.
62612         * tests/test-mbsstr1.c: New file.
62613         * tests/test-mbsstr2.sh: New file.
62614         * tests/test-mbsstr2.c: New file.
62615         * tests/test-mbsstr3.sh: New file.
62616         * tests/test-mbsstr3.c: New file.
62617         * m4/locale-fr.m4: New file.
62618
62619 2007-02-11  Bruno Haible  <bruno@clisp.org>
62620
62621         * lib/mbsrchr.c (mbsrchr): Fix bug.
62622
62623         * modules/mbsrchr-tests: New file.
62624         * tests/test-mbsrchr.sh: New file.
62625         * tests/test-mbsrchr.c: New file.
62626
62627 2007-02-11  Bruno Haible  <bruno@clisp.org>
62628
62629         * lib/mbschr.c (mbschr): Fix bug.
62630
62631         * modules/mbschr-tests: New file.
62632         * tests/test-mbschr.sh: New file.
62633         * tests/test-mbschr.c: New file.
62634         * m4/locale-zh.m4: New file.
62635
62636 2007-02-11  Bruno Haible  <bruno@clisp.org>
62637
62638         Support for copying multibyte string iterators.
62639         * lib/mbiter.h: Include <string.h>.
62640         (mbiter_multi_copy): New function.
62641         (mbi_copy): New macro.
62642         * lib/mbuiter.h: Include <string.h>.
62643         (mbuiter_multi_copy): New function.
62644         (mbui_copy): New macro.
62645
62646 2007-02-11  Bruno Haible  <bruno@clisp.org>
62647
62648         New module mbslen.
62649         * modules/mbslen: New file.
62650         * lib/mbslen.c: New file.
62651         * lib/string_.h (mbslen): New declaration.
62652         * m4/mbslen.m4: New file.
62653         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62654         GNULIB_MBSLEN.
62655         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
62656         * MODULES.html.sh (Internationalization functions): Add mbslen.
62657
62658 2007-02-11  Bruno Haible  <bruno@clisp.org>
62659
62660         Ensure O(n) worst-case complexity of strcasestr substitute.
62661         * lib/strcasestr.c: Include stdbool.h.
62662         (knuth_morris_pratt): New function.
62663         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62664         bookkeeping indicates that it's worth it.
62665         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
62666
62667         * modules/strcasestr-tests: New file.
62668         * tests/test-strcasestr.c: New file.
62669
62670 2007-02-11  Bruno Haible  <bruno@clisp.org>
62671
62672         Ensure O(n) worst-case complexity of c_strcasestr.
62673         * lib/c-strcasestr.c: Include stdbool.h, string.h.
62674         (knuth_morris_pratt): New function.
62675         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
62676         the bookkeeping indicates that it's worth it.
62677         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
62678
62679         * modules/c-strcasestr-tests: New file.
62680         * tests/test-c-strcasestr.c: New file.
62681
62682 2007-02-11  Bruno Haible  <bruno@clisp.org>
62683
62684         Ensure O(n) worst-case complexity of c_strstr.
62685         * lib/c-strstr.c: Include stdbool.h, string.h.
62686         (knuth_morris_pratt): New function.
62687         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62688         bookkeeping indicates that it's worth it.
62689         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
62690
62691         * lib/c-strstr.c: Complete rewrite for maintainability.
62692
62693         * modules/c-strstr-tests: New file.
62694         * tests/test-c-strstr.c: New file.
62695
62696 2007-02-11  Bruno Haible  <bruno@clisp.org>
62697
62698         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
62699         5.2.1 and earlier, whereby \055 was treated just like the range
62700         delimiter '-'.
62701         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62702
62703 2007-02-08  Bruno Haible  <bruno@clisp.org>
62704
62705         * modules/regex (Depends-on): Add stdbool.
62706         Reported by Dalibor Topic <robilad@kaffe.org>.
62707
62708 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62709
62710         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
62711         Prefer returning from main to exiting from it.
62712         Remove unnecessary parens after sizeof.
62713
62714 2007-02-05  Bruno Haible  <bruno@clisp.org>
62715
62716         New module mbssep.
62717         * modules/mbssep: New file.
62718         * lib/mbssep.c: New file.
62719         * lib/string_.h (strsep): Add a conditional link warning.
62720         (mbssep): New declaration.
62721         * m4/mbssep.m4: New file.
62722         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62723         GNULIB_MBSSEP.
62724         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
62725         * MODULES.html.sh (Internationalization functions): Add mbssep.
62726
62727 2007-02-05  Bruno Haible  <bruno@clisp.org>
62728
62729         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
62730         Optimize search in case of 1 delimiter.
62731
62732 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62733
62734         * lib/acl.h: Include sys/types.h before sys/acl.h.
62735
62736 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62737
62738         Merge upstream fix for glibc bugzilla #3957:
62739
62740         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
62741
62742         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
62743         bit for RE_HAT_LISTS_NOT_NEWLINE.
62744         (build_charclass_op): Remove bogus comment.
62745
62746 2007-02-05  Simon Josefsson  <simon@josefsson.org>
62747
62748         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
62749
62750 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62751
62752         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
62753         * lib/memmem.c [!defined _LIBC]: Include config.h.
62754
62755 2007-02-04  Bruno Haible  <bruno@clisp.org>
62756
62757         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
62758         warning message.
62759
62760 2007-02-04  Bruno Haible  <bruno@clisp.org>
62761
62762         New module mbstok_r.
62763         * modules/mbstok_r: New file.
62764         * lib/mbstok_r.c: New file.
62765         * lib/string_.h (strtok_r): Change argument names to match the
62766         comments. Add a conditional link warning.
62767         (mbstok_r): New declaration.
62768         * m4/mbstok_r.m4: New file.
62769         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62770         GNULIB_MBSTOK_R.
62771         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
62772         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
62773
62774 2007-02-04  Bruno Haible  <bruno@clisp.org>
62775
62776         New module mbsspn.
62777         * modules/mbsspn: New file.
62778         * lib/mbsspn.c: New file.
62779         * lib/string_.h (strspn): Add a conditional link warning.
62780         (mbsspn): New declaration.
62781         * m4/mbsspn.m4: New file.
62782         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62783         GNULIB_MBSSPN.
62784         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
62785         * MODULES.html.sh (Internationalization functions): Add mbsspn.
62786
62787 2007-02-04  Bruno Haible  <bruno@clisp.org>
62788
62789         New module mbspbrk.
62790         * modules/mbspbrk: New file.
62791         * lib/mbspbrk.c: New file.
62792         * lib/string_.h (strpbrk): Add a conditional link warning.
62793         (mbspbrk): New declaration.
62794         * m4/mbspbrk.m4: New file.
62795         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62796         GNULIB_MBSPBRK.
62797         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
62798         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
62799
62800 2007-02-04  Bruno Haible  <bruno@clisp.org>
62801
62802         New module mbscspn.
62803         * modules/mbscspn: New file.
62804         * lib/mbscspn.c: New file.
62805         * lib/string_.h (strcspn): Add a conditional link warning.
62806         (mbscspn): New declaration.
62807         * m4/mbscspn.m4: New file.
62808         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62809         GNULIB_MBSCSPN.
62810         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
62811         * MODULES.html.sh (Internationalization functions): Add mbscspn.
62812
62813 2007-02-04  Bruno Haible  <bruno@clisp.org>
62814
62815         New module mbscasestr, reduced goal of strcasestr.
62816         * modules/mbscasestr: New file.
62817         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
62818         (mbscasestr): Renamed from strcasestr.
62819         * lib/strcasestr.c: Don't include mbuiter.h.
62820         (strcasestr): Remove support for multibyte locales.
62821         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
62822         Change the conditional link warning.
62823         (mbscasestr): New declaration.
62824         * m4/mbscasestr.m4: New file.
62825         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
62826         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
62827         REPLACE_STRCASESTR.
62828         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
62829         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62830         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62831         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
62832         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
62833         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62834         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
62835         (Depends-on): Remove mbuiter.
62836         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
62837
62838 2007-02-04  Bruno Haible  <bruno@clisp.org>
62839
62840         Simplify handling of strncasecmp.
62841         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
62842         the conditional link warning.
62843         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62844         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
62845         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
62846         * modules/strcase (configure.ac): Don't invoke
62847         gl_STRING_MODULE_INDICATOR.
62848         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
62849
62850 2007-02-04  Bruno Haible  <bruno@clisp.org>
62851
62852         New module mbscasecmp, reduced goal of strcasecmp.
62853         * modules/mbscasecmp: New file.
62854         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
62855         (mbscasecmp): Renamed from strcasecmp.
62856         * lib/strcasecmp.c: Don't include mbuiter.h.
62857         (strcasecmp): Remove support for multibyte locales.
62858         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
62859         Change the conditional link warning.
62860         (mbscasecmp): New declaration.
62861         * m4/mbscasecmp.m4: New file.
62862         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
62863         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
62864         REPLACE_STRCASECMP.
62865         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
62866         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62867         GNULIB_MBSCASECMP.
62868         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
62869         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
62870         * modules/strcase (Files): Remove m4/mbrtowc.m4.
62871         (Depends-on): Remove mbuiter.
62872         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
62873
62874 2007-02-04  Bruno Haible  <bruno@clisp.org>
62875
62876         New module mbsstr. Remove module strstr.
62877         * modules/mbsstr: New file.
62878         * modules/strstr: Remove file.
62879         * lib/mbsstr.c: Renamed from lib/strstr.c.
62880         (mbsstr): Renamed from strstr.
62881         * lib/string_.h (strstr): Remove declaration. Change the conditional
62882         link warning.
62883         (mbsstr): New declaration.
62884         * m4/mbsstr.m4: New file.
62885         * m4/strstr.m4: Remove file.
62886         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
62887         REPLACE_STRSTR.
62888         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
62889         Don't initialize GNULIB_STRSTR.
62890         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
62891         substitute GNULIB_STRSTR and REPLACE_STRSTR.
62892         * MODULES.html.sh (Internationalization functions): Add mbsstr.
62893         (Support for systems lacking ANSI C 89): Remove strstr.
62894
62895 2007-02-04  Bruno Haible  <bruno@clisp.org>
62896
62897         New module mbsrchr.
62898         * modules/mbsrchr: New file.
62899         * lib/mbsrchr.c: New file.
62900         * lib/string_.h (strrchr): Add a conditional link warning.
62901         (mbsrchr): New declaration.
62902         * m4/mbsrchr.m4: New file.
62903         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62904         GNULIB_MBSRCHR.
62905         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
62906         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
62907
62908 2007-02-04  Bruno Haible  <bruno@clisp.org>
62909
62910         New module mbschr.
62911         * modules/mbschr: New file.
62912         * lib/mbschr.c: New file.
62913         * lib/string_.h (strchr): Add a conditional link warning.
62914         (mbschr): New declaration.
62915         * m4/mbschr.m4: New file.
62916         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62917         GNULIB_MBSCHR.
62918         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
62919         * MODULES.html.sh (Internationalization functions): Add mbschr.
62920
62921 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62922
62923         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
62924
62925         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
62926
62927 2007-02-04  Bruno Haible  <bruno@clisp.org>
62928
62929         New module description section 'configure.ac-early'.
62930         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
62931         (func_get_autoconf_early_snippet): New function.
62932         (func_import, func_create_testdir): Use it. Remove special cases for
62933         modules 'extensions' and 'lock'.
62934         * modules/extensions (configure.ac-early): Require
62935         gl_USE_SYSTEM_EXTENSIONS.
62936         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
62937
62938 2007-02-04  Bruno Haible  <bruno@clisp.org>
62939
62940         Make use of gcj-4.3's -fsource and -ftarget option.
62941         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
62942         and if so try the options -fsource and -ftarget.
62943         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
62944         source_version, ftarget_option, target_version arguments.
62945         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
62946         (is_envjavac_oldgcj_14_14_usable): Renamed from
62947         is_envjavac_gcj_14_14_usable.
62948         (is_envjavac_oldgcj_14_13_usable): Renamed from
62949         is_envjavac_gcj_14_13_usable.
62950         (is_gcj_present): Update.
62951         (is_gcj_43, is_gcj43_usable): New functions.
62952         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
62953         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
62954         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
62955         try the options -fsource and -ftarget.
62956
62957 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62958
62959         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
62960         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
62961         larger value.
62962
62963 2007-02-03  Jim Meyering  <jim@meyering.net>
62964
62965         Give tools a better chance to allocate space for very large buffers.
62966         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
62967
62968         Make pwd and readlink work also when run with an unreadable parent dir
62969         on systems with openat support.
62970         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
62971         provided getcwd function, even when we have openat support.
62972         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
62973
62974 2007-02-02  Bruno Haible  <bruno@clisp.org>
62975
62976         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62977         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
62978         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
62979         portability problems if one of these functions is only used on specific
62980         platforms.
62981         Reported by Paul Eggert.
62982
62983 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
62984
62985         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
62986         is causing more trouble than it's curing.
62987         * lib/regex_internal.h (__mempcpy): Remove.
62988         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
62989         (and make the code a tad smaller to boot).
62990         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
62991
62992 2007-02-02  Jim Meyering  <jim@meyering.net>
62993
62994         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
62995         section, not in the Makefile.am: one.
62996
62997 2007-02-02  Eric Blake  <ebb9@byu.net>
62998
62999         * lib/strchrnul.c: Always include config.h first.
63000
63001         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63002         gnulib strstr is not necessary here.
63003
63004 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63005
63006         * m4/socklen.m4: Fix typo.
63007
63008 2007-02-02  Eric Blake  <ebb9@byu.net>
63009
63010         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63011         * modules/netinet_in (Makefile.am): Likewise.
63012
63013 2007-02-01  Bruno Haible  <bruno@clisp.org>
63014
63015         * lib/string_.h (GL_LINK_WARNING): New macro.
63016         (strcasecmp, strstr, strcasestr): If provided by the system,
63017         conditionally define as a macro that leads to a warning instead of to
63018         an error.
63019         (strncasecmp): Conditionally define as a macro that leads to a warning.
63020
63021 2007-02-01  Karl Berry  <karl@gnu.org>
63022
63023         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63024
63025 2007-02-01  Bruno Haible  <bruno@clisp.org>
63026
63027         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63028         renamings.
63029
63030 2007-02-01  Eric Blake  <ebb9@byu.net>
63031
63032         * modules/regex (Depends-on): Revert dependence on mempcpy.
63033         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63034         module's definition of mempcpy.
63035         Reported by Paul Eggert.
63036
63037 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63038
63039         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63040         the symbol XYZ before redefining it.  This fixes a problem with
63041         programs that don't use XYZ, when compiled on systems that define
63042         XYZ to something else.
63043
63044 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63045
63046         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63047         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63048         writeable to group or other and (2) is intended to have a special
63049         mode bit that is set or cleared.  In such a case, the directory
63050         should be neither group- nor other-writeable until the special
63051         mode bits are right.
63052
63053 2007-01-31  Eric Blake  <ebb9@byu.net>
63054
63055         * modules/mountlist (Depends-on): Add strstr.
63056
63057         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63058         bug.
63059         * modules/string (Makefile.am): Remove redundant replacement.
63060         * modules/regex (Depends-on): Add mempcpy.
63061
63062 2007-01-31  Bruno Haible  <bruno@clisp.org>
63063
63064         New module description field 'Link'.
63065         * gnulib-tool (func_usage): Document --extract-link-directive.
63066         (sed_extract_prog): Recognize 'Link' directive.
63067         (func_get_link_directive): New function.
63068         (func_import): Show summary of link directives.
63069         Handle --extract-link-directive option.
63070         * modules/acl (Link): New section.
63071         * modules/clock-time (Link): New section.
63072         * modules/euidaccess (Link): New section.
63073         * modules/gettext (Link): New section.
63074         * modules/iconv (Link): New section.
63075         * modules/lock (Link): New section.
63076         * modules/nanosleep (Link): New section.
63077         * modules/readline (Link): New section.
63078
63079 2007-01-27  Bruno Haible  <bruno@clisp.org>
63080
63081         Enforce the use of gnulib modules for unportable <string.h> functions.
63082         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63083         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63084         (gl_HEADER_STRING_H_BODY): Require it.
63085         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63086         the symbol XYZ to one that gives a link error.
63087         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63088         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63089         * modules/mempcpy (configure.ac): Likewise.
63090         * modules/memrchr (configure.ac): Likewise.
63091         * modules/stpcpy (configure.ac): Likewise.
63092         * modules/stpncpy (configure.ac): Likewise.
63093         * modules/strcase (configure.ac): Likewise.
63094         * modules/strcasestr (configure.ac): Likewise.
63095         * modules/strchrnul (configure.ac): Likewise.
63096         * modules/strdup (configure.ac): Likewise.
63097         * modules/strndup (configure.ac): Likewise.
63098         * modules/strnlen (configure.ac): Likewise.
63099         * modules/strpbrk (configure.ac): Likewise.
63100         * modules/strsep (configure.ac): Likewise.
63101         * modules/strstr (configure.ac): Likewise.
63102         * modules/strtok_r (configure.ac): Likewise.
63103
63104 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63105
63106         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63107
63108 2007-01-30  Jim Meyering  <jim@meyering.net>
63109
63110         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63111
63112 2007-01-29  Bruno Haible  <bruno@clisp.org>
63113
63114         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63115         * lib/execute.c: Likewise.
63116         * lib/pipe.c: Likewise.
63117         * lib/printf-args.h: Likewise.
63118         * lib/printf-args.c: Likewise.
63119         * lib/printf-parse.c: Likewise.
63120         * lib/vasnprintf.c: Likewise.
63121
63122 2007-01-29  Eric Blake  <ebb9@byu.net>
63123
63124         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63125         declaration.
63126
63127 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63128
63129         * lib/strptime.h (strptime): Use 'restrict' for args where
63130         POSIX requires this.
63131         * lib/strptime.c (strptime): Likewise.
63132         Change license notice from LGPL to GPL, since gnulib-tool will
63133         change this as needed.
63134         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63135         defined.
63136         Include "strptime.h" first, to check interface.
63137         Do not #undef _LIBC and _NL_CURRENT.
63138         Do not include <stdlib.h>; no longer needed.
63139         Include "time_r.h" and declare ptime_locale_status
63140         only if _LIBC is not defined.
63141         (__P): Remove unused macro.
63142         (match_string): Bring back glibc version, but use it only if _LIBC
63143         is defined.
63144         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63145         Remove unnecessary assertion and abort() call.
63146         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63147         * m4/strptime.m4: Fix serial number comment.
63148         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63149         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63150         (Depends-on): Add time_r.
63151
63152 2007-01-29  Bruno Haible  <bruno@clisp.org>
63153
63154         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63155         strptime.
63156         * modules/strptime (Depends-on): Add stdbool.
63157         * lib/strptime.h: Include <time.h> always. Add comments.
63158
63159 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63160
63161         * modules/strptime: New file.
63162         * lib/strptime.h: New file.
63163         * lib/strptime.c: New file.
63164         * m4/strptime.m4: New file.
63165
63166 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63167
63168         * MODULES.html.sh: New module mpsort.
63169         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63170
63171         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63172         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63173         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63174         All uses changed.
63175         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63176         All uses changed.
63177         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63178         to _Restrict_.
63179         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63180         the parameter matches the prototype.
63181
63182 2007-01-28  Jim Meyering  <jim@meyering.net>
63183
63184         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63185         sys/time.h here, reverting that part of the previous patch:
63186         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63187
63188 2007-01-28  Bruno Haible  <bruno@clisp.org>
63189
63190         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63191         value of $(SYS_TIME_H).
63192         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63193         remove it conditionally, too. [added by Jim Meyering]
63194         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63195         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63196         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63197         GETTIMEOFDAY_REPLACEMENT to 1.
63198
63199 2007-01-28  Bruno Haible  <bruno@clisp.org>
63200
63201         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63202         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63203         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63204         Set UNISTD_H instead of UNISTD_H2.
63205         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63206
63207 2007-01-28  Bruno Haible  <bruno@clisp.org>
63208
63209         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63210         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63211
63212 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63213
63214         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63215         (func_create_testdir): Ensure C locale for `grep' and `tr'
63216         character ranges.
63217         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63218         ACLOCAL_AMFLAGS parsing state machine.
63219
63220 2007-01-27  Bruno Haible  <bruno@clisp.org>
63221
63222         * modules/unistr/base: Update.
63223
63224 2007-01-27  Bruno Haible  <bruno@clisp.org>
63225
63226         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63227         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63228         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63229         modules/unistr/u32-mbtouc.
63230         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63231         * lib/unistr.h: Update.
63232         * lib/linebreak.c: Update.
63233         * modules/unistr/u32-mbtouc: Renamed from
63234         modules/unistr/u32-mbtouc-safe.
63235         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63236         * lib/unistr.h: Update.
63237         * lib/unistr/u32-to-u8.c: Update.
63238         * lib/unistr/u32-to-u16.c: Update.
63239
63240 2007-01-27  Bruno Haible  <bruno@clisp.org>
63241
63242         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63243         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63244         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
63245         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
63246         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
63247         * modules/unistr/u16-mbtouc-unsafe: Renamed from
63248         modules/unistr/u16-mbtouc.
63249         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
63250         * lib/unistr.h: Update.
63251         * lib/linebreak.c: Update.
63252         * modules/linebreak: Update.
63253         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
63254         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
63255         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
63256         * modules/unistr/u16-mbtouc: Renamed from
63257         modules/unistr/u16-mbtouc-safe.
63258         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
63259         * lib/unistr.h: Update.
63260         * lib/unistr/u16-to-u8.c: Update.
63261         * modules/unistr/u16-to-u8: Update.
63262         * lib/unistr/u16-to-u32.c: Update.
63263         * modules/unistr/u16-to-u32: Update.
63264
63265 2007-01-27  Bruno Haible  <bruno@clisp.org>
63266
63267         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
63268         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
63269         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
63270         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
63271         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
63272         * modules/unistr/u8-mbtouc-unsafe: Renamed from
63273         modules/unistr/u8-mbtouc.
63274         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
63275         * lib/unistr.h: Update.
63276         * lib/striconveh.c: Update.
63277         * modules/striconveh: Update.
63278         * lib/linebreak.c: Update.
63279         * modules/linebreak: Update.
63280         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
63281         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
63282         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
63283         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
63284         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
63285         * lib/unistr.h: Update.
63286         * lib/striconveh.c: Update.
63287         * modules/striconveh: Update.
63288         * lib/unistr/u8-to-u16.c: Update.
63289         * modules/unistr/u8-to-u16: Update.
63290         * lib/unistr/u8-to-u32.c: Update.
63291         * modules/unistr/u8-to-u32: Update.
63292
63293 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63294
63295         Sync from Libtool.
63296         * lib/argz.c: Do not include strings.h nor memory.h, include
63297         string.h unconditionally.  Patch by Simon Josefsson.
63298
63299 2007-01-27  Bruno Haible  <bruno@clisp.org>
63300
63301         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
63302         from gl_HEADER_STRING_H_BODY.
63303         (gl_HEADER_STRING_H_BODY): Require it.
63304         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
63305         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63306         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63307         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63308         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63309         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
63310         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63311         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63312         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
63313         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63314         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63315         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
63316         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63317         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63318         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63319
63320 2007-01-27  Bruno Haible  <bruno@clisp.org>
63321
63322         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
63323         check_PROGRAMS into noinst_PROGRAMS.
63324         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
63325         check_PROGRAMS in this case.
63326         (func_import): Set for_test to false.
63327         (func_create_testdir): Set for_test to true.
63328
63329 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63330             Bruno Haible  <bruno@clisp.org>
63331
63332         * modules/strcasestr (Files): Remove lib/strcasestr.h.
63333         (Depends-on): Add string.
63334         (Includes): Use <string.h> instead of strcasestr.h.
63335         * modules/string (Makefile.am): Also substitute the value of
63336         REPLACE_STRCASESTR.
63337         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
63338         assume strcasestr is declared in <string.h> not <strings.h>. Also
63339         set REPLACE_STRCASESTR.
63340         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
63341         REPLACE_STRCASESTR.
63342         * lib/strcasestr.h: Remove file.
63343         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63344         * lib/string_.h (strcasestr): New declaration.
63345
63346 2007-01-27  Bruno Haible  <bruno@clisp.org>
63347
63348         * lib/string_.h: Use 'extern'.
63349
63350 2007-01-27  Jim Meyering  <jim@meyering.net>
63351
63352         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63353         of set-but-not-used local, "q".
63354
63355         * lib/mempcpy.c: Include <config.h> before <string.h>.
63356         This fixes a compilation error on HP-UX, due to the system's
63357         "restrict"-using mempcpy prototype.
63358
63359 2007-01-26  Bruno Haible  <bruno@clisp.org>
63360
63361         Small optimization.
63362         * lib/javacomp.c: Include c-strstr.h.
63363          (is_envjavac_gcj): Use c_strstr instead of strstr.
63364         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63365
63366 2007-01-26  Bruno Haible  <bruno@clisp.org>
63367
63368         * MODULES.html.sh (Unicode string functions): Add the new modules.
63369
63370         * modules/uniconv/u32-strconv-to-locale: New file.
63371         * lib/uniconv/u32-strconv-to-locale.c: New file.
63372
63373         * modules/uniconv/u16-strconv-to-locale: New file.
63374         * lib/uniconv/u16-strconv-to-locale.c: New file.
63375
63376         * modules/uniconv/u8-strconv-to-locale: New file.
63377         * lib/uniconv/u8-strconv-to-locale.c: New file.
63378
63379         * modules/uniconv/u32-strconv-from-locale: New file.
63380         * lib/uniconv/u32-strconv-from-locale.c: New file.
63381
63382         * modules/uniconv/u16-strconv-from-locale: New file.
63383         * lib/uniconv/u16-strconv-from-locale.c: New file.
63384
63385         * modules/uniconv/u8-strconv-from-locale: New file.
63386         * lib/uniconv/u8-strconv-from-locale.c: New file.
63387
63388         * modules/uniconv/u32-strconv-to-enc: New file.
63389         * lib/uniconv/u32-strconv-to-enc.c: New file.
63390         * modules/uniconv/u32-strconv-to-enc-tests: New file.
63391         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
63392
63393         * modules/uniconv/u16-strconv-to-enc: New file.
63394         * lib/uniconv/u16-strconv-to-enc.c: New file.
63395         * lib/uniconv/u-strconv-to-enc.h: New file.
63396         * modules/uniconv/u16-strconv-to-enc-tests: New file.
63397         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
63398
63399         * modules/uniconv/u8-strconv-to-enc: New file.
63400         * lib/uniconv/u8-strconv-to-enc.c: New file.
63401         * modules/uniconv/u8-strconv-to-enc-tests: New file.
63402         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
63403
63404         * modules/uniconv/u32-strconv-from-enc: New file.
63405         * lib/uniconv/u32-strconv-from-enc.c: New file.
63406         * modules/uniconv/u32-strconv-from-enc-tests: New file.
63407         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
63408
63409         * modules/uniconv/u16-strconv-from-enc: New file.
63410         * lib/uniconv/u16-strconv-from-enc.c: New file.
63411         * modules/uniconv/u16-strconv-from-enc-tests: New file.
63412         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
63413
63414         * modules/uniconv/u8-strconv-from-enc: New file.
63415         * lib/uniconv/u8-strconv-from-enc.c: New file.
63416         * lib/uniconv/u-strconv-from-enc.h: New file.
63417         * modules/uniconv/u8-strconv-from-enc-tests: New file.
63418         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
63419
63420         * modules/uniconv/u32-conv-from-enc: New file.
63421         * lib/uniconv/u32-conv-from-enc.c: New file.
63422         * modules/uniconv/u32-conv-from-enc-tests: New file.
63423         * tests/uniconv/test-u32-conv-from-enc.c: New file.
63424
63425         * modules/uniconv/u16-conv-from-enc: New file.
63426         * lib/uniconv/u16-conv-from-enc.c: New file.
63427         * lib/uniconv/u-conv-from-enc.h: New file.
63428         * modules/uniconv/u16-conv-from-enc-tests: New file.
63429         * tests/uniconv/test-u16-conv-from-enc.c: New file.
63430
63431         * modules/uniconv/u8-conv-from-enc: New file.
63432         * lib/uniconv/u8-conv-from-enc.c: New file.
63433         * modules/uniconv/u8-conv-from-enc-tests: New file.
63434         * tests/uniconv/test-u8-conv-from-enc.c: New file.
63435
63436         * modules/uniconv/base: New file.
63437         * lib/uniconv.h: New file.
63438
63439 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63440
63441         * doc/gnulib-tool.texi (Initial import): Update to match current
63442         behavior with strdup module.
63443         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
63444         * lib/memmem.h: Remove; all uses removed.  This is now done
63445         by <string.h>.
63446         * lib/mempcpy.h: Likewise.
63447         * lib/memrchr.h: Likewise.
63448         * lib/stpcpy.h: Likewise.
63449         * lib/stpncpy.h: Likewise.
63450         * lib/strcase.h: Likewise.
63451         * lib/strchrnul.h: Likewise.
63452         * lib/strdup.h: Likewise.
63453         * lib/strndup.h: Likewise.
63454         * lib/strnlen.h: Likewise.
63455         * lib/strpbrk.h: Likewise.
63456         * lib/strsep.h: Likewise.
63457         * lib/strstr.h: Likewise.
63458         * lib/strtok_r.h: Likewise.
63459         * lib/string_.h: New file.
63460         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
63461         Rely on <string.h> instead.
63462         * lib/canon-host.c: Likewise.
63463         * lib/chdir-long.c: Likewise.
63464         * lib/concatpath.c: Likewise.
63465         * lib/exclude.c: Likewise.
63466         * lib/fchdir.c: Likewise.
63467         * lib/getaddrinfo.c: Likewise.
63468         * lib/getcwd.c: Likewise.
63469         * lib/getsubopt.c: Likewise.
63470         * lib/glob.c: Likewise.
63471         * lib/hard-locale.c: Likewise.
63472         * lib/iconvme.c: Likewise.
63473         * lib/javacomp.c: Likewise.
63474         * lib/mempcpy.c: Likewise.
63475         * lib/memrchr.c: Likewise.
63476         * lib/regex_internal.h: Likewise.
63477         * lib/stpncpy.c: Likewise.
63478         * lib/strcasecmp.c: Likewise.
63479         * lib/strchrnul.c: Likewise.
63480         * lib/strdup.c: Likewise.
63481         * lib/striconv.c: Likewise.
63482         * lib/striconveh.c: Likewise.
63483         * lib/striconveha.c: Likewise.
63484         * lib/strncasecmp.c: Likewise.
63485         * lib/strndup.c: Likewise.
63486         * lib/strnlen.c: Likewise.
63487         * lib/strsep.c: Likewise.
63488         * lib/strstr.c: Likewise.
63489         * lib/strtok_r.c: Likewise.
63490         * lib/userspec.c: Likewise.
63491         * lib/w32spawn.h: Likewise.
63492         * lib/xstrndup.c: Likewise.
63493         * lib/mountlist.c (strstr): Remove decl.
63494         * m4/string_h.m4: New file.
63495         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
63496         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
63497         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
63498         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
63499         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
63500         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
63501         Set REPLACE_STRCASECMP if necessary.
63502         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
63503         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
63504         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
63505         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
63506         HAVE_DECL_STRDUP if necessary.
63507         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
63508         since gl_FUNC_STRNDUP does that now.
63509         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
63510         Check for decl here...
63511         (gl_PREREQ_STRNLEN): ... not here.
63512         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
63513         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
63514         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
63515         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
63516         necessary.
63517         * modules/string: New file.
63518         * modules/memmem (Files): Remove special-purpose include file.
63519         (Depends-on): Add string.
63520         (Include): Include <string.h>, not the removed file.
63521         * modules/mempcpy: Likewise.
63522         * modules/memrchr: Likewise.
63523         * modules/stpcpy: Likewise.
63524         * modules/stpncpy: Likewise.
63525         * modules/strcase: Likewise.
63526         * modules/strchrnul: Likewise.
63527         * modules/strdup: Likewise.
63528         * modules/strndup: Likewise.
63529         * modules/strnlen: Likewise.
63530         * modules/strpbrk: Likewise.
63531         * modules/strsep: Likewise.
63532         * modules/strstr: Likewise.
63533         * modules/strtok_r: Likewise.
63534         * tests/test-dirname.c: Don't include "strdup.h", since
63535         <string.h> now suffices.
63536         * tests/test-memmem.c: Don't include "memmem.h", since
63537         <string.h> now suffices.
63538
63539 2007-01-25  Bruno Haible  <bruno@clisp.org>
63540
63541         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
63542         *resultp is 0.
63543
63544         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
63545         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
63546         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
63547         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
63548
63549         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
63550         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
63551         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
63552         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
63553         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
63554         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
63555
63556 2007-01-24  Bruno Haible  <bruno@clisp.org>
63557
63558         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
63559         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
63560         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
63561         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
63562         gl_FUNC_FTS_CORE.
63563         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
63564         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
63565         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63566         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
63567         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
63568         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
63569         gl_FUNC_FCHOWNAT.
63570         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
63571         gl_FUNC_STRFTIME.
63572         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
63573         Reported by Ralf Wildenhues.
63574
63575 2007-01-24  Bruno Haible  <bruno@clisp.org>
63576
63577         Drop AC_REQUIRE calls that are redundant with the module dependencies.
63578         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
63579         gl_GETADDRINFO.
63580         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
63581         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
63582         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
63583
63584 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
63585
63586         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
63587         Don't use 'exit'; just return from 'main'.
63588         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
63589
63590         * lib/fnmatch_.h: Readjust white space and comments to match
63591         glibc, to avoid spurious diffs.
63592
63593 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63594
63595         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
63596         2004-12-01 change by Jakub Jelinek, since this code won't compile
63597         if !LIBC.  Problem reported by Bob Proulx.
63598
63599 2007-01-23  Bruno Haible  <bruno@clisp.org>
63600
63601         * lib/striconveh.c: Include c-strcaseeq.h.
63602         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
63603         * modules/striconveh (Depends-on): Add c-strcaseeq.
63604
63605 2007-01-23  Bruno Haible  <bruno@clisp.org>
63606
63607         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
63608
63609         * modules/c-strcaseeq: New file.
63610         * lib/c-strcaseeq.h: New file.
63611
63612         * modules/streq: New file.
63613         * lib/streq.h: New file.
63614
63615 2007-01-23  Bruno Haible  <bruno@clisp.org>
63616
63617         * modules/striconveha-tests: New file.
63618         * tests/test-striconveha.c: New file.
63619
63620         * lib/striconveha.h: Include <stdbool.h>.
63621         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
63622         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
63623         (mem_iconveha_notranslit): Renamed from mem_iconveha.
63624         (mem_iconveha): New function.
63625         (str_iconveha_notranslit): Renamed from str_iconveha.
63626         (str_iconveha): New function.
63627         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
63628         c-strcase.
63629
63630 2007-01-23  Bruno Haible  <bruno@clisp.org>
63631
63632         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
63633         encodings without forgiving before trying any encoding with handler.
63634         (str_iconveha): Try all encodings without forgiving before trying any
63635         encoding with handler.
63636
63637 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63638
63639         Import the following changes from libc.
63640
63641         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63642
63643         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
63644
63645         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63646
63647         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
63648         normal_bracket label.
63649
63650         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
63651
63652         [BZ #361]
63653         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
63654         to normal_bracket after fetching the next character.
63655
63656 2007-01-22  Bruno Haible  <bruno@clisp.org>
63657
63658         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
63659         argument.
63660         * lib/striconveh.c (iconv_carefully_1): New function.
63661         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
63662         argument.
63663         (str_cd_iconveh): Update.
63664         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
63665         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
63666         * tests/test-striconveh.c (MAGIC): New macro.
63667         (new_offsets): New function.
63668         (main): Test call with and without offsets.
63669
63670 2007-01-22  Bruno Haible  <bruno@clisp.org>
63671
63672         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
63673         * modules/sys_select (Makefile.am): Likewise.
63674         * modules/sys_socket (Makefile.am): Likewise.
63675         * modules/sys_time (Makefile.am): Likewise.
63676
63677 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63678
63679         * modules/gettimeofday (License): Change from GPL to LGPL, since
63680         gettimeofday is a library function.
63681
63682 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63683
63684         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
63685
63686 2007-01-21  Bruno Haible  <bruno@clisp.org>
63687
63688         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
63689
63690 2007-01-21  Bruno Haible  <bruno@clisp.org>
63691
63692         * modules/striconveha: New file.
63693         * lib/striconveha.h: New file.
63694         * lib/striconveha.c: New file.
63695         * MODULES.html.sh (Internationalization functions): Add striconveha.
63696         * lib/striconv.c (str_iconv): Optimize the case of an empty input
63697         string.
63698         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
63699
63700 2007-01-21  Bruno Haible  <bruno@clisp.org>
63701
63702         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
63703         * lib/striconveh.c (str_iconveh): Likewise.
63704
63705 2007-01-21  Bruno Haible  <bruno@clisp.org>
63706
63707         * lib/striconveh.h (mem_iconveh): New declaration.
63708         * lib/striconveh.c (mem_iconveh): New function.
63709         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
63710
63711 2007-01-21  Bruno Haible  <bruno@clisp.org>
63712
63713         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
63714
63715         * lib/striconveh.h (mem_cd_iconveh): Change specification.
63716         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
63717         original result buffer.
63718         (str_cd_iconveh): Update.
63719         * tests/test-striconveh.c (main): Update.
63720
63721         * lib/striconv.h (mem_cd_iconv): Change specification.
63722         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
63723         result buffer.
63724         (str_cd_iconv): Update.
63725         * tests/test-striconv.c (main): Update.
63726
63727 2007-01-21  Bruno Haible  <bruno@clisp.org>
63728
63729         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
63730
63731 2007-01-20  Jim Meyering  <jim@meyering.net>
63732
63733         * lib/userspec.c (parse_with_separator): If a user or group string
63734         starts with "+", skip the corresponding name-to-ID look-up, since
63735         such a look-up must fail: user and group names may not include "+".
63736
63737 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63738
63739         * lib/poll.c: Include sys/time.h and time.h unconditionally,
63740         since we now assume the sys_time module.
63741         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
63742         check for sys/time.h; no longer needed.
63743         * modules/poll (Depends-on): Depend on sys_time.
63744
63745 2007-01-18  Bruno Haible  <bruno@clisp.org>
63746
63747         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
63748         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63749
63750         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
63751         gettimeofday.
63752
63753         * tests/test-gettimeofday.c: Include <time.h>.
63754         (dummy): Remove variable.
63755
63756         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
63757         gl_HEADER_SYS_TIME_H.
63758         (gl_HEADER_SYS_TIME_H): New macro.
63759
63760         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
63761         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63762         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
63763         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
63764         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63765         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
63766         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
63767         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63768         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
63769         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
63770         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63771
63772         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
63773         last change; it caused a compilation error when cross-compiling to
63774         Cygwin.
63775
63776 2007-01-18  Jim Meyering  <jim@meyering.net>
63777
63778         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
63779         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
63780         than the race-prone "test -d sys || mkdir sys".
63781         (configure.ac): Use AC_PROG_MKDIR_P.
63782         * modules/sys_select: Likewise.
63783         * modules/sys_socket: Likewise.
63784         * modules/sys_time: Likewise.
63785
63786 2007-01-18  Eric Blake  <ebb9@byu.net>
63787
63788         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
63789         replace gettimeofday.
63790         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
63791         name, to avoid infinite recursion.
63792
63793 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
63794
63795         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
63796         module sys_time.
63797         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
63798         assume timespec.h defines struct timeval.
63799         * lib/settime.c: Likewise.
63800         * lib/utimens.c: Likewise.
63801         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
63802         since we now assume the gettimeofday module.
63803         * lib/tempname.c (__gen_tempname): Likewise.
63804         * lib/gettimeofday.h: Remove.
63805         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
63806         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
63807         Include <time.h>, for 'time()'.
63808         (localtime_buffer_addr): Also use this workaround if
63809         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
63810         to simplify the uses.  All uses changed.
63811         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
63812         that #undef is inside {}, and 'const' follows type name consistently.
63813         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
63814         (gettimeofday): Do not use the maximum possible value for
63815         tv->tv_usec, since that might break usages other than ls.c.
63816         Instead, we'll leave ls.c alone.  This undoes today's patch
63817         by Bruno.  Add a compile-time warning for 1s-clock resolution;
63818         we've never observed the problem but might as well keep the
63819         canary.
63820         * lib/nanosleep.c: Include timespec.h first, for interface check.
63821         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
63822         now assume the sys_time module.
63823         * lib/tempname.c: Likewise.
63824         * lib/timespec.h: Likewise.
63825         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
63826         needed.
63827         * lib/strftime.c: Likewise.
63828         * lib/timespec.h: Likewise.
63829         * lib/posixtm.c: Include posixtm.h first, for interface check.
63830         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
63831         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
63832         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
63833         * lib/sys_time_.h: New file.
63834         * lib/timespec.h (struct timespec): Use long int, not long.
63835         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63836         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
63837         Remove obsolescent call to AC_HEADER_TIME.
63838         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63839         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63840         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63841         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
63842         Likewise.
63843         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
63844         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
63845         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
63846         into the sys_time module.  Check for gettimeofday just once.
63847         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
63848         for gettimeofday signature to just check the signature.  Merely
63849         compile it, since linking doesn't test signature.  Improve test for
63850         whether gettimeofday.o is actually needed.
63851         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
63852         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
63853         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
63854         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63855         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
63856         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
63857         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
63858         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
63859         than worrying about sys/time.h.
63860         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63861         Don't bother worrying about TIME_WITH_SYS_TIME.
63862         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
63863         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
63864         * m4/sys_time_h.m4: New file.
63865         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
63866         Don't include sys/time.h.  Return from main rather than exiting.
63867         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
63868         all uses changed.
63869         * modules/gethrxtime (Depends-on): Add sys_time.
63870         * modules/gettime (Depends-on): Likewise.
63871         * modules/gettimeofday (Depends-on): Likewise.
63872         * modules/nanosleep (Depends-on): Likewise.
63873         * modules/settime (Depends-on): Likewise.
63874         * modules/tempname (Depends-on): Likewise.
63875         * modules/utimens (Depends-on): Likewise.
63876         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
63877         (Include): Change back to <sys/time.h>.
63878         (Maintainer): Add self.
63879         * modules/sys_time: New file.
63880         * modules/tempname (Depends-on): Add gettimeofday.
63881         * tests/test-gettimeofday.c: Include <sys/time.h>
63882         rather than gettimeofday.h.
63883
63884 2007-01-17  Bruno Haible  <bruno@clisp.org>
63885
63886         * gnulib-tool (func_get_license): Revert last patch. Instead, let
63887         the license default to GPL.
63888         (func_create_testdir): Don't complain if a module is LGPL and its
63889         tests module depends on GPLed modules.
63890
63891 2007-01-17  Bruno Haible  <bruno@clisp.org>
63892
63893         * lib/gettimeofday.c (gettimeofday): Add code for the case
63894         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
63895         maximum possible value for tv->tv_usec, rather than the minimum one.
63896
63897 2005-10-08  Martin Lambers  <marlam@marlam.de>
63898 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63899 2007-01-16  Bruno Haible  <bruno@clisp.org>
63900
63901         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
63902         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
63903         gl_FUNC_GETTIMEOFDAY.
63904         (Include): Add gettimeofday.h.
63905         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
63906         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
63907         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
63908         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
63909         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
63910         * lib/gettimeofday.h: New file.
63911         * lib/gettimeofday.c: Include <sys/timeb.h>.
63912         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
63913         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63914         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
63915         fall back on time().
63916
63917         * tests/test-gettimeofday.c: New file.
63918         * modules/gettimeofday-tests: New file.
63919
63920 2007-01-16  Eric Blake  <ebb9@byu.net>
63921
63922         * modules/fnmatch (Depends-on): Depend on wchar.
63923         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
63924         * m4/fnmatch.m4: Likewise.
63925         * modules/mbchar (Makefile.am): Assume <wchar.h>.
63926         * m4/mbchar.m4: Likewise.
63927         * modules/mbswidth (Depends-on): Depend on wchar.
63928         * lib/mbswidth.c: Assume <wchar.h>.
63929         * m4/mbswidth.m4: Likewise.
63930         * modules/quotearg (Depends-on): Depend on wchar.
63931         * lib/quotearg.c: Assume <wchar.h>.
63932         * m4/quotearg.m4: Likewise.
63933         * modules/regex (Depends-on): Depend on wchar.
63934         * lib/regex_internal.h: Assume <wchar.h>.
63935         * m4/regex.m4: Likewise.
63936         * modules/stdint (Depends-on): Depend on wchar.
63937         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
63938         * m4/stdint.m4: Likewise.
63939         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
63940         * modules/strftime (Depends-on): Depend on wchar.
63941         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
63942         * modules/strtol (Depends-on): Depend on wchar.
63943         * lib/strtol.c: Assume <wchar.h>.
63944         * modules/wcwidth (Depends-on): Depend on wchar.
63945         * lib/wcwidth.h: Assume <wchar.h>.
63946         * m4/wcwidth.m4: Likewise.
63947
63948 2007-01-16  Bruno Haible  <bruno@clisp.org>
63949
63950         * modules/csharpexec-script: New, created from...
63951         * modules/csharpexec: ... this.
63952
63953 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63954
63955         * modules/javaexec-script: New, created from...
63956         * modules/javaexec: ... this.
63957
63958 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63959
63960         * modules/poll (Dependencies): Add sys_select.
63961
63962 2007-01-15  Jim Meyering  <jim@meyering.net>
63963
63964         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
63965         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
63966         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
63967         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
63968
63969 2007-01-15  Bruno Haible  <bruno@clisp.org>
63970
63971         * modules/striconveh: New file.
63972         * lib/striconveh.h: New file.
63973         * lib/striconveh.c: New file.
63974         * MODULES.html.sh (Internationalization functions): Add striconveh.
63975
63976         * modules/striconveh-tests: New file.
63977         * tests/test-striconveh.c: New file.
63978
63979 2007-01-15  Bruno Haible  <bruno@clisp.org>
63980
63981         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
63982         not from GNU libiconv or GNU libc.
63983
63984 2007-01-15  Bruno Haible  <bruno@clisp.org>
63985
63986         * doc/gnulib-intro.texi (Copyright): Explain the different license
63987         terms for module descriptions, autoconf macros, tests, documentation.
63988
63989 2007-01-14  Bruno Haible  <bruno@clisp.org>
63990
63991         * modules/striconv-tests: New file.
63992         * tests/test-striconv.c: New file.
63993
63994 2007-01-14  Bruno Haible  <bruno@clisp.org>
63995
63996         * modules/iconv-tests: New file.
63997         * tests/test-iconv.c: New file.
63998
63999 2007-01-14  Bruno Haible  <bruno@clisp.org>
64000
64001         * gnulib-tool (func_get_license): For test modules, use the license of
64002         the main module.
64003
64004 2007-01-14  Bruno Haible  <bruno@clisp.org>
64005
64006         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64007         if iconv is found to exist.
64008
64009 2007-01-14  Bruno Haible  <bruno@clisp.org>
64010
64011         * modules/c-ctype-tests: New file.
64012         * tests/test-c-ctype.c: New file.
64013
64014 2007-01-14  Bruno Haible  <bruno@clisp.org>
64015
64016         * modules/binary-io-tests: New file.
64017         * tests/test-binary-io.sh: New file.
64018         * tests/test-binary-io.c: New file.
64019
64020 2007-01-14  Bruno Haible  <bruno@clisp.org>
64021
64022         * modules/array-oset-tests: New file.
64023         * tests/test-array_oset.c: New file.
64024
64025 2007-01-14  Bruno Haible  <bruno@clisp.org>
64026
64027         * modules/array-list-tests: New file.
64028         * tests/test-array_list.c: New file.
64029
64030 2007-01-14  Bruno Haible  <bruno@clisp.org>
64031
64032         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64033         and make.
64034         Reported by Simon Josefsson in
64035         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64036
64037 2007-01-14  Bruno Haible  <bruno@clisp.org>
64038
64039         * modules/allocsa-tests: New file.
64040         * tests/test-allocsa.c: New file.
64041
64042 2007-01-14  Bruno Haible  <bruno@clisp.org>
64043
64044         * modules/fchdir (Depends-on): Add absolute-header.
64045         * modules/unistd (Depends-on): Likewise.
64046
64047 2006-12-30  Bruno Haible  <bruno@clisp.org>
64048
64049         * modules/fchdir: New file.
64050         * modules/unistd (Files): Add lib/unistd_.h.
64051         (Makefile.am): Generate unistd.h from unistd_.h.
64052         * lib/fchdir.c: New file.
64053         * lib/dirent_.h: New file.
64054         * lib/unistd_.h: New file.
64055         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64056         * m4/fchdir.m4: New file.
64057         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64058         (gl_HEADER_UNISTD): Invoke it.
64059         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64060         function.
64061         * lib/backupfile.c (opendir, closedir): Undefine.
64062         * lib/chown.c (open, close): Undefine.
64063         * lib/clean-temp.c (open, close): Undefine.
64064         * lib/copy-file.c (open, close): Undefine.
64065         * lib/execute.c (open, close): Undefine.
64066         * lib/fsusage.c (open, close): Undefine.
64067         * lib/gc-gnulib.c (open, close): Undefine.
64068         * lib/getcwd.c (opendir, closedir): Undefine.
64069         * lib/glob.c (opendir, closedir): Undefine.
64070         * lib/javacomp.c (open, close): Undefine.
64071         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64072         * lib/openat-proc.c (open, close): Undefine.
64073         * lib/pagealign_alloc.c (open, close): Undefine.
64074         * lib/pipe.c (open, close): Undefine.
64075         * lib/progreloc.c (open, close): Undefine.
64076         * lib/savedir.c (opendir, closedir): Undefine.
64077         * lib/utime.c (open, close): Undefine.
64078         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64079
64080 2007-01-10  Bruno Haible  <bruno@clisp.org>
64081
64082         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64083
64084 2007-01-12  Eric Blake  <ebb9@byu.net>
64085
64086         Provide a robust <wchar.h>.  Further simplifications are now
64087         possible in other modules, but not included here.
64088         * modules/wchar: New module.
64089         * m4/wchar.m4: New file.
64090         * lib/wchar_.h: Likewise.
64091         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64092         of the new module.
64093         * MODULES.html.sh (Extended multibyte and wide character utilities):
64094         New section.
64095
64096 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64097
64098         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64099         to a reasonable default for memory allocation.
64100         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64101         file system that reports garbage st_size values for symlinks.
64102         Problem reported by Liyang Hu.
64103
64104 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64105
64106         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64107         Emacs .#* auto-save files).
64108
64109 2007-01-11  Bruno Haible  <bruno@clisp.org>
64110
64111         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64112         directory.
64113
64114 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64115
64116         Use @...@ consistently in lib/wctype_.h.
64117         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64118         on it being set to 1 or 0.
64119         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64120         go back to AC_SUBSTing it.
64121         * modules/wctype (Makefile.am): Undo previous change.
64122
64123 2007-01-10  Eric Blake  <ebb9@byu.net>
64124
64125         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64126         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64127         * modules/wctype (Makefile.am): Likewise.
64128         Reported by Chris McGuire.
64129
64130 2007-01-10  Jim Meyering  <jim@meyering.net>
64131
64132         fts.c: a small readability/maintainability improvement
64133         * lib/fts.c (fts_read): Make this code slightly more readable and
64134         maintainable by hoisting the "sp->fts_cur = p" assignments to
64135         immediately follow the statements that set P.  Derived from
64136         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64137
64138 2007-01-10  Eric Blake  <ebb9@byu.net>
64139
64140         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64141         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64142         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64143         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64144         Reported by Chris McGuire.
64145
64146 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64147
64148         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64149         in sed script.
64150
64151 2007-01-09  Bruno Haible  <bruno@clisp.org>
64152
64153         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64154         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64155         variables.
64156         (func_module): Use them.
64157
64158 2007-01-09  Bruno Haible  <bruno@clisp.org>
64159
64160         * modules/unistr/base: New file.
64161         * lib/unistr.h: New file.
64162
64163         * modules/unistr/u8-to-u16: New file.
64164         * lib/unistr/u8-to-u16.c: New file.
64165
64166         * modules/unistr/u8-to-u32: New file.
64167         * lib/unistr/u8-to-u32.c: New file.
64168
64169         * modules/unistr/u16-to-u8: New file.
64170         * lib/unistr/u16-to-u8.c: New file.
64171
64172         * modules/unistr/u16-to-u32: New file.
64173         * lib/unistr/u16-to-u32.c: New file.
64174
64175         * modules/unistr/u32-to-u8: New file.
64176         * lib/unistr/u32-to-u8.c: New file.
64177
64178         * modules/unistr/u32-to-u16: New file.
64179         * lib/unistr/u32-to-u16.c: New file.
64180
64181         * modules/unistr/u8-check: New file.
64182         * modules/unistr/u16-check: New file.
64183         * modules/unistr/u32-check: New file.
64184         * lib/unistr/u8-check.c: New file.
64185         * lib/unistr/u16-check.c: New file.
64186         * lib/unistr/u32-check.c: New file.
64187
64188         * modules/unistr/u8-chr: New file.
64189         * modules/unistr/u16-chr: New file.
64190         * modules/unistr/u32-chr: New file.
64191         * lib/unistr/u8-chr.c: New file.
64192         * lib/unistr/u16-chr.c: New file.
64193         * lib/unistr/u32-chr.c: New file.
64194
64195         * modules/unistr/u8-cmp: New file.
64196         * modules/unistr/u16-cmp: New file.
64197         * modules/unistr/u32-cmp: New file.
64198         * lib/unistr/u8-cmp.c: New file.
64199         * lib/unistr/u16-cmp.c: New file.
64200         * lib/unistr/u32-cmp.c: New file.
64201
64202         * modules/unistr/u8-cpy: New file.
64203         * modules/unistr/u16-cpy: New file.
64204         * modules/unistr/u32-cpy: New file.
64205         * lib/unistr/u8-cpy.c: New file.
64206         * lib/unistr/u16-cpy.c: New file.
64207         * lib/unistr/u32-cpy.c: New file.
64208         * lib/unistr/u-cpy.h: New file.
64209
64210         * modules/unistr/u8-cpy-alloc: New file.
64211         * modules/unistr/u16-cpy-alloc: New file.
64212         * modules/unistr/u32-cpy-alloc: New file.
64213         * lib/unistr/u8-cpy-alloc.c: New file.
64214         * lib/unistr/u16-cpy-alloc.c: New file.
64215         * lib/unistr/u32-cpy-alloc.c: New file.
64216         * lib/unistr/u-cpy-alloc.h: New file.
64217
64218         * modules/unistr/u8-endswith: New file.
64219         * modules/unistr/u16-endswith: New file.
64220         * modules/unistr/u32-endswith: New file.
64221         * lib/unistr/u8-endswith.c: New file.
64222         * lib/unistr/u16-endswith.c: New file.
64223         * lib/unistr/u32-endswith.c: New file.
64224         * lib/unistr/u-endswith.h: New file.
64225
64226         * modules/unistr/u8-mblen: New file.
64227         * modules/unistr/u16-mblen: New file.
64228         * modules/unistr/u32-mblen: New file.
64229         * lib/unistr/u8-mblen.c: New file.
64230         * lib/unistr/u16-mblen.c: New file.
64231         * lib/unistr/u32-mblen.c: New file.
64232
64233         * modules/unistr/u8-mbtouc: New file.
64234         * modules/unistr/u16-mbtouc: New file.
64235         * modules/unistr/u32-mbtouc: New file.
64236         * lib/unistr/u8-mbtouc.c: New file.
64237         * lib/unistr/u16-mbtouc.c: New file.
64238         * lib/unistr/u32-mbtouc.c: New file.
64239
64240         * modules/unistr/u8-mbtouc-safe: New file.
64241         * modules/unistr/u16-mbtouc-safe: New file.
64242         * modules/unistr/u32-mbtouc-safe: New file.
64243         * lib/unistr/u8-mbtouc-safe.c: New file.
64244         * lib/unistr/u16-mbtouc-safe.c: New file.
64245         * lib/unistr/u32-mbtouc-safe.c: New file.
64246
64247         * modules/unistr/u8-move: New file.
64248         * modules/unistr/u16-move: New file.
64249         * modules/unistr/u32-move: New file.
64250         * lib/unistr/u8-move.c: New file.
64251         * lib/unistr/u16-move.c: New file.
64252         * lib/unistr/u32-move.c: New file.
64253         * lib/unistr/u-move.h: New file.
64254
64255         * modules/unistr/u8-next: New file.
64256         * modules/unistr/u16-next: New file.
64257         * modules/unistr/u32-next: New file.
64258         * lib/unistr/u8-next.c: New file.
64259         * lib/unistr/u16-next.c: New file.
64260         * lib/unistr/u32-next.c: New file.
64261
64262         * modules/unistr/u8-prev: New file.
64263         * modules/unistr/u16-prev: New file.
64264         * modules/unistr/u32-prev: New file.
64265         * lib/unistr/u8-prev.c: New file.
64266         * lib/unistr/u16-prev.c: New file.
64267         * lib/unistr/u32-prev.c: New file.
64268
64269         * modules/unistr/u8-set: New file.
64270         * modules/unistr/u16-set: New file.
64271         * modules/unistr/u32-set: New file.
64272         * lib/unistr/u8-set.c: New file.
64273         * lib/unistr/u16-set.c: New file.
64274         * lib/unistr/u32-set.c: New file.
64275         * lib/unistr/u-set.h: New file.
64276
64277         * modules/unistr/u8-startswith: New file.
64278         * modules/unistr/u16-startswith: New file.
64279         * modules/unistr/u32-startswith: New file.
64280         * lib/unistr/u8-startswith.c: New file.
64281         * lib/unistr/u16-startswith.c: New file.
64282         * lib/unistr/u32-startswith.c: New file.
64283         * lib/unistr/u-startswith.h: New file.
64284
64285         * modules/unistr/u8-stpcpy: New file.
64286         * modules/unistr/u16-stpcpy: New file.
64287         * modules/unistr/u32-stpcpy: New file.
64288         * lib/unistr/u8-stpcpy.c: New file.
64289         * lib/unistr/u16-stpcpy.c: New file.
64290         * lib/unistr/u32-stpcpy.c: New file.
64291         * lib/unistr/u-stpcpy.h: New file.
64292
64293         * modules/unistr/u8-stpncpy: New file.
64294         * modules/unistr/u16-stpncpy: New file.
64295         * modules/unistr/u32-stpncpy: New file.
64296         * lib/unistr/u8-stpncpy.c: New file.
64297         * lib/unistr/u16-stpncpy.c: New file.
64298         * lib/unistr/u32-stpncpy.c: New file.
64299         * lib/unistr/u-stpncpy.h: New file.
64300
64301         * modules/unistr/u8-strcat: New file.
64302         * modules/unistr/u16-strcat: New file.
64303         * modules/unistr/u32-strcat: New file.
64304         * lib/unistr/u8-strcat.c: New file.
64305         * lib/unistr/u16-strcat.c: New file.
64306         * lib/unistr/u32-strcat.c: New file.
64307         * lib/unistr/u-strcat.h: New file.
64308
64309         * modules/unistr/u8-strchr: New file.
64310         * modules/unistr/u16-strchr: New file.
64311         * modules/unistr/u32-strchr: New file.
64312         * lib/unistr/u8-strchr.c: New file.
64313         * lib/unistr/u16-strchr.c: New file.
64314         * lib/unistr/u32-strchr.c: New file.
64315
64316         * modules/unistr/u8-strcmp: New file.
64317         * modules/unistr/u16-strcmp: New file.
64318         * modules/unistr/u32-strcmp: New file.
64319         * lib/unistr/u8-strcmp.c: New file.
64320         * lib/unistr/u16-strcmp.c: New file.
64321         * lib/unistr/u32-strcmp.c: New file.
64322
64323         * modules/unistr/u8-strcpy: New file.
64324         * modules/unistr/u16-strcpy: New file.
64325         * modules/unistr/u32-strcpy: New file.
64326         * lib/unistr/u8-strcpy.c: New file.
64327         * lib/unistr/u16-strcpy.c: New file.
64328         * lib/unistr/u32-strcpy.c: New file.
64329         * lib/unistr/u-strcpy.h: New file.
64330
64331         * modules/unistr/u8-strcspn: New file.
64332         * modules/unistr/u16-strcspn: New file.
64333         * modules/unistr/u32-strcspn: New file.
64334         * lib/unistr/u8-strcspn.c: New file.
64335         * lib/unistr/u16-strcspn.c: New file.
64336         * lib/unistr/u32-strcspn.c: New file.
64337         * lib/unistr/u-strcspn.h: New file.
64338
64339         * modules/unistr/u8-strdup: New file.
64340         * modules/unistr/u16-strdup: New file.
64341         * modules/unistr/u32-strdup: New file.
64342         * lib/unistr/u8-strdup.c: New file.
64343         * lib/unistr/u16-strdup.c: New file.
64344         * lib/unistr/u32-strdup.c: New file.
64345         * lib/unistr/u-strdup.h: New file.
64346
64347         * modules/unistr/u8-strlen: New file.
64348         * modules/unistr/u16-strlen: New file.
64349         * modules/unistr/u32-strlen: New file.
64350         * lib/unistr/u8-strlen.c: New file.
64351         * lib/unistr/u16-strlen.c: New file.
64352         * lib/unistr/u32-strlen.c: New file.
64353         * lib/unistr/u-strlen.h: New file.
64354
64355         * modules/unistr/u8-strmblen: New file.
64356         * modules/unistr/u16-strmblen: New file.
64357         * modules/unistr/u32-strmblen: New file.
64358         * lib/unistr/u8-strmblen.c: New file.
64359         * lib/unistr/u16-strmblen.c: New file.
64360         * lib/unistr/u32-strmblen.c: New file.
64361
64362         * modules/unistr/u8-strmbtouc: New file.
64363         * modules/unistr/u16-strmbtouc: New file.
64364         * modules/unistr/u32-strmbtouc: New file.
64365         * lib/unistr/u8-strmbtouc.c: New file.
64366         * lib/unistr/u16-strmbtouc.c: New file.
64367         * lib/unistr/u32-strmbtouc.c: New file.
64368
64369         * modules/unistr/u8-strncat: New file.
64370         * modules/unistr/u16-strncat: New file.
64371         * modules/unistr/u32-strncat: New file.
64372         * lib/unistr/u8-strncat.c: New file.
64373         * lib/unistr/u16-strncat.c: New file.
64374         * lib/unistr/u32-strncat.c: New file.
64375         * lib/unistr/u-strncat.h: New file.
64376
64377         * modules/unistr/u8-strncmp: New file.
64378         * modules/unistr/u16-strncmp: New file.
64379         * modules/unistr/u32-strncmp: New file.
64380         * lib/unistr/u8-strncmp.c: New file.
64381         * lib/unistr/u16-strncmp.c: New file.
64382         * lib/unistr/u32-strncmp.c: New file.
64383
64384         * modules/unistr/u8-strncpy: New file.
64385         * modules/unistr/u16-strncpy: New file.
64386         * modules/unistr/u32-strncpy: New file.
64387         * lib/unistr/u8-strncpy.c: New file.
64388         * lib/unistr/u16-strncpy.c: New file.
64389         * lib/unistr/u32-strncpy.c: New file.
64390         * lib/unistr/u-strncpy.h: New file.
64391
64392         * modules/unistr/u8-strnlen: New file.
64393         * modules/unistr/u16-strnlen: New file.
64394         * modules/unistr/u32-strnlen: New file.
64395         * lib/unistr/u8-strnlen.c: New file.
64396         * lib/unistr/u16-strnlen.c: New file.
64397         * lib/unistr/u32-strnlen.c: New file.
64398         * lib/unistr/u-strnlen.h: New file.
64399
64400         * modules/unistr/u8-strpbrk: New file.
64401         * modules/unistr/u16-strpbrk: New file.
64402         * modules/unistr/u32-strpbrk: New file.
64403         * lib/unistr/u8-strpbrk.c: New file.
64404         * lib/unistr/u16-strpbrk.c: New file.
64405         * lib/unistr/u32-strpbrk.c: New file.
64406         * lib/unistr/u-strpbrk.h: New file.
64407
64408         * modules/unistr/u8-strrchr: New file.
64409         * modules/unistr/u16-strrchr: New file.
64410         * modules/unistr/u32-strrchr: New file.
64411         * lib/unistr/u8-strrchr.c: New file.
64412         * lib/unistr/u16-strrchr.c: New file.
64413         * lib/unistr/u32-strrchr.c: New file.
64414
64415         * modules/unistr/u8-strspn: New file.
64416         * modules/unistr/u16-strspn: New file.
64417         * modules/unistr/u32-strspn: New file.
64418         * lib/unistr/u8-strspn.c: New file.
64419         * lib/unistr/u16-strspn.c: New file.
64420         * lib/unistr/u32-strspn.c: New file.
64421         * lib/unistr/u-strspn.h: New file.
64422
64423         * modules/unistr/u8-strstr: New file.
64424         * modules/unistr/u16-strstr: New file.
64425         * modules/unistr/u32-strstr: New file.
64426         * lib/unistr/u8-strstr.c: New file.
64427         * lib/unistr/u16-strstr.c: New file.
64428         * lib/unistr/u32-strstr.c: New file.
64429         * lib/unistr/u-strstr.h: New file.
64430
64431         * modules/unistr/u8-strtok: New file.
64432         * modules/unistr/u16-strtok: New file.
64433         * modules/unistr/u32-strtok: New file.
64434         * lib/unistr/u8-strtok.c: New file.
64435         * lib/unistr/u16-strtok.c: New file.
64436         * lib/unistr/u32-strtok.c: New file.
64437         * lib/unistr/u-strtok.h: New file.
64438
64439         * modules/unistr/u8-uctomb: New file.
64440         * modules/unistr/u16-uctomb: New file.
64441         * modules/unistr/u32-uctomb: New file.
64442         * lib/unistr/u8-uctomb.c: New file.
64443         * lib/unistr/u16-uctomb.c: New file.
64444         * lib/unistr/u32-uctomb.c: New file.
64445
64446         * MODULES.html.sh (Unicode string functions): Add the new modules.
64447
64448 2007-01-08  Bruno Haible  <bruno@clisp.org>
64449
64450         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
64451         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
64452         subdirectories.
64453
64454 2007-01-08  Karl Berry  <karl@gnu.org>
64455
64456         * doc/error.texi: mention that main() fns must set program_name
64457         when progname is used.
64458
64459 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
64460
64461         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
64462         WCTYPE_H is empty, for the benefit of builds from non-distclean
64463         directories.  Problem reported by Eric Blake in
64464         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
64465
64466 2007-01-08  Bruno Haible  <bruno@clisp.org>
64467
64468         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
64469         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
64470         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
64471         PROVIDE_CANONICALIZE_FILENAME_MODE.
64472         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
64473
64474 2007-01-08  Bruno Haible  <bruno@clisp.org>
64475
64476         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
64477         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
64478         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
64479         * lib/fts.c: Likewise.
64480         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
64481
64482 2006-12-25  Bruno Haible  <bruno@clisp.org>
64483
64484         * modules/utf8-ucs4-safe: New file.
64485         * lib/utf8-ucs4-safe.h: New file.
64486         * lib/unistr/utf8-ucs4-safe.c: New file.
64487
64488         * modules/utf16-ucs4-safe: New file.
64489         * lib/utf16-ucs4-safe.h: New file.
64490         * lib/unistr/utf16-ucs4-safe.c: New file.
64491
64492         * MODULES.html.sh (Unicode string functions): Add the new modules.
64493
64494 2007-01-08  Bruno Haible  <bruno@clisp.org>
64495
64496         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
64497         (Depends-on): Add unitypes.
64498         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64499         (u8_mbtouc_aux): Move out to separate file.
64500         (u8_mbtouc): Use ucs4_t, uint8_t types.
64501         * lib/unistr/utf8-ucs4.c: New file.
64502
64503         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
64504         (Depends-on): Add unitypes.
64505         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64506         (u16_mbtouc_aux): Move out to separate file.
64507         (u16_mbtouc): Use ucs4_t, uint16_t types.
64508         * lib/unistr/utf16-ucs4.c: New file.
64509
64510         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
64511         (Depends-on): Add unitypes.
64512         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
64513         (u8_uctomb_aux): Move out to separate file.
64514         (u8_uctomb): Use ucs4_t, uint8_t types.
64515         * lib/unistr/ucs4-utf8.c: New file.
64516
64517         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
64518         (Depends-on): Add unitypes.
64519         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
64520         (u16_uctomb_aux): Move out to separate file.
64521         (u16_uctomb): Use ucs4_t, uint16_t types.
64522         * lib/unistr/ucs4-utf16.c: New file.
64523
64524 2006-12-25  Bruno Haible  <bruno@clisp.org>
64525
64526         * modules/unitypes: New file.
64527         * lib/unitypes.h: New file.
64528         * MODULES.html.sh (func_all_modules): New section "Unicode string
64529         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
64530         this section. Add unitypes.
64531
64532 2007-01-08  Bruno Haible  <bruno@clisp.org>
64533
64534         Avoid variable names that conflict with those from libtool.
64535         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
64536         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
64537         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
64538         library_names_spec to acl_library_names_spec, hardcode_* to
64539         acl_hardcode_*.
64540         Reported by Ralf Wildenhues.
64541
64542 2007-01-08  Bruno Haible  <bruno@clisp.org>
64543
64544         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
64545         definition.
64546         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
64547         definition.
64548         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
64549         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
64550         definition.
64551         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
64552         definition.
64553         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
64554         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
64555         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
64556         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
64557         definition.
64558         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
64559         definition.
64560         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
64561         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
64562         GC_USE_<algorithm>.
64563         * lib/gc-libgcrypt.c: Likewise.
64564         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
64565         * modules/gc-arctwo (configure.ac): Likewise.
64566         * modules/gc-des (configure.ac): Likewise.
64567         * modules/gc-hmac-md5 (configure.ac): Likewise.
64568         * modules/gc-hmac-sha1 (configure.ac): Likewise.
64569         * modules/gc-md2 (configure.ac): Likewise.
64570         * modules/gc-md4 (configure.ac): Likewise.
64571         * modules/gc-md5 (configure.ac): Likewise.
64572         * modules/gc-random (configure.ac): Likewise.
64573         * modules/gc-rijndael (configure.ac): Likewise.
64574         * modules/gc-sha1 (configure.ac): Likewise.
64575
64576 2007-01-08  Bruno Haible  <bruno@clisp.org>
64577
64578         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
64579         macro definition.
64580         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
64581         definition.
64582         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
64583         definition.
64584         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
64585         * modules/fcntl-safer (configure.ac): Likewise.
64586         * modules/fopen-safer (configure.ac): Likewise.
64587         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
64588         GNULIB_FWRITEERROR macro definition.
64589
64590 2007-01-08  Bruno Haible  <bruno@clisp.org>
64591
64592         * m4/gnulib-common.m4: New file.
64593         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
64594         (func_get_filelist): Add m4/gnulib-common.m4.
64595
64596 2007-01-08  Bruno Haible  <bruno@clisp.org>
64597
64598         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
64599         command.
64600
64601 2007-01-08  Jim Meyering  <jim@meyering.net>
64602
64603         Use a more robust test for a "can't happen" condition.
64604         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
64605         narrowed the st_size value.  Presuming the "can't happen" condition
64606         is true, that narrowing could conceivably convert an invalid st_size
64607         value into a valid one.  Instead, use a change based on Matthew
64608         Woehlke's original patch.
64609
64610         Slight readability improvement: use an assert-like macro
64611         in place of literal "abort ()" uses.
64612         * lib/fts.c (fts_assert): Define.
64613         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
64614         Use this macro instead of a bare 'abort'.
64615
64616 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
64617
64618         Don't worry about using IRIX 5.3's wctype.h broken definitions;
64619         simply work around them.
64620         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
64621         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
64622         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
64623         declaring.
64624         Don't bother to define as macros, since the standard doesn't require it.
64625         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
64626         longer worry about IRIX 5.3.
64627         (HAVE_WCTYPE_CTMP_BUG): Remove.
64628
64629 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64630
64631         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
64632         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
64633         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64634         Problems reported by Georg Schwarz for IRIX 5.3.
64635
64636         * gnulib-tool (autoconf_minversion): Take the maximum version number
64637         found, not the minimum.  Problem reported by James Youngman.
64638
64639 2007-01-03  Karl Berry  <karl@gnu.org>
64640
64641         * doc/error.texi: new file, explaining interaction with progname.
64642         * doc/gnulib.texi: include it.  Update copyright.
64643
64644 2007-01-03  Simon Josefsson  <simon@josefsson.org>
64645
64646         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
64647         AC_CANONICAL_HOST, to improve autobuild outputs.
64648
64649 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
64650             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64651
64652         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
64653         sockets, server sockets, and other file descriptors.  Count errors
64654         to compute the return value.  Reorder the code a bit to be easier
64655         to follow.  Don't set event bits that were not requested (except
64656         POLLERR and POLLHUP).
64657
64658 2007-01-01  Bruno Haible  <bruno@clisp.org>
64659
64660         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
64661
64662 2007-01-03  Jim Meyering  <jim@meyering.net>
64663
64664         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
64665
64666 2007-01-02  Bruno Haible  <bruno@clisp.org>
64667
64668         * modules/settime (Include): Require timespec.h.
64669         * modules/nanosleep (Include): Likewise.
64670
64671 2007-01-01  Bruno Haible  <bruno@clisp.org>
64672
64673         * gnulib-tool (func_emit_copyright_notice): Bump year.
64674         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
64675
64676 2007-01-01  Bruno Haible  <bruno@clisp.org>
64677
64678         Improve support for OpenBSD.
64679         * build-aux/config.rpath (libname_spec): Export.
64680         (library_names_spec): New variable. Export.
64681         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
64682         library_names_spec from the config.rpath output. Locate shared library
64683         through the name pattern in library_names_spec.
64684
64685 2007-01-01  Eric Blake  <ebb9@byu.net>
64686
64687         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
64688
64689 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
64690
64691         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
64692         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
64693         assume the C locale, and avoid an "eval" that could cause trouble.
64694         Problem with SORT reported by Bob Proulx.
64695
64696         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
64697         Define.  Trivial patch from Henning Nielsen Lund, originally
64698         sent to bug-grep@gnu.org today.
64699
64700 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64701
64702         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
64703         struct stat.  Problem reported by Henning Nielsen Lund.
64704         * lib/acl.c: Include acl.h first, to check interface.  Don't
64705         bother to include sys/types.h and sys/stat.h again.
64706
64707 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64708
64709         Import the following change from libc; problem reported by
64710         Sven Verdoolaege.
64711
64712         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
64713
64714         [BZ #1373]
64715         * lib/argp.h: Remove __NTH for __argp_usage inline function.
64716
64717 2006-12-28  Jim Meyering  <jim@meyering.net>
64718
64719         * build-aux/announce-gen: Do not assume that the package
64720         builds any of tar.gz, tar.bz2, and .xdelta files.
64721         Suggestion from Simon Josefsson.
64722
64723 2006-12-28  Simon Josefsson  <simon@josefsson.org>
64724
64725         * modules/announce-gen: New file.
64726
64727 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
64728
64729         * lib/mbchar.h: Just include <wctype.h>; the wctype module
64730         handles its gotchas now.
64731         * lib/mbswidth.c: Likewise.
64732         * lib/wcwidth.h: Likewise.
64733         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
64734         and iswcntrl; the wctype module does this stuff now.
64735         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64737         * modules/mbchar (Depends-on): Add wctype.
64738         * modules/mbswidth (Depends-on): Likewise.
64739         * modules/wcwidth (Depends-on): Likewise.
64740
64741 2006-12-27  Eric Blake  <ebb9@byu.net>
64742
64743         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
64744         module uses more than what <wctype.h> is required to provide.
64745
64746 2006-12-26  Eric Blake  <ebb9@byu.net>
64747
64748         * gnulib-tool (sed_extract_prog): Avoid space-tab.
64749
64750 2006-12-26  Eric Blake  <ebb9@byu.net>
64751
64752         * modules/absolute-header: New module.
64753         * modules/fcntl (Depends-on): Depend on it.
64754         * modules/inttypes (Depends-on): Likewise.
64755         * modules/stdint (Depends-on): Likewise.
64756         * modules/sys_stat (Depends-on): Likewise.
64757         * modules/wctype (Depends-on): Likewise.
64758         * MODULES.html.sh (Support for building libraries and
64759         executables): Document it.
64760
64761 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64762
64763         * gnulib-tool (SED): Remove, undoing previous change.
64764         The problem was that it broke coreutils on Solaris, because
64765         "sed --posix" leaked into a makefile.
64766         (sed): New alias, if 'alias' and GNU sed.
64767
64768 2006-12-24  Jim Meyering  <jim@meyering.net>
64769
64770         Work around an fchownat bug in glibc-2.4:
64771         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
64772         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
64773         in spite of the -P option.
64774         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
64775         New macros.
64776         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
64777         * modules/openat (Files): Add lib/fchownat.c.
64778         * lib/openat.c (fchownat): Don't define here.  Move to...
64779         * lib/fchownat.c: ...this new file.
64780
64781 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64782
64783         Fix bug reported by Bruno Haible in
64784         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
64785         where quotearg.c didn't compile on Mac OS X 10.2 because it
64786         lacks <wchar.h> and wint_t.
64787         * lib/wctype_.h (__wctype_wint_t): New type.
64788         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
64789         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
64790         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
64791         Arg is now of type __wctype_wint_t, not wint_t.
64792         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
64793         substitute HAVE_WINT_T.
64794         * modules/wctype (Files): Add m4/wint_t.m4.
64795         (wctype.h): Substitute HAVE_WINT_T.
64796
64797 2006-12-23  Bruno Haible  <bruno@clisp.org>
64798
64799         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
64800
64801 2006-12-23  Bruno Haible  <bruno@clisp.org>
64802
64803         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
64804         S_ISLNK.
64805         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
64806         mingw.
64807
64808 2006-12-22  Bruno Haible  <bruno@clisp.org>
64809
64810         * lib/copy-file.c: Include acl.h.
64811         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
64812         Close the file descriptors only after being done with copy_acl.
64813         * modules/copy-file (Depends-on): Add acl.
64814
64815 2006-12-22  Bruno Haible  <bruno@clisp.org>
64816
64817         * gnulib-tool (SED): New variable.
64818         Use $SED instead of sed everywhere.
64819
64820 2006-12-22  Bruno Haible  <bruno@clisp.org>
64821
64822         * modules/no-c++: New file.
64823         * m4/no-c++.m4: New file.
64824         * MODULES.html.sh (Support for building libraries and executables):
64825         Add no-c++.
64826
64827 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
64828
64829         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64830         Include <limits.h>, and use its INT_MAX to rewrite the
64831         j loop so that it does not overflow 'int'.  Problem reported by
64832         Ralf Wildenhues in
64833         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
64834         Play it safe by shifting left by 1 rather than multiplying by 2,
64835         as GCC is less likely to optimize this away when the value
64836         is signed (when it assumes overflow leads to undefined behavior).
64837         Also, don't assume time_t uses two's complement.
64838
64839 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
64840
64841         * MODULES.html.sh: New module wctype.
64842         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
64843         * lib/fnmatch.c: Don't bother to include <wchar.h> before
64844         <wctype.h>, since the new wctype module should fix this.
64845         * lib/quotearg.c: Include <wctype.h> unconditionally, since
64846         the wctype module should arrange for it.
64847         * lib/regex_internal.h: Likewise.
64848         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
64849         since the wctype module should handle this now.
64850         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
64851         * modules/fnmatch (Depends-on): Add wctype.
64852         * modules/quotearg (Depends-on): Likewise.
64853         * modules/regex (Depends-on): Likewise.
64854
64855 2006-12-19  Bruno Haible  <bruno@clisp.org>
64856
64857         * lib/strdup.h [C++]: Wrap definitions in extern "C".
64858         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
64859
64860 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64861
64862         * modules/savewd (Depends-on): Fix dependency on fcntl.
64863
64864 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64865
64866         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
64867         conforms to C99, rather than relying on the user's environment
64868         setting of STDINT_H.
64869
64870 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64871         and Eric Blake  <ebb9@byu.net>
64872
64873         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
64874         This is more consistent with the other defines here.
64875         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
64876         Port to z/OS.  Problem reported by Paul Gilmartin.
64877         Change local vars to use gl_ prefix rather than ac_.
64878         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
64879         with other defines.
64880         * modules/double-slash-root: New module.
64881         * modules/dirname (Files): Remove m4/double-slash-root.m4.
64882         (Depends-on): Add double-slash-root.
64883         * MODULES.html.sh (File system functions): Mention new module.
64884
64885 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
64886
64887         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
64888         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
64889         This is for the benefit of gzip, which doesn't do i18n.
64890
64891 2006-12-12  Jim Meyering  <jim@meyering.net>
64892
64893         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
64894         Reported by Andreas Schwab <schwab@suse.de>.
64895
64896 2006-12-12  Bruno Haible  <bruno@clisp.org>
64897
64898         Merge these changes.
64899         2006-09-05  Bruno Haible  <bruno@clisp.org>
64900         * lib/iconvme.c (iconv_string): No need to save and restore errno when
64901         iconv_alloc succeeded.
64902         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
64903         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
64904         test for " && dest " at the end - dest is always != NULL there. Call
64905         iconv with 4xNULL arguments initially, to reset the state. Call iconv
64906         with 2xNULL arguments, also to flush the state storage. Handle the
64907         IRIX iconv behaviour. Realloc the final result, to throw away unused
64908         memory.
64909
64910 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
64911
64912         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
64913         and fchmodat unconditionally, since glibc 2.4 has them.
64914         Problem reported by Arkadiusz Miskiewicz.
64915
64916 2006-12-10  Bruno Haible  <bruno@clisp.org>
64917
64918         * gnulib-tool (func_import): Show the include files only for those
64919         modules that are copied and specified.
64920         Reported by Karl Berry.
64921
64922 2006-12-08  Jim Meyering  <jim@meyering.net>
64923
64924         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
64925         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
64926
64927         * build-aux/announce-gen: Add two new options, both optional:
64928         --bootstrap-tools=TOOL_LIST
64929               a comma-separated list of tools, e.g.,
64930               autoconf,automake,bison,gnulib
64931         --gnulib-snapshot-date=DATE
64932               if gnulib is in the bootstrap tool list,
64933               then report this as the snapshot date.
64934               If not specified, use the current date/time.
64935               If you specify a date here, be sure it's UTC.
64936
64937 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64938
64939         * tests/test-argp-2.sh: Fix test to match actual output.
64940         (func_compare): Fix sed script to be portable.
64941
64942 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
64943
64944         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
64945         workaround for this case.  It is not autoconfigured now; offhand
64946         it's hard to see how to autoconfigure it.
64947
64948 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64949
64950         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
64951         a directory that is about to be chowned.  Such a directory's
64952         initial file permissions should permit the owner only and this
64953         should not be changed until after the chown, since the group and
64954         other bits would be incorrect if they granted permission before
64955         the chown.
64956
64957         Fix porting problem for iswctype reported by Georg Schwarz in:
64958         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
64959         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
64960         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
64961         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
64962         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64963
64964 2006-12-03  Jim Meyering  <jim@meyering.net>
64965
64966         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
64967         p->fts_statp may not yet be defined.
64968         (fts_read): Instead, set it in the caller, once p->fts_statp is
64969         sure to be defined, and corresponds to a top-level directory.
64970         This bug made du -x fail.  Here's the coreutils test case:
64971         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
64972         Reported by Mike Frysinger.
64973
64974 2006-12-01  Jim Meyering  <jim@meyering.net>
64975
64976         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
64977         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
64978         Reported by Simon Josefsson.
64979
64980 2006-11-30  Jim Meyering  <jim@meyering.net>
64981
64982         * m4/warning.m4: Use the all-permissive copyright notice
64983         recommended by RMS (rather than LGPL).
64984         * m4/vararrays.m4: Likewise.
64985         * m4/flexmember.m4: Likewise.
64986
64987 2006-11-29  Bruno Haible  <bruno@clisp.org>
64988
64989         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64990         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
64991         using +=.
64992         Reported by Simon Josefsson <simon@josefsson.org>.
64993
64994 2006-11-28  James Youngman <jay@gnu.org>
64995
64996         * README: Advise users that they might find the bug-gnulib@gnu.org
64997         and autotools-announce@gnu.org mailing lists useful.
64998
64999 2006-11-28  Bruno Haible  <bruno@clisp.org>
65000
65001         * m4/ptrdiff_max.m4: Remove file.
65002
65003 2006-11-21  Bruno Haible  <bruno@clisp.org>
65004
65005         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65006         _AC_COMPUTE_INT.
65007         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65008         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65009         _AC_COMPUTE_INT.
65010         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65011         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65012         _AC_COMPUTE_INT.
65013         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65014
65015 2006-11-28  Jim Meyering  <jim@meyering.net>
65016
65017         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65018         warning from "gcc -Wshadow" about shadowing the builtin.
65019
65020 2006-11-27  Bruno Haible  <bruno@clisp.org>
65021
65022         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65023         _AC_COMPUTE_INT.
65024         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65025
65026 2006-11-27  Bruno Haible  <bruno@clisp.org>
65027             Paul Eggert  <eggert@cs.ucla.edu>
65028
65029         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65030
65031 2006-11-26  Bruno Haible  <bruno@clisp.org>
65032
65033         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65034         noinst_LTLIBRARIES.
65035
65036 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65037             Bruno Haible  <bruno@clisp.org>
65038
65039         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65040         if compiling with "gcc -ansi".
65041
65042 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65043
65044         Fix some incompatibilities with gcc -ansi -pedantic.
65045         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65046         if compiling pedantically with GCC, unless it's C99 or later.
65047         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65048         it mishandles gcc -ansi -pedantic as well.
65049         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65050         if gcc -pedantic.
65051         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65052         initializers for struct if -pedantic, unless it's C99 or later.
65053
65054 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65055
65056         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65057         Don't close an fd more than once. Identical atimes indicate
65058         success, not failure.
65059
65060 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65061
65062         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65063
65064 2006-11-23  Jim Meyering  <jim@meyering.net>
65065
65066         * build-aux/announce-gen: New file.  From coreutils.
65067
65068 2006-11-22  Jim Meyering  <jim@meyering.net>
65069
65070         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65071         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65072         (fts_read): Use a temporary to narrow the overused st_size member
65073         before using it in a switch statement.  Reported by Matthew Woehlke.
65074
65075         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65076         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65077
65078 2006-11-20  Bruno Haible  <bruno@clisp.org>
65079
65080         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65081         changequote instead of pairs of brackets.
65082         Reported by Andreas Schwab <schwab@suse.de>.
65083
65084 2006-11-21  Jim Meyering  <jim@meyering.net>
65085
65086         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65087         so as to remain compatible with older compilers.
65088         Patch from Michael Deutschmann.
65089
65090 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65091
65092         * MODULES.html.sh (File system functions): Add openat.
65093
65094         * lib/openat.h (rpl_fstatat): New macro, if
65095         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65096         (fstatat): Define to rpl_fstatat under the same conditions,
65097         unless COMPILING_FSTATAT.
65098         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65099         seems to have the bug.
65100         * lib/fstatat.c: New file.
65101         * modules/openat (Files): Add it.
65102
65103 2006-11-20  Bruno Haible  <bruno@clisp.org>
65104
65105         * Makefile: New file.
65106
65107 2006-11-20  Jim Meyering  <jim@meyering.net>
65108
65109         The beginnings of syntax-related checks for gnulib.
65110         * lib/Makefile: New file.
65111         * lib/t-idcache: New script.  Ensure that the two halves of
65112         idcache.c stay in sync.
65113
65114         * lib/idcache.c: Adjust comments in user- and group- portions to
65115         be more accurate, and to be consistent with one another.
65116
65117 2006-11-20  Jim Meyering  <jim@meyering.net>
65118
65119         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65120         continue using the flexible array member (thus, this module performs
65121         half as many malloc calls), with the addition that...
65122         (getgroup, getuser): Consistently record a non-match via an empty
65123         "name" string, and map an empty string match to a NULL return value.
65124         * modules/idcache (Depends-on): Re-add flexmember.
65125
65126         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65127         (getuidbyname, getgroup, getgidbyname): Likewise.
65128
65129         Use cleaner syntax: NULL rather than 0.
65130         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65131
65132 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65133
65134         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65135         It mishandled the case where the group was missing.
65136         Problem reported by Greg Schafer.
65137         * modules/idcache: Likewise.
65138
65139 2006-11-18  Jim Meyering  <jim@meyering.net>
65140
65141         * check-module (%exempt_header): Add exception for some
65142         conditionally-included headers.
65143
65144         * modules/i-ring (Depends-on): Add verify.
65145         (License): Change to LGPL.
65146
65147 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65148
65149         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65150         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65151         and inttostr.h.  Use snprintf rather than uinttostr, so that
65152         LGPLed code doesn't depend on GPLed.
65153
65154 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65155
65156         * modules/inline (License): Change from GPL to LGPL.
65157
65158 2006-11-17  Jim Meyering  <jim@meyering.net>
65159
65160         * modules/d-type (License): Switch to LGPL.
65161
65162 2006-11-15  Bruno Haible  <bruno@clisp.org>
65163
65164         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65165
65166 2006-11-15  Eric Blake  <ebb9@byu.net>
65167
65168         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65169         the module dependency.
65170
65171 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65172             Bruno Haible  <bruno@clisp.org>
65173
65174         * gnulib-tool (func_create_testdir): Add license consistency check.
65175
65176 2006-11-15  Eric Blake  <ebb9@byu.net>
65177
65178         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65179         random "(cached)" in configure output.
65180
65181 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65182
65183         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65184         test for conforming inttypes.h is both announced and cached.
65185
65186         * MODULES.html.sh (seen_modules, seen_files): New variables.
65187         (func_module): Rewrite to use a few less gnulib-tool and sed
65188         invocations.  Avoid a couple of quadratic algorithms for ...
65189         (missed_modules, missed_files): ... these, with ...
65190         (func_append, func_tmpdir): ... these new functions, from
65191         gnulib-tool.  Analogously, install traps for cleanup.
65192
65193         * tests/test-gc.c (main): Remove unused variables.
65194         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65195
65196 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65197
65198         * modules/inttostr (License): Change to LGPL.
65199
65200 2006-11-14  Eric Blake  <ebb9@byu.net>
65201
65202         * modules/tempname (License): Change to LGPL.
65203
65204 2006-11-14  Eric Blake  <ebb9@byu.net>
65205
65206         * doc/functions.texi (Function Portability): *printf functions on
65207         Cygwin now understand all POSIX size specifiers.
65208
65209 2006-11-14  Bruno Haible  <bruno@clisp.org>
65210
65211         * modules/c-ctype (License): Change to LGPL.
65212
65213 2006-11-12  Bruno Haible  <bruno@clisp.org>
65214
65215         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65216         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65217         for GNOME libraries, for which the include files are installed in
65218         subdirectories of $prefix/include.
65219
65220 2006-11-12  Bruno Haible  <bruno@clisp.org>
65221
65222         * m4/lib-link.m4: Require at least autoconf-2.54.
65223         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65224         name to underscores for the --with option.
65225
65226 2006-11-13  Bruno Haible  <bruno@clisp.org>
65227
65228         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65229         the tests directory.
65230         Reported by Ralf Wildenhues.
65231
65232 2006-11-13  Bruno Haible  <bruno@clisp.org>
65233
65234         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65235         (func_emit_initmacro_end): Undo the override here.
65236         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65237         Works around the famous automake error in coreutils.
65238
65239 2006-11-13  Eric Blake  <ebb9@byu.net>
65240
65241         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65242         element, not its node.
65243
65244 2006-11-12  Bruno Haible  <bruno@clisp.org>
65245
65246         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
65247         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
65248
65249 2006-11-12  Bruno Haible  <bruno@clisp.org>
65250
65251         * gnulib-tool: New option --local-symlink.
65252         (func_usage): Document it.
65253         (lsymbolic): New variable.
65254         (func_import, func_create_testdir): If --symlink was not specified,
65255         test whether --local-symlink was specified and the file comes from
65256         the local_gnulib_dir.
65257
65258 2006-11-12  Bruno Haible  <bruno@clisp.org>
65259
65260         * gnulib-tool (func_ln): New function.
65261         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
65262
65263 2006-11-12  Bruno Haible  <bruno@clisp.org>
65264
65265         Finish support for source files in subdirectories.
65266         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
65267         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
65268         AUTOMAKE_OPTIONS.
65269         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
65270
65271 2006-11-12  Bruno Haible  <bruno@clisp.org>
65272
65273         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65274         EXTRA_lib_SOURCES augmentation.
65275         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
65276
65277 2006-11-12  Jim Meyering  <jim@meyering.net>
65278
65279         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
65280         file descriptors.  This also averts a failure on systems with
65281         native openat support when a traversed directory lacks "x" access.
65282         * lib/fts_.h: Include "i-ring.h"
65283         (struct FTS) [fts_fd_ring]: New member.
65284         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
65285         (FCHDIR): Add parentheses.
65286         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
65287         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
65288         When descending, rather than simply closing the previous
65289         fts_cwd_fd value, push that file descriptor onto the ring.
65290         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
65291         (fts_open): Initialize the new fd_ring member.
65292         (fts_close): Clear the ring.
65293         (fts_safe_changedir): When possible, use our new fd_ring to skip
65294         the diropen and fstat and dev/ino comparison that would normally
65295         accompany a virtual `chdir ("..")'.
65296
65297         * modules/fts (Depends-on): Add i-ring.
65298         * modules/i-ring: New module.
65299         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
65300         * m4/i-ring.m4: New file.
65301
65302 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65303
65304         * gnulib-tool (func_create_testdir): Fix replacement of
65305         `build-aux' in configure.ac.  Run autotools in gltests
65306         subdirectory.
65307         (func_create_testdir, func_create_megatestdir, test): There is
65308         no need for '--force' in most autotool invocations in a new
65309         tree.  Actually fail the whole test if any of the tools, or the
65310         configure or make stages fail.
65311
65312         Sync from Automake.
65313         * build-aux/gnupload: Revert last change.  Add pointer to upload
65314         instructions of the GNU Maintenance Instructions.
65315         Suggestion by Karl Berry.
65316
65317 2006-11-10  Jim Meyering  <jim@meyering.net>
65318
65319         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
65320
65321 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65322
65323         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
65324         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
65325         (bind_textdomain_codeset) [! ENABLE_NLS]:
65326         Evaluate all the arguments.  That way, callers get compatible behavior
65327         if the arguments have side effects.  Also, it avoids some GCC
65328         diagnostics in some cases; Joel E. Denny reported problems when Bison
65329         was configured with --enable-gcc-warnigs.
65330
65331 2006-11-10  Jim Meyering  <jim@meyering.net>
65332
65333         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
65334         relevant options in CFLAGS (like -O, -fno-inline) are taken into
65335         account.
65336
65337 2006-11-10  Jim Meyering  <jim@meyering.net>
65338
65339         * modules/inline: New file/module.
65340         * modules/xalloc (Files): Remove m4/inline.m4.
65341         (Depends-on): Add inline, instead.
65342         * modules/oset: Likewise.
65343         * modules/list: Likewise.
65344
65345 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65346
65347         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65348         Problem reported by Matthew Woehlke.
65349
65350 2006-11-09  Bruno Haible  <bruno@clisp.org>
65351
65352         * lib/tempname.c (gen_tempname): Remove variant that invokes
65353         __gen_tempname.
65354         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65355         __gen_tempname.
65356
65357 2006-11-08  Bruno Haible  <bruno@clisp.org>
65358
65359         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65360         to 'yes' instead of 'cross-compiling'.
65361
65362 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65363
65364         * lib/quotearg.h (quotearg_free): New decl.
65365         * lib/quotearg.c (quotearg_free): New function.
65366         (slot0, nslots, slotvec0, slotvec):
65367         Now file-scope so that quotearg_free can get at them.
65368
65369 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65370
65371         Sync from Automake.
65372         * build-aux/gnupload: Add missing 'gnu' to example URL.
65373         Report by Karl Berry.
65374
65375 2006-11-08  Bruno Haible  <bruno@clisp.org>
65376
65377         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
65378         Suggested by Paul Eggert.
65379
65380 2006-11-08  Jim Meyering  <jim@meyering.net>
65381
65382         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
65383         It's already included if !_LIBC.
65384         (fts_safe_changedir): Add a comment.
65385
65386 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65387
65388         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
65389         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
65390         Matthew Woehlke.
65391
65392         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
65393         definitions up, to avoid colliding with change below.
65394         (static_inline) [HAVE_INLINE]: New macro.
65395         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
65396         Provide extern decls when !HAVE_INLINE.  Do not define unless
65397         static_inline is defined, either by us or by xmalloc.c.  Use
65398         static_inline rather than static inline.
65399         (XCALLOC): Optimize sizeof(T) = 1 case.
65400         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
65401
65402 2006-11-07  Bruno Haible  <bruno@clisp.org>
65403
65404         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
65405         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
65406         AC_C_INLINE.
65407         * modules/xalloc (Files): Add m4/inline.m4.
65408
65409 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65410
65411         * README: Fix typo.
65412         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
65413         (Miscellanous Notes): ...from this.
65414
65415 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65416
65417         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
65418         Mention that offsetof should be used instead of sizeof.
65419         From Bruno Haible.
65420
65421 2006-11-07  Bruno Haible  <bruno@clisp.org>
65422
65423         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
65424
65425 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65426
65427         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65428         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
65429         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65430         (gl_tree_add_before, gl_tree_add_after):
65431         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
65432         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
65433         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65434         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
65435         (gl_linked_add_after, gl_linked_add_at): Likewise.
65436         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
65437         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65438         (gl_tree_add_before, gl_tree_add_after): Likewise.
65439         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
65440         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
65441         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65442
65443 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65444
65445         * lib/gl_oset.h: Use C comment style, not C++ comment style.
65446
65447 2006-11-06  Bruno Haible  <bruno@clisp.org>
65448
65449         * m4/inline.m4: New file.
65450         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
65451         * modules/list (Files): Add m4/inline.m4.
65452         * modules/oset (Files): Likewise.
65453
65454 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65455
65456         * lib/idcache.c: Include <stddef.h>, for offsetof.
65457         (struct userid.name): Change from char * to a flexible array member.
65458         All uses changed.
65459         * modules/idcache (Depends-on): Add flexmember.
65460
65461         * MODULES.html.sh (Core language properties): New module flexmember.
65462         * modules/flexmember, m4/flexmember.m4: New files.
65463
65464         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
65465         inline functions that are identical with the old xnmalloc_inline,
65466         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
65467         that we can avoid some unnecessary integer multiplications and
65468         divisions in the common case where the element size is known at
65469         compile time.
65470         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
65471         needed.
65472         (xnboundedmalloc): Remove.
65473         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
65474         arguments, for consistency with rest of this header.
65475         (xcharalloc): Rewrite using XNMALLOC.
65476         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
65477         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
65478         versions have been moved to lib/xalloc.h and renamed to be the
65479         non-*_inline versions.
65480         (xmalloc, xrealloc): Implement without reference to the xnmalloc
65481         and xnrealloc functions, since those functions are now inline and
65482         now call us.
65483         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
65484         renaming described above.
65485         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
65486         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
65487         captures the dependency in AC_C_INLINE.
65488
65489         New module canonicalize-lgpl, proposed by Charles Wilson in
65490         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
65491         with a few small changes afterwards.
65492         * MODULES.html.sh (File system functions): New module
65493         canonicalize-lgpl.
65494         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
65495         and canonicalize_file_name.
65496         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
65497         * modules/canonicalize-lgpl: New files.
65498
65499 2006-11-05  Bruno Haible  <bruno@clisp.org>
65500
65501         * gnulib-tool (func_import, func_create_testdir): Create directories
65502         also for files in subdirectories of lib/.
65503
65504 2006-11-05  Bruno Haible  <bruno@clisp.org>
65505
65506         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
65507         ANSI C compliant.
65508
65509 2006-11-03  Bruno Haible  <bruno@clisp.org>
65510
65511         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65512         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
65513         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
65514         (xnboundedmalloc): New inline function.
65515         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
65516         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
65517         xmalloc.
65518         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
65519         xmalloc.
65520         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
65521         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
65522         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
65523         xmalloc.
65524         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65525         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
65526         xmalloc.
65527         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
65528         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65529         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
65530         xmalloc.
65531         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65532         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
65533         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65534         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
65535         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
65536         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
65537         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
65538
65539 2006-11-03  Bruno Haible  <bruno@clisp.org>
65540
65541         * lib/c-ctype.h [C++]: Define functions without name mangling.
65542         * lib/fwriteerror.h [C++]: Likewise.
65543         * lib/gcd.h [C++]: Likewise.
65544         * lib/linebreak.h [C++]: Likewise.
65545
65546 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65547
65548         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
65549         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
65550         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
65551         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65552         Check for functions and headers just once.
65553         Check for declaration of canonicalize_file_name.
65554         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
65555
65556 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65557
65558         * gnulib-tool (func_import): Fix typo in actioncmd.
65559
65560 2006-11-02  Bruno Haible  <bruno@clisp.org>
65561
65562         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
65563         newline sequence in the Makefile.am snippet as a space, like "make"
65564         does.
65565         Reported by Roger Persson <perrog@gmail.com>.
65566
65567 2006-11-01  Bruno Haible  <bruno@clisp.org>
65568
65569         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
65570         already declared in <string.h>.
65571         * lib/strcase.h (strncasecmp): Don't declare it if yes.
65572
65573 2006-11-01  Bruno Haible  <bruno@clisp.org>
65574
65575         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
65576         * lib/strcase.h: Include <string.h>.
65577         (strcasecmp): Define to rpl_strcasecmp here.
65578
65579 2006-11-01  Bruno Haible  <bruno@clisp.org>
65580
65581         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
65582
65583 2006-11-01  Eric Blake  <ebb9@byu.net>
65584
65585         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
65586
65587         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
65588
65589 2006-10-29  Bruno Haible  <bruno@clisp.org>
65590
65591         Make it compile in C++ mode.
65592         * lib/full-write.c (full_rw): Add a cast.
65593
65594 2006-11-01  Bruno Haible  <bruno@clisp.org>
65595
65596         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
65597         be POSIX compliant.
65598         Reported by Roger Persson <perrog@gmail.com>.
65599
65600 2006-11-01  Eric Blake  <ebb9@byu.net>
65601
65602         * lib/getopt_.h: Fix comments.
65603
65604 2006-10-31  Eric Blake  <ebb9@byu.net>
65605
65606         * modules/tmpdir (Depends-on): Add sys_stat.
65607         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
65608         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
65609         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
65610         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
65611         tempname.
65612
65613 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
65614
65615         Avoid some C++ diagnostics reported by Bruno Haible.
65616         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
65617         xmalloc.
65618         (quotearg_alloc): Use xcharalloc rather than xmalloc.
65619         (struct slotvec): Move to top level.
65620         (quotearg_n_options): Rewrite to avoid xmalloc.
65621         * lib/xalloc.h (xcharalloc): New function.
65622         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
65623         [defined __cplusplus]: Add function template that provides result
65624         type propagation.  This part of the change is from Bruno Haible.
65625
65626 2006-10-29  Bruno Haible  <bruno@clisp.org>
65627
65628         Make it compile in C++ mode.
65629         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
65630         * lib/strnlen1.c (strnlen1): Cast memchr result.
65631         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
65632         * lib/clean-temp.c (string_equals, string_hash): Add casts.
65633         (create_temp_dir): Rename local variable 'template'.
65634         (compile_csharp_using_sscli): Add cast.
65635         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
65636         * lib/findprog.c (find_in_path): Likewise.
65637         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
65638         * lib/wait-process.c (register_slave_subprocess): Likewise.
65639
65640 2006-10-22  Bruno Haible  <bruno@clisp.org>
65641
65642         * modules/tsearch: New file.
65643         * lib/tsearch.h: New file.
65644         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
65645         * m4/tsearch.m4: New file.
65646         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
65647
65648 2006-10-29  Eric Blake  <ebb9@byu.net>
65649
65650         * lib/arcfour.c: Assume config.h.
65651         * lib/arctwo.c: Likewise.
65652         * lib/base64.c: Likewise.
65653         * lib/check-version.c: Likewise.
65654         * lib/crc.c: Likewise.
65655         * lib/des.c: Likewise.
65656         * lib/gc-gnulib.c: Likewise.
65657         * lib/gc-libgcrypt.c: Likewise.
65658         * lib/gc-pbkdf2-sha1.c: Likewise.
65659         * lib/getaddrinfo.c: Likewise.
65660         * lib/getdelim.c: Likewise.
65661         * lib/getline.c: Likewise.
65662         * lib/hmac-md5.c: Likewise.
65663         * lib/hmac-sha1.c: Likewise.
65664         * lib/iconvme.c: Likewise.
65665         * lib/md2.c: Likewise.
65666         * lib/md4.c: Likewise.
65667         * lib/memxor.c: Likewise.
65668         * lib/read-file.c: Likewise.
65669         * lib/readline.c: Likewise.
65670         * lib/rijndael-alg-fst.c: Likewise.
65671         * lib/rijndael-api-fst.c: Likewise.
65672         * lib/xgetdomainname.c: Likewise.
65673
65674 2006-10-28  Eric Blake  <ebb9@byu.net>
65675
65676         * lib/xstrndup.c: Assume config.h.
65677
65678 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65679
65680         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
65681         stat-macros.h is now for our own macros, whereas stat_h is for
65682         macros in the <sys/stat.h> name space.
65683         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
65684         (STAT_MACROS_H): Remove.
65685         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
65686         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
65687         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
65688         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
65689         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
65690         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
65691         Move these macros to ...
65692         * lib/stat_.h: here.  Don't include stat-macros.h.
65693         * lib/canonicalize.c: Don't include stat-macros.h.
65694         * lib/chown.c: Likewise.
65695         * lib/euidaccess.c: Likewise.
65696         * lib/file-type.c: Likewise.
65697         * lib/filemode.c: Likewise.
65698         * lib/glob.c: Likewise.
65699         * lib/isapipe.c: Likewise.
65700         * lib/lchown.c: Likewise.
65701         * lib/lstat.c: Likewise.
65702         * lib/mkdir-p.c: Likewise.
65703         * lib/rmdir.c: Likewise.
65704         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
65705         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
65706         unless mkdir isn't declared, to speed up 'configure'.
65707         Always create sys/stat.h, since it's unlikely any real sys/stat.h
65708         would define all the S_* symbols.
65709         * modules/canonicalize (Depends-on):
65710         Depend on sys_stat, not stat-macros.
65711         * modules/chown: Likewise.
65712         * modules/euidaccess: Likewise.
65713         * modules/filemode: Likewise.
65714         * modules/file-type: Likewise.
65715         * modules/glob: Likewise.
65716         * modules/isapipe: Likewise.
65717         * modules/lchown: Likewise.
65718         * modules/lstat: Likewise.
65719         * modules/mkancesdirs: Likewise.
65720         * modules/rmdir: Likewise.
65721         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
65722         * modules/modechange: Likewise.
65723         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
65724         (configure.ac): Remove gl_STAT_MACROS.
65725         * modules/sys_stat (Depends-on): Remove stat-macros.
65726
65727 2006-10-27  Bruno Haible  <bruno@clisp.org>
65728
65729         * m4/signed.m4: Remove file.
65730         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
65731         invocation.
65732         * modules/vasnprintf (Files): Remove m4/signed.m4.
65733
65734 2006-10-27  Bruno Haible  <bruno@clisp.org>
65735
65736         Update to GNU gettext 0.16.
65737         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
65738         m4/inttypes-h.m4, m4/signed.m4.
65739         * m4/gettext.m4: Update to GNU gettext 0.16.
65740         * m4/intl.m4: New file, from GNU gettext.
65741         * m4/intldir.m4: New file, from GNU gettext.
65742         * config/srclist.txt: Update
65743
65744 2006-10-27  Eric Blake  <ebb9@byu.net>
65745
65746         * MODULES.html.sh: Document tempname.
65747         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
65748         dependencies.
65749         (Files): Move lib/tempname.c...
65750         * modules/tempname: ...to this new module.
65751         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
65752         (gl_PREREQ_TEMPNAME): Move...
65753         * m4/tempname.m4: ...to this new file.
65754         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
65755         * modules/sys_stat (Depends-on): Add stat-macros.
65756         * lib/stat_.h (includes): Pick up stat macros.
65757         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
65758         if stat macros are broken.
65759         * lib/tempname.c (includes): No need to include "stat-macros.h".
65760         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
65761         (direxists, __path_search) [!_LIBC]: Don't compile these in
65762         gnulib; the tmpdir module covers that.
65763         * lib/tempname.h: New file.
65764
65765 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
65766
65767         * COPYING: Explain how gnulib-tool converts licence headers.
65768         Almost all wording by Eric Blake.
65769
65770 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
65771
65772         * lib/mbchar.h (is_basic_table): Make read-only.
65773         * lib/mbchar.c (is_basic_table): Likewise.
65774         Reported by John Darrington.
65775
65776 2006-10-25  Bruno Haible  <bruno@clisp.org>
65777
65778         * lib/progname.h (set_program_name): Undefine before defining.
65779
65780 2006-10-25  Bruno Haible  <bruno@clisp.org>
65781
65782         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
65783         false for non-gcc C++ compilers.
65784         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
65785
65786 2006-10-24  Bruno Haible  <bruno@clisp.org>
65787
65788         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
65789         iconv implementations like Irix iconv.
65790
65791 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65792
65793         * modules/vararrays: New file.
65794         * m4/vararrays.m4: New file, taken from diffutils.
65795         * MODULES.html.sh: New module vararrays.
65796
65797 2006-10-24  Karl Berry  <karl@gnu.org>
65798
65799         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
65800         Don't call GNU Unix.
65801
65802 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65803
65804         * users.txt: Add Libtool.
65805
65806         Sync from Libtool:
65807
65808         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65809
65810         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
65811         to gnulib's policy of including config.h unconditionally.
65812
65813 2006-10-24  Bruno Haible  <bruno@clisp.org>
65814
65815         * modules/wcwidth (Files): Add m4/wint_t.m4.
65816         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
65817         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
65818
65819 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65820
65821         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
65822         to pacify GCC with some -W flags enabled.  Problem reported by
65823         Bruno Haible.
65824
65825 2006-10-24  Jim Meyering  <jim@meyering.net>
65826
65827         * MODULES.html.sh: Remove uinttostr.  It's not a module.
65828         Reported by Karl Berry.
65829
65830 2006-10-23  Bruno Haible  <bruno@clisp.org>
65831
65832         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
65833
65834 2006-10-24  Bruno Haible  <bruno@clisp.org>
65835
65836         * lib/gl_list.h: Use C comment style, not C++ comment style.
65837
65838 2006-10-23  Eric Blake  <ebb9@byu.net>
65839
65840         * lib/getaddrinfo.c (includes): Add missing include.
65841
65842 2006-10-23  Bruno Haible  <bruno@clisp.org>
65843             Paul Eggert  <eggert@cs.ucla.edu>
65844
65845         Ability to rename obstack_free.
65846         * lib/obstack.h (__obstack_free): New macro. Declare instead of
65847         obstack_free.
65848         (obstack_free): Invoke the __obstack_free macro.
65849         * lib/obstack.c (obstack_free): Use __obstack_free macro.
65850
65851 2006-10-23  Bruno Haible  <bruno@clisp.org>
65852             Paul Eggert  <eggert@cs.ucla.edu>
65853
65854         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
65855         __argc, __argv from the declaration. (They are defined as macros on
65856         mingw.)
65857
65858 2006-10-22  Bruno Haible  <bruno@clisp.org>
65859
65860         * doc/gnulib-intro.texi: New file.
65861         * doc/gnulib.texi: Include it.
65862
65863 2006-10-21  Bruno Haible  <bruno@clisp.org>
65864
65865         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
65866         "Introduction", "Miscellanous Notes", "Particular Modules".
65867
65868 2006-10-21  Bruno Haible  <bruno@clisp.org>
65869
65870         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65871         Change mostlyclean-local rule to avoid sh syntax error from bash
65872         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
65873
65874 2006-10-23  Jim Meyering  <jim@meyering.net>
65875
65876         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
65877         in place of snprintf.
65878
65879         * modules/inttostr (Files): Add lib/uinttostr.c.
65880         * lib/uinttostr.c (inttostr): New file/function.
65881         * lib/inttostr.h (uinttostr): Declare.
65882         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
65883         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65884         Add uinttostr.
65885         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
65886
65887 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65888
65889         * lib/canonicalize.c (ELOOP): Define if not already defined.
65890         Problem reported by Bruno Haible in
65891         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
65892
65893 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65894
65895         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
65896         Problem reported by Perry Smith and Ville Laurikari.
65897
65898         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
65899         uses.
65900
65901 2006-10-19  Bruno Haible  <bruno@clisp.org>
65902
65903         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
65904         for mingw.
65905
65906 2006-10-19  Bruno Haible  <bruno@clisp.org>
65907
65908         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
65909         Needed for mingw.
65910
65911 2006-10-19  Bruno Haible  <bruno@clisp.org>
65912
65913         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
65914
65915 2006-10-19  Bruno Haible  <bruno@clisp.org>
65916
65917         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
65918         it.
65919
65920 2006-10-19  Bruno Haible  <bruno@clisp.org>
65921
65922         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
65923         invocation.
65924
65925 2006-10-19  Bruno Haible  <bruno@clisp.org>
65926
65927         * gnulib-tool (func_create_testdir): Don't include ftruncate and
65928         mountlist by default.
65929
65930 2006-10-16  Bruno Haible  <bruno@clisp.org>
65931
65932         * lib/c-strstr.c: Include c-strstr.h.
65933
65934 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65935
65936         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
65937         in a slash.
65938
65939 2006-10-18  Bruno Haible  <bruno@clisp.org>
65940
65941         * lib/lock.h [C++]: Wrap definitions in extern "C".
65942
65943 2006-10-18  Bruno Haible  <bruno@clisp.org>
65944
65945         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
65946         gl_LIBOBJS list.
65947
65948 2006-10-18  Bruno Haible  <bruno@clisp.org>
65949
65950         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
65951
65952 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
65953
65954         * lib/xstrtol.h: Include gettext.h.
65955         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
65956         Problem reported by Eric Blake.
65957         * modules/xstrtol (Depends-on): Add gettext-h.
65958
65959 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
65960
65961         * lib/strftime.c (advance): New macro.
65962         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
65963         incomplete type, so you can't add 0 to it.  Problem and patch
65964         reported by Eelco Dolstra for dietlibc.
65965
65966 2006-10-18  Jim Meyering  <jim@meyering.net>
65967
65968         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
65969         type for a local, and rename it: s/up/user_proc/.
65970
65971 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
65972
65973         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
65974         READ_UTMP_USER_PROCESS.
65975         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
65976
65977 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65978
65979         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
65980         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
65981
65982 2006-10-17  Eric Blake  <ebb9@byu.net>
65983
65984         * lib/sigprocmask.c (sigprocmask): Fix typo.
65985
65986         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
65987
65988         * modules/clean-temp (Makefile.am): Don't add to make output...
65989         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
65990         config.h.
65991
65992 2006-10-17  Bruno Haible  <bruno@clisp.org>
65993
65994         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
65995         differently if DEFAULT_TEXT_DOMAIN is set.
65996
65997 2006-10-16  Bruno Haible  <bruno@clisp.org>
65998
65999         * lib/clean-temp.c: Include fwriteerror.h.
66000
66001 2006-10-16  Bruno Haible  <bruno@clisp.org>
66002
66003         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66004
66005 2006-10-16  Bruno Haible  <bruno@clisp.org>
66006
66007         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66008         * lib/sigprocmask.h: Include <sys/types.h>.
66009         (sigset_t): Use the system's definition if present.
66010
66011 2006-10-17  Eric Blake  <ebb9@byu.net>
66012
66013         * lib/xvasprintf.c (includes): Assume config.h.
66014         * lib/xasprintf.c (includes): Likewise.
66015
66016 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66017
66018         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66019         at least as wide as intmax_t.
66020
66021 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66022
66023         (Imported from Automake.)
66024         * build-aux/gnupload: Update to version 1.1 of directive file.
66025
66026 2006-10-16  Eric Blake  <ebb9@byu.net>
66027
66028         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66029         match Automake 1.10a.
66030
66031 2006-10-14  Bruno Haible  <bruno@clisp.org>
66032
66033         * modules/sigprocmask: New file.
66034         * lib/sigprocmask.h: New file.
66035         * lib/sigprocmask.c: New file.
66036         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66037         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66038         request sigprocmask.o.
66039         (gl_PREREQ_SIGPROCMASK): New macro.
66040         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66041         (Depends-on): Add sigprocmask.
66042         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66043         gt_SIGNALBLOCKING. Test for 'raise' only once.
66044         * lib/fatal-signal.c: Include sigprocmask.h.
66045         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66046         unblock_fatal_signals): Define always.
66047         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66048         sigprocmask.
66049
66050 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66051
66052         Sync from Automake.
66053         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66054         which incorrectly sets the mode of an existing destination
66055         directory.  In some cases the unpatched install-sh could do the
66056         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66057         system.  We hope this is rare in practice, but it's clearly worth
66058         fixing.  Problem reported by Alex Unleashed in
66059         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66060         Also, don't bother to check for -m bugs unless we're using -m;
66061         suggested by Stepan Kasal.
66062
66063 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66064
66065         Sync from Automake.
66066         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66067         `-c' flag, so they appear at the same position as in %FASTDEP%
66068         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66069         which ignores unknown options only after the first non-option.
66070         Bug report against M4 by Nelson H. F. Beebe.
66071
66072 2006-10-13  Jim Meyering  <jim@meyering.net>
66073
66074         Fix a bug in yesterday's change.
66075         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66076         p->fts_statp->st_dev would be used uninitialized.
66077         Ensures that we always call fts_stat on the very first entry.
66078         Miklos Szeredi reported that find -xdev stopped working.
66079
66080 2006-10-12  Bruno Haible  <bruno@clisp.org>
66081
66082         * gnulib-tool (func_get_automake_snippet): Append an automatically
66083         computed EXTRA_DIST augmentation.
66084         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66085         * modules/alloca-opt (Makefile.am): Likewise.
66086         * modules/allocsa (Makefile.am): Likewise.
66087         * modules/arcfour (Makefile.am): Likewise.
66088         * modules/arctwo (Makefile.am): Likewise.
66089         * modules/argmatch (Makefile.am): Likewise.
66090         * modules/argz (Makefile.am): Likewise.
66091         * modules/atexit (Makefile.am): Likewise.
66092         * modules/backupfile (Makefile.am): Likewise.
66093         * modules/byteswap (Makefile.am): Likewise.
66094         * modules/c-strtod (Makefile.am): Likewise.
66095         * modules/c-strtold (Makefile.am): Likewise.
66096         * modules/calloc (Makefile.am): Likewise.
66097         * modules/canon-host (Makefile.am): Likewise.
66098         * modules/canonicalize (Makefile.am): Likewise.
66099         * modules/chdir-long (Makefile.am): Likewise.
66100         * modules/chdir-safer (Makefile.am): Likewise.
66101         * modules/check-version (Makefile.am): Likewise.
66102         * modules/chown (Makefile.am): Likewise.
66103         * modules/cloexec (Makefile.am): Likewise.
66104         * modules/close-stream (Makefile.am): Likewise.
66105         * modules/closeout (Makefile.am): Likewise.
66106         * modules/crc (Makefile.am): Likewise.
66107         * modules/csharpexec (Makefile.am): Likewise.
66108         * modules/cycle-check (Makefile.am): Likewise.
66109         * modules/des (Makefile.am): Likewise.
66110         * modules/dev-ino (Makefile.am): Likewise.
66111         * modules/dirfd (Makefile.am): Likewise.
66112         * modules/dirname (Makefile.am): Likewise.
66113         * modules/dup2 (Makefile.am): Likewise.
66114         * modules/eealloc (Makefile.am): Likewise.
66115         * modules/error (Makefile.am): Likewise.
66116         * modules/euidaccess (Makefile.am): Likewise.
66117         * modules/exclude (Makefile.am): Likewise.
66118         * modules/exitfail (Makefile.am): Likewise.
66119         * modules/fcntl-safer (Makefile.am): Likewise.
66120         * modules/fcntl (Makefile.am): Likewise.
66121         * modules/file-type (Makefile.am): Likewise.
66122         * modules/fileblocks (Makefile.am): Likewise.
66123         * modules/filemode (Makefile.am): Likewise.
66124         * modules/filenamecat (Makefile.am): Likewise.
66125         * modules/fnmatch (Makefile.am): Likewise.
66126         * modules/fopen-safer (Makefile.am): Likewise.
66127         * modules/fpending (Makefile.am): Likewise.
66128         * modules/fprintftime (Makefile.am): Likewise.
66129         * modules/free (Makefile.am): Likewise.
66130         * modules/fsusage (Makefile.am): Likewise.
66131         * modules/ftruncate (Makefile.am): Likewise.
66132         * modules/fts (Makefile.am): Likewise.
66133         * modules/gc-arcfour (Makefile.am): Likewise.
66134         * modules/gc-des (Makefile.am): Likewise.
66135         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66136         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66137         * modules/gc-md4 (Makefile.am): Likewise.
66138         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66139         * modules/gc-sha1 (Makefile.am): Likewise.
66140         * modules/gc (Makefile.am): Likewise.
66141         * modules/getaddrinfo (Makefile.am): Likewise.
66142         * modules/getcwd (Makefile.am): Likewise.
66143         * modules/getdelim (Makefile.am): Likewise.
66144         * modules/getdomainname (Makefile.am): Likewise.
66145         * modules/getgroups (Makefile.am): Likewise.
66146         * modules/gethostname (Makefile.am): Likewise.
66147         * modules/gethrxtime (Makefile.am): Likewise.
66148         * modules/getline (Makefile.am): Likewise.
66149         * modules/getloadavg (Makefile.am): Likewise.
66150         * modules/getlogin_r (Makefile.am): Likewise.
66151         * modules/getndelim2 (Makefile.am): Likewise.
66152         * modules/getopt (Makefile.am): Likewise.
66153         * modules/getpagesize (Makefile.am): Likewise.
66154         * modules/getpass-gnu (Makefile.am): Likewise.
66155         * modules/getpass (Makefile.am): Likewise.
66156         * modules/getsubopt (Makefile.am): Likewise.
66157         * modules/gettime (Makefile.am): Likewise.
66158         * modules/gettimeofday (Makefile.am): Likewise.
66159         * modules/getugroups (Makefile.am): Likewise.
66160         * modules/getusershell (Makefile.am): Likewise.
66161         * modules/glob (Makefile.am): Likewise.
66162         * modules/group-member (Makefile.am): Likewise.
66163         * modules/hard-locale (Makefile.am): Likewise.
66164         * modules/hash (Makefile.am): Likewise.
66165         * modules/hmac-md5 (Makefile.am): Likewise.
66166         * modules/hmac-sha1 (Makefile.am): Likewise.
66167         * modules/human (Makefile.am): Likewise.
66168         * modules/idcache (Makefile.am): Likewise.
66169         * modules/imaxabs (Makefile.am): Likewise.
66170         * modules/imaxdiv (Makefile.am): Likewise.
66171         * modules/inet_ntop (Makefile.am): Likewise.
66172         * modules/inet_pton (Makefile.am): Likewise.
66173         * modules/intprops (Makefile.am): Likewise.
66174         * modules/inttostr (Makefile.am): Likewise.
66175         * modules/inttypes (Makefile.am): Likewise.
66176         * modules/isapipe (Makefile.am): Likewise.
66177         * modules/javaversion (Makefile.am): Likewise.
66178         * modules/lchmod (Makefile.am): Likewise.
66179         * modules/lchown (Makefile.am): Likewise.
66180         * modules/localcharset (Makefile.am): Likewise.
66181         * modules/long-options (Makefile.am): Likewise.
66182         * modules/lstat (Makefile.am): Likewise.
66183         * modules/malloc (Makefile.am): Likewise.
66184         * modules/mathl (Makefile.am): Likewise.
66185         * modules/mbchar (Makefile.am): Likewise.
66186         * modules/md2 (Makefile.am): Likewise.
66187         * modules/md4 (Makefile.am): Likewise.
66188         * modules/md5 (Makefile.am): Likewise.
66189         * modules/memcasecmp (Makefile.am): Likewise.
66190         * modules/memchr (Makefile.am): Likewise.
66191         * modules/memcmp (Makefile.am): Likewise.
66192         * modules/memcoll (Makefile.am): Likewise.
66193         * modules/memcpy (Makefile.am): Likewise.
66194         * modules/memmem (Makefile.am): Likewise.
66195         * modules/memmove (Makefile.am): Likewise.
66196         * modules/mempcpy (Makefile.am): Likewise.
66197         * modules/memrchr (Makefile.am): Likewise.
66198         * modules/memset (Makefile.am): Likewise.
66199         * modules/memxor (Makefile.am): Likewise.
66200         * modules/mkancesdirs (Makefile.am): Likewise.
66201         * modules/mkdir-p (Makefile.am): Likewise.
66202         * modules/mkdir (Makefile.am): Likewise.
66203         * modules/mkdtemp (Makefile.am): Likewise.
66204         * modules/mkstemp (Makefile.am): Likewise.
66205         * modules/mktime (Makefile.am): Likewise.
66206         * modules/modechange (Makefile.am): Likewise.
66207         * modules/mountlist (Makefile.am): Likewise.
66208         * modules/nanosleep (Makefile.am): Likewise.
66209         * modules/obstack (Makefile.am): Likewise.
66210         * modules/openat (Makefile.am): Likewise.
66211         * modules/pagealign_alloc (Makefile.am): Likewise.
66212         * modules/pathmax (Makefile.am): Likewise.
66213         * modules/physmem (Makefile.am): Likewise.
66214         * modules/poll (Makefile.am): Likewise.
66215         * modules/posixtm (Makefile.am): Likewise.
66216         * modules/posixver (Makefile.am): Likewise.
66217         * modules/putenv (Makefile.am): Likewise.
66218         * modules/quote (Makefile.am): Likewise.
66219         * modules/quotearg (Makefile.am): Likewise.
66220         * modules/raise (Makefile.am): Likewise.
66221         * modules/read-file (Makefile.am): Likewise.
66222         * modules/readline (Makefile.am): Likewise.
66223         * modules/readlink (Makefile.am): Likewise.
66224         * modules/readtokens (Makefile.am): Likewise.
66225         * modules/readutmp (Makefile.am): Likewise.
66226         * modules/realloc (Makefile.am): Likewise.
66227         * modules/regex (Makefile.am): Likewise.
66228         * modules/rename-dest-slash (Makefile.am): Likewise.
66229         * modules/rename (Makefile.am): Likewise.
66230         * modules/rijndael (Makefile.am): Likewise.
66231         * modules/rmdir (Makefile.am): Likewise.
66232         * modules/rpmatch (Makefile.am): Likewise.
66233         * modules/safe-read (Makefile.am): Likewise.
66234         * modules/safe-write (Makefile.am): Likewise.
66235         * modules/same-inode (Makefile.am): Likewise.
66236         * modules/same (Makefile.am): Likewise.
66237         * modules/save-cwd (Makefile.am): Likewise.
66238         * modules/savedir (Makefile.am): Likewise.
66239         * modules/setenv (Makefile.am): Likewise.
66240         * modules/settime (Makefile.am): Likewise.
66241         * modules/sha1 (Makefile.am): Likewise.
66242         * modules/sig2str (Makefile.am): Likewise.
66243         * modules/snprintf (Makefile.am): Likewise.
66244         * modules/stat-macros (Makefile.am): Likewise.
66245         * modules/stat-time (Makefile.am): Likewise.
66246         * modules/stdbool (Makefile.am): Likewise.
66247         * modules/stdint (Makefile.am): Likewise.
66248         * modules/stdlib-safer (Makefile.am): Likewise.
66249         * modules/stpcpy (Makefile.am): Likewise.
66250         * modules/stpncpy (Makefile.am): Likewise.
66251         * modules/strcase (Makefile.am): Likewise.
66252         * modules/strcasestr (Makefile.am): Likewise.
66253         * modules/strchrnul (Makefile.am): Likewise.
66254         * modules/strcspn (Makefile.am): Likewise.
66255         * modules/strdup (Makefile.am): Likewise.
66256         * modules/strerror (Makefile.am): Likewise.
66257         * modules/strftime (Makefile.am): Likewise.
66258         * modules/strndup (Makefile.am): Likewise.
66259         * modules/strnlen (Makefile.am): Likewise.
66260         * modules/strpbrk (Makefile.am): Likewise.
66261         * modules/strsep (Makefile.am): Likewise.
66262         * modules/strstr (Makefile.am): Likewise.
66263         * modules/strtod (Makefile.am): Likewise.
66264         * modules/strtoimax (Makefile.am): Likewise.
66265         * modules/strtok_r (Makefile.am): Likewise.
66266         * modules/strtol (Makefile.am): Likewise.
66267         * modules/strtoll (Makefile.am): Likewise.
66268         * modules/strtoul (Makefile.am): Likewise.
66269         * modules/strtoull (Makefile.am): Likewise.
66270         * modules/strtoumax (Makefile.am): Likewise.
66271         * modules/strverscmp (Makefile.am): Likewise.
66272         * modules/sys_socket (Makefile.am): Likewise.
66273         * modules/sys_stat (Makefile.am): Likewise.
66274         * modules/sysexits (Makefile.am): Likewise.
66275         * modules/time_r (Makefile.am): Likewise.
66276         * modules/timegm (Makefile.am): Likewise.
66277         * modules/timespec (Makefile.am): Likewise.
66278         * modules/tmpfile-safer (Makefile.am): Likewise.
66279         * modules/trim (Makefile.am): Likewise.
66280         * modules/unistd-safer (Makefile.am): Likewise.
66281         * modules/unlinkdir (Makefile.am): Likewise.
66282         * modules/unlocked-io (Makefile.am): Likewise.
66283         * modules/userspec (Makefile.am): Likewise.
66284         * modules/utime (Makefile.am): Likewise.
66285         * modules/utimecmp (Makefile.am): Likewise.
66286         * modules/utimens (Makefile.am): Likewise.
66287         * modules/vasnprintf (Makefile.am): Likewise.
66288         * modules/vasprintf (Makefile.am): Likewise.
66289         * modules/vsnprintf (Makefile.am): Likewise.
66290         * modules/xalloc (Makefile.am): Likewise.
66291         * modules/xgetcwd (Makefile.am): Likewise.
66292         * modules/xnanosleep (Makefile.am): Likewise.
66293         * modules/xreadlink (Makefile.am): Likewise.
66294         * modules/xstrtod (Makefile.am): Likewise.
66295         * modules/xstrtol (Makefile.am): Likewise.
66296         * modules/xstrtold (Makefile.am): Likewise.
66297         * modules/yesno (Makefile.am): Likewise.
66298         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
66299
66300 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66301
66302         * modules/error (Makefile.am): Distribute files through
66303         EXTRA_DIST, not lib_SOURCES.
66304
66305 2006-10-12  Eric Blake  <ebb9@byu.net>
66306
66307         * modules/error (Makefile.am): Distribute files in /lib.
66308         * modules/obstack (Makefile.am): Likewise.
66309
66310 2006-10-12  Bruno Haible  <bruno@clisp.org>
66311
66312         * modules/acl (Makefile.am): Distribute all files in lib/ through
66313         EXTRA_DIST.
66314         * modules/arcfour (Makefile.am): Likewise.
66315         * modules/arctwo (Makefile.am): Likewise.
66316         * modules/argmatch (Makefile.am): Likewise.
66317         * modules/argz (Makefile.am): Likewise.
66318         * modules/atexit (Makefile.am): Likewise.
66319         * modules/backupfile (Makefile.am): Likewise.
66320         * modules/c-strtod (Makefile.am): Likewise.
66321         * modules/c-strtold (Makefile.am): Likewise.
66322         * modules/calloc (Makefile.am): Likewise.
66323         * modules/canon-host (Makefile.am): Likewise.
66324         * modules/canonicalize (Makefile.am): Likewise.
66325         * modules/chdir-long (Makefile.am): Likewise.
66326         * modules/chdir-safer (Makefile.am): Likewise.
66327         * modules/check-version (Makefile.am): Likewise.
66328         * modules/chown (Makefile.am): Likewise.
66329         * modules/cloexec (Makefile.am): Likewise.
66330         * modules/close-stream (Makefile.am): Likewise.
66331         * modules/closeout (Makefile.am): Likewise.
66332         * modules/crc (Makefile.am): Likewise.
66333         * modules/cycle-check (Makefile.am): Likewise.
66334         * modules/des (Makefile.am): Likewise.
66335         * modules/dirfd (Makefile.am): Likewise.
66336         * modules/dirname (Makefile.am): Likewise.
66337         * modules/dup2 (Makefile.am): Likewise.
66338         * modules/euidaccess (Makefile.am): Likewise.
66339         * modules/exclude (Makefile.am): Likewise.
66340         * modules/exitfail (Makefile.am): Likewise.
66341         * modules/fcntl-safer (Makefile.am): Likewise.
66342         * modules/file-type (Makefile.am): Likewise.
66343         * modules/fileblocks (Makefile.am): Likewise.
66344         * modules/filemode (Makefile.am): Likewise.
66345         * modules/filenamecat (Makefile.am): Likewise.
66346         * modules/fnmatch (Makefile.am): Likewise.
66347         * modules/fopen-safer (Makefile.am): Likewise.
66348         * modules/fpending (Makefile.am): Likewise.
66349         * modules/fprintftime (Makefile.am): Likewise.
66350         * modules/free (Makefile.am): Likewise.
66351         * modules/fsusage (Makefile.am): Likewise.
66352         * modules/ftruncate (Makefile.am): Likewise.
66353         * modules/fts (Makefile.am): Likewise.
66354         * modules/gc (Makefile.am): Likewise.
66355         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66356         * modules/getaddrinfo (Makefile.am): Likewise.
66357         * modules/getcwd (Makefile.am): Likewise.
66358         * modules/getdelim (Makefile.am): Likewise.
66359         * modules/getdomainname (Makefile.am): Likewise.
66360         * modules/getgroups (Makefile.am): Likewise.
66361         * modules/gethostname (Makefile.am): Likewise.
66362         * modules/gethrxtime (Makefile.am): Likewise.
66363         * modules/getline (Makefile.am): Likewise.
66364         * modules/getloadavg (Makefile.am): Likewise.
66365         * modules/getlogin_r (Makefile.am): Likewise.
66366         * modules/getopt (Makefile.am): Likewise.
66367         * modules/getpass (Makefile.am): Likewise.
66368         * modules/getpass-gnu (Makefile.am): Likewise.
66369         * modules/getsubopt (Makefile.am): Likewise.
66370         * modules/gettime (Makefile.am): Likewise.
66371         * modules/gettimeofday (Makefile.am): Likewise.
66372         * modules/getugroups (Makefile.am): Likewise.
66373         * modules/getusershell (Makefile.am): Likewise.
66374         * modules/glob (Makefile.am): Likewise.
66375         * modules/group-member (Makefile.am): Likewise.
66376         * modules/hard-locale (Makefile.am): Likewise.
66377         * modules/hash (Makefile.am): Likewise.
66378         * modules/hmac-md5 (Makefile.am): Likewise.
66379         * modules/hmac-sha1 (Makefile.am): Likewise.
66380         * modules/human (Makefile.am): Likewise.
66381         * modules/idcache (Makefile.am): Likewise.
66382         * modules/imaxabs (Makefile.am): Likewise.
66383         * modules/imaxdiv (Makefile.am): Likewise.
66384         * modules/inet_ntop (Makefile.am): Likewise.
66385         * modules/inet_pton (Makefile.am): Likewise.
66386         * modules/inttostr (Makefile.am): Likewise.
66387         * modules/isapipe (Makefile.am): Likewise.
66388         * modules/lchown (Makefile.am): Likewise.
66389         * modules/long-options (Makefile.am): Likewise.
66390         * modules/lstat (Makefile.am): Likewise.
66391         * modules/malloc (Makefile.am): Likewise.
66392         * modules/mathl (Makefile.am): Likewise.
66393         * modules/mbchar (Makefile.am): Likewise.
66394         * modules/md2 (Makefile.am): Likewise.
66395         * modules/md4 (Makefile.am): Likewise.
66396         * modules/md5 (Makefile.am): Likewise.
66397         * modules/memcasecmp (Makefile.am): Likewise.
66398         * modules/memchr (Makefile.am): Likewise.
66399         * modules/memcmp (Makefile.am): Likewise.
66400         * modules/memcoll (Makefile.am): Likewise.
66401         * modules/memcpy (Makefile.am): Likewise.
66402         * modules/memmem (Makefile.am): Likewise.
66403         * modules/memmove (Makefile.am): Likewise.
66404         * modules/mempcpy (Makefile.am): Likewise.
66405         * modules/memrchr (Makefile.am): Likewise.
66406         * modules/memset (Makefile.am): Likewise.
66407         * modules/memxor (Makefile.am): Likewise.
66408         * modules/mkancesdirs (Makefile.am): Likewise.
66409         * modules/mkdir (Makefile.am): Likewise.
66410         * modules/mkdir-p (Makefile.am): Likewise.
66411         * modules/mkdtemp (Makefile.am): Likewise.
66412         * modules/mkstemp (Makefile.am): Likewise.
66413         * modules/mktime (Makefile.am): Likewise.
66414         * modules/modechange (Makefile.am): Likewise.
66415         * modules/mountlist (Makefile.am): Likewise.
66416         * modules/nanosleep (Makefile.am): Likewise.
66417         * modules/openat (Makefile.am): Likewise.
66418         * modules/pagealign_alloc (Makefile.am): Likewise.
66419         * modules/physmem (Makefile.am): Likewise.
66420         * modules/poll (Makefile.am): Likewise.
66421         * modules/posixtm (Makefile.am): Likewise.
66422         * modules/posixver (Makefile.am): Likewise.
66423         * modules/putenv (Makefile.am): Likewise.
66424         * modules/quote (Makefile.am): Likewise.
66425         * modules/quotearg (Makefile.am): Likewise.
66426         * modules/raise (Makefile.am): Likewise.
66427         * modules/read-file (Makefile.am): Likewise.
66428         * modules/readline (Makefile.am): Likewise.
66429         * modules/readlink (Makefile.am): Likewise.
66430         * modules/readtokens (Makefile.am): Likewise.
66431         * modules/readutmp (Makefile.am): Likewise.
66432         * modules/realloc (Makefile.am): Likewise.
66433         * modules/regex (Makefile.am): Likewise.
66434         * modules/rename (Makefile.am): Likewise.
66435         * modules/rename-dest-slash (Makefile.am): Likewise.
66436         * modules/rijndael (Makefile.am): Likewise.
66437         * modules/rmdir (Makefile.am): Likewise.
66438         * modules/rpmatch (Makefile.am): Likewise.
66439         * modules/safe-read (Makefile.am): Likewise.
66440         * modules/safe-write (Makefile.am): Likewise.
66441         * modules/same (Makefile.am): Likewise.
66442         * modules/save-cwd (Makefile.am): Likewise.
66443         * modules/savedir (Makefile.am): Likewise.
66444         * modules/setenv (Makefile.am): Likewise.
66445         * modules/settime (Makefile.am): Likewise.
66446         * modules/sha1 (Makefile.am): Likewise.
66447         * modules/sig2str (Makefile.am): Likewise.
66448         * modules/snprintf (Makefile.am): Likewise.
66449         * modules/stdlib-safer (Makefile.am): Likewise.
66450         * modules/stpcpy (Makefile.am): Likewise.
66451         * modules/stpncpy (Makefile.am): Likewise.
66452         * modules/strcase (Makefile.am): Likewise.
66453         * modules/strcasestr (Makefile.am): Likewise.
66454         * modules/strchrnul (Makefile.am): Likewise.
66455         * modules/strcspn (Makefile.am): Likewise.
66456         * modules/strdup (Makefile.am): Likewise.
66457         * modules/strerror (Makefile.am): Likewise.
66458         * modules/strftime (Makefile.am): Likewise.
66459         * modules/strndup (Makefile.am): Likewise.
66460         * modules/strnlen (Makefile.am): Likewise.
66461         * modules/strpbrk (Makefile.am): Likewise.
66462         * modules/strsep (Makefile.am): Likewise.
66463         * modules/strstr (Makefile.am): Likewise.
66464         * modules/strtod (Makefile.am): Likewise.
66465         * modules/strtoimax (Makefile.am): Likewise.
66466         * modules/strtok_r (Makefile.am): Likewise.
66467         * modules/strtol (Makefile.am): Likewise.
66468         * modules/strtoll (Makefile.am): Likewise.
66469         * modules/strtoul (Makefile.am): Likewise.
66470         * modules/strtoull (Makefile.am): Likewise.
66471         * modules/strtoumax (Makefile.am): Likewise.
66472         * modules/strverscmp (Makefile.am): Likewise.
66473         * modules/time_r (Makefile.am): Likewise.
66474         * modules/timegm (Makefile.am): Likewise.
66475         * modules/tmpfile-safer (Makefile.am): Likewise.
66476         * modules/unistd-safer (Makefile.am): Likewise.
66477         * modules/unlinkdir (Makefile.am): Likewise.
66478         * modules/userspec (Makefile.am): Likewise.
66479         * modules/utime (Makefile.am): Likewise.
66480         * modules/utimecmp (Makefile.am): Likewise.
66481         * modules/utimens (Makefile.am): Likewise.
66482         * modules/vasnprintf (Makefile.am): Likewise.
66483         * modules/vasprintf (Makefile.am): Likewise.
66484         * modules/vsnprintf (Makefile.am): Likewise.
66485         * modules/xalloc (Makefile.am): Likewise.
66486         * modules/xgetcwd (Makefile.am): Likewise.
66487         * modules/xnanosleep (Makefile.am): Likewise.
66488         * modules/xreadlink (Makefile.am): Likewise.
66489         * modules/xstrtod (Makefile.am): Likewise.
66490         * modules/xstrtol (Makefile.am): Likewise.
66491         * modules/xstrtold (Makefile.am): Likewise.
66492         * modules/yesno (Makefile.am): Likewise.
66493
66494 2006-10-12  Jim Meyering  <jim@meyering.net>
66495
66496         * m4/getloadavg.m4: Revert the change below.
66497
66498         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
66499         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
66500         fail with a symlink, which is what coreutils' ./bootstrap now
66501         creates by default.
66502
66503 2006-10-12  Bruno Haible  <bruno@clisp.org>
66504
66505         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
66506         mingw.
66507         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
66508         MSVC and mingw explicitly.
66509
66510 2006-10-11  Simon Josefsson  <jas@extundo.com>
66511             Bruno Haible  <bruno@clisp.org>
66512
66513         Add support for multiple gnulib-tool invocations in the scope of a
66514         single configure.ac file.
66515         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
66516         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
66517         with the same contents as the _LIBADD variable.
66518         (func_emit_initmacro_start, func_emit_initmacro_end,
66519         func_emit_initmacro_done): New functions.
66520         (func_import, func_create_testdir): Invoke them. Allow the identifiers
66521         gl_LIBOBJS and gl_LTLIBOBJS.
66522
66523 2006-10-11  Bruno Haible  <bruno@clisp.org>
66524
66525         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
66526         (func_create_testdir): Don't create po/Makefile.am, don't invoke
66527         autoreconf. Instead, invoke autopoint explicitly but move back the
66528         *.m4 files from gnulib.
66529
66530 2006-10-11  Bruno Haible  <bruno@clisp.org>
66531
66532         * gnulib-tool (func_usage): Make module names after --create-testdir
66533         optional.
66534         (func_create_testdir): If no module was specified, use nearly all
66535         modules.
66536
66537 2006-10-12  Jim Meyering  <jim@meyering.net>
66538
66539         Big performance improvement for fts-based tools that use FTS_NOSTAT.
66540         Avoid spurious inode-mismatch problems on non-POSIX file systems.
66541         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
66542         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
66543         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
66544         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
66545         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
66546         (fts_set_stat_required): New function.
66547         (fts_open): Defer the calls to fts_stat, if possible or requested.
66548         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
66549         into fts_stat itself.
66550         (fts_read): Perform any required (deferred) fts_stat call.
66551         (fts_build): Likewise, for the directory we're about to open and read.
66552         In the readdir loop, carefully decide whether each entry will require
66553         an eventual call to fts_stat, using dirent.d_type info if available.
66554         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
66555         a command line argument into this function.  Update all callers.
66556         Map a return value of FTS_DOT to FTS_D for a command line argument.
66557         * modules/fts (Depends-on): Add d-type.  Alphabetize.
66558         Thanks to Miklos Szeredi for his tenacity and for the initial
66559         bug report about "find" failing on a FUSE-based file system.
66560
66561         * lib/fts.c (fts_open): Use consistent indentation.
66562
66563 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66564
66565         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
66566         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
66567         reported by Jim Meyering.  All uses of cache variables renamed
66568         to match Autoconf's.
66569         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
66570         the other one.
66571
66572         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
66573         Fix misspelling in diagnostic.
66574
66575 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66576
66577         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
66578         defined.  Problem reported by Matthew Woehlke.
66579
66580         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
66581         Add support for Tandem NonStop R series.
66582         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
66583         Use new macro.
66584
66585         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
66586         (has_trailing_slash): Omit size arg; all callers changed.
66587         Omit 'inline', since it doesn't help performance and we'd
66588         need to configure it.
66589         Don't count //, ///, etc. as having a trailing slash.
66590         As a side effect, this removes a C99ism reported by Matthew Woehlke.
66591         (rpl_rename_dest_slash): On failure, use rename's errno rather
66592         than (in some cases) an incorrect or junk errno.
66593         Simplify code by removing need to compute length; this does
66594         cause it to make two passes instead of one over the file name,
66595         but it's worth it.
66596
66597         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
66598         change, since Autoconf's version may no longer be appropriate now
66599         that we are using CVS Autoconf's version.  Add support for Tandem.
66600
66601 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66602             Bruno Haible  <bruno@clisp.org>
66603
66604         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
66605         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
66606         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
66607         gl_AC_TYPE_LONG_LONG.
66608
66609         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
66610         instead of HAVE_LONG_LONG.
66611         * lib/printf-args.c (printf_fetchargs): Likewise.
66612         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
66613         * lib/vasnprintf.c (VASNPRINTF): Likewise.
66614         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
66615         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
66616         gl_AC_TYPE_LONG_LONG.
66617
66618 2006-10-11  Bruno Haible  <bruno@clisp.org>
66619
66620         * m4/longlong.m4: Add comments.
66621         * m4/ulonglong.m4: Likewise.
66622
66623 2006-10-10  Bruno Haible  <bruno@clisp.org>
66624
66625         Make it possible to #define stpcpy, strdup to aliases.
66626         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
66627         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
66628
66629 2006-10-10  Bruno Haible  <bruno@clisp.org>
66630
66631         Make it possible to #define gcd to an alias.
66632         * lib/gcd.c: Include config.h.
66633
66634 2006-10-10  Bruno Haible  <bruno@clisp.org>
66635
66636         Make it possible to #define c_isascii to an alias.
66637         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
66638         defined. Undefine the macros before defining them, to avoid gcc
66639         warnings.
66640         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
66641         define NO_C_CTYPE_MACROS early.
66642
66643 2006-10-10  Bruno Haible  <bruno@clisp.org>
66644
66645         Make it possible to #define set_program_name to an alias.
66646         * lib/progname.c: Don't undefine set_program_name; instead, undefine
66647         ENABLE_RELOCATABLE early.
66648
66649 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66650
66651         Port to Tandem NSK OSS, which has 64-bit signed int but at most
66652         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
66653         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
66654         More generally, don't assume that 64-bit signed int is available
66655         if unsigned int is, and vice versa.
66656         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
66657         unsigned symbols, not on their signed counterparts.
66658         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
66659         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
66660         (UINT64_C, UINTMAX_C):
66661         Likewise.
66662         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
66663         unsigned counterparts.
66664         (Have_long_long, Unsigned): New macros.
66665         (Int): Renamed from INT.
66666         (strtoimax): Use the new macros.
66667         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
66668         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
66669         * modules/inttypes (inttypes.h): Substitute
66670         HAVE_UNSIGNED_LONG_LONG_INT.
66671         * modules/stdint (stdint.h): Likewise.
66672         (Files): Add m4/ulonglong.m4.
66673
66674 2006-10-10  Bruno Haible  <bruno@clisp.org>
66675
66676         Fix a gcc -Wshadow warning.
66677         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
66678         to 'bucket'.
66679         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
66680         gl_linked_indexof_from_to): Likewise.
66681         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
66682         Likewise.
66683         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
66684         Likewise.
66685         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
66686         Reported by Eric Blake.
66687
66688 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
66689
66690         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
66691         for NetBSD.  Problem reported by Bruno Haible.
66692
66693 2006-10-09  Jim Meyering  <jim@meyering.net>
66694
66695         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
66696         Patch from Bruno Haible.
66697
66698 2006-10-09  Jim Meyering  <jim@meyering.net>
66699
66700         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
66701         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
66702         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
66703
66704 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66705
66706         Don't include <config.h> twice; this doesn't work in some cases,
66707         e.g., when config.h has "#define intmax_t long long int" and
66708         we include <config.h>, <inttypes.h>, <config.h> in that order.
66709         Problem reported by Matthew Woehlke in:
66710         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
66711         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
66712         * lib/fts-cycle.c: Don't include config.h.
66713         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
66714         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
66715         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
66716         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
66717         inttypes.h.
66718         * lib/xstrtoumax.c: Likewise.
66719         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
66720         __strtol and the like, so that this module is more like its siblings.
66721         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
66722         Remove; no longer needed now that we assume gnulib inttypes.h.
66723
66724 2006-10-08  Bruno Haible  <bruno@clisp.org>
66725
66726         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
66727         option.
66728
66729 2006-10-07  Jim Meyering  <jim@meyering.net>
66730
66731         * modules/inttypes (inttypes.h): Revert what seems to have been
66732         an inadvertent part of today's change: use "|", not "/" in the
66733         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
66734
66735 2006-10-07  Bruno Haible  <bruno@clisp.org>
66736
66737         * modules/sublist: New file.
66738
66739 2006-10-07  Bruno Haible  <bruno@clisp.org>
66740
66741         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
66742         * modules/argz (argz.h): Likewise.
66743         * modules/arpa_inet (arpa/inet.h): Likewise.
66744         * modules/byteswap (byteswap.h): Likewise.
66745         * modules/configmake (configmake.h): Likewise.
66746         * modules/fcntl (fcntl.h): Likewise.
66747         * modules/fnmatch (fnmatch.h): Likewise.
66748         * modules/getopt (getopt.h): Likewise.
66749         * modules/glob (glob.h): Likewise.
66750         * modules/inttypes (inttypes.h): Likewise.
66751         * modules/netinet_in (netinet/in.h): Likewise.
66752         * modules/poll (poll.h): Likewise.
66753         * modules/stdbool (stdbool.h): Likewise.
66754         * modules/stdint (stdint.h): Likewise.
66755         * modules/sys_select (sys/select.h): Likewise.
66756         * modules/sys_socket (sys/socket.h): Likewise.
66757         * modules/sys_stat (sys/stat.h): Likewise.
66758         * modules/sysexits (sysexits.h): Likewise.
66759         * modules/unistd (unistd.h): Likewise.
66760         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66761         Add a "DO NOT EDIT" comment to the generated file.
66762         (func_import): Likewise for gnulib-comp.m4.
66763
66764 2006-10-07  Bruno Haible  <bruno@clisp.org>
66765
66766         * lib/gl_sublist.h: New file.
66767         * lib/gl_sublist.c: New file.
66768
66769 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66770
66771         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
66772         name (relative to the original working directory) and the file
66773         name component (relative to the temporary working directory).  All
66774         callers changed.
66775         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
66776         * lib/mkdir-p.c (make_dir_parents): Likewise.
66777         * lib/mkdir-p.h (make_dir_parents): Likewise.
66778
66779 2006-10-06  Eric Blake  <ebb9@byu.net>
66780
66781         Define several macros for use by the clean-temp module.
66782         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
66783         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
66784         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
66785
66786         * lib/clean-temp.h (close_stream_temp): New declaration.
66787         * lib/clean-temp.c (includes): Pull in headers according to what
66788         other modules are in use.
66789         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
66790
66791 2006-10-06  Bruno Haible  <bruno@clisp.org>
66792
66793         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
66794         instead of fopen, fwriteerror.
66795
66796 2006-10-06  Bruno Haible  <bruno@clisp.org>
66797
66798         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
66799         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
66800         int.
66801         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
66802         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
66803         Return an error indicator.
66804         Suggested by Eric Blake.
66805
66806 2006-10-06  Bruno Haible  <bruno@clisp.org>
66807
66808         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
66809         Reported by Eric Blake.
66810
66811 2006-10-06  Bruno Haible  <bruno@clisp.org>
66812
66813         * modules/closeout (Description): Mention stderr too.
66814
66815 2006-10-06  Bruno Haible  <bruno@clisp.org>
66816         and Paul Eggert  <eggert@cs.ucla.edu>
66817
66818         * lib/closeout.c (close_stdout): Also close stderr.
66819         * lib/closeout.h: Update comment.
66820
66821 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66822
66823         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
66824         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
66825         * lib/dirchownmod.c: Include lchown.h.
66826         * lib/lchown.c: Don't include files that lchown.h now includes.
66827         Don't declare chown, since lchown.h now does that.
66828         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
66829         (lchown): Define to rpl_chown if lchown is declared but
66830         does not exist.  Declare using a prototype if lchown is not
66831         declared.  Add a copyright notice.
66832         * lib/mkstemp.h: Include <unistd.h>.
66833         * lib/openat.c: Include lchown.h.
66834
66835         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
66836         we now test for that separately.
66837         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
66838         rather than O_NOFOLLOW, when testing whether it's possible to
66839         avoid a race condition reliably.
66840         * lib/savewd.c (savewd_chdir): Likewise.
66841
66842         Remove macros that are no longer needed now that stdint.h is
66843         reliable.
66844         * lib/fsusage.c (UINTMAX_MAX): Remove.
66845         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
66846         * lib/utimecmp.c (SIZE_MAX): Remove.
66847
66848         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
66849
66850         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
66851         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
66852         O_NOATIME works.
66853
66854 2006-10-05  Bruno Haible  <bruno@clisp.org>
66855
66856         * lib/gl_list.h (gl_sortedlist_search_from_to,
66857         gl_sortedlist_indexof_from_to): New declarations.
66858         (gl_list_implementation): New fields sortedlist_search_from_to,
66859         sortedlist_indexof_from_to.
66860         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
66861         inline functions.
66862         * lib/gl_list.c (gl_sortedlist_search_from_to,
66863         gl_sortedlist_indexof_from_to): New functions.
66864         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
66865         function.
66866         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
66867         (gl_array_sortedlist_search_from_to): New function.
66868         (gl_array_list_implementation): Update.
66869         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
66870         function.
66871         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
66872         (gl_carray_sortedlist_search_from_to): New function.
66873         (gl_carray_list_implementation): Update.
66874         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
66875         gl_linked_sortedlist_indexof_from_to): New functions.
66876         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66877         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66878         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
66879         gl_tree_sortedlist_indexof_from_to): New functions.
66880         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66881         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66882         Update.
66883         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66884         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
66885         Update.
66886
66887 2006-10-05  Bruno Haible  <bruno@clisp.org>
66888
66889         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
66890         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
66891         (struct gl_list_implementation): Add fields search_from_to,
66892         indexof_from_to. Remove fields search, indexof.
66893         (gl_list_search): Use the search_from_to method.
66894         (gl_list_search_from, gl_list_search_from_to): New functions.
66895         (gl_list_indexof): Use the indexof_from_to method.
66896         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66897         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
66898         (gl_list_search_from, gl_list_search_from_to): New functions.
66899         (gl_list_indexof): Use the indexof_from_to method.
66900         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66901         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
66902         gl_array_indexof. Add start_index, end_index arguments.
66903         (gl_array_search_from_to): Renamed from gl_array_search. Add
66904         start_index, end_index arguments.
66905         (gl_array_remove, gl_array_list_implementation): Update.
66906         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
66907         gl_carray_indexof. Add start_index, end_index arguments.
66908         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
66909         start_index, end_index arguments.
66910         (gl_carray_remove, gl_carray_list_implementation): Update.
66911         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
66912         gl_linked_search. Add start_index, end_index arguments.
66913         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
66914         start_index, end_index arguments.
66915         (gl_linked_remove): Update.
66916         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66917         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66918         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
66919         field to 'size_t'.
66920         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
66921         gl_tree_search. Add start_index, end_index arguments.
66922         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66923         start_index, end_index arguments.
66924         (gl_tree_remove): Update.
66925         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66926         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66927         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
66928         function.
66929         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
66930         gl_tree_search. Add start_index, end_index arguments.
66931         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66932         start_index, end_index arguments.
66933         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66934         Update.
66935         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
66936
66937 2006-10-05  Bruno Haible  <bruno@clisp.org>
66938
66939         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
66940
66941         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
66942         fwriteerror_temp): New declarations.
66943         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
66944         (descriptors): New variable.
66945         (cleanup): First, close the descriptors.
66946         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
66947         fclose_temp, fwriteerror_temp): New functions.
66948
66949 2006-10-04  Jim Meyering  <jim@meyering.net>
66950
66951         * lib/fts.c (fts_open): Tiny comment change.
66952
66953 2006-10-04  Bruno Haible  <bruno@clisp.org>
66954
66955         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
66956         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
66957         gl_LOCK_BODY.
66958         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
66959         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
66960         gl_LOCK_EARLY_BODY.
66961         (gl_LOCK): Require gl_LOCK_BODY.
66962
66963 2006-10-04  Bruno Haible  <bruno@clisp.org>
66964
66965         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
66966         (gl_oset_search_atleast): New declaration.
66967         (struct gl_oset_implementation): Add field 'search_atleast'.
66968         (gl_oset_search_atleast): New inline function.
66969         * lib/gl_oset.c (gl_oset_search_atleast): New function.
66970         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
66971         (gl_array_oset_implementation): Update.
66972         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
66973         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
66974         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
66975
66976 2006-10-04  Bruno Haible  <bruno@clisp.org>
66977
66978         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
66979
66980 2006-10-03  Bruno Haible  <bruno@clisp.org>
66981
66982         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
66983         from gl_avltreehash_list_implementation.
66984
66985 2006-10-03  Bruno Haible  <bruno@clisp.org>
66986
66987         * lib/gl_oset.c (gl_oset_add): Fix return type.
66988
66989 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
66990
66991         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
66992
66993 2006-10-02  Eric Blake  <ebb9@byu.net>
66994
66995         * modules/strnlen (Depends-on): Add extensions.
66996
66997 2006-10-02  Eric Blake  <ebb9@byu.net>
66998
66999         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67000         definition in 2.60+.
67001
67002 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67003
67004         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67005         checks.
67006
67007 2006-10-02  Bruno Haible  <bruno@clisp.org>
67008
67009         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67010         to the AUTOMAKE_OPTIONS.
67011         Reported by Jim Meyering.
67012
67013 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67014
67015         Work around bug in Solaris 10 /proc file system:
67016         /proc/self/fd/NNN/.. isn't the parent directory of
67017         the directory whose file descriptor is NNN.  This needs to
67018         be worked around at run time, not compile time, since a
67019         program might be built on Solaris 8, where things work, and
67020         run on Solaris 10.
67021         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67022         to use the following interface instead:
67023         (OPENAT_BUFFER_SIZE): New macro.
67024         (openat_proc_name): New function.
67025         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67026         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67027         Likewise.
67028         * lib/openat-proc.c: New file.
67029         * modules/openat (Files): Add lib/openat-proc.c.
67030         (Depends-on): Add same-inode, stdbool.
67031         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67032
67033 2006-09-29  Bruno Haible  <bruno@clisp.org>
67034
67035         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67036         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67037         argument. Set stdout_closed before testing for ferror, not after.
67038         (fwriteerror, fwriteerror_no_ebadf): New functions.
67039
67040 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67041
67042         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67043
67044 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67045
67046         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67047         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67048
67049 2006-09-28  Jim Meyering  <jim@meyering.net>
67050
67051         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67052         Include <unistd.h>.
67053
67054 2006-09-28  Bruno Haible  <bruno@clisp.org>
67055
67056         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67057         * modules/linkedhash-list (Depends-on): Likewise.
67058         * modules/rbtreehash-list (Depends-on): Likewise.
67059
67060 2006-09-28  Bruno Haible  <bruno@clisp.org>
67061
67062         * lib/strndup.h: Simplify the redefinition of strndup.
67063         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67064         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67065
67066 2006-09-28  Bruno Haible  <bruno@clisp.org>
67067
67068         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67069         * lib/gl_linkedhash_list.c: Likewise.
67070         * lib/gl_rbtreehash_list.c: Likewise.
67071
67072 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67073
67074         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67075         getaddrinfo.
67076
67077         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67078         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67079         it causes <stdio_ext.h> to cause a compile-time error.
67080         Problem reported by Nelson H. F. Beebe.
67081         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67082         of HAVE_DECL___PENDING.
67083
67084         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67085         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67086         declaration.
67087
67088 2006-09-27  Jim Meyering  <jim@meyering.net>
67089
67090         This file could end up with a definition for a function
67091         named __strndup, rather than rpl_strndup on a system with
67092         incomplete weak_alias support.
67093         * lib/strndup.c (strndup): Rename from __strndup.
67094         Remove #defines that used to map __strndup to strndup.
67095         Don't use K&R prototypes.
67096         Remove LIBC-related code, since this file is not sync'd with glibc.
67097         * lib/strndup.h: Revamp, accordingly.
67098         * m4/strndup.m4: Modernize.
67099
67100 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67101
67102         * modules/savewd (Depends-on): Add 'raise'.
67103         * lib/savewd.c: Include <signal.h>, for 'raise'.
67104
67105 2006-09-26  Jim Meyering  <jim@meyering.net>
67106
67107         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67108         when we detect Darwin 8.7.0's acl_get_file bug.
67109         Rearrange to perform the new (below) run-test while $LIBS
67110         contains any acl-related library.  Set USE_ACL at the end.
67111         (gl_ACL_GET_FILE): New function.
67112
67113 2006-09-26  Eric Blake  <ebb9@byu.net>
67114
67115         * lib/verror.c: Include <config.h> unconditionally.
67116
67117 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67118
67119         * modules/clock-time (Maintainer): Add self.
67120         * modules/getlogin_r (Depends-on): Add extensions.
67121
67122 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67123
67124         * modules/clock-time: New module.
67125         * modules/nanosleep (Depends-on): Add clock-time.
67126         * modules/gethrxtime (Depends-on): Likewise.
67127         * modules/gettime (Depends-on): Likewise.
67128         * modules/settime (Depends-on): Likewise.
67129
67130         * modules/fts-lgpl: Depend on openat.
67131         * modules/mkancesdirs: Depend on savewd.
67132         * modules/mkdir-p: Likewise.
67133
67134 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67135
67136         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67137
67138         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67139         `gl_have_arbitrary_file_name_length_limit' to
67140         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67141         actually works between configure runs.
67142
67143 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67144             Bruno Haible  <bruno@clisp.org>
67145
67146         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67147
67148 2006-09-25  Jim Meyering  <jim@meyering.net>
67149
67150         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67151         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67152
67153 2006-09-25  Eric Blake  <ebb9@byu.net>
67154
67155         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67156         exec's in 2006-09-18 patch when shuffling fds.
67157
67158 2006-09-25  Bruno Haible  <bruno@clisp.org>
67159
67160         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67161         Reported by Jim Meyering.
67162
67163 2006-09-24  Jim Meyering  <jim@meyering.net>
67164
67165         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67166         compare a pointer against a literal "0".  That caused failures with
67167         at least HP-UX's hpcc.
67168
67169 2006-09-22  Simon Josefsson  <jas@extundo.com>
67170
67171         * modules/gc-sha1:
67172         * modules/gc-md4:
67173         * modules/gc-hmac-sha1:
67174         * modules/gc-hmac-md5:
67175         * modules/gc-des:
67176         * modules/gc-arcfour: Distribute more files.
67177
67178 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67179
67180         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67181         (gl_linked_iterator_from_to): Initialize struct completely.
67182         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67183         (gl_tree_iterator_from_to): Likewise
67184         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67185         * lib/gl_array_list.c [lint] (gl_array_iterator)
67186         (gl_array_iterator_from_to): Likewise.
67187         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67188         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67189         (gl_carray_iterator_from_to): Likewise.
67190
67191         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67192         * lib/md4.c (md4_process_block): Remove unused variable.
67193         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67194         parentheses for clarity.
67195
67196 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67197
67198         * modules/bison-i18n (Depends-on): Add gettext.
67199
67200 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67201
67202         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67203         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67204         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67205         also add missing comma that caused broken test.
67206         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67207         stdlib.h, for `abort'.
67208         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67209         variables.
67210         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67211         include unistd.h if present, for `rmdir'.
67212         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67213         variables.
67214         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67215         in the process include standard headers for prototypes.
67216         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67217         gets declared on GNU/Linux.
67218         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67219         unistd.h, for `rmdir'.
67220         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67221
67222         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67223         always true.
67224         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67225
67226         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67227
67228 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67229
67230         * gnulib-tool (func_version): Create output all at once.  This
67231         may help avoid triggering unnecessary SIGPIPEs, and at any
67232         rate it doesn't hurt.
67233
67234 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67235             Bruno Haible  <bruno@clisp.org>
67236
67237         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67238         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67239         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67240
67241         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67242         (gl_FUNC_VASPRINTF): Invoke it.
67243
67244 2006-09-22  Bruno Haible  <bruno@clisp.org>
67245
67246         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
67247         getloadavg.c as first argument.
67248
67249 2006-09-22  Bruno Haible  <bruno@clisp.org>
67250
67251         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
67252         at the beginning of the gl_INIT macro.
67253         * modules/getloadavg (configure.ac): Pass $gl_source_base to
67254         gl_GETLOADAVG.
67255
67256 2006-09-22  Bruno Haible  <bruno@clisp.org>
67257
67258         * gnulib-tool (func_create_megatestdir): Don't include the config-h
67259         module.
67260         Suggested by Ralf Wildenhues.
67261
67262 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67263
67264         Import this patch from libc:
67265
67266         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
67267
67268         * lib/regex_internal.c (re_string_reconstruct): Handle
67269         offset < pstr->valid_raw_len && pstr->offsets_needed case.
67270         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
67271         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
67272         re_string_context_at.
67273
67274         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
67275         now requires it.
67276         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
67277         gl_REGEX now does it for us.
67278         (gl_REGEX): Add test taken from
67279         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
67280
67281         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
67282         Check that large offsets work.  Modernize Autoconf usages.
67283         Prefer "yes" to mean a good thing rather than a bad.
67284         Don't put "#define mkstemp" in config.h, as this might interfere
67285         with standard system headers that "#define mkstemp mkstemp64".
67286
67287         * modules/mkstemp (Depends-on): Add extensions, so that
67288         mkstemp is visible on some platforms.
67289         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
67290         (Include): Change to "mkstemp.h" from <stdlib.h>.
67291         (Files): Add mkstemp.h.
67292
67293         * lib/mkstemp.h: New file, since some standard headers
67294         #define mkstemp.
67295         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
67296         Include "mkstemp.h".
67297         Make the _LIBC code resemble glibc original more,
67298         e.g., use K&R style.
67299         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
67300         (mkstemp): Remove, since mkstemp.h does this for us.
67301         * lib/stdlib--.h: Include mkstemp.h.
67302
67303         Import this patch from libc:
67304
67305         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67306
67307         * lib/tempname.c (__gen_tempname): Change attempts_min
67308         into a macro.  Use preprocessor to decide how to initialize
67309         attempts [Coverity CID 67].
67310
67311 2006-09-20  Bruno Haible  <bruno@clisp.org>
67312
67313         * lib/mkdtemp.c: Import from libc.
67314         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67315                 * sysdeps/posix/tempname.c (__gen_tempname): Change
67316                 attempts_min into a macro.  Use preprocessor to decide how to
67317                 initialize attempts [Coverity CID 67].
67318         2001-11-27  Paul Eggert  <eggert@twinsun.com>
67319                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
67320                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
67321
67322 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67323
67324         * gnulib-tool (func_exit): New function, to allow to pass the
67325         exit status portably through the trap.  Use everywhere.
67326         (--help, --version): Signal a write error.
67327         (trap): catch SIGPIPE, for write errors.
67328         Exit at the end of the trap, with the correct exit status.
67329
67330 2006-09-19  Karl Berry  <karl@gnu.org>
67331
67332         * doc/gnulib.texi: note about the license texinfo files.
67333
67334 2006-09-19  Eric Blake  <ebb9@byu.net>
67335
67336         * gnulib-tool: Avoid space-tab.
67337
67338 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67339
67340         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
67341         that prevented coreutils 6.1 from building.  Problem reported
67342         by Petter Reinholdtsen.
67343
67344 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67345
67346         * gnulib-tool (avoidlist): Fix typo that broke options like
67347         --avoid=lock that are used by coreutils bootstrap.
67348
67349 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67350
67351         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67352         more systematically.
67353
67354 2006-09-18  Jim Meyering  <jim@meyering.net>
67355
67356         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67357
67358 2006-09-18  Bruno Haible  <bruno@clisp.org>
67359
67360         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67361
67362 2006-09-18  Bruno Haible  <bruno@clisp.org>
67363
67364         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67365         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67366         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67367         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67368         * m4/gettext.m4: Require autoconf >= 2.52.
67369         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67370         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67371         of gl_cv_header_inttypes_h.
67372
67373 2006-09-18  Bruno Haible  <bruno@clisp.org>
67374
67375         * lib/javaversion.c: Include configmake.h.
67376
67377 2006-09-18  Bruno Haible  <bruno@clisp.org>
67378
67379         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
67380         avoid that the while loops be executed in a subshell.
67381
67382 2006-09-18  Bruno Haible  <bruno@clisp.org>
67383
67384         * MODULES.html.sh (func_module): Break long lines.
67385         Suggested by Bruce Korb <bkorb@gnu.org>.
67386
67387 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67388
67389         Speed up by a factor of 1.12.
67390         * gnulib-tool (nl): New variable.
67391         (func_import): Rewrite include directive extraction to only read each
67392         directive once.
67393
67394 2006-09-17  Bruno Haible  <bruno@clisp.org>
67395
67396         * modules/javaversion (Makefile.am): Remove DEFS setting.
67397         (Depends-on): Add configmake, for PKGDATADIR definition.
67398
67399 2006-09-17  Bruno Haible  <bruno@clisp.org>
67400
67401         * gnulib-tool (func_create_testdir): Rewrite all files at once.
67402
67403 2006-09-17  Bruno Haible  <bruno@clisp.org>
67404
67405         * gnulib-tool (func_append): New function, stolen from libtool.m4.
67406         (func_modules_transitive_closure, func_modules_add_dummy,
67407         func_modules_to_filelist, func_import, func_create_testdir,
67408         func_create_megatestdir, ...): Use it wherever possible.
67409         Suggested by Ralf Wildenhues.
67410
67411 2006-09-16  Karl Berry  <karl@gnu.org>
67412
67413         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67414         to avoid sectioning errors.
67415         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67416         [ifinfo]: blank line after @center-ed titles.
67417         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
67418         Spell FSF address consistently with others.
67419         (These changes approved by rms.)
67420
67421 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67422
67423         Speed up by a factor of 1.61.
67424         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
67425         already checked module names again.
67426
67427 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67428
67429         Speed up by a factor of 1.13.
67430         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
67431         for new_files, and the input to func_add_or_update.
67432
67433 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67434
67435         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
67436         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
67437
67438 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67439
67440         * modules/mkancesdirs (Depends-on): Add fcntl.
67441         * modules/savewd: New file.
67442         * MODULES.html.sh (File system functions): Add savewd.
67443
67444         * modules/configmake (Makefile.am): Add support for the
67445         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
67446
67447 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67448
67449         * m4/savewd.m4: New file.
67450
67451 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67452
67453         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
67454         (dirchownmod): New arg FD.  All callers changed.
67455         Use FD rather than opening the directory ourself, as opening is
67456         now the caller's responsibility.
67457         * lib/dirchownmod.h: Likewise.
67458         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
67459         hosts that require <sys/types.h> before <sys/stat.h>.  Include
67460         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
67461         (test_dir): Remove.
67462         (mkancesdirs): Return length of prefix of FILE that has already
67463         been made, or -2 if there is a child doing the work.  Redo
67464         algorithm so that it is O(N) rather than O(N**2).  Optimize away
67465         ".", and treat ".." specially since it might stray back into
67466         already-created areas.  Use a subprocess if necessary.  New arg
67467         WD; all users changed.  MAKE_DIR function should now return 1
67468         if it creates a directory that is not readable.  Return -2 if
67469         a child process is spun off.
67470         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
67471         Adjust signature to match code.
67472         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
67473         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
67474         all users changed.
67475         * lib/savewd.c, lib/savewd.h: New files.
67476
67477 2006-09-15  Jim Meyering  <jim@meyering.net>
67478
67479         * modules/rename-dest-slash: New module.
67480         * MODULES.html.sh (posix_compat): Add it here.
67481
67482         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
67483
67484 2006-09-15  Jim Meyering  <jim@meyering.net>
67485
67486         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
67487         file.
67488
67489         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
67490
67491 2006-09-15  Jim Meyering  <jim@meyering.net>
67492
67493         * lib/rename-dest-slash.c (has_trailing_slash): Use
67494         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
67495         (rpl_rename_dest_slash): Perform the cheaper trailing slash
67496         test before testing whether SRC is a directory.
67497         Suggestions from Bruno Haible.
67498
67499         Avoid a warning about an unused variable.
67500         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
67501         into the #ifdef block where it's used.
67502
67503         * lib/rename-dest-slash.c: New file.
67504
67505 2006-09-14  Bruno Haible  <bruno@clisp.org>
67506
67507         * lib/allocsa.c: Include <config.h> unconditionally.
67508         * lib/asnprintf.c: Likewise.
67509         * lib/asprintf.c: Likewise.
67510         * lib/c-strcasecmp.c: Likewise.
67511         * lib/c-strcasestr.c: Likewise.
67512         * lib/c-strncasecmp.c: Likewise.
67513         * lib/c-strstr.c: Likewise.
67514         * lib/classpath.c: Likewise.
67515         * lib/clean-temp.c: Likewise.
67516         * lib/concatpath.c: Likewise.
67517         * lib/copy-file.c: Likewise.
67518         * lib/csharpcomp.c: Likewise.
67519         * lib/csharpexec.c: Likewise.
67520         * lib/execute.c: Likewise.
67521         * lib/fatal-signal.c: Likewise.
67522         * lib/findprog.c: Likewise.
67523         * lib/fwriteerror.c: Likewise.
67524         * lib/gl_array_list.c: Likewise.
67525         * lib/gl_array_oset.c: Likewise.
67526         * lib/gl_avltree_list.c: Likewise.
67527         * lib/gl_avltree_oset.c: Likewise.
67528         * lib/gl_avltreehash_list.c: Likewise.
67529         * lib/gl_carray_list.c: Likewise.
67530         * lib/gl_linked_list.c: Likewise.
67531         * lib/gl_linkedhash_list.c: Likewise.
67532         * lib/gl_list.c: Likewise.
67533         * lib/gl_oset.c: Likewise.
67534         * lib/gl_rbtree_list.c: Likewise.
67535         * lib/gl_rbtree_oset.c: Likewise.
67536         * lib/gl_rbtreehash_list.c: Likewise.
67537         * lib/imaxabs.c: Likewise.
67538         * lib/imaxdiv.c: Likewise.
67539         * lib/javacomp.c: Likewise.
67540         * lib/javaexec.c: Likewise.
67541         * lib/javaversion.c: Likewise.
67542         * lib/linebreak.c: Likewise.
67543         * lib/localcharset.c: Likewise.
67544         * lib/lock.c: Likewise.
67545         * lib/mbchar.c: Likewise.
67546         * lib/mbswidth.c: Likewise.
67547         * lib/mkdtemp.c: Likewise.
67548         * lib/pipe.c: Likewise.
67549         * lib/printf-args.c: Likewise.
67550         * lib/printf-parse.c: Likewise.
67551         * lib/progname.c: Likewise.
67552         * lib/progreloc.c: Likewise.
67553         * lib/readlink.c: Likewise.
67554         * lib/sh-quote.c: Likewise.
67555         * lib/stpcpy.c: Likewise.
67556         * lib/stpncpy.c: Likewise.
67557         * lib/strcasecmp.c: Likewise.
67558         * lib/strcasestr.c: Likewise.
67559         * lib/strcspn.c: Likewise.
67560         * lib/striconv.c: Likewise.
67561         * lib/strncasecmp.c: Likewise.
67562         * lib/strnlen1.c: Likewise.
67563         * lib/strstr.c: Likewise.
67564         * lib/strtok_r.c: Likewise.
67565         * lib/tls.c: Likewise.
67566         * lib/tmpdir.c: Likewise.
67567         * lib/unicodeio.c: Likewise.
67568         * lib/unsetenv.c: Likewise.
67569         * lib/vasnprintf.c: Likewise.
67570         * lib/vasprintf.c: Likewise.
67571         * lib/wait-process.c: Likewise.
67572         * lib/xallocsa.c: Likewise.
67573         * lib/xsetenv.c: Likewise.
67574         * lib/xstriconv.c: Likewise.
67575
67576 2006-09-13  Simon Josefsson  <jas@extundo.com>
67577
67578         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
67579         that internally, suggested by Ralf Wildenhues
67580         <Ralf.Wildenhues@gmx.de>.
67581
67582 2006-09-13  Simon Josefsson  <jas@extundo.com>
67583
67584         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
67585         @LIBOBJS@.
67586         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67587
67588 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67589
67590         * lib/_fpending.c: Include <config.h> unconditionally, since we no
67591         longer worry about uses that don't define HAVE_CONFIG_H.
67592         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
67593         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
67594         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
67595         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
67596         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
67597         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
67598         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
67599         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
67600         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
67601         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
67602         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
67603         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
67604         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
67605         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
67606         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
67607         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
67608         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
67609         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
67610         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
67611         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
67612         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
67613         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
67614         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
67615         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
67616         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
67617         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
67618         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
67619         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
67620         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
67621         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
67622         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
67623         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
67624         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
67625         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
67626         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
67627         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
67628         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
67629         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
67630         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
67631         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
67632         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
67633         Likewise.
67634
67635 2006-09-13  Eric Blake  <ebb9@byu.net>
67636
67637         * lib/getopt.c: Fix typo in last commit.
67638
67639 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67640
67641         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
67642         dgettext.
67643
67644 2006-09-12  Jim Meyering  <jim@meyering.net>
67645
67646         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
67647         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
67648         Reported by Nelson H. F. Beebe.
67649
67650 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67651
67652         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
67653         program_invocation_name and program_invocation_short_name are
67654         initialized.
67655         * lib/argp-namefrob.h: Move declarations of program_invocation_name
67656         and program_invocation_short_name to argp.h, so they are visible
67657         to user programs.
67658         * lib/argp.h: Likewise
67659
67660 2006-09-10  Bruno Haible  <bruno@clisp.org>
67661
67662         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67663         m4/inttypes_h.m4, m4/uintmax_t.m4.
67664
67665 2006-09-10  Bruno Haible  <bruno@clisp.org>
67666
67667         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
67668         gl_AC_TYPE_UINTMAX_T.
67669
67670 2006-09-10  Bruno Haible  <bruno@clisp.org>
67671
67672         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
67673
67674 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67675
67676         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
67677         convention.  Text proposed by Bruno Haible.
67678         (struct argp_option): Document the use of N_() wrappers.
67679
67680         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
67681         '\v', and translate the two parts separately, instead of feeding
67682         the whole string to gettext.  This allows to exclude
67683         '\v' from the strings visible to the translator by writing doc
67684         strings as N_("..") "\v" N_("..").
67685
67686 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
67687
67688         * config/srclist.txt: Undo latest change; the bug was fixed.
67689
67690 2006-09-09  Bruno Haible  <bruno@clisp.org>
67691
67692         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
67693         assignments if building a library without libtool.
67694         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
67695         in func_emit_lib_Makefile_am.
67696         (func_import): When building a static library libfoo.a, arrange to
67697         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
67698         (func_create_testdir): Likewise.
67699         * modules/gc (configure.ac, Makefile.am): If building statically,
67700         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
67701         * modules/iconvme (configure.ac, Makefile.am): Likewise.
67702         * modules/striconv (configure.ac, Makefile.am): Likewise.
67703         Based on a suggestion by Ralf Wildenhues.
67704
67705 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67706
67707         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67708         Check for unistd.h too, since Autoconf doesn't assume POSIX.
67709         Also:
67710
67711         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67712         Add year_2050_test to catch glibc bug 2821
67713         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67714
67715         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67716         Prefer #ifdef to #if.
67717
67718         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
67719         Return from 'main' instead of calling 'exit'.
67720
67721 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67722
67723         * lib/mktime.c (guess_time_tm): Fix bug where mktime
67724         returned the maximum time_t value rather than (time_t) -1.
67725         Problem originally reported by William Bardwell
67726         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67727
67728         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67729         Moved to here ...
67730         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67731         ... from here.
67732
67733 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67734
67735         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
67736         2821 is fixed.
67737
67738 2006-09-08  Jim Meyering  <jim@meyering.net>
67739
67740         Don't make generated files read-only.  That would bother too many
67741         people.  However, do retain the ability to work when targets are
67742         read-only: remove the destination and temporary files before writing
67743         them (when generated via sed or echo), or by using the -f option for
67744         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
67745         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67746         * modules/byteswap, modules/configmake, modules/fcntl:
67747         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67748         * modules/localcharset, modules/netinet_in, modules/poll:
67749         * modules/stdbool, modules/stdint, modules/sys_select:
67750         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67751
67752 2006-09-08  Jim Meyering  <jim@meyering.net>
67753
67754         Avoid new build failure on FreeBSD 6.0.
67755         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
67756         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
67757         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
67758
67759 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67760
67761         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
67762
67763 2006-09-07  Jim Meyering  <jim@meyering.net>
67764
67765         Fix global typo in last change: use chmod u-w, not chmod u-x.
67766         Spotted by Paul Eggert and Bruce Korb.
67767         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67768         * modules/byteswap, modules/configmake, modules/fcntl:
67769         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67770         * modules/localcharset, modules/netinet_in, modules/poll:
67771         * modules/stdbool, modules/stdint, modules/sys_select:
67772         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67773
67774 2006-09-06  Jim Meyering  <jim@meyering.net>
67775
67776         Make generated files be read-only.
67777         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
67778         Ensure that each generated file is now read-only.
67779         * modules/argz: Likewise.
67780         * modules/arpa_inet: Likewise.
67781         * modules/byteswap: Likewise.
67782         * modules/configmake: Likewise.
67783         * modules/fcntl: Likewise.
67784         * modules/fnmatch: Likewise.
67785         * modules/getopt: Likewise.
67786         * modules/glob: Likewise.
67787         * modules/inttypes: Likewise.
67788         * modules/netinet_in: Likewise.
67789         * modules/poll: Likewise.
67790         * modules/stdbool: Likewise.
67791         * modules/stdint: Likewise.
67792         * modules/sys_select: Likewise.
67793         * modules/sys_socket: Likewise.
67794         * modules/sys_stat: Likewise.
67795         * modules/sysexits: Likewise.
67796         * modules/localcharset: Same as above, but continue using temporary
67797         file named "t-$@" (why different?) rather than the "$@-t" used
67798         everywhere else.
67799
67800         * modules/sysexits (Makefile.am): Replace literal occurrences
67801         of "sysexit.h" more readable, and more consistent, "$@".
67802
67803 2006-09-06  Bruno Haible  <bruno@clisp.org>
67804
67805         * modules/striconv: New file.
67806         * modules/xstriconv: New file.
67807         * MODULES.html.sh (Internationalization functions): Add striconv,
67808         xstriconv.
67809
67810 2006-09-06  Bruno Haible  <bruno@clisp.org>
67811
67812         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
67813         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
67814         not using libtool correctly.
67815
67816 2006-09-06  Bruno Haible  <bruno@clisp.org>
67817
67818         * lib/striconv.h: New file.
67819         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
67820         iconvstring.c.
67821         * lib/xstriconv.h: New file.
67822         * lib/xstriconv.c: New file.
67823
67824 2006-09-06  Bruno Haible  <bruno@clisp.org>
67825
67826         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67827         lib_..._LDFLAGS.
67828
67829 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67830
67831         * lib/argz_.h: Sync from Libtool.
67832
67833         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
67834                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67835
67836         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
67837
67838 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67839
67840         * modules/trim: New file.
67841
67842 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67843
67844         * lib/trim.h: New file.
67845         * lib/trim.c: New file.
67846
67847 2006-09-05  Bruno Haible  <bruno@clisp.org>
67848
67849         * MODULES.html.sh (String handling): Add trim.
67850
67851 2006-09-04  Karl Berry  <karl@gnu.org>
67852
67853         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
67854         until next release.
67855
67856 2006-09-03  Bruno Haible  <bruno@clisp.org>
67857
67858         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
67859         correctly.
67860
67861 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67862
67863         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
67864         not gl_GETLOADAVG.  Omit unneeded semicolons.
67865         Problems reported by Ralf Wildenhues in
67866         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67867         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
67868         at the end, which is the usual gnulib style.
67869
67870         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
67871         of doing all the work ourselves.
67872         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
67873         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
67874
67875 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67876
67877         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
67878         Problem reported by Ralf Wildenhues in
67879         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67880
67881         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
67882         HAVE_STRUCT_STATFS_F_FSTYPENAME.
67883
67884 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67885
67886         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
67887         yesterday's patch by changing test -n to test -z.
67888
67889 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67890
67891         * modules/getloadavg (Files): Add m4/getloadavg.m4.
67892         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
67893         the former is now obsolescent.
67894
67895         * modules/chdir-long (Depends-on): Add fcntl.
67896
67897 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67898
67899         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
67900         obsolescent, and programs should use gnulib instead.
67901         * m4/getloadavg.m4: New file, with contents taken from Autoconf
67902         but with prefixes changed.
67903
67904 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67905
67906         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
67907         or stdbool.h, because they might not exist while configuring.
67908
67909         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
67910         Don't include unistd.h or limits.h; not needed, since chdir-long.h
67911         does that for us.
67912         (O_DIRECTORY): Remove.
67913
67914 2006-08-31  Eric Blake  <ebb9@byu.net>
67915
67916         * gnulib-tool: Don't let emacs change spaces to TAB.
67917
67918 2006-08-31  Bruno Haible  <bruno@clisp.org>
67919
67920         * gnulib-tool: When calling func_import more than once, do it in a
67921         subshell.
67922         Reported by Eric Blake <ebb9@byu.net>.
67923
67924 2006-08-31  Bruno Haible  <bruno@clisp.org>
67925
67926         * gnulib-tool (nl): Remove variable.
67927         (sed_transform_lib_file): Use more robust test for config-h module.
67928         (func_import): Fix typo in 2006-08-25 patch.
67929
67930 2006-08-31  Bruno Haible  <bruno@clisp.org>
67931
67932         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
67933         specified, augment Makefile.am variables instead of assigning them.
67934
67935 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67936
67937         Work around a bug in both the Linux and SunOS 64-bit kernels:
67938         nanosleep mishandles sleeps for longer than 2**31 seconds.
67939         Problem reported by Frank v Waveren in
67940         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67941         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
67942         Check for nanosleep bug.
67943         (LIB_NANOSLEEP): Append clock_gettime library if needed.
67944
67945 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67946
67947         Work around a bug in both the Linux and SunOS 64-bit kernels:
67948         nanosleep mishandles sleeps for longer than 2**31 seconds.
67949         Problem reported by Frank v Waveren in
67950         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67951         * lib/nanosleep.c (BILLION): New constant.
67952         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
67953         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
67954         implementation.
67955
67956 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67957
67958         * modules/nanosleep (Depends-on): Add gettime.
67959
67960 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67961         and Simon Josefsson  <jas@extundo.com>
67962         and Oskar Liljeblad  <oskar@osk.mine.nu>
67963
67964         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
67965         * gnulib-tool (func_import): New license type 'unmodifiable license
67966         text'.
67967         * modules/fdl: Use it.  Longer description.
67968         * module/gpl, module/lgpl: New files.
67969
67970 2006-08-30  Jim Meyering  <jim@meyering.net>
67971
67972         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
67973         shadowing the parameter.
67974
67975 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67976
67977         Sync from Libtool:
67978
67979         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67980
67981         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
67982         sharing with gnulib.  Report by Eric Blake.
67983
67984 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67985
67986         * modules/isapipe: New file.
67987         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
67988
67989 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67990
67991         * modules/configmake (Makefile.am): Add a comment, and omit
67992         the CONFIGMAKE_ prefix from generated macro names.  Suggested
67993         by Bruno Haible.
67994
67995 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67996
67997         * m4/isapipe.m4: New file.
67998
67999 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68000
68001         * lib/isapipe.c, lib/isapipe.h: New files.
68002
68003 2006-08-29  Jim Meyering  <jim@meyering.net>
68004
68005         * modules/configmake (Makefile.am): Make configmake.h depend on
68006         Makefile.  Otherwise, a stale configmake.h could hang around.
68007
68008 2006-08-29  Eric Blake  <ebb9@byu.net>
68009
68010         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68011         resolution of upstream bug 3044.
68012
68013 2006-08-29  Bruno Haible  <bruno@clisp.org>
68014
68015         * modules/localcharset (Depends-on): Add configmake.
68016         (Makefile.am): Remove setting of LIBDIR through DEFS.
68017
68018 2006-08-29  Bruno Haible  <bruno@clisp.org>
68019
68020         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68021         defined.
68022
68023 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68024
68025         * modules/fcntl: New file.
68026         * modules/chdir-safer (Depends-on): Add fcntl.
68027         * modules/fts: Likewise.
68028         * modules/mkdir-p: Likewise.
68029
68030         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68031         This undoes the most recent change, since we're now addressing the
68032         problem in a different way.
68033
68034         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68035         into output, since the output might be called Makefile.am even
68036         if $makefile_name is something different.
68037         (func_import): Use $makefile_am rather than
68038         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68039         empty.
68040
68041         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68042
68043 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68044
68045         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68046         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68047         recent change to stdint.m4, since we're now addressing the problem in a
68048         different way.
68049
68050 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68051
68052         * m4/fcntl_h.m4: New file.
68053
68054 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68055
68056         * lib/fcntl_.h: New file.
68057         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68058         the fcntl module.
68059         * lib/dirchownmod.c: Likewise.
68060         * lib/fts.c: Likewise.
68061
68062         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68063         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68064         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68065         just before including <inttypes.h>, to avoid circular inclusion.
68066
68067 2006-08-28  Jim Meyering  <jim@meyering.net>
68068
68069         * doc/visibility.texi: Actually read and correct the grammar of the
68070         sentence affected by yesterday's change.
68071
68072 2006-08-28  Eric Blake  <ebb9@byu.net>
68073
68074         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68075         needs wrapper.
68076
68077 2006-08-28  Eric Blake  <ebb9@byu.net>
68078
68079         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68080
68081 2006-08-28  Eric Blake  <ebb9@byu.net>
68082
68083         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68084
68085 2006-08-28  Bruno Haible  <bruno@clisp.org>
68086
68087         * modules/c-strstr: New file, from GNU gettext.
68088         * MODULES.html.sh (String handling): Add c-strstr.
68089
68090 2006-08-28  Bruno Haible  <bruno@clisp.org>
68091
68092         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68093         macros.
68094         Reported by Eric Blake.
68095
68096 2006-08-28  Bruno Haible  <bruno@clisp.org>
68097
68098         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68099         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68100         * lib/vasprintf.c: Include errno.h, limits.h.
68101         (EOVERFLOW): New fallback definition.
68102         (vasprintf): Test here whether the string length is > INT_MAX.
68103         * lib/vsnprintf.c: Include errno.h, limits.h.
68104         (EOVERFLOW): New fallback definition.
68105         (vsnprintf): Fix bug when generated string was too long for the buffer.
68106         Test here whether the string length is > INT_MAX.
68107
68108 2006-08-28  Bruno Haible  <bruno@clisp.org>
68109
68110         * lib/inttypes_.h (SCNX*): Remove definitions.
68111         Reported by Eric Blake.
68112
68113 2006-08-28  Bruno Haible  <bruno@clisp.org>
68114
68115         * lib/c-strstr.h: New file, from GNU gettext.
68116         * lib/c-strstr.c: New file, from GNU gettext.
68117
68118 2006-08-28  Bruno Haible  <bruno@clisp.org>
68119
68120         * gnulib-tool: Reorder some statements.
68121
68122 2006-08-28  Bruno Haible  <bruno@clisp.org>
68123
68124         * gnulib-tool: New option --makefile-name.
68125         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68126         $makefile_name.
68127         (func_import): Write $makefile_name to the cache file, and read it from
68128         there unless explicitly specified. Use $makefile_name as file name
68129         instead of Makefile.am. Adjust the recommendations accordingly.
68130
68131 2006-08-28  Bruno Haible  <bruno@clisp.org>
68132
68133         * gnulib-tool (func_verify_module): Check against misapplying patch.
68134
68135 2006-08-28  Bruno Haible  <bruno@clisp.org>
68136
68137         * gnulib-tool (func_relativize, func_relconcat): New functions.
68138         Give an error if --local-dir is given with --update.
68139         Remove trailing slashes from $local_gnulib_dir.
68140         (func_import): Store the relativized $local_gnulib_dir in
68141         gnulib-cache.m4, and read it from there if not specified explicitly.
68142
68143 2006-08-28  Bruno Haible  <bruno@clisp.org>
68144
68145         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68146         is the current directory. Respect also $local_gnulib_dir.
68147
68148 2006-08-28  Bruno Haible  <bruno@clisp.org>
68149             Simon Josefsson  <jas@extundo.com>
68150
68151         BeOS portability.
68152         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68153
68154 2006-08-27  Jim Meyering  <jim@meyering.net>
68155
68156         * doc/visibility.texi: Remove duplicate word: "pointer".
68157
68158 2006-08-26  Bruno Haible  <bruno@clisp.org>
68159
68160         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68161         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68162         (Makefile.am): Create inttypes.h from inttypes_.h.
68163         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68164
68165         * modules/imaxabs: New file.
68166
68167         * modules/imaxdiv: New file.
68168
68169 2006-08-26  Bruno Haible  <bruno@clisp.org>
68170
68171         * m4/inttypes.m4: New file.
68172         * m4/_inttypes_h.m4: Remove file.
68173         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68174         PRI_MACROS_BROKEN.
68175         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68176
68177         * m4/imaxabs.m4: New file.
68178
68179         * m4/imaxdiv.m4: New file.
68180
68181 2006-08-26  Bruno Haible  <bruno@clisp.org>
68182
68183         * lib/inttypes_.h: New file.
68184         * lib/inttypes.h: Remove file.
68185         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68186
68187         * lib/imaxabs.c: New file.
68188
68189         * lib/imaxdiv.c: New file.
68190
68191 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68192
68193         New config-h module, so that "make" output needn't be cluttered
68194         by -DHAVE_CONFIG_H.
68195         * MODULES.html.sh (Support for building libraries and executables):
68196         Add config-h.
68197         * modules/config-h: New file.
68198         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68199         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68200         the config-h module is used.
68201
68202         New configmake module, so that "make" output needn't be cluttered
68203         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68204         * MODULES.html.sh (Support for building libraries and executables):
68205         Add configmake.
68206         * modules/configmake: New file.
68207
68208 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68209
68210         * m4/config-h.m4: New file.
68211
68212 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68213
68214         * config/srclist.txt: Add elisp-comp.
68215
68216 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68217
68218         * MODULES.html.sh (Support for building libraries and executables):
68219         Add elisp-comp.
68220         * build-aux/elisp-comp: New file.
68221         * modules/elisp-comp: New file.
68222
68223 2006-08-24  Bruno Haible  <bruno@clisp.org>
68224
68225         * gnulib-tool (func_create_testdir): Use non-default values of
68226         sourcebase and m4base.
68227
68228 2006-08-24  Bruno Haible  <bruno@clisp.org>
68229
68230         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68231         HTML structure.
68232
68233 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68234
68235         * modules/openat (Depends-on): Add lchown.
68236
68237 2006-08-23  Bruno Haible  <bruno@clisp.org>
68238
68239         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68240         of gl_LOCK_EARLY instead of gl_LOCK.
68241
68242 2006-08-23  Bruno Haible  <bruno@clisp.org>
68243
68244         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
68245         on OSF/1 to no.
68246         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
68247
68248 2006-08-23  Bruno Haible  <bruno@clisp.org>
68249
68250         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
68251         as unusable.
68252
68253         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
68254         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
68255         (gl_LOCK): New macro.
68256
68257 2006-08-22  Simon Josefsson  <jas@extundo.com>
68258
68259         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
68260         to md5 module.
68261
68262 2006-08-22  Simon Josefsson  <jas@extundo.com>
68263
68264         * MODULES.html.sh: Add "Support for maintaining and release
68265         projects".
68266
68267         * build-aux/gnupload: New file, from coreutils.
68268
68269 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68270
68271         Avoid the need for AC_LIBSOURCES in m4 macros.
68272         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
68273         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
68274         * modules/check-version (EXTRA_DIST): Add check-version.h.
68275         * modules/crc (EXTRA_DIST): Add crc.h.
68276         * modules/des (EXTRA_DIST): Add des.h.
68277         * modules/gc (EXTRA_DIST): Add gc.h.
68278         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
68279         * modules/getline (EXTRA_DIST): Add getline.h.
68280         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
68281         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
68282         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
68283         * modules/md2 (EXTRA_DIST): Add md2.h.
68284         * modules/md4 (EXTRA_DIST): Add md4.h.
68285         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
68286         * modules/read-file (EXTRA_DIST): Add read-file.h.
68287         * modules/readline (EXTRA_DIST): Add readline.h.
68288         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
68289         rijndael-api-fst.h.
68290
68291 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68292
68293         * m4/rijndael.m4 (gl_ARCFOUR):
68294         * m4/arctwo.m4 (gl_ARCTWO):
68295         * m4/check-version.m4 (gl_CHECK_VERSION):
68296         * m4/crc.m4 (gl_CRC):
68297         * m4/des.m4 (gl_DES):
68298         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
68299         * m4/gc.m4 (gl_GC):
68300         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
68301         * m4/getline.m4 (gl_FUNC_GETLINE):
68302         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
68303         * m4/hmac-md5.m4 (gl_HMAC_MD5):
68304         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
68305         * m4/md2.m4 (gl_MD2):
68306         * m4/md4.m4 (gl_MD4):
68307         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
68308         * m4/read-file.m4 (gl_FUNC_READ_FILE):
68309         * m4/readline.m4 (gl_FUNC_READLINE):
68310         * m4/rijndael.m4 (gl_RIJNDAEL):
68311         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68312         to get the necessary .h files and whatnot.
68313
68314 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68315
68316         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
68317         gnulib rather than the other way around.
68318         * config/srclistvars.sh (COREUTILS): Remove.
68319
68320 2006-08-22  Jim Meyering  <jim@meyering.net>
68321
68322         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
68323
68324         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
68325
68326 2006-08-22  Eric Blake  <ebb9@byu.net>
68327
68328         * modules/regexprops-generic: New file.
68329         * MODULES.html.sh (Support for building documentation): List it.
68330
68331 2006-08-22  Eric Blake  <ebb9@byu.net>
68332
68333         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
68334         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68335         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
68336         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
68337
68338 2006-08-22  Bruno Haible  <bruno@clisp.org>
68339
68340         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
68341         and lib_LTLIBRARIES like the other lib_* variables.
68342
68343 2006-08-22  Bruno Haible  <bruno@clisp.org>
68344
68345         * build-aux/x-to-1.in: New file, from GNU gettext.
68346
68347 2006-08-22  Bruno Haible  <bruno@clisp.org>
68348
68349         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68350         <utmpx.h> exists.
68351
68352 2006-08-22  Bruno Haible  <bruno@clisp.org>
68353
68354         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68355         <utmpx.h> exists.
68356
68357 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68358
68359         BeOS portability.
68360         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68361         exist.
68362         Problem reported by Bruno Haible.
68363
68364 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68365
68366         Avoid the need for AC_LIBSOURCES in m4 macros.
68367         * modules/acl (EXTRA_DIST): Add acl.h.
68368         * modules/argmatch (Files): Add m4/argmatch.m4.
68369         (configure.ac): Add gl_ARGMATCH.
68370         (EXTRA_DIST): Renamed from lib_SOURCES, for
68371         consistency with the other modules.  Remove argmatch.c.
68372         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68373         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68374         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
68375         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
68376         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
68377         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
68378         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
68379         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
68380         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
68381         * modules/closeout (EXTRA_DIST): Add closeout.h.
68382         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
68383         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
68384         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
68385         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
68386         dirname.h; remove basename.c and stripslash.c.
68387         * modules/exclude (EXTRA_DIST): Add exclude.h.
68388         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
68389         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
68390         * modules/file-type (EXTRA_DIST): Add file-type.h.
68391         * modules/filemode (EXTRA_DIST): Add filemode.h.
68392         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
68393         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68394         * modules/fpending (EXTRA_DIST): Add __fpending.h.
68395         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
68396         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
68397         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
68398         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
68399         * modules/getdate (EXTRA_DIST): Add getdate.c.
68400         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
68401         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
68402         * modules/getpass (EXTRA_DIST): Add getpass.h.
68403         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
68404         * modules/group-member (EXTRA_DIST): Add group-member.h.
68405         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
68406         * modules/hash (EXTRA_DIST): Add hash.h.
68407         * modules/human (EXTRA_DIST): Add human.h.
68408         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
68409         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
68410         * modules/lchown (EXTRA_DIST): Add lchown.h.
68411         * modules/long-options (EXTRA_DIST): Add long-options.h.
68412         * modules/lstat (EXTRA_DIST): Add lstat.h.
68413         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68414         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68415         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68416         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68417         * modules/memxor (EXTRA_DIST): Add memxor.h.
68418         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
68419         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
68420         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
68421         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
68422         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
68423         * modules/physmem (EXTRA_DIST): Add physmem.h.
68424         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
68425         * modules/posixver (EXTRA_DIST): Add posixver.h.
68426         * modules/quote (EXTRA_DIST): Add quote.h.
68427         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
68428         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
68429         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
68430         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
68431         regex_internal.h regexec.c.
68432         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
68433         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
68434         * modules/same (EXTRA_DIST): Add same.h.
68435         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
68436         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
68437         * modules/savedir (EXTRA_DIST): Add savedir.h.
68438         * modules/sha1 (EXTRA_DIST): Add sha1.h.
68439         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
68440         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
68441         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
68442         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
68443         * modules/strdup (EXTRA_DIST): Add strdup.h.
68444         * modules/strftime (EXTRA_DIST): Add strftime.h.
68445         * modules/strndup (EXTRA_DIST): Add strndup.h.
68446         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
68447         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
68448         * modules/time_r (EXTRA_DIST): Add time_r.h.
68449         * modules/timespec (EXTRA_DIST): Add timespec.h.
68450         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68451         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
68452         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
68453         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
68454         * modules/userspec (EXTRA_DIST): Add userspec.h.
68455         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
68456         * modules/utimens (EXTRA_DIST): Add utimens.h.
68457         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
68458         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
68459         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
68460         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
68461         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
68462         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
68463         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
68464         * modules/yesno (EXTRA_DIST): Add yesno.h.
68465
68466 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68467
68468         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
68469
68470         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
68471         * m4/dev-ino.m4, same-inode.m4: Remove.
68472
68473         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
68474         * m4/acl.m4 (AC_FUNC_ACL):
68475         * m4/backupfile.m4 (gl_BACKUPFILE):
68476         * m4/c-strtod.m4 (gl_C99_STRTOLD):
68477         * m4/canon-host.m4 (gl_CANON_HOST):
68478         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68479         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
68480         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
68481         * m4/cloexec.m4 (gl_CLOEXEC):
68482         * m4/close-stream.m4 (gl_CLOSE_STREAM):
68483         * m4/closeout.m4 (gl_CLOSEOUT):
68484         * m4/dirfd.m4 (gl_FUNC_DIRFD):
68485         * m4/dirname.m4 (gl_DIRNAME):
68486         * m4/exclude.m4 (gl_EXCLUDE):
68487         * m4/exitfail.m4 (gl_EXITFAIL):
68488         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
68489         * m4/file-type.m4 (gl_FILE_TYPE):
68490         * m4/filemode.m4 (gl_FILEMODE):
68491         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
68492         * m4/fpending.m4 (gl_FUNC_FPENDING):
68493         * m4/fprintftime.m4 (gl_FPRINTFTIME):
68494         * m4/fts.m4 (gl_FUNC_FTS):
68495         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
68496         * m4/getdate.m4 (gl_GETDATE):
68497         * m4/gethrxtime.m4 (gl_GETHRXTIME):
68498         * m4/getpagesize.m4 (gl_GETPAGESIZE):
68499         * m4/getpass.m4 (gl_FUNC_GETPASS):
68500         * m4/gettime.m4 (gl_GETTIME):
68501         * m4/getugroups.m4 (gl_GETUGROUPS):
68502         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
68503         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
68504         * m4/hard-locale.m4 (gl_HARD_LOCALE):
68505         * m4/hash.m4 (gl_HASH):
68506         * m4/idcache.m4 (gl_IDCACHE):
68507         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
68508         * m4/lchown.m4 (gl_FUNC_LCHOWN):
68509         * m4/long-options.m4 (gl_LONG_OPTIONS):
68510         * m4/lstat.m4 (gl_FUNC_LSTAT):
68511         * m4/md5.m4 (gl_MD5):
68512         * m4/memcasecmp.m4 (gl_MEMCASECMP):
68513         * m4/memcoll.m4 (gl_MEMCOLL):
68514         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
68515         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
68516         * m4/memxor.m4 (gl_MEMXOR):
68517         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
68518         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
68519         * m4/modechange.m4 (gl_MODECHANGE):
68520         * m4/mountlist.m4 (gl_MOUNTLIST):
68521         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68522         * m4/openat.m4 (gl_FUNC_OPENAT):
68523         * m4/pathmax.m4 (gl_PATHMAX):
68524         * m4/physmem.m4 (gl_PHYSMEM):
68525         * m4/posixtm.m4 (gl_POSIXTM):
68526         * m4/posixver.m4 (gl_POSIXVER):
68527         * m4/quote.m4 (gl_QUOTE):
68528         * m4/quotearg.m4 (gl_QUOTEARG):
68529         * m4/readtokens.m4 (gl_READTOKENS):
68530         * m4/readutmp.m4 (gl_READUTMP):
68531         * m4/regex.m4 (gl_REGEX):
68532         * m4/safe-read.m4 (gl_SAFE_READ):
68533         * m4/safe-write.m4 (gl_SAFE_WRITE):
68534         * m4/same.m4 (gl_SAME):
68535         * m4/save-cwd.m4 (gl_SAVE_CWD):
68536         * m4/savedir.m4 (gl_SAVEDIR):
68537         * m4/settime.m4 (gl_SETTIME):
68538         * m4/sha1.m4 (gl_SHA1):
68539         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
68540         * m4/stat-macros.m4 (gl_STAT_MACROS):
68541         * m4/stat-time.m4 (gl_STAT_TIME):
68542         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
68543         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
68544         * m4/strdup.m4 (gl_FUNC_STRDUP):
68545         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
68546         * m4/strndup.m4 (gl_FUNC_STRNDUP):
68547         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
68548         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
68549         * m4/time_r.m4 (gl_TIME_R):
68550         * m4/timespec.m4 (gl_TIMESPEC):
68551         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
68552         * m4/unlinkdir.m4 (gl_UNLINKDIR):
68553         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
68554         * m4/userspec.m4 (gl_USERSPEC):
68555         * m4/utimecmp.m4 (gl_UTIMECMP):
68556         * m4/utimens.m4 (gl_UTIMENS):
68557         * m4/xalloc.m4 (gl_XALLOC):
68558         * m4/xgetcwd.m4 (gl_XGETCWD):
68559         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
68560         * m4/xreadlink.m4 (gl_XREADLINK):
68561         * m4/xstrtod.m4 (gl_XSTRTOD):
68562         * m4/yesno.m4 (gl_YESNO):
68563         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68564         to get the necessary .h files and whatnot.
68565
68566 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
68567             Bruno Haible  <bruno@clisp.org>
68568
68569         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
68570         /bin/sh understanding of '!' conditional negation.
68571
68572 2006-08-21  Jim Meyering  <jim@meyering.net>
68573
68574         * modules/openat (Depends-on): Really alphabetize.
68575
68576         * modules/acl (Depends-on): Add error and quote.
68577
68578         * check-module (find_included_lib_files): Add at-func.c to the
68579         ok-to-include-more-than-once white list.
68580
68581         * modules/openat (Depends-on): Add lstat.  Alphabetize.
68582
68583 2006-08-21  Bruno Haible  <bruno@clisp.org>
68584
68585         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68586         Emit a pkgdata_DATA variable only if some snippets add contents to it.
68587         Reported by Martin Lambers <marlam@marlam.de>.
68588
68589 2006-08-21  Bruno Haible  <bruno@clisp.org>
68590
68591         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
68592         specify an installation location, don't emit a noinst_LIBRARIES or
68593         noinst_LTLIBRARIES assignment.
68594
68595 2006-08-21  Bruno Haible  <bruno@clisp.org>
68596
68597         BeOS portability.
68598         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
68599         BeOS has mbrtowc() but no <wctype.h>.
68600
68601 2006-08-21  Bruno Haible  <bruno@clisp.org>
68602
68603         BeOS portability.
68604         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
68605         exist.
68606
68607 2006-08-21  Bruno Haible  <bruno@clisp.org>
68608
68609         BeOS portability.
68610         * lib/mbchar.h: Include <wctype.h> only if it exists.
68611
68612 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68613
68614         Remove files that are no longer needed by their respective modules.
68615         * m4/obstack.m4: Remove.
68616         * m4/strerror_r.m4: Remove.
68617         * m4/uint32_t.m4: Remove.
68618         * m4/uintptr_t.m4: Remove.
68619         * m4/ullong_max.m4: Remove.
68620         * m4/xstrtoimax.m4: Remove.
68621         * m4/xstrtoumax.m4: Remove.
68622
68623         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
68624         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
68625         dependencies now capture this.
68626
68627         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
68628         Do not use AC_LIBSOURCES, since gnulib modules now do this.
68629         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
68630         * m4/human.m4 (gl_HUMAN): Likewise.
68631         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
68632         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
68633
68634         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
68635
68636         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
68637         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
68638         stdint.
68639         * m4/human.m4 (gl_HUMAN): Likewise.
68640         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
68641         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
68642         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68643         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68644         * m4/xstrtol (gl_XSTRTOL): Likewise.
68645
68646         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
68647         AC_TYPE_LONG_LONG_INT.
68648         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68649         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
68650         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
68651         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68652
68653         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
68654         on stdbool.
68655
68656         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
68657         (gl_PREREQ_XSTRTOUL): Remove.
68658
68659         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
68660
68661         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
68662         mode.
68663
68664 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         Add and change modules to make it easier for coreutils to use
68667         gnulib-tool.
68668         * modules/backupfile (Files): Remove m4/d-ino.m4.
68669         (Depends-on): Add d-ino.
68670         * modules/cycle-check (Depends-on): Add stdint.
68671         (lib_SOURCES): Add cycle-check.h.
68672         * modules/d-ino: New module.
68673         * modules/d-type: New module.
68674         * modules/error (Files): Remove m4/strerror_r.m4.
68675         * modules/filemode (Files): Add m4/st_dm_mode.m4.
68676         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68677         m4/inttypes_h.m4, m4/uintmax_t.m4.
68678         (Depends-on): Add stdint.
68679         (lib_SOURCES): Add fsusage.h.
68680         * modules/getcwd (Files): Remove d-ino.m4.
68681         (Depends-on): Add d-ino.
68682         * modules/getndelim2 (Depends-on): Add stdint.
68683         * modules/glob (Files): Remove m4/d-type.m4.
68684         (Depends-on): Add d-type.
68685         * modules/host-os: New module.
68686         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
68687         m4/inttypes_h.m4, m4/uintmax_t.m4.
68688         * Depends-on: Add stdint.
68689         (lib_SOURCES): Add human.h.
68690         * modules/inttostr (Files): Remove m4/intmax_t.m4,
68691         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
68692         m4/uintmax_t.m4, m4/ulonglong.m4.
68693         (Depends-on): Add stdint.
68694         (EXTRA_DIST): Add inttostr.h.
68695         * modules/lchmod: New module.
68696         * modules/link-follow: New module.
68697         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
68698         (Depends-on): Add lchmod.
68699         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
68700         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
68701         (Depends-on): Add stdint.
68702         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
68703         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
68704         (Depends-on): Add stdint.
68705         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
68706         * modules/perl: New module.
68707         * modules/regex (Depends-on): Add stdint.
68708         * modules/rmdir-errno: New module.
68709         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68710         m4/intmax_t.m4.
68711         (Depends-on): Add stdint.
68712         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68713         m4/uintmax_t.m4.
68714         (Depends-on): Add stdint.
68715         * modules/unlink-busy: New module.
68716         * modules/utimecmp (Depends-on): Add stdint.
68717         * modules/uptime: New module.
68718         * modules/winsz-ioctl: New module.
68719         * modules/winsz-termios: New module.
68720         * modules/xnanosleep (Depends-on): Add nanosleep.
68721         * modules/ullong_max: Remove.
68722         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
68723         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
68724         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
68725         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
68726         (Depends-on): Add inttypes.
68727         (lib_SOURCES): Add xstrtol.h.
68728         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
68729         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
68730         * MODULES.html.sh: Move 'assert' into the assert section.
68731         Move 'dummy' into the linking section.
68732         Remove ullong_max.
68733         Add section for compatibility checks for POSIX:2001 functions,
68734         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
68735         winsz-ioctl, and winsz-termios into it.
68736         Add lchmod.
68737         Add top-level Misc section and put host-os, perl, and uptime
68738         into it.
68739
68740 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68741
68742         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
68743         now assume the stdint module.  Do not include inttypes.h.
68744         * lib/fsusage.h: Likewise.
68745         * lib/getndelim2.c: Likewise.
68746         * lib/human.h: Likewise.
68747         * lib/inttostr.h: Likewise.
68748         * lib/obstack.c: Likewise.
68749         * lib/regex_internal.h: Likewise.
68750         * lib/tempname.c: Likewise.
68751         * lib/utimecmp.c: Likewise.
68752         * lib/xstrtol.h: Likewise.
68753
68754         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
68755
68756         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
68757         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
68758         * lib/xtime.h: Likewise.
68759
68760 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68761
68762         * modules/openat (Files): Add lib/fchmodat.c.
68763         Fixes problem reported by Jay Youngman.
68764
68765 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68766
68767         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
68768         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
68769
68770 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
68771             Bruno Haible  <bruno@clisp.org>
68772
68773         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
68774         and is a script that invokes bison. Tighten the code. Add comments.
68775
68776 2006-08-18  Jim Meyering  <jim@meyering.net>
68777
68778         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
68779         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
68780         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
68781         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
68782
68783 2006-08-18  Bruno Haible  <bruno@clisp.org>
68784
68785         * modules/bison-i18n: New file.
68786         * MODULES.html.sh (Internationalization functions): Add it.
68787
68788 2006-08-18  Bruno Haible  <bruno@clisp.org>
68789
68790         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
68791         sys/statvfs.h. When getmntinfo was found, check its declaration and
68792         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
68793
68794 2006-08-18  Bruno Haible  <bruno@clisp.org>
68795
68796         * m4/bison-i18n.m4: New file, from bison.
68797
68798 2006-08-18  Bruno Haible  <bruno@clisp.org>
68799
68800         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
68801         (ME_DUMMY): Treat "kernfs" as a dummy.
68802         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
68803
68804 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68805
68806         Update from coreutils.
68807
68808         2006-08-15  Jim Meyering  <jim@meyering.net>
68809
68810         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
68811
68812         2006-01-17  Jim Meyering  <jim@meyering.net>
68813
68814         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
68815
68816         2006-01-11  Jim Meyering  <jim@meyering.net>
68817
68818         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
68819         Check for the lchmod function.
68820
68821 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68822
68823         Update from coreutils.
68824
68825         * lib/__fpending.h: Add copyright notice.
68826         * lib/fprintftime.h: Likewise.
68827         * lib/savedir.c: Use (C) in copyright notice.
68828         * lib/savedir.h: Likewise.
68829
68830         2006-08-15  Jim Meyering  <jim@meyering.net>
68831
68832         * lib/at-func.c: New file, with the logic of all emulated at-functions.
68833         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
68834         in support of the EXPECTED_ERRNO macro.
68835         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
68836         definitions.  Instead, define the appropriate symbols and include
68837         "at-func.c".
68838         * lib/mkdirat.c (mkdirat): Likewise.
68839         * lib/fchmodat.c (fchmodat): Likewise.
68840         (ENOSYS): Remove definition.
68841         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
68842         it.  Don't include "unistd--.h" -- it wasn't ever used.
68843
68844         2006-01-17  Jim Meyering  <jim@meyering.net>
68845
68846         Rewrite fts.c not to change the current working directory,
68847         by using openat, fstatat, fdopendir, etc..
68848
68849         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
68850         (HAVE_OPENAT_SUPPORT): Define.
68851         [_LIBC] (fchdir): Don't undef or define; no longer used.
68852         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
68853         Now, this `function' always succeeds, and consumes its file descriptor
68854         parameter -- so callers must not close such FDs.  Update callers.
68855         (diropen_fd, opendirat, cwd_advance_fd): New functions.
68856         (diropen): Add parameter, SP.  Adjust all callers.
68857         Implement using diropen_fd, rather than open.
68858         (fts_open): Initialize new member, fts_cwd_fd.
68859         Remove fts_rft-setting code.
68860         (fts_close): Close fts_cwd_fd, if necessary.
68861         (__opendir2): Define in terms of opendir or opendirat,
68862         depending on whether the FST_NOCHDIR flag is set.
68863         (fts_build): Since fts_safe_changedir consumes its FD, and since
68864         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
68865         and close the dup'd file descriptor upon failure.
68866         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
68867         (fts_safe_changedir): Tweak semantics to reflect that this function
68868         now calls cwd_advance_fd and hence consumes its FD argument.
68869         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
68870         [struct FTS] (fts_rft): Remove now-unused member.
68871         [struct FTS] (fts_cycle.state): Improve comment.
68872
68873         * lib/openat.c (openat_needs_fchdir): New function.
68874         * lib/openat.h (openat_needs_fchdir): Declare it.
68875
68876 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68877
68878         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
68879         Problem and fix reported by Pádraig Brady in
68880         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
68881
68882 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68883
68884         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
68885
68886 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68887
68888         * lib/memcoll.c (memcoll): Optimize for the common case where the
68889         arguments are bytewise equal.
68890
68891 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68892
68893         * doc/regexprops-generic.texi: Add a copyright notice.
68894
68895 2006-08-15  Bruno Haible  <bruno@clisp.org>
68896
68897         * modules/tmpdir (License): Change to LGPL.
68898
68899 2006-08-15  Bruno Haible  <bruno@clisp.org>
68900
68901         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
68902         module.
68903
68904 2006-08-14  Simon Josefsson  <jas@extundo.com>
68905
68906         * config/srclist.txt: Add gnupload.
68907
68908 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68909
68910         Change copyright notice from LGPL 2 to GPL 2, since that's the
68911         standard form used in the gnulib repository.
68912         * tests/test-lock.c: Likewise.
68913         * tests/test-stdint.c: Likewise.
68914         * tests/test-tls.c: Likewise.
68915
68916         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
68917         prelude-manager.  User shorter URLs for GNU projects, without '?'.
68918         Add copyright notice.
68919
68920         * check-module: Add copyright notice.  Output a copyright
68921         notice if "--version" is specified.
68922         * modules/COPYING: New file.
68923         * tests/test-getaddrinfo.c: Add copyright notice.
68924         * tests/test-verify.c: Likewise.
68925
68926 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68927
68928         Change copyright notice from LGPL 2 to GPL 2, since that's the
68929         standard form used in the gnulib repository.
68930         * lib/lock.c: LGPL -> GPL.
68931         * lib/lock.h: Likewise.
68932         * lib/strnlen1.c: Likewise.
68933         * lib/strnlen1.h: Likewise.
68934         * lib/tls.c: Likewise.
68935         * lib/tls.h: Likewise.
68936         * lib/tmpdir.c: Likewise.
68937
68938         * lib/TODO: Remove; this belongs only in coreutils.
68939
68940 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68941
68942         Add copyright notices to long-enough files that lack them, since
68943         otherwise the files aren't clearly free.  Use the same notice that
68944         getdate.texi already uses.
68945         * doc/alloca-opt.texi: Add copyright notice.
68946         * doc/alloca.texi: Likewise.
68947         * doc/ctime.texi: Likewise.
68948         * doc/functions.texi: Likewise.
68949         * doc/gcd.texi: Likewise.
68950         * doc/gnulib-tool.texi: Likewise.
68951         * doc/inet_ntoa.texi: Likewise.
68952         * doc/visibility.texi: Likewise.
68953
68954         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
68955         * doc/quote.texi: Add copyright notice.
68956
68957         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
68958         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
68959         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
68960         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
68961         is now obsolete, and give a pointer to the Sun list.
68962         Add copyright notice.
68963
68964 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68965
68966         * config/srclistvars.sh: Add copyright notice.
68967
68968 2006-08-14  Eric Blake  <ebb9@byu.net>
68969
68970         Import the following change from libc:
68971
68972         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
68973
68974         Upstream bug 2997.
68975         * lib/misc/error.c: Add space between program name and message if file
68976         name is missing.
68977
68978 2006-08-12  Karl Berry  <karl@gnu.org>
68979
68980         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
68981         remove, these originate in gnulib now.
68982
68983 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68984
68985         * doc/Makefile (standards.info standards.html standards.dvi):
68986         Also depend on make-stds.texi.
68987
68988 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68989
68990         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
68991         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
68992
68993         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
68994         in wchar_t.  Problem reported by Eric Blake.
68995
68996         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
68997         LEN is smaller than SIZE.  Suggested by Bruno Haible.
68998         Also, help the compiler to keep LEN in a register.
68999
69000 2006-08-11  Eric Blake  <ebb9@byu.net>
69001
69002         * users.txt: Sort.  Add tar.
69003
69004 2006-08-11  Bruno Haible  <bruno@clisp.org>
69005
69006         * users.txt: New file.
69007
69008 2006-08-11  Bruno Haible  <bruno@clisp.org>
69009
69010         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69011         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69012
69013 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69014
69015         * modules/snprintf (Depends-on): Remove minmax.
69016         (Maintainer): Add self and Bruno.
69017
69018 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69019
69020         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69021         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69022         (EOVERFLOW): Define if the system does not.
69023         Do not include "minmax.h"; it wasn't used.
69024         (snprintf): Don't assume size_t promotes to an unsigned type.
69025         Fix bug when generated string was too long for the buffer: the
69026         buffer's contents are supposed to be the initial prefix of the
69027         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69028         exceeds INT_MAX; do the check ourselves.
69029
69030         Import the following changes from libc:
69031
69032         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69033
69034         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69035         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69036         set wc to the byte which couldn't be converted.
69037         (re_string_reconstruct): Don't clear valid_raw_len before calling
69038         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69039         tip_context using re_string_context_at.
69040
69041         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69042
69043         * lib/posix/regex.h: g++ still cannot handled [restrict].
69044
69045         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69046
69047         * lib/posix/regex.h: Remove special handling for VMS.
69048
69049 2006-08-10  Jim Meyering  <jim@meyering.net>
69050
69051         * modules/same-inode: New module.
69052         * modules/dev-ino: New module.
69053         * modules/cycle-check: Depend on these modules, rather than simply
69054         including their .h files.
69055         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69056         required via m4/cycle-check.m4.
69057         * modules/same: Depend on new same-inode module, rather than
69058         including same-inode.h.
69059         * modules/chdir-safer: New file.
69060
69061         * modules/chown (Depends-on): Add stat-macros.
69062
69063 2006-08-10  Jim Meyering  <jim@meyering.net>
69064
69065         * m4/cycle-check.m4: New file.
69066         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69067         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69068
69069 2006-08-10  Eric Blake  <ebb9@byu.net>
69070
69071         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69072         in from original proposal.
69073
69074 2006-08-10  Eric Blake  <ebb9@byu.net>
69075         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69076
69077         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69078         namespace.
69079
69080 2006-08-10  Bruno Haible  <bruno@clisp.org>
69081
69082         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69083         as well.
69084
69085 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69086
69087         Sync from coreutils.
69088
69089         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69090
69091         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69092         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69093
69094 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69095
69096         * modules/restrict: Remove; no longer needed now that we assume
69097         Autoconf 2.59 or later.
69098         * MODULES.html.sh: Remove 'restrict'.
69099         * modules/argp (Depends-on): Remove 'restrict'.
69100         * modules/base64 (Depends-on): Likewise.
69101         * modules/gc (Depends-on): Likewise.
69102         * modules/getaddrinfo (Depends-on): Likewise.
69103         * modules/glob (Depends-on): Likewise.
69104         * modules/inet_ntop (Depends-on): Likewise.
69105         * modules/inet_pton (Depends-on): Likewise.
69106         * modules/memxor (Depends-on): Likewise.
69107         * modules/regex (Depends-on): Likewise.
69108         * modules/strtok_r (Depends-on): Likewise.
69109         * modules/time_r (Depends-on): Likewise.
69110
69111 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69112
69113         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69114         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69115         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69116         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69117         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69118         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69119         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69120         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69121
69122         Merge from coreutils.
69123         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69124         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69125         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69126         * m4/time_r.m4 (gl_TIME_R): Likewise.
69127
69128 2006-08-09  Karl Berry  <karl@gnu.org>
69129
69130         * config/srclist.txt: no more gettext-tools, per Bruno.
69131
69132 2006-08-08  Eric Blake  <ebb9@byu.net>
69133
69134         * modules/verror: New module.
69135         * MODULES.html.sh: Document it.
69136
69137 2006-08-08  Eric Blake  <ebb9@byu.net>
69138
69139         * lib/verror.h, lib/verror.c: New files.
69140
69141 2006-08-08  Eric Blake  <ebb9@byu.net>
69142
69143         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69144         verror_at_line output complies with GNU Coding Standards even when
69145         file is NULL.
69146
69147 2006-08-07  Bruno Haible  <bruno@clisp.org>
69148
69149         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69150         versions of AIX.
69151         Reported by Ralf Wildenhues.
69152
69153 2006-08-07  Bruno Haible  <bruno@clisp.org>
69154
69155         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69156         in an AC_DEFUN. Needed so that the autoconf snippets can use
69157         AC_REQUIRE.
69158
69159 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69160
69161         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69162         Initialize pkgdata_DATA.
69163         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69164         overriding it.
69165
69166 2006-08-06  Eric Blake  <ebb9@byu.net>
69167
69168         * lib/error.h: Fold in some upstream changes from glibc.
69169         * lib/error.c: Likewise.
69170
69171 2006-08-04  Bruno Haible  <bruno@clisp.org>
69172
69173         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69174         Make the mostlyclean-local rule depend on mostlyclean-generic.
69175         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69176
69177 2006-07-31  Bruno Haible  <bruno@clisp.org>
69178
69179         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69180         <stdlib.h>, <string.h>.
69181
69182 2006-07-30  Bruno Haible  <bruno@clisp.org>
69183
69184         * modules/readlink (License): Change to LGPL.
69185
69186 2006-07-30  Bruno Haible  <bruno@clisp.org>
69187
69188         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69189         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69190         set PKGDATADIR to point to it.
69191
69192 2006-07-30  Bruno Haible  <bruno@clisp.org>
69193
69194         * modules/csharpexec (configure.ac): Comment out macro invocation.
69195         * modules/javaexec (configure.ac): Likewise.
69196         * modules/javacomp-script (configure.ac): Likewise.
69197
69198         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69199
69200 2006-07-30  Bruno Haible  <bruno@clisp.org>
69201
69202         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69203         linked-list.
69204
69205 2006-07-30  Bruno Haible  <bruno@clisp.org>
69206
69207         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69208
69209 2006-07-30  Bruno Haible  <bruno@clisp.org>
69210
69211         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69212         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69213         get removed.
69214
69215 2006-07-29  Bruno Haible  <bruno@clisp.org>
69216
69217         Make it possible for gnulib-tool to work with locally modified or
69218         augmented gnulib repositories.
69219         * gnulib-tool (func_usage): Document --local-dir option.
69220         (local_gnulib_dir): New variable.
69221         Handle --local-dir option.
69222         (func_lookup_file): New function.
69223         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69224         (func_get_description, func_get_filelist, func_get_description,
69225         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69226         func_get_automake_snippet, func_get_include_directive,
69227         func_get_license, func_get_maintainer): Use func_lookup_file.
69228         (func_import, func_create_testdir): Use func_lookup_file.
69229
69230 2006-07-29  Bruno Haible  <bruno@clisp.org>
69231
69232         * modules/setenv (Depends-on): Add unistd.
69233
69234 2006-07-29  Bruno Haible  <bruno@clisp.org>
69235
69236         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69237
69238 2006-07-29  Bruno Haible  <bruno@clisp.org>
69239
69240         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69241
69242 2006-07-29  Bruno Haible  <bruno@clisp.org>
69243
69244         * gnulib-tool (import, update): If there is no Makefile.am, look at
69245         aclocal.m4, instead of bailing out.
69246
69247 2006-07-29  Bruno Haible  <bruno@clisp.org>
69248
69249         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
69250         Categorize the options by when they are useful.
69251
69252 2006-07-29  Bruno Haible  <bruno@clisp.org>
69253
69254         * gnulib-tool (func_usage): Document option --no-libtool.
69255         Handle option --no-libtool.
69256         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
69257         for changed semantics of $libtool variable.
69258         (func_import): Likewise. If libtool is not used, show this through
69259         an option --no-libtool.
69260         (func_create_testdir): Update.
69261
69262 2006-07-29  Bruno Haible  <bruno@clisp.org>
69263
69264         * gnulib-tool (func_import): Extend error message about missing
69265         --doc-base.
69266
69267 2006-07-29  Bruno Haible  <bruno@clisp.org>
69268
69269         * gnulib-tool (func_import): Don't create the $docbase directory if
69270         there is no file to store there.
69271
69272 2006-07-29  Bruno Haible  <bruno@clisp.org>
69273
69274         * gnulib-tool (autoconf_minversion): If a --dir option is given and
69275         relevant, look for configure.ac there, not in the current directory.
69276         Also use a simple search for AC_PREREQ, not "autoconf --trace".
69277
69278 2006-07-29  Bruno Haible  <bruno@clisp.org>
69279
69280         * gnulib-tool (SORT): New variable.
69281         (func_usage): Undocument --assume-autoconf option.
69282         Remove --assume-autoconf option handling.
69283         (autoconf_minversion): Determine from the contents of configure.ac.
69284         (func_import): Remove autoconf_minversion handling.
69285         Suggested by Eric Blake.
69286
69287 2006-07-29  Bruno Haible  <bruno@clisp.org>
69288
69289         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
69290
69291 2006-07-29  Bruno Haible  <bruno@clisp.org>
69292
69293         * config/srclist.txt (*setenv.[ch]): Remove rules.
69294
69295 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69296
69297         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
69298
69299 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69300
69301         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
69302         arpa/inet.h.
69303
69304 2006-07-28  Simon Josefsson  <jas@extundo.com>
69305
69306         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
69307         * modules/inet_pton (Depends-on): Likewise.
69308
69309 2006-07-28  Simon Josefsson  <jas@extundo.com>
69310
69311         * m4/netinet_in_h.m4: New file.
69312
69313 2006-07-28  Simon Josefsson  <jas@extundo.com>
69314
69315         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
69316         #include's.
69317
69318 2006-07-28  Simon Josefsson  <jas@extundo.com>
69319
69320         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
69321         #include's.
69322
69323 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
69324
69325         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
69326         setgid on directories only if they set these bits.
69327         * lib/modechange.h: Remove obsolete comment about masks.
69328
69329 2006-07-28  Eric Blake  <ebb9@byu.net>
69330
69331         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
69332         macro expansion.
69333
69334 2006-07-28  Bruno Haible  <bruno@clisp.org>
69335
69336         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
69337
69338 2006-07-28  Bruno Haible  <bruno@clisp.org>
69339
69340         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
69341
69342 2006-07-28  Bruno Haible  <bruno@clisp.org>
69343
69344         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69345         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69346         Define fallbacks.
69347         Avoids link error on FreeBSD 4.x.
69348         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69349
69350         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69351         encoding.
69352         * lib/mbswidth.c (iswcntrl): Likewise.
69353
69354 2006-07-27  Bruno Haible  <bruno@clisp.org>
69355
69356         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69357         test.
69358
69359 2006-07-27  Bruno Haible  <bruno@clisp.org>
69360
69361         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69362         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69363         defined.
69364
69365 2006-07-26  Eric Blake  <ebb9@byu.net>
69366
69367         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69368
69369 2006-07-26  Eric Blake  <ebb9@byu.net>
69370
69371         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69372         like mingw that lack mkstemp.
69373         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69374         avoid compilation warning on mingw.
69375
69376 2006-07-26  Bruno Haible  <bruno@clisp.org>
69377
69378         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
69379         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
69380         INT_FAST*_MIN, INTPTR_MIN.
69381
69382 2006-07-25  Bruno Haible  <bruno@clisp.org>
69383
69384         * modules/version-etc (Depends-on): Add stdarg.
69385
69386 2006-07-25  Bruno Haible  <bruno@clisp.org>
69387
69388         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
69389         complex commands.
69390
69391 2006-07-25  Bruno Haible  <bruno@clisp.org>
69392
69393         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
69394         defined in <stdarg.h> or config.h.
69395
69396 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69397
69398         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
69399         (gl_STDIO_SAFER): Remove.
69400
69401 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69402
69403         * MODULES.html.sh (File stream based Input/Output):
69404         Add fopen-safer, tmpfile-safer; remove stdio-safer.
69405         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
69406         * modules/fopen-safer, modules/tmpfile-safer: New files.
69407         * modules/stdio-safer: Remove.
69408
69409 2006-07-24  Bruno Haible  <bruno@clisp.org>
69410
69411         * modules/tmpdir: New file.
69412         * MODULES.html.sh (File system functions): Add it.
69413
69414 2006-07-24  Bruno Haible  <bruno@clisp.org>
69415
69416         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69417         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
69418
69419 2006-07-24  Bruno Haible  <bruno@clisp.org>
69420
69421         * modules/clean-temp: New file.
69422
69423 2006-07-24  Bruno Haible  <bruno@clisp.org>
69424
69425         * m4/tmpdir.m4: New file, from GNU gettext.
69426
69427 2006-07-24  Bruno Haible  <bruno@clisp.org>
69428
69429         * lib/tmpdir.h: New file, from GNU gettext.
69430         * lib/tmpdir.c: New file, from GNU gettext.
69431
69432 2006-07-24  Bruno Haible  <bruno@clisp.org>
69433
69434         * lib/clean-temp.h: New file, from GNU gettext.
69435         * lib/clean-temp.c: New file, from GNU gettext.
69436
69437 2006-07-23  Eric Blake  <ebb9@byu.net>
69438
69439         * modules/stdio-safer (Files): Add tmpfile-safer.c.
69440         (Depends-on): Add binary-io.
69441
69442 2006-07-23  Eric Blake  <ebb9@byu.net>
69443
69444         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
69445
69446 2006-07-23  Eric Blake  <ebb9@byu.net>
69447
69448         * lib/tmpfile-safer.c: New file.
69449         * lib/stdio-safer.h (fopen_safer): Add prototype.
69450         * lib/stdio--.h (tmpfile): Make safer.
69451
69452 2006-07-23  Bruno Haible  <bruno@clisp.org>
69453
69454         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
69455         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
69456         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
69457         gl_linked_remove_at): Use it.
69458
69459 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69460         and Simon Josefsson <jas@extundo.com>
69461
69462         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
69463
69464         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
69465
69466 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69467
69468         * modules/close-stream: New file.
69469         * modules/closeout (Description): Make it clear that it exits
69470         with a diagnostic on error.
69471         (Depends-on): Add close-stream.  Remove fpending, stdbool.
69472         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
69473
69474 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69475
69476         * m4/close-stream.m4: New file.
69477
69478 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69479
69480         * lib/close-stream.c, lib/close-stream.h: New files.
69481
69482 2006-07-22  Bruno Haible  <bruno@clisp.org>
69483
69484         Merge from GNU gettext 0.15.
69485
69486         2006-05-01  Bruno Haible  <bruno@clisp.org>
69487
69488                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
69489
69490         2006-07-22  Bruno Haible  <bruno@clisp.org>
69491
69492                 * modules/javaversion: New file.
69493                 * MODULES.html.sh (Java): Add javaversion.
69494
69495         2006-03-12  Bruno Haible  <bruno@clisp.org>
69496
69497                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
69498
69499         2005-12-04  Bruno Haible  <bruno@clisp.org>
69500
69501                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
69502                 (untested).
69503
69504         2006-06-21  Bruno Haible  <bruno@clisp.org>
69505
69506                 Avoid warnings from recent versions of mcs.
69507                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
69508                 -o, -L, -r any more. Use options documented since mcs-1.0
69509                 instead. Similarly for -g.
69510
69511         2005-12-04  Bruno Haible  <bruno@clisp.org>
69512
69513                 * build-aux/csharpcomp.sh.in: Suffix for resources is
69514                 .resources, not .resource.
69515
69516         2005-07-09  Bruno Haible  <bruno@clisp.org>
69517
69518                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
69519                 add a .dll suffix.
69520                 Reported by Mark Junker <mjscod@gmx.de>.
69521
69522         2006-07-22  Bruno Haible  <bruno@clisp.org>
69523
69524                 * modules/gettext: Upgrade to gettext-0.15.
69525                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
69526                 m4/visibility.m4.
69527                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
69528
69529 2006-07-22  Bruno Haible  <bruno@clisp.org>
69530
69531         Merge from GNU gettext 0.15.
69532
69533         2006-03-25  Bruno Haible  <bruno@clisp.org>
69534
69535                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
69536
69537         2006-07-21  Bruno Haible  <bruno@clisp.org>
69538
69539                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
69540                 "1.1".
69541
69542         2006-05-09  Bruno Haible  <bruno@clisp.org>
69543
69544                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
69545                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
69546                 for the conftestver execution.
69547
69548         2006-05-01  Bruno Haible  <bruno@clisp.org>
69549
69550                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
69551                 optional target-version argument. Verify that the compiler
69552                 groks source of the specified source-version, or add -source
69553                 option as necessary. Verify that the compiler produces
69554                 bytecode in the specified target-version, or add -target and
69555                 -source options as necessary. Make the result of the test
69556                 available as variable CONF_JAVAC. Also log error output in
69557                 config.log.
69558
69559         2006-03-11  Bruno Haible  <bruno@clisp.org>
69560
69561                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
69562
69563         2006-05-09  Bruno Haible  <bruno@clisp.org>
69564
69565                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
69566                 CLASSPATH_SEPARATOR to a semicolon.
69567
69568         2006-03-12  Bruno Haible  <bruno@clisp.org>
69569
69570                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
69571                 available as variable CONF_JAVA, for subsequent autoconf
69572                 tests. Also log error output in config.log.
69573
69574         2006-07-19  Bruno Haible  <bruno@clisp.org>
69575
69576                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
69577                 that getline works on glibc2 systems. Needed to avoid trouble
69578                 in relocatable.c.
69579                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
69580
69581         2005-12-04  Bruno Haible  <bruno@clisp.org>
69582
69583                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
69584                 launcher (untested).
69585
69586         2005-12-04  Bruno Haible  <bruno@clisp.org>
69587
69588                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
69589
69590         2006-07-22  Bruno Haible  <bruno@clisp.org>
69591
69592                 * gettext.m4: Update from GNU gettext-0.15.
69593                 * nls.m4: Likewise.
69594                 * po.m4: Likewise.
69595                 * inttypes-pri.m4: Likewise.
69596                 * inttypes-h.m4: Renamed from inttypes.m4.
69597                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
69598
69599 2006-07-22  Bruno Haible  <bruno@clisp.org>
69600
69601         Merge from GNU gettext 0.15.
69602
69603         2005-07-05  Bruno Haible  <bruno@clisp.org>
69604
69605                 * printf-args.c (printf_fetchargs): Work around broken
69606                 definition of wint_t on mingw.
69607
69608         2005-02-12  Bruno Haible  <bruno@clisp.org>
69609
69610                 * xallocsa.h: Add extern "C" for C++.
69611
69612         2006-05-17  Bruno Haible  <bruno@clisp.org>
69613
69614                 Cygwin portability.
69615                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
69616
69617         2006-04-30  Bruno Haible  <bruno@clisp.org>
69618
69619                 * progreloc.c: Include <mach-o/dyld.h> if available.
69620                 (find_executable): Use _NSGetExecutablePath when possible.
69621
69622         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69623
69624                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
69625                 function.
69626
69627         2005-12-29  Bruno Haible  <bruno@clisp.org>
69628
69629                 * progreloc.c (set_program_name_and_installdir): Fix
69630                 compilation error.
69631
69632         2005-12-04  Bruno Haible  <bruno@clisp.org>
69633
69634                 Cygwin portability.
69635                 * progreloc.c: Include <windows.h> also on Cygwin.
69636                 (find_executable): Add support for Cygwin.
69637                 (set_program_name_and_installdir): Handle also platforms with
69638                 nonempty EXEEXT.
69639
69640         2006-07-11  Bruno Haible  <bruno@clisp.org>
69641
69642                 * javacomp.c: Fix a comment.
69643                 Reported by Jim Meyering.
69644
69645         2006-04-30  Bruno Haible  <bruno@clisp.org>
69646
69647                 * javacomp.h (compile_java_class): Add source_version,
69648                 target_version arguments.
69649                 * javacomp.c: Rewritten to choose only a compiler that
69650                 respects the specified source_version and target_version.
69651
69652         2006-06-27  Bruno Haible  <bruno@clisp.org>
69653
69654                 Assume correct S_ISDIR macro.
69655                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
69656
69657         2006-07-22  Bruno Haible  <bruno@clisp.org>
69658
69659                 * javaversion.h: New file, from GNU gettext.
69660                 * javaversion.c: New file, from GNU gettext.
69661                 * javaversion.java: New file, from GNU gettext.
69662                 * javaversion.class: New file, from GNU gettext.
69663
69664         2006-05-17  Bruno Haible  <bruno@clisp.org>
69665
69666                 Cygwin portability.
69667                 * javaexec.c (execute_java_class): Test for jview program
69668                 also on Cygwin.
69669
69670         2006-04-09  Bruno Haible  <bruno@clisp.org>
69671
69672                 * fatal-signal.c: Don't include string.h.
69673                 (at_fatal_signal): Use a copying loop instead of memcpy.
69674
69675         2005-12-04  Bruno Haible  <bruno@clisp.org>
69676
69677                 * csharpexec.c: Add support for 'clix' launcher (untested).
69678                 (execute_csharp_using_sscli): New function.
69679                 (execute_csharp_program): Call it.
69680
69681         2006-06-21  Bruno Haible  <bruno@clisp.org>
69682
69683                 Avoid warnings from recent versions of mcs.
69684                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
69685                 -o, -L, -r any more. Use options documented since mcs-1.0
69686                 instead. Similarly for -g.
69687
69688         2005-07-09  Bruno Haible  <bruno@clisp.org>
69689
69690                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
69691                 add a .dll suffix.
69692                 Reported by Mark Junker <mjscod@gmx.de>.
69693
69694         2006-06-17  Bruno Haible  <bruno@clisp.org>
69695
69696                 * config.charset: Update for NetBSD 3.0.
69697
69698         2006-05-17  Bruno Haible  <bruno@clisp.org>
69699
69700                 Cygwin portability.
69701                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
69702
69703         2006-05-16  Bruno Haible  <bruno@clisp.org>
69704
69705                 * localcharset.c [CYGWIN]: Include <windows.h>.
69706                 (get_charset_aliases): For Cygwin, return the same CPxxx
69707                 aliases list as under WIN32.
69708                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
69709                 the environment variables. Fall back to GetACP().
69710
69711         2006-04-05  Bruno Haible  <bruno@clisp.org>
69712
69713                 * config.charset: Update Juan Manuel Guerrero's address.
69714
69715         2005-02-12  Bruno Haible  <bruno@clisp.org>
69716
69717                 * allocsa.h: Add extern "C" for C++.
69718
69719         2005-02-10  Bruno Haible  <bruno@clisp.org>
69720
69721                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
69722                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
69723
69724         2006-07-22  Bruno Haible  <bruno@clisp.org>
69725
69726                 * gettext.h: Update to GNU gettext-0.15.
69727
69728 2006-07-22  Bruno Haible  <bruno@clisp.org>
69729
69730         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
69731         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
69732         lib-prefix.m4, longdouble.m4, ssize_t.m4.
69733
69734 2006-07-21  Eric Blake  <ebb9@byu.net>
69735
69736         * modules/stdlib-safer: New file.
69737         * MODULES.html.sh (File stream based Input/Output): Add
69738         stdlib-safer.
69739
69740 2006-07-21  Eric Blake  <ebb9@byu.net>
69741
69742         * lib/stdlib-safer.h: New file from coreutils, required by
69743         stdlib--.h.
69744
69745 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
69746
69747         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
69748
69749 2006-07-20  Bruno Haible  <bruno@clisp.org>
69750
69751         * gnulib-tool: Recognize new option --assume-autoconf.
69752         (autoconf_minversion): New variable.
69753         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
69754
69755 2006-07-20  Bruno Haible  <bruno@clisp.org>
69756
69757         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
69758
69759 2006-07-19  Derek R. Price  <derek@ximbiot.com>
69760
69761         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
69762         Reindent and repaginate.
69763
69764 2006-07-19  Derek Price  <derek@ximbiot.com>
69765
69766         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
69767         Correct grammar.
69768
69769 2006-07-17  Bruno Haible  <bruno@clisp.org>
69770
69771         * modules/list: New file.
69772         * modules/array-list: New file.
69773         * modules/carray-list, modules/carray-list-tests: New files.
69774         * modules/linked-list, modules/linked-list-tests: New files.
69775         * modules/avltree-list, modules/avltree-list-tests: New files.
69776         * modules/rbtree-list, modules/rbtree-list-tests: New files.
69777         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
69778         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
69779         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
69780         * modules/oset: New file.
69781         * modules/array-oset: New file.
69782         * modules/avltree-oset, modules/avltree-oset-tests: New files.
69783         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
69784         * tests/test-carray_list.c: New file.
69785         * tests/test-linked_list.c: New file.
69786         * tests/test-avltree_list.c: New file.
69787         * tests/test-rbtree_list.c: New file.
69788         * tests/test-linkedhash_list.c: New file.
69789         * tests/test-avltreehash_list.c: New file.
69790         * tests/test-rbtreehash_list.c: New file.
69791         * tests/test-avltree_oset.c: New file.
69792         * tests/test-rbtree_oset.c: New file.
69793         * MODULES.html.sh (Container data structures): New section.
69794
69795 2006-07-17  Bruno Haible  <bruno@clisp.org>
69796
69797         * m4/gl_list.m4: New file.
69798
69799 2006-07-17  Bruno Haible  <bruno@clisp.org>
69800
69801         * lib/gl_list.h: New file.
69802         * lib/gl_list.c: New file.
69803         * lib/gl_array_list.h: New file.
69804         * lib/gl_array_list.c: New file.
69805         * lib/gl_carray_list.h: New file.
69806         * lib/gl_carray_list.c: New file.
69807         * lib/gl_linked_list.h: New file.
69808         * lib/gl_linked_list.c: New file.
69809         * lib/gl_anylinked_list1.h: New file.
69810         * lib/gl_anylinked_list2.h: New file.
69811         * lib/gl_avltree_list.h: New file.
69812         * lib/gl_avltree_list.c: New file.
69813         * lib/gl_anyavltree_list1.h: New file.
69814         * lib/gl_anyavltree_list2.h: New file.
69815         * lib/gl_rbtree_list.h: New file.
69816         * lib/gl_rbtree_list.c: New file.
69817         * lib/gl_anyrbtree_list1.h: New file.
69818         * lib/gl_anyrbtree_list2.h: New file.
69819         * lib/gl_anytree_list1.h: New file.
69820         * lib/gl_anytree_list2.h: New file.
69821         * lib/gl_linkedhash_list.h: New file.
69822         * lib/gl_linkedhash_list.c: New file.
69823         * lib/gl_anyhash_list1.h: New file.
69824         * lib/gl_anyhash_list2.h: New file.
69825         * lib/gl_avltreehash_list.h: New file.
69826         * lib/gl_avltreehash_list.c: New file.
69827         * lib/gl_rbtreehash_list.h: New file.
69828         * lib/gl_rbtreehash_list.c: New file.
69829         * lib/gl_anytreehash_list1.h: New file.
69830         * lib/gl_anytreehash_list2.h: New file.
69831
69832         * lib/gl_oset.h: New file.
69833         * lib/gl_oset.c: New file.
69834         * lib/gl_array_oset.h: New file.
69835         * lib/gl_array_oset.c: New file.
69836         * lib/gl_avltree_oset.h: New file.
69837         * lib/gl_avltree_oset.c: New file.
69838         * lib/gl_rbtree_oset.h: New file.
69839         * lib/gl_rbtree_oset.c: New file.
69840         * lib/gl_anytree_oset.h: New file.
69841
69842 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69843
69844         * m4/mkancesdirs.m4: New file.
69845         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
69846         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
69847         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
69848         it.
69849
69850 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69851
69852         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
69853         * lib/mkancesdirs.h: New files.
69854         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
69855         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
69856         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
69857         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
69858         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
69859         callers changed.  Revamp internals significantly, by not
69860         attempting to create directories that are temporarily more
69861         permissive than the final results.  Do not attempt to use
69862         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
69863         This removes some race conditions, fixes some bugs, and simplifies
69864         things.  Use new dirchownmod function to do owner and mode changes.
69865         * lib/mkdir-p.h: Likewise.
69866         * lib/modechange.c (octal_to_mode): New function.
69867         (struct mode_change): New member mentioned.
69868         (make_node_op_equals): New arg mentioned.  All callers changed.
69869         (mode_compile): Keep track of which mode bits the user has explicitly
69870         mentioned.
69871         (mode_adjust): New arg DIR, so that we implement the X op correctly.
69872         New arg PMODE_BITS, to keep track of which mode bits the user
69873         mentioned; it treats S_ISUID and S_ISGID speciall.
69874         All callers changed.
69875         * lib/modechange.h: Likewise.
69876
69877 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69878
69879         * MODULES.html.sh: Add mkancestors.
69880         * modules/mkancesdirs: New module.
69881         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
69882         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
69883         The chdir-safer and afs files are now orphans; I'll remove them
69884         unless someone speaks up.
69885         Add lib/dirchownmod.c, lib/dirchownmod.h.
69886         (Depends-on): Remove alloca, chown, save-cwd, dirname.
69887         Add lchown, mkancesdirs.
69888         (Maintainer): Add self.
69889
69890 2006-07-15  Karl Berry  <karl@gnu.org>
69891
69892         * gnulib-tool: help message wording/arrangement.
69893
69894 2006-07-14  Simon Josefsson  <jas@extundo.com>
69895
69896         * doc/gnulib.texi (Libtool and Windows): New section.
69897
69898 2006-07-12  Simon Josefsson  <jas@extundo.com>
69899
69900         * modules/gendocs (License): Fix license, approved by Karl.
69901
69902 2006-07-12  Eric Blake  <ebb9@byu.net>
69903
69904         * MODULES.html.sh: Add gendocs.
69905
69906 2006-07-11  Eric Blake  <ebb9@byu.net>
69907
69908         * modules/fdl: New module, to install doc/fdl.texi.
69909         * MODULES.html.sh: Add new section for documentation modules.
69910         * gnulib-tool: Avoid space-tab.
69911         (--doc-base): New option, to manage files from doc.
69912
69913 2006-07-11  Eric Blake  <ebb9@byu.net>
69914
69915         * m4/absolute-header.m4: Fix comments to match recent change.
69916
69917 2006-07-11  Eric Blake  <ebb9@byu.net>
69918
69919         * gnulib-tool: List --doc-base before --tests-base.
69920
69921 2006-07-11  Derek R. Price  <derek@ximbiot.com>
69922
69923         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
69924
69925 2006-07-11  Bruno Haible  <bruno@clisp.org>
69926
69927         * README: Mention where to put documentation.
69928
69929 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69930
69931         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
69932
69933 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69934
69935         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
69936         to stdint.m4.
69937
69938 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69939
69940         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
69941         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
69942         "no/such/file/stdint.h" when there is no such file, so that
69943         the resulting C code can be parsed by dodgy compilers.
69944         Problems reported by Bob Proulx.
69945
69946 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69947
69948         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
69949         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69950         macros into the GNU _D_EXACT_NAMLEN.
69951         * lib/savedir.c:  Likewise.
69952         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
69953
69954 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69955         and Paul Eggert  <eggert@cs.ucla.edu>
69956
69957         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
69958         * m4/savedir.m4:
69959         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69960         macros into the GNU _D_EXACT_NAMLEN.
69961
69962 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69963
69964         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
69965         around the absolute name, to work around a problem with the HP-UX
69966         11.23 native C compiler, reported by Bob Proulx.
69967
69968 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69969
69970         * doc/maintain.texi, make-stds.texi: Sync from
69971         <http://savannah.gnu.org/projects/gnustandards>.
69972
69973 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69974
69975         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
69976
69977 2006-07-09  Jim Meyering  <jim@meyering.net>
69978
69979         * m4/glob.m4: Remove a doubled word in a comment.
69980
69981 2006-07-09  Jim Meyering  <jim@meyering.net>
69982
69983         * lib/argp-pv.c: Remove a doubled word in a comment.
69984         * lib/check-version.c (check_version): Likewise.
69985         * lib/javacomp.c (compile_java_class): Likewise.
69986
69987 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69988
69989         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
69990         for the benefit of people using Autoconf 2.60.  If you want to
69991         support older Autoconf versions you can copy m4/onceonly_2_57.m4
69992         (or m4/onceonly.m4, if pre-2.57) manually.
69993
69994 2006-07-08  Jim Meyering  <jim@meyering.net>
69995
69996         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
69997         comment.
69998         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
69999         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70000         comment.
70001
70002 2006-07-08  Jim Meyering  <jim@meyering.net>
70003
70004         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70005
70006 2006-07-07  Simon Josefsson  <jas@extundo.com>
70007
70008         * tests/test-crc.c: Change expected crc value, the test vector
70009         were probably computed using the old broken crc.c?
70010
70011 2006-07-06  Simon Josefsson  <jas@extundo.com>
70012
70013         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70014         now the canonical place for the M4 file).
70015
70016         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70017         from the sys_socket dependency now.
70018
70019         * modules/inet_pton (Files): Ditto.
70020
70021         * modules/inet_ntop (Files): Ditto.
70022
70023 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70024
70025         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70026         not gl_PREREQ_GETUSERSHELL.
70027
70028 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70029
70030         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70031         with only one argument, for Autoconf 2.60.
70032         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70033         expand to nothing, so add a shell command to avoid syntax error.
70034         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70035
70036 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70037
70038         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70039
70040 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70041
70042         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70043         no longer needed.  Check for isblank decl.
70044         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70045         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70046         of existence.
70047
70048 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70049
70050         * lib/getloadavg.c: Use __VMS, not VMS.
70051         * lib/getopt.c: Likewise.
70052         * lib/getpagesize.h: Likewise.
70053         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70054         and probably does not work.
70055
70056 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70057
70058         * lib/.cppi-disable: Add wcwidth.
70059         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70060         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70061         (ISGRAPH): Remove.  All uses changed to isgraph.
70062         (FOLD) [!defined _LIBC]: Remove special case.
70063         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70064         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70065         HAVE_ISBLANK.
70066         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70067         case.
70068
70069 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70070
70071         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70072         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70073         brackets.  Other minor changes to suppress some compiler
70074         warnings.
70075
70076 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70077         and Paul Eggert  <eggert@cs.ucla.edu>
70078
70079         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70080         of invoking obsolescent AC_HEADER_DIRENT macro.
70081         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70082         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70083         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70084         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70085         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70086         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70087         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70088         * m4/readdir.m4: Remove; no longer needed.
70089
70090 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70091         and Paul Eggert  <eggert@cs.ucla.edu>
70092
70093         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70094         Don't worry about this obsolete case any more.
70095         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70096         directories.
70097         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70098         worry about this obsolete case any more.
70099         * lib/fts.c: Likewise.
70100         * lib/getcwd.c: Likewise.
70101         * lib/glob.h: Likewise.
70102         * lib/savedir.c: Likewise.
70103
70104 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70105
70106         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70107         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70108         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70109         needed.
70110         All uses removed.
70111         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70112         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70113         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70114         needed.
70115         * m4/getdate.m4 (gl_GETDATE): Likewise.
70116         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70117         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70118         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70119         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70120         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70121         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70122         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70123         needed.
70124
70125 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70126
70127         * lib/memcasecmp.c: Include <limits.h>.
70128         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70129         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70130         Don't assume isdigit succeeds only on '0' through '9'.
70131
70132 2006-07-05  Eric Blake  <ebb9@byu.net>
70133
70134         * modules/getaddrinfo (Depends-on): Add snprintf.
70135
70136 2006-07-05  Eric Blake  <ebb9@byu.net>
70137
70138         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70139         to avoid 'header present but could not be compiled' on cygwin.
70140
70141 2006-07-05  Eric Blake  <ebb9@byu.net>
70142
70143         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70144         missing from netdb.h.
70145         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70146
70147 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70148
70149         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70150         no longer needed.
70151         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70152         * m4/getdate.m4 (gl_GETDATE): Likewise.
70153         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70154         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70155         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70156         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70157         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70158
70159 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70160
70161         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70162         All uses of is_space replaced by isspace.
70163         * lib/exit.h: Don't talk about STDC_HEADERS.
70164         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70165         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70166         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70167         replaced by isprint etc.
70168         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70169         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70170         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70171         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70172         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70173         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70174
70175 2006-07-05  Bruno Haible  <bruno@clisp.org>
70176
70177         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70178         the function exists, before testing against AIX.
70179         Reported by Martin Lambers <marlam@marlam.de>.
70180
70181 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70182
70183         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70184         From Mark D. Baushke.
70185
70186 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70187
70188         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70189         to the absolute name, not just one, to bypass Sun C 5.8's
70190         "warning: #include of /usr/include/... may be non-portable".
70191
70192 2006-07-04  Eric Blake  <ebb9@byu.net>
70193
70194         * modules/dirname-tests: New test module.
70195         * tests/test-dirname.c: New file, replacing dirname.c
70196         TEST_DIRNAME section that was recently deleted.
70197
70198 2006-07-04  Bruno Haible  <bruno@clisp.org>
70199
70200         Assume ANSI C header files and <ctype.h> functions.
70201         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70202         (mbsnwidth): Use isprint, iscntrl instead.
70203
70204 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70205
70206         Merge from coreutils.
70207         * MODULES.html.sh: Add xstrtold.
70208         * modules/xstrtold: New file.
70209         * modules/cycle-check (Files): Add lib/same-inode.h.
70210         * modules/dirname (Files): Add m4/double-slash-root.m4.
70211         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70212         * modules/mkdir-p (Files): Add lib/same-inode.h.
70213         * modules/same (Files): Add lib/same-inode.h.
70214
70215 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70216
70217         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70218         This is to keep the terminology clean; POSIX talks about
70219         "absolute pathnames", not "full pathnames", but the GNU
70220         Coding Standards say to use "path" for something else;
70221         so use "absolute" to keep both sides happy.
70222         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70223         Set gl_absolute_header, not gl_full_header_path.
70224         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70225         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70226         All uses changed.
70227
70228         Merge from coreutils.
70229
70230         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70231
70232         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70233         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70234         want to require the building of c-strtod.o.
70235         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70236         needs -lm directly.
70237         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70238
70239         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70240
70241         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70242         --as-needed option if available.  Problem reported by Albert Chin in
70243         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70244         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
70245         cc merely issues a bunch of annoying warnings for --as-needed
70246         (this problem was reported by Bob Proulx).  Also, try linking with
70247         -lm to detect a bug in binutils 2.16 (this problem was reported
70248         by Ralf Wildenhues).
70249
70250         2006-06-18  Jim Meyering  <jim@meyering.net>
70251
70252         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
70253         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
70254         macro.
70255         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
70256         also check for glibc-2.4's abort-inducing bug.
70257
70258         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
70259         Low-probability clean-up should be to use rmdir to get rid of
70260         the just-created directory, not unlink.
70261
70262         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
70263         configure fail, and request a bug report to inform us about it.
70264         Add a comment that, barring reports to the contrary, in 2007 we'll
70265         assume ftruncate is universally available.
70266
70267         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70268
70269         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
70270
70271         2006-03-12  Jim Meyering  <jim@meyering.net>
70272
70273         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
70274         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
70275         * m4/same.m4 (gl_SAME): Likewise.
70276         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
70277
70278         2006-03-11  Eric Blake  <ebb9@byu.net>
70279
70280         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
70281         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
70282         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
70283         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
70284
70285 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70286
70287         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
70288         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
70289         reported by Mark D. Baushke, one in
70290         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
70291
70292         Merge from coreutils.
70293
70294         * lib/.cppi-disable: Add stdint_.h.
70295         * lib/.cvsignore: Add stdint.h.
70296
70297         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70298
70299         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
70300         both double and long double versions.
70301         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
70302         * lib/xstrtold.c: New file.
70303         * lib/xstrtod.h (xstrtold): New decl.
70304
70305         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70306
70307         * lib/filemode.c (setst): Remove.
70308         (strmode): Rewrite to avoid setst.  This makes the code shorter,
70309         (arguably) clearer, and the generated code is a bit smaller on my
70310         Debian GNU/Linux stable x86 host.
70311
70312         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70313
70314         * lib/filemode.c: Include "filemode.h" first, to test the interface.
70315         Assume that filemode.h includes sys/types.h and sys/stat.h.
70316         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
70317         (ftypelet): Reorder to put common cases first, for efficiency.
70318         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
70319         to do 'M'.
70320         (strmode): Renamed from mode_string, and now stores 12 bytes instead
70321         of 10, for compatibility with FreeBSD.  All callers changed.
70322         (filemodestring): Now stores 12 bytes instead of 10, and sets file
70323         types that can't be deduced solely from st_mode.  First arg is now a
70324         const pointer.
70325         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
70326         (strmode): Renamed from mode_string.
70327         (filemodestring): New decl.
70328         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
70329         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
70330         needed.
70331         (S_ISPORT, S_ISWHT): New macros, if not already defined.
70332
70333         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70334
70335         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
70336         fsusage.h now does that.  Include fsusage.h first, to test interface.
70337         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
70338         at most one method (the old code could have generated decls that
70339         didn't conform to C89, not that this was ever exercised).
70340         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
70341
70342         2006-03-19  Jim Meyering  <jim@meyering.net>
70343
70344         Work even in a chroot where d_ino values for entries in "/"
70345         don't match the stat.st_ino values for the same names.
70346         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70347         number, iterate through all entries again, using lstat instead.
70348         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70349         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70350
70351         * lib/getcwd.c (__getcwd): Clarify a comment.
70352         Use memcpy in place of a call to strcpy.
70353
70354         2006-03-12  Jim Meyering  <jim@meyering.net>
70355
70356         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70357         matches that of the current directory (which we're about to chdir ".."
70358         out of), then save the dev-ino of the parent, instead.
70359
70360         * lib/same-inode.h (SAME_INODE): New file/macro.
70361         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70362         Include "same-inode.h", instead.
70363         * lib/same.c: Likewise.
70364         * lib/cycle-check.h: Include "same-inode.h".
70365         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70366         * lib/cycle-check.c (SAME_INODE): Remove definition.
70367         * lib/root-dev-ino.h: Include "same-inode.h".
70368
70369         2006-03-11  Eric Blake  <ebb9@byu.net>
70370
70371         * lib/same.c (same_name): s/base_name/last_component/
70372         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70373         * lib/filenamecat.c (file_name_concat): Likewise.
70374
70375         2006-03-11  Eric Blake  <ebb9@byu.net>,
70376                     Paul Eggert  <eggert@cs.ucla.edu>
70377
70378         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
70379         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
70380         drive prefix.
70381         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
70382         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
70383         (last_component): New method.
70384         * lib/dirname.c (dir_len): Determine when drive letters need a
70385         subsequent slash.  Preserve // when it is special.
70386         (dir_name): Don't append dot when drive letter is absolute.
70387         [TEST_DIRNAME]: Move into a full-blown gnulib test.
70388         * lib/basename.c (base_name): New semantics - malloc the result.
70389         Preserve // when it is special.  Preserve relative files that look
70390         like drive letters.
70391         (base_len): Preserve // when it is special.
70392         (last_component): New method, similar to old base_name semantics.
70393         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
70394         base_name.  Strip redundant slashes from ///.
70395
70396 2006-07-03  Jim Meyering  <jim@meyering.net>
70397
70398         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
70399         macro is used before the first cycle_check call.
70400
70401 2006-07-03  Eric Blake  <ebb9@byu.net>
70402
70403         * modules/dirname (Depends-on): Add xstrndup.
70404
70405 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70406
70407         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
70408         test cases, so that config.log is a bit easier to follow.
70409
70410 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70411
70412         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
70413         both are 64 bits, since this seems to be the tradition, and this
70414         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70415         we ever run into a host that prefers long long to long in this
70416         case, we'll need another configure-time test.  Problem reported by
70417         Jim Meyering.
70418
70419 2006-07-02  Eric Blake  <ebb9@byu.net>
70420
70421         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
70422
70423 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70424
70425         * modules/inttypes (Depends-on): No longer depends on stdint.
70426         * modules/stdint (Description): Say more about assumptions.
70427         Say that the fast types might differ.  Say macros are used.
70428         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
70429         (Makefile.am): Revise list of substituted symbols to match
70430         new stdint.m4.
70431         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
70432         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
70433         * tests/test-stdint.c (verify_same_types)
70434         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
70435         the code conforms to C99/C89.
70436         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
70437         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
70438
70439 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70440
70441         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
70442         but fix a bug, by requiring at least 64 bits.
70443         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
70444         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
70445         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
70446         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70447
70448         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
70449         changes.  Make 2.59 a prerequisite.  Check and substitute for
70450         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
70451         inttypes.h.  Do not use special include files; just use the
70452         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
70453         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
70454         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
70455         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
70456         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
70457         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
70458         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
70459         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
70460         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
70461         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
70462         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
70463         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
70464         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
70465         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
70466         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
70467         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
70468         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
70469         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
70470         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
70471         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
70472         WINT_MAX.  Check for C99 conformance more strictly, by detecting
70473         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
70474         not check for things that C99 does not require, e.g., int8_t.  If
70475         a test isn't needed unless <stdint.h> isn't working, and is
70476         unlikely to be needed for any other reason, then don't do it
70477         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
70478         size_t, since we assume C89 freestanding at least.  Do not check
70479         for sig_atomic_t, wchar_t, or wint_t, since the code now does
70480         the right thing even if the types are not defined.  Instead use:
70481         (gl_STDINT_TYPE_PROPERTIES): New macro.
70482         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
70483         testing whether <sys/types.h> clashes, as Autoconf does this for
70484         us now.  All uses removed.
70485         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
70486         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
70487         (gl_CHECK_TYPE_SAME):
70488         Remove; no longer needed.
70489         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
70490         exists, since we'll return 0 anyway in that case.
70491         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
70492
70493 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70494
70495         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
70496         possible collision with system files.
70497         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
70498         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
70499         WCHAR_MIN and WCHAR_MAX in this case.
70500         (<stddef.h>): Do not include; no longer needed.
70501         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
70502         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
70503         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
70504         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
70505         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
70506         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
70507         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
70508         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
70509         !defined(__c99))]: Include in this case too, since it's harmless
70510         now.
70511         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
70512         dangerous to do so.
70513         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
70514         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
70515         (_STDINT_MIN, _STDINT_MAX): New macros.
70516         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
70517         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
70518         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
70519         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
70520         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
70521         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
70522         macros, not typedefs; this simplifies things quite a bit.
70523         Use long int for all types narrower than int64_t.
70524         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
70525         Define in terms of long long int or int64_t or long int,
70526         not int64_t or int32_t.  This saves some compile-time testing.
70527         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
70528         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
70529         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
70530         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
70531         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
70532         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
70533         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
70534         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
70535         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
70536         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
70537         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70538         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70539         undef any previous version and define our own version, for
70540         simplicity and consistency with the new macros for types.
70541         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70542         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70543         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
70544         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
70545         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
70546         @WINT_T_SUFFIX@ to keep things simple here.
70547         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
70548         Simplify by assuming typical 8/16/32/64 host, since we're
70549         already doing that elsewhere anyway.
70550         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
70551         and assume long long int is 64 bits if available.  This
70552         speeds up 'configure'.
70553
70554 2006-07-01  Eric Blake  <ebb9@byu.net>
70555
70556         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
70557         Reported by Andreas Buening.
70558
70559 2006-07-01  Eric Blake  <ebb9@byu.net>
70560
70561         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
70562
70563 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70564
70565         * lib/getaddrinfo.c: fixed typo
70566
70567 2006-06-29  Jim Meyering  <jim@meyering.net>
70568
70569         * modules/strftime (Maintainer): Add my name, since with the
70570         FPRINTFTIME changes strftime.c has forked from glibc.
70571
70572 2006-06-29  Eric Blake  <ebb9@byu.net>
70573
70574         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
70575
70576 2006-06-29  Eric Blake  <ebb9@byu.net>
70577
70578         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
70579
70580 2006-06-29  Eric Blake  <ebb9@byu.net>
70581
70582         * lib/stat_.h: New file.
70583
70584 2006-06-29  Eric Blake  <ebb9@byu.net>
70585
70586         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
70587         unused static function.
70588
70589 2006-06-29  Eric Blake  <ebb9@byu.net>
70590
70591         * doc/functions.texi (Function Portability): Document missing lstat
70592         on mingw.
70593
70594 2006-06-29  Eric Blake  <ebb9@byu.net>
70595
70596         * MODULES.html.sh: Add sys_stat.
70597         * modules/sys_stat: New module.
70598         * modules/mkstemp (Depends-on): Add sys_stat.
70599
70600 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70601
70602         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
70603
70604 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70605
70606         * m4/c-bs-a.m4: Removed.
70607
70608 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70609
70610         * lib/strftime.c: Assume strftime() exists.
70611
70612 2006-06-29  Derek Price  <derek@ximbiot.com>
70613
70614         * modules/c-bs-a: Removed - \a is C89.
70615         * MODULES.html.sh: Remove c-bs-a.
70616
70617 2006-06-29  Bruno Haible  <bruno@clisp.org>
70618
70619         * modules/wcwidth (License): Change to LGPL.
70620
70621 2006-06-28  Simon Josefsson  <jas@extundo.com>
70622
70623         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
70624         on _WIN32.
70625
70626         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
70627         getnameinfo.
70628
70629 2006-06-28  Simon Josefsson  <jas@extundo.com>
70630
70631         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
70632
70633 2006-06-28  Simon Josefsson  <jas@extundo.com>
70634
70635         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
70636         functions there.  It will succeed on Windows XP, but on Windows
70637         2000 and (presumably) earlier, it will fail, and use the internal
70638         re-implementation.
70639         (use_win32_p): New function.
70640         (getaddrinfo): Use strtoul on servname, to support numeric ports.
70641         Support AI_NUMERICSERV to disable getservbyname.
70642         (getnameinfo): New function, only supports
70643         NI_NUMERICHOST|NI_NUMERICSERV for now.
70644
70645         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
70646         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
70647         getnameinfo.
70648
70649 2006-06-28  Eric Blake  <ebb9@byu.net>
70650
70651         * modules/wcwidth: New file.
70652         * modules/mbchar (Depends-on): Add wcwidth.
70653         * modules/mbswidth (Depends-on): Add wcwidth.
70654         * MODULES.html.sh: Add wcwidth.
70655
70656 2006-06-28  Eric Blake  <ebb9@byu.net>
70657
70658         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
70659         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
70660
70661 2006-06-28  Eric Blake  <ebb9@byu.net>
70662
70663         * lib/xvasprintf.h: Fix comments.
70664
70665 2006-06-28  Eric Blake  <ebb9@byu.net>
70666
70667         * lib/mbchar.h (wcwidth): Include wcwidth.h.
70668         * lib/mbswidth.c (wcwidth): Move from here...
70669         * lib/wcwidth.h: ...to this new file.
70670
70671 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70672
70673         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
70674
70675         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
70676         it's obsolete.
70677         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
70678
70679 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70680
70681         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
70682         Autoconf 2.60 says this stuff was obsolete.
70683
70684 2006-06-28  Bruno Haible  <bruno@clisp.org>
70685
70686         * modules/wcwidth (Files): Add m4/wchar_t.m4.
70687
70688 2006-06-28  Bruno Haible  <bruno@clisp.org>
70689
70690         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
70691         gt_TYPE_WCHAR_T.
70692
70693 2006-06-28  Bruno Haible  <bruno@clisp.org>
70694
70695         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
70696         declaration for wcwidth.
70697         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
70698
70699 2006-06-28  Bruno Haible  <bruno@clisp.org>
70700
70701         * lib/mkdtemp.c [MINGW]: Include <io.h>.
70702         (mkdir): Define using _mkdir.
70703
70704 2006-06-28  Bruno Haible  <bruno@clisp.org>
70705
70706         * lib/getaddrinfo.h: Fix POSIX URL.
70707         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
70708         _WIN32.
70709         (use_win32_p): Make static.
70710         (getaddrinfo): Reject service name if it is empty or does not consist
70711         solely of decimal digits, or if its value is > 65535.
70712         (getnameinfo): Remove useless casts.
70713
70714 2006-06-27  Simon Josefsson  <jas@extundo.com>
70715
70716         * modules/sys_select: New file, suggested by Bruno Haible, Paul
70717         Eggert and Martin Lambers.
70718
70719 2006-06-27  Simon Josefsson  <jas@extundo.com>
70720
70721         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
70722         Eggert and Martin Lambers.
70723
70724 2006-06-27  Bruno Haible  <bruno@clisp.org>
70725
70726         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
70727         result to 0, not to empty.
70728         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
70729
70730 2006-06-27  Bruno Haible  <bruno@clisp.org>
70731
70732         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
70733
70734 2006-06-26  Simon Josefsson  <jas@extundo.com>
70735
70736         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
70737         present.
70738
70739 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
70740
70741         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
70742         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
70743         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
70744
70745 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
70746
70747         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
70748
70749 2006-06-26  Bruno Haible  <bruno@clisp.org>
70750
70751         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
70752
70753 2006-06-26  Bruno Haible  <bruno@clisp.org>
70754
70755         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
70756
70757 2006-06-26  Bruno Haible  <bruno@clisp.org>
70758
70759         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
70760         SGI C compiler in pre-C99 mode.
70761         Suggested by Mark D. Baushke and Larry Jones.
70762
70763 2006-06-26  Bruno Haible  <bruno@clisp.org>
70764
70765         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
70766         WCHAR_MAX.
70767         Reported by Mark D. Baushke and Larry Jones.
70768
70769 2006-06-26  Bruno Haible  <bruno@clisp.org>
70770
70771         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
70772         in pre-C99 mode.
70773         Suggested by Mark D. Baushke and Larry Jones.
70774
70775 2006-06-23  Simon Josefsson  <jas@extundo.com>
70776             Bruno Haible  <bruno@clisp.org>
70777
70778         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
70779         Emit mostlyclean-local rule.
70780         (func_emit_tests_Makefile_am): Likewise.
70781         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
70782
70783 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
70784
70785         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
70786
70787 2006-06-23  Bruno Haible  <bruno@clisp.org>
70788
70789         * tests/test-stdint.c: Update to match ISO C 99 Technical
70790         Corrigendum 1.
70791
70792 2006-06-23  Bruno Haible  <bruno@clisp.org>
70793
70794         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
70795
70796 2006-06-23  Bruno Haible  <bruno@clisp.org>
70797
70798         * lib/stdint_.h: Treat IRIX like OpenBSD.
70799
70800 2006-06-23  Bruno Haible  <bruno@clisp.org>
70801
70802         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
70803         ISO C 99 Technical Corrigendum 1.
70804
70805 2006-06-22  Simon Josefsson  <jas@extundo.com>
70806
70807         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
70808         MinGW.
70809
70810 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70811
70812         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
70813         needed.  Some compiler complained about some of them.  Problem reported
70814         by Larry Jones in
70815         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
70816
70817 2006-06-21  Simon Josefsson  <jas@extundo.com>
70818
70819         * tests/test-getaddrinfo.c: New file.
70820
70821         * modules/getaddrinfo-tests: New file.
70822
70823         * MODULES.html.sh: Add inet_pton.
70824
70825         * modules/inet_pton: New file.
70826
70827 2006-06-21  Simon Josefsson  <jas@extundo.com>
70828
70829         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
70830         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
70831         of using the (limited) gnulib implementation on Windows XP.
70832
70833         * m4/inet_pton.m4: New file.
70834
70835 2006-06-21  Simon Josefsson  <jas@extundo.com>
70836
70837         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
70838         variable.
70839
70840         * lib/socket_.h: Don't define WINVER.
70841
70842         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
70843         slightly modified to work in gnulib.
70844
70845 2006-06-21  Simon Josefsson  <jas@extundo.com>
70846
70847         * doc/gnulib.texi (Windows sockets): Add.
70848
70849 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
70850
70851         * lib/read-file.c (fread_file): Start with buffer allocation of
70852         0 bytes rather than 1 byte; this simplifies the code.
70853         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
70854         code to free buffer and save/restore errno.
70855         (internal_read_file): Remove unused local.
70856
70857 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
70858
70859         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
70860         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
70861         Problem reported by Denis Excoffier in
70862         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
70863
70864 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70865
70866         * modules/sys_socket, modules/socklen: Include sys/types since
70867         FreeBSD 4.x's sys/socket.h needs it.
70868
70869 2006-06-19  Simon Josefsson  <jas@extundo.com>
70870
70871         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
70872
70873 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70874
70875         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
70876
70877 2006-06-19  Bruno Haible  <bruno@clisp.org>
70878
70879         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
70880         and FULL_PATH_INTTYPES_H in angle brackets.
70881         Reported by Mark D. Baushke <mdb@gnu.org>.
70882
70883 2006-06-17  Eric Blake  <ebb9@byu.net>
70884
70885         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
70886         errno.
70887
70888 2006-06-17  Bruno Haible  <bruno@clisp.org>
70889
70890         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
70891         <sys/inttypes.h>.
70892
70893 2006-06-17  Bruno Haible  <bruno@clisp.org>
70894
70895         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
70896         whether errno is declared. Assume <errno.h> declares errno.
70897
70898 2006-06-17  Bruno Haible  <bruno@clisp.org>
70899
70900         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
70901
70902 2006-06-17  Bruno Haible  <bruno@clisp.org>
70903
70904         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
70905         problem on Solaris 2.5.1.
70906
70907 2006-06-16  Eric Blake  <ebb9@byu.net>
70908
70909         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
70910         * lib/unicodeio.c [!defined errno]: Likewise.
70911         * lib/strtol.c [!defined errno]: Likewise.
70912         * lib/strtod.c [!defined errno]: Likewise.
70913
70914 2006-06-15  Eric Blake  <ebb9@byu.net>
70915
70916         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
70917
70918 2006-06-15  Eric Blake  <ebb9@byu.net>
70919
70920         * config/srclist.txt (ssize_t.m4): Lose sync.
70921
70922 2006-06-15  Bruno Haible  <bruno@clisp.org>
70923
70924         * modules/stdint (Files): Include m4/full-header-path.m4,
70925         m4/size_max.m4, m4/wchar_t.m4.
70926         (Makefile.am): Many more substitutions.
70927         * modules/stdint-tests: New file.
70928         * tests/test-stdint.c: New file.
70929
70930 2006-06-15  Bruno Haible  <bruno@clisp.org>
70931
70932         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
70933         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
70934         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
70935         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
70936         gl_CHECK_TYPE_SAME): New macros.
70937
70938 2006-06-15  Bruno Haible  <bruno@clisp.org>
70939
70940         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
70941
70942 2006-06-15  Bruno Haible  <bruno@clisp.org>
70943
70944         * lib/stdint_.h: Rewritten to be fully auto-configured.
70945         Fixes bug on HP-UX/IA64.
70946
70947 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
70948
70949         * lib/getdate.y (__attribute__): Don't define if already defined.
70950         Problem reported by Larry Jones.
70951         * lib/utimens.c (__attribute__): Likewise.
70952
70953 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
70954
70955         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
70956         reported by Andreas Schwab.
70957
70958 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70959             Bruno Haible  <bruno@clisp.org>
70960
70961         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
70962         check for the declaration of strnlen and a run test that exposes the
70963         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
70964         rpl_strndup.
70965
70966 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70967             Bruno Haible  <bruno@clisp.org>
70968
70969         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
70970
70971 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70972
70973         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
70974         compile test, for Tru64 4.0D.
70975
70976 2006-05-28  Karl Berry  <karl@gnu.org>
70977
70978         * config/srclist.txt (printf-args.c): lose sync.
70979
70980 2006-05-26  Martin Lambers  <marlam@marlam.de>
70981
70982         * lib/getpass.c: Updates the test for the native W32 API, and adds
70983         missing includes, thus fixing compilation warnings.
70984
70985 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70986
70987         * lib/exclude.c (exclude_fnmatch): New function.
70988         (excluded_file_name): Call exclude_fnmatch.
70989         * lib/exclude.h (excluded_file_name): New prototype
70990
70991 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
70992
70993         * lib/tempname.c (small_open, large_open): New macros.
70994         (__open, __open64) [!_LIBC]: Remove.
70995         (__gen_tempname): Use small_open and large_open instead of __open
70996         and __open64.  This fixes a portability bug on HP-UX 11.11i
70997         reported by Simon Wing-Tang in
70998         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
70999
71000 2006-05-24  Bruno Haible  <bruno@clisp.org>
71001
71002         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71003         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71004         Reported by Thorsten Maerz <torte@netztorte.de> via
71005         Aaron Stone <aaron@serendipity.cx>.
71006
71007 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71008
71009         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71010         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71011         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71012         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71013         not really conditional on the cache.
71014         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71015
71016 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71017
71018         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71019         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71020         (my_usleep): Don't mishandle maximum value.
71021
71022 2006-05-19  Jim Meyering  <jim@meyering.net>
71023
71024         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71025
71026 2006-05-17  Bruno Haible  <bruno@clisp.org>
71027
71028         Cygwin portability.
71029         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71030
71031 2006-05-17  Bruno Haible  <bruno@clisp.org>
71032
71033         * lib/stdint_.h: Fix recognition of Cygwin.
71034
71035 2006-05-15  Bruno Haible  <bruno@clisp.org>
71036
71037         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71038         on libtool patch by Ralf Wildenhues.
71039
71040 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71041
71042         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71043         test for C99 conformance; (bool) 0.5 is an integer constant
71044         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71045         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71046
71047 2006-05-11  Simon Josefsson  <jas@extundo.com>
71048
71049         * m4/xvasprintf.m4: Fix obvious typo.
71050
71051 2006-05-11  Jim Meyering  <jim@meyering.net>
71052
71053         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71054         James Lemley.
71055
71056 2006-05-10  Simon Josefsson  <jas@extundo.com>
71057
71058         * lib/md4.c: Typo fix, update copyright years.
71059         (K1, K2): Don't use L because it turn computations into 64-bit on
71060         64-bit platforms.
71061
71062 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71063
71064         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71065         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71066         unwanted sign propagation, e.g., on hosts with 64-bit int.
71067         There still are some problems with reeelly weird theoretical hosts
71068         (e.g., 33-bit int) but it's not worth worrying about now.
71069         * lib/sha1.c (rol): Likewise.
71070         (K1, K2, K3, K4): Remove unnecessary L suffix.
71071
71072 2006-05-10  Bruno Haible  <bruno@clisp.org>
71073
71074         * lib/des.c: Cast to avoid warnings.
71075
71076 2006-05-09  Bruno Haible  <bruno@clisp.org>
71077
71078         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71079         (Depends-on): Depend also on xsize, stdarg.
71080         (configure.ac): Add gl_XVASPRINTF.
71081
71082 2006-05-09  Bruno Haible  <bruno@clisp.org>
71083
71084         * m4/xvasprintf.m4: New file.
71085
71086 2006-05-09  Bruno Haible  <bruno@clisp.org>
71087
71088         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71089         (EOVERFLOW): Define fallback value.
71090         (xstrcat): New function.
71091         (xvasprintf): Recognize the special case of a string concatenation.
71092
71093 2006-05-08  Eric Blake  <ebb9@byu.net>
71094
71095         * gnulib-tool (func_version): Base copyright year on CVS date.
71096         (func_emit_copyright_notice): New function.
71097         (func_emit_lib_Makefile_am): Use it.
71098         (func_emit_tests_Makefile_am): Likewise.
71099         (func_import): Likewise.
71100
71101 2006-05-08  Bruno Haible  <bruno@clisp.org>
71102
71103         * modules/stdarg: New file.
71104         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71105
71106 2006-05-08  Bruno Haible  <bruno@clisp.org>
71107
71108         * m4/stdarg.m4: New file, from GNU gettext.
71109
71110 2006-05-08  Bruno Haible  <bruno@clisp.org>
71111
71112         * config/srclist.txt (build-aux/config.rpath): different from latest
71113         release.
71114
71115 2006-05-08  Bruno Haible  <bruno@clisp.org>
71116
71117         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71118
71119 2006-05-05  Jim Meyering  <jim@meyering.net>
71120
71121         * m4/warning.m4: New file, derived from bison's file by the same name.
71122
71123 2006-05-03  Bruno Haible  <bruno@clisp.org>
71124
71125         * lib/stdint_.h: Shorter URL.
71126         * lib/inttypes.h: Likewise.
71127
71128 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71129
71130         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71131
71132 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71133
71134         * lib/verify.h: Document the internals better.  Most of this change
71135         was written by Bruno Haible.
71136
71137 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71138
71139         * doc/verify.texi: New file, partly based on a proposal by
71140         Bruno Haible.
71141
71142 2006-05-02  Bruno Haible  <bruno@clisp.org>
71143
71144         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71145         test from here...
71146         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71147
71148 2006-04-29  Bruno Haible  <bruno@clisp.org>
71149
71150         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71151         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71152
71153 2006-04-29  Bruno Haible  <bruno@clisp.org>
71154
71155         * gnulib-tool: Make --update option actually work.
71156
71157 2006-04-29  Bruno Haible  <bruno@clisp.org>
71158
71159         * doc/gcd.texi: New file.
71160         * doc/gnulib.texi: Include it.
71161
71162 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71163
71164         * lib/getdate.y (get_date): When adding relative date, start with the
71165         initial time, not with the result of the first mktime call.
71166
71167 2006-04-25  Bruno Haible  <bruno@clisp.org>
71168
71169         * gnulib-tool (func_import): Output the include directives in three
71170         blocks, sorted separately.
71171         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71172
71173 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71174
71175         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71176         to define main with arguments, for C++.  Reported by Eric Blake.
71177         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71178         Prefer 'int main ()' to 'int main (void)', for C++.
71179         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71180         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71181         for 'main', for C99 and C++.
71182
71183 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71184
71185         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71186         Don't assume that exit status -1 is valid.
71187         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71188         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71189         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71190         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71191         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71192         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71193         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71194         functions can be used without declaring them, or that you can
71195         exit with status -1.
71196         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71197
71198 2006-04-24  Karl Berry  <karl@gnu.org>
71199
71200         * config/srclist.txt (longdouble.m4): sync lost.
71201
71202 2006-04-24  Eric Blake  <ebb9@byu.net>
71203
71204         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71205
71206 2006-04-24  Bruno Haible  <bruno@clisp.org>
71207
71208         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71209         poll() implementation in AIX.
71210         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71211
71212 2006-04-24  Bruno Haible  <bruno@clisp.org>
71213
71214         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71215         assigned exactly once.
71216
71217 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71218             Bruno Haible  <bruno@clisp.org>
71219
71220         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71221         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71222         for AM_CPPFLAGS.
71223
71224 2006-04-23  Bruno Haible  <bruno@clisp.org>
71225
71226         * modules/copy-file: Depend on unistd.
71227         * modules/execute: Likewise.
71228         * modules/fatal-signal: Likewise.
71229         * modules/findprog: Likewise.
71230         * modules/mkdtemp : Likewise.
71231         * modules/pipe: Likewise.
71232         * modules/wait-process: Likewise.
71233
71234 2006-04-23  Bruno Haible  <bruno@clisp.org>
71235
71236         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71237         condition was already detected.
71238         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71239
71240 2006-04-23  Bruno Haible  <bruno@clisp.org>
71241
71242         * lib/copy-file.c: Include <unistd.h> unconditionally.
71243         * lib/execute.c: Likewise.
71244         * lib/fatal-signal.c: Likewise.
71245         * lib/findprog.c: Likewise.
71246         * lib/mkdtemp.c: Likewise.
71247         * lib/pipe.h: Likewise.
71248         * lib/pipe.c: Likewise.
71249         * lib/wait-process.h: Likewise.
71250
71251 2006-04-23  Bruno Haible  <bruno@clisp.org>
71252
71253         * gnulib-tool (func_usage): Fix --import description. Document
71254         --update.
71255         (func_import): Create temporary file in a temporary directory, if
71256         --dry-run is specified. Silence errors from 'grep' when there are no
71257         m4 files in $m4dir.
71258         (func_create_testdir): Silence errors from 'grep' when there are no
71259         m4 files in $m4dir.
71260         Reported by Karl Berry <karl@freefriends.org>.
71261
71262 2006-04-20  Bruno Haible  <bruno@clisp.org>
71263
71264         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
71265         one argument, so that the code will be portable to Autoconf 2.60.
71266         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
71267         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71268         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
71269
71270 2006-04-19  Derek Price  <derek@ximbiot.com>
71271             Eric Blake  <ebb9@byu.net>
71272
71273         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
71274         rather than "/full/path.h".  Update comment to match.  Shorten &
71275         generalize m4_translit call via AS_TR_CPP.
71276
71277 2006-04-19  Derek Price  <derek@ximbiot.com>
71278             Eric Blake  <ebb9@byu.net>
71279
71280         * lib/inttypes.h: Correct grammar in comment.
71281
71282 2006-04-18  Derek Price  <derek@ximbiot.com>
71283             Paul Eggert  <eggert@cs.ucla.edu>
71284
71285         * modules/inttypes: New file.
71286         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
71287
71288 2006-04-18  Derek Price  <derek@ximbiot.com>
71289             Paul Eggert  <eggert@cs.ucla.edu>
71290
71291         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
71292         New files.
71293
71294 2006-04-18  Derek Price  <derek@ximbiot.com>
71295             Paul Eggert  <eggert@cs.ucla.edu>
71296
71297         * lib/inttypes.h: New file.
71298         * lib/strtoimax.c: Assume <inttypes.h>.
71299
71300 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
71301
71302         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
71303         isn't mounted.  Problem reported by Kir Kolyshkin.
71304
71305 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71306
71307         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
71308         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
71309         Derek R. Price.
71310         * lib/regex.h (RE_DUP_MAX): Update comment to match current
71311         implementation.
71312
71313 2006-04-12  Eric Blake  <ebb9@byu.net>
71314
71315         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
71316         is now done automatically by the corresponding Autoconf macro.
71317
71318 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
71319
71320         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
71321         time_r.h.
71322
71323 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71324
71325         Merge regex changes from libc, removing some of our
71326         POSIX-conformance changes that were rejected and redoing them in a
71327         less-intrusive way.
71328
71329         * lib/regcomp.c (re_compile_internal, init_dfa):
71330         Length arg is now size_t, not Idx.  All uses changed.
71331         (peek_token): Forward decl now says internal_function.
71332         (__re_error_msgid, __re_error_msgid_idx):
71333         Now static rather than extern with attribute_hidden.
71334         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
71335         For some reason libc prefers K&R style defns for external functions.
71336         (regerror) [!defined _LIBC]: Likewise.
71337         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
71338         (seek_collating_symbol_entry, lookup_collation_sequence_value):
71339         (build_range_exp, build_collating_symbol):
71340         Use K&R-style defn.
71341         (re_compile_fastmap): Use '\0' to memset, not 0.
71342         (utf8_sb_map): Make the calculations more obvious.
71343         (init_dfa, parse_bracket_exp, build_charclass_op):
71344         Call calloc and cast result, as glibc does.
71345         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71346         (build_range_exp, build_collating_symbol):
71347         Now internal functions.
71348
71349         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71350
71351         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71352         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71353         Don't depend on VMS; depend on __VMS instead, for POSIX
71354         namespace cleanness.
71355         (regoff_t): Define to ssize_t, not long int.
71356
71357         Remove the REG_ macros named below.  Instead, make the old names
71358         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71359         __USE_GNU_REGEX.
71360         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71361         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71362         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71363         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71364         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71365         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71366         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71367         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71368         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71369         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71370         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71371         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71372         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71373         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71374         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
71375         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
71376         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
71377         (REG_NREGS):
71378         Remove.  All uses replaced by the old RE_* names.
71379         (RE_BACKSLASH_ESCAPE_IN_LISTS):
71380         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
71381         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
71382         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
71383         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
71384         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
71385         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
71386         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
71387         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
71388         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
71389         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
71390         Don't bother having these macros be independent of each others'
71391         values, since they no longer exist in the POSIX name space.
71392
71393         Rename the following member names back to their old names,
71394         unless !__USE_GNU_REGEX.  All uses changed back.
71395         (buffer): Renamed from re_buffer.
71396         (allocated): Renamed from re_allocated.
71397         (used): Renamed from re_used.
71398         (syntax): Renamed from re_syntax.
71399         (fastmap): Renamed from re_fastmap.
71400         (translate): Renamed from re_translate.
71401         (can_be_null): Renamed from re_can_be_null.
71402         (regs_allocated): Renamed from re_regs_allocated.
71403         (fastmap_accurate): Renamed from re_fastmap_accurate.
71404         (no_sub): Renamed from re_no_sub.
71405         (not_bol): Renamed from re_not_bol.
71406         (not_eol): Renamed from re_not_eol.
71407         (newline_anchor): Renamed from re_newline_anchor.
71408         (num_regs): Renamed from rm_num_regs.
71409         (start): Renamed from rm_start.
71410         (end): Renamed from rm_end.
71411
71412         (free_state): Move up a bit.
71413
71414         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71415         #define to be empty.
71416         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71417         when that is what is intended.
71418         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
71419         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
71420         (MAX): New macro.
71421         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
71422         All uses changed back to re_malloc, etc.  It's now the caller's
71423         responsibility to check for overflow; all callers changed.
71424         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
71425         (re_x2nrealloc): Remove.
71426         (free_state): Remove decl.
71427
71428         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
71429         (re_set_registers, re_exec):
71430         Use K&R-style defn.
71431
71432         2006-01-31  Roland McGrath  <roland@redhat.com>
71433
71434         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
71435         Reported by Mike Frysinger <vapier@gentoo.org>.
71436
71437         2006-01-15  Andreas Jaeger  <aj@suse.de>
71438
71439         [BZ #1950]
71440         * lib/regex_internal.c (re_string_reconstruct): Adjust for
71441         build_wcs_upper_buffer change.
71442         (build_wcs_upper_buffer): Change return type.
71443
71444         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
71445
71446         * lib/regex_internal.h: Include <stdint.h> if available.
71447
71448         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
71449
71450         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
71451
71452         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71453
71454         * lib/regcomp.c: Adjust for changed secondary hash function.
71455
71456         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
71457
71458         * lib/regex.h: Pretty printing.
71459         Clean up namespace a bit.
71460
71461         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
71462
71463         * lib/regexec.c (update_cur_sifted_state, check_arrival,
71464         check_arrival_add_next_nodes): Avoid using uninitialized variable.
71465
71466         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71467                     Ulrich Drepper  <drepper@redhat.com>
71468
71469         [BZ #1302]
71470         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
71471         changed.
71472         (bitset_word_t): Renamed from bitset_word.  All uses changed.
71473
71474         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
71475
71476         [BZ #281]
71477         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
71478         * lib/regcomp.c: Remove unnecessary uses of
71479         unsigned RE_TRANSLATE_TYPE.
71480         * lib/regex_internal.h: Likewise.
71481         * lib/regex_internal.c: Likewise.
71482         * lib/regexec.c: Likewise.
71483         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
71484
71485         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
71486
71487         * lib/regexec.c (find_recover_state): Remove unnecessary
71488         initialization.
71489         (transit_state_bkref): Make DFA a const pointer.
71490         (get_subexp): Likewise.
71491         (check_arrival): Likewise.
71492         (update_cur_sifted_state): Likewise.
71493         (re_search_internal): Likewise.
71494         (prune_impossible_nodes): Likewise.
71495         (acquire_init_state_context): Likewise.
71496         (proceed_next_node): Likewise.
71497         (set_regs): Likewise.
71498         (free_fail_stack_return): Likewise.
71499         (check_arrival_expand_ecl): Mark DFA parameter as const.
71500         (check_arrival_expand_ecl_sub): Likewise.
71501         (check_subexp_limits): Likewise.
71502         (sub_epsilon_src_nodes):  Likewise.
71503         (add_epsilon_src_nodes):  Likewise.
71504         (merge_state_array): Likewise.
71505         (update_regs): Likewise.
71506         (build_trtable): Likewise.
71507         (sift_states_backward): Mark MCTX parameter as const.
71508         (build_sifted_states): Likewise.
71509         (update_cur_sifted_state): Likewise.
71510         (sift_states_mkref): Likewise.
71511         (check_arrival_expand_ecl): Mark eclosure as const.
71512         (check_dst_limits_calc_pos_1): Likewise.
71513         * lib/regex_internal.h (re_match_context_t): Make dfa a const
71514         pointer.
71515
71516         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
71517
71518         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
71519         (transit_state_sb): Likewise.
71520         (transit_state_mb): Likewise.
71521         (sift_states_iter_mb): Likewise.
71522         (check_arrival_add_next_nodes): Likewise.
71523         (check_node_accept_bytes): Change first parameter to pointer-to-const.
71524         [_LIBC] (re_search_2_stub): Use mempcpy.
71525
71526         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
71527         mbrtowc for very simple UTF-8 case.
71528
71529         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
71530         a pointer-to-const.
71531         (re_acquire_state_context): Likewise.
71532         * lib/regex_internal.h: Adjust prototypes.
71533
71534         * lib/regex.c: Prevent using C++ compilers.
71535
71536         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
71537         (re_acquire_state_context): Likewise.
71538
71539 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71540
71541         * modules/regex (Depends-on): Add ssize_t.
71542
71543 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71544
71545         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
71546         translation table.
71547
71548 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71549
71550         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
71551
71552 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
71553             Bruno Haible  <bruno@clisp.org>
71554
71555         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
71556         <sys/types.h> and <inttypes.h>.
71557
71558 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71559
71560         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
71561         `__error_t_defined', so argp.h will not typedef the former.
71562
71563 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
71564
71565         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
71566         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
71567         glibc names.  Even if glibc is changed to conform to POSIX, the
71568         traditional names will be available anyway, since regex depends on
71569         the extensions module.  Also, fix a longstanding typo in the
71570         implementation of Spencer ERE test #75 from grep 2.3.  Problems
71571         reported by Emanuele Giaquinta.  Also, change sense of cached
71572         variable, so that the message makes sense.
71573
71574 2006-03-24  Simon Josefsson  <jas@extundo.com>
71575
71576         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
71577         including some doc fixes.
71578         (base64_encode_alloc): Fix +1 bug on allocation failures.
71579
71580 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71581
71582         * lib/base64.c (base64_encode): Do not read past end of array with
71583         unsanitized input on systems with CHAR_BIT > 8.
71584
71585 2006-03-24  Eric Blake  <ebb9@byu.net>
71586
71587         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
71588
71589 2006-03-22  Karl Berry  <karl@gnu.org>
71590
71591         * config/srclist.txt (*setenv.[ch]): get from coreutils.
71592         * config/srclistvars.sh (COREUTILS): new var.
71593
71594 2006-03-17  Jim Meyering  <jim@meyering.net>
71595
71596         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
71597         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
71598
71599 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71600
71601         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
71602         no longer needs it.  Instead, check that regoff_t is as least
71603         as wide as ptrdiff_t.
71604
71605         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
71606         so that our regex.h stays compatible with the installed regex.
71607         This is helpful for installers who configure --without-included-regex.
71608         Problem reported by Emanuele Giaquinta.
71609
71610 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71611
71612         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
71613         Typedef to long int, not to off_, as POSIX will likely change
71614         in that direction.
71615
71616 2006-03-15  Eric Blake  <ebb9@byu.net>
71617
71618         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
71619
71620 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71621
71622         * lib/argp-help.c (validate_uparams): Fix typo
71623         * lib/argp-parse.c (argp_default_options): Consistently begin help
71624         messages with a lowercase letter.
71625
71626 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
71627
71628         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
71629         overrun buffers and shouldn't be used (much as gets shouldn't be
71630         used).
71631         * lib/time_r.c (asctime_r, ctime_r): Likewise.
71632
71633 2006-03-08  Simon Josefsson  <jas@extundo.com>
71634
71635         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
71636         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71637
71638 2006-03-08  Simon Josefsson  <jas@extundo.com>
71639
71640         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
71641         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71642
71643 2006-03-08  Simon Josefsson  <jas@extundo.com>
71644
71645         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
71646         signal that configure disabled the device.
71647
71648 2006-03-08  Simon Josefsson  <jas@extundo.com>
71649
71650         * build-aux/maint.mk: Fix refresh-po, to handle no translated
71651         languages.
71652
71653 2006-03-07  Simon Josefsson  <jas@extundo.com>
71654
71655         * modules/getopt (Depends-on): Add unistd.
71656
71657         * modules/unistd: New file.
71658
71659 2006-03-07  Simon Josefsson  <jas@extundo.com>
71660
71661         * modules/gc-random: New file.
71662
71663 2006-03-07  Simon Josefsson  <jas@extundo.com>
71664
71665         * m4/unistd_h.m4: New file.
71666
71667 2006-03-07  Simon Josefsson  <jas@extundo.com>
71668
71669         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
71670         test to be side-effect free by storing the result in the cache
71671         variable gl_cv_lib_readline, and moving the assignment of
71672         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
71673         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71674
71675 2006-03-07  Simon Josefsson  <jas@extundo.com>
71676
71677         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
71678         error on missing devices (the functions will return an error).
71679
71680         * m4/gc.m4: Move random stuff to gc-random.m4
71681
71682 2006-03-07  Simon Josefsson  <jas@extundo.com>
71683
71684         * lib/unistd_.h: New file.
71685
71686 2006-03-07  Simon Josefsson  <jas@extundo.com>
71687
71688         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
71689
71690 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71691
71692         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
71693         Problem reported by Juan Manuel Guerrero.
71694
71695 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71696
71697         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
71698         the unistd module.
71699         * lib/getlogin_r.c: Likewise.
71700         * lib/getlogin_r.h: Likewise.
71701         * lib/glob.c: Likewise.
71702         * lib/pagealign_alloc.c: Likewise.
71703         * lib/unistd_.h: Remove; no longer needed.
71704
71705 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71706
71707         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71708         Add unistd.
71709         * modules/c-stack (Depends-on): Add unistd.
71710         * modules/getlogin_r: Likewise.
71711         * modules/glob: Likewise.
71712         * modules/pagealign_alloc: Likewise.
71713         * modules/unistd (Files): Remove lib/unistd_.h.
71714         (EXTRA_DIST): Remove.
71715         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
71716         need unistd_.h.
71717         (MOSTLYCLEANFILES): Remove unistd.h-t.
71718
71719 2006-03-03  Simon Josefsson  <jas@extundo.com>
71720
71721         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
71722
71723 2006-03-03  Simon Josefsson  <jas@extundo.com>
71724
71725         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
71726         libidn and bison.
71727
71728 2006-03-03  Simon Josefsson  <jas@extundo.com>
71729
71730         * build-aux/maint.mk: Add indent target.
71731
71732 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
71733
71734         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
71735         our replacement poll.h in any case, to avoid a differing
71736         declaration from a system header.  Seen on AIX.
71737
71738 2006-03-01  Simon Josefsson  <jas@extundo.com>
71739
71740         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
71741         <kasal@ucw.cz>.
71742
71743 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71744
71745         * modules/gettime (Depends-on): Add extensions module.
71746         * modules/nanosleep (Depends-on): Likewise.
71747         * modules/settime (Depends-on): Likewise.
71748
71749 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71750
71751         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
71752         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
71753         pedantically.
71754         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71755         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
71756
71757         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
71758         not "==".  Reported by Ralf Wildenhues.
71759
71760 2006-03-01  Karl Berry  <karl@gnu.org>
71761
71762         * doc/Copyright/request-*: new files, synced from gnuorg.
71763
71764 2006-03-01  Karl Berry  <karl@gnu.org>
71765
71766         * config/srclist.txt (Copyright/*): new entries.
71767
71768 2006-02-28  Simon Josefsson  <jas@extundo.com>
71769
71770         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
71771
71772 2006-02-27  Simon Josefsson  <jas@extundo.com>
71773
71774         * lib/base64.h: Indent #define's.  From Jim Meyering
71775         <jim@meyering.net>.
71776
71777 2006-02-27  Jim Meyering  <jim@meyering.net>
71778
71779         Revert the change of 2006-02-24, so these files can continue
71780         to be sync'd from gettext.
71781         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
71782         of `config.h'.
71783
71784 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71785
71786         * modules/intprops: New file.
71787         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71788         Add intprops.
71789         * modules/getloadavg (Files): Remove lib/intprops.h.
71790         (Depends-on): Add intprops.
71791         * modules/human: Likewise.
71792         * modules/inttostr: Likewise.
71793         * modules/openat: Likewise.
71794         * modules/sig2str: Likewise.
71795         * modules/userspec: Likewise.
71796         * modules/utimecmp: Likewise.
71797         * modules/xnanosleep: Likewise.
71798         * modules/xstrtol: Likewise.
71799
71800 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
71801
71802         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
71803         * modules/lock-tests (TESTS): Use $(EXEEXT).
71804         * modules/tls-tests: Likewise.
71805         * modules/argp-tests: Likewise.
71806         (check_PROGRAMS): New var, replacing...
71807         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
71808
71809 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71810
71811         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
71812         `config.h'.
71813
71814 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71815
71816         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
71817
71818 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71819
71820         Sync from coreutils.
71821         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
71822         gl_CHDIR_SAFER.
71823
71824 2006-02-22  Jim Meyering  <jim@meyering.net>
71825
71826         Sync from coreutils.
71827         * m4/chdir-safer.m4: New file.
71828
71829 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71830
71831         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
71832         AT_FDCWD exceeds INT_MAX.
71833         * lib/openat.h (AT_FDCWD): Likewise.
71834
71835 2006-02-17  Eric Blake  <address@hidden>
71836
71837         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
71838
71839 2006-02-16  Simon Josefsson  <jas@extundo.com>
71840
71841         * modules/getaddrinfo (Depends-on): Add sys_socket.
71842
71843 2006-02-15  Simon Josefsson  <jas@extundo.com>
71844
71845         * build-aux/maint.mk: Add dsyntax-check rule.
71846
71847 2006-02-15  Eric Blake  <ebb9@byu.net>
71848
71849         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
71850         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
71851         'present but cannot compile' warnings on cygwin.
71852         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
71853         use ws2tcpip.h if sys/socket.h works.
71854         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
71855         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
71856
71857 2006-02-14  Simon Josefsson  <jas@extundo.com>
71858
71859         * modules/maintainer-makefile (Files): Rename.
71860
71861         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
71862         and (the local) Makefile.cfg to maint-cfg.mk.
71863
71864         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
71865         to the latter.
71866
71867         * modules/maintainer-makefile: New module.
71868
71869         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
71870         severaly stripped to make it possible to build it up from scratch
71871         with reliable tests.
71872
71873         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
71874         fixes to permit overriding the default actions when configure and
71875         makefile are not available.
71876
71877 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71878
71879         Sync from coreutils.
71880         * modules/lstat (Depends-on): Don't depend on xalloc.
71881         (License): Change from GPL to LGPL, since this is now simply a
71882         replacement for a libc function.
71883
71884 2006-02-14  Jim Meyering  <jim@meyering.net>
71885
71886         Sync from coreutils.
71887
71888         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
71889         failure on deficient systems, and simplify gnulib lgpl dependencies.
71890         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
71891         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
71892
71893         * lib/xalloc-die.c: Remove unused definition of N_.
71894
71895 2006-02-14  Jim Meyering  <jim@meyering.net>
71896
71897         Sync from coreutils.
71898         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
71899         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
71900         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
71901         double-quote uses of that variable, to accommodate the rare case in
71902         which getmntent is available in none of the libraries checked.  This
71903         happens at least on FreeBSD 5.0.
71904
71905 2006-02-13  Simon Josefsson  <jas@extundo.com>
71906
71907         * gnulib-tool (Usage): Fix --import, from
71908         karl@freefriends.org (Karl Berry).
71909
71910 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71911
71912         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
71913
71914 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
71915
71916         * lib/argp-namefrob.h: Restore changes accidentally lost during the
71917         "autoupdate" on 2005-12-12.
71918
71919 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71920
71921         * modules/closeout (Depends-on): Remove atexit.
71922
71923 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71924
71925         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
71926         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
71927
71928 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71929
71930         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
71931         __EXTENSIONS__ if this causes compilation to fail.  Problem
71932         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
71933         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
71934
71935 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
71936
71937         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
71938         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
71939         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
71940         All uses changed.
71941
71942 2006-01-26  Simon Josefsson  <jas@extundo.com>
71943
71944         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
71945         prototype is visible on mingw32.
71946
71947         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
71948         for mingw32.
71949
71950         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
71951         mingw32).
71952
71953 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71954
71955         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
71956         attempt to open for write; this always fails, at least on POSIX
71957         hosts.  This reinstates the 2006-01-09 change, which was
71958         inadvertently removed.
71959
71960 2006-01-26  Bruno Haible  <bruno@clisp.org>
71961
71962         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
71963         Reported by Paul Eggert.
71964
71965 2006-01-26  Bruno Haible  <bruno@clisp.org>
71966             Paul Eggert  <eggert@cs.ucla.edu>
71967
71968         * lib/stdbool_.h (_Bool)
71969         [(! (defined __cplusplus || defined __BEOS__)
71970           && !defined __GNUC__
71971           && !(defined __HP_cc || defined __xlc__
71972                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
71973                || defined __sgi))]:
71974         #define to signed char in these cases too; this simplifies
71975         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
71976         etc., separately) and makes it more conservative.
71977
71978 2006-01-25  Simon Josefsson  <jas@extundo.com>
71979
71980         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
71981         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
71982         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
71983
71984 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71985
71986         * lib/argp-namefrob.h: Bugfix. Remove stray #
71987
71988 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
71989
71990         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
71991         so that we test the test.
71992         Check for yet another HP-UX cc bug involving *bool |= bool.
71993
71994 2006-01-25  Karl Berry  <karl@gnu.org>
71995
71996         * config/srclist.txt (vasnprintf.c): sync lost.
71997
71998 2006-01-25  Jim Meyering  <jim@meyering.net>
71999
72000         Sync from the stable (b5) branch of coreutils:
72001
72002         * lib/fts.c (fts_children): Don't let close() clobber errno from
72003         failed fchdir().
72004
72005         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72006         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72007         a dangling symlink.  That can also happen at least for ELOOP.
72008         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72009         FYI, this bug predates the inclusion of fts.c in coreutils.
72010
72011         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72012         in their own block, so pre-c99 compilers don't object.
72013
72014         Avoid the double-free (first in fts_read, second in fts_close) that
72015         would occur when an `active' directory is made inaccessible (e.g.,
72016         via chmod a-x) during a traversal.
72017         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72018         before returning.  Reproduce this failure by
72019         mkdir -p a/b; cd a; chmod a-x . b
72020         Reported by Stavros Passas.
72021
72022 2006-01-25  Jim Meyering  <jim@meyering.net>
72023
72024         * lib/fileblocks.c: Remove more useless parentheses.
72025         * lib/readutmp.h: Likewise.
72026
72027 2006-01-25  Bruno Haible  <bruno@clisp.org>
72028
72029         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72030         warnings.
72031         Reported by Paul Eggert.
72032
72033 2006-01-25  Bruno Haible  <bruno@clisp.org>
72034
72035         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72036         rid of a trap command. For Solaris sh.
72037         Reported by Mark D. Baushke <mdb@gnu.org>.
72038
72039 2006-01-24  Simon Josefsson  <jas@extundo.com>
72040
72041         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72042         Bruno.
72043
72044 2006-01-24  Karl Berry  <karl@gnu.org>
72045
72046         * config/srclist.txt (argp-namefrob.h): sync lost.
72047
72048 2006-01-24  Jim Meyering  <jim@meyering.net>
72049
72050         * modules/openat (Files): Add lib/intprops.h.
72051         From Mark D. Baushke.
72052
72053 2006-01-24  Jim Meyering  <jim@meyering.net>
72054
72055         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72056         Reported by Mark D. Baushke.
72057
72058 2006-01-24  Jim Meyering  <jim@meyering.net>
72059
72060         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72061
72062 2006-01-24  Bruno Haible  <bruno@clisp.org>
72063
72064         * modules/strnlen (Maintainer): Change from glibc to all.
72065
72066 2006-01-24  Bruno Haible  <bruno@clisp.org>
72067
72068         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72069         Patch by Paul Eggert.
72070
72071 2006-01-24  Bruno Haible  <bruno@clisp.org>
72072
72073         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72074         already has it.
72075         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72076         2005-11-26.
72077
72078         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72079         'signed char' to avoid problems with the built-in _Bool type.
72080         Reported by Paul Eggert on 2005-11-26.
72081
72082 2006-01-24  Bruno Haible  <bruno@clisp.org>
72083
72084         * gnulib-tool (func_import): Avoid constructing complicated sed
72085         expressions inside backquote.
72086         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72087
72088 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72089
72090         These changes imported from libc.
72091         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72092         test and two separate function calls.
72093         * lib/strndup.c (__strndup): Add libc_hidden_def.
72094
72095 2006-01-23  Simon Josefsson  <jas@extundo.com>
72096
72097         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72098         Remove the test_*_SOURCES variable: automake infers it by default.
72099         * modules/tls-tests: Likewise.
72100
72101 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72102
72103         Work around porting bugs reported by Dieter in
72104         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72105         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72106         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72107         Include "getopt.h" first, to check interface.
72108         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72109         !HAVE_DECL_GETENV.
72110         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72111         (__strndup): Revert to K&R-style function dfns, the glibc style.
72112         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72113         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72114         Include strnlen.h first, to get prototype properly.
72115         (strnlen): Renamed from __strnlen.
72116         Remove weak alias.
72117
72118 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72119
72120         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72121
72122 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72123
72124         * config/srclist.txt: Adjust to reflect glibc reorganization.
72125         This affects only comments.
72126
72127 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72128
72129          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72130          Reported by Bruce Korb <bkorb@gnu.org>.
72131
72132 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72133
72134         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72135         to pacify gcc -Wswitch-default.
72136
72137 2006-01-22  Bruno Haible  <bruno@clisp.org>
72138
72139         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72140         temporary buffer for sprintf, take into account the precision also
72141         for 'd', 'i', 'u', 'o', 'x', 'X'.
72142
72143 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72144
72145         * modules/argp-tests: New module
72146         * tests/test-argp.c: New file
72147         * tests/test-argp-2.sh: New file
72148
72149 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72150
72151         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72152         (__argp_base_name): Removed
72153         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72154         typo.
72155         (__argp_base_name): Provide macro definition or extern declaration
72156         depending on the configuration
72157
72158 2006-01-20  Simon Josefsson  <jas@extundo.com>
72159
72160         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72161
72162 2006-01-20  Simon Josefsson  <jas@extundo.com>
72163
72164         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72165
72166 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72167
72168         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72169         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72170         Suggested by Bruno Haible.
72171
72172 2006-01-20  Karl Berry  <karl@gnu.org>
72173
72174         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72175         until changes propagate, I guess.
72176
72177 2006-01-19  Simon Josefsson  <jas@extundo.com>
72178
72179         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72180
72181 2006-01-19  Simon Josefsson  <jas@extundo.com>
72182
72183         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72184
72185 2006-01-19  Simon Josefsson  <jas@extundo.com>
72186
72187         * gnulib-tool: Set check_PROGRAMS.
72188
72189         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72190         modules/des-tests, modules/gc-arcfour-tests,
72191         modules/gc-arctwo-tests, modules/gc-des-tests,
72192         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72193         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72194         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72195         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72196         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72197         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72198         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72199         test_*_SOURCES.
72200
72201 2006-01-18  Simon Josefsson  <jas@extundo.com>
72202
72203         * modules/socklen (Depends-on): Depend on sys_socket.
72204
72205 2006-01-18  Simon Josefsson  <jas@extundo.com>
72206
72207         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72208         modules/des-tests, modules/gc-arcfour-tests,
72209         modules/gc-arctwo-tests, modules/gc-des-tests,
72210         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72211         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72212         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72213         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72214         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72215         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72216         $(EXEEXT) to automake TESTS variable, for mingw32.
72217
72218 2006-01-17  Simon Josefsson  <jas@extundo.com>
72219
72220         * modules/socklen (Include): Need sys/socket.h.
72221
72222 2006-01-17  Bruno Haible  <bruno@clisp.org>
72223
72224         * modules/ssize_t (Include): Add <sys/types.h>.
72225
72226 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72227
72228         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72229         it's not portable and it doesn't work with cross-compiles.
72230         Problem reported by Bruno Haible.  Fix missing-$ typo in
72231         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72232         -zignore from being used with Sun's C compiler.
72233
72234 2006-01-12  Simon Josefsson  <jas@extundo.com>
72235
72236         * lib/base64.c: Fix warning, reported by Bruno Haible
72237         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72238
72239 2006-01-12  Bruno Haible  <bruno@clisp.org>
72240
72241         * modules/ldd: New file.
72242         * build-aux/ldd.sh.in: New file.
72243         * MODULES.html.sh (Support for building libraries and executables): Add
72244         ldd.
72245
72246 2006-01-12  Bruno Haible  <bruno@clisp.org>
72247
72248         * m4/ldd.m4: New file.
72249
72250 2006-01-12  Bruno Haible  <bruno@clisp.org>
72251
72252         * gnulib-tool (func_import, func_create_testdir): Don't go into an
72253         endless loop while replacing $auxdir with build-aux.
72254
72255 2006-01-11  Simon Josefsson  <jas@extundo.com>
72256
72257         * lib/stdint_.h (SIZE_MAX): Add missing (.
72258
72259 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
72260
72261         Sync from coreutils.
72262         * lib/md5.c: Fix commentary typos.
72263         (alignof, UNALIGNED_P): No need for a GCC-specific version.
72264         * lib/md5.h (__attribute__): Remove; unused.
72265         * lib/sha1.c: Fix commentary to match md5 better.
72266         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
72267         so that we don't need to worry about alignment.  All uses changed.
72268         This merges the 2005-10-28 md5 change into sha1.
72269
72270 2006-01-11  Jim Meyering  <jim@meyering.net>
72271
72272         Sync from coreutils.
72273         * lib/md5.c (OP): Fix spacing.
72274
72275 2006-01-11  Bruno Haible  <bruno@clisp.org>
72276
72277         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72278         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
72279         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
72280
72281 2006-01-11  Bruno Haible  <bruno@clisp.org>
72282
72283         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72284         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
72285         the "early" section as well.
72286
72287 2006-01-11  Bruno Haible  <bruno@clisp.org>
72288
72289         Avoid "ar: no archive members specified" error on MacOS X.
72290         * gnulib-tool (func_modules_add_dummy): New function.
72291         (func_import, func_create_testdir): Invoke it.
72292
72293 2006-01-11  Bruno Haible  <bruno@clisp.org>
72294
72295         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
72296         with $auxdir in AC_CONFIG_FILES statements.
72297
72298 2006-01-11  Bruno Haible  <bruno@clisp.org>
72299
72300         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72301         Initialize also noinst_HEADERS to empty.
72302
72303 2006-01-11  Bruno Haible  <bruno@clisp.org>
72304
72305         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
72306         variables.
72307         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
72308         autoreconf.
72309
72310 2006-01-11  Bruno Haible  <bruno@clisp.org>
72311
72312         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
72313         overridable by the user.
72314         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72315
72316 2006-01-10  Simon Josefsson  <jas@extundo.com>
72317
72318         * modules/sys_socket: New file.
72319
72320 2006-01-10  Simon Josefsson  <jas@extundo.com>
72321
72322         * m4/sys_socket_h.m4: New file.
72323
72324 2006-01-10  Simon Josefsson  <jas@extundo.com>
72325
72326         * lib/socket_.h: New file.
72327
72328 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72329
72330         * modules/readutmp (Maintainer): Add myself.
72331
72332 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72333
72334         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
72335         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
72336         People who are still concerned with buggy memcmp implementations
72337         can invoke gl_FUNC_MEMCMP themselves.
72338
72339 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72340
72341         * lib/regex_internal.h (BITSET_WORD_BITS):
72342         Work around a bug in 64-bit PGC (before version 6.1-2), where the
72343         preprocessor mishandles large unsigned values as if they were signed.
72344         Problem reported by Claudio Fontana in
72345         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72346
72347 2006-01-10  Jim Meyering  <jim@meyering.net>
72348
72349         Avoid the double-free (first in fts_read, second in fts_close) that
72350         would occur when an `active' directory is made inaccessible (e.g.,
72351         via chmod a-x) during a traversal.
72352         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72353         before returning.  Reproduce this failure by
72354         mkdir -p a/b; cd a; chmod a-x . b
72355         Reported by Stavros Passas.
72356
72357         Sync from coreutils.
72358         * lib/sha1.c: Tweak grammar in a comment.
72359
72360 2006-01-10  Jim Meyering  <jim@meyering.net>
72361
72362         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72363         Patch by Joerg Sonnenberger.
72364
72365 2006-01-10  Bruno Haible  <bruno@clisp.org>
72366
72367         * modules/readutmp: Depend on module free.
72368         * modules/strtok_r: Depend on module restrict.
72369
72370 2006-01-10  Bruno Haible  <bruno@clisp.org>
72371
72372         * modules/gettext (configure.ac): Add an invocation of
72373         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72374
72375 2006-01-10  Bruno Haible  <bruno@clisp.org>
72376
72377         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
72378         Reported by Werner Lemberg <wl@gnu.org>.
72379
72380 2006-01-10  Bruno Haible  <bruno@clisp.org>
72381
72382         * lib/localcharset.c: Update from GNU gettext.
72383
72384 2006-01-10  Bruno Haible  <bruno@clisp.org>
72385
72386         * lib/argp.h (__const): Remove macro. Use const instead.
72387         * lib/argp-fmtstream.h (__const): Likewise.
72388         * lib/glob_.h (__const): Remove macro.
72389         * lib/glob-libc.h: Use const instead of __const.
72390
72391 2006-01-10  Bruno Haible  <bruno@clisp.org>
72392
72393         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
72394         variable.
72395         Needed to avoid an automake error regarding the 'gettext' module.
72396
72397 2006-01-09  Simon Josefsson  <jas@extundo.com>
72398
72399         * modules/inet_ntop (Depends-on): Add restrict.
72400
72401 2006-01-09  Simon Josefsson  <jas@extundo.com>
72402
72403         * modules/gc-rijndael-tests (License): Put under LGPL.
72404
72405         * modules/gc-des-tests (License): Likewise.
72406
72407         * modules/gc-arcfour-tests (License): Likewise.
72408
72409         * modules/gc-arctwo-tests (License): Likewise.
72410
72411         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
72412
72413         * modules/gc-hmac-sha1-tests (Files): Likewise.
72414
72415         * modules/gc-hmac-md5-tests (License): Likewise.
72416
72417         * modules/gc-sha1-tests (License): Likewise.
72418
72419         * modules/gc-md5-tests (License): Likewise.
72420
72421         * modules/gc-md4-tests (License): Likewise.
72422
72423         * modules/gc-md2-tests (License): Likewise.
72424
72425         * modules/gc-tests (License): Likewise.
72426
72427         * modules/des-tests (License): Likewise.
72428
72429         * modules/md4-tests (License): Likewise.
72430
72431         * modules/md2-tests (License): Likewise.
72432
72433 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72434
72435         Sync from coreutils:
72436
72437         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
72438         * modules/lib-ignore: New file.
72439         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
72440         chdir-safer.m4, lchmod.m4.
72441         * modules/openat: Add mkdirat.c, openat-priv.h.
72442
72443 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72444
72445         Sync from coreutils.
72446         * m4/lib-ignore.m4: New file.
72447         * m4/lchmod.m4: New file.
72448
72449 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72450
72451         Sync from coreutils.
72452         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
72453         for write access: POSIX says that must fail.
72454         * lib/fts.c (diropen): Likewise.
72455         * lib/save-cwd.c (save_cwd): Likewise.
72456         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
72457         well, for minor improvements on hosts that lack O_DIRECTORY.
72458         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
72459         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
72460         Fall back on chown if open failed with EACCES.
72461
72462         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
72463         Report an error at compile-time if only a 1-second nominal clock
72464         resolution is found.
72465
72466         * lib/lchmod.h: New file.
72467         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
72468         (make_dir_parents): Use lchown rather than chown, and
72469         lchmod rather than chmod.
72470
72471         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
72472         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
72473         "proc" reported by n0dalus.
72474
72475         * lib/mountlist.c: Include <limits.h>.
72476         (dev_from_mount_options)
72477         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
72478         New function.  It no longer assumes "dev=" has the System V meaning
72479         on Linux (since it doesn't).  It also parses "dev=" more carefully.
72480         (read_file_system_list)
72481         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
72482         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
72483         dev= in that case.
72484
72485         * lib/posixtm.h (PDS_PRE_2000): New macro.
72486         * lib/posixtm.c (year): Arg is now syntax_bits rather than
72487         allow_century.  All usages changed.  Reject dates outside the range
72488         1969-1999 if PDS_PRE_2000 is used.
72489
72490 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72491
72492         Sync from coreutils.
72493         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
72494         (Time of day items): Mention the possibility of leap seconds.
72495         Problem reported by Dr. David Alan Gilbert.
72496
72497 2006-01-09  Jim Meyering  <jim@meyering.net>
72498
72499         Sync from coreutils.
72500
72501         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
72502
72503         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
72504
72505         * lib/modechange.c (mode_compile): Reject an invalid mode string
72506         that starts with an octal digit.  From Andreas Gruenbacher.
72507
72508         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
72509         and dup to open_safer and dup_safer, respectively.
72510         (openat_permissive): Fix typo in comment.
72511
72512         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
72513         "gettext.h"; either no longer needed or are guaranteed by openat.h.
72514         (_): Remove; no longer needed.
72515         (openat): Renamed from rpl_openat; no need for rpl_openat
72516         since openat.h renames openat for us.
72517         Replace most of the body with a call to openat_permissive,
72518         to avoid duplicate code.
72519         Port to (probably hypothetical) environments were mode_t is
72520         wider than int.
72521         (openat_permissive): Require mode arg, so that we can check
72522         types better.  Put it just after flags.  Change cwd failure
72523         indicator from pointer-to-bool to pointer-to-errno-value.
72524         All callers changed.
72525         Invoke openat_save_fail and/or openat_restore_fail if
72526         cwd_errno is null, so that openat can call us.
72527         (openat_permissive, fdopendir, fstatat, unlinkat):
72528         Simplify errno handling to avoid some duplicate code,
72529         as it's OK to set errno on success.
72530         * lib/openat.h: Revamp code so that function macros depend on
72531         __OPENAT_PREFIX only, not also on AT_FDCWD.
72532         (openat_ro): Remove.  Caller changed to use openat_permissive.
72533         (openat_permissive): Now a macro, if not a function.
72534         (openat_restore_fail, openat_save_fail): Now always functions,
72535         since mkdirat needs them even if __OPENAT_PREFIX is defined.
72536
72537         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
72538         and openat.c.
72539         * lib/mkdirat.c: Include openat-priv.h.
72540         Remove definitions of macros defined therein.
72541         * lib/openat.c: Likewise.
72542
72543         * lib/mkdirat.c (mkdirat): New file and function.
72544         * lib/openat.h (mkdirat): Declare.
72545
72546         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
72547
72548         * lib/openat.h (openat_permissive): Declare.
72549         (openat_ro): Define.
72550
72551         * lib/openat.c (EXPECTED_ERRNO): New macro.
72552         (openat_permissive): New function -- used in remove.c rewrite.
72553         (all functions): Set errno just before returning, only if there
72554         was an actual failure.
72555         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
72556
72557         Emulate openat-family functions using Linux's procfs, if possible.
72558         Idea and some code based on Ulrich Drepper's glibc changes.
72559
72560         * lib/openat.c: (BUILD_PROC_NAME): New macro.
72561         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
72562         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
72563         before falling back on save_cwd and restore_cwd.
72564         (fdopendir, fstatat, unlinkat): Likewise.
72565
72566         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
72567         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
72568
72569         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
72570         as second argument to va_arg.  Otherwise, some versions of gcc
72571         warn that `if this code is reached, the program will abort'.
72572
72573 2006-01-09  Jim Meyering  <jim@meyering.net>
72574
72575         Sync from coreutils.
72576         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
72577         Require openat-priv.h.
72578
72579 2006-01-09  Bruno Haible  <bruno@clisp.org>
72580
72581         * modules/strnlen (Include): Use strnlen.h.
72582
72583 2006-01-09  Bruno Haible  <bruno@clisp.org>
72584
72585         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
72586
72587 2006-01-09  Bruno Haible  <bruno@clisp.org>
72588
72589         * lib/sysexit_.h (EX_OK): New macro.
72590         Suggested by Martin Lambers <marlam@marlam.de>.
72591
72592 2006-01-09  Bruno Haible  <bruno@clisp.org>
72593
72594         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
72595         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
72596
72597 2006-01-09  Bruno Haible  <bruno@clisp.org>
72598
72599         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
72600         numbers.
72601
72602 2006-01-09  Bruno Haible  <bruno@clisp.org>
72603
72604         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
72605         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
72606         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
72607         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
72608
72609 2006-01-09  Bruno Haible  <bruno@clisp.org>
72610
72611         * build-aux/javacomp.sh.in: New file, moved from lib/.
72612         * modules/javacomp-script (Files): Update.
72613         (configure.ac): Add AC_CONFIG_FILES invocation.
72614         (EXTRA_DIST): Remove variable.
72615
72616         * build-aux/javaexec.sh.in: New file, moved from lib/.
72617         * modules/javaexec (Files): Update.
72618         (configure.ac): Add AC_CONFIG_FILES invocation.
72619         (EXTRA_DIST): Remove javaexec.sh.in.
72620
72621         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
72622         * modules/csharpcomp-script (Files): Update.
72623         (configure.ac): Add AC_CONFIG_FILES invocation.
72624         (EXTRA_DIST): Remove variable.
72625
72626         * build-aux/csharpexec.sh.in: New file, moved from lib/.
72627         * modules/csharpexec (Files): Update.
72628         (configure.ac): Add AC_CONFIG_FILES invocation.
72629         (EXTRA_DIST): Remove csharpexec.sh.in.
72630
72631 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72632
72633         Sync from coreutils.
72634
72635         Add POSIX ACL support
72636         * lib/acl.h (copy_acl, set_acl): Add declarations.
72637         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
72638         systems other than Linux.
72639         (chmod_or_fchmod): New function: use fchmod when possible,
72640         and chmod otherwise.
72641         (file_has_acl): Add a POSIX ACL implementation, with a
72642         Linux-specific subcase.
72643         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
72644         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
72645         acls are unsupported.
72646         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
72647         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
72648         are unsupported.
72649
72650 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72651
72652         Sync from coreutils.
72653         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
72654
72655 2006-01-07  Bruno Haible  <bruno@clisp.org>
72656
72657         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
72658         gl_EARLY.
72659
72660 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72661
72662         * lib/strftime.c (tzname): Don't declare if it is already #defined.
72663         Problem reported for Mingw by Mark Junker.
72664
72665 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72666
72667         * README: Gnulib normally doesn't generate a tarball.
72668
72669 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
72670
72671         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
72672         long int, not int, for nanosecond counts, so that people who are
72673         used to POSIX struct timespec won't be surprised.  Reported by Jim
72674         Meyering.
72675
72676 2005-12-28  Bruno Haible  <bruno@clisp.org>
72677
72678         * build-aux/config.rpath: Update from GNU gettext.
72679
72680 2005-12-16  Jim Meyering  <jim@meyering.net>
72681
72682         * modules/fprintftime: New module.
72683         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
72684
72685 2005-12-16  Jim Meyering  <jim@meyering.net>
72686
72687         * m4/fprintftime.m4: New file.
72688
72689 2005-12-16  Jim Meyering  <jim@meyering.net>
72690
72691         * lib/fprintftime.c, lib/fprintftime.h: New files.
72692
72693 2005-12-15  Simon Josefsson  <jas@extundo.com>
72694
72695         * modules/socklen (configure.ac): Fix M4 macro name, to align with
72696         new m4/socklen.m4.
72697
72698 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72699
72700         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
72701         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
72702
72703 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72704
72705         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
72706         * lib/argp-help.c (fill_in_uparams): Check if the constructed
72707         struct uparams is valid. Fall back to the default values if it is
72708         not.
72709
72710 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72711
72712         * modules/argp (Files): Add argp-pin.c
72713         (Depends-on): dirname
72714         (lib_SOURCES): Add argp-pin.c
72715
72716 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72717
72718         * m4/argp.m4:  Check if program_invocation_name and
72719         program_invocation_short_name are declared and define appropriate
72720         macros if they are not.
72721
72722 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72723
72724         * lib/argp-help.c (__argp_base_name): New function
72725         (__argp_short_program_name): Rewrite using __argp_base_name
72726         * lib/argp-namefrob.h: Define program_invocation_name and
72727         program_invocation_short_name if requested
72728         (__argp_base_name): Add prototype
72729         * lib/argp-parse.c (argp_def): Use gettext wrappers
72730         (argp_default_parser): Use __argp_base_name
72731         * lib/argp-pin.c: New file. Defines program_invocation_name and
72732         program_invocation_short_name on systems that lack them.
72733
72734 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72735
72736         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
72737         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72738         porting problem reported by Georg Schwarz in
72739         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72740
72741 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72742
72743         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
72744         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72745         porting problem reported by Georg Schwarz in
72746         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72747
72748 2005-12-05  Bruno Haible  <bruno@clisp.org>
72749
72750         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
72751         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
72752         Reported by Mark Junker <mjscod@gmx.de>.
72753
72754 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
72755
72756         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
72757         Use implementation from Albert Chin, with some
72758         comments/corrections by Stepan Kasal and myself.
72759
72760 2005-12-02  Bruno Haible  <bruno@clisp.org>
72761
72762         * gnulib-tool (func_import): Accept GPLed build tool modules when
72763         --lgpl is given.
72764         * modules/csharpcomp-script: New file.
72765         * modules/csharpcomp: Depend on it.
72766         * modules/javacomp-script: New file.
72767         * modules/javacomp: Depend on it.
72768         Suggested by Simon Josefsson.
72769
72770 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
72771
72772         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
72773         statement, to work around an HP-UX 10.20 compiler bug reported by
72774         Peter O'Gorman.
72775
72776 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72777
72778         * modules/savedir (Depends-on): Add openat.
72779
72780 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72781
72782         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
72783         (uintmax_t) [defined uintmax_t]: Do not declare.
72784         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
72785         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
72786         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
72787         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
72788         sake of portability to weird hosts that C allows (though we don't
72789         know of any practical examples).
72790
72791         * lib/savedir.h (fdsavedir): New decl.
72792         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
72793         contains most of the former guts of savedir.
72794         (savedir): Use savedirstream.
72795         Include "openat.h".
72796
72797 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72798
72799         * modules/obstack (Files): Add m4/ulonglong.m4.
72800         Problem reported by Davide Angelocola.
72801
72802 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
72803
72804         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
72805         coreutils no longer futzes with rounding modes.
72806
72807 2005-11-14  Jim Meyering  <jim@meyering.net>
72808
72809         * lib/mkstemp-safer.c: Include <config.h>, required for possible
72810         replacement of mkstemp.
72811
72812 2005-11-10  Simon Josefsson  <jas@extundo.com>
72813
72814         * lib/readline.c: Remove EOL.
72815
72816 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72817
72818         * modules/gethrxtime (Depends-on): Add gettime.
72819
72820 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72821
72822         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
72823         or gettimeofday; no longer needed.
72824
72825 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72826
72827         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
72828         time business.
72829         (gethrxtime) [! (HAVE_NANOUPTIME
72830         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
72831         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
72832         our own approximation.
72833
72834 2005-11-08  Eric Blake  <ebb9@byu.net>
72835
72836         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72837
72838 2005-11-08  Eric Blake  <ebb9@byu.net>
72839
72840         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72841
72842 2005-11-04  Bruno Haible  <bruno@clisp.org>
72843
72844         * gnulib-tool: Implement --update mode.
72845
72846 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72847
72848         Fix porting problem reported by Theodoros V. Kalamatianos.
72849         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
72850         Don't assume that futimes failing means we must fail.
72851
72852 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72853
72854         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
72855         variables to suggest the intended function of the PATH_MAX check.
72856
72857 2005-10-30  Kean Johnston  <jkj@sco.com>
72858
72859         Trivial changes to support SCO systems.
72860         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
72861         as PATH_MAX.
72862         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
72863         where __ptr is null when no I/O is pending.
72864
72865 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72866
72867         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
72868         leave errno alone.  Problem reported by Dmitry V. Levin.
72869
72870 2005-10-28  Simon Josefsson  <jas@extundo.com>
72871
72872         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
72873         Test more.
72874
72875         * tests/test-gc-md2.c, tests/test-md2.c: New files.
72876
72877         * modules/md2, modules/md2-tests: New files.
72878
72879 2005-10-28  Simon Josefsson  <jas@extundo.com>
72880
72881         * m4/inet_ntop.m4: More tests.
72882
72883         * m4/gc-md2.m4, md2.m4: New file.
72884
72885 2005-10-28  Simon Josefsson  <jas@extundo.com>
72886
72887         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
72888         "restrict" keywords, as per POSIX.  Protect the function
72889         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
72890         Don't use K&R prototypes.  Check the sprintf return values.
72891         Re-define EAFNOSUPPORT if not present.  Indent.
72892
72893         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
72894         suggested by Bruno Haible <bruno@clisp.org>.
72895
72896         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
72897
72898         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
72899
72900         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
72901         libgcrypt).
72902
72903         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
72904
72905         * lib/md2.h, lib/md2.c: New files.
72906
72907 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
72908
72909         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
72910         errno alone.  Problem reported by Frederic Jolliton.
72911
72912 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72913
72914         * modules/verify (License): Change from GPL to LGPL.  This is a
72915         tiny module and there are apparently near-equivalents that are
72916         under the BSD license.
72917
72918 2005-10-24  Simon Josefsson  <jas@extundo.com>
72919
72920         * modules/sha1: Relicense to LGPL.
72921
72922 2005-10-24  Simon Josefsson  <jas@extundo.com>
72923
72924         * lib/md4.h: Shrink buffer size, now that we changed the type.
72925
72926 2005-10-23  Simon Josefsson  <jas@extundo.com>
72927
72928         * gnulib-tool (func_import): Fix --tests-base.
72929
72930 2005-10-22  Simon Josefsson  <jas@extundo.com>
72931
72932         * modules/arcfour (Depends-on): Need stdint.
72933
72934 2005-10-22  Simon Josefsson  <jas@extundo.com>
72935
72936         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
72937         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
72938
72939 2005-10-22  Simon Josefsson  <jas@extundo.com>
72940
72941         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
72942         suggested by Bruno Haible <bruno@clisp.org>.
72943
72944 2005-10-22  Simon Josefsson  <jas@extundo.com>
72945
72946         * lib/crc.h: Include stddef.h, for size_t.
72947
72948 2005-10-22  Simon Josefsson  <jas@extundo.com>
72949
72950         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
72951         arcfour_context struct (simplify test vector testing in GNU
72952         Shishi).
72953
72954 2005-10-21  Simon Josefsson  <jas@extundo.com>
72955
72956         * modules/des, modules/des-tests: New files.
72957
72958         * modules/gc-des, modules/gc-des-tests: New files.
72959
72960         * tests/test-des.c, tests/test-gc-des.c: New file.
72961
72962 2005-10-21  Simon Josefsson  <jas@extundo.com>
72963
72964         * modules/arctwo, modules/arctwo-tests: New files.
72965
72966         * tests/test-arctwo.c: New file.
72967
72968         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
72969
72970         * tests/test-gc-arctwo.c: New file.
72971
72972 2005-10-21  Simon Josefsson  <jas@extundo.com>
72973
72974         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
72975         Bruno Haible <bruno@clisp.org>.
72976
72977         * m4/gc-des.m4: New file.
72978
72979 2005-10-21  Simon Josefsson  <jas@extundo.com>
72980
72981         * m4/arctwo.m4: New file.
72982
72983         * m4/gc-arctwo.m4: New file.
72984
72985 2005-10-21  Simon Josefsson  <jas@extundo.com>
72986
72987         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
72988         block.
72989
72990 2005-10-21  Simon Josefsson  <jas@extundo.com>
72991
72992         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
72993         <bruno@clisp.org>.
72994
72995         * lib/hmac-sha1.c (hmac_sha1): Likewise.
72996
72997         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
72998         Bruno Haible <bruno@clisp.org>.
72999
73000         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73001         <bruno@clisp.org>.
73002
73003 2005-10-21  Simon Josefsson  <jas@extundo.com>
73004
73005         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73006
73007 2005-10-21  Simon Josefsson  <jas@extundo.com>
73008
73009         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73010
73011 2005-10-21  Simon Josefsson  <jas@extundo.com>
73012
73013         * lib/des.h, lib/des.c: New files.
73014
73015         * lib/gc-gnulib.c: Support DES.c
73016
73017 2005-10-21  Simon Josefsson  <jas@extundo.com>
73018
73019         * lib/arctwo.h, lib/arctwo.c: New files.
73020
73021         * lib/gc-gnulib.c: Support ARCTWO.
73022
73023 2005-10-21  Simon Josefsson  <jas@extundo.com>
73024
73025         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73026         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73027
73028 2005-10-21  Simon Josefsson  <jas@extundo.com>
73029
73030         * gnulib-tool (func_import, func_create_testdir): Define automake
73031         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73032         Makefile.am snippet),
73033         suggested by Bruno Haible <bruno@clisp.org>.
73034
73035         * modules/gc (Makefile.am): Use it.
73036
73037 2005-10-21  Bruno Haible  <bruno@clisp.org>
73038
73039         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73040         patch.
73041
73042 2005-10-19  Simon Josefsson  <jas@extundo.com>
73043
73044         * tests/test-gc-rijndael.c: New file.
73045
73046         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73047
73048 2005-10-19  Simon Josefsson  <jas@extundo.com>
73049
73050         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73051         interface too.
73052
73053 2005-10-19  Simon Josefsson  <jas@extundo.com>
73054
73055         * tests/test-gc-arcfour.c: New file.
73056
73057         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73058
73059 2005-10-19  Simon Josefsson  <jas@extundo.com>
73060
73061         * modules/gc-md4, modules/gc-md4-tests: New file.
73062
73063         * tests/test-gc-md4.c: New file.
73064
73065 2005-10-19  Simon Josefsson  <jas@extundo.com>
73066
73067         * m4/gc-md4.m4: New file.
73068
73069 2005-10-19  Simon Josefsson  <jas@extundo.com>
73070
73071         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73072         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73073         <kasal@ucw.cz>.
73074
73075 2005-10-19  Simon Josefsson  <jas@extundo.com>
73076
73077         * m4/gc-arcfour.m4: New file.
73078
73079         * m4/gc-rijndael.m4: New file.
73080
73081 2005-10-19  Simon Josefsson  <jas@extundo.com>
73082
73083         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73084
73085 2005-10-19  Simon Josefsson  <jas@extundo.com>
73086
73087         * lib/gc-gnulib.c: Support ARCFOUR.
73088
73089 2005-10-19  Simon Josefsson  <jas@extundo.com>
73090
73091         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73092         support.
73093
73094         * lib/gc.h: Add ECB enum type.
73095
73096         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73097
73098 2005-10-18  Simon Josefsson  <jas@extundo.com>
73099
73100         * tests/test-md5.c: New file.
73101
73102         * modules/md5-tests: New file.
73103
73104 2005-10-18  Simon Josefsson  <jas@extundo.com>
73105
73106         * tests/test-md4.c: New file.
73107
73108         * modules/md4, modules/md4-tests: New files.
73109
73110 2005-10-18  Simon Josefsson  <jas@extundo.com>
73111
73112         * m4/md4.m4: New file.
73113
73114 2005-10-18  Simon Josefsson  <jas@extundo.com>
73115
73116         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73117
73118 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73119
73120         * gnulib-tool (func_create_testdir): Omit the second check whether
73121         BUILT_SOURCES in nonempty.
73122
73123 2005-10-17  Simon Josefsson  <jas@extundo.com>
73124
73125         * tests/test-rijndael.c: New file.
73126
73127 2005-10-17  Simon Josefsson  <jas@extundo.com>
73128
73129         * modules/sha1: Depend on stdint instead of md5.
73130
73131         * modules/md5: Depend on stdint, remove uint32_t.
73132
73133 2005-10-17  Simon Josefsson  <jas@extundo.com>
73134
73135         * modules/gc-sha1-tests: New file.
73136
73137         * tests/test-gc-sha1.c: New file.
73138
73139 2005-10-17  Simon Josefsson  <jas@extundo.com>
73140
73141         * m4/md5.m4: Remove call to uint32_t.m4.
73142
73143 2005-10-17  Simon Josefsson  <jas@extundo.com>
73144
73145         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73146
73147         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73148         md5.h.
73149
73150         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73151
73152         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73153
73154 2005-10-17  Simon Josefsson  <jas@extundo.com>
73155
73156         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73157
73158 2005-10-17  Simon Josefsson  <jas@extundo.com>
73159
73160         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73161
73162 2005-10-17  Simon Josefsson  <jas@extundo.com>
73163
73164         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73165
73166         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73167
73168 2005-10-17  Bruno Haible  <bruno@clisp.org>
73169
73170         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73171         that it can also be used in a test.
73172
73173 2005-10-16  Bruno Haible  <bruno@clisp.org>
73174
73175         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73176         TESTS_ENVIRONMENT, so that individual tests can augment it.
73177
73178         * gnulib-tool (func_create_testdir): Use an intermediate target for
73179         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73180         macros, like $(ALLOCA_H), which cannot be passed through the command
73181         line.
73182
73183 2005-10-15  Simon Josefsson  <jas@extundo.com>
73184
73185         * modules/rijndael-tests: New file.
73186
73187         * modules/rijndael: New file.
73188
73189 2005-10-15  Simon Josefsson  <jas@extundo.com>
73190
73191         * m4/rijndael.m4: New file.
73192
73193 2005-10-15  Simon Josefsson  <jas@extundo.com>
73194
73195         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73196
73197         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73198
73199 2005-10-14  Simon Josefsson  <jas@extundo.com>
73200
73201         * tests/test-arcfour.c: New file.
73202
73203         * modules/arcfour, modules/arcfour-tests: New files.
73204
73205 2005-10-14  Simon Josefsson  <jas@extundo.com>
73206
73207         * m4/arcfour.m4: New file.
73208
73209 2005-10-14  Simon Josefsson  <jas@extundo.com>
73210
73211         * lib/arcfour.h, lib/arcfour.c: New files.
73212
73213 2005-10-14  Roland McGrath  <roland@redhat.com>
73214
73215         Import from libc.  [BZ #1331]
73216         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73217         macro argument.
73218         Reported by Matej Vela <vela@debian.org>.
73219
73220 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73221
73222         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73223         include <wchar.h>; no longer needed.
73224
73225 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73226
73227         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73228
73229 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73230         and  Ulrich Drepper  <drepper@redhat.com>
73231
73232         Import from libc.
73233         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73234         instead of inline stream orientation test and two separate
73235         function calls.  Pay no attention to USE_IN_LIBIO.
73236
73237 2005-10-13  Simon Josefsson  <jas@extundo.com>
73238
73239         * modules/gc-hmac-md5-tests: New file.
73240
73241         * tests/test-gc-hmac-sha1.c: New file.
73242
73243         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73244
73245         * modules/gc-hmac-md5-tests: New file.
73246
73247         * tests/test-gc-md5.c: New file.
73248
73249         * modules/gc-md5-tests: New file.
73250
73251 2005-10-13  Simon Josefsson  <jas@extundo.com>
73252
73253         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
73254         Move memory allocation outside of loop.
73255
73256 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
73257
73258         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
73259         intermediate directory is in a read-only file system.  Problem
73260         reported by Eric Blake.
73261
73262 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
73263
73264         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
73265
73266 2005-10-12  Simon Josefsson  <jas@extundo.com>
73267
73268         * tests/test-hmac-sha1.c: New file.
73269
73270         * modules/hmac-sha1-tests: New file.
73271
73272         * modules/hmac-sha1: New file.
73273
73274 2005-10-12  Simon Josefsson  <jas@extundo.com>
73275
73276         * modules/gc-sha1: New file.
73277
73278 2005-10-12  Simon Josefsson  <jas@extundo.com>
73279
73280         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
73281
73282         * tests/test-gc-pbkdf2-sha1.c: New file.
73283
73284 2005-10-12  Simon Josefsson  <jas@extundo.com>
73285
73286         * modules/gc-md5, modules/gc-hmac-md5: New files.
73287
73288         * modules/gc (Files): Remove md5, memxor and hmac files.
73289
73290 2005-10-12  Simon Josefsson  <jas@extundo.com>
73291
73292         * m4/gc-pbkdf2-sha1.m4: New file.
73293
73294         * m4/gc-hmac-sha1.m4: New file.
73295
73296         * m4/gc-sha1: New file.
73297
73298         * m4/hmac-sha1.m4: New file.
73299
73300 2005-10-12  Simon Josefsson  <jas@extundo.com>
73301
73302         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
73303
73304         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
73305
73306 2005-10-12  Simon Josefsson  <jas@extundo.com>
73307
73308         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
73309         suggested by Bruno Haible <bruno@clisp.org>.
73310
73311 2005-10-12  Simon Josefsson  <jas@extundo.com>
73312
73313         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
73314
73315 2005-10-12  Simon Josefsson  <jas@extundo.com>
73316
73317         * lib/gc-pbkdf2-sha1.c: New file.
73318
73319         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
73320
73321 2005-10-12  Simon Josefsson  <jas@extundo.com>
73322
73323         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
73324
73325         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
73326
73327 2005-10-12  Simon Josefsson  <jas@extundo.com>
73328
73329         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
73330         GC_USE_HMAC_MD5, respectively.
73331
73332         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
73333         (gc_md5): Fix typo.
73334
73335         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
73336
73337         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
73338
73339         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
73340
73341 2005-10-12  Bruno Haible  <bruno@clisp.org>
73342
73343         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73344         Reported by Stepan Kasal <kasal@ucw.cz>.
73345
73346 2005-10-11  Simon Josefsson  <jas@extundo.com>
73347
73348         * tests/test-crc.c: New file.
73349
73350         * modules/crc, modules/crc-tests: New files.
73351
73352 2005-10-11  Simon Josefsson  <jas@extundo.com>
73353
73354         * m4/crc.m4: New file.
73355
73356 2005-10-11  Simon Josefsson  <jas@extundo.com>
73357
73358         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73359
73360         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73361
73362         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73363
73364 2005-10-11  Simon Josefsson  <jas@extundo.com>
73365
73366         * lib/crc.h, lib/crc.c: New files.
73367
73368         * lib/gc.h (gc_hash_buffer): Add doc.
73369
73370 2005-10-11  Bruno Haible  <bruno@clisp.org>
73371
73372         * modules/c-strcasestr: New file.
73373         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73374
73375 2005-10-11  Bruno Haible  <bruno@clisp.org>
73376
73377         * modules/c-strcase: New file.
73378         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
73379
73380 2005-10-11  Bruno Haible  <bruno@clisp.org>
73381
73382         * lib/strcasecmp.c: Include limits.h.
73383         (strcasecmp): Avoid integer overflow on exotic platforms.
73384         * lib/strncasecmp.c: Include limits.h.
73385         (strncasecmp): Avoid integer overflow on exotic platforms.
73386         Reported by Paul Eggert.
73387
73388 2005-10-11  Bruno Haible  <bruno@clisp.org>
73389
73390         * lib/c-strcasestr.h: New file, from GNU gettext.
73391         * lib/c-strcasestr.c: New file, from GNU gettext.
73392
73393 2005-10-11  Bruno Haible  <bruno@clisp.org>
73394
73395         * lib/c-strcase.h: New file, from GNU gettext.
73396         * lib/c-strcasecmp.c: New file, from GNU gettext.
73397         * lib/c-strncasecmp.c: New file, from GNU gettext.
73398
73399 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73400
73401         * modules/mempcpy (License): GPL -> LGPL.
73402         * modules/strchrnul (License): Likewise.
73403         * modules/sysexits (License): Likewise.
73404
73405 2005-10-08  Simon Josefsson  <jas@extundo.com>
73406
73407         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
73408
73409 2005-10-07  Simon Josefsson  <jas@extundo.com>
73410
73411         * m4/memxor.m4: Remove gl_C_RESTRICT call.
73412
73413 2005-10-06  Simon Josefsson  <jas@extundo.com>
73414
73415         * tests/test-hmac-md5.c: New file.
73416
73417         * modules/hmac-md5-tests: New file.
73418
73419         * modules/hmac-md5: New file.
73420
73421 2005-10-06  Simon Josefsson  <jas@extundo.com>
73422
73423         * m4/hmac-md5.m4: New file.
73424
73425         * m4/memxor.m4: Require gl_C_RESTRICT.
73426
73427 2005-10-06  Simon Josefsson  <jas@extundo.com>
73428
73429         * lib/memxor.c (memxor): Avoid casts and warnings.
73430
73431 2005-10-06  Simon Josefsson  <jas@extundo.com>
73432
73433         * lib/hmac-md5.c: New file.
73434
73435         * lib/hmac.h: New file.
73436
73437 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73438
73439         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
73440         promotes to int, not unsigned int, to catch the AIX 5.3
73441         compiler bug.
73442
73443 2005-10-05  Simon Josefsson  <jas@extundo.com>
73444
73445         * modules/memxor: New file.
73446
73447         * modules/iconv (Files): Move config.rpath to havelib, it is used
73448         there.
73449
73450         * modules/havelib (Files): Add config.rpath.
73451
73452 2005-10-05  Simon Josefsson  <jas@extundo.com>
73453
73454         * m4/memxor.m4: New file.
73455
73456 2005-10-05  Simon Josefsson  <jas@extundo.com>
73457
73458         * lib/memxor.c (memxor): Fix compiler error.
73459
73460         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
73461         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
73462
73463         * lib/memxor.h, lib/memxor.c: New files.
73464
73465         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
73466         we assume all systems have it, suggested by Jim Meyering
73467         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
73468         any systems lack sys/socket.h; mingw32 is known to lack it, but we
73469         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
73470         same reasons.
73471
73472 2005-10-05  Simon Josefsson  <jas@extundo.com>
73473
73474         * config/srclist.txt: Add glibc bug 1423 for md5.h.
73475
73476 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73477
73478         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
73479         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
73480         needed, since the source code now assumes these .h files.
73481
73482 2005-10-05  Derek Price  <derek@ximbiot.com>
73483
73484         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
73485
73486 2005-10-05  Bruno Haible  <bruno@clisp.org>
73487
73488         * modules/stdint (License): Change to LGPL.
73489
73490 2005-10-04  Simon Josefsson  <jas@extundo.com>
73491
73492         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
73493         D. Baushke" <mdb@gnu.org>.
73494
73495 2005-10-04  Bruno Haible  <bruno@clisp.org>
73496
73497         * lib/verify.h (verify_true): Provide alternative definition for C++.
73498
73499 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
73500
73501         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
73502         (SSIZE_MAX): New macro, if not already defined.
73503         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
73504         than 2 GiB.
73505
73506 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73507
73508         Sync from coreutils.
73509         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
73510         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
73511         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
73512         ULLONG_MAX doesn't work with 2.7.2.1.
73513
73514 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73515
73516         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
73517         From Ben Pfaff.
73518
73519         * modules/exclude (Depends-on): Depend on verify.
73520         * modules/strtoimax (Depends-on): Likewise.
73521         * modules/utimecmp (Depends-on): Likewise.
73522
73523 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73524
73525         * lib/exclude.c: Include verify.h.
73526         (verify): Remove.  All callers changed to use verify.h's version.
73527         * lib/strtoimax.c: Likewise.
73528         * lib/utimecmp.c: Likewis.e
73529
73530         Sync from coreutils.
73531         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
73532         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
73533         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
73534         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
73535         bother returning ENOSYS if settimeofday or stime fails; just let
73536         them return whatever errno they want to return.
73537         * lib/utimens.c: Include unistd.h, for dup2.
73538         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
73539         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
73540
73541 2005-10-02  Jim Meyering  <jim@meyering.net>
73542
73543         Sync from coreutils.
73544         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
73545         from glibc-2.2.5 that fails for read-only files.
73546
73547 2005-10-02  Jim Meyering  <jim@meyering.net>
73548
73549         Sync from coreutils.
73550         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
73551         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
73552         `#if HAVE_CONFIG_H'.
73553         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
73554         Remove AT_FDCWD test.
73555         Do not consume the fd unless successful.
73556         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
73557         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
73558         block, so that we don't even try to compile it if settimeofday is
73559         available.  This works around a compilation failure on OSF1 V5.1,
73560         due to stime requiring a `long int*' while tv_sec is `int'.
73561
73562 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
73563
73564         Sync from coreutils.
73565         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
73566         against `yes', rather than just testing for nonempty.
73567
73568 2005-10-01  Simon Josefsson  <jas@extundo.com>
73569
73570         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
73571         and Darwin.
73572
73573         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
73574         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
73575         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
73576         freeaddrinfo and gai_strerror are declared by the POSIX headers.
73577         Check if struct addrinfo is declared.
73578
73579 2005-10-01  Simon Josefsson  <jas@extundo.com>
73580
73581         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
73582         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
73583         AI_* and EAI_* definitions.  Protect function declarations.
73584
73585 2005-10-01  Jim Meyering  <jim@meyering.net>
73586
73587         Sync from coreutils.
73588
73589         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
73590         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
73591         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
73592         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73593         in the inet and nsl libraries.  Required on Solaris 5.7.
73594
73595 2005-10-01  Jim Meyering  <jim@meyering.net>
73596
73597         Sync from coreutils.
73598         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73599         in the inet and nsl libraries.  Required on Solaris 5.7.
73600
73601 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
73602
73603         * lib/getdelim.c (getdelim): Remove unused variables.
73604
73605 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73606
73607         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
73608         so that the code works even with ancient cpp.  Portability problem
73609         with GCC 2.7.2.1 reported by Thomas M.Ott.
73610
73611 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73612
73613         * modules/regex (Depends-on): Add strcase.
73614
73615         * modules/gethostname (Licence): Change from GPL to LGPL, since
73616         gethostname.c is a trivial implementation of a standard library
73617         function.
73618         * modules/poll (License): Change from GPL to LGPL, since it's
73619         derived from LGPL code.
73620
73621 2005-09-27  Jim Meyering  <jim@meyering.net>
73622
73623         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
73624         HAVE_CONFIG_H.
73625
73626         * lib/intprops.h (signed_type_or_expr__): Define.
73627         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
73628         for unsigned types.
73629
73630 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73631
73632         * lib/verify.h (verify_expr): Remove, replacing with:
73633         (verify_true): New macro that returns true instead of void.
73634         (verify_type__): Remove.
73635         (verify): Use verify_true rather than verify_type__.
73636
73637 2005-09-26  Bruno Haible  <bruno@clisp.org>
73638
73639         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
73640         is necessary.
73641         (lib_SOURCES): Remove mbchar.c.
73642         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
73643         (Files): Add m4/mbrtowc.m4.
73644         * modules/mbiter: Likewise.
73645         * modules/mbuiter: Likewise.
73646
73647 2005-09-26  Bruno Haible  <bruno@clisp.org>
73648
73649         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
73650         compile mbchar.c if they are not both present.
73651         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
73652         * m4/mbiter.m4 (gl_MBITER): Likewise.
73653         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
73654         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
73655         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
73656
73657 2005-09-25  Jim Meyering  <jim@meyering.net>
73658
73659         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
73660         also uses socklen_t.
73661
73662 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
73663
73664         * lib/utimens.c (ENOSYS): Define if not already defined.
73665         (futimens): Support having a null PATH if the file descriptor
73666         is nonnegative.
73667
73668         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
73669         Remove.
73670         (__attribute): Define to empty unless GCC 3.1 or later.
73671         This works around a core dump on OpenBSD 3.4, which has GCC
73672         2.95.3, which dumps core when given __attribute__(()).  It also
73673         simplifies other tests, since we really don't want to bother with
73674         worrying about which ancient version of GCC supported what.
73675         Original problem reported by Yoann Vandoorselaere, with part of
73676         the fix suggested by Derek Price.
73677
73678 2005-09-24  Jim Meyering  <jim@meyering.net>
73679
73680         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
73681         so we can once again use a positive bitfield width of 1 -- now we
73682         don't have to explain why we were using a bitfield width of 2.
73683
73684 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73685
73686         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
73687         and similarly for the other external symbols.  Problem reported
73688         by James Gallager.
73689
73690         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
73691         bug reported by Jim Meyering.
73692
73693         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
73694         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
73695         not needed, since socklen is a prerequisite module.
73696
73697 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73698
73699         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
73700         Problem reported by Eric Blake.
73701         (getaddrinfo): Initialize se so that it's not garbage.
73702         Redo internal storage allocation so that it doesn't make unportable
73703         assumptions about alignment.
73704         Fix a memory leak.
73705
73706         * lib/utimens.c (futimens): Use futimesat if available.
73707         Prefer it to futimes since it doesn't have the futimes bug.
73708
73709         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
73710         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
73711         Instead, declare a function that returns a pointer to an array,
73712         and use verify_type__ to declare the size of the array.
73713         Problem and germ of a solution reported by Bruno Haible.
73714         (verify_type__): Use 2, not 1, for bitfield size, to avoid
73715         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
73716
73717 2005-09-23  Jim Meyering  <jim@meyering.net>
73718
73719         Sync from coreutils.
73720         Correct build failure (socklen_t not defined) on at least
73721         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
73722         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
73723
73724 2005-09-23  Jim Meyering  <jim@meyering.net>
73725
73726         * modules/getaddrinfo (Depends-on): Add socklen.
73727
73728 2005-09-23  Bruno Haible  <bruno@clisp.org>
73729
73730         * tests/test-verify.c: New file.
73731
73732 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73733
73734         Sync from coreutils.
73735
73736         * modules/argmatch (Depends-on): Add verify.
73737         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
73738         unistd-safer.
73739         * modules/save-cwd (Depends-on): Likewise.
73740
73741         * modules/openat (Files): Add lib/openat-die.c.
73742         (Depends-on): Remove error, exitfail.
73743         Add dirname.
73744
73745         * modules/verify: New file.
73746         * MODULES.html.sh (Diagnostics <assert.h>): New section,
73747         with "verify" module.
73748
73749 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73750
73751         Sync from coreutils.
73752
73753         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
73754         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
73755         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
73756         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
73757         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
73758         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
73759         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
73760         Don't bother checking for string.h, stdlib.h, unistd.h.
73761         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
73762         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
73763         module's job.
73764         * m4/jm-macros.m4 (gl_MACROS): Likewise.
73765         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
73766
73767         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
73768         (gl_GETDATE): Use it.
73769
73770         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
73771
73772 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73773
73774         Sync from coreutils.
73775
73776         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
73777         stat-time.h.
73778         * lib/argmatch.h: Include verify.h
73779         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
73780         (ARGMATCH_ASSERT): Remove; unused.
73781         * lib/canonicalize.c: Assume STDC_HEADERS.
73782         * lib/exclude.c: Include "strcase.h".
73783         * lib/regex_internal.h [!defined _LIBC]: Likewise.
73784         * lib/getusershell.c: Include stdio--.h rather than stdio.h
73785         and stdio-safer.h.
73786         (getusershell): Call fopen, not fopen_safer.
73787         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
73788         Do not include unistd-safer.h.
73789         (save_cwd): Don't call fd_safer; no longer needed
73790         now that we include fcntl--.h.
73791
73792         * lib/getdate.y (relative_time): New type.
73793         (RELATIVE_TIME_0): New constant.
73794         (parser_control): Use relative_time instead of doing it ourselves.
73795         (%union): Add new relative_time rel member.
73796         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
73797         Now typeless.
73798         (relunit, relunit_snumber): Now of type rel.
73799         (zone, rel, relunit, get_date): Adjust to above changes.
73800
73801         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
73802         Do not include unistd-safer.h.
73803         (getloadavg): Don't call fd_safer; no longer needed
73804         now that we include fcntl--.h.
73805
73806         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
73807         (make_dir_parents): Treat ENOSYS like EEXIST.
73808
73809         Improve quality of diagnostics on restore_cwd failure.
73810         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
73811         (make_dir_parents): Last arg is now int * (for errno), not bool *.
73812         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
73813         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
73814         each time through the loop.  Do not diagnose restore_cwd failure;
73815         that is the caller's job (and perhaps the caller does not care).
73816
73817         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
73818         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
73819         If the file already exists but is not a directory, don't bother
73820         to try to make its parents.
73821         Close potential file descriptor leak if we can't chdir("/") (!).
73822         Don't always return true if chdir($PWD) fails; return true only
73823         if the requested action was done successfully (except for the
73824         chdir($PWD)).
73825         Don't log final directory unless we actually made it.
73826         Refactor to avoid duplicate code to fix up permissions.
73827         Don't attempt to fix up parent permissions if chdir($PWD) fails.
73828
73829         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
73830         to make it a bit faster and (I hope) clearer.
73831         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
73832         Fix bug in formats like %2N.
73833
73834         * lib/verify.h: New file.
73835
73836 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73837
73838         Sync from coreutils.
73839         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
73840
73841 2005-09-22  Jim Meyering  <jim@meyering.net>
73842
73843         Sync from coreutils.
73844
73845         * m4/lstat.m4 (gl_FUNC_LSTAT):
73846         Use AC_LIBSOURCES to require lstat.c and lstat.h.
73847         Remove obsolete comment.
73848         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
73849         * m4/xstrtod.m4: Likewise.
73850
73851         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
73852
73853 2005-09-22  Jim Meyering  <jim@meyering.net>
73854
73855         Sync from coreutils.
73856
73857         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
73858
73859         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
73860         the .tm_year member, since otherwise gcc-4.0 would now warn about
73861         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
73862
73863         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
73864         order to avoid an unsuppressible warning from gcc on 64-bit systems.
73865
73866         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
73867         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
73868         when run in a time zone for which daylight savings time is in effect
73869         for the starting date.
73870
73871         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
73872         stop us from restricting permissions of just-created absolute-named
73873         directories.
73874         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
73875         to restore initial working directory.
73876         * lib/mkdir-p.c (make_dir_parents): New parameter:
73877         different_working_dir, to tell caller if/when we change the working
73878         directory and are unable to return to the initial one.
73879         * lib/mkdir-p.h (make_dir_parents): Update prototype.
73880         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
73881         `return false'.  This fixes a bug introduced on 2004-07-30.
73882
73883         * lib/openat.c (fdopendir): Be sure to close the supplied
73884         file descriptor before returning.  This makes our replacement
73885         implementation a little closer to Solaris's, where fdopendir
73886         ties the file descriptor to the returned DIR* pointer.
73887         * lib/openat.c (unlinkat): New function.
73888         * lib/openat.h (unlinkat): Add prototype.
73889         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
73890         (openat_restore_fail): Rename from openat_restore_die.
73891         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
73892
73893         Provide an alternative to exiting immediately upon save_cwd or
73894         restore_cwd failure.  Now, an application can arrange e.g.,
73895         to perform a longjump in that case.
73896         * lib/openat.c: Include dirname.h.
73897         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
73898         (rpl_openat, fdopendir, fstatat): Call openat_save_die
73899         and openat_restore_die rather than calling error directly.
73900         Don't include "error.h" or "exitfail.h"; they're no longer needed.
73901
73902         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
73903         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
73904         define.
73905
73906         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
73907         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
73908                             int utc, int nanoseconds);
73909         Background:
73910         date should not have to allocate a megabyte of virtual memory to
73911         handle a format argument like +%1048575T.  When implemented with
73912         strftime, it must allocate such a buffer, use strftime to fill it
73913         in, print it, then free it.
73914         With fprintftime, it simply prints everything and exits.
73915         With no need for memory allocation, that's one fewer way to fail.
73916         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
73917         optional field width, not before, so we accept %9:z, not %:9z.
73918         (my_strftime): Be sure to use L_('x') for literals.
73919
73920         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
73921         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
73922         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
73923         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
73924         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
73925         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
73926         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
73927         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
73928         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
73929         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
73930         * lib/xgethostname.c, lib/xreadlink.c:
73931         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
73932
73933         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
73934         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
73935         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
73936         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73937         and don't include <sys/file.h>).
73938
73939 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
73940
73941         Sync from coreutils.
73942
73943         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
73944         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
73945         [!LDAV_DONE]: Avoid unused variable warning.
73946
73947 2005-09-21  Bruno Haible  <bruno@clisp.org>
73948
73949         * lib/unicodeio.h (unicode_to_mb): New declaration.
73950
73951 2005-09-20  Derek Price  <derek@ximbiot.com>
73952
73953         * lib/getaddrinfo.c: Don't include <netdb.h> included from
73954         getaddrinfo.h.
73955
73956 2005-09-20  Bruno Haible  <bruno@clisp.org>
73957
73958         * gnulib-tool: Remove trailing slashes from the values specified for
73959         --source-base, --m4-base, --tests-base, --aux-dir.
73960         Suggested by Simon Josefsson <jas@extundo.com>.
73961
73962 2005-09-20  Bruno Haible  <bruno@clisp.org>
73963
73964         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
73965         func_modules_to_filelist, func_import, func_create_testdir): Make all
73966         sorting results locale-independent, so that gnulib-cache.m4 doesn't
73967         change when gnulib-tool is invoked in a different locale.
73968
73969 2005-09-19  Simon Josefsson  <jas@extundo.com>
73970
73971         * m4/socklen.m4: Fix typo.
73972
73973 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73974
73975         Use a consistent style for including <config.h>.
73976         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
73977         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
73978         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
73979         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
73980         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
73981         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
73982         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
73983         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
73984         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
73985         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
73986         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
73987         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
73988         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
73989         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
73990         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
73991         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
73992         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
73993         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
73994         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
73995         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
73996         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
73997         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
73998         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
73999         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74000         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74001         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74002         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74003         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74004         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74005         lib/xstrtoumax.c, lib/yesno.c:
74006         Standardize inclusion of config.h.
74007         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74008         lib/inttostr.h:  Removed inclusion of config.h from header files.
74009         * lib/inttostr.c:  Adjusted in-tree users.
74010         * lib/timespec.h: Remove superfluous warning to include config.h.
74011         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74012         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74013         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74014         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74015         config.h with HAVE_CONFIG_H.
74016
74017 2005-09-19  Jim Meyering  <jim@meyering.net>
74018
74019         * modules/pathmax (License): Change to LGPL.
74020
74021 2005-09-19  Derek Price  <derek@ximbiot.com>
74022
74023         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74024
74025 2005-09-19  Bruno Haible  <bruno@clisp.org>
74026
74027         * gnulib-tool (import): Provide default for --tests-base.
74028
74029 2005-09-19  Bruno Haible  <bruno@clisp.org>
74030
74031         * doc/quote.texi: New file, extracted from gnulib.texi.
74032         * doc/ctime.texi: New file, extracted from gnulib.texi.
74033         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74034         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74035         * doc/gnulib.texi: Include them.
74036
74037 2005-09-18  Bruno Haible  <bruno@clisp.org>
74038
74039         Portability fix.
74040         * gnulib-tool (func_readlink): New function.
74041         (func_ln_if_changed): Use it.
74042
74043 2005-09-18  Bruno Haible  <bruno@clisp.org>
74044
74045         * gnulib-tool: Support --with-tests also with --import.
74046         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74047         (func_import): Use variables $testsbase and $inctests. Emit a
74048         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74049         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74050         SUBDIRS += $testsdir.
74051         (func_create_testdir): Update.
74052
74053 2005-09-18  Bruno Haible  <bruno@clisp.org>
74054
74055         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74056         instead of $dry_run.
74057         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74058         (func_ln_if_changed): Don't handle dry-run here.
74059         (func_import): In dry-run mode, detect more precisely which actions
74060         would be performed, and don't use "...ing" verbs.
74061
74062 2005-09-18  Bruno Haible  <bruno@clisp.org>
74063
74064         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74065         (func_import): Use join on two temporary files instead of three nested
74066         loops, in order to determine which files are new or old.
74067
74068 2005-09-18  Bruno Haible  <bruno@clisp.org>
74069
74070         * gnulib-tool (func_import): Comment out code that spits out the
74071         new files with --dry-run.
74072
74073 2005-09-18  Bruno Haible  <bruno@clisp.org>
74074
74075         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74076
74077 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74078
74079         * lib/stat-time.h: New file.
74080         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74081         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74082         in a different way.
74083         (timespec_cmp): New function.
74084         * lib/utimecmp.c: Include stat-time.h.
74085         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74086         members exist, not on the obsolescent ST_MTIM_NSEC.
74087         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74088
74089 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74090
74091         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74092
74093 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74094
74095         * MODULES.html.sh (File system functions): Add stat-time.
74096         * modules/stat-time: New file.
74097         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74098         is now done in a different way, by the stat-time module.
74099         * modules/utimecmp (Depends-on): Add stat-time.
74100
74101 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74102
74103         * m4/st_mtim.m4: Remove.  Superseded by...
74104         * m4/stat-time.m4: New file.
74105         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74106         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74107
74108 2005-09-15  Derek Price  <derek@ximbiot.com>
74109
74110         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74111
74112 2005-09-15  Derek Price  <derek@ximbiot.com>
74113
74114         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74115         * lib/regex_internal.c: Ditto, using this...
74116         (__GNUC_PREREQ): ...new macro.
74117         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74118         using...
74119         (__GNUC_PREREQ): ...this new macro.
74120
74121         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74122
74123 2005-09-15  Derek Price  <derek@ximbiot.com>
74124             Paul Eggert  <eggert@cs.ucla.edu>
74125
74126         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74127         changes, consolidating in...
74128         * lib/regex_internal.h: ...this file.
74129
74130 2005-09-13  Jim Meyering  <jim@meyering.net>
74131
74132         * lib/canon-host.c: Filter through gnu indent and reword comments
74133         slightly.
74134         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74135
74136 2005-09-13  Derek Price  <derek@ximbiot.com>
74137
74138         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74139         failure.
74140         Reported by Jim Meyering  <jim@meyering.net>.
74141
74142 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74143
74144         * lib/base64.c: Typo.
74145         (base64_encode): Put b64str in initialized data section.
74146
74147 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74148
74149         Merge glibc and coreutils changes into gnulib, plus a few
74150         extra fixes.
74151         * lib/md5.c: Use #error rather than a string.
74152         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74153         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74154         (__attribute__): Define to empty for non recent-GCC.
74155         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74156         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74157         Renamed from their non-__ counterparts, with new macros replacing
74158         them if not _LIBC.  Add __THROW attribute.
74159         (rol): Remove.
74160         (struct md5_ctx): Align buffer if using GCC.
74161         * lib/sha1.h (struct sha1_ctx): Likewise.
74162         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74163         The old name was backwards.
74164         (NOTSWAP): Remove; not used.
74165         (rol): New macro, moved here from md5.h.
74166         (sha1_process_block): Remove a FIXME that doesn't make sense.
74167
74168 2005-09-12  Derek Price  <derek@ximbiot.com>
74169
74170         Return usable errors from canon-host.
74171         * lib/canon-host.h: New file.
74172         * lib/canon-host.c (canon_host): Wrap...
74173         (canon_host_r): ...this new function, which now relies exclusively on
74174         getaddrinfo.
74175         (ch_strerror): New function.
74176         (last_cherror): New global.
74177         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74178         interface.
74179         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74180         void *.
74181         (freeaddrinfo): Free ai->ai_canonname when set.
74182
74183 2005-09-12  Derek Price  <derek@ximbiot.com>
74184
74185         Make canon-host require getaddrinfo.
74186         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74187         AC_LIBSOURCE canon-host.h.  Call...
74188         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74189         gl_GETADDRINFO.
74190         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74191
74192 2005-09-12  Derek Price  <derek@ximbiot.com>
74193
74194         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74195         LGPL.
74196         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74197
74198 2005-09-12  Derek Price  <derek@ximbiot.com>
74199
74200         * lib/gai_strerror.c: Include config.h when available.  Include
74201         getaddrinfo.h before other headers to test interface.
74202         Reported by Larry Jones <lawrence.jones@ugs.com>.
74203
74204 2005-09-12  Derek Price  <derek@ximbiot.com>
74205             Paul Eggert  <eggert@cs.ucla.edu>
74206
74207         * modules/glob (Files): Add glob-libc.h.
74208
74209 2005-09-12  Derek Price  <derek@ximbiot.com>
74210             Paul Eggert  <eggert@cs.ucla.edu>
74211
74212         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74213         glob_.h, glob-libc.h.
74214         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74215
74216 2005-09-12  Derek Price  <derek@ximbiot.com>
74217             Paul Eggert  <eggert@cs.ucla.edu>
74218
74219         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74220         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74221         protecting things that should be done only in gnulib contexts.
74222         * lib/glob_.h: New file, containing only the glob things needed for
74223         gnulib.
74224         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74225         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74226         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74227         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74228         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74229         and to respect the namespace rules better.
74230
74231 2005-09-08  Simon Josefsson  <jas@extundo.com>
74232
74233         * modules/socklen: New file.
74234
74235 2005-09-08  Simon Josefsson  <jas@extundo.com>
74236
74237         * m4/socklen.m4: New file.
74238
74239 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74240
74241         * modules/utimens (Files): Add m4/utimbuf.m4, since
74242         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74243         Reported by Sergey Poznyakoff.
74244
74245 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74246
74247         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
74248         definitions, since that's the preferred style in glibc.
74249         Fix a minor spacing issue, and update copyright notice to match
74250         glibc's.
74251
74252 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74253
74254         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
74255
74256 2005-09-06  Simon Josefsson  <jas@extundo.com>
74257
74258         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
74259         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
74260
74261 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74262
74263         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
74264         warning.
74265
74266 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74267
74268         * config/srclist.txt: Add glibc bug 1302.
74269
74270 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
74271
74272         Change bitset word type from unsigned int to unsigned long int,
74273         as this has better performance on typical 64-bit hosts.
74274         Port bitset code to hosts with unusual word sizes.
74275         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
74276         (build_collating_symbol):
74277         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
74278         argument is a bitset.  This is merely a style issue, but it makes
74279         it clearer that an entire array is expected.
74280         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
74281         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
74282         Port to the case where bitset_word is not the same as unsigned int.
74283         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74284         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
74285         Likewise.
74286         * lib/regexec.c (check_dst_limits_calc_pos_1,
74287         check_subexp_matching_top):
74288         (build_trtable, group_nodes_into_DFAstates):
74289         Likewise.
74290         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
74291         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
74292         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
74293         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
74294         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
74295         * lib/regcomp.c (optimize_subexps, lower_subexp):
74296         Work even if bitset_word has holes in its bitwise representation.
74297         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
74298         * lib/regexec.c (check_dst_limits_calc_pos_1,
74299         check_subexp_matching_top):
74300         Likewise.
74301         * lib/regex_internal.c (re_string_reconstruct):
74302         Don't assume UCHAR_MAX == 255.
74303         * lib/regex_internal.h (bitset_set_all): Likewise.
74304         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
74305         All uses changed.
74306         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
74307         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
74308         All uses changed.
74309         (BITSET_WORD_MAX): New macro.
74310         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
74311         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
74312         (bitset_empty, bitset_copy):
74313         Prefer sizeof (bitset) to multiplying it out ourselves.
74314         (bitset_not_merge): Remove; unused.
74315         (bitset_contain): Return bool, not unsigned int with one bit on.
74316         All callers changed.
74317         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
74318         alignment than re_node_set; do this by defining a new internal
74319         type struct dests_alloc and using it to allocate memory.
74320
74321 2005-09-05  Bruno Haible  <bruno@clisp.org>
74322
74323         * gnulib-tool (func_import): Fix comparison in handling of symbolic
74324         links.
74325
74326 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
74327
74328         * modules/size_max (Makefile.am): Add size_max.h
74329
74330 2005-09-04  Derek Price  <derek@ximbiot.com>
74331
74332         * gnulib-tool (func_import): Fix reversed $symbolic logic.
74333
74334 2005-09-03  Simon Josefsson  <jas@extundo.com>
74335
74336         * gnulib-tool: Fix typo.
74337
74338 2005-09-03  Simon Josefsson  <jas@extundo.com>
74339
74340         * config/srclist.txt: Add glibc bug 1293.
74341
74342 2005-09-03  Derek Price  <derek@ximbiot.com>
74343
74344         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74345         From Larry Jones <lawrence.jones@ugs.com>.
74346
74347 2005-09-02  Simon Josefsson  <jas@extundo.com>
74348
74349         * modules/socklen: New file.
74350
74351 2005-09-02  Simon Josefsson  <jas@extundo.com>
74352
74353         * modules/havelib: New module.
74354
74355         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74356         Use havelib.
74357
74358 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74359
74360         Check for arithmetic overflow when calculating sizes, to prevent
74361         some buffer-overflow issues.  These patches are conservative, in the
74362         sense that when I couldn't determine whether an overflow was possible,
74363         I inserted a run-time check.
74364         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74365         macros.
74366         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74367         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74368         (re_xnrealloc, re_x2nrealloc): New inline functions.
74369         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74370         parse_bracket_exp):
74371         (build_equiv_class, build_charclass): Check for arithmetic overflow
74372         in size expression calculations.
74373         * lib/regex_internal.c (re_string_realloc_buffers):
74374         (build_wcs_upper_buffer, re_node_set_add_intersect):
74375         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
74376         (re_dfa_add_node, register_state): Likewise.
74377         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
74378         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
74379         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
74380         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
74381
74382 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74383
74384         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74385         m4/ulonglong.m4.  Problem reported by Martin Lambers.
74386
74387 2005-09-02  Bruno Haible  <bruno@clisp.org>
74388
74389         Support for lib vs. lib64 distinction on biarch platforms.
74390         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
74391         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
74392         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
74393
74394 2005-09-02  Bruno Haible  <bruno@clisp.org>
74395
74396         * gnulib-tool (import): In the other first-use case, provide defaults
74397         as well.
74398
74399 2005-09-02  Bruno Haible  <bruno@clisp.org>
74400
74401         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
74402         patches not yet found in the latest gettext release.
74403
74404 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74405
74406         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
74407         to avoid a collision with bits/local_lim.h in glibc.
74408         All uses changed.  Problem reported by Dmitry V. Levin in
74409         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
74410
74411         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
74412         bugs in int versus size_t comparisons.
74413         (re_string_context_at): Fix bug where the code assumed that
74414         Idx is signed.
74415
74416         Use bool where appropriate.
74417         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
74418         All callers changed.
74419         (calc_eclosure_iter): Likewise, for ROOT arg.
74420         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
74421         (build_charclass_op): Likewise, for NON_MATCH arg.
74422         * lib/regex_internal.c (re_string_allocate, re_string_construct):
74423         (re_string_construct_common): Likewise, for ICASE arg.
74424         * lib/regexec.c (re_search_2_stub, re_search_stub):
74425         Likewise, for RET_LEN arg.
74426         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
74427         (set_regs): Likewise, for FL_BACKTRACK arg.
74428         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
74429         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
74430         (calc_eclosure_iter, parse_bracket_exp):
74431         Use bool for internal variables that are booleans.
74432         * lib/regexec.c (re_search_internal, check_matching,
74433         proceed_next_node):
74434         (set_regs, build_sifted_states, sift_states_bkref):
74435         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
74436         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74437         (find_collation_sequence_value):
74438         Likewise.
74439         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
74440         (re_node_set_compare):
74441         Return bool, not int. All callers changed.
74442         * lib/regexec.c (check_halt_node_context, check_dst_limits):
74443         (build_trtable, check_node_accept): Likewise.
74444         * lib/regex_internal.h: Include stdbool.h.
74445
74446         Fix bugs uncovered when converting to bool.
74447         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
74448         failure instead of charging ahead blindly.
74449         * lib/regex_internal.c (register_state): Likewise.
74450         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
74451         for freeing internal storage.
74452         (group_nodes_into_DFA_states): Use unsigned int, not int, for
74453         bitset pieces used as boolean, to avoid undefined behavior
74454         on hosts that do int overflow checking.
74455
74456 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74457
74458         * config/srclist.txt: Add glibc bugs 1285-1287.
74459
74460 2005-09-01  Jim Meyering  <jim@meyering.net>
74461
74462         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
74463         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
74464         Require gl_STAT_MACROS, too.
74465
74466 2005-09-01  Bruno Haible  <bruno@clisp.org>
74467
74468         * gnulib-tool (import): In the first-use case, provide defaults.
74469
74470 2005-09-01  Bruno Haible  <bruno@clisp.org>
74471
74472         * gnulib-tool (func_import): Remove the .tmp files.
74473
74474 2005-09-01  Bruno Haible  <bruno@clisp.org>
74475
74476         * gnulib-tool (func_import): Fix handling of symbolic links.
74477
74478 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74479
74480         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
74481         old glibc regex code mishandles strings longer than 2**31 bytes.
74482         This patch fixes this when the regex code is used in gnulib
74483         (i.e., outside glibc).
74484
74485         This patch should not affect the use of the regex code inside
74486         glibc.  No doubt this problem also needs to be handled for glibc
74487         as well, but the result will be an incompatible change to the
74488         glibc ABI, and the old ABI will have to be supported too.  That
74489         can be the the subject for another patch.
74490
74491         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
74492         governing whether the rest of this patch is active.  By default,
74493         the macro is disabled and the patch has no effect.
74494         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
74495         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
74496         (struct re_pattern_buffer, re_search, re_search_2, re_match):
74497         (re_match_2, re_set_registers): Use the new types.
74498         * lib/regex_internal.h (Idx, re_hashval_t): New types.
74499         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
74500         New macros.
74501         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
74502         (re_string_context_at, bin_tree_t, re_dfastate_t):
74503         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
74504         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
74505         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
74506         (re_string_char_size_at, re_string_wchar_at):
74507         (re_string_elem_size_at):
74508         Use the new types and macros to port to 64-bit hosts.
74509         Use unsigned types for internal values, so that the code
74510         mostly works even for arrays larger than SSIZE_MAX.
74511         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
74512         (search_duplicated_node, calc_eclosure_iter, fetch_number):
74513         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
74514         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
74515         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
74516         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
74517         (calc_inveclosure, parse_dup_op, build_range_exp):
74518         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
74519         (fetch_number, create_token_tree, mark_opt_subexp):
74520         Likewise.
74521         * lib/regex_internal.c (re_string_construct_common,
74522         create_ci_newstate):
74523         (create_cd_newstate, re_string_allocate, re_string_construct):
74524         (re_string_realloc_buffers, build_wcs_upper_buffer):
74525         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74526         (re_string_reconstruct, re_string_peek_byte_case):
74527         (re_string_fetch_byte_case, re_string_context_at):
74528         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74529         (re_node_set_init_copy, re_node_set_add_intersect):
74530         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74531         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74532         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74533         (re_acquire_state, re_acquire_state_context, register_state):
74534         Likewise.
74535         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
74536         search_cur_bkref_entry):
74537         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
74538         (re_search_internal, re_search_2_stub, re_search_stub)
74539         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
74540         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
74541         (update_cur_sifted_state, check_dst_limits):
74542         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74543         (check_subexp_limits, sift_states_bkref, merge_state_array):
74544         (check_subexp_matching_top, get_subexp, get_subexp_sub):
74545         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
74546         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74547         (expand_bkref_cache, check_node_accept_bytes):
74548         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
74549         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
74550         (acquire_init_state_context, check_halt_node_context):
74551         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
74552         (sift_states_backward, clean_state_log_if_needed):
74553         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
74554         (find_recover_state, transit_state_sb, transit_state_mb):
74555         (transit_state_bkref, build_trtable, match_ctx_clean):
74556         Likewise.
74557         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
74558         to work around an assumption that REG_MISSING is negative.
74559
74560         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
74561         (seek_collating_symbol_entry) [defined _LIBC]:
74562         (lookup_collation_sequence_value) [defined _LIBC]:
74563         (build_range_exp, build_collating_symbol) [defined _LIBC]:
74564         Use prototypes rather than old-style function definitions.
74565         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
74566         (transit_state_sb) [0]:
74567         (find_collation_sequence_value) [defined _LIBC]: Likewise.
74568
74569         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
74570         rm_eo.
74571
74572         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
74573         (optimize_subexps, lower_subexp):
74574         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
74575         since the signed shift might overflow.  Use 1u<<31 instead.
74576         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74577         Likewise.
74578         * lib/regexec.c (check_dst_limits_calc_pos_1,
74579         check_subexp_matching_top): Likewise.
74580
74581         * lib/regcomp.c (optimize_subexps, lower_subexp):
74582         Use CHAR_BIT rather than 8, for clarity.
74583         * lib/regexec.c (check_dst_limits_calc_pos_1):
74584         (check_subexp_matching_top): Likewise.
74585         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
74586         have to worry about portability issues when shifting it left.
74587         Remove no-longer-needed test for table_size > 0.
74588         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
74589         in a word, as the resulting behavior is undefined.
74590         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
74591         in one case, a <= should have been an <, and in another case the
74592         whole test was missing.
74593         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
74594         the standard name CHAR_BIT.
74595         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
74596         this is not true on one's complement and signed-magnitude hosts.
74597
74598         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
74599         next_last_offset.
74600         (struct re_dfa_t): Remove unused member states_alloc.
74601         * lib/regcomp.c (init_dfa): Don't initialize unused members.
74602
74603 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74604
74605         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
74606         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
74607         and large-file glibc and in 32-bit large-file Solaris.
74608
74609 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74610
74611         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
74612         lengths fit in regoff_t; this isn't true if regoff_t is the same
74613         width as size_t.
74614         * lib/regex.c (re_search_internal): 5th arg is LAST_START
74615         (= START + RANGE) instead of RANGE.  This avoids overflow
74616         problems when regoff_t is the same width as size_t.
74617         All callers changed.
74618         (re_search_2_stub): Check for overflow when adding the
74619         sizes of the two strings.
74620         (re_search_stub): Check for overflow when adding START
74621         to RANGE; if it occurs, substitute the extreme value.
74622
74623 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74624
74625         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
74626
74627 2005-08-31  Jim Meyering  <jim@meyering.net>
74628
74629         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
74630         a pointer-to-const.
74631         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
74632         (register_state): Likewise.
74633         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
74634         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74635         (group_nodes_into_DFAstates): Likewise.
74636
74637 2005-08-31  Jim Meyering  <jim@meyering.net>
74638
74639         * check-module: Add a FIXME comment.
74640
74641 2005-08-31  Eric Blake  <ebb9@byu.net>
74642
74643         * modules/unistd-safer (Files): Add unistd--.h.
74644         * modules/stdio-safer (Files): Add stdio--.h.
74645
74646 2005-08-31  Derek Price  <derek@ximbiot.com>
74647
74648         * lib/getdelim.c (getdelim): Return EOF on EOF.
74649         Reported by Larry Jones <lawrence.jones@ugs.com>.
74650
74651 2005-08-31  Bruno Haible  <bruno@clisp.org>
74652
74653         Avoid unnecessary diffs in the generated lib/Makefile.am.
74654         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
74655         the generated files.
74656         (func_import): Don't set cmd.
74657
74658 2005-08-31  Bruno Haible  <bruno@clisp.org>
74659
74660         * lib/strstr.c: Include <stddef.h>, for NULL.
74661         * lib/strcasestr.c: Likewise.
74662         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74663
74664 2005-08-31  Bruno Haible  <bruno@clisp.org>
74665
74666         * gnulib-tool: New option --macro-prefix.
74667         (func_import): Use macro_prefix.
74668         (import): Handle option --macro-prefix.
74669
74670 2005-08-31  Bruno Haible  <bruno@clisp.org>
74671
74672         * gnulib-tool (import): Rename most ac_* variables to cached_*.
74673         Also use new variables cached_lgpl, cached_libtool.
74674
74675 2005-08-31  Bruno Haible  <bruno@clisp.org>
74676
74677         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
74678         always instantiating them.
74679
74680 2005-08-31  Bruno Haible  <bruno@clisp.org>
74681
74682         * gnulib-tool (func_import): Read the previous cached settings
74683         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
74684         earlier added by gnulib but are now dropped. Warn when a gnulib file
74685         overwrites a non-gnulib file.
74686
74687 2005-08-31  Bruno Haible  <bruno@clisp.org>
74688
74689         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
74690         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
74691         projects that don't keep autogenerated files in CVS. Put into
74692         actioncmd only the specified modules, not the transitive closure.
74693
74694 2005-08-31  Bruno Haible  <bruno@clisp.org>
74695
74696         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
74697         Create directories that shall be filled.
74698         (import): Don't look for gl_* macros in configure.ac. Recurse across
74699         all directories containing a gnulib-cache.m4 files, if meaningful.
74700
74701 2005-08-31  Bruno Haible  <bruno@clisp.org>
74702
74703         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
74704         (import): Set seen_libtool when we see gl_LIBTOOL.
74705
74706 2005-08-31  Bruno Haible  <bruno@clisp.org>
74707
74708         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
74709         declaration macro definitions from generated gnulib.m4.
74710
74711 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
74712
74713         * lib/iconvme.h: Add prototype for iconv_alloc.
74714
74715 2005-08-29  Simon Josefsson  <jas@extundo.com>
74716
74717         * lib/iconvme.c: Fix errno.
74718
74719 2005-08-29  Bruno Haible  <bruno@clisp.org>
74720
74721         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
74722         that it works when the directory contains spaces.
74723
74724 2005-08-29  Bruno Haible  <bruno@clisp.org>
74725
74726         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
74727
74728 2005-08-29  Bruno Haible  <bruno@clisp.org>
74729
74730         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
74731         Emit more advice.
74732
74733 2005-08-29  Bruno Haible  <bruno@clisp.org>
74734         and Stepan Kasal  <kasal@ucw.cz>
74735
74736         * check-module: If more parameters are given, check each of them
74737         separately; add more exceptions, as noted by Jim Meyering.
74738         (check_module): New procedure.
74739         (%exempt_header): Now contains all exceptions.
74740
74741 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
74742
74743         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
74744
74745 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74746
74747         * lib/iconvme.c: Split iconv_string into iconv_alloc.
74748
74749 2005-08-28  Bruno Haible  <bruno@clisp.org>
74750
74751         * m4/gnulib-tool.m4: New file.
74752
74753 2005-08-27  Jim Meyering  <jim@meyering.net>
74754
74755         * modules/unistd-safer (Files): Add pipe-safer.c.
74756         * modules/fcntl-safer (Files): Add creat-safer.c.
74757
74758 2005-08-27  Jim Meyering  <jim@meyering.net>
74759
74760         * m4/stdlib-safer.m4: New file.  From coreutils.
74761         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
74762         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
74763         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
74764         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
74765         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
74766
74767 2005-08-27  Jim Meyering  <jim@meyering.net>
74768
74769         * lib/fopen-safer.c: Merge minor changes from coreutils.
74770         * lib/dup-safer.c: Likewise.
74771         * lib/fd-safer.c: Likewise.
74772
74773         Merge from coreutils.
74774         * lib/stdio--.h: New file.
74775         * lib/stdlib--.h: New file.
74776         * lib/mkstemp-safer.c: New file.
74777
74778         GNU tar needs these.
74779         * lib/pipe-safer.c: New file.
74780         * lib/creat-safer.c: New file.
74781         * lib/fcntl--.h (creat): Define to creat_safer.
74782         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
74783         * lib/unistd--.h (pipe): Define to pipe_safer.
74784         * lib/unistd-safer.h: Declare pipe_safer.
74785
74786 2005-08-26  Simon Josefsson  <jas@extundo.com>
74787
74788         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
74789         Haible <bruno@clisp.org>.
74790
74791 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
74792
74793         * lib/regex_internal.h: Remove all references to
74794         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
74795         or better.
74796         (bitset_not, bitset_merge, bitset_not_merge):
74797         (bitset_mask, re_string_allocate, re_string_construct):
74798         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
74799         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
74800         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
74801         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
74802         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74803         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74804         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
74805         (re_acquire_state_context):
74806         Remove unnecessary forward decls.
74807         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
74808         Put __attribute at function definition,
74809         now that the function decl has been removed.
74810         * lib/regex_internal.c (re_string_peek_byte_case):
74811         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
74812         Likewise.
74813
74814 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
74815
74816         * m4/regex.m4: Add AC_PREREQ(2.50).
74817         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
74818
74819 2005-08-25  Simon Josefsson  <jas@extundo.com>
74820
74821         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
74822         __fsetlocking.
74823
74824 2005-08-25  Simon Josefsson  <jas@extundo.com>
74825
74826         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
74827         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
74828         GLIBC specific code.
74829
74830 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74831
74832         Make regex safe for g++.  This fixes one real bug (an "err"
74833         that should have been "*err").  g++ problem reported by
74834         Sam Steingold.
74835         * lib/regex_internal.h (re_calloc): New macro, consistent with
74836         re_malloc etc.  All callers of calloc changed to use re_calloc.
74837         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
74838         not int.  All callers changed.
74839         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
74840         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
74841         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
74842         (find_recover_state): Change "err" to "*err"; this fixes what
74843         appears to be a real bug.
74844         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
74845         versus int.
74846
74847 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74848
74849         * modules/regex (Depends-on): Add malloc, since the code
74850         assumes that !malloc(0) means failure.
74851
74852 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74853
74854         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
74855
74856         alloca modernization/simplification for regex.
74857         * lib/regex.c: Remove portability cruft for alloca.  This no longer
74858         needs to be at the start of the file, and can be moved into
74859         regex_internal.h and simplified.
74860         * lib/regex_internal.h: Include <alloca.h>.
74861         (__libc_use_alloca) [!defined _LIBC]: New macro.
74862         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
74863         now works outside glibc.
74864
74865 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74866
74867         * config/srclist.txt: Add glibc bugs 1241, 1245.
74868
74869 2005-08-25  Jim Meyering  <jim@meyering.net>
74870
74871         * lib/open-safer.c: Include <config.h>.
74872         Otherwise, we'd lose LARGEFILE support in any file using
74873         e.g. "fcntl--.h"
74874
74875 2005-08-25  Bruno Haible  <bruno@clisp.org>
74876
74877         * m4/minmax.m4: Require autoconf 2.52.
74878         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
74879         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
74880         alternatives of translit over the alphabet.
74881         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
74882
74883 2005-08-24  Simon Josefsson  <jas@extundo.com>
74884
74885         * tests/test-getpass.c: New file.
74886
74887 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74888
74889         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
74890         for GNU regex features.
74891
74892 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74893
74894         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
74895         * lib/regex.h (regerror): Likewise.
74896
74897         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
74898         requires this.  (The code never needed it.)
74899
74900         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
74901         All uses of recently-renamed identifiers changed to use the new,
74902         POSIX-compliant names.  The code will build and run just fine
74903         without these changes, but it's better to eat our own dog food
74904         and use the standard-conforming names.
74905
74906         * lib/regex.h: Fix a multitude of POSIX name space violations.
74907         These changes have an effect only for programs that define
74908         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
74909         do not change anything for programs compiled in the normal way.
74910         Also, there is no effect on the ABI.
74911
74912         (_REGEX_SOURCE): New macro.
74913         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
74914         defined and _GNU_SOURCE is not; this fixes a name space violation.
74915
74916         Rename the following macros to obey POSIX requirements.
74917         The old names are still visible as macros if _REGEX_SOURCE is defined.
74918         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
74919         RE_BACKSLASH_ESCAPE_IN_LISTS.
74920         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
74921         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
74922         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
74923         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
74924         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
74925         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
74926         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
74927         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
74928         (REG_INTERVALS): renamed from RE_INTERVALS.
74929         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
74930         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
74931         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
74932         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
74933         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
74934         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
74935         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
74936         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
74937         RE_UNMATCHED_RIGHT_PAREN_ORD.
74938         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
74939         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
74940         (REG_DEBUG): renamed from RE_DEBUG.
74941         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
74942         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
74943         unusual, since we can't clash with the POSIX REG_ICASE.
74944         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
74945         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
74946         (REG_NO_SUB): renamed from RE_NO_SUB.
74947         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
74948         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
74949         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
74950         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
74951         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
74952         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
74953         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
74954         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
74955         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
74956         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
74957         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
74958         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
74959         RE_SYNTAX_POSIX_MINIMAL_BASIC.
74960         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
74961         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
74962         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
74963         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
74964         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
74965         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
74966         (REG_FIXED): Renamed from REGS_FIXED.
74967         (REG_NREGS): Renamed from RE_NREGS.
74968
74969         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
74970         of other REG_* macros, since POSIX says the user is allowed to
74971         #undef these macros selectively.
74972
74973         (reg_errcode_t): Update comment stating what other tables need
74974         to be consistent.
74975
74976         Rename the following enum values to obey POSIX requirements.
74977         The old names are still visible as macros.
74978         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
74979         is not defined, since GNU is supposed to be a superset of POSIX as
74980         much as possible, and since we want reg_errcode_t to be a signed
74981         type for implementation consistency.
74982         (_REG_NOERROR): Renamed from REG_NOERROR.
74983         (_REG_NOMATCH): Renamed from REG_NOMATCH.
74984         (_REG_BADPAT): Renamed from REG_BADPAT.
74985         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
74986         (_REG_ECTYPE): Renamed from REG_ECTYPE.
74987         (_REG_EESCAPE): Renamed from REG_EESCAPE.
74988         (_REG_ESUBREG): Renamed from REG_ESUBREG.
74989         (_REG_EBRACK): Renamed from REG_EBRACK.
74990         (_REG_EPAREN): Renamed from REG_EPAREN.
74991         (_REG_EBRACE): Renamed from REG_EBRACE.
74992         (_REG_BADBR): Renamed from REG_BADBR.
74993         (_REG_ERANGE): Renamed from REG_ERANGE.
74994         (_REG_ESPACE): Renamed from REG_ESPACE.
74995         (_REG_BADRPT): Renamed from REG_BADRPT.
74996         (_REG_EEND): Renamed from REG_EEND.
74997         (_REG_ESIZE): Renamed from REG_ESIZE.
74998         (_REG_ERPAREN): Renamed from REG_ERPAREN.
74999         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75000         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75001         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75002         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75003
75004         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75005         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75006         changed.  But support the old name if the new one is not defined
75007         and if _REGEX_SOURCE.
75008
75009         Change the following member names in struct re_pattern_buffer.
75010         The old names are still supported if !_REGEX_SOURCE.
75011         The new names are always supported, regardless of _REGEX_SOURCE.
75012         (re_buffer): Renamed from buffer.
75013         (re_allocated): Renamed from allocated.
75014         (re_used): Renamed from used.
75015         (re_syntax): Renamed from syntax.
75016         (re_fastmap): Renamed from fastmap.
75017         (re_translate): Renamed from translate.
75018         (re_can_be_null): Renamed from can_be_null.
75019         (re_regs_allocated): Renamed from regs_allocated.
75020         (re_fastmap_accurate): Renamed from fastmap_accurate.
75021         (re_no_sub): Renamed from no_sub.
75022         (re_not_bol): Renamed from not_bol.
75023         (re_not_eol): Renamed from not_eol.
75024         (re_newline_anchor): Renamed from newline_anchor.
75025
75026         Change the following member names in struct re_registers.
75027         The old names are still supported if !_REGEX_SOURCE.
75028         The new names are always supported, regardless of _REGEX_SOURCE.
75029         (rm_num_regs): Renamed from num_regs.
75030         (rm_start): Renamed from start.
75031         (rm_end): Renamed from end.
75032
75033         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75034         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75035         Prepend __ to parameter names.
75036
75037         Undo yesterday's changes.
75038
75039 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75040
75041         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75042         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75043         lib/regex.c.
75044
75045 2005-08-24  Jim Meyering  <jim@meyering.net>
75046
75047         Sync from coreutils.
75048         * m4/fcntl-safer.m4: New file.
75049
75050         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75051         and object files for this module.
75052
75053 2005-08-24  Jim Meyering  <jim@meyering.net>
75054
75055         Sync from coreutils.
75056         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75057
75058 2005-08-24  Jim Meyering  <jim@meyering.net>
75059
75060         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75061         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75062
75063 2005-08-24  Jim Meyering  <jim@meyering.net>
75064
75065         * modules/fcntl-safer: New module.
75066         * modules/fts (Depends-on): Add fcntl-safer.
75067         * MODULES.html.sh (File descriptor based Input/Output):
75068         Add fcntl-safer.
75069
75070 2005-08-24  Bruno Haible  <bruno@clisp.org>
75071
75072         Support for unit test modules.
75073         * modules/README: Mention tests modules.
75074         * modules/TEMPLATE-TESTS: New file.
75075         * gnulib-tool: New options --extract-tests-module, --with-tests and
75076         --tests-base (unused for the moment).
75077         (testsbase, inctests): New variables.
75078         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75079         (func_verify_module): Exclude TEMPLATE-TESTS.
75080         (func_verify_nontests_module, func_verify_tests_module): New functions.
75081         (func_get_dependencies): Add implicit dependency for tests modules.
75082         (func_get_tests_module): New function.
75083         (func_modules_transitive_closure): When --with-tests was specified,
75084         include the unit tests as well, unless explicitly avoided.
75085         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75086         (func_emit_tests_Makefile_am): New function.
75087         (func_create_testdir): When --with-tests was specified, emit a
75088         tests/ directory.
75089         * MODULES.html.sh (Future developments): Update.
75090
75091 2005-08-24  Bruno Haible  <bruno@clisp.org>
75092
75093         * modules/tls-tests: New file.
75094         * tests/test-tls.c: New file, from GNU gettext.
75095
75096 2005-08-24  Bruno Haible  <bruno@clisp.org>
75097
75098         * modules/lock-tests: New file.
75099         * tests/test-lock.c: New file, from GNU gettext.
75100
75101 2005-08-24  Bruno Haible  <bruno@clisp.org>
75102
75103         * lib/lock.h: Add multiple inclusion guard.
75104         * lib/tls.h: Add multiple inclusion guard.
75105
75106 2005-08-24  Bruno Haible  <bruno@clisp.org>
75107
75108         * gnulib-tool: Add support for the --aux-dir option to
75109         --create-testdir, --create-megatestdir, --test, --megatest.
75110         (func_create_testdir, func_create_megatestdir): Optionally emit a
75111         AC_CONFIG_AUX_DIR directive.
75112         (create-testdir, create-megatestdir, test, megatest): Provide a
75113         default value for $auxdir.
75114
75115 2005-08-24  Bruno Haible  <bruno@clisp.org>
75116
75117         * gnulib-tool (import): Use compound statement instead of subshell
75118         where possible.
75119
75120 2005-08-24  Bruno Haible  <bruno@clisp.org>
75121
75122         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75123
75124 2005-08-24  Bruno Haible  <bruno@clisp.org>
75125
75126         * gnulib-tool (func_version): Update.
75127
75128 2005-08-24  Bruno Haible  <bruno@clisp.org>
75129
75130         * gnulib-tool (func_import, func_create_testdir,
75131         func_create_megatestdir): Quote all autoconf macro arguments.
75132
75133 2005-08-24  Bruno Haible  <bruno@clisp.org>
75134
75135         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75136         option --force, because --force causes the aclocal.m4 of each
75137         subdirectory to be newer than the corresponding config.h.in.
75138
75139 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75140
75141         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75142         All contents moved to gl_REGEX.
75143         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75144         assume that it does.
75145
75146 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75147
75148         * lib/regex.h (REG_NOSYS)
75149         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75150         Define, since POSIX requires it as of 2001.
75151         (_REG_ENOSYS)
75152         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75153         New private symbol, used to keep the enum signed in all cases.
75154         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75155         Youngman in
75156         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75157
75158         * lib/regex_internal.c (re_string_skip_chars, register_state):
75159         (calc_state_hash):
75160         Remove forward decls; no longer needed now that we use prototypes.
75161         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75162         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75163         (clean_state_log_if_needed): Likewise.
75164
75165 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75166
75167         * config/srclist.txt: Add glibc bugs 1231-1233.
75168
75169 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75170
75171         Fix problems reported by Sam Steingold in
75172         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75173         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75174         assumed that reg_errcode_t is a signed type, which is not
75175         necessarily true if _XOPEN_SOURCE is not defined.
75176         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75177         since some compilers warn about it otherwise.
75178
75179 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75180
75181         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75182         (init_word_char, create_initial_state, duplicate_node_closure):
75183         (fetch_token, peek_token_bracket, build_range_exp):
75184         (build_collating_symbol): Remove forward decls; no longer needed
75185         now that we use prototypes.
75186
75187         * lib/regcomp.c:
75188         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75189         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75190         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75191         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75192         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75193         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75194         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75195         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75196         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75197         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75198         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75199         (build_charclass, build_charclass_op, fetch_number, create_tree):
75200         (create_token_tree, mark_opt_subexp, duplicate_tree):
75201         Use prototypes rather than old-style definitions.
75202
75203         * lib/regex_internal.c:
75204         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75205         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75206         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75207         (re_string_reconstruct, re_string_peek_byte_case):
75208         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75209         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75210         (re_node_set_init_copy, re_node_set_add_intersect):
75211         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75212         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75213         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75214         (re_acquire_state, re_acquire_state_context, register_state):
75215         (create_ci_newstate, create_cd_newstate, free_state):
75216         Likewise.
75217         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75218         re_search_2):
75219         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75220         (re_search_internal, prune_impossible_nodes):
75221         (acquire_init_state_context, check_matching, static):
75222         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75223         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75224         (update_regs, sift_states_backward, build_sifted_states):
75225         (clean_state_log_if_needed, merge_state_array):
75226         (update_cur_sifted_state, add_epsilon_src_nodes):
75227         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75228         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75229         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75230         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75231         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75232         (check_arrival, check_arrival_add_next_nodes):
75233         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75234         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75235         (check_node_accept_bytes, check_node_accept, extend_buffers):
75236         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75237         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75238         (sift_ctx_init):
75239         Likewise.
75240
75241         * lib/regex_internal.h:
75242         (re_string_allocate, re_string_construct, re_string_reconstruct):
75243         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75244         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
75245         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
75246         (re_string_context_at, re_string_peek_byte_case):
75247         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
75248         is defined, since we now use prototypes always.
75249
75250         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
75251         C89 or better.  All uses removed.
75252
75253 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75254
75255         * config/srclist.txt: Add glibc bugs 1220-1227.
75256
75257 2005-08-20  Jim Meyering  <jim@meyering.net>
75258
75259         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
75260         of unused local, dfa.
75261
75262 2005-08-20  Bruno Haible  <bruno@clisp.org>
75263
75264         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
75265
75266 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75267
75268         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
75269         (re_node_set_insert_last, re_dfa_add_node):
75270         Rename local variables to avoid GCC shadowing warnings.
75271
75272 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75273
75274         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
75275         [defined lint]: Suppress bogus uninitialized-variable warnings.
75276
75277         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
75278         and let the caller return REG_ESPACE if out of space.  This
75279         removes an uninitialied-variable warning with GCC 4.0.1, and also
75280         avoids taking the address of a local variable.  All callers
75281         changed.
75282
75283 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75284
75285         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
75286         $LIBCSRC/posix/regexec.c.
75287         Add glibc bug 1217 for regcomp.c.
75288
75289 2005-08-19  Jim Meyering  <jim@meyering.net>
75290
75291         * lib/regexec.c (proceed_next_node): Redo local variables to
75292         avoid GCC shadowing warnings.
75293
75294 2005-08-18  Bruno Haible  <bruno@clisp.org>
75295
75296         * lib/strstr.c (strstr): Fix return value in multibyte case.
75297         * lib/strcasestr.c (strcasestr): Likewise.
75298
75299 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75300
75301         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
75302
75303 2005-08-17  Jim Meyering  <jim@meyering.net>
75304
75305         Make the %s format (seconds since the epoch) work for a negative
75306         number and when used with a zero-padded field width, e.g. %015s.
75307
75308         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
75309         label so that it precedes the code to set `digits'.  Otherwise,
75310         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
75311         print `00-22'.  Now, it prints `-0022', as it should.
75312
75313 2005-08-17  Bruno Haible  <bruno@clisp.org>
75314
75315         * modules/strstr (Files): Add m4/mbrtowc.m4.
75316         (Depends-on): Add mbuiter.
75317
75318 2005-08-17  Bruno Haible  <bruno@clisp.org>
75319
75320         * modules/strcasestr: New file.
75321         * MODULES.html.sh (String handling, based on ANSI C 89): Add
75322         strcasestr.
75323
75324 2005-08-17  Bruno Haible  <bruno@clisp.org>
75325
75326         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
75327
75328 2005-08-17  Bruno Haible  <bruno@clisp.org>
75329
75330         * modules/mbuiter: New file.
75331         * MODULES.html.sh (Extended multibyte and wide character utilities):
75332         Add mbuiter.
75333
75334 2005-08-17  Bruno Haible  <bruno@clisp.org>
75335
75336         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
75337         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
75338
75339 2005-08-17  Bruno Haible  <bruno@clisp.org>
75340
75341         * m4/strcasestr.m4: New file.
75342
75343 2005-08-17  Bruno Haible  <bruno@clisp.org>
75344
75345         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75346         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75347
75348 2005-08-17  Bruno Haible  <bruno@clisp.org>
75349
75350         * lib/strcasestr.h: New file.
75351         * lib/strcasestr.c: New file.
75352
75353 2005-08-17  Bruno Haible  <bruno@clisp.org>
75354
75355         * lib/strcasecmp.c: Use mbuiter.h.
75356
75357 2005-08-17  Bruno Haible  <bruno@clisp.org>
75358
75359         * lib/mbuiter.h: New file.
75360
75361 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75362
75363         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75364         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75365         and gl_GETOPT are both invoked via different paths (as happens
75366         with GNU tar CVS because it uses both argp and getopt), the former
75367         wins.
75368
75369 2005-08-16  Bruno Haible  <bruno@clisp.org>
75370
75371         * modules/tls: New file.
75372         * MODULES.html.sh (Multithreading): Add tls.
75373
75374 2005-08-16  Bruno Haible  <bruno@clisp.org>
75375
75376         * modules/strnlen1: New file.
75377         * MODULES.html.sh (String handling): Add strnlen1.
75378
75379 2005-08-16  Bruno Haible  <bruno@clisp.org>
75380
75381         * modules/strcase (Files): Add m4/mbrtowc.m4.
75382         (Depends-on): Add strnlen1, mbchar.
75383
75384 2005-08-16  Bruno Haible  <bruno@clisp.org>
75385
75386         * modules/mbiter: New file.
75387         * MODULES.html.sh (Extended multibyte and wide character utilities):
75388         Add mbiter.
75389
75390 2005-08-16  Bruno Haible  <bruno@clisp.org>
75391
75392         * modules/mbfile: New file.
75393         * MODULES.html.sh (Extended multibyte and wide character utilities):
75394         Add mbfile.
75395
75396 2005-08-16  Bruno Haible  <bruno@clisp.org>
75397
75398         * modules/mbchar: New file.
75399         * MODULES.html.sh (Extended multibyte and wide character utilities):
75400         New section.
75401
75402 2005-08-16  Bruno Haible  <bruno@clisp.org>
75403
75404         * m4/tls.m4: New file, from GNU gettext.
75405
75406 2005-08-16  Bruno Haible  <bruno@clisp.org>
75407
75408         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
75409         always.
75410         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
75411
75412 2005-08-16  Bruno Haible  <bruno@clisp.org>
75413
75414         * m4/mbiter.m4: New file.
75415
75416 2005-08-16  Bruno Haible  <bruno@clisp.org>
75417
75418         * m4/mbfile.m4: New file.
75419
75420 2005-08-16  Bruno Haible  <bruno@clisp.org>
75421
75422         * m4/mbchar.m4: New file.
75423
75424 2005-08-16  Bruno Haible  <bruno@clisp.org>
75425
75426         * lib/tls.h: New file, from GNU gettext.
75427         * lib/tls.c: New file, from GNU gettext.
75428
75429 2005-08-16  Bruno Haible  <bruno@clisp.org>
75430
75431         * lib/strnlen1.h: New file.
75432         * lib/strnlen1.c: New file.
75433
75434 2005-08-16  Bruno Haible  <bruno@clisp.org>
75435
75436         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
75437         (mbi_init): Update.
75438         (mbi_avail, mbi_advance): Let the iteration end before the terminating
75439         NUL byte, not after it.
75440
75441 2005-08-16  Bruno Haible  <bruno@clisp.org>
75442
75443         * lib/strcase.h (strcasecmp): Add note in comments.
75444         * lib/strncasecmp.c: Use code from strcasecmp.c.
75445         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
75446         (strcasecmp): Work correctly in multibyte locales.
75447
75448 2005-08-16  Bruno Haible  <bruno@clisp.org>
75449
75450         * lib/mbiter.h: New file.
75451
75452 2005-08-16  Bruno Haible  <bruno@clisp.org>
75453
75454         * lib/mbfile.h: New file.
75455
75456 2005-08-16  Bruno Haible  <bruno@clisp.org>
75457
75458         * lib/mbchar.h: New file.
75459         * lib/mbchar.c: New file.
75460
75461 2005-08-16  Bruno Haible  <bruno@clisp.org>
75462
75463         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
75464         the valid ones. Makes the comparison operations transitive:
75465         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
75466         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
75467
75468 2005-08-15  Simon Josefsson  <jas@extundo.com>
75469
75470         * modules/ssize_t (License): Change to 'unlimited'.
75471
75472         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
75473
75474 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75475
75476         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
75477         Add comments for each pending glibc patch.
75478
75479 2005-08-15  Bruno Haible  <bruno@clisp.org>
75480
75481         * lib/regex.h (__restrict_arr): Don't define to __restrict if
75482         __cplusplus is defined.
75483
75484 2005-08-14  Jim Meyering  <jim@meyering.net>
75485
75486         Sync from coreutils.
75487
75488         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
75489         Use the hash-table-based cycle-detection code not just when
75490         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
75491         Reported by James Youngman in
75492         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
75493         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
75494         FTS_TIGHT_CYCLE_CHECK.
75495         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
75496         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
75497         once again.
75498         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
75499         * lib/fts.c (fd_safer): Remove decl.
75500         Include fcntl--.h rather than unistd-safer.h
75501         (fts_safe_changedir): Don't call fd_safer; no longer needed
75502         now that we include fcntl--.h.
75503
75504 2005-08-12  Simon Josefsson  <jas@extundo.com>
75505
75506         * modules/getndelim2: Use ssize_t module.
75507         * modules/getnline: Likewise.
75508         * modules/safe-read: Likewise.
75509         * modules/xreadlink: Likewise.
75510
75511         * modules/ssize_t: New file.
75512
75513 2005-08-12  Simon Josefsson  <jas@extundo.com>
75514
75515         * m4/readline.m4: Look for termcap, curses or ncurses if required.
75516
75517 2005-08-12  Simon Josefsson  <jas@extundo.com>
75518
75519         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75520         ssize_t.
75521
75522 2005-08-12  Simon Josefsson  <jas@extundo.com>
75523
75524         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
75525         readline, getdelim and check_version.
75526         (Support for systems lacking ISO C 99: Sizes of integer types):
75527         Add size_max.
75528
75529 2005-08-12  Bruno Haible  <bruno@clisp.org>
75530
75531         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
75532
75533 2005-08-11  Simon Josefsson  <jas@extundo.com>
75534
75535         * modules/readline: New file.
75536
75537         * modules/strnlen (Files): Add strnlen.h.
75538
75539 2005-08-11  Simon Josefsson  <jas@extundo.com>
75540
75541         * m4/readline.m4: New file.
75542
75543 2005-08-11  Simon Josefsson  <jas@extundo.com>
75544
75545         * lib/readline.h, readline.c: New file.
75546
75547 2005-08-11  Simon Josefsson  <jas@extundo.com>
75548
75549         * doc/gnulib.texi (Initial import, Finishing touches): Mention
75550         gl_AVOID.
75551
75552 2005-08-11  Bruno Haible  <bruno@clisp.org>
75553
75554         * lib/strnlen.h (strnlen): Change parameter name to match comment.
75555
75556 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
75557
75558         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
75559
75560 2005-08-10  Simon Josefsson  <jas@extundo.com>
75561
75562         * tests/test-iconvme.c: New file.
75563
75564 2005-08-10  Simon Josefsson  <jas@extundo.com>
75565
75566         * m4/strnlen.m4: New file.
75567
75568         * m4/strndup.m4: Don't check for strnlen declaration, done in
75569         strnlen.m4.
75570
75571 2005-08-10  Simon Josefsson  <jas@extundo.com>
75572
75573         * lib/strndup.c: Use strnlen.h.
75574
75575         * lib/strnlen.h: New file.
75576
75577 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75578
75579         * README: Typos.
75580
75581 2005-08-02  Simon Josefsson  <jas@extundo.com>
75582
75583         * modules/readline: New file.
75584
75585 2005-08-02  Simon Josefsson  <jas@extundo.com>
75586
75587         * modules/getdelim: New file.
75588
75589         * modules/getline: Rewrite, don't use getndelim2.
75590
75591 2005-08-02  Simon Josefsson  <jas@extundo.com>
75592
75593         * m4/getline.m4: Separate out getdelim stuff into separate module.
75594
75595         * m4/getdelim.m4: New file.
75596
75597 2005-08-02  Simon Josefsson  <jas@extundo.com>
75598
75599         * lib/getline.h, getline.c: Rewrite.
75600
75601         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
75602
75603 2005-07-31  Bruno Haible  <bruno@clisp.org>
75604
75605         * lib/lock.h (gl_lock_initializer): New macro.
75606         (gl_lock_define_initialized): Use it.
75607         (gl_rwlock_initializer): New macro.
75608         (gl_rwlock_define_initialized): Use it.
75609         (gl_recursive_lock_initializer): New macro.
75610         (gl_recursive_lock_define_initialized): Use it.
75611
75612 2005-07-30  Karl Berry  <karl@gnu.org>
75613
75614         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
75615         Report from Ben Pfaff, regarding getopt.
75616
75617 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
75618
75619         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
75620         normal way.
75621         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
75622         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
75623         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
75624         (gl_GETOPT): Use the new macros.  Most of the implementation
75625         is moved to the new macros.  This is for programs like Emacs
75626         that don't want all the functionality of gl_GETOPT.
75627
75628 2005-07-26  Bruno Haible  <bruno@clisp.org>
75629
75630         * m4/lock.m4: Update from GNU gettext.
75631
75632 2005-07-26  Bruno Haible  <bruno@clisp.org>
75633
75634         * lib/lock.h: Update from GNU gettext.
75635         * lib/lock.c: Update from GNU gettext.
75636
75637 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
75638
75639         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
75640         obsolescent AC_TRY_RUN.  Include the default includes files, for
75641         'exit'.
75642
75643 2005-07-24  Bruno Haible  <bruno@clisp.org>
75644
75645         * modules/visibility: New file.
75646         * MODULES.html.sh (Misc): Add visibility.
75647
75648 2005-07-24  Bruno Haible  <bruno@clisp.org>
75649
75650         * m4/visibility.m4: New file.
75651
75652 2005-07-24  Bruno Haible  <bruno@clisp.org>
75653
75654         * doc/visibility.texi: New file.
75655
75656 2005-07-22  Bruno Haible  <bruno@clisp.org>
75657
75658         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
75659         $(ALLOCA_H), redundant through BUILT_SOURCES.
75660         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
75661         redundant through BUILT_SOURCES.
75662         * modules/byteswap (Makefile.am): Remove explicit dependency on
75663         $(BYTESWAP_H), redundant through BUILT_SOURCES.
75664         * modules/fnmatch (Makefile.am): Remove explicit dependency on
75665         $(FNMATCH_H), redundant through BUILT_SOURCES.
75666         * modules/getopt (Makefile.am): Remove explicit dependency on
75667         $(GETOPT_H), redundant through BUILT_SOURCES.
75668         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
75669         redundant through BUILT_SOURCES.
75670         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
75671         redundant through BUILT_SOURCES.
75672         * modules/stdbool (Makefile.am): Remove explicit dependency on
75673         $(STDBOOL_H), redundant through BUILT_SOURCES.
75674         * modules/stdint (Makefile.am): Remove explicit dependency on
75675         $(STDINT_H), redundant through BUILT_SOURCES.
75676         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
75677         Remove explicit dependency on $(SYSEXITS_H).
75678         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
75679
75680 2005-07-18  Simon Josefsson  <jas@extundo.com>
75681
75682         * lib/check-version.c (check_version): Accept identical versions too.
75683
75684 2005-07-18  Bruno Haible  <bruno@clisp.org>
75685
75686         * modules/lock: New file.
75687         * MODULES.html.sh (Multithreading): New section.
75688
75689 2005-07-18  Bruno Haible  <bruno@clisp.org>
75690
75691         * m4/lock.m4: New file, from GNU gettext.
75692
75693 2005-07-18  Bruno Haible  <bruno@clisp.org>
75694
75695         * lib/lock.h: New file, from GNU gettext.
75696         * lib/lock.c: New file, from GNU gettext.
75697
75698 2005-07-18  Bruno Haible  <bruno@clisp.org>
75699
75700         * lib/lock.h (gl_once_t): New type.
75701         (gl_once_define, gl_once): New macros.
75702         * lib/lock.c (fresh_once): New variable.
75703         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
75704         functions.
75705
75706 2005-07-16  Simon Josefsson  <jas@extundo.com>
75707
75708         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
75709         workaround, suggested by Bruno.
75710
75711 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75712
75713         * modules/xalloc (Depends-on): Add xalloc-die.
75714         * modules/xvasprintf (Depends-on): Add xalloc-die.
75715
75716 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75717
75718         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
75719         with a minor change.
75720
75721 2005-07-15  Bruno Haible  <bruno@clisp.org>
75722
75723         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
75724         When using lib/poll.c, define poll as rpl_poll.
75725
75726 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
75727
75728         * modules/argp (Depends-on): Remove unlocked-io.
75729
75730 2005-07-14  Derek Price  <derek@ximbiot.com>
75731
75732         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
75733         for glob symlink bug.
75734
75735 2005-07-14  Bruno Haible  <bruno@clisp.org>
75736
75737         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
75738         Instead, test for *_unlocked function declarations directly.
75739
75740 2005-07-11  Simon Josefsson  <jas@extundo.com>
75741
75742         * modules/size_max: New file.
75743
75744         * modules/xsize: Depend on size_max module for size_max.m4.
75745
75746 2005-07-11  Simon Josefsson  <jas@extundo.com>
75747
75748         * lib/size_max.h: New file.
75749
75750 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
75751
75752         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
75753         copyright symbol and the year.
75754         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
75755         (version_etc_va): Use parameterized copyright notice.
75756         Reword to conform to the current GNU coding standards.
75757
75758 2005-07-11  Karl Berry  <karl@gnu.org>
75759
75760         * doc/gnulib.texi (Quoting): new node.
75761         (Initial import): more info, from Patrice.
75762
75763 2005-07-11  Bruno Haible  <bruno@clisp.org>
75764
75765         * gnulib-tool (func_usage): Document option --avoid.
75766         (Command line options): Handle --avoid.
75767         (func_acceptable): New function.
75768         (func_modules_transitive_closure): Use it.
75769
75770 2005-07-11  Bruno Haible  <bruno@clisp.org>
75771
75772         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
75773         Reported by Jim Meyering.
75774
75775 2005-07-10  Bruno Haible  <bruno@clisp.org>
75776
75777         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
75778         Needed when size_t is smaller than 'unsigned int'.
75779         Reported by Paul Eggert.
75780
75781 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75782
75783         * modules/argp (Depends-on): Add unlocked-io
75784
75785 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75786
75787         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
75788         block of defines.
75789
75790 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75791
75792         * config/srclist.txt: Comment out regcomp.c, since we have a porting
75793         fix now.
75794
75795 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
75796         and Paul Eggert  <eggert@cs.ucla.edu>
75797
75798         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
75799         in wint_t, not wchar_t.  Remove now-unnecessary cast.
75800
75801 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75802
75803         * modules/regex (Files): Add lib/regex_internal.c,
75804         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
75805         (Depends-on): Add extensions.
75806         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
75807
75808 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75809
75810         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
75811         pathconf.
75812         * m4/same.m4 (gl_SAME): Likewise.
75813         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
75814
75815         * m4/regex.m4: Adjust to new libc regex implementation.
75816         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
75817         all the .c and .h parts of (the new) regex.
75818         Quote the m4 stuff better.
75819         Check for RE_ICASE bug of old gnulib.
75820         Check for REG_STARTEND of recent libc.
75821         Rename local variables from jm_* to gl_*.
75822         Quote operand of "test -f".
75823         Say "recent enough" version of libc, not "version 2".
75824         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
75825         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
75826         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
75827         Remove check for btowc, isascii.
75828         Require AM_LANGINFO_CODESET.
75829
75830 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75831
75832         * lib/regex.c, regex.h: Sync from libc.
75833         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
75834         * lib/regexec.c:
75835         New files, synced from libc, except that regex_internal.h
75836         currently has a small porting fix.
75837
75838 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75839
75840         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
75841         regex_internal.c, regexec.c.
75842         Add regex_internal.h too, but as a comment, since the libc version
75843         is currently broken in gnulib mode.
75844
75845 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75846
75847         Support programs like Emacs that use gnulib but not gettext.
75848         * MODULES.html.sh (Internationalization functions): Add gettext-h.
75849         * modules/gettext-h: New file.
75850         * modules/gettext (Files): Remove lib/gettext.h.
75851         (Depends-on): Add gettext-h.
75852         (Makefile.am): Remove lib_SOURCES.
75853         * modules/argmatch, modules/c-stack, modules/closeout:
75854         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
75855         * modules/execute, modules/file-type, modules/getaddrinfo:
75856         * modules/getopt, modules/human, modules/javacomp:
75857         * modules/javaexec, modules/mkdir-p, modules/obstack:
75858         * modules/openat, modules/pagealign_alloc, modules/pipe:
75859         * modules/quotearg, modules/regex, modules/rpmatch:
75860         * modules/unicodeio, modules/userspec, modules/version-etc:
75861         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
75862         * modules/xsetenv:
75863         Depend on gettext-h, not gettext.
75864
75865 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75866
75867         * gnulib-tool (func_import): Add support for 'public domain' license.
75868         * modules/alloca, modules/atexit, modules/memmove:
75869         Now public domain, not GPL.
75870         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
75871         * modules/realloc, modules/strerror, modules/strtod:
75872         Now LGPL, not GPL.
75873
75874 2005-07-05  Bruno Haible  <bruno@clisp.org>
75875
75876         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
75877         autoconf CVS. Needed for mingw.
75878
75879 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75880
75881         Remove the dependency of the strftime module on the tzset module.
75882         * modules/strftime (Depends-on): Remove dependency on tzset.
75883
75884 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75885
75886         Remove the dependency of the strftime module on the tzset module.
75887         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
75888         gl_FUNC_TZSET_CLOBBER.
75889
75890 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75891
75892         Remove the dependency of the strftime module on the tzset module.
75893         * lib/strftime.c (my_strftime)
75894         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
75895         Copy the input structure, to work around some of the bug with
75896         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
75897         Solaris releases, you should also use the tzset module, but we won't
75898         require it as a dependency any more since we don't want LGPLed code
75899         to depend on GPLed code.
75900
75901 2005-07-02  Jim Meyering  <jim@meyering.net>
75902
75903         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
75904         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
75905         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
75906         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
75907
75908 2005-07-02  Jim Meyering  <jim@meyering.net>
75909
75910         * lib/backupfile.c (backup_args): Change a `0' to NULL.
75911
75912 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75913
75914         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
75915         declares only 'struct timespec;' (!).
75916
75917 2005-07-01  Jim Meyering  <jim@meyering.net>
75918
75919         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
75920         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
75921         * lib/save-cwd.c, tempname.c:
75922         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75923         and don't include <sys/file.h>).
75924
75925 2005-06-29  Jim Meyering  <jim@meyering.net>
75926
75927         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
75928         type name.  Use the variable name instead.
75929         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
75930         Likewise.
75931
75932 2005-06-28  Simon Josefsson  <jas@extundo.com>
75933
75934         * modules/check-version (Files): Add check-version.m4.
75935
75936 2005-06-28  Simon Josefsson  <jas@extundo.com>
75937
75938         * m4/check-version.m4: New file, suggested by Jim Meyering
75939         <jim@meyering.net>.
75940
75941 2005-06-28  Simon Josefsson  <jas@extundo.com>
75942
75943         * lib/check-version.h, lib/check-version.c: New files.
75944
75945 2005-06-28  Simon Josefsson  <jas@extundo.com>
75946
75947         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
75948         collision with global variable.  Better indentation.  Don't
75949         increment buffer pointer beyond buffer end.  Based on comments
75950         from Paul Eggert <eggert@cs.ucla.edu>.
75951
75952         * lib/base64.h: Indent.
75953
75954 2005-06-28  Simon Josefsson  <jas@extundo.com>
75955
75956         * doc/gnulib.texi (Library version handling): New section.
75957
75958 2005-06-28  Jim Meyering  <jim@meyering.net>
75959
75960         * check-module (find_included_lib_files): Hard-code another
75961         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
75962         but modules/fts-lgpl (correctly) does not list those files.
75963
75964         * modules/canonicalize (Files): Add lib/pathmax.h.
75965
75966 2005-06-25  Simon Josefsson  <jas@extundo.com>
75967
75968         * modules/check-version: New file.
75969
75970 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
75971
75972         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
75973         initializer of struct addrinfo, as an indication that we don't
75974         care how many members the structure has.
75975
75976 2005-06-24  Derek Price  <derek@ximbiot.com>
75977         and Bruno Haible  <bruno@clisp.org>
75978
75979         Remove stat module & update lstat.
75980         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
75981         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75982         * m4/stat.m4: Remove this file.
75983
75984 2005-06-24  Derek Price  <derek@ximbiot.com>
75985         and Bruno Haible  <bruno@clisp.org>
75986
75987         Remove stat module & update lstat.
75988         * lib/stat.c: Remove this file...
75989         (slash_aware_lstat): ...moving this content and its support...
75990         * lib/lstat.c (rpl_lstat): ...into here.
75991         * lib/lstat.h: New file.
75992
75993 2005-06-24  Derek Price  <derek@ximbiot.com>
75994         and Bruno Haible  <bruno@clisp.org>
75995
75996         Remove stat module & update lstat.
75997         * config/srclist.txt (libc sources): Remove stat.
75998
75999 2005-06-24  Derek Price  <derek@ximbiot.com>
76000         and Bruno Haible  <bruno@clisp.org>
76001
76002         Remove stat module & update lstat.
76003         * MODULES.html.sh (stat): Remove.
76004         * MODULES.html: Regenerated.
76005         * modules/lstat (Description): Correct function name.
76006         (Files): Add "lstat.h".
76007         (Depends-on): Remove stat, add xalloc, stat-macros.
76008         * modules/stat: Remove this file.
76009         (Include): Add "lstat.h", remove <sys/stat.h>.
76010
76011 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76012
76013         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76014         (ranged_convert): Don't save conversion in a temporary struct.
76015         This causes a warning with GCC 4.0.0, and anyway in the typical
76016         case it's not worth the extra 100 bytes or so of code.
76017         (ranged_convert, __mktime_internal): When calling a function via a
76018         pointer P, use P () rather than (*P) (), as we now assume C89 or
76019         better.
76020
76021 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76022
76023         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76024         "who -r" failed to give output.  Problem reported by Tim Waugh.
76025
76026         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76027         (xcalloc): Use it to avoid needless tests.
76028         Problem reported by Jim Meyering.
76029
76030 2005-06-20  Derek Price  <derek@ximbiot.com>
76031
76032         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76033         unnecessary for Autoconfs > 2.59c.
76034
76035 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76036
76037         * lib/argp.h (__option_is_short): Check upper limit of
76038         __key. Isprint() requires its argument to have the value
76039         of an unsigned char or EOF.
76040
76041 2005-06-16  Jim Meyering  <jim@meyering.net>
76042
76043         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76044         when either N or S is zero.
76045
76046 2005-06-16  Derek Price  <derek@ximbiot.com>
76047
76048         * m4/bison.m4: Declare YACC & YFLAGS precious.
76049
76050 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76051
76052         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76053         multibyte string or pattern, fall back on unibyte matching.
76054         Problem reported by James Youngman.
76055
76056 2005-06-08  Bruno Haible  <bruno@clisp.org>
76057
76058         * modules/csharpcomp: New file.
76059         * MODULES.html.sh (C#): Add csharpcomp.
76060
76061 2005-06-08  Bruno Haible  <bruno@clisp.org>
76062
76063         * m4/csharpcomp.m4: New file, from GNU gettext.
76064
76065 2005-06-08  Bruno Haible  <bruno@clisp.org>
76066
76067         * lib/csharpcomp.h: New file, from GNU gettext.
76068         * lib/csharpcomp.c: New file, from GNU gettext.
76069         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76070
76071 2005-06-08  Bruno Haible  <bruno@clisp.org>
76072
76073         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76074         warning on mingw.
76075
76076 2005-06-07  Derek Price  <derek@ximbiot.com>
76077
76078         Sync from CVS.
76079         * lib/glob_.h: Indent nested #ifdef.
76080
76081 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76082
76083         Sync from coreutils.
76084         Use "file name" when talking about file names, instead of "filename"
76085         or "path", as per the GNU coding standards.
76086         * lib/mkdir-p.c: Renamed from makepath.c.
76087         (make_dir_parents): Renamed from make_path.  All callers changed.
76088         * lib/mkdir-p.h: Likewise.  All includers changed.
76089         * lib/filenamecat.c: Renamed from path-concat.c.
76090         (file_name_concat): Renamed from path_concat.  All callers changed.
76091         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76092         * lib/filenamecat.h: Likewise.  All includers changed.
76093         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76094         in comments or local variable names.
76095         * lib/basename.c: Likewise.
76096         * lib/canonicalize.c, canonicalize.h: Likewise.
76097         * lib/dirname.c, dirname.h: Likewise.
76098         * lib/euidaccess.c: Likewise.
76099         * lib/exclude.c: Likewise
76100         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76101         * lib/fsusage.c, fsuage.h: Likewise.
76102         * lib/fts.c, fts_.h: Likewise.
76103         * lib/getcwd.c: Likewise.
76104         * lib/getloadavg.c: Likewise.
76105         * lib/mkstemp.c: Likewise.
76106         * lib/mountlist.c, mountlist.h: Likewise.
76107         * lib/openat.c, openat.h: Likewise.
76108         * lib/readlink-stub.c: Likewise.
76109         * lib/readutmp.c, readutmp.h: Likewise.
76110         * lib/rename.c: Likewise.
76111         * lib/rmdir.c: Likewise.
76112         * lib/same.c: Likewise.
76113         * lib/savedir.c: Likewise.
76114         * lib/stripslash.c: Likewise.
76115         * lib/tempname.c: Likewise.
76116         * lib/xreadlink.c: Likewise.
76117         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76118         All uses changed.
76119         * lib/exclude.h: Likewise.
76120
76121         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76122         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76123         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76124         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76125         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76126         files have been getting away with it for years (MORE/BSD 4.3
76127         is extinct now).
76128         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76129         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76130
76131         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76132         Define to 256, not 255, as per modern POSIX.
76133
76134 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76135
76136         Sync from coreutils.
76137         Use "file name" when talking about file names, instead of "filename"
76138         or "path", as per the GNU coding standards.
76139         * MODULES.html.sh: mkdir-p renamed from makepath.
76140         filenamecat renamed from path-concat.
76141         * modules/filenamecat: Renamed from modules/path-concat.
76142         (Files): filenamecat.h and filenamecat.c renamed from
76143         path-concat.h and path-concat.c.
76144         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76145         (Include): filenamecat.h, not path-concat.h.
76146         * modules/mkdir-p: Renamed from modules/makepath.
76147         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76148         makepath.c.
76149         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76150         (Include): mkdir-p.h, not makepath.h.
76151
76152 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76153
76154         Sync from coreutils.
76155         * m4/mkdir-p.m4: Renamed from makepath.m4.
76156         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76157         Rename files from makepath.c to mkdir-p.c, and from
76158         makepath.h to mkdir-p.h.
76159         * m4/filenamecat.m4: Renamed from path-concat.m4.
76160         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76161         Rename files from path-concat.c to filenamecat.c,
76162         and from path-concat.h to filenamecat.h.
76163         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76164         "file name" in local variables or comments.
76165         * m4/rename.m4: Likewise.
76166
76167 2005-06-01  Bruno Haible  <bruno@clisp.org>
76168
76169         * modules/csharpexec: New file.
76170         * MODULES.html.sh (C#): New section.
76171
76172 2005-06-01  Bruno Haible  <bruno@clisp.org>
76173
76174         * m4/csharp.m4: New file, from GNU gettext.
76175         * m4/csharpexec.m4: New file, from GNU gettext.
76176
76177 2005-06-01  Bruno Haible  <bruno@clisp.org>
76178
76179         * lib/csharpexec.h: New file, from GNU gettext.
76180         * lib/csharpexec.c: New file, from GNU gettext.
76181         * lib/csharpexec.sh.in: New file, from GNU gettext.
76182
76183 2005-05-31  Derek Price  <derek@ximbiot.com>
76184             Paul Eggert  <eggert@cs.ucla.edu>
76185
76186         Sync from cvs.
76187         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76188
76189 2005-05-31  Derek Price  <derek@ximbiot.com>
76190             Paul Eggert  <eggert@cs.ucla.edu>
76191
76192         Sync from cvs.
76193         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76194
76195 2005-05-29  Derek Price  <derek@ximbiot.com>
76196
76197         * config/srclist.txt (glob_.h, glob.c): Add these files.
76198
76199 2005-05-29  Derek Price  <derek@ximbiot.com>
76200
76201         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76202         * modules/glob: New file.
76203         * modules/getlogin_r: Add link to POSIX spec in description.
76204
76205 2005-05-29  Derek Price  <derek@ximbiot.com>
76206             Paul Eggert  <eggert@cs.ucla.edu>
76207
76208         * m4/glob.m4: New file.
76209
76210 2005-05-29  Derek Price  <derek@ximbiot.com>
76211             Paul Eggert  <eggert@cs.ucla.edu>
76212
76213         * lib/glob_.h, lib/glob.c: New files.
76214
76215 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76216
76217         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76218         * modules/fts-lgpl (Depends-on): Remove gettext.
76219
76220 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76221
76222         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76223         and don't require gt_INTTYPES_PRI.
76224
76225 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76226
76227         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76228
76229         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76230         the configuration hassle isn't worth it.
76231         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76232         (LONGEST_MODIFIER, PRIuMAX): Remove.
76233
76234 2005-05-27  Bruno Haible  <bruno@clisp.org>
76235
76236         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76237
76238 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76239
76240         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76241         _POSIX_PTHREAD_SEMANTICS for Solaris.
76242
76243 2005-05-25  Derek Price  <derek@ximbiot.com>
76244
76245         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
76246
76247 2005-05-25  Derek Price  <derek@ximbiot.com>
76248             Paul Eggert  <eggert@cs.ucla.edu>
76249
76250         * modules/getlogin_r, m4/getlogin_r.m4: New files.
76251         * lib/getlogin_r.c, getlogin_r.h: New files.
76252
76253 2005-05-25  Bruno Haible  <bruno@clisp.org>
76254             Derek Price  <derek@ximbiot.com>
76255
76256         * lib/getlogin_r.h: Simplify API documentation.
76257
76258 2005-05-23  Derek Price  <derek@ximbiot.com>
76259
76260         * modules/minmax (Files): Add m4/minmax.m4.
76261         (configure.ac): Add gl_MINMAX.
76262
76263 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76264
76265         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
76266         so that unistd-safer.h (GPL'ed code) need not be included.
76267
76268 2005-05-22  Bruno Haible  <bruno@clisp.org>
76269
76270         * m4/minmax.m4: New file.
76271         Based on a patch by Derek Price <derek@ximbiot.com>.
76272
76273 2005-05-22  Bruno Haible  <bruno@clisp.org>
76274
76275         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
76276         (INT64_MIN): Fix definition.
76277         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
76278
76279         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
76280         NEED_SIGNED_INT_TYPES.
76281
76282         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
76283         HAVE_SYSTEM_INTTYPES.
76284
76285 2005-05-22  Bruno Haible  <bruno@clisp.org>
76286
76287         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
76288         Also include <sys/param.h> if it defines MIN, MAX.
76289         Based on a patch by Derek Price <derek@ximbiot.com>.
76290
76291 2005-05-21  Jim Meyering  <jim@meyering.net>
76292
76293         * modules/fts (Files): Add m4/inttypes-pri.m4.
76294         (Depends-on): Add lstat and remove gettext.  Alphabetize.
76295
76296 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76297
76298         New fts module.
76299         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
76300         (setup_dir, free_dir): New functions.
76301         (enter_dir, leave_dir): Define trivial
76302         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
76303         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
76304         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
76305         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
76306         Move to fts-cycle.c.
76307         (fts_open): Use setup_dir.
76308         (fts_close): Use free_dir.
76309         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
76310         This adds a label and some gotos, but the alternatives were messier.
76311         Check for memory allocation failure when entering a dir.
76312         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
76313         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
76314         (FTS): New member fts_cycle, that is a union that contains the
76315         old active_dir_ht and cycle_state.  All uses changed to mention
76316         fts_cycle.ht and fts_cycle.state.
76317         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
76318         fts.c, with the following changes:
76319         (setup_dir, free_dir): New functions.
76320         (enter_dir): Now returns bool.  Return true if successful, false
76321         if memory exhausted.  All callers changed.
76322         Do not bother partly cleaning up on
76323         memory allocation failure; that is free_dir's job.
76324         However, free ad if hash_insert fails, to avoid memory leak.
76325         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
76326         fts->fts_options to see which union member to use.
76327
76328 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76329
76330         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
76331         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
76332
76333 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76334
76335         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
76336
76337 2005-05-20  Jim Meyering  <jim@meyering.net>
76338
76339         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
76340         Now a macro, to pacify GCC.
76341
76342 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76343
76344         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76345         of -1.
76346
76347 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76348
76349         * lib/chown.c (rpl_chown): Return -1 on failure.
76350
76351 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76352
76353         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76354         Don't check for stddef.h.
76355         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76356         don't use its results.
76357         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76358         since we include them unconditionally.  Don't require
76359         AM_STDBOOL_H, since stdbool is a prerequisite.
76360         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76361         since we assume C89 or better.
76362         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76363         as we don't use their results.
76364         Don't check for fchdir, memmove, memset, strrchr, as we use
76365         them unconditionally.
76366         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76367         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76368
76369 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76370
76371         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76372         Include <stddef.h> unconditionally, since we assume C89 now.
76373         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76374         * lib/fts.c: Include fts_.h first, to check interface.
76375         Do not include intprops.h; no longer needed.
76376         Include cycle-check.h and hash.h, since fts_.h no longer does.
76377         Remove unnecessary casts of closedir to void.
76378         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
76379         decide whether to decrement nlinks.
76380         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
76381         (FTS): Use struct hash_table * instead of Hash_table, so that
76382         we no longer need to include hash.h here.
76383
76384 2005-05-18  Jim Meyering  <jim@meyering.net>
76385
76386         * modules/dirfd (License): Change to LGPL.  Most of the code
76387         is already in the public domain.
76388
76389 2005-05-18  Jim Meyering  <jim@meyering.net>
76390
76391         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
76392         Reported by Yoann Vandoorselaere.
76393
76394 2005-05-17  Jim Meyering  <jim@meyering.net>
76395
76396         * m4/fts.m4: New file, from coreutils.
76397
76398 2005-05-17  Jim Meyering  <jim@meyering.net>
76399
76400         * lib/fts.c, lib/fts_.h: New files, from coreutils.
76401
76402 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76403
76404         Sync from coreutils.
76405         * m4/unlinkdir.m4: New file.
76406
76407 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76408
76409         Sync from coreutils.
76410         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
76411         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
76412         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
76413         White space changes only.
76414         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76415         special.
76416         * lib/yesno.c: Include getline.h, not ctype.h.
76417         (yesno): Don't remove leading white space; POSIX doesn't allow it.
76418         Use getline to remove arbitrary restriction on response length.
76419
76420 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76421
76422         * config/srclist-update: Spell out "Street" in FSF postal
76423         mail address; this is the style the FSF seems to prefer.
76424
76425         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
76426         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
76427         this updates FSF postal mail address.
76428
76429         Sync from coreutils.
76430         * modules/unlinkdir: New file.
76431         * modules/yesno (Depends-on): Add getline.
76432         * MODULES.html.sh (File system functions): Add unlinkdir.
76433
76434 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76435
76436         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
76437         lib/strsep.h:
76438         Change the initial comment to refer to GPL, not LGPL.
76439         gnulib-tool will change it to LGPL as needed.
76440
76441         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
76442         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
76443         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
76444         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
76445         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
76446         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
76447         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
76448         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
76449         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
76450         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
76451         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
76452         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
76453         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
76454         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
76455         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
76456         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
76457         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
76458         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
76459         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
76460         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
76461         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
76462         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
76463         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
76464         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
76465         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
76466         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
76467         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
76468         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
76469         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
76470         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
76471         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
76472         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
76473         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
76474         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
76475         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
76476         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
76477         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
76478         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
76479         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
76480         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
76481         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
76482         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
76483         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
76484         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
76485         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
76486         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
76487         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
76488         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
76489         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
76490         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
76491         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76492         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
76493         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
76494         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
76495         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
76496         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
76497         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
76498         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
76499         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
76500         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
76501         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
76502         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
76503         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
76504         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
76505         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
76506         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
76507         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
76508         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
76509         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
76510         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
76511         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
76512         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
76513         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
76514         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
76515         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
76516         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
76517         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
76518         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
76519         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
76520         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
76521         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
76522         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
76523         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
76524         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
76525         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
76526         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
76527         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
76528         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
76529         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
76530         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
76531         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
76532         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
76533         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
76534         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
76535         lib/yesno.c, lib/yesno.h:
76536         Update FSF postal mail address.
76537
76538 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76539
76540         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
76541         tests/test-memmem.c, tests/test-stpncpy.c:
76542         Update FSF postal mail address.
76543
76544 2005-05-13  Bruno Haible  <bruno@clisp.org>
76545
76546         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
76547         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
76548         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
76549         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
76550         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
76551         Add support for 64-bit integers in the MSVC compiler.
76552
76553 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76554
76555         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
76556
76557 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
76558
76559         * gnulib-tool (func_import): Sort and uniquify recommended includes.
76560
76561 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
76562
76563         * doc/getdate.texi (General date syntax): Don't say that date
76564         date --iso-8601=ns generates acceptable dates; it doesn't yet.
76565         Problem reported by Nic Ferrier.
76566
76567 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76568
76569         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
76570         specified in ai_socktype. Fix invalid ai_protocol
76571         check. ai_protocol is usually set to 0 or depending on
76572         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
76573         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
76574         ai_socktype / ai_protocol in the returned addrinfo structure.
76575
76576 2005-05-10  Simon Josefsson  <jas@extundo.com>
76577
76578         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
76579         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76580
76581 2005-05-10  Karl Berry  <karl@gnu.org>
76582
76583         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
76584         (from http://www.gnu.org/licenses).
76585         * doc/COPYING.LIB: also rename to COPYING.LESSER.
76586         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
76587         fdl.texi suffices.
76588
76589 2005-05-10  Karl Berry  <karl@gnu.org>
76590
76591         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
76592         (COPYING.DOC): remove.
76593
76594         * config/srclist-update: new FSF address.
76595
76596 2005-05-10  Derek Price  <derek@ximbiot.com>
76597
76598         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
76599         possible.
76600
76601 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76602             Bruno Haible  <bruno@clisp.org>
76603
76604         * modules/inet_ntop: New file.
76605         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76606         inet_ntop.
76607
76608 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76609             Bruno Haible  <bruno@clisp.org>
76610
76611         * m4/inet_ntop.m4: New file.
76612
76613 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76614             Bruno Haible  <bruno@clisp.org>
76615
76616         * lib/inet_ntop.h: New file.
76617         * lib/inet_ntop.c: New file, from glibc with modifications.
76618
76619 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
76620
76621         * modules/time_r (License): Change to LGPL.
76622         * modules/extensions (License): Change to LGPL.  Actually,
76623         the license is more permissive than that, but currently gnulib-tool
76624         doesn't know how to handle more-permissive licenses.
76625
76626         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
76627         Problem reported by Dave Love.
76628
76629 2005-05-08  Jim Meyering  <jim@meyering.net>
76630
76631         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
76632         blank.
76633
76634 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76635
76636         * modules/argmatch (Depends-on): Add stdbool.
76637         * modules/backupfile (Depends-on): Likewise.
76638         * modules/chdir-long (Depends-on): Likewise.
76639         * modules/closeout (Depends-on): Likewise.
76640         * modules/cycle-check (Depends-on): Likewise.
76641         * modules/dirname (Depends-on): Likewise.
76642         * modules/fnmatch (Depends-on): Likewise.
76643         * modules/fsusage (Depends-on): Likewise.
76644         * modules/fwriteerror (Depends-on): Likewise.
76645         * modules/getcwd (Depends-on): Likewise.
76646         * modules/getloadavg (Depends-on): Likewise.
76647         * modules/hard-locale (Depends-on): Likewise.
76648         * modules/makepath (Depends-on): Likewise.
76649         * modules/mountlist (Depends-on): Likewise.
76650         * modules/nanosleep (Depends-on): Likewise.
76651         * modules/posixtm (Depends-on): Likewise.
76652         * modules/quotearg (Depends-on): Likewise.
76653         * modules/readtokens (Depends-on): Likewise.
76654         * modules/readtokens0 (Depends-on): Likewise.
76655         * modules/readutmp (Depends-on): Likewise.
76656         * modules/save-cwd (Depends-on): Likewise.
76657         * modules/strftime (Depends-on): Likewise.
76658         * modules/userspec (Depends-on): Likewise.
76659         * modules/utimecmp (Depends-on): Likewise.
76660         * modules/xgetcwd (Depends-on): Likewise.
76661         * modules/xnanosleep (Depends-on): Likewise.
76662         * modules/xstrtod (Depends-on): Likewise.
76663         * modules/yesno (Depends-on): Likewise.
76664
76665 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
76666
76667         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
76668         needless checks.
76669
76670 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76671
76672         Merge from coreutils.  Among other things,
76673         add bulletproofing for cases where stdin, stdout, or stderr are closed.
76674         * lib/fd-safer.c: New file.
76675         * lib/fcntl-safer.h, open-safer.c: Remove.
76676         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
76677         * lib/dup-safer.c: Include unistd-safer.h first.
76678         Don't include errno.h.
76679         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
76680         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
76681         * lib/file-type.c: Rely on file-type.h change.
76682         * lib/getloadavg.c: Include unistd-safer.h.
76683         (getloadavg): Use safer open.
76684         * lib/getusershell.c: Include "stdio-safer.h".
76685         (getusershell): Use safer fopen.
76686         * lib/long-options.c (long_options): Use NULL rather than 0.
76687         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
76688         'free'.
76689         * lib/modechange.c: Likewise.
76690         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
76691         (MODE_DONE): New constant.
76692         (struct mode_change): Remove 'next' member.
76693         (make_node_op_equals): New function; like the old one of the
76694         same name, except it allocates an array.
76695         (mode_compile, mode_create_from_ref): Use it.
76696         (mode_compile): Allocate result as an array, not a linked list.
76697         Parse octal string ourself, so that we catch mistakes like "+0".
76698         (mode_adjust): Arg is an array, not a linked list.
76699         * lib/modechange.c: Include stat-macros.h, xalloc.h.
76700         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
76701         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
76702         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
76703         Remove.  This is now stat-macros.h's job.
76704         (talloc): Remove.  All callers replaced by xalloc, so that
76705         our invokers don't have to worry about reporting memory failures.
76706         (make_node_op_equals): Remove.
76707         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76708         New constants.
76709         (struct mode_change): Moved here from modechange.h.
76710         (mode_append_entry): Remove.
76711         (mode_compile): Remove MASKED_OPS arg, since it encouraged
76712         apps to have incorrect behavior.  Use simpler algorithm for head
76713         and tail.  Don't futz with umask; that's now the job of mode_adjust.
76714         Detect more invalid usages rather than having somewhat-random behavior.
76715         Don't insert an "a=" action, as that leads to incorrect behavior.
76716         (mode_compile, mode_create_from_ref): Return NULL on error instead
76717         of an enum, since now there's only one way to have an error.  All
76718         callers changed.
76719         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
76720         at the correct time.  Simplify calculation of "+u" and its ilk.
76721         Don't mishandle "+X".
76722         (mode_free): Remove "register" and localize decls.
76723         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76724         (struct mode_change): Move to modechange.c; callers don't
76725         need to see this stuff.
76726         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
76727         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
76728         (mode_change, mode_adjust): Reflect the new signatures noted above.
76729         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
76730         that might redefine system include files.
76731         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
76732         (my_usleep): Use NULL rather than (void *) 0.
76733         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
76734         Use siginterrupt to specify that system calls should be interrupted.
76735         (rpl_nanosleep): Move initialization of suspended closer to call of
76736         my_usleep.
76737         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
76738         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
76739         (desirable_utmp_entry): New function.
76740         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
76741         using x2nrealloc, to simplify logic.
76742         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
76743         size calculation.  Do not assume utmp file is a regular file.
76744         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
76745         (READ_UTMP_CHECK_PIDS): New constant.
76746         * lib/save-cwd.c: Include unistd-safer.h.
76747         (save_cwd): Use fd_safer.
76748         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
76749         [!_LIBC] Include "stat-macros.h" instead.
76750         * lib/unistd-safer.h (fd_safer): New decl.
76751
76752 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76753
76754         * modules/getloadavg (Depends-on): Add unistd-safer.
76755         * modules/getusershell (Depends-on): Add stdio-safer.
76756         * modules/lstat (Depends-on): Remove xalloc.
76757         * modules/mkstemp (Depends-on): Add stat-macros.
76758         * modules/modechange (Depends-on): Remove xstrtol.
76759         Add stat-macros, xalloc.
76760         * modules/save-cwd (Depends-on): Add unistd-safer.
76761         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
76762         * modules/unistd-safer (Files): Add lib/fd-safer.c
76763         (Makefile.am): Remove lib_SOURCES.
76764
76765         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
76766         Remove fcntl-safer; unistd-safer supersedes it.
76767
76768 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76769
76770         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
76771         AC_HEADER_STAT.
76772         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
76773         (gl_PREREQ_CHOWN): Remove.
76774         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
76775         it.  Don't require AC_HEADER_STAT.
76776         (gl_PREREQ_LSTAT): Remove.
76777         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
76778         Don't require AC_HEADER_STAT.
76779         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
76780         (gl_PREREQ_RMDIR): Remove.
76781         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
76782         mention stat-macros.h or AC_HEADER_STAT, since we'll make
76783         the stat-macros module a prerequisite.
76784         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
76785         * m4/filemode.m4 (gl_FILEMODE): Likewise.
76786         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
76787         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
76788         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
76789         variable names.
76790         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
76791         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
76792         variable prefixes.
76793         * m4/fcntl-safer.m4: Remove.
76794         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
76795         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
76796         Invoke gl_PREREQ_FD_SAFER.
76797         (gl_PREREQ_FD_SAFER): New macro.
76798         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
76799         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
76800         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
76801         Remove duplicate call to AC_LIBOBJ(readutmp).
76802         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
76803
76804         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
76805         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
76806
76807 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76808
76809         * MODULES.html.sh (Misc): Add byteswap.
76810
76811 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76812
76813         * modules/getcwd (Depends-on): Add extensions.
76814         * modules/openat (Depends-on): Likewise.
76815
76816 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76817
76818         * modules/byteswap: New file.
76819
76820 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76821
76822         * m4/byteswap.m4: New file.
76823
76824 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76825
76826         * lib/byteswap_.h: New file.
76827
76828 2005-04-25  Karl Berry  <karl@gnu.org>
76829
76830         * m4/gettext.m4: Update from GNU gettext 0.14.4.
76831
76832 2005-04-25  Albert Chin  <china@thewrittenword.com>
76833
76834         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
76835         Toolkit C bug.
76836
76837 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
76838
76839         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
76840         (func_ln_if_changed): Remove forcibly for no error message
76841         in case file does not exist.
76842
76843 2005-04-19  Simon Josefsson  <jas@extundo.com>
76844
76845         * gnulib-tool (Options): Make --symlink mean --symbolic.
76846
76847 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
76848
76849         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
76850
76851 2005-04-16  Simon Josefsson  <jas@extundo.com>
76852
76853         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
76854
76855 2005-04-15  Simon Josefsson  <jas@extundo.com>
76856
76857         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
76858
76859 2005-04-15  Simon Josefsson  <jas@extundo.com>
76860
76861         * gnulib-tool: Rename --symlink to --symbolic.
76862
76863 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
76864
76865         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
76866         symbolic links to files instead of copying/moving.  Add --aux-dir,
76867         specifying directory relative --dir where auxiliary build tools
76868         are placed.
76869
76870 2005-04-14  Bruno Haible  <bruno@clisp.org>
76871
76872         * modules/allocsa (License): Change to LGPL.
76873         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76874
76875 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76876
76877         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
76878         that "UTC +1 second" continues to work.  Problem reported
76879         by Dmitry V. Levin.
76880         (relunit_snumber): New rule.
76881         (relunit): Use it.
76882
76883 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76884
76885         * lib/getdate.y (universal_time_zone_table): New constant.
76886         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
76887         universal_time_zone_table.
76888         (lookup_zone): Prefer universal_time_zone_table to
76889         local_time_zone_table, so that "GMT" time stamps are allowed in
76890         London during the summer.  Problem reported by Ian Abbott.
76891
76892 2005-04-12  Jim Meyering  <jim@meyering.net>
76893
76894         * lib/human.c (humblock): Set *options even when returning due to
76895         xstrtoumax conversion failure.  Thanks to a used-uninitialized
76896         warning from gcc-4.
76897
76898 2005-04-09  Jim Meyering  <jim@meyering.net>
76899
76900         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
76901         -Wuninitialized: initialize tm0.tm_year.
76902
76903 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
76904
76905         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
76906         count, since there's no maximum.  All uses changed.
76907         Add member dsts_seen.
76908         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
76909         not being INT_MAX.
76910         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
76911         Use pc_rels_seen to decide whther a date is absolute.
76912
76913         * lib/getdate.y (number): Don't overwrite year.
76914         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
76915         check.
76916
76917 2005-04-02  Simon Josefsson  <jas@extundo.com>
76918
76919         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
76920         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
76921
76922 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
76923
76924         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
76925         where no absolute path name can be longer than PATH_MAX.
76926
76927 2005-03-27  Jim Meyering  <jim@meyering.net>
76928
76929         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
76930
76931 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
76932
76933         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
76934         "one's complement" -> "ones' complement" in comment, as per Knuth.
76935         "value of type" -> "type or expression" in comment.
76936         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
76937
76938 2005-03-26  Jim Meyering  <jim@meyering.net>
76939
76940         Comment nits.
76941         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
76942         Correct typos: s/or/of/.
76943
76944 2005-03-26  Jim Meyering  <jim@meyering.net>
76945
76946         * modules/check-include-files: Move to ../ and rename to...
76947         * check-module: ...this.
76948
76949 2005-03-25  Jim Meyering  <jim@meyering.net>
76950
76951         * modules/xvasprintf (Files): Add xalloc.h.
76952
76953 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
76954
76955         * modules/gettext (Files): config/config.rpath ->
76956         build-aux/config.rpath
76957         * modules/iconv (Files): Likewise.
76958         Problem reported by Oskar Liljeblad.
76959
76960 2005-03-23  Jim Meyering  <jim@meyering.net>
76961
76962         * modules/check-include-files: New script to check for
76963         missing dependencies, multiple includes, etc.
76964
76965         * modules/c-strtold (Depends-on): Add xalloc.
76966         * modules/c-strtod (Depends-on): Add xalloc.
76967         * modules/hash (Depends-on): Add xalloc.
76968         (Files): Remove lib/xalloc.h.
76969
76970         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
76971         * modules/userspec (Files): Add lib/inttostr.h.
76972
76973 2005-03-23  Jim Meyering  <jim@meyering.net>
76974
76975         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
76976
76977 2005-03-22  Jim Meyering  <jim@meyering.net>
76978
76979         * modules/stat-macros: New module.
76980         * modules/canonicalize, modules/euidaccess, modules/file-type,
76981         * modules/filemode, modules/lchown, modules/makepath,
76982         * modules/rmdir, modules/stat: Depend on new stat-macros module
76983         rather than listing lib/stat-macros.h manually.
76984         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
76985
76986 2005-03-22  Jim Meyering  <jim@meyering.net>
76987
76988         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
76989
76990 2005-03-22  Bruno Haible  <bruno@clisp.org>
76991
76992         * config/srclist.txt: Replace target directory 'config' with
76993         'build-aux'.
76994         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
76995         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
76996         ../build-aux/.
76997
76998 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
76999
77000         * modules/chdir-long (Depends-on): Add mempcpy.
77001
77002         * modules/acl, modules/backupfile, modules/c-strtod,
77003         modules/c-strtold, modules/canon-host, modules/canonicalize,
77004         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77005         modules/exclude, modules/exitfail, modules/file-type,
77006         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77007         modules/getdate, modules/getline, modules/getpagesize,
77008         modules/getpass, modules/getugroups, modules/group-member,
77009         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77010         modules/inttostr, modules/long-options, modules/makepath,
77011         modules/md5, modules/memcasecmp, modules/memcoll,
77012         modules/modechange, modules/mountlist, modules/path-concat,
77013         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77014         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77015         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77016         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77017         modules/strftime, modules/strndup, modules/strverscmp,
77018         modules/timespec, modules/unlocked-io, modules/userspec,
77019         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77020         modules/yesno:
77021         Remove lib_SOURCES line from Makefile.am section, as this is now
77022         done automatically by the corresponding Autoconf macro.
77023
77024 2005-03-21  Jim Meyering  <jim@meyering.net>
77025
77026         Changes imported from coreutils.
77027
77028         * lib/cycle-check.c: Don't include xalloc.h.
77029
77030         * lib/path-concat.c: Don't include assert.h.
77031         (path_concat): Remove assertion that would have triggered
77032         for ABASE starting with more than one slash.
77033         Reported by Andreas Schwab.
77034
77035         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77036         properly when ABASE is an absolute file name.
77037         Correct the description of this function.
77038         Include <assert.h>.
77039         Add an assertion and a test driver.
77040         This fixes a bug introduced on 2004-07-02.
77041         Andreas Schwab reported the resulting failure of cp --parents:
77042         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77043
77044 2005-03-21  Jim Meyering  <jim@meyering.net>
77045
77046         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77047         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77048
77049 2005-03-21  Jim Meyering  <jim@meyering.net>
77050         and  Paul Eggert  <eggert@cs.ucla.edu>
77051
77052         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77053         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77054         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77055         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77056         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77057         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77058         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77059         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77060         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77061         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77062         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77063         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77064         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77065         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77066         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77067         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77068         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77069         for these modules.
77070
77071 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77072
77073         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77074         (which shouldn't happen), generate nothing instead of returning 0
77075         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77076
77077 2005-03-16  Bruno Haible  <bruno@clisp.org>
77078
77079         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77080         HAVE_LONGLONG_64BIT.
77081
77082 2005-03-16  Bruno Haible  <bruno@clisp.org>
77083
77084         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77085         HAVE_LONGLONG_64BIT.
77086
77087 2005-03-16  Bruno Haible  <bruno@clisp.org>
77088
77089         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77090         HAVE_LONGLONG_64BIT.
77091
77092 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77093
77094         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77095         reliably distinguish strftime failure from empty output on POSIX
77096         hosts.
77097
77098 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77099
77100         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77101         (iconv_string): Don't guess a size-zero buffer, as that might cause
77102         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77103         result would be 'too large', where 'too large' is (heuristically)
77104         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77105         overflow concerns.  This will prevent some unwanted malloc failures
77106         when the inputs are very large.
77107
77108 2005-03-15  Karl Berry  <karl@gnu.org>
77109
77110         * config/srclist.txt (config.rpath): from gettext.
77111         * config/config.rpath: update.
77112
77113 2005-03-15  Bruno Haible  <bruno@clisp.org>
77114
77115         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77116         to 'negate'.
77117
77118         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77119         variable.
77120
77121         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77122         results.
77123
77124 2005-03-14  Simon Josefsson  <jas@extundo.com>
77125
77126         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77127         <fx@gnu.org>.
77128
77129 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77130
77131         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77132         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77133         intprops.h.
77134         * lib/strtol.c: Likewise.
77135
77136 2005-03-14  Jim Meyering  <jim@meyering.net>
77137
77138         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77139         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77140         to be nonzero so that we (and caller) can detect the difference
77141         between a valid zero-length expansion and an error return, even
77142         when the underlying strftime fails before writing anything into
77143         that location.
77144
77145 2005-03-14  Bruno Haible  <bruno@clisp.org>
77146
77147         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77148         Update from GNU gettext 0.14.3.
77149
77150 2005-03-10  Jim Meyering  <jim@meyering.net>
77151
77152         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77153
77154 2005-03-10  Jim Meyering  <jim@meyering.net>
77155
77156         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77157         so that this module works on systems without fchdir.
77158
77159 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77160
77161         Factor int-properties macros into a single file, except for
77162         glibc-related files.
77163         * lib/intprops.h: New file.
77164         * lib/getloadavg.c: Include it instead of limits.h.
77165         (INT_STRLEN_BOUND): Remove.
77166         * lib/human.c: Include intprops.h.
77167         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77168         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77169         302/1000.
77170         * lib/inttostr.h: Include intprops.h instead of limits.h.
77171         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77172         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77173         for consistency with intprops.h.
77174         (time_t_is_integer, twos_complement_arithmetic): Use them.
77175         * lib/sig2str.h: Include <signal.h>, intprops.h.
77176         (INT_STRLEN_BOUND): Remove.
77177         * lib/strftime.c (TYPE_SIGNED): Remove.
77178         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77179         * lib/strtol.c: Adjust comments to match intprops.h.
77180         * lib/userspec.c: Include intprops.h.
77181         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77182         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77183         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77184         instead of rolling our own expressions.
77185         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77186
77187         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77188         instead of int.
77189         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77190         the right thing even if adding 1900 would overflow.  Similarly
77191         for tm_mon + 1 and tm_yday + 1.
77192         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77193         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77194         (DO_SIGNED_NUMBER): New macro.
77195         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77196
77197 2005-03-07  Bruno Haible  <bruno@clisp.org>
77198
77199         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77200
77201 2005-03-07  Bruno Haible  <bruno@clisp.org>
77202
77203         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77204
77205 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77206
77207         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77208         (func_import): Only replace files via --import when they have actually
77209         changed.
77210
77211 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77212
77213         * m4/mmap-anon.m4: New file.
77214         * m4/pagealign_alloc.m4: New file.
77215
77216 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77217             Bruno Haible  <bruno@clisp.org>
77218
77219         * modules/pagealign_alloc: New file.
77220         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77221
77222 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77223             Bruno Haible  <bruno@clisp.org>
77224
77225         * lib/pagealign_alloc.h: New file.
77226         * lib/pagealign_alloc.c: New file.
77227
77228 2005-03-03  Bruno Haible  <bruno@clisp.org>
77229
77230         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77231         Use an all-permissive copyright notice, recommended by RMS.
77232
77233 2005-03-02  Bruno Haible  <bruno@clisp.org>
77234
77235         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77236         of AIX, the replacement has to be done only after <string.h> is
77237         included, therefore not in config.h. stpncpy.h does the replacement,
77238         and stpncpy.c uses it.
77239
77240 2005-03-02  Bruno Haible  <bruno@clisp.org>
77241
77242         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77243         stpncpy.c uses it.
77244
77245 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77246
77247         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
77248         The workaround isn't strictly needed for POSIX conformance, and
77249         it's too much of a pain to configure and maintain.  We'll ask
77250         people to fix their kernels instead.
77251         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
77252         (NANOSLEEP_BUG_WORKAROUND): Remove.
77253         (xnanosleep): Remove the workaround.
77254
77255 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77256
77257         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
77258         Reported by Derek Price.
77259         (Include): Add "timespec.h".
77260
77261         * modules/xnanosleep (Depends-on): Remove gethrxtime.
77262
77263 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77264
77265         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
77266         to detect nanosleep bug.
77267
77268 2005-03-01  Bruno Haible  <bruno@clisp.org>
77269
77270         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
77271
77272 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77273
77274         * modules/gethrxtime: New file.
77275         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
77276         (Depends-on): Add gethrxtime.
77277         (configure.ac): Add gl_XNANOSLEEP.
77278         (Makefile.am): Remove lib_SOURCES line.
77279
77280 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77281
77282         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
77283         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
77284
77285 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77286
77287         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
77288         * lib/timespec.h (gettime): Return void, since it always
77289         succeeds now.  All uses changed.
77290         * lib/gettime.c (gettime): Likewise.
77291         [HAVE_NANOTIME]: Prefer nanotime.
77292         Assume gettimeofday succeeds, as POSIX requires.
77293         Assime time () succeeds, since other code already does.
77294         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
77295         (timespec_subtract): Remove.
77296         (NANOSLEEP_BUG_WORKAROUND): New constant.
77297         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
77298         things considerably.  Use it only on GNU/Linux hosts, since the
77299         workaround shouldn't be needed elsewhere.
77300
77301 2005-02-24  Bruno Haible  <bruno@clisp.org>
77302
77303         * modules/gettext (Files): Add m4/glibc2.m4.
77304
77305 2005-02-24  Bruno Haible  <bruno@clisp.org>
77306
77307         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
77308         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
77309         * m4/progtest.m4:
77310         Update from GNU gettext 0.14.2.
77311         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
77312
77313 2005-02-24  Bruno Haible  <bruno@clisp.org>
77314
77315         * lib/localcharset.c: Update from GNU gettext 0.14.2.
77316         * lib/config.charset: Update from GNU gettext 0.14.2.
77317
77318 2005-02-24  Bruno Haible  <bruno@clisp.org>
77319
77320         * lib/gettext.h: Update from GNU gettext 0.14.2.
77321
77322 2005-02-23  Simon Josefsson  <jas@extundo.com>
77323
77324         * m4/iconvme.m4: New file.
77325
77326 2005-02-23  Jim Meyering  <jim@meyering.net>
77327
77328         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
77329         change.
77330         Thanks to Bruno Haible for catching it.
77331
77332 2005-02-22  Simon Josefsson  <jas@extundo.com>
77333
77334         * modules/iconvme: New file.
77335
77336         * MODULES.html.sh: Add iconvme.
77337
77338 2005-02-22  Simon Josefsson  <jas@extundo.com>
77339
77340         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
77341
77342 2005-02-22  Simon Josefsson  <jas@extundo.com>
77343
77344         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77345
77346 2005-02-22  Jim Meyering  <jim@meyering.net>
77347
77348         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77349         s/ifndef/ifdef/.
77350
77351 2005-02-20  Neil Conway  <neilc@samurai.com>
77352
77353         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77354         returned by OSX/Darwin if the specified buffer is not large
77355         enough for the hostname.
77356
77357 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77358
77359         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77360         pass it to _help, otherwise the latter coredumps trying to
77361         dereference state.root_argp.
77362
77363 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77364
77365         * modules/chdir-long (Depends-on): Add memrchr.
77366         * modules/memrchr (Files): Add lib/memrchr.h.
77367         (Include): "memrchr.h".
77368
77369 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77370
77371         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77372
77373 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77374
77375         * lib/memrchr.h: New file.
77376         * lib/chdir-long.c: Include it.
77377         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
77378         Don't bother including stddef.h.
77379
77380 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
77381
77382         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
77383         inclusion.
77384         Include <sys/types.h>, for dev_t.
77385         (ME_DUMMY, ME_REMOTE): Move from here....
77386         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
77387         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
77388         Dmitry V. Levin.
77389         Include mountlist.h first, to test the interface.
77390
77391 2005-01-29  Bruno Haible  <bruno@clisp.org>
77392
77393         * lib/progname.c (program_name): Initialize.
77394         Needed when linking statically on MacOS X.
77395
77396 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77397
77398         Sync from coreutils.
77399         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
77400         (Depends-on): Add c-strtod.
77401         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
77402
77403 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77404
77405         Sync from coreutils.
77406         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
77407
77408         Remove files that are specific to coreutils.
77409         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
77410
77411 2005-01-28  Bruno Haible  <bruno@clisp.org>
77412
77413         * modules/javacomp: New file.
77414         * MODULES.html.sh (Java): Add javacomp.
77415
77416 2005-01-28  Bruno Haible  <bruno@clisp.org>
77417
77418         * m4/javacomp.m4: New file, from GNU gettext.
77419
77420 2005-01-28  Bruno Haible  <bruno@clisp.org>
77421
77422         * lib/javacomp.sh.in: New file, from GNU gettext.
77423         * lib/javacomp.h: New file, from GNU gettext.
77424         * lib/javacomp.c: New file, from GNU gettext.
77425
77426 2005-01-26  Simon Josefsson  <jas@extundo.com>
77427
77428         * lib/gai_strerror.c: Use GPL in header.
77429
77430 2005-01-26  Bruno Haible  <bruno@clisp.org>
77431
77432         * modules/javaexec: New file.
77433         * MODULES.html.sh (Java): Add javaexec.
77434
77435 2005-01-26  Bruno Haible  <bruno@clisp.org>
77436
77437         * m4/javaexec.m4: New file, from GNU gettext.
77438
77439 2005-01-26  Bruno Haible  <bruno@clisp.org>
77440
77441         * lib/javaexec.sh.in: New file, from GNU gettext.
77442         * lib/javaexec.h: New file, from GNU gettext.
77443         * lib/javaexec.c: New file, from GNU gettext.
77444
77445 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77446
77447         * modules/lchown (Depends-on): Remove lchown.h
77448
77449 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77450
77451         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
77452         must be defined if the header file was not found, in order
77453         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
77454
77455 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77456
77457         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
77458         initializers for struct pentry_state.
77459         (__argp_error): Check return value of __asprintf
77460         (__argp_failure): Translate error message
77461
77462         * lib/argp-parse.c: Removed braces around the expansion of N_()
77463
77464 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77465
77466         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
77467         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
77468         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
77469         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
77470         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
77471         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
77472         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
77473         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
77474         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
77475         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
77476         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
77477         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
77478         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
77479         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
77480         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
77481         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
77482         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
77483         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
77484         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
77485         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
77486         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
77487         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
77488         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
77489         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
77490         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
77491         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
77492         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
77493         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
77494         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
77495         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
77496         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
77497         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
77498         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
77499         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
77500         xstrtol.m4, xstrtoumax.m4, yesno.m4:
77501         Use an all-permissive copyright notice, recommended by RMS.
77502
77503 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
77504
77505         * modules/chdir-long (Depends-on): Remove mempcpy.
77506
77507 2005-01-21  Jim Meyering  <jim@meyering.net>
77508
77509         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
77510         same value as for Solaris 9.
77511
77512         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
77513         component length.  This included changing the parameter to be
77514         of type `char *' rather than `char const *'.
77515         * lib/chdir-long.h (chdir_long): Update prototype.
77516
77517         * lib/openat.c (fdopendir, fstatat): New functions.
77518         * lib/openat.h: Include headers required for use of DIR and struct
77519         stat.
77520         [AT_SYMLINK_NOFOLLOW]: Define.
77521         (fdopendir, fstatat): Add prototypes.
77522
77523 2005-01-21  Bruno Haible  <bruno@clisp.org>
77524
77525         * modules/classpath: New file.
77526         * MODULES.html.sh (Java): Add classpath.
77527
77528 2005-01-21  Bruno Haible  <bruno@clisp.org>
77529
77530         * lib/classpath.h: New file, from GNU gettext.
77531         * lib/classpath.c: New file, from GNU gettext.
77532
77533 2005-01-20  Simon Josefsson  <jas@extundo.com>
77534
77535         * modules/version-etc-fsf: New file.
77536
77537 2005-01-20  Simon Josefsson  <jas@extundo.com>
77538
77539         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
77540         * lib/version-etc.c: Remove version_etc_copyright.
77541         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
77542         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
77543
77544 2005-01-20  Simon Josefsson  <jas@extundo.com>
77545
77546         * lib/base64.h (isbase64): Add.
77547
77548         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
77549         using a unsigned prototype, don't inline.
77550         (base64_decode): Use it.
77551
77552 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77553
77554         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
77555         it.
77556
77557 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77558
77559         * lib/save-cwd.c (save_cwd): Remove code to support the case
77560         where fchdir is missing or flaky.
77561
77562 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77563
77564         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
77565
77566 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
77567
77568         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
77569         AC_LIBSOURCES now does this.
77570         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
77571         with new ullong_max module.
77572
77573 2005-01-19  Bruno Haible  <bruno@clisp.org>
77574
77575         * modules/sh-quote: New file.
77576         * MODULES.html.sh (Executing programs): Add sh-quote.
77577
77578 2005-01-19  Bruno Haible  <bruno@clisp.org>
77579
77580         * lib/sh-quote.h: New file, from GNU gettext.
77581         * lib/sh-quote.c: New file, from GNU gettext.
77582
77583 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77584
77585         Merge from coreutils.
77586         * m4/ullong_max.m4: New file.
77587         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
77588         (gl_MACROS): Assume localeconv exists.
77589
77590 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77591
77592         Merge changes from coreutils, as described below in several
77593         changelogs dated today.
77594
77595         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
77596         (O_DIRECTORY): Remove; not needed here, since "." must be
77597         a directory.  All uses removed.
77598         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
77599         universal on Suns, and we also need to test for IRIX.
77600         Revamp code to use 'if' rather than '#if'.
77601         Avoid unnecessary comparison of cwd->desc to 0.
77602
77603         * lib/utimens.c (futimens): Robustify the previous patch, by checking
77604         for known valid error numbers rather than observed invalid ones.
77605
77606 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77607
77608         * modules/ullong_max: New file.
77609
77610         * modules/chdir-long, modules/openat: New files.
77611         * modules/save-cwd (Depends-on): Depend on chdir-long.
77612         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
77613
77614 2005-01-18  Jim Meyering  <jim@meyering.net>
77615
77616         Merge from coreutils.
77617         * m4/chdir-long.m4, m4/openat.m4: New files.
77618         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
77619         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
77620         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
77621         is sane and DOES follow symlinks.  Besides, testing 20 different
77622         systems found no broken chown implementations.
77623         Prompted by a change in rsync's copy of this macro.
77624         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
77625
77626         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
77627
77628         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
77629         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
77630         NULL-means-set-to-current-time semantics.
77631         Remove temporary file immediately, rather than waiting
77632         for configure's at-exit trap code to do it.
77633
77634 2005-01-18  Jim Meyering  <jim@meyering.net>
77635
77636         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77637
77638         * lib/utimens.c (futimens): Account for the fact that futimes
77639         can also fail with errno == ENOSYS or errno == ENOENT.
77640         Patch from Dmitry V. Levin.
77641
77642         Change the name of the robust chdir function from chdir to chdir_long.
77643         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
77644         (restore_cwd): Use chdir_long, not chdir.
77645         * lib/chdir-long.c: Renamed from chdir.c.
77646         * lib/chdir-long.h: Renamed from chdir.h.
77647         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
77648         Hurd.
77649
77650 2005-01-18  Bruno Haible  <bruno@clisp.org>
77651
77652         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
77653         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
77654         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
77655         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
77656         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
77657         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
77658         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
77659         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
77660         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
77661         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
77662         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
77663         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
77664         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
77665         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
77666         Use an all-permissive copyright notice, recommended by RMS.
77667
77668 2005-01-18  Bob Proulx  <bob@proulx.com>
77669
77670         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
77671         simplify offsetof() macro construct to avoid compile failure with
77672         native HP-UX 11.0 ANSI C compiler.
77673
77674 2005-01-17  Bruno Haible  <bruno@clisp.org>
77675
77676         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
77677         redundant because stpncpy.m4 takes care of it.
77678
77679 2005-01-17  Bruno Haible  <bruno@clisp.org>
77680
77681         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
77682
77683 2005-01-17  Bruno Haible  <bruno@clisp.org>
77684
77685         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
77686         used.
77687
77688 2005-01-17  Bruno Haible  <bruno@clisp.org>
77689
77690         * lib/fwriteerror.h (fwriteerror): Change specification to include
77691         fclose.
77692         * lib/fwriteerror.c: Include <stdbool.h>.
77693         (fwriteerror): At the end, close the file stream. Record whether
77694         stdout was already closed.
77695
77696 2005-01-17  Bruno Haible  <bruno@clisp.org>
77697
77698         * lib/execute.c (environ): Declare if needed.
77699         * lib/pipe.c (environ): Likewise.
77700         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
77701
77702 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77703
77704         * modules/argp: Depend on vsnprintf
77705
77706 2005-01-10  Jim Meyering  <jim@meyering.net>
77707
77708         * modules/closeout (Depends-on): Add atexit.
77709
77710 2005-01-06  Bruno Haible  <bruno@clisp.org>
77711
77712         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
77713
77714 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77715
77716         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
77717         definitions to be after all include files, to avoid collisions.
77718         Problem reported by Bob Proulx.
77719
77720 2005-01-04  Jim Meyering  <jim@meyering.net>
77721
77722         Changes imported from coreutils.
77723         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
77724         as the mkstemp template, use a temporary directory and an
77725         8.3-friendly template to avoid trouble on systems like DJGPP.
77726         Reported by Juan M. Guerrero via Stepan Kasal.
77727         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
77728         close. Remove the temporary directory right away, rather than waiting
77729         for configure's at-exit trap code to do it.
77730         Suggestion from Stepan Kasal.
77731
77732 2005-01-01  Simon Josefsson  <jas@extundo.com>
77733
77734         * gnulib-tool: Print #include directives when --import'ing.
77735
77736 2004-12-28  Simon Josefsson  <jas@extundo.com>
77737
77738         * tests/test-base64.c: Include required header files.  Remove
77739         unused variables.
77740
77741 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77742
77743         * modules/error (Depends-on): Remove gettext.
77744
77745 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77746
77747         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
77748         not needed.  This removes a dependency on the gettext module.
77749         [defined _LIBC]: Do not include <libintl.h>; not needed.
77750
77751 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77752
77753         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
77754         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
77755
77756 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77757
77758         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
77759         HAVE_DECL_STRTOLD.
77760
77761 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77762
77763         * modules/getdate (Depends-on): Remove alloca-opt.
77764
77765 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77766
77767         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
77768
77769 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77770
77771         * lib/argp-parse.c: Include <stddef.h>.
77772         (alignof, alignto): New macros.
77773         (parser_init): Don't assume that void * is aligned sufficiently
77774         for struct option.
77775
77776         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
77777         need to extend the stack.
77778         (YYINITDEPTH): New macro, so that the initial stack isn't overly
77779         large.
77780
77781 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77782
77783         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
77784
77785 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77786
77787         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
77788         (2004-10-24) change.  Apparently this was a false alarm.
77789
77790         * modules/getdate: Depend on alloca-opt, not alloca.
77791
77792 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77793
77794         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
77795         Remove now-obsolete comment about AIX.
77796         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
77797         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
77798         (YYMAXDEPTH): New macro.
77799
77800 2004-12-18  Simon Josefsson  <jas@extundo.com>
77801
77802         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
77803
77804 2004-12-18  Bruno Haible  <bruno@clisp.org>
77805
77806         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
77807
77808 2004-12-18  Bruno Haible  <bruno@clisp.org>
77809
77810         * lib/fatal-signal.c (fatal_signals): Make non-const.
77811         (init_fatal_signals): New function.
77812         (uninstall_handlers, install_handlers): Ignore signals that were set to
77813         SIG_IGN.
77814         (at_fatal_signal): Call init_fatal_signals.
77815         (init_fatal_signal_set): Likewise. Ignore signals that were set to
77816         SIG_IGN.
77817         Reported by Paul Eggert.
77818
77819 2004-12-18  Bruno Haible  <bruno@clisp.org>
77820
77821         * doc/alloca.texi: New file.
77822         * doc/alloca-opt.texi: New file.
77823
77824 2004-12-17  Jim Meyering  <jim@meyering.net>
77825
77826         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
77827         Otherwise, install-sh could exit with improper exit status when
77828         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
77829
77830 2004-12-16  Simon Josefsson  <jas@extundo.com>
77831
77832         * tests/test-base64.c: Add license.
77833
77834 2004-12-15  Stepan Kasal  <address@hidden>
77835
77836         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
77837
77838 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
77839
77840         * modules/getcwd (Files): Add m4/d-ino.m4.
77841         Suggested by Mark D. Baushke.
77842
77843 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77844
77845         * lib/getdate.y (textint): New member "negative".
77846         (time_zone_hhmm): New function.
77847         Expect 14 shift-reduce conflicts, not 13.
77848         (o_colon_minutes): New rule.
77849         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
77850         (yylex): Set the "negative" member of signed numbers.
77851
77852 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77853
77854         * doc/getdate.texi (Time of day items, Time zone items):
77855         Describe new formats +00:00, UTC+00:00.
77856
77857 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77858
77859         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
77860         spurious "-l"s.  Problem reported by Stepan Kasal.
77861
77862 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
77863
77864         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
77865         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
77866
77867 2004-12-04  Simon Josefsson  <jas@extundo.com>
77868
77869         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
77870         Vandoorselaere <yoann@prelude-ids.org>.
77871
77872 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77873
77874         Changes imported from coreutils.
77875         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
77876         exist.
77877         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
77878
77879 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77880
77881         Changes imported from coreutils.
77882         * lib/hard-locale.c: Assume <locale.h> exists.
77883         Include "strdup.h".
77884         (GLIBC_VERSION): New macro.
77885         (hard_locale): Assume setlocale exists.
77886         Rewrite to avoid #ifdef.
77887         Use strdup rather than malloc + strcpy.
77888         * lib/human.c: Assume <locale.h> exists.
77889         (human_readable): Assume localeconv exists.
77890
77891 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77892
77893         * modules/hard-locale (Depends-on): Add strdup.
77894
77895 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
77896
77897         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
77898         convert T2, not T.  (Imported from libc.)
77899
77900 2004-11-30  Simon Josefsson  <jas@extundo.com>
77901
77902         * modules/restrict (License): Change to LGPL.
77903
77904 2004-11-30  Simon Josefsson  <jas@extundo.com>
77905
77906         * m4/restrict.m4: Add copyright and copying conditions.
77907
77908 2004-11-30  Simon Josefsson  <jas@extundo.com>
77909
77910         * m4/base64.m4: New file.
77911
77912 2004-11-30  Simon Josefsson  <jas@extundo.com>
77913
77914         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
77915         base64.
77916
77917         * tests/test-base64.c: New file.
77918
77919         * modules/base64: New file.
77920
77921 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77922
77923         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
77924         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
77925
77926         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
77927
77928 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77929
77930         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
77931         (__getcwd.c): Don't restore errno; glibc doesn't.
77932         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
77933         first, falling back to our code only if its results look suspicious.
77934         Ensure that the resulting buffer is only as large as necessary.
77935
77936         * lib/readutmp.c: Include readutmp.h first.
77937         Include <errno.h>, since readutmp.h no longer does that.
77938         * lib/readutmp.h: Don't include <errno.h>,
77939         <sys/param.h>, <time.h>; not needed to establish interface.
77940         (errno): Remove decl.
77941         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
77942         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
77943         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
77944
77945 2004-11-28  Simon Josefsson  <jas@extundo.com>
77946
77947         * lib/base64.h, base64.c: New file.
77948
77949 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
77950
77951         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
77952
77953 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
77954
77955         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
77956         (Depends-on): Remove pathmax, same.  Add mempcpy.
77957         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
77958         (Makefile.am): Append getcwd.h to lib_SOURCES.
77959         (Include): Add getcwd.h.
77960         (Maintainer): Change from Jim Meyering to "all, glibc",
77961         since getdate now uses intended-for-glibc code.
77962         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
77963         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
77964
77965 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77966
77967         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
77968         HP's ANSI C compiler.
77969         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
77970         Declaring int functions causes warnings on some modern systems and
77971         shouldn't be needed to compile on ancient ones.
77972         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
77973         defined.
77974
77975         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
77976         with the following changes.
77977         (__set_errno): Parenthesize properly.
77978         Include <stdbool.h>.
77979         (MIN, MAX, MATCHING_INO): New macros.
77980         (__getcwd): Define with prototype, not K&R form.
77981         Use heuristics to allocate default buffer on stack if possible.
77982         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
77983         behavior, and to avoid the PATH_MAX limit when computing
77984         ../../../../...
77985         Use MATCHING_INO to compare inode number to file.
77986         Check for arithmetic overflow in size calculations.
77987         Fix bug in reallocation of dot array that caused getcwd to fail
77988         on directories nested deeper than 75.
77989         Be more careful about saving errno on error.
77990         Do not use realloc; use only free+malloc, as this is a bit
77991         more flexible and avoids a needless copy operation.
77992         Do not inspect st_dev and st_ino for symbolic links; POSIX
77993         doesn't specify the latter.
77994         Check for closedir errors.
77995         Avoid needless casts.
77996         Use "#ifdef weak_alias" around weak_alias, to be like other
77997         glibc code.
77998         The following changes to getcwd.c have effect only when used in
77999         gnulib; they have no effect inside glibc proper.
78000         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78001         as alloca isn't used.
78002         (alloca, __alloca): Likewise.
78003         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78004         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78005         unconditionally, as gnulib assumes C89 or better.
78006         Do not include <sys/param.h>.
78007         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78008         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78009         better.
78010         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78011         Include <dirent.h> in a way that is compatible with modern Autoconf.
78012         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78013         New macros, if not already defined.
78014         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78015         Use "_LIBC", not "defined _LIBC", for consistency.
78016         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78017         a mempcpy module.
78018         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78019         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78020         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78021         credit only to Jim Meyering and adjust the copyright dates.
78022         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78023         <stdlib.h>, <unistd.h>, "pathmax.h".
78024         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78025         (INITIAL_BUFFER_SIZE): Remove.
78026         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78027
78028 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78029
78030         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78031         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78032         Use the _ONCE methods, for efficiency.
78033         Check for fcntl.h.  In test program, include <errno.h>
78034         and <fcntl.h> if available.  Remove old K&R cruft from
78035         test program.  Check for common errors in GNU/Linux,
78036         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78037         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78038         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78039         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78040         name accordingly.
78041         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78042         accommodate new getcwd.c.
78043         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78044         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78045         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78046         that's all we need now.
78047
78048 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78049
78050         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78051         argp-parse.c depends on getopt internals, that means we should
78052         always use our getopt, to be on the safe side.
78053         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78054         order not to spoil the result of an eventual previous invocation
78055         of gl_GETOPT_SUBSTITUTE.
78056
78057 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78058
78059         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78060         redefinition warnings. To avoid them, include the defines
78061         in `#if !defined __need_getopt ... #endif'. The only place
78062         where __getopt_argv_const is used is in definitions
78063         of getopt_long and getopt_long_only below, which are as well
78064         protected by `#ifndef __need_getopt'.
78065         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78066         __need_getopt after including <stdio.h> and <unistd.h> These
78067         headers might have defined it.
78068
78069 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78070
78071         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78072
78073 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78074
78075         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78076         (futimens): New function, which uses futimes if available.
78077         (futimens, utimens): Support timespec==NULL, with same semantics
78078         as utime and utimens.
78079         * lib/utimens.h (futimens): New decl.
78080
78081 2004-11-23  Jim Meyering  <jim@meyering.net>
78082
78083         * lib/getopt_.h: Remove trailing blanks.
78084
78085 2004-11-23  Jim Meyering  <jim@meyering.net>
78086
78087         * lib/__fpending.c: Add comment.
78088
78089 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78090
78091         * modules/canonicalize (Depends-on): Add xreadlink.
78092         Problem reported by James Youngman.
78093
78094 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78095
78096         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78097         New macros.
78098         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78099         optopt): Use them instead of invoking ## directly; otherwise, the
78100         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78101
78102 2004-11-19  Bruno Haible  <bruno@clisp.org>
78103
78104         * lib/strtok_r.c: Move comments from here...
78105         * lib/strtok_r.h: ... to here.
78106
78107 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78108
78109         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78110         implementations that mishandle size_t overflow.
78111
78112 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78113
78114         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78115         might fail.  Problem reported by Yoann Vandoorselaere.
78116         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78117         implementations that mishandle size_t overflow.
78118
78119 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78120
78121         * modules/canon-host (Depends-on): Add strdup.
78122
78123 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78124
78125         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78126
78127 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78128
78129         * lib/canon-host.c: Include "strdup.h".
78130         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78131         Use strdup instead of malloc/strcpy to duplicate strings.
78132
78133         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78134         (human_space_before_unit): New constant.
78135         * lib/human.c (human_readable): Support it.
78136
78137         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78138         (xgetcwd): Set errno correctly when failing.
78139         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78140         the failure is actually due to a PATH_MAX problem.
78141
78142         Further getopt changes to make it more likely that glibc will
78143         buy the changes back.
78144         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78145         (getopt): Use it, so to preserve glibc semantic
78146         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78147         when compiling for libc.
78148         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78149         (getopt_long, getopt_long_only): Use it.
78150
78151         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78152         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78153         (getopt): Argv is now char * const *, as per standard.
78154         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78155         not char *__getopt_argv_const *.
78156         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78157         _getopt_long_only_r): Likewise.
78158         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78159         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78160         _getopt_long_r, _getopt_long_only_r): Likewise.
78161         * lib/getopt_.h (__getopt_argv_const): Remove.
78162         (getopt): Argv is now char * const *, as per standard.
78163
78164         * lib/getdate.y (tORDINAL): New token.
78165         (day, relunit): Allow it for relative times.
78166         (relative_time_table): Use tORDINAL for ordinals.
78167
78168 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78169
78170         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78171         Document that "second" isn't allowed as an ordinal number.
78172
78173 2004-11-16  Jim Meyering  <jim@meyering.net>
78174
78175         * modules/closeout (Depends-on): Add fpending.
78176
78177 2004-11-15  Jim Meyering  <jim@meyering.net>
78178
78179         * lib/closeout.c: Include "__fpending.h" once again.
78180         Include <stdbool.h>.
78181         (close_stdout): Don't fail just because stdout was closed initially,
78182         since some programs don't write to stdout in the normal course of
78183         operation (other than --version and --help), and we don't want this
78184         function to make e.g. `touch file >&-' fail.
78185         But do fail if it was closed and someone has tried to write to it.
78186         E.g., `printf foo >&-' must fail.
78187
78188 2004-11-13  Jim Meyering  <jim@meyering.net>
78189
78190         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78191
78192 2004-11-12  Simon Josefsson  <jas@extundo.com>
78193
78194         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78195         small doc fix is still pending.
78196
78197 2004-11-11  Simon Josefsson  <jas@extundo.com>
78198
78199         * modules/strtok_r: New file.
78200
78201         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78202         strtok_r.
78203
78204 2004-11-11  Simon Josefsson  <jas@extundo.com>
78205
78206         * m4/strtok_r.m4: New file.
78207
78208         * m4/getopt.m4: Replace opterr.
78209
78210 2004-11-11  Simon Josefsson  <jas@extundo.com>
78211
78212         * lib/strtok_r.h, strtok_r.c: New file.
78213
78214 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78215
78216         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78217         of replacing opterr, getopt, etc.  This should handle the
78218         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78219
78220 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78221
78222         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78223         we can stop lying to compilers about the constness of argv when we
78224         are compiled outside glibc.
78225         (getopt, getopt_long, getopt_long_only): Use it.
78226         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78227         _getopt_internal, getopt): Likewise.
78228         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78229         _getopt_long_only_r): Likewise.
78230         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78231         _getopt_long_r, _getopt_long_only_r): Likewise.
78232
78233         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78234         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78235         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78236         the other external symbols.
78237         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78238         declaration, since the above renaming now works around collisions.
78239
78240 2004-11-11  Jim Meyering  <jim@meyering.net>
78241
78242         * lib/linebreak.c: Remove trailing blanks.
78243         * lib/alloca_.h: Likewise.
78244         * lib/acosl.c: Likewise.
78245         * lib/euidaccess.c: Likewise.
78246         * lib/allocsa.h: Likewise.
78247
78248 2004-11-10  Simon Josefsson  <jas@extundo.com>
78249
78250         * m4/getaddrinfo.m4: New file.
78251
78252 2004-11-10  Simon Josefsson  <jas@extundo.com>
78253
78254         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
78255
78256 2004-11-10  Simon Josefsson  <jas@extundo.com>
78257
78258         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78259         getaddrinfo.
78260
78261         * modules/getaddrinfo: New file.
78262
78263 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78264
78265         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
78266
78267 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78268
78269         * lib/mktime.c (SHR): New macro, which is a portable
78270         substitute for >> that should work even on Crays.
78271         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
78272         Problem reported by Mark D. Baushke in
78273         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
78274         * lib/getdate.y (SHR): Likewise.
78275         (tm_diff): Use it.
78276         * lib/strftime.c (SHR): Likewise.
78277         (tm_diff): Use it.
78278         * lib/quotearg.c (struct quoting_options): Use unsigned int for
78279         quote_these_too, so that right shifts are well defined.  All uses
78280         changed.
78281
78282 2004-11-10  Jim Meyering  <jim@meyering.net>
78283
78284         Ensure that no close failure goes unreported.
78285         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
78286         return early when it seems there's nothing to flush.
78287         Don't include __fpending.h.
78288
78289 2004-11-10  Jim Meyering  <jim@meyering.net>
78290
78291         * modules/closeout (Depends-on): Remove fpending.
78292
78293 2004-11-10  Jim Meyering  <jim@meyering.net>
78294
78295         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
78296
78297 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78298
78299         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
78300         gl_FUNC_STRFTIME.
78301         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
78302         and AC_REQUIRE when possible, to avoid duplicate checks.
78303         Check for <wchar.h>.
78304
78305 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78306
78307         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
78308
78309 2004-11-09  Bruno Haible  <bruno@clisp.org>
78310
78311         * m4/sockpfaf.m4: New file.
78312
78313 2004-11-05  Bruno Haible  <bruno@clisp.org>
78314
78315         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
78316         Reported by Mark D. Baushke <mdb@cvshome.org>.
78317
78318 2004-11-04  Bruno Haible  <bruno@clisp.org>
78319
78320         2004-09-11  Bruno Haible  <bruno@clisp.org>
78321                 * allocsa.valgrind: New file.
78322         2004-02-06  Bruno Haible  <bruno@clisp.org>
78323                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
78324                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
78325                 Reported by Christopher Seip <chris.seip@hp.com>.
78326
78327 2004-11-04  Bruno Haible  <bruno@clisp.org>
78328
78329         * modules/allocsa (Files): Add lib/allocsa.valgrind.
78330         (Makefile.am): Distribute it.
78331
78332 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
78333
78334         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
78335         with errno == ERANGE if the buffer is too small.
78336         Problem reported by Mark D. Baushke.
78337
78338 2004-11-03  Albert Chin  <china@thewrittenword.com>
78339             Paul Eggert  <eggert@cs.ucla.edu>
78340
78341         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
78342         equivalent, substitute $ac_type for equivalent type rather than
78343         blindly using uint32_t *always* which won't work if uint32_t is not
78344         available.  Define _UINT32_T to work around typedef of uint32_t if
78345         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78346         2.5.1.
78347
78348 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78349
78350         * m4/jm-macros.m4: Sync from coreutils.
78351         (gl_MACROS): Check for mbrlen, for pathchk.
78352         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78353
78354 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78355
78356         * lib/xreadlink.c (MAXSIZE): New macro.
78357         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78358         size does not exceed MAXSIZE.  Avoid cast.
78359         As suggested by Mark D. Baushke in
78360         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78361         if readlink fails with buffer size just under MAXSIZE, try again
78362         with MAXSIZE.
78363
78364 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78365
78366         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78367
78368 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78369         and  Paul Eggert  <eggert@cs.ucla.edu>
78370
78371         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78372         (get_date): Overparenthesize to avoid GCC warning.
78373
78374 2004-11-02  Bruno Haible  <bruno@clisp.org>
78375
78376         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
78377         returns void.
78378
78379 2004-11-02  Bruno Haible  <bruno@clisp.org>
78380
78381         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
78382         function returns void.
78383
78384 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78385
78386         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
78387         fflush_unlocked, flockfile, funlockfile, funlockfile,
78388         fputs_unlocked, putc_unlocked.
78389
78390 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78391
78392         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78393         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
78394         already declared.
78395
78396 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78397
78398         * modules/getdate (Files): Add doc/getdate.texi.
78399         (Depends-on): Add setenv, xalloc.
78400
78401 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78402
78403         * lib/getdate.y: Add support for TZ="foo" within a date string.
78404         Fix some bugs near time_t boundaries.  Reject dates with
78405         out-of-range components, e.g., "Sept 31".
78406         Include <stdlib.h>, "setenv.h", "xalloc.h".
78407         (ISDIGIT_LOCALE): Remove; unused.
78408         Note that the TZ and time functions used here are not reentrant.
78409         (mktime_ok, get_tz): New functions.
78410         (TZBUFSIZE): New constant.
78411         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
78412         This requires that we sometimes generate our own TZ="XXX..." setting.
78413
78414 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78415
78416         * doc/getdate.texi: New file, from coreutils with modifications for
78417         the new TZ parsing.
78418
78419 2004-10-27  Derek R. Price  <derek@ximbiot.com>
78420
78421         * lib/mktime.c (not_equal_tm): Remove redundant check.
78422
78423 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78424
78425         * modules/regex (lib_SOURCES): Add regex.c.
78426         Reported by James Youngman in
78427         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
78428
78429 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78430
78431         * lib/getdate.y: Use Bison 1.875 features, and some minor
78432         code cleanups.  This change does not affect semantics.
78433         Don't include <stdlib.h>; no longer needed.
78434         Don't include unlocked-io.h; only the "#if TEST" code uses
78435         stdio, and performance isn't crucial there.
78436         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
78437         Bison 1.875 features as described below.
78438         All uses of "PC." replaced by "pc->".
78439         (YYSTYPE): Add a forward declaration.
78440         (yylex, yyerror): Use full prototypes in forward decls.
78441         Use "%pure-parser" rather than obsolescent "%pure_parser".
78442         Use %parse-param and %lex-param instead of obsolescent
78443         YYPARSE_PARAM and YYLEX_PARAM.
78444         (meridian_table, month_and_day_table, time_units_table,
78445         relative_time_table, time_zone_table, military_table,
78446         lookup_zone, lookup_word, get_date):
78447         Use NULL instead of 0 where appropriate.
78448         (to_hour): Avoid abort (), to avoid a dependency on
78449         stdlib.h.
78450         (yyerror, yylex): Now accepts parser_control * arg.
78451         (main) [TEST]: Use '\0' rather than 0 for char.
78452
78453 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78454
78455         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
78456
78457 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78458
78459         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
78460         It's now the caller's responsibility to handle the case where
78461         !HAVE_GETPAGESIZE && !defined getpagesize.
78462
78463         * lib/mktime.c (leapyear): Arg is long int, not int.
78464
78465 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
78466
78467         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
78468
78469 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78470
78471         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
78472         missing.  Problem reported by James Youngman.
78473
78474 2004-10-16  Simon Josefsson  <jas@extundo.com>
78475
78476         * gnulib-tool: Fix comments.  Fix parse problem.
78477         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
78478
78479 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
78480
78481         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
78482         implementation of getopt_long.  Problem reported by Alexander Taler in:
78483         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
78484
78485 2004-10-15  Bruno Haible  <bruno@clisp.org>
78486
78487         * gnulib-tool: Untabify. Initialize supplied_libname.
78488         (func_usage): More homogenous output.
78489         (func_modules_transitive_closure, func_modules_to_filelist,
78490         func_emit_lib_Makefile_am): New functions.
78491         (func_import): New function, extracted from big case statement. Use
78492         func_get_license, func_modules_transitive_closure,
78493         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
78494         opt_lgpl. Don't use test -a, as it's not portable.
78495         (func_create_testdir): Use func_modules_transitive_closure,
78496         func_modules_to_filelist, func_emit_lib_Makefile_am.
78497
78498 2004-10-15  Bruno Haible  <bruno@clisp.org>
78499
78500         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
78501
78502 2004-10-15  Bruno Haible  <bruno@clisp.org>
78503
78504         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
78505         the portions belonging to each module.
78506         Suggested by Derek Robert Price <derek@ximbiot.com>.
78507
78508 2004-10-12  Simon Josefsson  <jas@extundo.com>
78509
78510         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78511         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
78512         to real functions.
78513
78514 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78515
78516         * modules/vsnprintf: New file.
78517
78518 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78519
78520         * m4/vsnprintf.m4: New file.
78521
78522 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78523
78524         * lib/vsnprintf.h: New file.
78525         * lib/vsnprintf.c: New file.
78526
78527 2004-10-11  Bruno Haible  <bruno@clisp.org>
78528
78529         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
78530         vsnprintf.
78531
78532 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78533
78534         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
78535
78536 2004-10-07  Bruno Haible  <bruno@clisp.org>
78537
78538         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
78539         fits into the provided buffer.
78540
78541 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78542
78543         * lib/diacrit.c, diacrit.h: Add GPL notice.
78544
78545         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
78546         notice.
78547         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
78548         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
78549         This avoids a potential constant-folding bug.
78550
78551 2004-10-05  Bruno Haible  <bruno@clisp.org>
78552
78553         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
78554         for the declaration of strsep.
78555
78556 2004-10-05  Bruno Haible  <bruno@clisp.org>
78557
78558         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
78559
78560 2004-10-04  Simon Josefsson  <jas@extundo.com>
78561
78562         * modules/memmem: New file.
78563         * tests/test-memmem.c: New file.
78564         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
78565
78566 2004-10-04  Simon Josefsson  <jas@extundo.com>
78567
78568         * m4/memmem.m4: New file.
78569
78570 2004-10-04  Simon Josefsson  <jas@extundo.com>
78571
78572         * lib/memmem.h: New file.
78573         * lib/memmem.c: New file, taken from glibc.
78574
78575 2004-10-04  Simon Josefsson  <jas@extundo.com>
78576
78577         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
78578         '#ifdef USE_UNLOCKED_IO'.
78579
78580 2004-10-04  Simon Josefsson  <jas@extundo.com>
78581
78582         * config/srclist.txt: Add memmem from glibc.
78583
78584 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78585
78586         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
78587
78588         * modules/argmatch, modules/argp, modules/closeout, modules/error,
78589         modules/exclude, modules/getdate, modules/getline,
78590         modules/getndelim2, modules/getpass, modules/getpass-gnu,
78591         modules/getusershell, modules/linebuffer, modules/md5,
78592         modules/mountlist, modules/posixtm, modules/readtokens,
78593         modules/readutmp, modules/regex, modules/sha1,
78594         modules/version-etc, modules/yesno:
78595         Remove dependency on unlocked-io.
78596
78597 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78598
78599         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
78600
78601         * m4/unlocked-io.m4: Add copyright notice.
78602         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
78603
78604 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78605
78606         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
78607         * lib/xmalloc.c (xmemdup): Likewise.
78608         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
78609         XFREE): Remove these long-obsolescent macros.
78610         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
78611         * lib/xstrdup.c: Remove.
78612
78613         * lib/regex.c (re_comp): Cast gettext return value to char *,
78614         Problem reported by Martin Neitzel via Mark D. Baushke.
78615
78616 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78617
78618         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
78619         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
78620         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
78621         regex.c, sha1.c, version-etc.c, yesno.c:
78622         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
78623         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
78624         the includer's responsibility.
78625
78626         Sync from coreutils.
78627
78628         * lib/modechange.c (mode_compile): Don't decrement a pointer that
78629         points to the start of a string, as the C Standard says the
78630         resulting behavior is undefined.
78631
78632         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
78633         simple -> simple_backups, numbered_existing ->
78634         numbered_existing_backups, numbered -> numbered_backups
78635         to avoid shadowing problems.  All uses changed.
78636         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
78637         * lib/backupfile.c (check_extension, numbered_backup):
78638         Rename locals to avoid shadowing 'basename'.
78639         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
78640         once.
78641
78642         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
78643         * lib/.cvsignore: Add getopt.h.
78644
78645 2004-10-04  Bruno Haible  <bruno@clisp.org>
78646
78647         * modules/README: New file.
78648         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
78649         not a module.
78650
78651 2004-10-02  Jim Meyering  <jim@meyering.net>
78652
78653         * lib/dirfd.h, getpagesize.h: Add copyright notice.
78654
78655 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78656
78657         * modules/strsep: New file.
78658
78659 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78660
78661         * m4/strsep.m4: New file.
78662
78663 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78664
78665         * lib/strsep.h: New file.
78666         * lib/strsep.c: New file.
78667
78668 2004-10-01  Simon Josefsson  <jas@extundo.com>
78669
78670         * lib/snprintf.c (snprintf): Handle size==0.
78671
78672 2004-10-01  Simon Josefsson  <jas@extundo.com>
78673             Bruno Haible  <bruno@clisp.org>
78674
78675         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
78676         (snprintf): Declare 'args'.
78677
78678 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
78679
78680         * lib/snprintf.c: Remove comments as to why each header is needed.
78681
78682 2004-10-01  Bruno Haible  <bruno@clisp.org>
78683
78684         * MODULES.html.sh: Add strsep.
78685
78686 2004-09-30  Simon Josefsson  <jas@extundo.com>
78687
78688         * modules/snprintf: New file.
78689
78690 2004-09-30  Simon Josefsson  <jas@extundo.com>
78691
78692         * m4/snprintf.m4: New file.
78693
78694 2004-09-30  Simon Josefsson  <jas@extundo.com>
78695
78696         * lib/snprintf.h, lib/snprintf.c: New files.
78697
78698 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78699
78700         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
78701         (hol_entry_help): Never translate an empty string.
78702         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
78703         * lib/argp.h (OPTION_NO_TRANS): New option.
78704
78705 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78706
78707         * modules/argp (Maintainer): Replace Simon Josefsson
78708         by Sergey Poznyakoff.
78709
78710 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78711
78712         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
78713         changes merged back into glibc.
78714
78715 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78716
78717         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
78718
78719 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78720
78721         * lib/xvasprintf.c: Include xalloc.h.
78722         (xvasprintf): Use xalloc_die, not xmalloc_die.
78723
78724 2004-09-29  Bruno Haible  <bruno@clisp.org>
78725
78726         * modules/alloca-opt: New file, derived from modules/alloca.
78727         * modules/allocsa: Depend on alloca-opt instead of alloca.
78728         * modules/setenv: Likewise.
78729         * modules/vasnprintf: Likewise.
78730         * MODULES.html.sh: Add alloca-opt.
78731
78732 2004-09-28  Simon Josefsson  <jas@extundo.com>
78733
78734         * gnulib-tool: New parameter --lgpl, to asseert that modules are
78735         LGPL, and to replace license template from GPL to LGPL.
78736
78737 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78738
78739         * modules/dummy: Change license to LGPL.
78740
78741 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78742
78743         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
78744
78745 2004-09-24  Simon Josefsson  <jas@extundo.com>
78746
78747         * modules/minmax (License): Change from GPL to LGPL.
78748
78749 2004-09-23  Simon Josefsson  <jas@extundo.com>
78750
78751         * gnulib-tool (--import): Typo.
78752
78753 2004-09-23  Simon Josefsson  <jas@extundo.com>
78754
78755         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
78756
78757 2004-09-22  Bruno Haible  <bruno@clisp.org>
78758
78759         * modules/*: Add 'License' field.
78760         * gnulib-tool: Accept --extract-license option.
78761         (func_get_license): New function.
78762
78763 2004-09-21  Bruno Haible  <bruno@clisp.org>
78764
78765         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
78766         Reported by Simon Josefsson.
78767
78768 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78769
78770         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
78771         gl_AC_TYPE_LONG_LONG.
78772
78773 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78774
78775         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
78776
78777 2004-09-18  Simon Josefsson  <jas@extundo.com>
78778         and  Paul Eggert  <eggert@cs.ucla.edu>
78779
78780         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
78781         calls with autoreconf.  Define GL_LIB.
78782
78783 2004-09-14  Karl Berry  <karl@gnu.org>
78784
78785         * config/srclist.txt: unsync setenv.c, sigh.
78786
78787 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78788
78789         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
78790         Problem reported by Bruno Haible in:
78791         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
78792
78793 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78794
78795         * config/srclist.txt: Comment out argp-pvh.c.
78796
78797 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
78798
78799         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
78800         in case some system header has #define'd it.  Problem reported by
78801         Soeren D. Schulze in
78802         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
78803
78804 2004-09-09  Karl Berry  <karl@gnu.org>
78805
78806         * regex.[ch]: delete from the root.  These were supposed to be
78807                 synced with emacs cvs, but this has not happened for about
78808                 a year, and anyway nothing else uses emacs regex.[ch].
78809                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
78810                 lib/regex[.ch] is untouched.
78811
78812 2004-09-09  Bruno Haible  <bruno@clisp.org>
78813
78814         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
78815
78816 2004-09-09  Bruno Haible  <bruno@clisp.org>
78817
78818         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
78819         modifications.
78820         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
78821
78822 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78823
78824         * modules/xvasprintf: New file.
78825         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
78826
78827 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78828
78829         * lib/xvasprintf.h: New file.
78830         * lib/xvasprintf.c: New file.
78831         * lib/xasprintf.c: New file.
78832
78833 2004-09-08  Bruno Haible  <bruno@clisp.org>
78834
78835         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
78836
78837 2004-09-08  Bruno Haible  <bruno@clisp.org>
78838
78839         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
78840         length is > INT_MAX.
78841         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
78842         more.
78843
78844 2004-09-08  Bruno Haible  <bruno@clisp.org>
78845
78846         * lib/stdint_.h: New file, taken from GNU clisp.
78847
78848 2004-09-08  Bruno Haible  <bruno@clisp.org>
78849             Oskar Liljeblad  <oskar@osk.mine.nu>
78850
78851         * modules/stdint: New file.
78852         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
78853
78854 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78855
78856         Import from coreutils.
78857         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
78858         strings on unbounded length.  alloca's performance benefits aren't
78859         that important here.
78860         (V_STRDUP): Remove.
78861         (parse_with_separator): New function, with most of the internals
78862         of the old parse_user_spec.  Allow user to omit both user and group,
78863         for compatibility with FreeBSD.
78864         Clone only the user name, not the entire spec.
78865         Do not set *uid, *gid unless entirely successful.
78866         Avoid memory leak in some failing cases.
78867         Fix regression for USER.GROUP reported by Dmitry V. Levin in
78868         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
78869         (parse_user_spec): Rewrite to use parse_with_separator.
78870
78871 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78872
78873         * modules/userspec: Don't depend on alloca.
78874
78875 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78876
78877         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
78878
78879 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78880
78881         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
78882         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
78883         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
78884
78885 2004-08-16  Simon Josefsson  <jas@extundo.com>
78886
78887         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
78888         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
78889         Add --dry-run for --import.
78890         Let user provided command line parameters override configure.ac
78891         settings.
78892
78893 2004-08-12  Simon Josefsson  <jas@extundo.com>
78894
78895         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
78896         as discussed with Paul Eggert in threads rooted at
78897         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
78898         and
78899         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
78900         Before, the test was empty, and relied on ELIDE_CODE in source
78901         code.)
78902         (gl_PREREQ_GETOPT): New macro.
78903         (gl_GETOPT): Use them.
78904
78905 2004-08-12  Simon Josefsson  <jas@extundo.com>
78906
78907         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
78908         * lib/getopt_.h: Renamed from getopt.h.
78909
78910 2004-08-12  Simon Josefsson  <jas@extundo.com>
78911
78912         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
78913         Change default library name from libfoo to libgnu.
78914         Now, if you have a configure.ac that says:
78915                 gl_SOURCE_BASE(gl)
78916                 gl_M4_BASE(gl/m4)
78917                 gl_MODULES(error getopt etcetera)
78918                 gl_INIT
78919         you can import all you need by running:
78920                 ../gnulib/gnulib-tool --import
78921
78922         * modules/getopt (Files): Rename getopt.h to getopt_.h.
78923         (Makefile.am): Rewrite, use logic from argz.
78924         (Include): Use <getopt.h> instead of "getopt.h".
78925
78926 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78927
78928         * modules/argp (Files): Add m4/unlocked-io.m4.
78929         (Depends-on): Add extensions.
78930
78931 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78932
78933         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
78934         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
78935         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
78936         Check for program_invocation_name, program_invocation_short_name,
78937         flockfile, funlockfile, features.h, _getopt_long_only_r.
78938
78939 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78940
78941         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
78942         its complicated substitute.
78943         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
78944         and program_invocation_name.
78945         (__argp_basename) [!_LIBC]: Remove; the only use was
78946         replaced by its body.
78947         (__argp_short_program_name): Change condition from
78948         !defined __argp_short_program_name to
78949         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
78950         to match argp-namefrob.h.
78951         (__argp_failure): Don't assume strerror_r returns char *.
78952         * lib/argp-parse.c (N_): Define unconditionally.
78953         (argp_default_options): Fill out initializers with 0 to avoid
78954         gcc warnings.
78955
78956 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78957
78958         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
78959         getopt1.c.
78960
78961 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78962
78963         Merge from coreutils.
78964
78965         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
78966
78967         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
78968         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
78969
78970 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78971
78972         Merge from coreutils.
78973
78974         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
78975         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
78976         for Reliant Unix 5.43.
78977
78978         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
78979         (union fooround): Use uintmax_t, not long int.
78980         The rest is a merge from libc:
78981         [defined _LIBC]: Include <shlib-compat.h>.
78982         (_obstack) [defined _LIBC]: Remove after 2.3.4.
78983
78984         * lib/settime.c (settime): Recode to avoid warning with
78985         Sun Forte C 6U2.
78986
78987         * lib/strverscmp.c: Convert to UTF-8.
78988
78989 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78990
78991         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
78992         m4/uintmax_t.m4.
78993
78994 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78995
78996         * modules/xalloc-die: New file.
78997         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
78998
78999         * modules/md5 (Files): Add m4/uint32_t.m4.
79000         * modules/sha1: Renamed from modules/sha.
79001         (Files):
79002         Rename lib/sha.h to lib/sha1.h.
79003         Rename lib/sha.c to lib/sha1.c.
79004         Rename m4/sha.m4 to m4/sha1.m4.
79005         (lib_SOURCES): Likewise.
79006         (configure.ac): Rename gl_SHA to gl_SHA1.
79007         (Include): sha.h -> sha1.h.
79008
79009 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79010
79011         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79012         * m4/sha1.m4: Renamed from sha.m4.
79013         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79014
79015 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79016
79017         * lib/obstack.h (obstack_empty_p):
79018         Don't assume that chunk->contents is suitably aligned.
79019         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79020         Likewise. Problem reported by Benno in
79021         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79022
79023         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79024         readable.  This could be improved further but it'd take some work.
79025
79026 2004-08-08  Simon Josefsson  <jas@extundo.com>
79027
79028         * modules/xgethostname (Depends-on): Remove exit and error (not
79029         used).
79030
79031         * modules/getpass-gnu: Add getpass.h.
79032         (Depends-on): Add stdbool.
79033         * modules/getpass: Add getpass.h.
79034
79035 2004-08-08  Simon Josefsson  <jas@extundo.com>
79036
79037         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79038         Check getpass declaration.
79039
79040 2004-08-08  Simon Josefsson  <jas@extundo.com>
79041
79042         * lib/xgethostname.c: Don't include error.h (not used).
79043
79044         * lib/getpass.h: Add.
79045         * lib/getpass.c: Include getpass.h first.
79046
79047 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79048
79049         * lib/xalloc-die.c: New file.
79050         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79051         All uses removed.
79052         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79053         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79054         xalloc-die.c.
79055         (_, N_, xalloc_die): Move to xalloc-die.c.
79056         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79057         so that we needn't mess with xalloc_msg_memory_exhausted.
79058
79059         * lib/sha1.h: Renamed from sha.h.
79060         (SHA1_H): Renamed from _SHA_H.
79061         (sha1_ctx): Renamed from sha_ctx.
79062         (sha1_init_ctx): Renamed from sha_init_ctx.
79063         (sha1_process_block): Renamed from sha_process_block.
79064         (sha1_process_bytes): Renamed from sha_process_bytes.
79065         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79066         (sha1_read_ctx): Renamed from sha_read_ctx.
79067         (sha1_stream): Renamed from sha_stream.
79068         (sha1_buffer): Renamed from sha_buffer.
79069         * lib/sha1.c: Likewise; renamed from sha.c.
79070         Do not include <sys/types.h>.
79071         Include <stddef.h> rather than <stdlib.h>.
79072
79073 2004-08-08  Bruno Haible  <bruno@clisp.org>
79074
79075         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79076         FILESYSTEM_PREFIX_LEN.
79077         * lib/progreloc.c: Likewise.
79078         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79079
79080 2004-08-06  Simon Josefsson  <jas@extundo.com>
79081
79082         * modules/progname (Depends-on): Don't depend on stdbool.
79083
79084 2004-08-06  Simon Josefsson  <jas@extundo.com>
79085
79086         * modules/getsubopt: New file.
79087         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79088         getsubopt.
79089
79090 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79091
79092         More merge from coreutils.
79093
79094         * m4/utimens.m4, m4/utimecmp.m4: New files.
79095         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79096         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79097         prereq.m4, sha.m4: Import changes from coreutils.
79098
79099 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79100
79101         More merge from coreutils.
79102         * modules/raise, modules/readtokens0, modules/utimens:
79103         * modules/utimecmp, module/xnanosleep: New files.
79104         * modules/strftime: Add lib/strftime.h.
79105         Change include from <time.h> to "strftime.h".
79106         * modules/yesno: Add lib/yesno.h.
79107         * modules/backupfile: Remove lib/addext.c.
79108         * modules/euidaccess: Add stat-macros.h.
79109         * modules/canonicalize, modules/euidaccess,
79110         modules/filemode, modules/lchown, modules/makepath,
79111         modules/rmdir, modules/stat: Likewise.
79112
79113 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79114
79115         Merge from tar.
79116         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79117         SIZE_MAX is a valid preprocessor constant.
79118         (__argp_basename): Change from "#ifndef _LIBC"
79119         to "#ifndef __argp_short_program_name", so that
79120         we don't compile these functions for tar.
79121
79122         More merges from coreutils.
79123         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79124         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79125         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79126         * lib/addext.c: Remove; no longer needed.
79127         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79128         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79129         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79130         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79131         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79132         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79133         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79134         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79135         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79136         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79137         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79138         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79139         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79140         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79141         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79142         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79143         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79144         Import changes from coreutils.
79145
79146 2004-08-05  Simon Josefsson  <jas@extundo.com>
79147
79148         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79149
79150 2004-08-05  Simon Josefsson  <jas@extundo.com>
79151
79152         * m4/getsubopt.m4: New file.
79153
79154 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79155
79156         Merge from coreutils.
79157
79158         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79159         * m4/getcwd-path-max.m4: New files.
79160
79161         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79162         FILESYSTEM_PREFIX_LEN ->
79163         FILE_SYSTEM_PREFIX_LEN.
79164         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79165         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79166         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79167         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79168
79169         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79170         prerequisite modules now handle the DOS stuff.
79171         Don't check for unistd.h.
79172
79173 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79174
79175         Merge from coreutils.
79176
79177         * lib/.gdb-history: Remove; this doesn't belong here.
79178
79179         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79180         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79181         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79182         * lib/getcwd.c: New files.
79183
79184         * lib/dirname.h: Include <stdbool.h>.
79185         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79186         for consistency with POSIX terminology.  All uses changed.
79187         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79188         (strip_trailing_slashes): Use bool for booleans.
79189         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79190
79191         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79192         sometimes returns a positive errno value even when it succeeds.
79193         (print_errno_message) [!LIBC]: Fall back on strerror if
79194         __strerror_r fails.
79195
79196         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79197         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79198         (longest_relative_suffix): New function.
79199         (path_concat): Use it.  Assume first argument is not NULL.
79200         Port to DOS.  Omit redundant separators.
79201         Report an error instead of returning NULL.
79202         Use mempcpy instead of memcpy.
79203         (xpath_concat): Remove: not declared or used.
79204
79205         * lib/same.h: Include <stdbool.h>
79206         (same_name): Return bool, not int.
79207         * lib/same.c (same_name): Likewise.
79208         (errno): Don't declare; we assume C89 or better now.
79209
79210         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79211         if not already defined.
79212
79213         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79214         * lib/dup-safer.c (errno): Likewise.
79215
79216 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79217
79218         Merge from coreutils.
79219         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79220         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79221         * modules/path-concat: Don't depend on strdup.
79222
79223 2004-08-03  Simon Josefsson  <jas@extundo.com>
79224
79225         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79226         * lib/progname.h: Don't include stdbool.h.
79227
79228 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79229
79230         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79231         * MODULES.html.sh (func_all_modules): Remove fatal.
79232
79233 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79234
79235         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79236
79237 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79238
79239         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79240         working.
79241
79242 2004-08-02  Simon Josefsson  <jas@extundo.com>
79243
79244         * lib/getsubopt.h: New file, with comments from Bruno Haible.
79245         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
79246         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
79247
79248 2004-08-01  Simon Josefsson  <jas@extundo.com>
79249
79250         * lib/xgetdomainname.c: Include stdlib.h, for free().
79251
79252 2004-07-19  Bruno Haible  <bruno@clisp.org>
79253
79254         * MODULES.html.sh (func_all_modules): Add dummy.
79255
79256 2004-07-16  Simon Josefsson  <jas@extundo.com>
79257
79258         * modules/dummy: New file.
79259
79260 2004-07-16  Simon Josefsson  <jas@extundo.com>
79261
79262         * lib/dummy.c: New file.
79263
79264 2004-07-16  Bruno Haible  <bruno@clisp.org>
79265
79266         * lib/backupfile.h: Add extern "C" for C++.
79267         * lib/closeout.h: Likewise.
79268         * lib/copy-file.h: Likewise.
79269         * lib/findprog.h: Likewise.
79270         * lib/full-write.h: Likewise.
79271         * lib/pathname.h: Likewise.
79272         * lib/progname.h: Likewise.
79273         * lib/stpcpy.h: Likewise.
79274         * lib/stpncpy.h: Likewise.
79275         * lib/strcase.h: Likewise.
79276         * lib/strstr.h: Likewise.
79277         * lib/xalloc.h: Likewise.
79278
79279         * lib/mbswidth.h: Add extern "C" for C++.
79280         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
79281
79282 2004-07-13  Robert Millan  <robertmh@gnu.org>
79283
79284         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
79285
79286 2004-07-09  Simon Josefsson  <jas@extundo.com>
79287
79288         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
79289         failed without this.)
79290
79291 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79292
79293         * modules/chown (Files): Add lib/fchown-stub.c, since
79294         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
79295
79296 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79297
79298         * lib/fchown-stub.c: New file.
79299
79300 2004-06-24  Jim Meyering  <jim@meyering.net>
79301
79302         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
79303
79304 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79305
79306         * modules/argz: Omit "#include".
79307
79308         * MODULES.html.sh (func_all_modules): Add calloc, to match
79309         2004-06-01 addition of calloc module.
79310
79311 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79312
79313         * m4/argz.m4: New file, which is autoupdated from libtool.
79314
79315 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79316
79317         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
79318         libtool.
79319
79320 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79321
79322         * config/srclist-update: Don't insist on "USA." before the
79323         close-comment, as libtool omits the period and puts the */ on a
79324         separate line.
79325         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
79326         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
79327
79328 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
79329
79330         * modules/argz: New file.
79331         * MODULES.html.sh (func_all_modules): Add argz.
79332
79333 2004-06-12  Jim Meyering  <jim@meyering.net>
79334         and  Paul Eggert  <eggert@cs.ucla.edu>
79335
79336         * modules/hash (Files): Add lib/xalloc.h.
79337         * modules/pipe (Depends-on): Add wait-process.
79338         * modules/stat (Depends-on): Add xalloc.
79339         * modules/userspec (Files): Add lib/userspec.h.
79340         * modules/xstrto
79341
79342         Upgrade from gettext-0.13.
79343         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79344         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79345         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79346
79347 2004-06-10  Jim Meyering  <jim@meyering.net>
79348
79349         * lib/calloc.c: New file.
79350
79351 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79352
79353         * lib/getdate.y (yylex): Allow space between sign and number.
79354         Problem reported by Dan Jacobson.
79355
79356 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79357
79358         Merge from coreutils CVS.
79359
79360         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79361         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79362         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79363         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79364         xstrtol.m4: Fix copyright date and/or serial number.
79365
79366         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79367         See if we need an fchown replacement.
79368         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79369         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79370         and use the replacement function if we detect either defect.
79371
79372         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79373         gl_UTIMECMP.
79374
79375 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79376         and  Jim Meyering  <jim@meyering.net>
79377
79378         Merge from coreutils CVS.
79379
79380         * lib/stat-macros.h: New file, with contents from file-type.h
79381         and coreutils' system.h.
79382         * lib/file-type.c: Include "stat-macros.h".
79383         * lib/file-type.h (file_type): Move all macro definitions to new file,
79384         stat-macros.h.
79385
79386         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
79387         Wrap old code with this conditional.
79388         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
79389         function that does not dereference symlinks.
79390         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
79391
79392         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
79393         dependency problems.
79394         (xreadlink): Accept new arg SIZE, for efficiency.
79395         All decls and uses changed.
79396         * lib/xreadlink.h: Include <stddef.h>, for size_t.
79397
79398         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
79399         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
79400
79401         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
79402         sysexits.h.
79403
79404 2004-06-01  Jim Meyering  <jim@meyering.net>
79405
79406         * m4/calloc.m4: New file.
79407
79408 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
79409
79410         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
79411         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
79412         Also, fix a typo in a diagnostic.
79413
79414 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79415
79416         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79417         or AC_FUNC_REALLOC.
79418
79419 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79420
79421         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
79422         macros to be defined.
79423         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
79424         the allocator returns NULL because the requested size is zero.
79425
79426 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79427
79428         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
79429         var.  Add comment explaining why libc still defines it.  This
79430         merges the following patch from glibc:
79431         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
79432
79433 2004-05-20  Andreas Schwab  <schwab@suse.de>
79434
79435         * m4/free.m4: Replace free if it not known to work, not the other
79436         way round.
79437
79438 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79439
79440         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
79441         present in glibc since revision 1.1 of this file.
79442         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
79443         obstack_alignment_mask, obstack_alloc, obstack_base,
79444         obstack_blank, obstack_blank_fast, obstack_chunk_size,
79445         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
79446         obstack_grow0, obstack_init, obstack_int_grow,
79447         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
79448         obstack_next_free, obstack_object_size, obstack_ptr_grow,
79449         obstack_ptr_grow_fast, obstack_room): Remove declarations of
79450         nonexistent functions.
79451
79452 2004-05-18  Karl Berry  <karl@gnu.org>
79453
79454         * config/srclist.txt: break link for vasnprintf.c.
79455
79456 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79457
79458         Port obstack to the AS/400, where pointers are 16 bytes wide and
79459         you cannot cast an integer to a valid pointer.  This patch is
79460         currently waiting to be integrated into glibc; see
79461         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
79462
79463         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
79464         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
79465         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
79466         (struct obstack): temp member is now a union of a pointer and
79467         an integer, instead of an integer.  All integer uses changed.
79468         This does not affect the physical layout of struct obstack,
79469         except on hosts (like the AS/400) where the size or alignment of
79470         void * is greater than that of ptrdiff_t.
79471         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
79472         __STDC__)]: Store temporary in pointer member of union, not
79473         integer member.
79474         * lib/obstack.c: Include <stddef.h>, for offsetof.
79475         (struct fooalign): Remove; it doesn't need a name.
79476         (union fooround): Change double to long double, and add void *.
79477         (DEFAULT_ALIGNMENT): Use offsetof to compute.
79478         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
79479         not a macro.  Hence the values are always int; so remove all
79480         casts-to-int in uses.
79481
79482 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79483
79484         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
79485         we can get this patch merged into glibc.
79486
79487 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79488             Paul Eggert  <eggert@cs.ucla.edu>
79489
79490         * m4/argp: Depend on alloca.
79491
79492 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79493             Paul Eggert  <eggert@cs.ucla.edu>
79494
79495         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
79496         freecoding.
79497
79498 2004-05-17  Bruno Haible  <bruno@clisp.org>
79499
79500         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
79501         precision that consists of a '.' followed by an empty digit string.
79502         Patch by Tor Lillqvist <tml@iki.fi>.
79503
79504 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79505
79506         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
79507         for backward compatibility with older code.  We need our own
79508         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
79509         it under some other name, and our alloca.h will define it.
79510
79511 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79512             Derek Price  <derek@ximbiot.com>
79513
79514         * lib/alloca.c: Include <alloca.h>, to get our interface.
79515         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
79516         include <alloca.h> first.  Use C89 prototype for alloca; this
79517         requires including <stddef.h> for size_t.  Use extern "C" if C++.
79518         Use #elif for simplicity, since we can assume C89 now.
79519         Don't try to source the system alloca.h since it will not be found
79520         and to prevent recursively including its replacement.
79521         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
79522         * lib/regex.c: Likewise.
79523
79524 2004-05-16  Derek Price  <derek@ximbiot.com>
79525             Paul Eggert  <eggert@cs.ucla.edu>
79526
79527         getline cleanup.  This changes the getndelim2 API: both order of
79528         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
79529         no delimiter).
79530
79531         * lib/getline.c: Don't include stddef.h or stdio.h, since our
79532         interface does that.
79533         (getline): Always use getdelim, so that we don't have two
79534         copies of this code.
79535         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
79536         if available.
79537         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
79538         (GETNDELIM2_MAXIMUM): New macro.
79539         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
79540         instead of the old practice of delim2==0.  All callers changed.
79541         Return -1 on overflow, instead of returning junk.
79542         Do not set *linesize unless allocation succeeds.
79543         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
79544         that we include sys/types.h.
79545         * lib/getnline.h: Likewise.
79546         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
79547         (getndelim2): Reorder arguments.
79548         * lib/getnline.c (getnline, getndelim):
79549         Don't discard the NMAX argument.
79550         (getnline): Invoke getndelim, to avoid code duplication.
79551         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
79552         of (size_t) -1 by callers of the getnline family.
79553
79554 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79555
79556         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
79557         Check for gettimeofday.
79558         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
79559         Check for settimeofday, stime.
79560
79561 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79562
79563         * lib/nanosleep.c (suspended): Change its type from int to
79564         sig_atomic_t volatile.
79565         (first_call): Make it private to rpl_nanosleep, and have it
79566         be zero initially as that's a bit faster.
79567         (my_usleep): Round up fractional times instead of truncating them,
79568         as this is the usual meaning for 'sleep'.
79569
79570         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
79571         doesn't work.
79572         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
79573         (ENOSYS): Define if not defined.
79574         (settime): Fall back on stime if it exists and settimeofday fails.
79575         But don't bother with fallbacks if a method fails with errno == EPERM.
79576
79577 2004-05-11  Jim Meyering  <jim@meyering.net>
79578
79579         Prior to this change, the save_cwd caller required read access to the
79580         current directory on most systems (ones with the fchdir function).
79581
79582         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
79583         fails, try write-only, and finally, resort to using xgetcwd.
79584
79585 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79586
79587         * lib/obstack.c, obstack.h: Import changes from libc.
79588
79589 2004-04-28  Bruno Haible  <bruno@clisp.org>
79590
79591         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
79592         also implicitly appends .exe to executables.
79593         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
79594         accepts Windows pathnames.
79595         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79596         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79597         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79598         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79599         Reported by Derek Robert Price <derek@ximbiot.com>.
79600
79601 2004-04-21  Karl Berry  <karl@gnu.org>
79602
79603         * config/srclist.txt (localcharset.c): break sync.
79604
79605 2004-04-20  Paul Eggert  <eggert@twinsun.com>
79606
79607         * m4/host-os.m4: Add a copyright notice.
79608
79609 2004-04-20  Jim Meyering  <jim@meyering.net>
79610
79611         Change UTILS_ to gl_ in AC_DEFINE'd names.
79612         Change utils_- and jm_-prefixed variables, too.
79613         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
79614         UTILS_FUNC_MKDIR_TRAILING_SLASH.
79615         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
79616
79617         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
79618         Don't emit trailing blanks.
79619         Also rename jm_-prefixed variables to have gl_ prefix.
79620
79621         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
79622         Also rename jm_-prefixed variables to have gl_ prefix.
79623
79624         * m4/jm-macros.m4: Reflect the renamings.
79625         * m4/prereq.m4: Likewise.
79626
79627 2004-04-20  Jim Meyering  <jim@meyering.net>
79628
79629         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
79630         memory.
79631
79632 2004-04-20  Jim Meyering  <jim@meyering.net>
79633             Bruno Haible  <bruno@clisp.org>
79634
79635         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
79636         memory when realloc fails.
79637
79638 2004-04-19  Jim Meyering  <jim@meyering.net>
79639
79640         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
79641         now that readutmp.c may call `free (0)'.
79642
79643 2004-04-19  Bruno Haible  <bruno@clisp.org>
79644
79645         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
79646         * m4/inttypes_h.m4: Likewise.
79647         * m4/stdint_h.m4: Likewise.
79648         * m4/intmax_t.m4: Likewise.
79649         * m4/uintmax_t.m4: Likewise.
79650
79651 2004-04-18  Jim Meyering  <jim@meyering.net>
79652
79653         * m4/prereq.m4: Don't forbid jm_ prefix.
79654
79655         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
79656         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
79657         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
79658         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
79659         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
79660         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
79661         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
79662         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
79663         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
79664         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
79665         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
79666         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
79667         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
79668         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
79669         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
79670         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
79671         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
79672         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
79673         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
79674
79675 2004-04-18  Jim Meyering  <jim@meyering.net>
79676
79677         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
79678         failure, don't leak memory and do call END_UTMP_ENT.
79679
79680 2004-04-16  Jim Meyering  <jim@meyering.net>
79681
79682         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
79683         coreutils' stat program.
79684         (gl_PREREQ): Don't require jm_PREREQ_STAT.
79685
79686 2004-04-11  Paul Eggert  <eggert@twinsun.com>
79687
79688         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
79689         C89.
79690         (CHAR_BIT): Remove, since we assume C89.
79691         Include <stdint.h> if available, as per current Autoconf CVS advice.
79692
79693 2004-03-31  Jim Meyering  <jim@meyering.net>
79694
79695         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
79696         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
79697         * m4/xalloc.m4: Likewise.
79698
79699 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79700
79701         Merge from coreutils.
79702
79703         * m4/inttostr.m4: New file.
79704         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
79705         Require AM_STDBOOL_H and gl_TIMESPEC instead.
79706         Require gl_CLOCK_TIME.
79707         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
79708
79709 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79710
79711         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
79712         not bool, to be more consistent with Unix conventions.
79713         Suggested by Bruno Haible.
79714
79715         Merge from coreutils.
79716
79717         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
79718         * lib/umaxtostr.c: New files.
79719
79720         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
79721         the usual <time.h> dance.
79722         (get_date): Change signature to support fractional time stamps.
79723         All callers changed.
79724         * lib/getdate.y: Include "getdate.h" first, as we can now
79725         assume C89 and don't need to worry about 'const'.
79726         Similarly, include "unlocked-io.h" near start, not in middle.
79727         Include <limits.h>.
79728         (textint.value): Use long int rather than int.
79729         (textint.digits): Use size_t rather than int.
79730         (BILLION, LOG10_BILLION): New constants.
79731         (parser_control): New member rel_ns.  Members day_ordinal,
79732         time_zone, month, day, hour, minutes, rel_year, rel_month,
79733         rel_day, rel_hour, rel_minutes, rel_seconds
79734         are now long int, not int.  Member seconds is now struct timespec,
79735         not int.  New member timespec_seen.  Members dates_seen, days_seen,
79736         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
79737         not int.
79738         (%union.intval): Now long int, not int.
79739         New member timespec.
79740         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
79741         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
79742         (spec): Now is a timespec or an item list.
79743         (timespec, items): New nonterminals.
79744         (time, rel, relunit, number, get_date):
79745         Add support for fractional seconds.
79746         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
79747         (gmtime, localtime, mktime): Remove decls; not needed with C89.
79748         (to_hour): First arg is now long int, not int.
79749         (to_year): Returns long int, not int.
79750         Don't treat year -70 like 70.
79751         (tm_diff): Returns long int, not int.
79752         (lookup_word): Use bool instead of int when appropriate.
79753         (yylex): Use size_t for count, not int.
79754         Detect overflow when parsing large integer constants.
79755         Add support for fractions.
79756         (get_date): Make pointers 'const' if possible.
79757         Use more-portable code to detect integer overflow.
79758         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
79759         Don't use ctime; it's not reliable if the year has >4 digits.
79760
79761         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
79762         This is for compatibility with BSD.
79763
79764         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
79765         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
79766         From coreutils' system.h.
79767
79768         * lib/userspec.c: Don't include "posixver.h".
79769         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
79770         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
79771         compatible extension.  Simplify code by removing a boolean int
79772         that was always nonzero if a string was nonnull.
79773
79774 2004-03-30  Jim Meyering  <jim@meyering.net>
79775
79776         Merge from coreutils.
79777
79778         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
79779         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
79780         on some systems one must include <grp.h> before it.
79781         Reported by Christian Krackowizer.
79782
79783 2004-03-30  Jim Meyering  <jim@meyering.net>
79784
79785         Merge from coreutils.
79786
79787         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
79788
79789         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
79790         an empty input stream.
79791
79792         * lib/readtokens.c: Include <stdbool.h>.
79793         (readtoken): Use `size_t' rather than int/long.
79794         All callers adjusted.
79795         Use `bool' rather than `int' where appropriate.
79796         Use memset rather than an explicit loop.
79797         Use x2nrealloc rather than xrealloc.
79798         Allow the use of `\0' as a delimiter.
79799         (readtokens): Likewise.
79800         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
79801
79802 2004-03-30  Jim Meyering  <jim@meyering.net>
79803
79804         * m4/realloc.m4: Remove file, since now it does no more than
79805         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
79806         the `configure.ac' section of module/realloc.
79807         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
79808
79809 2004-03-30  Bruno Haible  <bruno@clisp.org>
79810
79811         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
79812         nonnull.
79813
79814 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79815
79816         Merge changes to getloadavg.c from coreutils and Emacs.
79817
79818         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
79819         Define to an expression, not to the empty string.
79820         Include cloexec.h and xalloc.h.
79821         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
79822         Use set_cloexec_flag rather than rolling our own.
79823         * lib/cloexec.c, lib/cloexec.h: New files.
79824
79825 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79826
79827         * m4/cloexec.m4: New file.
79828
79829 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79830
79831         * lib/getopt.h: Sync with libc CVS.
79832
79833 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79834             Bruno Haible  <bruno@clisp.org>
79835
79836         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
79837         mbswidth.
79838
79839 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79840             Bruno Haible  <bruno@clisp.org>
79841
79842         * lib/mbswidth.h: Include <wchar.h> only if
79843         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
79844         <wchar.h>.
79845         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
79846
79847 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79848
79849         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
79850         Sync with libc CVS.
79851         * lib/getopt_int.h: New file, also synced from libc.
79852
79853 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79854
79855         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
79856         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
79857         Bring back getopt.c, getopt.h, getopt1.c.
79858
79859 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79860
79861         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
79862         All uses changed.  Check for sa_sigaction member; this fixes
79863         a bug first reported by Jason Andrade in
79864         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79865
79866 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79867
79868         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
79869         '#if' expressions.  Unlike the code it replaces, it does not
79870         depend on (defined _SC_PAGESIZE).  However, it does depend on
79871         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
79872         first reported by Jason Andrade in
79873         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79874
79875 2004-02-25  Simon Josefsson  <jas@extundo.com>
79876
79877         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
79878
79879 2004-02-25  Simon Josefsson  <jas@extundo.com>
79880
79881         * lib/strdup.h: New file.
79882         * lib/strdup.c: Include it.
79883         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
79884         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
79885
79886 2004-02-23  Karl Berry  <karl@gnu.org>
79887
79888         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
79889         (from fencepost.gnu.org:/gd/gnuorg).
79890
79891 2004-02-23  Karl Berry  <karl@gnu.org>
79892
79893         * config/srclistvars.sh (GNUORG) [karl]: redefine.
79894         * config/srclist.txt: add maintain/standards documents.
79895
79896 2004-02-18  Bruno Haible  <bruno@clisp.org>
79897
79898         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
79899         Reported by Derek Robert Price <derek@ximbiot.com>.
79900
79901 2004-02-16  Karl Berry  <karl@gnu.org>
79902
79903         * config/mkinstalldirs, install-sh: update from automake.
79904
79905 2004-02-06  Karl Berry  <karl@gnu.org>
79906
79907         * m4/po.m4: update from gettext 0.14.1.
79908
79909 2004-02-06  Karl Berry  <karl@gnu.org>
79910
79911         * lib/config.charset: update from gettext 0.14.1.
79912
79913 2004-02-05  Paul Eggert  <eggert@twinsun.com>
79914
79915         Add comments and code, prompted by suggestions from Bruno Haible
79916         for sh-quote.
79917         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
79918         describing the enum quoting_style values.
79919         * lib/quotearg.c (quotearg_alloc): New function.
79920         (quotearg_buffer_restyled): Treat lone { and } as special.
79921         Treat = as special.  Work around bug with older shells
79922         that "see" a '\' that is really the 2nd byte of a multibyte char.
79923         Quote empty string with shell_quoting_style.
79924
79925 2004-02-03  Bruno Haible  <bruno@clisp.org>
79926
79927         * m4/pipe.m4: New file, from GNU gettext.
79928
79929 2004-02-03  Bruno Haible  <bruno@clisp.org>
79930
79931         * lib/pipe.h: New file, from GNU gettext.
79932         * lib/pipe.c: New file, from GNU gettext.
79933
79934 2004-01-27  Bruno Haible  <bruno@clisp.org>
79935
79936         * m4/execute.m4: New file, from GNU gettext.
79937
79938 2004-01-27  Bruno Haible  <bruno@clisp.org>
79939
79940         * lib/execute.h: New file, from GNU gettext.
79941         * lib/execute.c: New file, from GNU gettext.
79942         * lib/w32spawn.h: New file, from GNU gettext.
79943
79944 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79945
79946         Merge from diffutils.
79947
79948         * lib/file-type.c (file_type): Add typed memory objects.
79949         * lib/file-type.h (S_TYPEISTMO): New macro.
79950
79951         * lib/c-stack.h (c_stack_action): Remove argv argument.
79952         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
79953         (die): Don't calculate message unless segv_action returns.
79954         (get_stack_location, min_address_from_argv, max_address_from_argv,
79955         volatile stack_base, volatile_stack_size): Remove.
79956         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
79957         that every segmentation violation is a stack overflow.  (Ouch!)
79958         See Debian bug 136249 (still outstanding) for more info about why
79959         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
79960
79961 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79962
79963         Exit-status fix from coreutils.
79964
79965         Use exit_failure consistently in place of EXIT_FAILURE,
79966         so that program exit statuses are consistent on failure.
79967
79968         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
79969         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
79970         * lib/argmatch.h: Comment fix to match the above.
79971         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
79972         Now a macro referring to exit_failure, instead of a separate
79973         variable.  Include "exitfail.h" to get it.
79974         * lib/xstrtol.h: Include "exitfail.h".
79975         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
79976
79977         * lib/long-options.c (parse_long_options): Use prototype
79978         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
79979         for clarity.
79980
79981 2004-01-21  Jim Meyering  <jim@meyering.net>
79982
79983         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
79984         so as not to conflict with a different-sized __mktime_internal
79985         function in GNU libc.
79986         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
79987         Problem building statically-linked `ls' reported by Michael Brunnbauer.
79988
79989 2004-01-20  Karl Berry  <karl@gnu.org>
79990
79991         * config/config.guess: update from config.
79992
79993         * config/srclistvars.sh: GNUWWWLICENSES for karl.
79994
79995 2004-01-20  Bruno Haible  <bruno@clisp.org>
79996
79997         Safer stack allocation.
79998         * lib/setenv.c: Include allocsa.h.
79999         (alloca): Remove fallback definition.
80000         (freea): Remove macro.
80001         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80002         instead of freea.
80003
80004 2004-01-20  Bruno Haible  <bruno@clisp.org>
80005
80006         * m4/eealloc.m4: New file, from GNU gettext.
80007
80008 2004-01-20  Bruno Haible  <bruno@clisp.org>
80009
80010         * m4/allocsa.m4: New file, from GNU gettext.
80011
80012 2004-01-20  Bruno Haible  <bruno@clisp.org>
80013
80014         * lib/xallocsa.h: New file, from GNU gettext.
80015         * lib/xallocsa.c: New file, from GNU gettext.
80016
80017 2004-01-20  Bruno Haible  <bruno@clisp.org>
80018
80019         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80020
80021 2004-01-20  Bruno Haible  <bruno@clisp.org>
80022
80023         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80024         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80025         specially.
80026
80027 2004-01-20  Bruno Haible  <bruno@clisp.org>
80028
80029         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80030         patch.
80031
80032 2004-01-20  Bruno Haible  <bruno@clisp.org>
80033
80034         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80035
80036 2004-01-20  Bruno Haible  <bruno@clisp.org>
80037
80038         * lib/eealloc.h: New file.
80039
80040 2004-01-20  Bruno Haible  <bruno@clisp.org>
80041
80042         * lib/binary-io.h: Avoid warnings on Cygwin.
80043
80044 2004-01-20  Bruno Haible  <bruno@clisp.org>
80045
80046         * lib/allocsa.h: New file, from GNU gettext.
80047         * lib/allocsa.c: New file, from GNU gettext.
80048
80049 2004-01-18  Karl Berry  <karl@gnu.org>
80050
80051         * doc/gpl.texi, doc/lgpl.texi: new files.
80052
80053 2004-01-18  Karl Berry  <karl@gnu.org>
80054
80055         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80056         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80057
80058 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80059
80060         Merge from coreutils.
80061
80062         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80063         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80064         (gl_DEFAULT_POSIX2_VERSION): Move
80065         the documentation from 'configure' into 'config.hin',
80066         so that 'configure --help' isn't burdened by it and
80067         we don't have to worry about its formatting there.
80068         Reword the documentation so that it's more succinct
80069         and can be run together into a single paragraph.
80070         * m4/same.m4 (gl_SAME): Check for pathconf.
80071
80072 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80073
80074         Merge from coreutils.
80075
80076         * lib/posixver.c: Include posixver.h.
80077
80078         * lib/same.c: Include <stdbool.h>, <limits.h>.
80079         (_POSIX_NAME_MAX): Define if not defined.
80080         (MIN): New macro.
80081         (same_name): If file names are silently truncated, report
80082         that the file names are the same if they are the same after
80083         the silent truncation.
80084
80085         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80086         conversion function.
80087         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80088         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80089         longer needed.
80090
80091 2004-01-15  Jim Meyering  <jim@meyering.net>
80092
80093         Merge from coreutils.
80094
80095         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80096         if no library is required.
80097         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80098         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80099         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80100         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80101         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80102         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80103         value, $ac_cv_search_crypt, if it's "none required".
80104         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80105         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80106         not gl_FUNC_GETLOADAVG.
80107         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80108         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80109
80110 2004-01-15  Jim Meyering  <jim@meyering.net>
80111
80112         Merge from coreutils.
80113
80114         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80115         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80116         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80117
80118         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80119         optional configure-time default.
80120
80121         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80122
80123         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80124
80125 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80126
80127         Merge from coreutils.
80128
80129         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80130         value, $ac_cv_search_nanosleep, if it's "none required".
80131
80132 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80133
80134         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80135         with like-named macro in fnmatch.c.
80136         (EXT): Use an internal constant instead.
80137
80138         Merge fnmatch patches from glibc.
80139         * lib/fnmatch.c (mbsinit): Remove define.
80140         Add libc_hidden_ver (__fnmatch, fnmatch).
80141         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80142         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80143
80144 2004-01-14  Karl Berry  <karl@gnu.org>
80145
80146         * config/install-sh: update from automake.
80147
80148 2004-01-13  Karl Berry  <karl@gnu.org>
80149
80150         * config/install-sh: update from automake.
80151
80152 2004-01-09  Karl Berry  <karl@gnu.org>
80153
80154         * config/install-sh: update from automake.
80155
80156 2004-01-05  Karl Berry  <karl@gnu.org>
80157
80158         * config/config.{sub,guess}: update from config.
80159
80160 2003-12-31  Karl Berry  <karl@gnu.org>
80161
80162         * config/depcomp: update from automake.
80163
80164 2003-12-14  Karl Berry  <karl@gnu.org>
80165
80166         * lib/config.charset: update from gettext-runtime.
80167
80168 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80169
80170         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80171         Bug reported by Alfred M. Szmidt.
80172
80173 2003-12-03  Bruno Haible  <bruno@clisp.org>
80174
80175         * m4/gettext.m4: Upgrade from gettext-0.13.
80176         * m4/po.m4: Upgrade from gettext-0.13.
80177         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80178         * m4/intmax.m4: New file, from gettext-0.13.
80179         * m4/printf-posix.m4: New file, from gettext-0.13.
80180
80181 2003-11-29  Karl Berry  <karl@gnu.org>
80182
80183         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80184
80185 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80186             Bruno Haible  <bruno@clisp.org>
80187
80188         * lib/printf-parse.h: Don't include sys/types.h.
80189         (ARG_NONE): New macro.
80190         (char_directive): Change type of *arg_index fields to size_t.
80191         * lib/printf-parse.c: Don't include sys/types.h.
80192         (SSIZE_MAX): Remove macro.
80193         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80194         Remove unnecessary overflow check.
80195         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80196         fields.
80197
80198 2003-11-25  Bruno Haible  <bruno@clisp.org>
80199
80200         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80201
80202 2003-11-25  Bruno Haible  <bruno@clisp.org>
80203
80204         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80205         gt_TYPE_SSIZE_T.
80206
80207 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80208
80209         * modules/alloca: Remove dependency on xalloc.
80210
80211 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80212
80213         * lib/alloca.c: Remove dependency on xalloc module.
80214         (xalloc_die): Remove.
80215         (memory_full) [!defined emacs]: New macro.
80216         [!defined emacs]: Don't include xalloc.h.
80217         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80218         address arithmetic overflows.  Change datatypes a bit to avoid
80219         unnecessary casts.
80220
80221 2003-11-22  Jim Meyering  <jim@meyering.net>
80222
80223         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80224         s/size/size_t/.
80225
80226 2003-11-21  Karl Berry  <karl@gnu.org>
80227
80228         * config/config.{sub,guess}: update from config.
80229
80230 2003-11-18  Karl Berry  <karl@gnu.org>
80231
80232         * config/config.{sub,guess}: update from config.
80233
80234         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80235
80236 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80237
80238         * README: Mention that S+T cannot overflow if S is the size of
80239         an existing object and T is sufficiently small.
80240
80241 2003-11-17  Jim Meyering  <jim@meyering.net>
80242
80243         On systems without utime and without a utimes function capable of
80244         dealing with a NULL struct utimbuf* argument, this utime replacement
80245         could -- in unusual circumstances -- leak a file descriptor.
80246         * lib/utime.c: Include <unistd.h> and <errno.h>.
80247         (utime_null): Be sure to close `fd' and to preserve errno.
80248         Reported by Geoff Collyer via Arnold Robbins.
80249
80250 2003-11-17  Bruno Haible  <bruno@clisp.org>
80251
80252         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
80253         (Depends-on): Add xsize.
80254
80255 2003-11-17  Bruno Haible  <bruno@clisp.org>
80256
80257         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
80258
80259 2003-11-17  Bruno Haible  <bruno@clisp.org>
80260
80261         * lib/vasnprintf.c (alloca): Remove fallback definition.
80262         (freea): Remove definition.
80263         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
80264         Reported by Paul Eggert.
80265
80266 2003-11-16  Paul Eggert  <eggert@twinsun.com>
80267             Bruno Haible  <bruno@clisp.org>
80268
80269         Protect against address arithmetic overflow.
80270         * lib/printf-args.h: Include stddef.h.
80271         (arguments): Change type of field 'count' to size_t.
80272         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
80273         'unsigned int' where appropriate.
80274         * lib/printf-parse.h: Include sys/types.h.
80275         (char_directive): Change type of *arg_index fields to ssize_t.
80276         (char_directives): Change type of fields 'count', max_*_length to
80277         size_t.
80278         * lib/printf-parse.c: Include sys/types.h and xsize.h.
80279         (SSIZE_MAX): Define fallback value.
80280         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
80281         instead of 'int' where appropriate. Check a_allocated, d_allocated
80282         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
80283         * lib/vasnprintf.c: Include xsize.h.
80284         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
80285         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
80286         overflow. Avoid wraparound when converting a width or precision from
80287         decimal to binary.
80288
80289 2003-11-16  Bruno Haible  <bruno@clisp.org>
80290
80291         Update from GNU gettext.
80292         * lib/printf-parse.c: Generalize to it can be compiled for wide
80293         strings.
80294         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
80295         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
80296         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
80297         SNPRINTF): New macros.
80298         Don't include <alloca.h> if the file is used inside libintl.
80299         (local_wcslen): New function, for Solaris 2.5.1.
80300         (VASNPRINTF): Use it instead of wcslen.
80301
80302 2003-11-16  Bruno Haible  <bruno@clisp.org>
80303
80304         * lib/xsize.h (xmax): New function.
80305         (xsum, xsum3, xsum4): Declare as "pure" functions.
80306
80307 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80308
80309         * modules/xalloc (Files): Undo latest change, since xalloc.h
80310         no longer needs SIZE_MAX or PTRDIFF_MAX.
80311
80312 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80313
80314         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
80315         gl_PTRDIFF_MAX.
80316
80317 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80318
80319         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
80320         "return", to pacify some unknown compiler.  Problem reported
80321         by Joerg Schilling.
80322
80323 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80324
80325         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
80326         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
80327         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
80328         heuristic is just as accurate as far as we know, and it removes a
80329         dependency on size_max.m4 and ptrdiff_max.m4.
80330
80331 2003-11-11  Bruno Haible  <bruno@clisp.org>
80332
80333         * modules/xsize (Files): Add m4/size_max.m4.
80334         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
80335
80336 2003-11-11  Bruno Haible  <bruno@clisp.org>
80337
80338         * m4/size_max.m4: New file.
80339         * m4/ptrdiff_max.m4: New file.
80340         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
80341         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
80342         (gl_XALLOC): Invoke it.
80343
80344 2003-11-11  Bruno Haible  <bruno@clisp.org>
80345
80346         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80347         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80348         defined.
80349
80350 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80351
80352         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80353         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80354         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80355         From Bruno Haible.
80356         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80357         not (size_t) -1, since it's defined here.
80358
80359 2003-11-09  Karl Berry  <karl@gnu.org>
80360
80361         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80362
80363 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80364
80365         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80366         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80367         Reject sizes of exactly SIZE_MAX bytes.
80368         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80369         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80370
80371 2003-11-05  Bruno Haible  <bruno@clisp.org>
80372
80373         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80374         SIZE_MAX defined in <limits.h> on Solaris.
80375
80376 2003-11-04  Jim Meyering  <jim@meyering.net>
80377
80378         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
80379         variable names, rather than @VAR@.
80380         * modules/poll: Likewise.
80381
80382 2003-11-04  Bruno Haible  <bruno@clisp.org>
80383
80384         * modules/xsize: New file.
80385         * modules/linebreak: Depend on xsize.
80386         * MODULES.html.sh (func_all_modules): Add xsize.
80387
80388 2003-11-04  Bruno Haible  <bruno@clisp.org>
80389
80390         * m4/xsize.m4: New file.
80391
80392 2003-11-04  Bruno Haible  <bruno@clisp.org>
80393
80394         * lib/xsize.h: New file.
80395         * lib/linebreak.c: Include xsize.h.
80396         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
80397         argument for overflow.
80398         Suggested by Paul Eggert.
80399
80400 2003-11-03  Karl Berry  <karl@gnu.org>
80401
80402         * config/config.{guess,sub}: update from config.
80403
80404 2003-11-03  Jim Meyering  <jim@meyering.net>
80405
80406         * modules/userspec (lib_SOURCES): Add userspec.h.
80407         (Include): Add "userspec.h".
80408         Improve description.
80409
80410 2003-11-03  Jim Meyering  <jim@meyering.net>
80411
80412         * lib/userspec.c: Include "userspec.h".
80413         * lib/userspec.h: New file.
80414
80415 2003-11-03  Bruno Haible  <bruno@clisp.org>
80416
80417         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
80418
80419 2003-11-03  Bruno Haible  <bruno@clisp.org>
80420
80421         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
80422         available, to avoid (extremely rare) race condition.
80423         Suggested by Paul Eggert.
80424
80425 2003-11-02  Karl Berry  <karl@gnu.org>
80426
80427         * config/srclist.txt (vasprintf.c): sync broken, sigh.
80428
80429 2003-10-31  Paul Eggert  <eggert@twinsun.com>
80430
80431         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
80432         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
80433         (read_filesystem_list): Set and use me_type_malloced.
80434         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
80435         whatever the type happens to be), for brevity and consistency.
80436         Check for size calculation overflow on Alphas running OSF/1.
80437
80438 2003-10-31  Jim Meyering  <jim@meyering.net>
80439
80440         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
80441
80442         * lib/linebuffer.c: Include <string.h> for declaration of memset.
80443
80444 2003-10-30  Paul Eggert  <eggert@twinsun.com>
80445             Bruno Haible  <bruno@clisp.org>
80446
80447         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
80448         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
80449
80450 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80451
80452         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
80453         netbsd*-gnu*.  Suggested by Robert Millan.
80454
80455 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80456
80457         * modules/group-member: Depend on stdbool.
80458
80459 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80460
80461         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
80462
80463 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80464
80465         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
80466         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
80467         after the 'gnu' in these cases.  This fixes some bugs in the
80468         previous change, and is based on suggestions by Robert Millan.
80469
80470 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80471
80472         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
80473         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
80474         no longer needed.
80475         * lib/quotearg.c (quotearg_n_options): Use it.
80476         * lib/group-member.c: Include <stdbool.h>.
80477         (free_group_info): Arg is now const *; don't free arg.
80478         (get_group_info): Now returns bool and accepts struct group_info *,
80479         rather than returning a malloc'ed struct group_info *.
80480         All uses changed.  Check for overflow in internal size calculation.
80481
80482         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
80483         rather than xmalloc/xrealloc.
80484         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
80485         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
80486         conformance bug: the old code used a pointer after freeing the
80487         storage that it addressed.
80488         * lib/hash.c (hash_initialize): Simplify the code by using
80489         xalloc_oversized rather than doing it by hand.
80490         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
80491         the buffer preserved.  Use free and xmalloc instead.
80492         * lib/quotearg.c (quotearg_n_options): Likewise.
80493         Use a simpler test for size overflow.  Don't use xalloc_oversized
80494         because unsigned int might be wider than size_t (!); this suggests
80495         that we should switch from unsigned int to size_t for slot numbers.
80496
80497 2003-10-28  Paul Eggert  <eggert@twinsun.com>
80498
80499         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
80500         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
80501         NetBSD kernels.  Requested by Richard Stallman.
80502
80503 2003-10-27  Paul Eggert  <eggert@twinsun.com>
80504
80505         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
80506         to allocate the returned structure.  Do not allocate a subarray,
80507         as x2nrealloc will do that.
80508         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
80509         instead of xnrealloc.
80510         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
80511
80512 2003-10-27  Bruno Haible  <bruno@clisp.org>
80513
80514         * lib/stdbool_.h: Better support for BeOS.
80515
80516 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80517
80518         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
80519         now uses inline.
80520
80521 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80522
80523         * lib/xalloc.h (xalloc_oversized): New static inline function, for
80524         callers that want to do their own size-overflow checking.  Include
80525         <stdbool.h>, since xalloc_oversized returns bool.
80526         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
80527         to use xalloc_oversized.
80528
80529         Add two functions x2realloc, x2nrealloc, for programs that grow
80530         arrays dynamically by doubling their sizes.
80531         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
80532         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
80533         New functions.
80534
80535         Port to C99 semantics for 'inline' of external functions.
80536         Bug reported by Bruno Haible.
80537         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
80538         with the old contents of xnmalloc.
80539         (xnmalloc, xmalloc): Use it.
80540         (xnrealloc_inline): New static inline function,
80541         with the old contents of xnrealloc.
80542         (xnrealloc, xrealloc): Use it.
80543
80544         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
80545         that.
80546
80547 2003-10-26  Karl Berry  <karl@gnu.org>
80548
80549         * config/srclist.txt (COPYING.DOC): no longer available from
80550         /gd/gnuorg; don't know where the ultimate source is.
80551
80552 2003-10-25  Paul Eggert  <eggert@twinsun.com>
80553
80554         Fix several address-calculation bugs in the hash modules,
80555         plus some minor code cleanup.
80556
80557         * lib/hash.h: Include <stdbool.h>, for bool.
80558         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
80559         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
80560         hash_get_n_entries, hash_get_max_bucket_length,
80561         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
80562         hash_rehash): Use size_t rather than unsigned.
80563         * lib/hash.c (struct hash_table, hash_get_n_buckets,
80564         hash_get_n_buckets_used, hash_get_n_entries,
80565         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
80566         hash_get_entries, hash_do_for_each, hash_string, is_prime,
80567         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
80568         Likewise.
80569         (SIZE_MAX): Define if not defined.
80570         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
80571         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
80572         hash_print):
80573         Use const * when possible.
80574         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
80575         (check_tuning): Fix bug: if tuning parameters were very close to
80576         0 or 1, rounding errors could have caused subscript violations.
80577         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
80578         (hash_initialize): Add 'fail:' label
80579         to free table and return NULL, and use it to simplify code.
80580         Use calloc rather than clearing the storage ourself.
80581         (hash_initialize, hash_rehash): Check for arithmetic overflow in
80582         buffer size calculations.
80583         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
80584         Include <stddef.h>, for size_t.
80585         * lib/hash-pjw.c (hash_pjw): Likewise.
80586         Switch to method described by Bruno Haible.
80587         Include <limits.h>, for CHAR_BIT.
80588         (SIZE_BITS): New macro.
80589
80590 2003-10-23  Paul Eggert  <eggert@twinsun.com>
80591
80592         * m4/getline.m4 (AM_FUNC_GETLINE):
80593         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
80594         hosts.  Problem reported by Derek Robert Price in
80595         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
80596         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
80597         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
80598
80599 2003-10-21  Paul Eggert  <eggert@twinsun.com>
80600
80601         * lib/getndelim2.c (getndelim2): When size calculation overflows,
80602         ceiling the allocation at NMAX bytes rather than silently
80603         discarding input bytes before NMAX is reached.  This makes
80604         a difference only if NMAX exceeds SIZE_MAX / 2.
80605
80606         * lib/obstack.c: Merge from glibc.
80607         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
80608         Add libc_hidden_def (_obstack_newchunk).
80609         (_obstack_free) [! defined _LIBC]: Remove.
80610         [defined _LIBC]: Make a strong alias from obstack_free, rather than
80611         a clone of the function body.
80612         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
80613         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
80614
80615         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
80616         glibc.
80617         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
80618         arg to memcpy.
80619
80620         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
80621         (obstack_ptr_grow_fast, obstack_int_grow_fast):
80622         Don't use lvalue casts, as GCC plans to remove support for them
80623         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
80624         was also present in the non-GCC version, indicating that this
80625         code had always been buggy and had never been widely used.
80626         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
80627         Use the fast variant of each macro, rather than copying the
80628         definiens of the fast variant; that way, we'll be more likely to
80629         catch future bugs in the fast variants.
80630
80631 2003-10-20  Bruno Haible  <bruno@clisp.org>
80632
80633         * modules/wait-process: New file.
80634         * MODULES.html.sh (func_all_modules): Add wait-process.
80635
80636 2003-10-20  Bruno Haible  <bruno@clisp.org>
80637
80638         * m4/wait-process.m4: New file.
80639
80640 2003-10-20  Bruno Haible  <bruno@clisp.org>
80641
80642         * lib/wait-process.h: New file, from GNU gettext.
80643         * lib/wait-process.c: New file, from GNU gettext.
80644
80645 2003-10-19  Jim Meyering  <jim@meyering.net>
80646
80647         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
80648         HPUX 10.20.
80649
80650 2003-10-18  Karl Berry  <karl@gnu.org>
80651
80652         * config/config.guess: update from config.
80653
80654 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80655
80656         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
80657         (getgroups): First arg is int, not size_t.
80658         Don't let 'free' mangle errno.
80659
80660 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80661
80662         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
80663
80664 2003-10-16  Karl Berry  <karl@gnu.org>
80665
80666         * config/config.{guess,sub}: update from config.
80667
80668 2003-10-16  Jim Meyering  <jim@meyering.net>
80669
80670         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
80671         memcpy.
80672
80673 2003-10-15  Paul Eggert  <eggert@twinsun.com>
80674
80675         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
80676         (SIZE_MAX): Remove.
80677         (new_exclude, add_exclude_file): Initial size no longer needs to
80678         be a power of 2.
80679         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
80680         our own address arithmetic overflow checking.
80681
80682         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
80683         (fnmatch): Do not alloca more than 2000 wide characters;
80684         instead, use malloc for large buffers.
80685         Check for address arithmetic overflow, and return -1
80686         with errno set to ENOMEM in that case.
80687         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
80688         (NEW_PATTERN): Do not alloca more than 8000 bytes;
80689         instead, return -1.  Check for address arithmetic overflow.
80690
80691 2003-10-14  Paul Eggert  <eggert@twinsun.com>
80692
80693         Handle invalid suffixes and overflow independently, so that
80694         callers can treat them independently as needed.  Fix some bugs in
80695         suffix handling, e.g., "100k@" was not diagnosed as an invalid
80696         suffix for a human-readable blocksize.  The major caller-visible
80697         change is the addition of a new
80698         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
80699         that both overflow and suffix chars were found.
80700
80701         * lib/human.c (humblock): Don't check separately for invalid suffix
80702         char; that is xstrtoumax's job (now that its bug is fixed).
80703         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
80704         INTMAX_MAX]: New macros.
80705         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
80706         TYPE_MAXIMUM): New macros.
80707         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
80708         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
80709         if overflow occurs, as it's what __strtol does and it's more useful
80710         in practice.
80711         (__xstrtol): If __strtol reports some error other than ERANGE,
80712         reflect it to the caller as LONGINT_INVALID.  If it reports
80713         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
80714         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
80715         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
80716         value.
80717         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
80718         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
80719         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
80720         [defined UINTMAX_MAX]: New macros.
80721
80722 2003-10-14  Bruno Haible  <bruno@clisp.org>
80723
80724         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
80725
80726 2003-10-14  Bruno Haible  <bruno@clisp.org>
80727
80728         * m4/sig_atomic_t: New file, from GNU gettext.
80729         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
80730
80731 2003-10-14  Bruno Haible  <bruno@clisp.org>
80732
80733         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
80734         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
80735         Also use volatile where needed.
80736
80737 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80738
80739         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
80740         Change maintainer from Bruno Haible to 'all'.
80741
80742 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80743
80744         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
80745
80746 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80747
80748         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
80749         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
80750         and define in terms of the other primitives.
80751         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
80752         (SIZE_MAX): Define if not already defined.
80753         (array_size_overflow): New function.
80754         (xalloc_die): Abort instead of exiting if 'error' returns.
80755         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
80756         (xmalloc, xrealloc): Use them.
80757         (xcalloc): Check for address arithmetic overflow.
80758         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
80759         a bit faster than strcpy.
80760
80761 2003-10-10  Simon Josefsson  <jas@extundo.com>
80762
80763         * modules/argp (Depends-on): Add restrict and strcase.
80764
80765 2003-10-10  Simon Josefsson  <jas@extundo.com>
80766
80767         * m4/argp.m4: Add AC_C_INLINE.
80768
80769 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80770
80771         Merge getpass from libc, plus a few fixes.
80772
80773         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
80774         Include <stdbool.h>.
80775         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
80776         __fsetlocking to empty.
80777         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
80778         do include <bits/libc-lock.h>.
80779         Do not include <fcntl.h>; not needed.
80780         [_LIBC]: Include <wchar.h>.
80781         (NOTCANCEL_MODE): New macro.
80782         (flockfile, funlockfile) [_LIBC]: New macros.
80783         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
80784         [!_LIBC]: New macros.
80785         (call_fclose): New function.
80786         (getpass): Use it.  Save tty stream separately; this simplifies the
80787         code and makes it more reliable if stdin happens to equal stdout.
80788         Invoke __fsetlocking on tty.
80789         Handle thread cancellation if needed.
80790         Namespace cleanup (use __tcgetattr, __getline).
80791         Use bool for Booleans.
80792         [USE_IN_LIBIO]: Handle wide streams.
80793         [!_LIBC]: Unconditionally do the fseek, since we don't know what
80794         stream might go where.
80795
80796         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
80797         doesn't have to include <stdio.h> before us.
80798         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
80799         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
80800         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
80801         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
80802         if not declared, so that we can use getpass.c code from libc without
80803         rewriting it.
80804         (flockfile, ftrylockfile, funlockfile): New macros.
80805
80806 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80807
80808         * modules/getpass: Depend on stdbool.
80809
80810 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80811
80812         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
80813
80814 2003-10-07  Karl Berry  <karl@gnu.org>
80815
80816         * config/config.{guess,sub}: update from config.
80817
80818 2003-10-06  Jim Meyering  <jim@meyering.net>
80819             Bruno Haible  <bruno@clisp.org>
80820
80821         This lets translators provide better translations for the
80822         "Written by ..." part of --version output.
80823         * lib/version-etc.h: Include stdarg.h.
80824         (version_etc_copyright): Declare as readonly.
80825         (version_etc): Make this function variadic with a NULL-terminated list
80826         of author name strings.
80827         (version_etc_va): New declaration.
80828         * lib/version-etc.c: Include stdarg.h, stdlib.h.
80829         (version_etc_copyright): Declare as readonly.
80830         (version_etc_va): New function. Provide a different translatable string
80831         for each possible number of authors < 10. Abbreviate when there are 10
80832         authors or more.
80833         (version_etc): Make this function variadic. Call version_etc_va.
80834         Suggestion from Gary V. Vaughan.
80835
80836         * lib/long-options.h (parse_long_options): Change prototype: the
80837         authors string is moved to the end and becomes variadic.
80838         * lib/long-options.c: Include stdarg.h.
80839         (parse_long_options): Make this function variadic, too.
80840         Call version_etc_va, not version_etc.
80841
80842 2003-10-06  Bruno Haible  <bruno@clisp.org>
80843
80844         * modules/version-etc-2: Remove file.
80845         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
80846
80847 2003-10-06  Bruno Haible  <bruno@clisp.org>
80848
80849         * modules/fatal-signal: New file.
80850         * MODULES.html.sh (func_all_modules): Add fatal-signal.
80851
80852 2003-10-06  Bruno Haible  <bruno@clisp.org>
80853
80854         * m4/fatal-signal.m4: New file.
80855         * m4/signalblocking.m4: New file, from GNU gettext.
80856
80857 2003-10-06  Bruno Haible  <bruno@clisp.org>
80858
80859         * lib/version-etc-2.h: Remove file.
80860         * lib/version-etc-2.c: Remove file.
80861
80862 2003-10-06  Bruno Haible  <bruno@clisp.org>
80863
80864         * lib/fatal-signal.h: New file, from GNU gettext.
80865         * lib/fatal-signal.c: New file, from GNU gettext.
80866
80867 2003-10-05  Paul Eggert  <eggert@twinsun.com>
80868
80869         * README: Rework advice for preventing empty .o files.
80870         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
80871         not <sys/types.h>.
80872
80873 2003-10-04  Karl Berry  <karl@gnu.org>
80874
80875         * lib/argp*: update from libc.
80876
80877 2003-10-04  Karl Berry  <karl@gnu.org>
80878
80879         * config/config.{guess,sub}: update from config.
80880
80881 2003-10-02  Bruno Haible  <bruno@clisp.org>
80882
80883         * modules/lchown (Include): Add lchown.h.
80884         * modules/time_r (Include): Use "..." syntax.
80885         * modules/xgetdomainname (Include): Add xgetdomainname.h.
80886
80887 2003-10-01  Simon Josefsson  <jas@extundo.com>
80888
80889         * MODULES.html.sh (func_all_modules): Move gethostname from section
80890         'based on' to section 'lacking' POSIX:2001.
80891
80892 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
80893
80894         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
80895         to output mode on the same stream.
80896
80897 2003-09-29  Paul Eggert  <eggert@twinsun.com>
80898
80899         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
80900         Fix arg typo in previous patch.
80901
80902 2003-09-28  Jim Meyering  <jim@meyering.net>
80903
80904         * lib/error.c: Correct cpp indentation.
80905
80906 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80907
80908         * modules/free: New file.
80909
80910 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80911
80912         * m4/free.m4: New file.
80913
80914 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80915
80916         * lib/minmax.h (MIN, MAX)
80917         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
80918         Omit the special code that used __typeof__, since we worry that
80919         it could be more trouble than it's worth.  See:
80920         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
80921         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
80922
80923         * lib/free.c: New file.
80924
80925 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
80926
80927         Trivial fixes to Makefile.am parts of module listings.
80928         * modules/strstr: Append strstr.h to lib_SOURCES.
80929         * modules/strcase: Likewise, for strcase.h.
80930
80931 2003-09-27  Karl Berry  <karl@gnu.org>
80932
80933         * config/mkinstalldirs: update from automake.
80934
80935 2003-09-26  Paul Eggert  <eggert@twinsun.com>
80936
80937         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
80938         (error_tail): Do not loop, reallocating temporary buffer, since
80939         the output cannot contain more wide characters than the input
80940         contains bytes, the size must be big enough already.  This avoids
80941         one potential size overflow calculation.  Check for size overflow
80942         when calculating temporary buffer size.  Free temporary buffer
80943         when done, if it was allocated with malloc; this plugs a memory
80944         leak.  Remove casts from void * to pointers, that are no longer
80945         needed now that we're assuming C89 or better.
80946
80947         Merge error changes from glibc.
80948
80949         * lib/error.c, error.h: Update copyright notice header to match glibc.
80950         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
80951         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
80952         Disable cancellation while printing error.
80953         * lib/error.h: Prepend __ to parameter names.
80954
80955 2003-09-26  Jim Meyering  <jim@meyering.net>
80956
80957         * lib/error.c (error_tail): Move some declarations
80958         into inner scope where the local variables are used.
80959
80960 2003-09-26  Bruno Haible  <bruno@clisp.org>
80961
80962         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
80963         stpncpy().
80964         Don't define stpncpy through config.h; it's now done through stpncpy.h.
80965
80966 2003-09-26  Bruno Haible  <bruno@clisp.org>
80967
80968         * lib/stpncpy.h (gnu_stpncpy): New declaration.
80969         (stpncpy): Define as alias for gnu_stpncpy.
80970         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
80971
80972 2003-09-25  Simon Josefsson  <jas@extundo.com>
80973
80974         * lib/xgetdomainname.h: New file.
80975         * lib/xgetdomainname.c: New file.
80976
80977 2003-09-25  Simon Josefsson  <jas@extundo.com>
80978             Bruno Haible  <bruno@clisp.org>
80979
80980         * modules/getdomainname: New file.
80981         * modules/xgetdomainname: New file.
80982         * MODULES.html.sh (func_all_modules): Add getdomainname,
80983         xgetdomainname.
80984
80985 2003-09-25  Simon Josefsson  <jas@extundo.com>
80986             Bruno Haible  <bruno@clisp.org>
80987
80988         * m4/getdomainname.m4: New file.
80989
80990 2003-09-25  Simon Josefsson  <jas@extundo.com>
80991             Bruno Haible  <bruno@clisp.org>
80992
80993         * lib/getdomainname.h: New file.
80994         * lib/getdomainname.c: New file.
80995
80996 2003-09-25  Karl Berry  <karl@gnu.org>
80997
80998         * lib/argp-fmtstream.c, argp-help.c: update from libc.
80999
81000 2003-09-25  Karl Berry  <karl@gnu.org>
81001
81002         * config/install-sh: update from automake.
81003
81004 2003-09-25  Bruno Haible  <bruno@clisp.org>
81005
81006         * modules/version-etc-2: New file, from modules/version-etc with
81007         modifications.
81008         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81009
81010 2003-09-25  Bruno Haible  <bruno@clisp.org>
81011
81012         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81013         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81014
81015 2003-09-24  Simon Josefsson  <jas@extundo.com>
81016
81017         * modules/xgethostname: Add xgethostname.h.
81018
81019 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81020
81021         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81022         the buffer associated with the argument.  Bug reported by
81023         Simon Josefsson.
81024
81025 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81026
81027         * README: Document assumptions that 'int' is at least 32 bits
81028         wide, that integer arithmetic is 2's complement without overflow,
81029         that there are no holes in integer values, that adding sizes of
81030         two nonoverlapping objects can't overflow, and that all-bits-zero
81031         yields scalar zero.  Fix spelling and capitalization typos.
81032
81033 2003-09-19  Karl Berry  <karl@gnu.org>
81034
81035         * lib/argp.h: update from libc.
81036
81037 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81038
81039         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81040         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81041         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81042
81043 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81044
81045         * gnulib-tool: Use "test -h", not "test -L", for portability
81046         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81047         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81048         (sed_extract_prog): Issue s commands one-by-one, rather than
81049         using \| in one s command.
81050
81051 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81052
81053         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81054         input error, instead of returning NULL the next time we are called
81055         (and therefore losing track of errno).
81056
81057 2003-09-16  Bruno Haible  <bruno@clisp.org>
81058
81059         * gnulib-tool (func_create_testdir): Warn about duplicated
81060         dependencies.
81061
81062 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81063
81064         * modules/argmatch, modules/fatal, modules/obstack,
81065         modules/xalloc, modules/xgethostname: Sort dependencies by
81066         importance, not alphabetically.
81067
81068 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81069
81070         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81071         fails, so that the caller gets the proper errno.
81072
81073         * lib/readutmp.c (read_utmp): Likewise.
81074         Check for fstat error.  Close stream and free storage
81075         when failing.
81076
81077 2003-09-14  Karl Berry  <karl@gnu.org>
81078
81079         * config/srclist.txt (strdup.c): disable for c89 changes.
81080
81081 2003-09-14  Jim Meyering  <jim@meyering.net>
81082
81083         * lib/getloadavg.c: Correct cpp indentation.
81084         * lib/strdup.c: Likewise.
81085         * lib/vasnprintf.c: Likewise.
81086
81087 2003-09-14  Bruno Haible  <bruno@clisp.org>
81088
81089         * modules/fwriteerror: New file.
81090         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81091
81092 2003-09-14  Bruno Haible  <bruno@clisp.org>
81093
81094         * lib/fwriteerror.h: New file.
81095         * lib/fwriteerror.c: New file.
81096
81097 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81098
81099         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81100         modules/xgethostname, modules/xalloc: Depend on exit.
81101
81102 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81103
81104         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81105
81106         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81107         and AC_MINIX, too, so that their extensions are available.
81108
81109         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81110         This macro has been superseded by gl_BACKUPFILE.
81111
81112         More patches to assume C89 or better.
81113
81114         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81115
81116         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81117         unconditionally.
81118         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81119         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81120         Include <string.h>, <stdlib.h> unconditionally.
81121         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81122         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81123         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81124         headers or for string.h.
81125         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81126         or strtoul.
81127
81128         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81129         headers.
81130         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81131         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81132         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81133         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81134         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81135         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81136         memcpy, memset.
81137         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81138         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81139         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81140         strtol.
81141         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81142         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81143         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81144         strtoul.
81145
81146 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81147
81148         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81149         * lib/obstack.c [!defined _LIBC]: Likewise.
81150         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81151         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81152         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81153
81154         More changes to assume C89 or better.
81155
81156         * lib/error.c (error_tail): Assume vprintf.
81157
81158         * lib/argmatch.c (getenv): Remove decl.
81159         * lib/progreloc.c (get_full_program_name): Define via prototype.
81160         * lib/setenv.c (clearenv): Likewise.
81161         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81162         needed.
81163         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81164         (malloc, memcpy): Remove decls.
81165         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81166         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81167         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81168         (memcpy): Remove macro.
81169         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81170         (__P): Remove.  All uses removed.
81171         (PTR): Remove.  All uses changed to void *.
81172         (CHAR_BIT, NULL): Remove.
81173         (spaces, zeros, memset_space, memset_zero)
81174         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81175         Remove.
81176         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81177         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81178         Define with prototype.
81179         Remove now-unnecessary prototype decl.
81180         (extra_args_spec): Assume ANSI C.  All uses changed.
81181         (extra_args_spec_iso): Remove.
81182         (my_strftime, emacs_strftimeu): Define via prototype.
81183         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81184         unconditionally.
81185         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81186         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81187         (strtoul, strtol): Remove decls.
81188         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81189         LONG_MAX): Remove.
81190         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81191         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81192         (LOCALE_PARAM_PROTO): New macro.
81193         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81194         (INTERNAL (strtol), strtol): Define with a prototype.
81195         (PARAMS): Remove.  All uses removed.
81196         * lib/tempname.c: Include <string.h> unconditionally.
81197         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81198         * lib/xgethostname.c (main): Define with a prototype.
81199         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81200         Include <stdlib.h> unconditionally.
81201         (calloc, malloc, realloc, free): Remove decls.
81202         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81203         Include <stdlib.h> unconditionally.  Sort include file names.
81204         (strtod): Remove.
81205         (xstrtod): Define with a prototype.
81206         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81207         (strtol, strtoul): Remove decls.
81208
81209 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81210
81211         More patches to assume C89 or better.
81212         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81213         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81214         string.h, memchr, STDC_HEADERS.
81215
81216 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81217
81218         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81219         Include <stdlib.h>, <string.h> unconditionally.
81220         Remove now-unnecessary cast to char *.
81221         * lib/strnlen.c: Include <string.h> unconditionally.
81222         * lib/yesno.c (yesno): Define with a prototype.
81223
81224 2003-09-11  Bruno Haible  <bruno@clisp.org>
81225
81226         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81227
81228 2003-09-10  Jim Meyering  <jim@meyering.net>
81229
81230         * lib/error.c: Correct indentation of cpp directives.
81231
81232 2003-09-10  Bruno Haible  <bruno@clisp.org>
81233
81234         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81235         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81236         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81237         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81238         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81239         <stdlib.h> and <string.h> checks.
81240         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81241         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81242
81243 2003-09-10  Bruno Haible  <bruno@clisp.org>
81244
81245         * lib/strcspn.c: Include <string.h> unconditionally.
81246         * lib/strpbrk.c: Include <string.h> unconditionally.
81247         * lib/strstr.c: Include <string.h> unconditionally.
81248         * lib/unicodeio.c: Include <string.h> unconditionally.
81249         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
81250         * lib/unsetenv.c: Likewise.
81251         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
81252         * lib/yesno.c: Include <stdlib.h> unconditionally.
81253         (rpmatch): Add prototype.
81254
81255 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81256
81257         More patches to assume C89 or better.
81258         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
81259         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
81260         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
81261         or for string.h.
81262         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
81263         stdlib.h.
81264         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
81265         C headers.
81266         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
81267         string.h.
81268         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
81269         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
81270         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
81271         or for string.h.
81272         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
81273         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
81274         C headers.
81275         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
81276         memcpy.
81277         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
81278         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
81279         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
81280         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
81281         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
81282         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
81283         string.h, free.
81284         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
81285         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
81286         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
81287         C headers, or for string.h.
81288         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
81289         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
81290         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
81291         headers, memory.h, stdlib.h, string.h, strings.h.
81292         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
81293         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
81294         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
81295         strchr.
81296         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
81297         headers, memory.h, string.h.
81298         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
81299         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
81300         free.
81301         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
81302         headers.
81303         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
81304         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
81305         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
81306         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
81307         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
81308
81309 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81310
81311         More K&R removal.
81312
81313         * lib/acosl.c (main): Use a prototype.
81314         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
81315         tanl.c: Likewise.
81316
81317         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
81318
81319         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
81320         (getopt, etopt_long, getopt_long_only, _getopt_internal)
81321         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
81322         with a prototype.
81323         * lib/getopt.c (const): Remove macro.
81324         Include <string.h> unconditionally.
81325         (my_index): Remove; all uses changed to strchr.
81326         (strlen): Remove decl.
81327         (exchange): Remove forward decl; no longer needed.
81328         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
81329         Define with prototype.
81330         * lib/getopt1.c (const): Remove macro.
81331         (getopt_long, getopt_long_only, main): Define with prototype.
81332
81333         * lib/getugroups.c: Include <string.h> unconditionally.
81334
81335         * lib/getusershell.c: Include <stdlib.h> unconditionally.
81336         (getusershell, setusershell, endusershell, readname, main):
81337         Define with prototypes.
81338
81339         * lib/group-member.c: Include group-member.h first.
81340         Include <stdlib.h> unconditionally.
81341
81342         * lib/hard-locale.c: Include hard-locale.h first.
81343         Include <stdlib.h>, <string.h> unconditionally.
81344
81345         * lib/hash.c (free, malloc): Remove decls.
81346         Include <stdlib.h> unconditionally.
81347
81348         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81349         (getenv): Do not declare.
81350
81351         * lib/idcache.c: Include <string.h> unconditionally.
81352
81353         * lib/long-options.c: Include long-options.h first, to test interface.
81354         Include <stdlib.h> unconditionally.
81355
81356         * lib/makepath.c: Include makepath.h first, to test interface.
81357         Include <stdlib.h> and <string.h> unconditionally.
81358
81359         * lib/linebuffer.c: Include <stdlib.h>.
81360         (free): Remove decl.
81361
81362         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81363         stddef.h. rpl_malloc returns void *, not char *.
81364         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81365         prototype.
81366
81367         * lib/md5.h: Include <limits.h> unconditionally.
81368         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81369         (__P): Remove; all uses removed.
81370         * lib/md5.c: Include "md5.h" first.
81371         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81372         md5_buffer, md5_process_bytes, md5_process_block):
81373         Define with prototypes.
81374         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
81375         * lib/sha.c: Include "sha.h" first.
81376         Include <stdlib.h>, <string.h> unconditionally.
81377
81378         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
81379         * lib/memcmp.c (__ptr_t): Likewise.
81380         * lib/memrchr.c (__ptr_t): Likewise.
81381         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
81382         Include <string.h> unconditionally.
81383         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
81384         * lib/memchr.c: Include <stdlib.h> unconditionally.
81385         * lib/memchr.c (LONG_MAX): Remove.
81386         * lib/memrchr.c (LONG_MAX): Likewise.
81387         * lib/memchr.c (__memchr): Define via a prototype.
81388         * lib/memrchr.c (__memrchr): Likewise.
81389         * lib/memcmp.c (__P): Remove, and remove all uses.
81390         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
81391         Remove forward decls; no longer needed.
81392         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
81393         Use types required by C89 in prototype.
81394
81395         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
81396         * lib/savedir.c: Likewise.
81397         * lib/mkdir.c (free): Remove decl.
81398         * lib/rmdir.c (rmdir): Define with a prototype.
81399         * lib/savedir.c: Include savedir.h first, to test interface.
81400
81401         * lib/mktime.c (STDC_HEADERS): Remove.
81402         Include <stdlib.h>, <string.h> unconditionally.
81403
81404         * lib/modechange.c: Include <stdlib.h> unconditionally.
81405         (malloc): Remove decl.
81406
81407         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
81408         (free): Remove decl.
81409
81410         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
81411         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
81412         (This type really should be intptr_t, but that's a C99ism.)
81413         (_obstack_memcpy): Remove: all uses changed to memcpy.
81414         Include <string.h> unconditionally.
81415         (struct obstack): Assume __STDC__ for types of members
81416         chunkfun, freefun, extra_arg.
81417         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
81418         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
81419         obstack_begin, obstack_specify_allocation,
81420         obstack_specify_allocation_with_arg, obstack_chunkfun,
81421         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
81422         Remove unprototyped decls and the macros that use them.
81423         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
81424         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
81425         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
81426         (defined __STDC__ && __STDC__)]:
81427         Remove nonprototyped code.
81428         Include <stdlib.h> unconditionally.
81429         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
81430         _obstack_allocated_p, _obstack_free, obstack_free,
81431         _obstack_memory_used, print_and_abort):
81432         Define using prototypes.
81433         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
81434         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
81435         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
81436         obstack_next_free, obstack_object_size, obstack_room) [0]:
81437         Remove unused, unprototyped code.
81438
81439         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
81440
81441         * lib/physmem.c (physmem_total, physmem_available, main): Define
81442         with prototypes.
81443
81444         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
81445         (main): Define with a prototype.
81446
81447         * lib/posixver.c (getenv): Remove decl.
81448
81449         * lib/putenv.c (malloc): Returns void *, not char *.
81450         Include <string.h> unconditionally.
81451         (strchr, memcpy, NULL): Do not define.
81452
81453         * lib/readtokens.c: Include readtokens.h first, to test interface.
81454         Include <stdlib.h>, <string.h> unconditionally.
81455         (init_tokenbuffer): Define with a prototype.
81456
81457         * lib/regex.c (PARAMS): Remove.  All uses removed.
81458         All uses of _RE_ARGS removed, too.
81459         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81460         unconditionally.
81461         (bzero): Assume memset exists.
81462         (memcmp, memcpy, NULL): Remove.
81463         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
81464         char, or assignments to local vars of type signed char.
81465         (init_syntax_once, PREFIX(extract_number_and_incr),
81466         PREFIX(print_partial_compiled_pattern),
81467         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
81468         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
81469         PREFIX(regex_grow_registers), PREFIX(regex_compile),
81470         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
81471         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
81472         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
81473         wcs_compile_range, byte_compile_range, truncate_wchar,
81474         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
81475         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
81476         count_mbs_length, wcs_re_match_2_internal,
81477         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
81478         PREFIX(alt_match_null_string_p),
81479         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
81480         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
81481         regfree, PREFIX(extract_number)): Define with prototype.  Remove
81482         now-unnecessary declaration, if any.
81483         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
81484         regcomp, regexec):
81485         Remove now-unnecessary casts among pointer types.
81486         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
81487
81488         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
81489         (free): Remove decl.
81490
81491         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
81492
81493         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
81494         (free): Remove decl.
81495
81496         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
81497         * lib/xgetcwd.c: Likewise.
81498
81499         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
81500         (free): Remove decl.
81501
81502         * lib/strchrnul.c (strchrnul): Define with a prototype.
81503         Fix bug: c_in was not converted to char before searching.
81504
81505         The following changes are not K&R related:
81506
81507         * lib/group-member.h: Include <sys/types.h>, so that this file is
81508         self-contained.
81509         * lib/makepath.h: Likewise.
81510
81511         * lib/getusershell.c (readname, default_index, line_size, readname):
81512         Use size_t, not int, for sizes.
81513         (readname): If the size overflows, report an error instead of
81514         looping forever.
81515
81516 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81517
81518         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
81519         libc.
81520
81521 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81522
81523         * README: New section: portability guidelines.
81524
81525 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81526
81527         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
81528         C89 spec.
81529
81530 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81531
81532         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
81533
81534 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81535
81536         Assume C89 or better; remove K&R cruft.
81537         A few of these changes were first proposed by Derek Robert Price
81538         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
81539
81540         * lib/addext.c: Include <string.h> unconditionally.
81541         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
81542         Don't declare getenv or malloc.
81543
81544         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
81545         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
81546         (NULL): Remove.
81547         (find_stack_direction, alloca): Use prototypes.
81548
81549         * lib/atexit.c (atexit): Define using a prototype.
81550
81551         * lib/basename.c, dirname.c, stripslash.c:
81552         Include <string.h> unconditionally.
81553
81554         * lib/bcopy.c: Include <stddef.h>.
81555         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
81556
81557         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
81558
81559         * lib/error.h (error, error_at_line, error_print_progname)
81560         [! (defined (__STDC__) && __STDC__)]: Remove decls.
81561         * lib/error.c: Include error.h first, to check interface.
81562         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81563         (VA_START): Remove; all uses changeed to va_start.
81564         (exit, strerror): Remove decls.
81565         (error_print_progname): Prototype uncondionally.
81566         Don't include <errno.h>; no longer needed.
81567         (private_strerror): Remove.
81568         (error_tail): Always define.
81569         (error, error_at_line): Assume C89 or better; always use prototypes.
81570         * lib/fatal.c: Include "fatal.h" first, to test interface.
81571         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81572         (VA_START): Remove; all uses changed to va_start.
81573         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
81574         this case.
81575         (exit): Remove decl.
81576         (fatal): Prototype unconditionally.  Assume va_start works.
81577         Abort at end, to pacify gcc.
81578
81579         * lib/euidaccess.c (main): Define with a prototype.
81580
81581         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
81582
81583         * lib/exitfail.c: Include <stdlib.h> unconditionally.
81584
81585         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
81586         prototypes.
81587         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
81588         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
81589         (getenv): Remove decl.
81590         (fnmatch): Define using a prototype.
81591         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
81592         (FCT): Define using a prototype.
81593
81594         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
81595
81596         * lib/gethostname.c: Include <stddef.h>.
81597         (gethostname): Define with prototype.  Length is size_t, not int.
81598
81599 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81600
81601         Assume C89 or better; remove K&R cruft.
81602         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
81603         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
81604         string.h, getenv, malloc.
81605         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
81606         headers.
81607         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
81608         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
81609         do not check for strerror.
81610         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
81611         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
81612         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
81613         do not check for doprnt or vprintf.
81614         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
81615         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
81616
81617 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81618
81619         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
81620         getversion.c should have been removed then, but was accidentally
81621         preserved.
81622
81623         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
81624         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
81625
81626 2003-09-08  Karl Berry  <karl@gnu.org>
81627
81628         * config/config.sub, config.guess, srclistvars.sh: update from savannah
81629                 config, forget about prep.
81630
81631         * config/depcomp, missing: update from automake.
81632
81633 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81634
81635         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
81636         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81637
81638 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81639
81640         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
81641         copy_tm_result.  Bug reported by Simon Josefsson in
81642         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81643
81644 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81645
81646         * m4/time_r.m4: New file.
81647         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
81648         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
81649         is. Check for timegm declaration.
81650         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
81651         Do not check for gmtime_r.
81652         Replace mktime if __mktime_internal does not exist and if mktime
81653         hasn't been replaced already.
81654
81655 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81656
81657         * lib/time_r.c, lib/time_r.h: New files.
81658
81659         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
81660         __localtime_r.
81661         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
81662         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
81663
81664         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
81665         __gmtime_r.
81666         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
81667         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
81668         Include <time_r.h>.
81669
81670         * lib/timegm.c: Switch to glibc implementation, with the following
81671         changes:
81672         [defined HAVE_CONFIG_H]: Include <config.h>.
81673         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
81674         (__mktime_internal) [!defined _LIBC]: New decl.
81675         (__gmtime_r) [!defined _LIBC]: New macro and function.
81676         (timegm): Use a prototype, since gnulib assumes C89.
81677         Do not bother declaring tmp to be const, as it's not really usefu.
81678         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
81679         (timegm): Declare only if HAVE_DECL_TIMEGM.
81680
81681 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81682
81683         * MODULES.html.sh (func_all_modules): Add time_r.
81684         * modules/time_r: New file.
81685         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
81686         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
81687
81688 2003-09-03  Paul Eggert  <eggert@twinsun.com>
81689
81690         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
81691         Bug reported by Lute Kamstra in
81692         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
81693
81694         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
81695         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
81696         course with correspondingly smaller numbers for tomorrow and
81697         yesterday.  From Tadayoshi Funaba.  Originally installed into
81698         sh-utils on 1999-08-07, but the patch got lost (I guess during the
81699         coreutils merge?).
81700
81701 2003-08-31  Simon Josefsson  <jas@extundo.com>
81702
81703         * modules/timegm: New file.
81704         * MODULES.html.sh (func_all_modules): Add timegm.
81705
81706 2003-08-31  Simon Josefsson  <jas@extundo.com>
81707
81708         * m4/timegm.m4: New file.
81709
81710 2003-08-31  Simon Josefsson  <jas@extundo.com>
81711
81712         * lib/timegm.h: New file.
81713         * lib/timegm.c: New file.  Based on
81714         wget-1.8.2/src/http.c:mktime_from_utc.
81715
81716 2003-08-31  Karl Berry  <karl@gnu.org>
81717
81718         * lib/argp.h: update from libc.
81719
81720 2003-08-28  Bruno Haible  <bruno@clisp.org>
81721
81722         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
81723         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
81724         followed by '#define fnmatch fnmatch_posix' gives an error.
81725
81726 2003-08-28  Bruno Haible  <bruno@clisp.org>
81727
81728         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
81729         warning on QNX, which defines O_BINARY to 000000.
81730
81731 2003-08-27  Jim Meyering  <jim@meyering.net>
81732
81733         * m4/mkstemp.m4: Require that the system mkstemp be able to create
81734         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
81735         would fail after 32.  Reported by Danny Levinson.  Details here:
81736         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
81737
81738 2003-08-24  Bruno Haible  <bruno@clisp.org>
81739
81740         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
81741         MSVC7 <stdio.h> is included later.
81742
81743 2003-08-22  Simon Josefsson  <jas@extundo.com>
81744
81745         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
81746
81747 2003-08-20  Karl Berry  <karl@gnu.org>
81748
81749         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
81750
81751 2003-08-20  Bruno Haible  <bruno@clisp.org>
81752
81753         * modules/progname: New file.
81754         * MODULES.html.sh (func_all_modules): Add progname.
81755
81756 2003-08-20  Bruno Haible  <bruno@clisp.org>
81757
81758         * lib/progname.h: New file, from GNU gettext.
81759         * lib/progname.c: New file, from GNU gettext.
81760         * lib/progreloc.c: New file, from GNU gettext.
81761
81762 2003-08-19  Jim Meyering  <jim@meyering.net>
81763
81764         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
81765         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
81766
81767 2003-08-19  Bruno Haible  <bruno@clisp.org>
81768
81769         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
81770         more.
81771
81772 2003-08-19  Bruno Haible  <bruno@clisp.org>
81773
81774         * lib/xstrdup.c: Assume <string.h> exists.
81775
81776 2003-08-18  Paul Eggert  <eggert@twinsun.com>
81777
81778         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
81779         in makefile rules.
81780
81781 2003-08-18  Jim Meyering  <jim@meyering.net>
81782
81783         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
81784         * m4/lib-ld.m4: Likewise.
81785
81786 2003-08-18  Jim Meyering  <jim@meyering.net>
81787
81788         * lib/setenv.h: Indent nested cpp directive.
81789         * lib/vasnprintf.c: Remove trailing blanks.
81790
81791 2003-08-17  Simon Josefsson  <jas@extundo.com>
81792
81793         * modules/xstrndup: New file.
81794         * MODULES.html.sh (func_all_modules): Add xstrndup.
81795
81796 2003-08-17  Simon Josefsson  <jas@extundo.com>
81797
81798         * modules/argp: Fix autoconf macro name. Add more dependencies.
81799
81800 2003-08-17  Simon Josefsson  <jas@extundo.com>
81801
81802         * m4/xstrndup.m4: New file.
81803
81804 2003-08-17  Simon Josefsson  <jas@extundo.com>
81805
81806         * m4/argp.m4: New file.
81807
81808 2003-08-17  Simon Josefsson  <jas@extundo.com>
81809             Bruno Haible  <bruno@clisp.org>
81810
81811         * lib/xstrndup.h: New file.
81812         * lib/xstrndup.c: New file.
81813
81814 2003-08-17  Bruno Haible  <bruno@clisp.org>
81815
81816         * modules/strndup (Files, Include): Add lib/strndup.h.
81817
81818 2003-08-17  Bruno Haible  <bruno@clisp.org>
81819
81820         * modules/euidaccess (Files): Add lib/euidaccess.h.
81821
81822 2003-08-17  Bruno Haible  <bruno@clisp.org>
81823
81824         * lib/strndup.h: New file.
81825
81826 2003-08-17  Bruno Haible  <bruno@clisp.org>
81827
81828         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
81829         like AC_GNU_SOURCE.
81830         * modules/extensions (configure.ac): Comment out the invocation of
81831         gl_USE_SYSTEM_EXTENSIONS.
81832
81833 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81834
81835         Merges from coreutils, etc.
81836         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
81837         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
81838         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
81839         fixing a typo.
81840         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
81841         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
81842
81843 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81844
81845         Document merge from coreutils.
81846         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
81847         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
81848         * modules/utime: Add m4/utimes-null.m4.
81849
81850 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81851
81852         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
81853         space, undoing this 2003-08-12 change:
81854         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81855
81856 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81857
81858         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
81859         strtoul.c from libc, undoing this 2003-08-12 change:
81860         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81861
81862 2003-08-16  Jim Meyering  <jim@meyering.net>
81863
81864         Merges from coreutils.
81865         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
81866         prefix.  Adjust cache variables similarly.  Create 500 rather than
81867         just 300 files, to exercise bug on Darwin6.5, too.
81868         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
81869         $missing_dir.
81870         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
81871         AM_SYS_POSIX_TERMIOS.
81872         Reported by mkc@mathdogs.com.
81873         Also change use of $am_cv_sys_posix_termios
81874         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
81875         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
81876         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
81877         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
81878         in /proc/mounts until it finds one with matching device number.  This
81879         is unnecessary when the FILE argument *is* a mount point.  No stat call
81880         is necessary in that case.  So, disable the statvfs-testing code on
81881         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
81882         as RedHat bug# 84846.
81883         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81884         to 1MB, so as not to render systems with no stack size limit (e.g.,
81885         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81886         Include <unistd.h>.  On some systems,
81887         it is required for the definition of _SC_PAGESIZE.
81888
81889 2003-08-16  Jim Meyering  <jim@meyering.net>
81890
81891         Merge from coreutils.
81892         * lib/xstrtoimax.c: #else #if -> #elif.
81893         * lib/xstrtoumax.c: Likewise.
81894
81895 2003-08-16  Jim Meyering  <jim@meyering.net>
81896
81897         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
81898         * m4/utimes.m4: Removed.
81899         * m4/utimes-null.m4: Renamed from utimes.m4.
81900
81901         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81902         to 1MB, so as not to render systems with no stack size limit (e.g.,
81903         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81904         Include <unistd.h>.  On some systems,
81905         it is required for the definition of _SC_PAGESIZE.
81906
81907 2003-08-16  Jim Meyering  <jim@meyering.net>
81908         and Paul Eggert  <eggert@cs.ucla.edu>
81909
81910         Merges from coreutils, etc.
81911
81912         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
81913         using the latest version from cvs.  This avoids problems with #line
81914         directives using a vendor (Sun) compiler.
81915         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
81916         Don't set GETGROUPS_LIB here; now it's
81917         done via getgroups.m4's wrapper function.
81918         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
81919         rather than just in sh-util/configure.in, so that the
81920         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
81921         same.
81922         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
81923         AC_FUNC_GETLOADAVG where to find getloadavg.c.
81924         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
81925         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
81926         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
81927         Remove code that is now done by the newly-required macros.
81928         Append $(EXEEXT) to DF_PROG.
81929         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
81930         Do not invoke or require the following here,
81931         since prereq.m4 or some gnulib .m4 now does this for us:
81932         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
81933         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
81934         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
81935         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
81936         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
81937         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
81938         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
81939         AC_FUNC_OBSTACK.
81940         Do not replace the following functions, as this is now the job
81941         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
81942         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
81943         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
81944         atexit getpass, strdup, getpagesize.
81945         Replace 'raise'.
81946         Do not check for the following functions, as this is now the job
81947         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
81948         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
81949         setregid.
81950         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
81951         Check for sys/sysctl.h.
81952         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
81953         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
81954         of checking for ssize_t ourselves.
81955
81956         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
81957         Require every macro that gnulib/modules/* suggests for us.
81958         (jm_PREREQ_ADDEXT): New macro.
81959         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
81960         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
81961
81962         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
81963         (gl_PHYSMEM): Use it.
81964         Also check for `table' function.
81965         Check for new headers and functions.
81966         Add check for sys/sysmp.h.
81967         With suggestions from Kaveh Ghazi.
81968         Ignore headers that are present but cannot be compiled.  This
81969         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
81970         C 5.4.
81971
81972 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81973
81974         Document merge from coreutils.
81975         * modules/userspec: Depend on posixver.
81976         * modules/strftime: Depend on tzset.
81977
81978 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81979
81980         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
81981         rather than tab, after '#' in shell-script copyright notices.
81982         Suggested by Bruno Haible.
81983
81984 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81985
81986         * config/srclist-update: Use three spaces, rather than tab, after '#'
81987         in shell-script copyright notices.  Suggested by Bruno Haible.
81988         Remove unnecessary parenthesization in regular expression.
81989
81990 2003-08-15  Jim Meyering  <jim@meyering.net>
81991
81992         Merge from coreutils.
81993         * lib/xgethostname.c: Include <stdlib.h>.
81994         (xghostname): Don't exit for anything other than memory-related
81995         failure; just return NULL.
81996         * lib/userspec.c: Include "posixver.h".
81997         (parse_user_spec): Accept `.' as a separator only
81998         in pre-POSIX-200112 mode.
81999         * lib/strtoimax.c: Use #elif rather than #else #if.
82000         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82001         Remove function, now that we can rely on a working tzset function.
82002         [!_LIBC]: Ensure that the required autoconf test has been run.
82003         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82004         Use underlying_strftime for %r.
82005         * lib/sha.c: Merge in some clean-up and optimization changes from
82006         glibc.
82007         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82008         Ensure that it is a multiple of 64.
82009         Rearrange loop exit tests so as to avoid performing an
82010         additional fread after encountering an error or EOF.
82011         * lib/realloc.c: Update copyright date.
82012
82013 2003-08-15  Jim Meyering  <jim@meyering.net>
82014         and Paul Eggert  <eggert@twinsun.com>
82015
82016         Merge from coreutils.
82017         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82018         member but strut utmpx does not.  Needed for AIX 4.3.3.
82019         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82020
82021 2003-08-15  Jim Meyering  <jim@meyering.net>
82022         and Paul Eggert  <eggert@cs.ucla.edu>
82023
82024         Merges from coreutils, etc.
82025         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82026         Require gl_FUNC_TZSET_CLOBBER.
82027         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82028         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82029         members.
82030
82031 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82032
82033         Help the merge from coreutils.
82034         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82035         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82036         * m4/tzset.m4: Use it too.
82037
82038 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82039
82040         * modules/tzset: New file.
82041
82042 2003-08-14  Jim Meyering  <jim@meyering.net>
82043
82044         Merges from coreutils.
82045         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82046         variable names, rather than @FNMATCH_H@.
82047         * modules/alloca: Likewise for $(ALLOCA_H).
82048
82049         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82050         the three copies of the literal target, `fnmatch.h'.
82051         * modules/alloca (alloca.h): Likewise.
82052
82053 2003-08-14  Jim Meyering  <jim@meyering.net>
82054
82055         Merge from coreutils.
82056         * m4/tzset.m4: New file.
82057         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82058         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82059         otherwise, AIX 5.1 systems would end up using the latter.
82060         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82061         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82062         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82063         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82064
82065 2003-08-14  Jim Meyering  <jim@meyering.net>
82066
82067         Merge from coreutils.
82068         * lib/obstack.h: Whitespace changes.
82069         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82070         and xcalloc return values.
82071         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82072         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82073         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82074         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82075         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82076         error from mntctl.
82077         Use mntctl's return value to drive the entry-processing loop, since
82078         we can't rely on the value of the vmt_length member in the last
82079         entry.  On some systems doing so could result in exhausting
82080         virtual memory.  Based in part on a patch from Mike Jetzer.
82081
82082 2003-08-14  Jim Meyering  <jim@meyering.net>
82083         and Paul Eggert  <eggert@twinsun.com>
82084
82085         Merges from coreutils, plus other fixes.
82086         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82087         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82088         for credits and details.  Thanks to Kaveh Ghazi for helping
82089         to keep these files in sync.
82090         (ARRAY_SIZE): Define it.
82091         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82092         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82093         (memcasecmp): Don't assume size_t fits in unsigned int.
82094         Remove casts and duplicate code.
82095         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82096         (memcpy): Remove definition.
82097         Merge in some clean-up and optimization changes from glibc.
82098         [BLOCKSIZE]: Move definition to top of file.
82099         Ensure that it is a multiple of 64.
82100         Rearrange loop exit tests so as to avoid performing an
82101         additional fread after encountering an error or EOF.
82102         * lib/md5.h (md5_uintptr): Define.
82103         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82104         return to the initial working directory.  Preserve errno
82105         for caller.
82106         * lib/idcache.c: Include "xalloc.h".
82107         (xmalloc, xrealloc): Remove decls.
82108         (getuser): Remove casts no longer required in C89.
82109         * lib/human.c: Include stdio.h, for sprintf.
82110         * lib/group-member.c: Include "xalloc.h".
82111         (xmalloc, xrealloc): Remove decls.
82112         (get_group_info): Remove casts no longer required in C89.
82113         * lib/getusershell.c (readname): Remove casts no longer required in
82114         C89.
82115         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82116         * lib/getline.c: Whitespace fix, from coreutils.
82117
82118 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82119
82120         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82121         Check for isascii.
82122
82123         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82124         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82125         Undo previous (whitespace-only) change.
82126
82127 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82128
82129         * lib/exclude.c: Include <ctype.h>
82130         (IN_CTYPE_DOMAIN): New macro.
82131         (is_space): New fn.
82132         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82133         and empty lines.
82134
82135         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82136         Undo previous (whitespace-only) change.
82137
82138 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82139
82140         * config/srclist-update: Change update back to the old behavior,
82141         leaving whitespace alone.  Use one 'sed' command rather than a
82142         pipeline.
82143         (fixlicense): Now a variable, not a function.
82144         (remove_trailing_blanks): Remove.
82145         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82146         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82147         Undo previous (whitespace-only) change.
82148
82149 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82150
82151         Merge from coreutils.
82152         * modules/euidaccess: Add lib_SOURCES, include for new
82153         file euidaccess.h
82154
82155 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82156
82157         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82158         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82159         Normalize leading white space and remove trailing white space.
82160
82161         Merge from coreutils
82162         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82163
82164         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82165         0.12.1.  These files are now being upgraded automatically by
82166         ../config/srclist-update.
82167
82168 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82169
82170         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82171         Normalize leading white space and remove trailing white space.
82172         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82173         notice, as per ../config/srclist-update.
82174
82175         Merge from coreutils.
82176         * lib/euidaccess.h: New file.
82177         * lib/euidaccess.c: Include it.
82178         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82179         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82180         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82181
82182 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82183
82184         * config/srclist-update: Add copyright notice.
82185         (remove_id_lines, remove_trailing_blanks): New constants.
82186         (fixfile): Use them to normalize spacing a bit in copied files.
82187         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82188         Normalize leading white space and remove trailing white space.
82189
82190         * config/texinfo.tex: Sync with texinfo.
82191
82192         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82193         strtoul.c from libc, to merge coreutils whitespace changes.
82194
82195         * config/srclist.txt: Get the following m4 files from gettext:
82196         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82197         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82198         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82199         wint_t.m4.
82200
82201 2003-08-12  Karl Berry  <karl@gnu.org>
82202
82203         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82204         been made.
82205
82206 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82207
82208         * modules/gnu-source, m4/gnu-source.m4:
82209         Remove; we're assuming Autoconf 2.54 or later now.
82210         Suggested by Bruno Haible.
82211         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82212
82213 2003-08-11  Bruno Haible  <bruno@clisp.org>
82214
82215         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82216
82217 2003-08-11  Bruno Haible  <bruno@clisp.org>
82218
82219         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82220         (vasnprintf): Use it instead of wcslen.
82221
82222 2003-08-11  Bruno Haible  <bruno@clisp.org>
82223
82224         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82225         value to ensure that _Bool promotes to int. Use #define for _Bool when
82226         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82227
82228 2003-08-10  Karl Berry  <karl@gnu.org>
82229
82230         * lib/regex.h: update from libc (whitespace fix).
82231
82232 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82233
82234         Merge some files from coreutils.  These changes were
82235         originally made by Jim Meyering.
82236         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82237         many older Unixes require this.
82238         * lib/alloca.c (alloca): Remove cast to argument of free;
82239         no longer needed in C89.
82240         * lib/alloca_.h, regex.h: Fix white space to match
82241         what GNU indent does.
82242
82243 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82244
82245         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
82246         apparently Emacs's Unicode mode got confused before my 2003-08-05
82247         checkin.
82248
82249 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82250
82251         * m4/extensions.m4: New file.
82252         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
82253         Require gl_USE_SYSTEM_EXTENSIONS.
82254         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
82255         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
82256
82257 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82258
82259         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
82260         * modules/extensions, modules/gnu-source: New files.
82261         * modules/timespec, modules/unlocked-io: Depend on extensions.
82262
82263 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82264
82265         * modules/restrict: New file.
82266         * MODULES.html.sh (func_all_modules): Add restrict.
82267         * modules/regex: Depend on restrict.
82268
82269 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82270
82271         * m4/restrict.m4: New file.
82272         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
82273
82274 2003-08-07  Bruno Haible  <bruno@clisp.org>
82275
82276         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
82277         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
82278
82279 2003-08-07  Bruno Haible  <bruno@clisp.org>
82280
82281         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
82282         makes the module 'getndelim2' compatible with the module 'getline'.
82283
82284 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82285
82286         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
82287         byte with "\201" to avoid glitches when editing that source file
82288         with multi-gnome-terminal.
82289
82290 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82291
82292         * lib/bumpalloc.h: Remove.
82293
82294 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82295
82296         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
82297         * modules/bumpalloc: Remove.
82298
82299 2003-08-04  Paul Eggert  <eggert@twinsun.com>
82300
82301         * lib/getloadavg.c: Change copyright notice and spacing to conform to
82302         GNU coding style.
82303
82304         Merge from coreutils.
82305         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
82306         1. From glibc.
82307         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
82308         from Karl Berry, implemented by Jim Meyering.
82309         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
82310         from Dmitry V. Levin.
82311         Remove anachronistic cast of xrealloc.
82312         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
82313         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
82314         type. Otherwise, it wouldn't compile with at least /bin/cc on
82315         ymp-cray-unicos9.0.2.X.
82316         Combine two mostly-identical uses of alloca into one.
82317         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
82318
82319 2003-08-04  Dave Love  <d.love@dl.ac.uk>
82320
82321         [From Emacs.]
82322
82323         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
82324         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
82325         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
82326         obsolete NLIST_NAME_UNION.
82327         [__GNU__]: Undef BSD and FSCALE.
82328         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
82329
82330 2003-08-03  Paul Eggert  <eggert@twinsun.com>
82331
82332         * lib/stdbool_.h (_Bool): Make it signed char, instead of
82333         an enum type, so that it's guaranteed to promote to int.  See:
82334         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
82335
82336 2003-08-03  Karl Berry  <karl@gnu.org>
82337
82338         * config/depcomp: update from automake.
82339
82340 2003-07-31  Paul Eggert  <eggert@twinsun.com>
82341
82342         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
82343         (strerror): Don't assume that a printable int fits in 14 bytes.
82344
82345 2003-07-31  Bruno Haible  <bruno@clisp.org>
82346
82347         * modules/getpass-gnu: New file.
82348         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82349
82350 2003-07-31  Bruno Haible  <bruno@clisp.org>
82351
82352         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82353
82354 2003-07-24  Karl Berry  <karl@gnu.org>
82355
82356         * config/missing: update from automake.
82357
82358 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82359             Bruno Haible  <bruno@clisp.org>
82360
82361         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82362         * lib/getline.c (getline, getdelim): Likewise.
82363         Remove _GNU_SOURCE define; now it's defined in config.h through
82364         m4/getline.m4.
82365
82366 2003-07-23  Karl Berry  <karl@gnu.org>
82367
82368         * config/config.sub: update from prep.
82369
82370 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82371
82372         * modules/xalloc (Depends-on): Add exitfail.
82373         * modules/xmemcoll: Likewise.
82374
82375 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82376
82377         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
82378         over-parenthesization in macros.
82379
82380         Sync with coreutils.
82381
82382         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
82383         required by C99.
82384
82385         Use `exit_failure' for xalloc and xmemcoll instead of their own
82386         private exit-failure variables.
82387         * lib/xalloc.h (xalloc_exit_failure): Remove.
82388         * lib/xmalloc.c: Likewise.  Include exitfail.h.
82389         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
82390         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
82391         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
82392         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
82393
82394 2003-07-20  Jim Meyering  <jim@meyering.net>
82395
82396         * modules/closeout (Depends-on): Add exitfail.
82397         Suggestion from Bruno Haible.
82398
82399 2003-07-19  Karl Berry  <karl@gnu.org>
82400
82401         * config/config.sub: update from prep.
82402
82403 2003-07-18  Paul Eggert  <eggert@twinsun.com>
82404
82405         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
82406         Remove.
82407         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
82408         to test that it can stand by itself.  Include "exitfail.h".
82409         Clients should set exit_failure instead.
82410         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
82411
82412 2003-07-18  Bruno Haible  <bruno@clisp.org>
82413
82414         * modules/getndelim2: New file.
82415         * modules/getline: Share files with module getndelim2.
82416         * modules/getnline: Depend on getndelim2 instead of sharing files with
82417         it. Add getnline.c to lib_SOURCES.
82418         * MODULES.html.sh (func_all_modules): Add getndelim2.
82419
82420 2003-07-18  Bruno Haible  <bruno@clisp.org>
82421
82422         * m4/getndelim2.m4: New file.
82423         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
82424         invoke gl_PREREQ_GETNDELIM2.
82425         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
82426         gl_PREREQ_GETNDELIM2.
82427         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
82428         gl_GETNDELIM2.
82429
82430 2003-07-18  Bruno Haible  <bruno@clisp.org>
82431
82432         * lib/getndelim2.h: New file.
82433         * lib/getndelim2.c: Make into a module of its own. Include config.h,
82434         getndelim2.h.
82435         (getndelim2): Make non-static. Change return type to ssize_t.
82436         * lib/getline.h: Change argument names.
82437         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
82438         * lib/getnline.c: Include getndelim2.h.
82439
82440 2003-07-18  Andreas Schwab  <schwab@suse.de>
82441
82442         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
82443
82444 2003-07-17  Karl Berry  <karl@gnu.org>
82445
82446         * config/config.sub: update from prep.
82447
82448 2003-07-17  Bruno Haible  <bruno@clisp.org>
82449
82450         * modules/getnline: New file.
82451         * modules/getline: Add lib/getndelim2.c to source file list.
82452         * MODULES.html.sh (func_all_modules): Add getnline.
82453
82454 2003-07-17  Bruno Haible  <bruno@clisp.org>
82455
82456         * m4/getnline.m4: New file.
82457
82458 2003-07-17  Bruno Haible  <bruno@clisp.org>
82459
82460         * m4/Makefile.am.in: Remove file.
82461         * m4/Makefile.am: Remove file.
82462         * m4/Makefile.in: Remove file.
82463
82464 2003-07-17  Bruno Haible  <bruno@clisp.org>
82465
82466         * lib/getnline.h: New file.
82467         * lib/getnline.c: New file.
82468         * lib/getndelim2.c: New file, extracted from getline.c.
82469         (getndelim2): Renamed from getdelim2, with added nmax argument.
82470         * lib/getline.c: Include getndelim2.c.
82471         (getdelim2): Moved out to getndelim2.c.
82472         (getline, getdelim): Update.
82473
82474 2003-07-17  Bruno Haible  <bruno@clisp.org>
82475
82476         * lib/Makefile.am: Remove file.
82477         * lib/Makefile.in: Remove file.
82478
82479 2003-07-17  Bruno Haible  <bruno@clisp.org>
82480
82481         * configure.in: Remove file.
82482         * Makefile.in: Remove file.
82483
82484 2003-07-17  Bruno Haible  <bruno@clisp.org>
82485
82486         * MODULES.html.sh: Put the </BODY> right before </HTML>.
82487
82488 2003-07-16  Karl Berry  <karl@gnu.org>
82489
82490         * config/srclist-update: was running fixlicense twice, which caused
82491                 texinfo.tex to be nullified for some reason.  Simplify,
82492                 $gplsrc is no longer needed as far as I can see?
82493
82494 2003-07-16  Jim Meyering  <jim@meyering.net>
82495
82496         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
82497
82498 2003-07-15  Paul Eggert  <eggert@twinsun.com>
82499
82500         * config/srclist.txt: Get the following files from gettext-runtime/intl
82501         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
82502         ref-del.sin.  From Bruno Haible.
82503         * config/srclist-update (fixfile): Change grep pattern again, since the
82504         previous fix didn't work (there was another trailing $).  Use
82505         '[$]' to escape the $s.
82506
82507 2003-07-15  Karl Berry  <karl@gnu.org>
82508
82509         * lib/vasnprintf.c: update from gettext.
82510
82511 2003-07-15  Karl Berry  <karl@gnu.org>
82512
82513         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
82514         gets expanded when surrounded by '$'.
82515
82516 2003-07-15  Jim Meyering  <jim@meyering.net>
82517
82518         * modules/save-cwd: Don't depend on error.  From Derek Price.
82519
82520 2003-07-15  Jim Meyering  <jim@meyering.net>
82521
82522         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
82523
82524 2003-07-14  Simon Josefsson  <jas@extundo.com>
82525
82526         * modules/mempcpy: New file.
82527         * MODULES.html.sh (func_all_modules): Add mempcpy.
82528
82529 2003-07-14  Simon Josefsson  <jas@extundo.com>
82530
82531         * m4/mempcpy.m4: New file.
82532
82533 2003-07-14  Simon Josefsson  <jas@extundo.com>
82534
82535         * lib/mempcpy.h: New file.
82536         * lib/mempcpy.c: New file.
82537
82538 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82539
82540         * modules/getdate, modules/posixtm: Depend on mktime.
82541
82542 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82543
82544         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
82545         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
82546         unicodeio.c, unicodeio.h, unlocked-io.h:
82547         Switch from LGPL to GPL.
82548
82549 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82550
82551         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
82552         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
82553         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
82554         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
82555         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
82556         updated automatically by ../config/srclist-update.  This changes
82557         their license from LPGL to GPL.
82558
82559 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82560
82561         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
82562         assumed to refer to the root of the most recent stable gettext version.
82563         * config/srclistvars.sh: Add defaults for eggert.
82564         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
82565         Match "This program" as well as "The program".  This is needed
82566         for gettext.
82567
82568 2003-07-14  Jim Meyering  <jim@meyering.net>
82569
82570         Don't emit diagnostics.  Let callers do that.
82571         * lib/save-cwd.c: Don't include "error.h".
82572         (save_cwd): Don't call error.  Ensure that errno is valid
82573         when returning nonzero.
82574
82575         * lib/save-cwd.h (restore_cwd): Update prototype.
82576         * lib/save-cwd.c (restore_cwd): Remove two parameters.
82577         Simplify.  Don't call error upon failure.  Let callers do that.
82578         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
82579         when auditing is enabled.  But don't bother updating the #if.
82580
82581 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
82582
82583         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
82584         it breaks C++ compilation.
82585         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
82586
82587 2003-07-10  Simon Josefsson  <jas@extundo.com>
82588
82589         * modules/strchrnul (Makefile.am): Add strchrnul.h.
82590
82591 2003-07-10  Jim Meyering  <jim@meyering.net>
82592
82593         * m4/clock_time.m4: Remove trailing blank.
82594         * m4/intmax_t.m4: Likewise.
82595
82596 2003-07-10  Jim Meyering  <jim@meyering.net>
82597
82598         * lib/vasnprintf.c: Remove trailing blanks.
82599         Make cpp indentation consistent.
82600
82601 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82602
82603         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
82604         posixver.c, strftime.c, strnlen.c, strverscmp.c:
82605         Switch from LGPL to GPL.
82606
82607 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82608
82609         * config/srclist.txt: Sort sublists.  Add
82610         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
82611         that differ from gnulib for one reason or another; we'd like this list
82612         to be smaller but for now let's document what we have.
82613
82614 2003-07-08  Paul Eggert  <eggert@twinsun.com>
82615
82616         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
82617         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
82618         and sweeter "eval x=$x".
82619         * config/srclist.txt: Get lib/argp* from glibc.
82620
82621 2003-07-07  Paul Eggert  <eggert@twinsun.com>
82622
82623         * lib/mktime.c: Fix some boundary cases and remove need for floating
82624         point.
82625
82626         Issue a compile-time diagnostic if time_t is floating point, or if
82627         two's complement arithmetic is not in effect, or if arithmetic
82628         right shift does not propagate the sign.  These assumptions were
82629         all in the original code but they weren't checked.
82630
82631         (TIME_T_MIDPOINT, verify): New macros.
82632         (__isleap): Remove; it has integer overflow problems.
82633         (leapyear): New function, without those problems.
82634         (ydhms_tm_diff): Remove; splitting into two parts.
82635         (ydhms_diff): New function, containing the arithmetic part of
82636         the old ydhms_tm_diff function.  Issue a compile-time
82637         diagnostic if we are not using C99 integer division.
82638         Avoid casts when possible.
82639         (guess_time_tm): New function, containing the checking part of
82640         the old ydhms_tm_diff function.  Return the new value, rather than
82641         the difference between it and the old.  Accept a new argument T
82642         so that *T specifies the old value.  Check for overflow in the result.
82643
82644         (__mktime_internal): Use a time_t offset, not a long int offset.
82645         This undoes the 2003-06-04 change, which is no longer needed now
82646         that we have better overflow checking.
82647         (localtime_offset): Likewise.
82648
82649         (__mktime_internal): Avoid harmful overflow on hosts where time_t
82650         and long are 64-bit but int is only 32-bit.
82651         (ydhms_diff): Use long int to store year1 and yday1.
82652         Issue a compile-time diagnostic if long int is not wide enough.
82653
82654         (__mktime_internal): Use long int to store adjusted year and yday.
82655         Use plain C rather than preprocessor commands, if that doesn't
82656         affect efficiency.
82657         Check for overflow (and try to repair) after each probe
82658         rather than checking only at the very end.  This avoids some bugs
82659         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
82660         does not equal GMT offset at maximum time).
82661         Use integer to check for overflow rather than floating point; this
82662         is more portable to non-IEEE hosts, and is a tad faster.
82663         When we detect that we are oscillating between two values,
82664         don't check whether tm_isdst has the requested value, since
82665         we already know the answer.  When tm_isdst has the wrong value,
82666         use a different heuristic to find the right one, based on the
82667         extreme values actually observed in practice in tz2003a,
82668         rather than the (overly optimistic) "previous 3 calendar quarters".
82669
82670         (not_equal_tm, print_tm, check_result): Use "const T" rather than
82671         "T const" to accommodate glibc style.
82672         (check_result): Use less-confusing report format.  "long" -> "long int.
82673         (main): Likewise.
82674         Don't loop if the iteration overflows time_t.
82675         Allow a negative step in the iteration.
82676
82677 2003-07-06  Karl Berry  <karl@gnu.org>
82678
82679         * config/depcomp: update from automake.
82680         * config/config.sub: update from prep.
82681
82682 2003-07-03  Karl Berry  <karl@gnu.org>
82683
82684         * config/config.guess: update from prep.
82685
82686 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82687
82688         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
82689         xreadlink.c now includes it unconditionally.
82690
82691 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82692
82693         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
82694         having it depend on HAVE_SYS_TYPES_H.
82695
82696 2003-07-01  Bruno Haible  <bruno@clisp.org>
82697
82698         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
82699         <sys/types.h> should be sufficient.
82700         Reported by Paul Eggert.
82701
82702 2003-06-26  Karl Berry  <karl@gnu.org>
82703
82704         * config/depcomp: update from automake.
82705
82706 2003-06-26  Bruno Haible  <bruno@clisp.org>
82707
82708         * modules/human: Depend on module stdbool.
82709
82710 2003-06-25  Bruno Haible  <bruno@clisp.org>
82711
82712         * modules/readlink: New file.
82713         * modules/xreadlink: Depend on it.
82714         * MODULES.html.sh (func_all_modules): Add readlink.
82715
82716 2003-06-25  Bruno Haible  <bruno@clisp.org>
82717
82718         * m4/readlink.m4: New file.
82719
82720 2003-06-25  Bruno Haible  <bruno@clisp.org>
82721
82722         * lib/readlink.c: New file.
82723
82724 2003-06-22  Karl Berry  <karl@gnu.org>
82725
82726         * config/srclist.txt: update mkinstalldirs from automake.
82727         * config/mkinstalldirs: update.
82728
82729 2003-06-22  Bruno Haible  <bruno@clisp.org>
82730
82731         Portability to mingw32.
82732         * m4/ssize_t.m4: New file, from GNU gettext.
82733         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
82734         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
82735
82736 2003-06-22  Bruno Haible  <bruno@clisp.org>
82737
82738         * modules/safe-read: Add m4/ssize_t.m4.
82739         * modules/xreadlink: Add m4/ssize_t.m4.
82740
82741 2003-06-20  Bruno Haible  <bruno@clisp.org>
82742
82743         Assume C89, so PARAMS isn't needed.
82744         * lib/unicodeio.h (PARAMS): Remove.
82745         * lib/unicodeio.c: Don't use PARAMS.
82746
82747 2003-06-18  Karl Berry  <karl@gnu.org>
82748
82749         * config/config.{guess,sub}: update from prep.
82750
82751 2003-06-18  Jim Meyering  <jim@meyering.net>
82752
82753         Merge changes from coreutils.
82754         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
82755         Remove explicit declarations of xmalloc and realloc.
82756         Include xalloc.h.
82757         (read_utmp): Remove anachronistic cast of xmalloc.
82758
82759 2003-06-17  Paul Eggert  <eggert@twinsun.com>
82760
82761         Assume C89, so PARAMS isn't needed.
82762         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
82763         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
82764         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
82765         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
82766         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
82767         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
82768         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
82769         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
82770         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
82771         lib/xstrtod.h, lib/xstrtol.h: Likewise.
82772         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
82773         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
82774         no longer needed. Anyway, config.h should always be included before any
82775         other file.
82776
82777 2003-06-11  Simon Josefsson  <jas@extundo.com>
82778
82779         * modules/sysexits: New file.
82780         * MODULES.html.sh (func_all_modules): Add sysexits.
82781
82782 2003-06-11  Simon Josefsson  <jas@extundo.com>
82783
82784         * lib/sysexit_.h: New file.
82785
82786 2003-06-11  Derek Price  <derek@ximbiot.com>
82787
82788         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
82789         necessary.
82790
82791 2003-06-11  Bruno Haible  <bruno@clisp.org>
82792
82793         * m4/sysexits.m4: New file.
82794
82795 2003-06-10  Simon Josefsson  <jas@extundo.com>
82796
82797         * lib/argp.h: New file, from glibc.
82798         * lib/argp-ba.c: New file, from glibc.
82799         * lib/argp-eexst.c: New file, from glibc.
82800         * lib/argp-fmtstream.c: New file, from glibc.
82801         * lib/argp-fmtstream.h: New file, from glibc.
82802         * lib/argp-fs-xinl.c: New file, from glibc.
82803         * lib/argp-help.c: New file, from glibc.
82804         * lib/argp-namefrob.h: New file, from glibc.
82805         * lib/argp-parse.c: New file, from glibc.
82806         * lib/argp-pv.c: New file, from glibc.
82807         * lib/argp-pvh.c: New file, from glibc.
82808         * lib/argp-xinl.c: New file, from glibc.
82809
82810 2003-06-10  Simon Josefsson  <jas@extundo.com>
82811
82812         * modules/strchrnul: New file.
82813
82814 2003-06-10  Simon Josefsson  <jas@extundo.com>
82815
82816         * modules/argp: New file.
82817
82818 2003-06-10  Simon Josefsson  <jas@extundo.com>
82819
82820         * m4/strchrnul.m4: New file.
82821
82822 2003-06-10  Simon Josefsson  <jas@extundo.com>
82823
82824         * lib/strchrnul.h: New file.
82825         * lib/strchrnul.c: New file.
82826
82827 2003-06-10  Bruno Haible  <bruno@clisp.org>
82828
82829         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
82830
82831 2003-06-07  Karl Berry  <karl@gnu.org>
82832
82833         * config/config.{guess,sub}: update from prep.
82834
82835 2003-06-07  Jim Meyering  <jim@meyering.net>
82836
82837         * modules/strtod: Use $(...) notation, not @...@ for
82838         AC_REPLACE'd variables.
82839         * modules/localcharset: Likewise.
82840
82841 2003-06-07  Jim Meyering  <jim@meyering.net>
82842
82843         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
82844         in place of my name in the copyright comment.
82845         Remove definition and uses of __P.
82846
82847         From coreutils.
82848         * lib/stat.c: Don't declare xmalloc explicitly.
82849         Instead, include "xalloc.h".
82850         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
82851         xrealloc, and xcalloc return values.
82852         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
82853         Improve comment.
82854         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
82855
82856 2003-06-07  Bruno Haible  <bruno@clisp.org>
82857
82858         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
82859         avoid AC_CONFIG_LINKS.
82860         * modules/fnmatch (Makefile.am): Use explicit creation rule for
82861         fnmatch.h, to avoid AC_CONFIG_LINKS.
82862         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
82863
82864 2003-06-07  Bruno Haible  <bruno@clisp.org>
82865
82866         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
82867         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
82868         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82869         directory.
82870         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
82871         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82872         directory.
82873
82874 2003-06-06  Jim Meyering  <jim@meyering.net>
82875
82876         Merge from coreutils.
82877         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
82878         Consolidate declarations and initializations of *_base* locals.
82879
82880         Merge from coreutils.
82881         This avoids a core dump on systems without GNU putenv,
82882         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
82883         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
82884         (unsetenv): New static function, from GNU libc.
82885         (rpl_putenv): Use it.
82886
82887         * lib/modechange.c: Remove trailing blanks.
82888
82889         Merge from coreutils.
82890         * lib/fsusage.c: Remove declaration of statfs.
82891         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
82892
82893         * lib/posixtm.c: Include <stdbool.h> unconditionally.
82894
82895 2003-06-06  Jim Meyering  <jim@meyering.net>
82896
82897         * lib/stdbool_.h: Renamed from stdbool.h.in.
82898
82899 2003-06-06  Jim Meyering  <jim@meyering.net>
82900             Bruno Haible  <bruno@clisp.org>
82901
82902         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
82903         Adjust Makefile.am snippet not to redirect directly to target.
82904         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
82905
82906 2003-06-05  Paul Eggert  <eggert@twinsun.com>
82907
82908         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
82909         mismatch, look in future quarters as well as past.  This fixes a
82910         bug when processing fall-backwards gaps immediately after a long
82911         period of daylight-saving time.
82912
82913         * lib/mktime.c: Assume freestanding C89 or better.
82914         (HAVE_LIMITS_H): Remove.  Assume it's 1.
82915         (__P): Remove; not used.
82916         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
82917         (mktime, not_equal_tm, print_tm, check_result,
82918         main): Use prototypes.  Use const * where appropriate.
82919         (main): Fix typo in testing code that uncovered by above changes.
82920         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
82921
82922 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82923
82924         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
82925         locale.h, localeconv.  This merges changes from coreutils.
82926
82927         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
82928         It can be removed after the next Autoconf is released.
82929         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
82930         needed.
82931
82932 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82933
82934         * lib/mktime.c: Fix Debian bug 177940
82935         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
82936         (localtime_offset): Now long int, not time_t, because we want it
82937         to be guaranteed to be signed.  All uses changed.
82938         (__mktime_internal): If overflow would occur when adding offset,
82939         don't add it.
82940
82941         Merge 'human' changes from coreutils.  Rewrite to support
82942         locale-specific notations like thousands separators.
82943         * lib/human.c: Simplify authorship notice.
82944         Include human.h immediately after config.h.
82945         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
82946         <limits.h>: Do not include, since human.h does.
82947         (SIZE_MAX, UINTMAX_MAX): New macros.
82948         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
82949         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
82950         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
82951         (power_letter): Renamed from suffixes.
82952         (generate_suffix_backwards): Remove.
82953         (adjust_value): Now takes int style (because of human.h changes)
82954         and long double value (for greater precision on some platforms).
82955         (group_number): New function.
82956         (human_readable): Use it.  Use integer options, not enum.
82957         Put the options before the sizes in the arg list.
82958         Support all the new options.
82959         The old human_readable function has been removed;
82960         use inttostr.h instead.
82961         (human_readable, default_block_size, humblock):
82962         Use uintmax_t, not int, for block sizes.
82963         (human_readable_inexact, block_size_types): Remove.
82964         (block_size_opts): New constant.
82965         (human_options): Renamed from human_block_size, with new signature
82966         that allows block sizes up to UINTMAX_MAX.  All callers changed.
82967         * lib/human.h: Add copyright and authorship notice.
82968         Include <limits.h> and <stdbool.h> unconditionally.
82969         (PARAMS): Remove.  All uses removed.
82970         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
82971         (enum human_inexact_style): Remove tag; now a nameless enum.
82972         (human_floor, human_ceiling, human_round_to_even): Now have
82973         values 2, 0, 1 rather than -1, 1, 0.
82974         (human_group_digits, human_suppress_point_zero, human_autoscale,
82975         human_base_1024, human_SI, human_B): New constants.
82976         (human_readable_inexact, human_block_size): Remove.
82977         (human_readable): Size args are now uintmax_t, not int.
82978         (human_options): New decl.
82979
82980         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
82981         unnecessary now that we assume C89 or better.  This change
82982         imported from coreutils.
82983
82984         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82985         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
82986         in the 2003-05-30 sync from glibc.
82987
82988         .h files should stand alone, but we shouldn't include <sys/types.h>
82989         if we can get away with just <stddef.h>.
82990
82991         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
82992         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
82993         rather than <sys/types.h>, as we merely need size_t.
82994         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
82995         to get size_t.
82996         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
82997         Include <stdio.h>, to get FILE.
82998         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
82999         memcasecmp.h has included <stddef.h> and all we need is size_t.
83000         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83001         our interface, instead of including <sys/types.h>
83002
83003 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83004
83005         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83006         now, as glibc mktime is buggy on non-glibc systems.
83007
83008 2003-06-03  Karl Berry  <karl@gnu.org>
83009
83010         * config/config.sub: update from prep.
83011
83012 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83013
83014         [from coreutils]
83015         Fix some minor time-related bugs with POSIX time arguments.
83016         Some valid time stamps were being rejected (notably -1, and
83017         time stamps before 1900 on 64-bit hosts).  And some invalid
83018         time stamps were being accepted, e.g. September 31.
83019
83020         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83021         that we can return (time_t) -1 successfully.
83022         * lib/posixtm.c: Likewise.
83023         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83024         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83025         (t): Remove static var.
83026         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83027         of static var.  All uses changed.
83028         (year): Do not reject years before 1900; they can occur with
83029         64-bit time_t.
83030         (posix_time_parse): Do not check for out-of-range components;
83031         that is now the caller's responsibility, since our checks were
83032         only approximations.
83033         (posixtime): Use mktime to check for out-of-range components,
83034         since it knows them exactly.
83035         If mktime returns (time_t) -1, check whether an error actually occurred
83036         by invoking localtime on -1.
83037         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83038         posixtime failures better.
83039         Improve the test data (in comments only).
83040
83041 2003-06-02  Karl Berry  <karl@gnu.org>
83042
83043         * config/mkinstalldirs (version): new variable.
83044         (--version): new option.
83045         (usage): improve message.
83046
83047 2003-05-30  Karl Berry  <karl@gnu.org>
83048
83049         * lib/mktime.c: update from libc.
83050
83051 2003-05-30  Bruno Haible  <bruno@clisp.org>
83052
83053         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83054         * config/config.rpath: Upgrade to gettext-0.12.1.
83055
83056 2003-05-30  Bruno Haible  <bruno@clisp.org>
83057
83058         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83059         * m4/nls.m4: New file, from gettext-0.12.1.
83060         * m4/po.m4: New file, from gettext-0.12.1.
83061         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83062
83063 2003-05-30  Bruno Haible  <bruno@clisp.org>
83064
83065         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83066         * lib/localcharset.h: Likewise.
83067         * lib/localcharset.c: Likewise.
83068
83069 2003-05-29  Karl Berry  <karl@gnu.org>
83070
83071         * config/config.rpath: update from gettext.
83072
83073 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83074
83075         Assume the headers required for C89 freestanding compilers.
83076         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83077         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83078         * m4/human.m4 (gl_HUMAN): Likewise.
83079         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83080         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83081         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83082         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83083         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83084         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83085
83086 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83087
83088         Assume the headers required for C89 freestanding compilers.
83089         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83090         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83091         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83092         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83093         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83094         define, since <limits.h> is guaranteed to do that.
83095         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83096         * lib/exclude.c: Include <stdbool.h> unconditionally.
83097         * lib/tempname.c: Include <stddef.h> unconditionally.
83098         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83099         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83100         <stddef.h> does that.
83101         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83102         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83103         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83104         needed.
83105         * lib/xstrtol.c: Likewise.
83106         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83107         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83108
83109         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83110         warnings on some platforms.
83111
83112         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83113         arbitrarily.
83114
83115 2003-05-26  Jim Meyering  <jim@meyering.net>
83116
83117         Merge in a change from coreutils:
83118         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83119         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83120         that condition, rather than `-1' which is slightly misleading.
83121         Change the name of the cache variable to have the gl_ prefix.
83122         Prompted by a patch from Richard Dawe for DJGPP.
83123
83124 2003-05-24  Karl Berry  <karl@gnu.org>
83125
83126         * config/config.guess: update from prep.
83127
83128 2003-05-22  Karl Berry  <karl@gnu.org>
83129
83130         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83131
83132 2003-05-20  Karl Berry  <karl@gnu.org>
83133
83134         * config/config.guess: update from prep.
83135
83136 2003-05-18  Karl Berry  <karl@gnu.org>
83137
83138         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83139         might actually be set by the user.
83140
83141         * config/depcomp, install-sh, mdate-sh: update from automake.
83142
83143 2003-05-17  Bruno Haible  <bruno@clisp.org>
83144
83145         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83146         invalid expansion for AC_EGREP_CPP.
83147         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83148         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83149         Suggested by Akim Demaille <akim@epita.fr> in
83150         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83151
83152 2003-05-12  Jim Meyering  <jim@meyering.net>
83153
83154         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83155         the space-padded-by-default conversion specifiers, %e, %k, %l.
83156
83157 2003-05-12  Bruno Haible  <bruno@clisp.org>
83158
83159         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83160         the string is longer than 4 KB.
83161
83162 2003-05-11  Karl Berry  <karl@gnu.org>
83163
83164         * config/config.{guess,sub}: update from prep.
83165
83166 2003-05-09  Bruno Haible  <bruno@clisp.org>
83167
83168         * modules/error: Add m4/strerror_r.m4 to file list.
83169
83170 2003-05-03  Bruno Haible  <bruno@clisp.org>
83171
83172         Upgrade to Unicode-4.0.
83173         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83174         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83175         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83176         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83177         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83178         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83179         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83180         Change width of U+E0100..U+E01EF from 1 to 0.
83181
83182 2003-04-25  Jim Meyering  <jim@meyering.net>
83183
83184         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83185         of type size_t, not int.
83186
83187 2003-04-25  Bruno Haible  <bruno@clisp.org>
83188
83189         * lib/copy-file.c: Include <stddef.h>, for size_t.
83190
83191 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83192
83193         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83194         code which expansion is under static control.  Patch imported from
83195         Akim Demaille's patch to Bison; see
83196         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83197
83198 2003-04-14  Bruno Haible  <bruno@clisp.org>
83199
83200         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83201
83202 2003-04-11  Jim Meyering  <jim@meyering.net>
83203
83204         Merge changes from Coreutils.
83205
83206         2003-03-22  Jim Meyering  <jim@meyering.net>
83207
83208         * lib/strftime.c (widen): Cast alloca return value to proper type.
83209
83210         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83211
83212         From GNU libc.
83213         * lib/strftime.c (my_strftime): Handle very large width
83214         specifications for numeric values correctly.  Improve checks for
83215         overflow.
83216
83217         2003-01-19  Jim Meyering  <jim@meyering.net>
83218
83219         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83220         definitions.
83221         (nl_get_alt_digit) [! defined my_strftime]: Define.
83222         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83223         _nl_get_alt_digit and _nl_get_walt_digit.
83224
83225         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83226         libc. These changes have no effect outside of _LIBC.
83227
83228 2003-04-10  Bruno Haible  <bruno@clisp.org>
83229
83230         * modules/findprog: New file.
83231         * MODULES.html.sh (func_all_modules): Add it.
83232
83233 2003-04-10  Bruno Haible  <bruno@clisp.org>
83234
83235         * m4/findprog.m4: New file.
83236         * m4/eaccess.m4: New file.
83237
83238 2003-04-10  Bruno Haible  <bruno@clisp.org>
83239
83240         * lib/findprog.h: New file, from GNU gettext.
83241         * lib/findprog.c: New file, from GNU gettext.
83242
83243 2003-04-05  Jim Meyering  <jim@meyering.net>
83244
83245         Merge changes from Coreutils.
83246
83247         * lib/exclude.h (PARAMS): Remove definition and uses.
83248         * lib/exclude.c: Remove uses of `PARAMS'.
83249
83250         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
83251         Add test-cases for DOS filenames. Declare program_name.
83252         (main): Set up program_name.  Patch by Rich Dawe.
83253
83254         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83255         error from mntctl.
83256         Use mntctl's return value to drive the entry-processing loop, since
83257         we can't rely on the value of the vmt_length member in the last
83258         entry.  On some systems doing so could result in exhausting
83259         virtual memory.  Based in part on a patch from Mike Jetzer.
83260
83261 2003-04-04  Bruno Haible  <bruno@clisp.org>
83262
83263         * modules/linebreak: New file.
83264         * MODULES.html.sh (func_all_modules): Add it.
83265
83266 2003-04-04  Bruno Haible  <bruno@clisp.org>
83267
83268         * m4/linebreak.m4: New file.
83269
83270 2003-04-04  Bruno Haible  <bruno@clisp.org>
83271
83272         * lib/linebreak.h: New file, from GNU gettext.
83273         * lib/linebreak.c: New file, from GNU gettext with slight
83274         modifications.
83275         * lib/lbrkprop.h: New file, from GNU gettext.
83276
83277 2003-04-03  Bruno Haible  <bruno@clisp.org>
83278
83279         * modules/utf8-ucs4: New file.
83280         * modules/utf16-ucs4: New file.
83281         * modules/ucs4-utf8: New file.
83282         * modules/ucs4-utf16: New file.
83283         * MODULES.html.sh (func_all_modules): Add them.
83284
83285 2003-04-03  Bruno Haible  <bruno@clisp.org>
83286
83287         * m4/utf-ucs4.m4: New file.
83288         * m4/ucs4-utf.m4: New file.
83289
83290 2003-04-03  Bruno Haible  <bruno@clisp.org>
83291
83292         * lib/utf8-ucs4.h: New file, from GNU gettext.
83293         * lib/utf16-ucs4.h: New file, from GNU gettext.
83294         * lib/ucs4-utf8.h: New file, from GNU gettext.
83295         * lib/ucs4-utf16.h: New file, from GNU gettext.
83296
83297 2003-04-02  Bruno Haible  <bruno@clisp.org>
83298
83299         * modules/binary-io: New file.
83300         * MODULES.html.sh (func_all_modules): Add it.
83301
83302 2003-04-02  Bruno Haible  <bruno@clisp.org>
83303
83304         * lib/binary-io.h: New file, from GNU gettext.
83305
83306 2003-04-01  Bruno Haible  <bruno@clisp.org>
83307
83308         * modules/pathname: New file.
83309         * MODULES.html.sh (func_all_modules): Add it.
83310
83311 2003-04-01  Bruno Haible  <bruno@clisp.org>
83312
83313         * lib/pathname.h: New file, from GNU gettext.
83314         * lib/concatpath.c: New file, from GNU gettext.
83315
83316 2003-03-30  Bruno Haible  <bruno@clisp.org>
83317
83318         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
83319
83320 2003-03-30  Bruno Haible  <bruno@clisp.org>
83321
83322         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
83323         function chown() doesn't exist.
83324
83325 2003-03-28  Bruno Haible  <bruno@clisp.org>
83326
83327         * modules/copy-file: New file.
83328         * MODULES.html.sh (func_all_modules): Add it.
83329
83330 2003-03-28  Bruno Haible  <bruno@clisp.org>
83331
83332         * m4/copy-file.m4: New file.
83333
83334 2003-03-28  Bruno Haible  <bruno@clisp.org>
83335
83336         * lib/copy-file.h: New file, from GNU gettext.
83337         * lib/copy-file.c: New file, from GNU gettext.
83338
83339 2003-03-18  Jim Meyering  <jim@meyering.net>
83340
83341         * lib/quote.c (quote_n): Fix typo in comment.
83342
83343 2003-03-18  Bruno Haible  <bruno@clisp.org>
83344
83345         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83346         checking.
83347         * m4/onceonly_2_57.m4: Likewise.
83348
83349 2003-03-17  Bruno Haible  <bruno@clisp.org>
83350
83351         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83352         (m4_quote): Remove macro.
83353         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83354
83355 2003-03-14  Jim Meyering  <jim@meyering.net>
83356
83357         Merge changes from Coreutils.
83358         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83359         to be const, in order to avoid warnings.
83360         (obstack_room): Likewise.
83361         (obstack_empty_p): Likewise.
83362
83363 2003-03-14  Bruno Haible  <bruno@clisp.org>
83364
83365         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83366         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83367
83368 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83369
83370         Merge changes from Bison.
83371         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83372         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83373         when compiling Bison 1.875's `bitset bset = obstack_alloc
83374         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
83375         * lib/hash.c: Include <stdbool.h> unconditionally.
83376
83377 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83378
83379         * m4/onceonly.m4 (m4_quote): New macro.
83380         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
83381         Quote AC_FOREACH variable-expansions properly.
83382
83383 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83384
83385         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
83386
83387 2003-03-09  Paul Eggert  <eggert@twinsun.com>
83388
83389         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
83390         Reported by Bruce Becker; see:
83391         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
83392
83393 2003-03-03  Paul Eggert  <eggert@twinsun.com>
83394             Bruno Haible  <bruno@clisp.org>
83395
83396         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
83397         Reported by John Hughes, see
83398         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
83399
83400 2003-02-20  Bruno Haible  <bruno@clisp.org>
83401
83402         * MODULES.html.sh (func_all_modules): Add poll.
83403
83404 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83405
83406         * modules/poll: New file.
83407
83408 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83409
83410         * lib/poll_.h: New file.
83411         * lib/poll.c: New file.
83412
83413 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83414
83415         * m4/poll.m4: New file.
83416
83417 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83418
83419         * modules/mathl: New file.
83420
83421 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83422
83423         * lib/mathl.h: New file.
83424         * lib/acosl.c: New file.
83425         * lib/asinl.c: New file.
83426         * lib/atanl.c: New file.
83427         * lib/ceill.c: New file.
83428         * lib/cosl.c: New file.
83429         * lib/expl.c: New file.
83430         * lib/floorl.c: New file.
83431         * lib/frexpl.c: New file.
83432         * lib/ldexpl.c: New file.
83433         * lib/logl.c: New file.
83434         * lib/sincosl.c: New file.
83435         * lib/sinl.c: New file.
83436         * lib/sqrtl.c: New file.
83437         * lib/tanl.c: New file.
83438         * lib/trigl.c: New file.
83439         * lib/trigl.h: New file.
83440
83441 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83442
83443         * m4/mathl.m4: New file.
83444
83445 2003-02-18  Bruno Haible  <bruno@clisp.org>
83446
83447         * MODULES.html.sh (func_all_modules): Add mathl.
83448
83449 2003-02-17  Bruno Haible  <bruno@clisp.org>
83450
83451         * modules/mkdtemp: New module.
83452         * MODULES.html.sh (func_all_modules): Add it.
83453
83454 2003-02-17  Bruno Haible  <bruno@clisp.org>
83455
83456         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
83457
83458 2003-02-17  Bruno Haible  <bruno@clisp.org>
83459
83460         * lib/mkdtemp.h: New file, from GNU gettext.
83461         * lib/mkdtemp.c: New file, from GNU gettext.
83462
83463 2003-02-02  Jim Meyering  <jim@meyering.net>
83464
83465         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
83466         e.g. glibc-2.2.93.
83467
83468 2003-01-31  Bruno Haible  <bruno@clisp.org>
83469
83470         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
83471         'rpl_rename'.
83472         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
83473         'rpl_strnlen'.
83474         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
83475         'rpl_strtod'.
83476         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
83477         'rpl_utime'.
83478
83479 2003-01-31  Bruno Haible  <bruno@clisp.org>
83480
83481         * lib/rename.c: #undef rename before defining rpl_rename.
83482         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
83483
83484 2003-01-30  Bruno Haible  <bruno@clisp.org>
83485
83486         * modules/vasnprintf, modules/vasprintf: New modules.
83487         * MODULES.html.sh (func_all_modules): Add them.
83488
83489 2003-01-30  Bruno Haible  <bruno@clisp.org>
83490
83491         * m4/signed.m4: New file, from GNU gettext.
83492         * m4/longdouble.m4: New file, from GNU gettext.
83493         * m4/wchar_t.m4: New file, from GNU gettext.
83494         * m4/wint_t.m4: New file, from GNU gettext.
83495         * m4/vasnprintf.m4: New file.
83496         * m4/vasprintf.m4: New file.
83497
83498 2003-01-30  Bruno Haible  <bruno@clisp.org>
83499
83500         * lib/printf-args.h: New file, from GNU gettext.
83501         * lib/printf-args.c: New file, from GNU gettext.
83502         * lib/printf-parse.h: New file, from GNU gettext.
83503         * lib/printf-parse.c: New file, from GNU gettext.
83504         * lib/vasnprintf.h: New file, from GNU gettext.
83505         * lib/vasnprintf.c: New file, from GNU gettext.
83506         * lib/asnprintf.c: New file, from GNU gettext.
83507         * lib/vasprintf.h: New file, from GNU gettext with modifications.
83508         * lib/vasprintf.c: New file, from GNU gettext.
83509         * lib/asprintf.c: New file, from GNU gettext.
83510
83511 2003-01-29  Bruno Haible  <bruno@clisp.org>
83512
83513         * modules/stpncpy: New module.
83514         * MODULES.html.sh (func_all_modules): Add it.
83515
83516 2003-01-29  Bruno Haible  <bruno@clisp.org>
83517
83518         * m4/stpncpy.m4: New file.
83519
83520 2003-01-29  Bruno Haible  <bruno@clisp.org>
83521
83522         * lib/stpncpy.h: New file, from GNU gettext with modifications.
83523         * lib/stpncpy.c: New file, from GNU gettext with modifications.
83524
83525 2003-01-28  Bruno Haible  <bruno@clisp.org>
83526
83527         * modules/c-ctype: New module.
83528         * MODULES.html.sh (func_all_modules): Add it.
83529
83530 2003-01-28  Bruno Haible  <bruno@clisp.org>
83531
83532         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
83533         Paul Eggert.
83534         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
83535         Paul Eggert.
83536
83537 2003-01-27  Bruno Haible  <bruno@clisp.org>
83538
83539         * modules/xsetenv: New module.
83540         * MODULES.html.sh (func_all_modules): Add it.
83541
83542 2003-01-27  Bruno Haible  <bruno@clisp.org>
83543
83544         * lib/xsetenv.h: New file, from GNU gettext.
83545         * lib/xsetenv.c: New file, from GNU gettext.
83546
83547 2003-01-23  Jim Meyering  <jim@meyering.net>
83548
83549         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
83550         from working on systems without dirfd (at least Irix and OSF1/Tru64).
83551
83552 2003-01-23  Bruno Haible  <bruno@clisp.org>
83553
83554         * modules/minmax: New module.
83555         * MODULES.html.sh (func_all_modules): Add it.
83556
83557 2003-01-23  Bruno Haible  <bruno@clisp.org>
83558
83559         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
83560         Eggert.
83561
83562 2003-01-22  Bruno Haible  <bruno@clisp.org>
83563
83564         * modules/exit: New module.
83565         * MODULES.html.sh (func_all_modules): Add it.
83566
83567 2003-01-22  Bruno Haible  <bruno@clisp.org>
83568
83569         * lib/exit.h: New file, from GNU gettext.
83570
83571 2003-01-19  Bruno Haible  <bruno@clisp.org>
83572
83573         * gnulib-tool: Recognize option --extract-maintainer.
83574         (func_get_maintainer): New function.
83575         * modules/*: Add Maintainer entry.
83576
83577 2003-01-16  Jim Meyering  <jim@meyering.net>
83578
83579         * m4/regex.m4: The `regex' struct is both input and output.
83580         Initialize it before each use.  Patch by Tim Waugh.
83581
83582 2003-01-16  Bruno Haible  <bruno@clisp.org>
83583
83584         * MODULES.html.sh: Add a table of contents. Add the module name as
83585         leftmost column. Add hyperlinks.
83586
83587 2003-01-15  Bruno Haible  <bruno@clisp.org>
83588
83589         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
83590
83591 2003-01-15  Bruno Haible  <bruno@clisp.org>
83592
83593         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
83594         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
83595         suffix.
83596
83597 2003-01-15  Bruno Haible  <bruno@clisp.org>
83598
83599         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
83600
83601 2003-01-15  Bruno Haible  <bruno@clisp.org>
83602
83603         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
83604         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
83605
83606 2003-01-14  Jim Meyering  <jim@meyering.net>
83607
83608         * lib/same.c (same_name): Tweak a comment.
83609
83610 2003-01-14  Bruno Haible  <bruno@clisp.org>
83611
83612         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
83613         when a string comparison is sufficient.
83614
83615 2003-01-14  Bruno Haible  <bruno@clisp.org>
83616
83617         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
83618         'unsigned int'.
83619
83620 2003-01-14  Bruno Haible  <bruno@clisp.org>
83621
83622         * lib/hash-pjw.c: Add comment about low quality of this function.
83623
83624 2003-01-13  Bruno Haible  <bruno@clisp.org>
83625
83626         * modules/stpcpy: Distribute lib/stpcpy.h.
83627         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
83628
83629 2003-01-13  Bruno Haible  <bruno@clisp.org>
83630
83631         * modules/*: Add a description.
83632         * modules/strpbrk: Fix Makefile.am snippet.
83633         * modules/strtoimax: Fix dependencies.
83634         * modules/strtoumax: Likewise.
83635
83636 2003-01-13  Bruno Haible  <bruno@clisp.org>
83637
83638         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
83639         * modules/alloca (Makefile.am): All object files depend on alloca.h.
83640         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
83641
83642 2003-01-13  Bruno Haible  <bruno@clisp.org>
83643
83644         * gnulib-tool (func_create_testdir): Store config/* files in the main
83645         directory.
83646         * config.rpath: Move to ...
83647         * config/config.rpath: ... here.
83648         * modules/gettext: Contains config/config.rpath, not config.rpath.
83649         * modules/iconv: Likewise.
83650
83651 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83652
83653         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83654         to avoid collisions with libcurses and libreadline.
83655
83656         * m4/getstr.m4: Remove.
83657         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
83658
83659 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83660
83661         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83662         to avoid collisions with libcurses and libreadline.
83663
83664         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
83665         * lib/getstr.h, getstr.c: Remove.
83666         * lib/getline.c: Include "getline.h", to check interface.
83667         Move body of old getstr.c here: this defines MIN_CHUNK and
83668         declares getdelim2, which is renamed from getstr.
83669         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
83670
83671         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
83672         All uses changed.
83673         * lib/linebuffer.h: Likewise.
83674         (readline): Remove backward-compatibility macro.
83675
83676 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83677
83678         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83679         to avoid collisions with libcurses and libreadline.
83680         * getstr: Remove.
83681         * MODULES.html.sh: Remove getstr.
83682         * modules/getline: Depend on unlocked-io, not getstr.
83683
83684 2003-01-12  Jim Meyering  <jim@meyering.net>
83685
83686         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
83687
83688 2003-01-10  Bruno Haible  <bruno@clisp.org>
83689
83690         * modules/alloca: Change Makefile.am requirements. Simplify Include
83691         requirements. Add lib/alloca_.h to file list.
83692
83693 2003-01-10  Bruno Haible  <bruno@clisp.org>
83694
83695         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
83696
83697 2003-01-10  Bruno Haible  <bruno@clisp.org>
83698
83699         * lib/alloca_.h: New file.
83700         * lib/getdate.y: Unconditionally include alloca.h.
83701         * lib/makepath.c: Likewise.
83702         * lib/setenv.c: Likewise.
83703         * lib/userspec.c: Likewise.
83704
83705 2003-01-09  Karl Berry  <karl@gnu.org>
83706
83707         * MODULES.html.sh: include `dirname $0` in PATH, to find
83708         gnulib-tool.
83709
83710 2003-01-09  Bruno Haible  <bruno@clisp.org>
83711
83712         * modules/stdbool: Change configure.ac, Makefile.am requirements.
83713         Simplify Include requirements. Add lib/stdbool.h.in to file list.
83714
83715 2003-01-09  Bruno Haible  <bruno@clisp.org>
83716
83717         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
83718
83719 2003-01-09  Bruno Haible  <bruno@clisp.org>
83720
83721         * lib/stdbool.h.in: New file.
83722
83723 2003-01-09  Bruno Haible  <bruno@clisp.org>
83724
83725         * gnulib-tool (func_all_modules): Ignore files ending in ~.
83726         * MODULES.html.sh: Likewise.
83727
83728 2003-01-08  Jim Meyering  <jim@meyering.net>
83729
83730         * lib/full-write.c: Undefine and define-away `const' after inclusion
83731         of errno.h, not before.  Suggestion from Bruno Haible.
83732
83733 2003-01-08  Bruno Haible  <bruno@clisp.org>
83734
83735         * modules/full-read: Depend on full-write.
83736
83737 2003-01-08  Bruno Haible  <bruno@clisp.org>
83738
83739         * lib/safe-read.c: Include specification header first, to ensure its
83740         selfcontainedness.
83741         * lib/full-write.c: Likewise.
83742
83743 2003-01-07  Jim Meyering  <jim@meyering.net>
83744
83745         * lib/full-write.c: Rework so that it may serve to define full_read,
83746         too.
83747         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
83748
83749 2003-01-07  Bruno Haible  <bruno@clisp.org>
83750
83751         * lib/strtoimax.c: Include <stdint.h> as an alternative to
83752         <inttypes.h>.
83753         * lib/xstrtol.h: Likewise.
83754         * lib/xstrtoimax.c: Likewise.
83755         * lib/xstrtoumax.c: Likewise.
83756         * lib/human.h: Likewise.
83757
83758         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
83759         on systems that have <inttypes.h> but not <stdint.h>.
83760
83761 2003-01-07  Bruno Haible  <bruno@clisp.org>
83762
83763         * MODULES.html.sh: Add copyright notice.
83764         (missed_files): Omit CVS directory entries.
83765         (func_module): Make it work with sed-3.02.
83766         * MODULES.txt: Remove file.
83767
83768 2003-01-06  Jim Meyering  <jim@meyering.net>
83769
83770         * lib/version-etc.c: Update year in translatable copyright string.
83771
83772 2003-01-03  Karl Berry  <karl@gnu.org>
83773
83774         * config/config.{guess,sub}: update from prep.
83775
83776 2003-01-02  Karl Berry  <karl@gnu.org>
83777
83778         * doc/COPYING.DOC: belatedly updated to 1.2.
83779
83780 2003-01-01  Karl Berry  <karl@gnu.org>
83781
83782         * gnulib-tool (func_verify_module): report module name $module in
83783         error message, not $1.
83784         * gnulib-tool (create-testdir): don't complain if destdir couldn't
83785         be created, only if it doesn't exist.
83786         * gnulib-tool (last_checkin_date): don't expand the $Date here.
83787
83788 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83789
83790         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
83791
83792 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83793
83794         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
83795         memcmp if strcoll doesn't work.
83796
83797 2002-12-31  Bruno Haible  <bruno@clisp.org>
83798
83799         * lib/utime.c (utime_null): No need to call ftruncate if the file was
83800         nonempty.
83801
83802 2002-12-31  Bruno Haible  <bruno@clisp.org>
83803
83804         * lib/memcoll.c (STRCOLL): New macro.
83805         (memcoll): Use it.
83806
83807 2002-12-31  Bruno Haible  <bruno@clisp.org>
83808
83809         * lib/localcharset.h: New file.
83810         * lib/localcharset.c: Include it.
83811         * lib/unicodeio.c: Likewise.
83812
83813 2002-12-31  Bruno Haible  <bruno@clisp.org>
83814
83815         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
83816         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
83817
83818 2002-12-31  Bruno Haible  <bruno@clisp.org>
83819
83820         * lib/getline.h: Include <stddef.h>, for size_t.
83821
83822         * lib/unicodeio.h: Include <stddef.h>, for size_t.
83823         * lib/unicodeio.c: Don't include <stddef.h>.
83824
83825 2002-12-31  Bruno Haible  <bruno@clisp.org>
83826
83827         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
83828         HAVE_TM_ZONE.
83829
83830 2002-12-24  Karl Berry  <karl@gnu.org>
83831
83832         * config/config.guess: update from prep.
83833
83834 2002-12-24  Bruno Haible  <bruno@clisp.org>
83835
83836         General infrasructure.
83837         * m4/README: Rewritten.
83838         * m4/onceonly.m4: New file.
83839         * m4/onceonly_2_57.m4: New file.
83840
83841         Module atexit.
83842         * m4/atexit.m4: New file.
83843
83844         Module strtod.
83845         * m4/strtod.m4: New file.
83846
83847         Module strtol.
83848         * m4/strtol.m4: New file.
83849
83850         Module strtoul.
83851         * m4/strtoul.m4: New file.
83852
83853         Module memchr.
83854         * m4/memchr.m4: New file.
83855
83856         Module memcmp.
83857         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
83858         (jm_FUNC_MEMCMP): Invoke it.
83859
83860         Module memcpy.
83861         * m4/memcpy.m4: New file.
83862
83863         Module memmove.
83864         * m4/memmove.m4: New file.
83865
83866         Module memset.
83867         * m4/memset.m4: New file.
83868
83869         Module strcspn.
83870         * m4/strcspn.m4: New file.
83871
83872         Module strpbrk.
83873         * m4/strpbrk.m4: New file.
83874
83875         Module strstr.
83876         * m4/strstr.m4: New file.
83877
83878         Module strerror.
83879         * m4/strerror.m4: New file.
83880
83881         Module mktime.
83882         * m4/mktime.m4: Renamed from jm-mktime.m4.
83883         (gl_PREREQ_MKTIME): New macro.
83884         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
83885
83886         Module malloc.
83887         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
83888         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
83889         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
83890
83891         Module realloc.
83892         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
83893         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
83894         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
83895
83896         Module strftime.
83897         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
83898         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
83899         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
83900         gl_TM_GMTOFF.
83901         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
83902
83903         Module xalloc.
83904         * m4/xalloc.m4: New file.
83905
83906         Module alloca.
83907         * m4/alloca.m4: New file.
83908
83909         Module putenv.
83910         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
83911         (jm_FUNC_PUTENV): Invoke it.
83912
83913         Module setenv.
83914         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
83915         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
83916         when invoked twice.
83917         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
83918         gt_FUNC_SETENV.
83919
83920         Module memrchr.
83921         * m4/memrchr.m4: New file.
83922
83923         Module stpcpy.
83924         * m4/stpcpy.m4: New file.
83925
83926         Module strcase.
83927         * m4/strcase.m4: New file.
83928
83929         Module strdup.
83930         * m4/strdup.m4: New file.
83931
83932         Module strnlen.
83933         * m4/strnlen.m4: New file.
83934
83935         Module strndup.
83936         * m4/strndup.m4: New file.
83937
83938         Module xstrtod.
83939         * m4/xstrtod.m4: New file.
83940
83941         Module xstrtol.
83942         * m4/xstrtol.m4: New file.
83943
83944         Module getdate.
83945         * m4/getdate.m4: New file.
83946
83947         Module unlocked-io.
83948         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
83949         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
83950         * m4/jm-glibc-io.m4n: Remove file.
83951
83952         Module long-options.
83953         * m4/long-options.m4: New file.
83954
83955         Module md5.
83956         * m4/md5.m4: New file.
83957
83958         Module sha.
83959         * m4/sha.m4: New file.
83960
83961         Module getstr.
83962         * m4/getstr.m4: New file.
83963
83964         Module getline.
83965         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
83966         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
83967         <sys/types.h>, for size_t. Use the function name gnu_getline, not
83968         simply getline. Infoke gl_PREREQ_GETLINE.
83969
83970         Module obstack.
83971         * m4/obstack.m4: New file.
83972
83973         Module hash.
83974         * m4/hash.m4: New file.
83975
83976         Module readtokens.
83977         * m4/readtokens.m4: New file.
83978
83979         Module strverscmp.
83980         * m4/strverscmp.m4: New file.
83981
83982         Module stdbool.
83983         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
83984         OSF/1.
83985
83986         Module strtoll.
83987         * m4/strtoll.m4: New file.
83988
83989         Module strtoull.
83990         * m4/strtoull.m4: New file.
83991
83992         Module strtoimax.
83993         * m4/strtoimax.m4: New file.
83994
83995         Module strtoumax.
83996         * m4/strtoumax.m4: New file.
83997
83998         Module xstrtoimax.
83999         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84000         jm_AC_PREREQ_XSTRTOIMAX.
84001         Moved the strtol prerequisites to strtol.m4.
84002         Moved the strtoll prerequisites to strtoll.m4.
84003         Moved the strtoimax prerequisites to strtoimax.m4.
84004
84005         Module xstrtoumax.
84006         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84007         jm_AC_PREREQ_XSTRTOUMAX.
84008         Moved the strtoul prerequisites to strtoul.m4.
84009         Moved the strtoull prerequisites to strtoull.m4.
84010         Moved the strtoumax prerequisites to strtoumax.m4.
84011
84012         Module chown.
84013         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84014         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84015
84016         Module dup2.
84017         * m4/dup2.m4: New file.
84018
84019         Module ftruncate.
84020         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84021         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84022
84023         Module getgroups.
84024         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84025         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84026
84027         Module gettimeofday.
84028         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84029         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84030         gl_PREREQ_GETTIMEOFDAY.
84031
84032         Module mkdir.
84033         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84034         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84035
84036         Module mkstemp.
84037         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84038         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84039         jm_AC_TYPE_UINTMAX_T.
84040         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84041
84042         Module stat.
84043         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84044         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84045
84046         Module lstat.
84047         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84048         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84049
84050         Module timespec.
84051         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84052         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84053         * m4/st_mtim.m4: Indentation.
84054
84055         Module nanosleep.
84056         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84057         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84058         gl_PREREQ_NANOSLEEP.
84059
84060         Module regex.
84061         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84062         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84063         (gl_REGEX): New macro.
84064
84065         Module rename.
84066         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84067         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84068
84069         Module rmdir.
84070         * m4/rmdir.m4: New file.
84071
84072         Module utime.
84073         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84074         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84075         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84076
84077         Module dirname.
84078         * m4/dirname.m4: New file.
84079
84080         Module getopt.
84081         * m4/getopt.m4: New file.
84082
84083         Module unistd-safer.
84084         * m4/unistd-safer.m4: New file.
84085
84086         Module fnmatch.
84087         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84088         declaration.
84089         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84090         (gl_FUNC_FNMATCH_POSIX): New macro.
84091         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84092         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84093         simply fnmatch.
84094
84095         Module exclude.
84096         * m4/exclude.m4: New file.
84097
84098         Module human.
84099         * m4/human.m4: New file.
84100
84101         Module acl.
84102         * m4/acl.m4: Nop.
84103
84104         Module backupfile.
84105         * m4/backupfile.m4: New file.
84106         * m4/d-ino.m4: Indentation.
84107
84108         Module fsusage.
84109         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84110         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84111         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84112
84113         Module dirfd.
84114         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84115         requirements.
84116
84117         Module euidaccess.
84118         * m4/euidaccess.m4: New file.
84119
84120         Module file-type.
84121         * m4/file-type.m4: New file.
84122
84123         Module fileblocks.
84124         * m4/fileblocks.m4: New file.
84125
84126         Module filemode.
84127         * m4/filemode.m4: New file.
84128
84129         Module isdir.
84130         * m4/isdir.m4: New file.
84131
84132         Module lchown.
84133         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84134         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84135
84136         Module makepath.
84137         * m4/makepath.m4: New file.
84138
84139         Module modechange.
84140         * m4/modechange.m4: New file.
84141
84142         Module mountlist.
84143         * m4/mountlist.m4: New file.
84144         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84145         Indentation.
84146
84147         Module path-concat.
84148         * m4/path-concat.m4: New file.
84149
84150         Module pathmax.
84151         * m4/pathmax.m4: New file.
84152
84153         Module same.
84154         * m4/same.m4: New file.
84155
84156         Module save-cwd.
84157         * m4/save-cwd.m4: New file.
84158
84159         Module savedir.
84160         * m4/savedir.m4: New file.
84161
84162         Module xgetcwd.
84163         * m4/xgetcwd.m4: New file.
84164         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84165
84166         Module xreadlink.
84167         * m4/xreadlink.m4: New file.
84168
84169         Module safe-read.
84170         * m4/safe-read.m4: New file.
84171
84172         Module safe-write.
84173         * m4/safe-write.m4: New file.
84174
84175         Module closeout.
84176         * m4/closeout.m4: New file.
84177
84178         Module stdio-safer.
84179         * m4/stdio-safer.m4: New file.
84180
84181         Module getpass.
84182         * m4/getpass.m4: New file.
84183
84184         Module getugroups.
84185         * m4/getugroups.m4: New file.
84186
84187         Module group-member.
84188         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84189         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84190
84191         Module idcache.
84192         * m4/idcache.m4: New file.
84193
84194         Module userspec.
84195         * m4/userspec.m4: New file.
84196
84197         Module gettime.
84198         * m4/clock_time.m4: New file.
84199         * m4/gettime.m4: New file.
84200
84201         Module settime.
84202         * m4/settime.m4: New file.
84203
84204         Module posixtm.
84205         * m4/posixtm.m4: New file.
84206
84207         Module gethostname.
84208         * m4/gethostname.m4: New file.
84209
84210         Module canon-host.
84211         * m4/canon-host.m4: New file.
84212
84213         Module gettext.
84214         * m4/codeset.m4: New file, from gettext-0.11.5.
84215         * m4/gettext.m4: New file, from gettext-0.11.5.
84216         * m4/glibc21.m4: New file, from gettext-0.11.5.
84217         * m4/iconv.m4: New file, from gettext-0.11.5.
84218         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84219         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84220         * m4/inttypes.m4: New file, from gettext-0.11.5.
84221         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84222         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84223         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84224         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84225         * m4/lib-link.m4: New file, from gettext-0.11.5.
84226         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84227         * m4/progtest.m4: New file, from gettext-0.11.5.
84228         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84229         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84230         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84231
84232         Module localcharset.
84233         * m4/localcharset.m4: New file.
84234
84235         Module hard-locale.
84236         * m4/hard-locale.m4: New file.
84237
84238         Module mbswidth.
84239         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84240         onceonly macros.
84241         * m4/mbrtowc.m4: Add comment.
84242
84243         Module memcasecmp.
84244         * m4/memcasecmp.m4: New file.
84245
84246         Module memcoll.
84247         * m4/memcoll.m4: New file.
84248
84249         Module unicodeio.
84250         * m4/unicodeio.m4: New file.
84251
84252         Module rpmatch.
84253         * m4/rpmatch.m4: New file.
84254
84255         Module yesno.
84256         * m4/yesno.m4: New file.
84257
84258         Module exitfail.
84259         * m4/exitfail.m4: New file.
84260
84261         Module c-stack.
84262         * m4/c-stack.m4 (gl_C_STACK): New macro.
84263         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
84264
84265         Module error.
84266         * m4/error.m4 (gl_ERROR): New macro.
84267         (jm_PREREQ_ERROR): Use onceonly macros.
84268
84269         Module fatal.
84270         * m4/fatal.m4: New file.
84271
84272         Module getloadavg.
84273         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
84274         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
84275
84276         Module getpagesize.
84277         * m4/getpagesize.m4: New file.
84278
84279         Module getusershell.
84280         * m4/getusershell.m4: New file.
84281
84282         Module physmem.
84283         * m4/physmem.m4: New file.
84284
84285         Module posixver.
84286         * m4/posixver.m4: New file.
84287
84288         Module quotearg.
84289         * m4/quotearg.m4: New file.
84290
84291         Module quote.
84292         * m4/quote.m4: New file.
84293
84294         Module readutmp.
84295         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
84296
84297         Module sig2str.
84298         * m4/sig2str.m4: New file.
84299
84300         Other.
84301         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
84302         ulonglong.m4.
84303         * m4/intmax_t.m4: New file.
84304         * m4/d-type.m4: Indentation.
84305         * m4/jm-macros.m4: Update.
84306         * m4/prereq.m4 (jm_PREREQ): Update.
84307         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
84308         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
84309         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
84310         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
84311         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
84312         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
84313         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
84314         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
84315         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
84316         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
84317         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
84318         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
84319         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
84320         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
84321         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
84322         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
84323         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
84324         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
84325         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
84326
84327 2002-12-24  Bruno Haible  <bruno@clisp.org>
84328
84329         * MODULES.txt: Update according to m4/ changes.
84330
84331         Module gettext.
84332         * config.rpath: New file, from gettext-0.11.5.
84333
84334         * modules/*: New module descriptions.
84335         * gnulib-tool: New file.
84336         * MODULES.html.sh: New file.
84337
84338 2002-12-21  Karl Berry  <karl@gnu.org>
84339
84340         * doc/fdl.texi: update to version 1.2.
84341
84342 2002-12-19  Karl Berry  <karl@gnu.org>
84343
84344         * config/config.guess: update from prep.
84345
84346 2002-12-18  Bruno Haible  <bruno@clisp.org>
84347
84348         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84349         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84350
84351 2002-12-17  Bruno Haible  <bruno@clisp.org>
84352
84353         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84354         stdlib.h, string.h.
84355
84356 2002-12-17  Bruno Haible  <bruno@clisp.org>
84357
84358         * lib/canon-host.c (strdup): Remove unused declaration.
84359
84360         * lib/fsusage.c: Include full_read.h.
84361         (get_fs_usage): Use full_read instead of safe_read.
84362
84363         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84364
84365 2002-12-12  Karl Berry  <karl@gnu.org>
84366
84367         * config/config.guess: update from prep.
84368
84369 2002-12-11  Bruno Haible  <bruno@clisp.org>
84370
84371         * m4/setenv.m4: New file, from gettext-0.11.5.
84372
84373 2002-12-11  Bruno Haible  <bruno@clisp.org>
84374
84375         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
84376         not unsetenv().
84377         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
84378         modifications:
84379
84380         2002-12-11  Bruno Haible  <bruno@clisp.org>
84381
84382                 * setenv.c (alloca): Fall back to malloc.
84383                 (freea): New macro.
84384                 (setenv): Use freea() to free memory allocated with alloca().
84385
84386         2002-11-13  Bruno Haible  <bruno@clisp.org>
84387
84388                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
84389                 function declarations.
84390                 * unsetenv.c (unsetenv): Likewise.
84391
84392         2002-03-04  Bruno Haible  <bruno@clisp.org>
84393
84394                 Portability to AIX 4.3.3.
84395                 * unsetenv.c: New file, extracted from setenv.c.
84396                 * setenv.c: Move the unsetenv() function to unsetenv.c.
84397
84398         2001-12-20  Bruno Haible  <bruno@clisp.org>
84399
84400                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
84401                 use malloc instead. For SunOS 4.
84402
84403         2001-12-11  Bruno Haible  <bruno@clisp.org>
84404
84405                 * setenv.c: Declare alloca.
84406                 (compar_fn_t): New typedef.
84407                 (KNOWN_VALUE, STORE_VALUE): Use it.
84408
84409         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
84410         setenv.h.
84411
84412 2002-12-10  Paul Eggert  <eggert@twinsun.com>
84413
84414         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84415         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84416         Choose values that are less likely to collide with system fnmatch
84417         options.
84418         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
84419         defined (e.g., a pure POSIX system).
84420         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
84421         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
84422
84423 2002-12-06  Paul Eggert  <eggert@twinsun.com>
84424
84425         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
84426         a pain in practice to deal with generated m4 files.  This change
84427         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
84428
84429         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
84430         and jm-glibc-io.m4, as they are no longer a special case.
84431         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
84432         kludge and the auto-generation stuff.  Check only whether the
84433         functions are declared, not whether they exist, since older hosts
84434         that don't declare the functions can't use the optimization anyway.
84435
84436 2002-12-06  Jim Meyering  <jim@meyering.net>
84437
84438         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
84439
84440         Merge in changes from libc's misc/error.c, in preparation
84441         for the merge of gnulib's changes back into libc.
84442
84443         * lib/error.c (_): Define only if not already defined.
84444         Move definition to follow all #include directives.
84445         Include unlocked-io.h only if !_LIBC.
84446         [_LIBC]: Include <libio/libioP.h>.
84447         [USE_IN_LIBIO]: Include <libio/iolibio.h>
84448         (fflush): Tweak definition to use INTUSE.
84449         (putc): Define.
84450
84451 2002-12-05  Paul Eggert  <eggert@twinsun.com>
84452
84453         * lib/alloca.c [defined emacs]: Include "lisp.h".
84454         (xalloc_die) [defined emacs]: New macro.
84455         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
84456         [! defined emacs]: Include <xalloc.h>.
84457         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
84458         (pointer): Typedef to POINTER_TYPE *.
84459         (malloc): Remove decl; we now always use xmalloc.
84460         (alloca): Use old-style definition, since Emacs needs this.
84461         Check for arithmetic overflow when computing combined size.
84462
84463 2002-12-04  Paul Eggert  <eggert@twinsun.com>
84464
84465         Do not generate unlocked-io.h automatically, since it's easier to
84466         maintain it by hand.
84467
84468         * lib/unlocked-io.h: New file, from GNU diffutils,
84469         but with proper copyright notice and attribution.
84470         * lib/gen-uio: Remove.
84471         * lib/Makefile.am: Add copyright notice.
84472         (libfetish_a_SOURCES): Add unlocked-io.h.
84473         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
84474         (DISTCLEANFILES, io_functions): Remove macros.
84475         (EXTRA_DIST): Remove gen_uio.
84476         (unlocked-io.h): Remove rule.
84477
84478 2002-12-04  Jim Meyering  <jim@meyering.net>
84479
84480         Reflect the fact that stat.c and lstat.c are no longer generated.
84481         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
84482         (DISTCLEANFILES): Likewise.
84483         (EXTRA_DIST): Likewise.
84484         (all_local): Don't depend on stat.c or lstat.c.
84485         (stat.c, lstat.c): Remove rules.
84486         (EXTRA_DIST): Remove xstat.in.
84487
84488         * lib/xstat.in: Remove file.  Contents moved into stat.c.
84489         * lib/stat.c: New file.  Contents mostly from xstat.in.
84490         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
84491         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
84492
84493         * lib/safe-read.c: Rework so that it may serve to define safe_write,
84494         too.
84495         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
84496
84497 2002-12-03  Jim Meyering  <jim@meyering.net>
84498
84499         * lib/safe-read.c, safe-write.c: Change variable names and comments,
84500         but not semantics, to minimize the differences between these two files.
84501         (safe_read): Change comment to mention SAFE_READ_ERROR.
84502
84503         * lib/safe-read.c (IS_EINTR): Define.
84504         (safe_read): Use IS_EINTR in place of in-function cpp directives.
84505
84506 2002-12-02  Jim Meyering  <jim@meyering.net>
84507
84508         * lib/safe-read.c (EINTR): Define.
84509         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84510         (INT_MAX): Provide fallback.
84511         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
84512
84513         * lib/safe-read.h (SAFE_READ_ERROR): Define.
84514
84515 2002-12-02  Bruno Haible  <bruno@clisp.org>
84516
84517         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
84518         Define, taken from safe-read.c.
84519         (INT_MAX): Provide fallback.
84520         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
84521         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
84522
84523         * lib/safe-read.c (EINTR): Remove definition.
84524         (safe_read): Don't use EINTR if it is absent.
84525
84526 2002-12-01  Jim Meyering  <jim@meyering.net>
84527
84528         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
84529         zero.
84530         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
84531
84532 2002-11-27  Paul Eggert  <eggert@twinsun.com>
84533
84534         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
84535         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
84536         with `if (! (value < limit)) abort ();', for readability.
84537
84538 2002-11-26  Karl Berry  <karl@gnu.org>
84539
84540         * lib/strdup.c: copy from libc again, with jim's ok.
84541         * lib/.cppi-disable: re-add strdup.c
84542
84543 2002-11-25  Karl Berry  <karl@gnu.org>
84544
84545         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
84546         instead of "strtol.c".
84547
84548 2002-11-25  Karl Berry  <karl@gnu.org>
84549
84550         * config/install-sh: update from automake for variable quoting, $0 in
84551         error msgs, etc.
84552
84553         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
84554         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
84555         entry.
84556
84557 2002-11-25  Jim Meyering  <jim@meyering.net>
84558
84559         * lib/mktime.c: Sync from libc, now that it has the latest fix.
84560
84561 2002-11-24  Karl Berry  <karl@gnu.org>
84562
84563         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
84564         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
84565
84566 2002-11-24  Jim Meyering  <jim@meyering.net>
84567
84568         Update from coreutils:
84569
84570         * lib/mktime.c: Merge in changes from libc.
84571
84572         Avoid a link-time failure on some Linux systems.
84573         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
84574         (otherwise).
84575         (__mon_yday): Declare with the STATIC attribute.
84576         (__mktime_internal): Likewise.
84577         Based on a report from Greg Schafer.
84578
84579 2002-11-23  Jim Meyering  <jim@meyering.net>
84580
84581         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
84582         Use `unsigned', not `int', as type of index.
84583
84584         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
84585
84586         * lib/fsusage.c: Remove unneeded parentheses around operands of
84587         `defined'.
84588
84589 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84590
84591         * lib/quotearg.h: Allow multiple inclusion by surrounding with
84592         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
84593         so that we can be included first.
84594         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
84595         * lib/quotearg.c: Include quotearg.h immediately after config.h.
84596         No need to include stddef.h or sys/types.h any more.
84597         Surround local include files with "", not "<>".
84598         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
84599         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
84600         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
84601         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
84602         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
84603         (ISPRINT): Remove; no longer needed now that we assume C89.
84604
84605         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
84606         Preserve errno.
84607
84608         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
84609         quotearg_char): Use SIZE_MAX rather than
84610         (size_t) -1 when we are talking about "infinity".
84611
84612         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
84613
84614 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84615
84616         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
84617         hint that one should use `if (! x) abort ();' rather than `assert
84618         (x);', and anyway it's one less thing to worry about configuring.
84619         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
84620         hash_rehash, hash_insert): Use abort rather than assert.
84621
84622 2002-11-22  Bruno Haible  <bruno@clisp.org>
84623
84624         * lib/safe-read.h: Assume C89. Add comments.
84625         (safe_read): Change return type to size_t.
84626         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
84627         byte counts > SSIZE_MAX correctly.
84628         * lib/safe-write.h: New file.
84629         * lib/safe-write.c: New file.
84630         * lib/full-read.h: New file.
84631         * lib/full-read.c: New file.
84632         * lib/full-write.h: Assume C89. Add comments.
84633         * lib/full-write.c: Include safe-write.h.
84634         (full_write): Rewritten to use safe_write.
84635         Suggested by Jim Meyering and Paul Eggert.
84636
84637 2002-11-21  Jim Meyering  <jim@meyering.net>
84638
84639         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
84640
84641         Merge in changes from the coreutils.
84642
84643         2002-09-25  Paul Eggert  <eggert@twinsun.com>
84644         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
84645         <stdint.h>.
84646         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
84647         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
84648         int.  Work more efficiently if X is the same width as uintmax_t.
84649         Do not compare X to -1, to avoid bogus compiler warning.
84650         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
84651         Don't assume that f_frsize and f_bsize are the same type.
84652
84653         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
84654         warning on FreeBSD.
84655
84656         * lib/makepath.c (make_path): Restore umask *before* creating the final
84657         component.
84658         (make_path): Minor reformatting.
84659
84660         * lib/xmalloc.c: Adjust to work with new autoconf macros,
84661         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
84662         HAVE_MALLOC/HAVE_REALLOC.
84663
84664         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
84665         dummy ones.  At least on GNU/Linux systems, `auto' means something
84666         else.
84667         From Michael Stone.
84668
84669 2002-11-21  Bruno Haible  <bruno@clisp.org>
84670
84671         Remove case insensitive option matching.
84672         * lib/argmatch.h (argcasematch): Remove declaration.
84673         (ARGCASEMATCH): Remove macro.
84674         (__xargmatch_internal): Remove case_sensitive argument.
84675         (XARGMATCH): Update.
84676         (XARGCASEMATCH): Remove macro.
84677         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
84678         case_sensitive argument.
84679         (argcasematch): Remove function.
84680         (__xargmatch_internal): Remove case_sensitive argument.
84681         (main): Use XARGMATCH instead of XARGCASEMATCH.
84682
84683         * lib/xmalloc.c: Change compile-time error message. Add comment about
84684         required autoconf version.
84685
84686 2002-11-20  Paul Eggert  <eggert@twinsun.com>
84687
84688         Merge argmatch cleanups from Bison.  Assume C89.
84689
84690         * lib/argmatch.c: Include config.h here, not in argmatch.h.
84691         Include stdlib.h, for EXIT_FAILURE.
84692         Always include <string.h>, since we assume C89.
84693         (EXIT_FAILURE): Remove pre-C89 bug workaround.
84694         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
84695         Include <stddef.h> instead, since it's all we need for size_t.
84696         (PARAMS): Remove.  All uses removed.
84697         (ARRAY_CARDINALITY): Do not bother to #undef.
84698         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
84699         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84700         Remove unnecessary parentheses.
84701         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84702         Insert necessary parentheses.
84703         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
84704         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
84705
84706 2002-11-19  Bruno Haible  <bruno@clisp.org>
84707
84708         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
84709         * lib/mbswidth.h: Include <stddef.h>, for size_t.
84710
84711         * lib/mbswidth.h (PARAMS): Remove macro.
84712         (mbswidth, mbsnwidth): Use ANSI C function declarations.
84713         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
84714
84715         * lib/gcd.h (PARAMS): Remove macro.
84716         (gcd): Use ANSI C function declarations.
84717         * lib/gcd.c (gcd): Likewise.
84718
84719 2002-11-15  Bruno Haible  <bruno@clisp.org>
84720
84721         * lib/strcspn.c: Include <stddef.h>.
84722         (strcspn): Use ANSI C function declaration. Change return type to
84723         size_t. Use NULL.
84724         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
84725         (strpbrk): Use NULL.
84726         * lib/strpbrk.h (PARAMS): Remove macro.
84727         (strpbrk): Use ANSI C function declaration.
84728         * lib/strstr.c: Don't include <sys/types.h>.
84729         * lib/strstr.h (PARAMS): Remove macro.
84730         (strstr): Use ANSI C function declarations.
84731
84732 2002-11-14  Karl Berry  <karl@gnu.org>
84733
84734         * config/mkinstalldirs: `do' on separate line, instead of
84735         `for var; do'.
84736
84737 2002-11-06  Bruno Haible  <bruno@clisp.org>
84738
84739         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
84740         * lib/gcd.c (gcd): Likewise.
84741
84742 2002-11-05  Bruno Haible  <bruno@clisp.org>
84743
84744         * lib/gcd.h: New file, from gettext-0.11.5.
84745         * lib/gcd.c: New file, from gettext-0.11.5.
84746
84747 2002-11-05  Bruno Haible  <bruno@clisp.org>
84748
84749         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84750         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84751         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84752         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84753
84754         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
84755         <libintl.h>.
84756         * lib/makepath.c: Include gettext.h instead of <locale.h> and
84757         <libintl.h>.
84758
84759         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
84760         * lib/human.c: Include gettext.h instead of <libintl.h>.
84761         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
84762         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
84763         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
84764         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
84765         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
84766         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
84767         (textdomain): Remove definition.
84768         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
84769
84770         * lib/long-options.c: Remove include of <libintl.h> and definition of
84771         _.
84772         * lib/same.c: Remove include of <libintl.h> and definition of _.
84773
84774 2002-11-04  Owen Taylor  <otaylor@redhat.com>
84775
84776         * lib/config.charset: A few additions for Solaris.
84777
84778 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84779
84780         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
84781         * lib/localcharset.c (locale_charset): Declare as extern "C".
84782
84783 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84784
84785         * lib/config.charset: msdos in uk_UA uses CP1125.
84786
84787 2002-11-04  Bruno Haible  <bruno@clisp.org>
84788
84789         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
84790         * lib/strcase.h: New file, from GNU gettext-0.11.5.
84791         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
84792         * lib/strstr.h: New file, from GNU gettext-0.11.5.
84793         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
84794
84795 2002-11-04  Bruno Haible  <bruno@clisp.org>
84796
84797         * lib/localcharset.c (locale_charset): Don't return an empty string.
84798
84799 2002-11-04  Bruno Haible  <bruno@clisp.org>
84800
84801         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
84802         aliases.
84803
84804 2002-11-04  Bruno Haible  <bruno@clisp.org>
84805
84806         * lib/config.charset: Update for newest glibc. Add canonical names
84807         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
84808
84809 2002-11-04  Bruno Haible  <bruno@clisp.org>
84810
84811         * lib/config.charset: Add support for NetBSD.
84812
84813 2002-11-04  Bruno Haible  <bruno@clisp.org>
84814
84815         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
84816
84817 2002-11-01  Bruno Haible  <bruno@clisp.org>
84818
84819         * configure.in: Add AC_CONFIG_AUX_DIR call.
84820         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
84821         test/Makefile.
84822         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
84823
84824 2002-09-28  Karl Berry  <karl@gnu.org>
84825
84826         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
84827         installed automake until the next release, since changes have been
84828         made.
84829
84830 2002-09-25  Karl Berry  <karl@gnu.org>
84831
84832         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
84833         * lib/getopt*: copy from libc/posix.
84834         * lib/gettext.h: copy from gettext.
84835         * lib/.cppi-disable: add strdup.c, gettext.h.
84836
84837 2002-09-25  Karl Berry  <karl@gnu.org>
84838
84839         * config/srclist.txt: enable gettext.h check.
84840         * config/config.{guess,sub}: update from prep.
84841         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
84842                 from automake 1.6.3.
84843         See srclist*.
84844
84845 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
84846
84847         * regex.c (PATFETCH): Remove the translating fetch.
84848         (PATFETCH_RAW): Rename to PATFETCH.
84849         (set_image_of_range): New fun.
84850         (SET_RANGE_TABLE_WORK_AREA): Use it.
84851         (regex_compile): Don't translate the pattern chars so eagerly.
84852         Only do it when inserting an `exactn' bytecode or when handling
84853         a char-range.
84854         (mutually_exclusive_p): Avoid empty statement.
84855
84856 2002-07-06  Jim Meyering  <meyering@lucent.com>
84857
84858         * m4/README: Don't mention Makefile.am.in.
84859         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
84860
84861 2002-07-01  Jim Meyering  <meyering@lucent.com>
84862
84863         * lib/c-stack.c: Include sys/time.h.
84864         From Volker Borchert.
84865
84866 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84867
84868         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
84869
84870 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84871
84872         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
84873         New macro.  Use it uniformly instead of
84874         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
84875         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
84876         reported by Vin Shelton.
84877
84878 2002-06-22  Paul Eggert  <eggert@twinsun.com>
84879
84880         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
84881         Do not assume SA_SIGINFO behavior.
84882         Bug reported by Jim Meyering on NetBSD 1.5.2.
84883
84884 2002-06-22  Jim Meyering  <meyering@lucent.com>
84885
84886         * m4/c-stack.m4: New file, from diffutils-2.8.2.
84887         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
84888
84889         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
84890         now that configure.ac uses AC_GNU_SOURCE.
84891         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
84892         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
84893
84894         Update to latest tools.  Suggestions from Paul Eggert.
84895         * m4/stdbool.m4: New file, from diffutils-2.8.2.
84896         * m4/gnu-source.m4: Update from diffutils-2.8.2.
84897         * m4/fnmatch.m4: Likewise.
84898         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
84899         to AC_HEADER_STDBOOL
84900
84901 2002-06-22  Jim Meyering  <meyering@lucent.com>
84902
84903         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
84904         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
84905
84906 2002-06-22  Jim Meyering  <meyering@lucent.com>
84907
84908         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
84909
84910         * lib/exitfail.c, exitfail.h: Likewise.
84911         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
84912
84913         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
84914         of fnmatch.h.
84915         (EXTRA_DIST): Add fnmatch_loop.c.
84916         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
84917
84918         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
84919         * lib/fnmatch.c: Update from diffutils-2.8.2.
84920         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
84921         * lib/fnmatch.h: Remove file.
84922
84923 2002-06-21  Jim Meyering  <meyering@lucent.com>
84924
84925         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
84926         * m4/mbrtowc.m4: Likewise.
84927
84928         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
84929         * m4/mbswidth.m4: Reflect name change:
84930         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
84931         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84932
84933         * m4/lib-link.m4: Update from gettext-0.11.2.
84934         * m4/gettext.m4: Likewise.
84935
84936         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
84937         From Alfred M. Szmidt.
84938
84939 2002-06-18  Paul Eggert  <eggert@twinsun.com>
84940
84941         * lib/file-type.h: Report an error if neither S_ISREG nor
84942         S_IFREG is defined, instead of using a test specific to glibc
84943         2.2.  This should be safe, since POSIX requires S_ISREG and
84944         Unix Version 7 had S_IFREG.  We don't need to check for
84945         <sys/types.h> since we don't use any symbols that it defines.
84946
84947 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
84948
84949         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
84950         $@-t, so that each temporary file name is unique and valid in the first
84951         8 characters, for operation under DOS.
84952
84953 2002-06-15  Paul Eggert  <eggert@twinsun.com>
84954
84955         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
84956
84957 2002-06-15  Jim Meyering  <meyering@lucent.com>
84958
84959         Work even with DJGPP 2.03, which lacks support for symlinks.
84960         From Richard Dawe.
84961         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
84962         is defined.
84963         * lib/lchown.c (S_ISLNK): Likewise.
84964
84965 2002-06-15  Jim Meyering  <meyering@lucent.com>
84966
84967         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
84968         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
84969         have been included before this file.
84970
84971 2002-06-14  Jim Meyering  <meyering@lucent.com>
84972
84973         * lib/file-type.h: Use the version from diffutils-2.8.2.
84974         * lib/file-type.c: Likewise.
84975
84976 2002-06-07  Jim Meyering  <meyering@lucent.com>
84977
84978         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
84979         They're needed at least for NetBSD 1.5.2.
84980         ($statxfs_includes): Include those same headers.
84981         ($statxfs_includes): Include sys/vfs.h if available.
84982         ($statxfs_includes): Likewise for sys/statvfs.h.
84983         Check for the following members in both structs statfs and statvfs:
84984         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
84985
84986 2002-06-01  Jim Meyering  <meyering@lucent.com>
84987
84988         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
84989         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
84990
84991 2002-05-28  Jim Meyering  <meyering@lucent.com>
84992
84993         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
84994         Reported by Volker Borchert.
84995
84996 2002-05-27  Jim Meyering  <meyering@lucent.com>
84997
84998         Fix a problem seen only on nonconforming systems whereby ls.c's
84999         use of localtime, and then of gettimeofday would cause trouble:
85000         the localtime call used to initialize rpl_gettimeofday's save
85001         mechanism would clobber ls's current local time information so
85002         that in any long listing the first file would always be listed
85003         with date 1970-01-01.  Analysis by Volker Borchert.
85004
85005         * lib/gettimeofday.c (localtime): Undefine.
85006         (rpl_localtime): New function.
85007
85008 2002-05-27  Jim Meyering  <meyering@lucent.com>
85009
85010         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85011         localtime.
85012
85013         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85014         use the replacement function; it wouldn't resolve at link time.
85015         Reported by Volker Borchert.
85016
85017 2002-05-22  Jim Meyering  <meyering@lucent.com>
85018
85019         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85020         file-type.h.
85021         * lib/file-type.h: New file.
85022         * lib/file-type.c (file_type): New file/function.  Extracted from
85023         diffutils.
85024
85025 2002-04-30  Jim Meyering  <meyering@lucent.com>
85026
85027         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85028
85029 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85030
85031         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85032
85033 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85034
85035         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85036         Do not check for alloca.h (no longer used) or stdbool.h (was never
85037         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85038
85039 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85040
85041         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85042
85043 2002-04-29  Jim Meyering  <meyering@lucent.com>
85044
85045         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85046         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85047         Use AC_FUNC_STRNLEN here instead.
85048
85049         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85050         With autoconf-2.53a, it's part of AC_PROG_CC.
85051
85052 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85053
85054         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85055         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85056
85057 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85058
85059         * lib/sig2str.h, lib/sig2str.c: New files.
85060         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85061
85062 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85063
85064         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85065         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85066         of 127, since 64 is the largest conceivable number for ancient
85067         nonstandard hosts.
85068         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85069
85070 2002-04-28  Jim Meyering  <meyering@lucent.com>
85071
85072         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85073
85074 2002-04-24  Jim Meyering  <meyering@lucent.com>
85075
85076         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85077         (jm_PREREQ): Use it.
85078
85079         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85080         mach/mach.h fcntl.h.
85081         Check for this function: setlocale.
85082
85083 2002-04-24  Jim Meyering  <meyering@lucent.com>
85084
85085         * lib/gettext.h: New file, from Gettext.
85086         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85087         (libfetish_a_SOURCES): Add gettext.h.
85088
85089 2002-04-16  Jim Meyering  <meyering@lucent.com>
85090
85091         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85092         ut_pid, ut_id, ut_exit.
85093
85094 2002-04-16  Jim Meyering  <meyering@lucent.com>
85095
85096         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85097         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85098         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85099
85100 2002-04-12  Jim Meyering  <meyering@lucent.com>
85101
85102         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85103         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85104         existence of the getmntinfo function.  Needed for Darwin 5.3.
85105
85106         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85107         This is necessary at least on Darwin 5.3.
85108
85109         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85110         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85111         strnlen.o in the library, and that makes some versions of ranlib
85112         object.
85113
85114 2002-04-12  Jim Meyering  <meyering@lucent.com>
85115
85116         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85117
85118 2002-04-09  Jim Meyering  <meyering@lucent.com>
85119
85120         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85121         to be more precise.  Rather than saying we're checking whether the
85122         function `works', say what we're testing.
85123         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85124         Reported by Bruno Haible.
85125
85126 2002-03-10  Jim Meyering  <meyering@lucent.com>
85127
85128         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85129         Suggestion from Santiago Vila.
85130
85131 2002-03-08  Jim Meyering  <meyering@lucent.com>
85132
85133         * lib/rename.c: Mention that this wrapper is needed also on
85134         mips-dec-ultrix4.4 systems.
85135
85136 2002-03-02  Jim Meyering  <meyering@lucent.com>
85137
85138         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85139         not HAVE_CLOCK_SETTIME.
85140
85141 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85142
85143         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85144         Check for clock_settime.
85145
85146 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85147
85148         * lib/nanosleep.h: Rename to....
85149         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85150
85151         * lib/gettime.c: New file.
85152         * lib/settime.c: New file.
85153         * lib/stime.c: Remove.
85154
85155         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85156         timespec.h.  Remove nanosleep.h.
85157
85158 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85159
85160         * m4/acl.m4: New file.
85161         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85162         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85163
85164 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85165
85166         * lib/acl.c, lib/acl.h: New files.
85167         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85168
85169 2002-02-24  Jim Meyering  <meyering@lucent.com>
85170
85171         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85172         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85173         cause trouble.  Reported by Nelson Beebe.
85174
85175 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85176
85177         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85178         compilers that don't know that xalloc_die never returns.
85179
85180 2002-02-20  Jim Meyering  <meyering@lucent.com>
85181
85182         * lib/getdate.c: Regenerate using bison-1.33.
85183
85184 2002-02-17  Jim Meyering  <meyering@lucent.com>
85185
85186         * config/config.guess (main): Don't use `head -1'; it's no longer
85187         portable. Use `sed 1q' instead.
85188
85189 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85190
85191         * m4/codeset.m4: Upgrade to gettext-0.11.
85192         * m4/gettext.m4: Upgrade to gettext-0.11.
85193         * m4/glibc21.m4: Upgrade to gettext-0.11.
85194         * m4/iconv.m4: Upgrade to gettext-0.11.
85195         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85196         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85197         * m4/lib-ld.m4: New file, from gettext-0.11.
85198         * m4/lib-link.m4: New file, from gettext-0.11.
85199         * m4/lib-prefix.m4: New file, from gettext-0.11.
85200         * m4/progtest.m4: Upgrade to gettext-0.11.
85201
85202 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85203
85204         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85205         (jm_PREREQ): Use it.
85206
85207 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85208
85209         * lib/posixver.c, lib/posixver.h: New files.
85210         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85211
85212 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85213             Bruno Haible  <bruno@clisp.org>
85214
85215         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85216         (fwrite_success_callback): New declaration.
85217         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85218         print_unicode_char. Call failure callback instead of error.
85219         (fwrite_success_callback): New function.
85220         (exit_failure_callback): New function.
85221         (fallback_failure_callback): New function.
85222         (print_unicode_char): Call unicode_to_mb.
85223
85224 2002-01-26  Jim Meyering  <meyering@lucent.com>
85225
85226         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85227         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85228
85229 2002-01-26  Jim Meyering  <meyering@lucent.com>
85230
85231         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85232
85233 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85234
85235         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85236
85237 2002-01-22  Jim Meyering  <meyering@lucent.com>
85238
85239         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85240         Otherwise, some versions of automake would omit the rule that makes
85241         Makefile from Makefile.in.
85242
85243 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85244
85245         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
85246         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85247         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
85248         (memcoll): Set errno to zero if there is no error.
85249
85250         * lib/quotearg.c (quotearg_buffer_restyled):
85251         Fix bug with quoting buffers containing NUL when backslashing escapes.
85252         This bug was exposed by the other changes in this patch.
85253         (quotearg_n_options): New arg ARGSIZE.
85254         All callers changed.
85255         (quoting_options_from_style): New function.
85256         (quotearg_n_style): Use it.
85257         (quotearg_n_style_mem): New function.
85258
85259         * lib/quotearg.h (quotearg_n_style_mem): New function.
85260
85261 2002-01-19  Jim Meyering  <meyering@lucent.com>
85262
85263         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
85264         Remove useless quotes: DF_PROG="df".
85265         * m4/strnlen.m4: New file.
85266
85267 2002-01-16  Paul Eggert  <eggert@twinsun.com>
85268
85269         * lib/backupfile.c (ISDIGIT): Comment fix.
85270         * lib/getdate.y (ISDIGIT): Likewise.
85271         * lib/posixtm.c (ISDIGIT, year): Likewise.
85272         * lib/strverscmp.c (ISDIGIT): Likewise.
85273         * lib/userspec.c (ISDIGIT): Likewise.
85274
85275 2002-01-16  Jim Meyering  <meyering@lucent.com>
85276
85277         * lib/getdate.y: Add three semicolons, each just before a closing
85278         brace. Bison (as of version 1.31) no longer papers over that mistake.
85279
85280 2002-01-05  Jim Meyering  <meyering@lucent.com>
85281
85282         * lib/version-etc.c (version_etc_copyright): Update copyright year.
85283
85284 2001-12-19  Paul Eggert  <eggert@twinsun.com>
85285
85286         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
85287         not silently exit merely because the output buffer happens to
85288         have nothing pending.
85289
85290 2001-12-18  Paul Eggert  <eggert@twinsun.com>
85291
85292         See the big note in ../ChangeLog.
85293         * lib/human.c (suffixes): Prefer K to k for 1024.
85294         (generate_suffix_backwards): New function.
85295         (human_readable_inexact): Use it.
85296         * lib/xstrtol.c (__xstrtol): If there is no number but there
85297         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
85298         Accept 'K' as well as 'k'.
85299
85300 2001-12-15  Jim Meyering  <meyering@lucent.com>
85301
85302         * lib/regex.h (__restrict_arr): Update from libc.
85303
85304         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
85305         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
85306         (STREQ): Define.
85307
85308 2001-12-14  Jim Meyering  <meyering@lucent.com>
85309
85310         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
85311         Suggestion from Bruno Haible.
85312
85313 2001-12-10  Jim Meyering  <meyering@lucent.com>
85314
85315         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
85316         xrealloc, Instead, include "xalloc.h".
85317         (initbuffer): Don't cast xmalloc return value to char*.
85318         (readline): Reword comment.
85319         Don't cast xrealloc return value to char*
85320         Return NULL, not 0.
85321
85322 2001-12-09  Jim Meyering  <meyering@lucent.com>
85323
85324         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
85325         about `signed and unsigned type in conditional expression'.
85326         * lib/posixtm.c (posix_time_parse): Likewise.
85327
85328         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
85329
85330         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
85331         to avoid a pedantic warning.
85332
85333         * lib/getstr.c: Don't include assert.h.
85334         (getstr): Remove warning-evoking assertions.
85335         Return -1 if offset parameter is out of bounds.
85336         Change the type of a local from int to size_t.
85337
85338         * lib/strftime.c (my_strftime_localtime_r): Include this function
85339         definition in the `#if ! HAVE_TM_GMTOFF' block.
85340
85341         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
85342         Include xalloc.h instead.
85343
85344 2001-12-02  Jim Meyering  <meyering@lucent.com>
85345
85346         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85347         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85348         included.
85349
85350         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85351         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85352
85353 2001-11-30  Akim Demaille  <akim@epita.fr>
85354
85355         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85356         before being defined.
85357
85358 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85359
85360         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85361         First arg is int, not unsigned.
85362         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85363         (SIZE_MAX, UINT_MAX): New macros.
85364         (quotearg_n_options): Abort if N is negative.
85365         Avoid overflow check on hosts where size_t is 64 bits and int
85366         is 32 bits, as overflow is impossible there.
85367         Fix off-by-one typo that caused unnecessary reallocation.
85368
85369 2001-11-27  Jim Meyering  <meyering@lucent.com>
85370
85371         * lib/tempname.c: Merge with version from libc.
85372         * lib/regex.c: Likewise.
85373
85374         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
85375         systems for which STDC_HEADERS is 0, it was not included, resulting in
85376         a warning about an integer-to-pointer conversion problem with getenv.
85377         Reported by Volker Borchert.
85378
85379 2001-11-26  Jim Meyering  <meyering@lucent.com>
85380
85381         * lib/gtod.h: Remove file.
85382         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
85383         * lib/gettimeofday.c: Don't include gtod.h.
85384         (GTOD_init): Remove function.
85385         (rpl_gettimeofday): Do its job here instead, rather than aborting.
85386         Suggestion from Volker Borchert.
85387
85388 2001-11-23  Jim Meyering  <meyering@lucent.com>
85389
85390         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
85391         it.
85392         * lib/hash.c (struct hash_table): Define it here instead.
85393
85394 2001-11-22  Jim Meyering  <meyering@lucent.com>
85395
85396         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
85397
85398 2001-11-20  Jim Meyering  <meyering@lucent.com>
85399
85400         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
85401         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
85402
85403 2001-11-19  Jim Meyering  <meyering@lucent.com>
85404
85405         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
85406         directory.  Use "conftestXXXXXX" as the template.
85407         Suggestion from Paul Eggert.
85408
85409         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
85410         immediately, so the test doesn't mistakenly hit the max-open-files
85411         limit.
85412
85413 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85414
85415         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85416         (TEMPORARIES): New macro.
85417         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
85418         removes an artificial limitation (e.g. HP-UX 10.20, where
85419         TMP_MAX is 17576).
85420
85421 2001-11-18  Jim Meyering  <meyering@lucent.com>
85422
85423         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
85424
85425 2001-11-18  Jim Meyering  <meyering@lucent.com>
85426
85427         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
85428         on SunOS 4.
85429
85430         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
85431         files will be created before anything else.
85432
85433 2001-11-17  Paul Eggert  <eggert@twinsun.com>
85434
85435         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
85436         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
85437
85438 2001-11-17  Jim Meyering  <meyering@lucent.com>
85439
85440         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
85441         Prompted by a report from Bob Proulx.
85442
85443         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
85444         Instead, require UTILS_FUNC_MKSTEMP.
85445
85446 2001-11-17  Jim Meyering  <meyering@lucent.com>
85447
85448         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
85449         Now, that's done as part of AC_FUNC_STRTOD.
85450
85451 2001-11-17  Jim Meyering  <meyering@lucent.com>
85452
85453         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
85454         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
85455         rather than group writable.  Patch by Juan F. Codagnone.
85456
85457         * lib/readtokens.c: Remove explicit declarations of xmalloc and
85458         xrealloc, Instead, include "xalloc.h".
85459
85460         * lib/mountlist.c: Include unlocked-io.h after all system headers.
85461         Remove explicit declarations of xmalloc, xrealloc,
85462         and xstrdup.  Instead, include "xalloc.h".
85463
85464         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
85465         unlocked-io.h.
85466         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
85467         Likewise.
85468         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
85469
85470         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
85471         Reported by Padraig Brady.
85472
85473         * lib/mkstemp.c: #undef mkstemp.
85474         Include config.h.
85475         (rpl_mkstemp): Rename from mkstemp.
85476         Protoize.
85477
85478 2001-11-16  Jim Meyering  <meyering@lucent.com>
85479
85480         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
85481         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
85482         determine the amount of total physical memory, use pstat_getstatic.
85483         HPUX-11 doesn't define _SC_PHYS_PAGES.
85484         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
85485         If sysconf couldn't be used to determine the amount of available
85486         physical memory, use both pstat_getstatic and pstat_getdynamic.
85487         Based on a patch from Bob Proulx.
85488
85489 2001-11-10  Jim Meyering  <meyering@lucent.com>
85490
85491         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
85492         (jm_PREREQ): Use it.
85493
85494 2001-11-09  Jim Meyering  <meyering@lucent.com>
85495
85496         * m4/jm-macros.m4: Require autoconf-2.52f.
85497         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
85498         Use these AC_-prefixed names, not the AM_-prefixed ones.
85499
85500         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
85501
85502 2001-11-05  Jim Meyering  <meyering@lucent.com>
85503
85504         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
85505
85506 2001-11-04  Jim Meyering  <meyering@lucent.com>
85507
85508         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
85509         $DEFS.
85510
85511 2001-11-03  Jim Meyering  <meyering@lucent.com>
85512
85513         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
85514         of AC_DEFUN.
85515
85516         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
85517         know the name of the variable in the macro definition.
85518
85519 2001-11-03  Jim Meyering  <meyering@lucent.com>
85520
85521         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
85522         in argmatch_to_argument call.
85523
85524         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
85525         argument.
85526
85527         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
85528         e.g., a fault due to an attempt to free a NULL pointer.
85529
85530 2001-11-01  Jim Meyering  <meyering@lucent.com>
85531
85532         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
85533         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
85534
85535 2001-11-01  Jim Meyering  <meyering@lucent.com>
85536
85537         * lib/dirfd.c, lib/dirfd.h: New files.
85538         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
85539
85540         * lib/hash.c (hash_print) [TESTING]: Clean up.
85541
85542 2001-10-22  Paul Eggert  <eggert@twinsun.com>
85543
85544         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
85545         to avoid a warning if -Wall.
85546
85547 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
85548
85549         * README: New file
85550         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
85551         (per RMS's instructions, this is now the canonical source)
85552         * lgpl/, gpl/: New directories.
85553
85554 2001-10-21  Paul Eggert  <eggert@twinsun.com>
85555
85556         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
85557
85558 2001-10-21  Jim Meyering  <meyering@lucent.com>
85559
85560         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
85561         this code would end up calling gettext even in packages built
85562         with --disable-nls.
85563         * lib/getopt.c (_): Likewise.
85564         * lib/regex.c (_): Likewise.
85565
85566 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85567
85568         * m4/error.m4 (jm_PREREQ_ERROR):
85569         Do not invoke AC_CHECK_FUNCS with strerror_r, as
85570         AC_FUNC_STRERROR_R does that.
85571         Check for strerror declaration.
85572
85573         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
85574         are supposed to have them these days.
85575         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
85576         Merge changes from latest Autoconf CVS.
85577         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
85578         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
85579         POSIX decided to standardize on the int flavor of strerror_r.
85580
85581 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85582
85583         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
85584         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
85585         Use strerror_r that is only a macro, even if it is not a function.
85586         (strerror): Check for HAVE_DECL_STRERROR before declaring.
85587         (private_strerror): Use prototypes, not old-style function definition.
85588         (print_errno_message): New function.
85589         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
85590         char*-flavored one.
85591         (error_tail, error, error_at_line): Use it.
85592
85593 2001-10-11  Jim Meyering  <meyering@lucent.com>
85594
85595         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
85596         and quote_n (1, ... to avoid clobbering a buffer.
85597
85598 2001-10-05  Jim Meyering  <meyering@lucent.com>
85599
85600         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
85601         hash-pjw.h.
85602         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
85603         * lib/hash-pjw.h: New file.
85604
85605 2001-09-30  Jim Meyering  <meyering@lucent.com>
85606
85607         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
85608         `struct fsstat' has the `f_fstypename' member.
85609         Use that to define FS_TYPE, which is now used to make
85610         the getfsstat link test tighter.
85611
85612 2001-09-30  Jim Meyering  <meyering@lucent.com>
85613
85614         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
85615         Include <sys/ucred.h>, for Apple Darwin.
85616         Include sys/mount.h and sys/fs_types.h only if available.
85617         (FS_TYPE): Define.
85618         (read_filesystem_list): Use FS_TYPE.
85619
85620 2001-09-29  Paul Eggert  <eggert@twinsun.com>
85621
85622         * lib/exclude.c (excluded_filename): 0 -> false, since it's
85623         a boolean context.
85624
85625 2001-09-29  Jim Meyering  <meyering@lucent.com>
85626
85627         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85628         [one-argument getmntent function]): Include stdio.h before mntent.h.
85629         SunOS 4.1.x needs it for the declaration of `FILE'.
85630         Patch by Volker Borchert.
85631
85632         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85633         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
85634         sys/fs_types.h, and make the link-test for getfsstat guard #include
85635         directives with appropriate #if HAVE_*_H tests so that we can
85636         detect getfsstat on Apple Darwin1.3.7 systems.
85637         Reported by Nelson Beebe.
85638         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
85639
85640 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85641
85642         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85643         #defines strtoimax.  Also treat the other strto* functions
85644         like strtoimax.
85645
85646         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85647         Check for strtoul and strtoumax,
85648         as those declarations are made even in the signed case.
85649         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
85650         Likewise, for strtol and strtoimax.
85651
85652 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85653
85654         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85655         #defines strtoimax.  Also treat the other strto* functions
85656         like strtoimax.
85657
85658         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
85659         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
85660         (strtoimax, strtoumax): Do not declare if already defined as a macro.
85661
85662 2001-09-26  Jim Meyering  <meyering@lucent.com>
85663
85664         Most macros in unlocked-io.h had the wrong number of arguments.
85665         * lib/gen-uio: New script.
85666         (USE_UNLOCKED_IO): Define to 1 if not already defined.
85667         * lib/unlocked-io.hin: Remove file.
85668         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
85669         rather than trying to embed it here.
85670         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
85671         Reported by Padraig Brady.
85672
85673 2001-09-25  Volker Borchert  <bt@teknon.de>
85674
85675         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
85676         `result'.
85677
85678 2001-09-24  Jim Meyering  <meyering@lucent.com>
85679
85680         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
85681
85682 2001-09-23  Jim Meyering  <meyering@lucent.com>
85683
85684         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
85685         instead of the mere test for existence of mntent.h.  The latter
85686         would get a false-positive on AIX 3.4 systems.
85687         In the outer getmntent if-block, don't die if neither of the getmntent
85688         tests succeeds.  Instead, just fall through and continue with the
85689         remaining tests.
85690
85691 2001-09-23  Jim Meyering  <meyering@lucent.com>
85692
85693         * lib/mountlist.c: Remove useless parentheses in #if directives.
85694         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
85695         the deprecated MOUNTED symbol is no longer defined in mntent.h.
85696
85697 2001-09-22  Jim Meyering  <meyering@lucent.com>
85698
85699         * m4/gettext.m4: New file.  From gettext.
85700         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
85701         * m4/progtest.m4: Likewise
85702         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
85703         * m4/glibc21.m4: Likewise.
85704
85705         * m4/libintl.m4: Remove.  No longer used.
85706
85707 2001-09-22  Jim Meyering  <meyering@lucent.com>
85708
85709         * lib/localcharset.c: Update from latest gettext.
85710         * lib/config.charset: Likewise.
85711
85712 2001-09-20  Jim Meyering  <meyering@lucent.com>
85713
85714         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
85715         strtoimax.
85716         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
85717         strtoumax.
85718
85719 2001-09-20  Jim Meyering  <meyering@lucent.com>
85720
85721         * lib/xstrtol.c (strtoimax): Guard declaration with
85722         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
85723         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
85724         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
85725         (strtoumax): Likewise, for completeness (it wasn't necessary).
85726
85727 2001-09-17  Paul Eggert  <eggert@twinsun.com>
85728
85729         * lib/strtoimax.c (HAVE_LONG_LONG):
85730         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
85731         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
85732         to work around bug in IBM C compiler.
85733
85734 2001-09-17  Jim Meyering  <meyering@lucent.com>
85735
85736         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
85737         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
85738         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
85739         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
85740         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
85741         whenever the right hand side need not be expanded by the shell.
85742
85743 2001-09-16  Paul Eggert  <eggert@twinsun.com>
85744
85745         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
85746         library.  It's not correct, as some older glibcs are buggy.
85747         fnmatch wasn't fixed until glibc 2.2.
85748
85749         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
85750         special shell magic here.
85751
85752 2001-09-16  Jim Meyering  <meyering@lucent.com>
85753
85754         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
85755         * m4/jm-macros.m4: Require it.
85756
85757 2001-09-16  Jim Meyering  <meyering@lucent.com>
85758
85759         * lib/mkdir.c: New file.
85760
85761 2001-09-15  Jim Meyering  <meyering@lucent.com>
85762
85763         * m4/jm-macros.m4: Check for help2man.
85764
85765 2001-09-11  Jim Meyering  <meyering@lucent.com>
85766
85767         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
85768         The body, by Paul Eggert, was moved here from configure.in.
85769         * m4/jm-macros.m4: Require UTILS_HOST_OS.
85770
85771 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85772
85773         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
85774         (jm_PREREQ): Use it.
85775
85776 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85777
85778         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
85779         Use ssize_t, not int, to store result of readlink.
85780         Check for ssize_t overflow as well as size_t overflow,
85781         as POSIX says the result of readlink is implementation-defined
85782         when ssize_t overflows.
85783         Remove unnecessary cast to char*.
85784         Use free+malloc instead of realloc, as the storage doesn't need
85785         to be preserved and it's clearer and can be more efficient that way.
85786         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
85787         * lib/xreadlink.h (xreadlink): Update prototype.
85788
85789 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85790
85791         * lib/xgetcwd.c: Revert some of the previous change; intead,
85792         fix the HAVE_GETCWD_NULL code to behave more like the
85793         !HAVE_GETCWD_NULL code used to.
85794
85795         Include "xalloc.h".
85796         (xgetcwd): Do not return NULL when memory is exhausted; instead,
85797         invoke xalloc_die.
85798
85799 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85800
85801         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
85802         sys/param.h, as pathmax.h includes them.
85803
85804 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85805
85806         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
85807         (jm_PREREQ_XGETCWD): New macro.
85808
85809         * m4/getcwd.m4: New file.
85810
85811 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85812
85813         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
85814         like the HAVE_GETCWD_NULL code.
85815         Include pathmax.h if not HAVE_GETCWD.
85816         Do not include xalloc.h.
85817         (INITIAL_BUFFER_SIZE): New symbol.
85818         Do not use xmalloc / xrealloc, since the caller is responsible for
85819         handling errors.  Preserve errno around `free' during failure.
85820         Do not overrun buffer when using getwd.
85821
85822 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85823
85824         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
85825         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
85826         getcwd (NULL, 0).
85827
85828 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85829
85830         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
85831         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
85832         spotted by Jim Meyering.
85833
85834 2001-09-03  Jim Meyering  <meyering@lucent.com>
85835
85836         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
85837         failure.
85838
85839 2001-09-02  Jim Meyering  <meyering@lucent.com>
85840
85841         * lib/error.c: Update from GNU libc.
85842
85843 2001-09-01  Jim Meyering  <meyering@lucent.com>
85844
85845         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
85846         Used by df.
85847
85848 2001-09-01  Jim Meyering  <meyering@lucent.com>
85849
85850         * lib/xreadlink.c: New file.
85851         * lib/xreadlink.h: New file.
85852         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
85853         xreadlink.h.
85854
85855         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
85856         doesn't conflict with sparc Solaris 7's definition in
85857         /usr/include/sys/int_types.h.
85858
85859         * lib/exclude.c: Use `""', not `<>' to #include non-system header
85860         files.
85861         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
85862         and strncasecmp as r-values.  Unixware didn't have declarations.
85863
85864 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85865
85866         * lib/xstrtol.h: Add copyright notice.
85867         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
85868         LONGINT_INVALID_SUFFIX_CHAR.
85869
85870 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85871
85872         * lib/xstrtol.c (strtoimax): New decl.
85873
85874 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85875
85876         * lib/xgetcwd.c: Don't include pathmax.h.
85877         Include stdlib.h and unistd.h if available.
85878         Include xalloc.h.
85879         (xmalloc, xstrdup, free): Remove decls.
85880         (xgetcwd): Don't assume sizes fit in unsigned.
85881         Check for overflow when computing sizes.
85882         Simplify reallocation code.
85883
85884 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85885
85886         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
85887         a directory's st_size can have an arbitrary value, so the old
85888         usage could waste an arbitrary amount of memory.  All uses
85889         changed.
85890         * lib/savedir.h: Update prototype.
85891
85892 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85893
85894         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
85895
85896         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
85897         old strtoimax.c.
85898
85899         Also, make the following further changes to make this file's
85900         configuration more similar to that of strtol.c:
85901         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
85902         (strtoumax, uintmax_t, strtoull, strtol): Remove.
85903         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
85904         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
85905         changed to signed values.
85906
85907         And make the following changes as well:
85908         Fix copyright notice, as 1999 was missing.
85909         (verify): New macro.
85910         (strtoimax): Check sizes at compile-time, not run-time.
85911         Prefer strtol to strtoll if both work.
85912         (main): Remove; it was not that useful and was a pain to maintain.
85913
85914         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
85915
85916 2001-08-31  Jim Meyering  <meyering@lucent.com>
85917
85918         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
85919         Use an initial, malloc'd, buffer of length 128 rather than
85920         a statically allocated one of length 1024.
85921
85922 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85923
85924         Simplify code, partly by assuming autoconf 2.52 semantics.
85925
85926         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
85927
85928         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
85929         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
85930         All uses removed.
85931         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
85932         Move AC_REQUIRE to next-to-top level, to avoid confusion.
85933         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
85934         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
85935         jm_AC_HEADER_INTTYPES_H.
85936         * m4/jm-macros.m4 (jm_MACROS): Likewise.
85937
85938         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
85939
85940         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85941         Quote first arg of AC_DEFUN.
85942         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
85943         since they are needed to parse the include file even if we need
85944         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
85945         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
85946         but with opposite signedness.
85947
85948 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85949
85950         Merge 'exclude' changes from tar 1.13.22.
85951         This fixes one or two unlikely storage allocation overflow bugs,
85952         but doesn't change user-visible behavior otherwise.
85953
85954 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85955
85956         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
85957         (jm_PREREQ_EXCLUDE): New macro.
85958
85959 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85960
85961         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
85962         tm to be declared.
85963
85964 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85965
85966         * lib/hash.c: Remove '2001' from copyright notice.
85967
85968 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85969
85970         * lib/full-write.h: New file.
85971         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
85972         * lib/full-write.c: Correct credits, as cccp.c no longer
85973         exists and anyway it was so heavily changed from the old cccp
85974         code as to be unrecognizable.  Include full-write.h.
85975         (full_write): Return size_t, with short writes meaning failure.
85976         All callers changed.  This fixes a bug with large buffers
85977         on 64-bit hosts.
85978         * lib/utime.c: Include full-write.h.
85979
85980 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85981
85982         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
85983         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
85984         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
85985         Include if available.
85986         (<xalloc.h>): Include
85987         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
85988         (verify): New macro.  Use it to verify that EXCLUDE macros do not
85989         collide with FNM macros.
85990         (struct patopts): New struct.
85991         (struct exclude): Use it, as exclude patterns now come with options.
85992         (new_exclude): Support above changes.
85993         (new_exclude, add_exclude_file):
85994         Initial size must now be a power of two to simplify overflow checking.
85995         (free_exclude, fnmatch_no_wildcards): New function.
85996         (excluded_filename): No longer requires options arg, as the options
85997         are determined by add_exclude.  Now returns bool, not int.
85998         (excluded_filename, add_exclude):
85999         Add support for the fancy new exclusion options.
86000         (add_exclude, add_exclude_file): Now takes int options arg.
86001         Check for arithmetic overflow when computing sizes.
86002         (add_exclude_file): xrealloc might modify errno, so don't
86003         realloc until after errno might be used.
86004
86005         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86006         New macros.
86007         (free_exclude): New decl.
86008         (add_exclude, add_exclude_file): Now takes int options arg.
86009         (excluded_filename): No longer requires options arg, as the options
86010         are determined by add_exclude.  Now returns bool, not int.
86011
86012 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86013
86014         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86015
86016 2001-08-27  Jim Meyering  <meyering@lucent.com>
86017
86018         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86019
86020         * lib/version-etc.c (N_): Remove definition.
86021         Revert most of last change.
86022         Instead, simply don't mark the `Copyright...' string for translation.
86023         Based on advice from Paul Eggert.
86024
86025         * lib/strtoxmax.c: Tweak comment.
86026
86027 2001-08-26  Jim Meyering  <meyering@lucent.com>
86028
86029         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86030
86031         * m4/xstrtoimax.m4: New file.
86032         * m4/xstrtoumax.m4: Add comments explaining why we
86033         AC_REPLACE_FUNCS(strtol).
86034
86035 2001-08-26  Jim Meyering  <meyering@lucent.com>
86036
86037         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86038         of copyright with `%s' so translators don't get an untranslated
86039         message in 2002.
86040         (COPYRIGHT_YEAR): Define.
86041         (version_etc): Use fprintf rather than fputs.
86042         Suggestion from Ulrich Drepper.
86043
86044         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86045
86046         * lib/strtoll.c: New file, from GNU libc.
86047         * lib/xstrtoimax.c: New file.
86048
86049         * lib/xstrtol.h: Add xstrtoimax.
86050         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86051         * lib/strtoimax.c: New file.  Likewise, but first define
86052         STRTOUXMAX_SIGNED.
86053
86054         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86055         ...
86056         * lib/strtoxmax.c: ... then renamed to this.
86057
86058 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86059
86060         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86061         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86062         (jm_AC_TYPE_INTMAX_T): New macro.
86063         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86064
86065         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86066
86067         * m4/longlong.m4: Renamed from ulonglong.m4.
86068         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86069         * m4/uintmax_t.m4: Removed.
86070
86071 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86072
86073         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86074         Port to Solaris 8, where 'sed' requires a space after the 'r'
86075         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86076         Redirect output to $tmp just once.
86077
86078 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86079
86080         * lib/addext.c (<errno.h>): Include.
86081         (errno): Declare if not defined.
86082         (addext): Work correctly when pathconf returns -1 and leaves
86083         errno alone because there is no limit.  Also, work even if
86084         pathconf returns a value greater than SIZE_MAX.
86085
86086 2001-08-12  Jim Meyering  <meyering@lucent.com>
86087
86088         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86089         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86090         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86091         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86092         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86093         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86094         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86095         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86096         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86097         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86098         utime.m4, utimes.m4, xstrtoumax.m4:
86099         Quote the first argument in each use of AC_DEFUN.
86100
86101 2001-08-12  Jim Meyering  <meyering@lucent.com>
86102
86103         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86104         Simply `return getcwd (NULL, 0);'.
86105         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86106         Use 1300 as initial value for length, not PATH_MAX.
86107
86108         * lib/pathmax.h: Clean up cpp syntax.
86109
86110 2001-08-12  Jim Meyering  <meyering@lucent.com>
86111
86112         * lib/gettimeofday.c: New file.
86113         * lib/gtod.h: New file.
86114         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86115
86116 2001-08-05  Jim Meyering  <meyering@lucent.com>
86117
86118         * m4/jm-macros.m4: Require autoconf-2.52.
86119
86120 2001-08-04  Jim Meyering  <meyering@lucent.com>
86121
86122         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86123         stmt, to get in sync with glibc.
86124
86125 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86126
86127         The following changes are from gettext 0.10.39 as maintained by
86128         Bruno Haible.
86129
86130         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86131         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86132         with inverted sense.  All uses changed.
86133
86134         * lib/mbswidth.c: Don't include <limits.h>.
86135         Include <stdlib.h> and <string.h> unconditionally.
86136         (iswcntrl, mbsinit, ISCNTRL): New macros.
86137         (mbsnwidth): Use K&R style function declarations.
86138         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86139         can optimize it when MB_CUR_MAX == 1.
86140         The width of control characters is zero, not 1.
86141
86142 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86143
86144         The following changes are from gettext 0.10.39 as maintained by
86145         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86146
86147         * m4/codeset.m4: Upgrade to serial AM1.
86148         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86149         all uses changed.  Quote first arg of AC_DEFUN.
86150         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86151
86152         * m4/iconv.m4: Upgrade to serial AM2.
86153         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86154         Add --with-libconv-prefix.
86155         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86156         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86157         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86158         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86159         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86160
86161         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86162         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86163         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86164         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86165         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86166         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86167         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86168         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86169         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86170
86171         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86172         string.h any more.
86173
86174         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86175         not the default value.
86176
86177         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86178         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86179         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86180         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86181         Also check for iswcntrl, used for wcwidth fallback.
86182         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86183         to Autoconf 2.13.
86184
86185 2001-08-03  Jim Meyering  <meyering@lucent.com>
86186
86187         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86188         as it was in the original.  Reported by Paul Eggert.
86189
86190 2001-07-16  Jim Meyering  <meyering@lucent.com>
86191
86192         * m4/gettimeofday.m4: New file.
86193         Prompted by a report from Bernhard Baehr.
86194
86195 2001-07-15  Jim Meyering  <meyering@lucent.com>
86196
86197         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86198         stuff. Now it's in ../Makefile.cfg.
86199
86200 2001-07-15  Jim Meyering  <meyering@lucent.com>
86201
86202         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86203         (BUILT_SOURCES): Add unlocked-io.h.
86204         (io_functions): Define.
86205         (unlocked-io.h): New rule.
86206         (DISTCLEANFILES): Add unlocked-io.h.
86207         (all-local): Depend on unlocked-io.h, to ensure it is created.
86208
86209         * lib/unlocked-io.hin: New file
86210
86211         * lib/regex.c: Update from glibc.
86212
86213 2001-07-05  Jim Meyering  <meyering@lucent.com>
86214
86215         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86216         recommendation.
86217         (libfetish_a_SOURCES): Put all .h files here instead.
86218         Remove a thus-exposed (better checks in automake) duplicate and
86219         two unnecessary .h files.
86220
86221 2001-07-04  Jim Meyering  <meyering@lucent.com>
86222
86223         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86224         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86225         distcheck failure.
86226
86227 2001-07-02  Jim Meyering  <meyering@lucent.com>
86228
86229         The following changes were prompted by suggestions from Bruno Haible.
86230
86231         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86232         is now generated.
86233         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86234         definition of EXTRA_DIST.
86235         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86236         ensure that the generated file is created/updated whenever the list
86237         of $(unlocked_functions) is changed.
86238         (jm-glibc-io.m4): New rule.
86239         (unlocked-io.h): New rule -- currently unused.
86240
86241 2001-06-24  Jim Meyering  <meyering@lucent.com>
86242
86243         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86244         unmatched right bracket, rather than kludging it with an extra,
86245         falsely-matching quote in a comment.  Patch by Akim Demaille.
86246
86247 2001-06-11  Jim Meyering  <meyering@lucent.com>
86248
86249         * lib/regex.c: Update from GNU libc.
86250
86251 2001-05-27  Jim Meyering  <meyering@lucent.com>
86252
86253         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
86254         Check for ut_type in struct utmp.
86255
86256 2001-05-27  Jim Meyering  <meyering@lucent.com>
86257
86258         * lib/readutmp.h (UT_TYPE): Define.
86259
86260 2001-05-24  Jim Meyering  <meyering@lucent.com>
86261
86262         * lib/argmatch.c: Include "quote.h".
86263         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
86264         quote function.  Reported by Göran Uddeborg.
86265
86266 2001-05-22  Jim Meyering  <meyering@lucent.com>
86267
86268         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
86269         now that we use the package-supplied version unconditionally.
86270         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
86271
86272 2001-05-21  Jim Meyering  <meyering@lucent.com>
86273
86274         * m4/regex.m4: Change a couple backticks to single quotes to avoid
86275         shell syntax errors.
86276
86277 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86278
86279         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
86280
86281 2001-05-20  Paul Eggert  <eggert@twinsun.com>
86282
86283         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
86284         Don't bother to check library strftime, since
86285         we'll be using our own my_strftime function anyway.
86286         Define my_strftime instead of strftime.
86287
86288 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
86289
86290         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
86291         which is not yet declared.
86292
86293 2001-05-15  Jim Meyering  <meyering@lucent.com>
86294
86295         * m4/regex.m4: Use proper quoting so brackets appear in the test
86296         program.
86297         Reported by, and with help from, Bruno Haible.
86298
86299 2001-05-13  Jim Meyering  <meyering@lucent.com>
86300
86301         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
86302         undefined.
86303
86304 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86305
86306         dirname code cleanup.  base_name now behaves more compatibly
86307         with POSIX basename when given file names that have trailing
86308         slashes, and similarly for dir_name.  Add new primitives
86309         base_len and dir_len.  Put the directory-name-related decls
86310         into dirname.h.
86311
86312         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
86313         * lib/backupfile.c (base_name): Likewise.
86314         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
86315         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
86316         * lib/makepath.c (strip_trailing_slashes): Likewise.
86317         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
86318         ISSLASH): Likewise.
86319         * lib/rename.c (strip_trailing_slashes): Likewise.
86320         * lib/same.c (base_name): Likewise.
86321         * lib/stripslash.c (ISSLASH): Likewise.
86322
86323         * lib/addext.c: Include <dirname.h> after size_t is defined.
86324         * lib/backupfile.c: Likewise.
86325
86326         * lib/addext.c (addext): Use base_len to trim redundant
86327         trailing slashes instead of doing it ourselves.
86328         But do not trim the last slash if it is not redundant.
86329
86330         * lib/backupfile.c (find_backup_file_name,
86331         max_backup_version): Use base_len instead of rolling it ourselves.
86332         Handle the case of "" and (on DOS) "C:" correctly.
86333
86334         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
86335         needed. Include <string.h>, <dirname.h>.
86336         (base_name): Allow file names ending in slashes, other than names
86337         that are all slashes.  In this case, return the basename followed
86338         by the slashes.  This is more general, and can be used in places
86339         where the original base_name purposely had an assertion failure.
86340         (base_len): New function.
86341
86342         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
86343         Do not include <assert.h>; no longer needed.
86344         Include xalloc.h.
86345         (memrchr): Remove decl.
86346         (dir_name_r): Remove.
86347         (dir_len): Renamed from dirlen.  All callers changed.
86348         Rewrite in terms of base_name, for simplicity and consistency.
86349         (dir_name): Never return NULL.  All callers changed.
86350         Do not include <stdlib.h> in test program; no longer needed.
86351         return 0; is fine for test program.
86352
86353         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86354         New macros.
86355         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86356
86357         * lib/path-concat.c (path_concat): Use base_len to compute
86358         base length, not strlen; this means we cannot rely on memcpy
86359         to null-terminate.
86360
86361         * lib/same.c (STREQ): Remove.
86362         (same_name): Handle the case where the basename ends in trailing '/'.
86363
86364         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86365         a slash was stripped.  Do not strip the last slash after a
86366         file system prefix.
86367
86368 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86369
86370         * lib/Makefile.am (libfetish_a_SOURCES):
86371         Add strftime.c, since we now compile it on all hosts.
86372
86373         * lib/strftime.c (my_strftime):
86374         Define to nstrftime if emacs, but only if my_strftime is not defined.
86375         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
86376         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
86377         Add one more extra argument: a nanoseconds value.
86378         All uses changed.
86379         (ns): New macro.
86380         (my_strftime function): Add %N format.
86381         (emacs_strftimeu): Renamed from emacs_strftime,
86382         with extra ut argument.
86383
86384 2001-05-09  Paul Eggert  <eggert@twinsun.com>
86385
86386         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
86387
86388 2001-04-21  Jim Meyering  <meyering@lucent.com>
86389
86390         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
86391         doesn't interfere.
86392
86393 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86394
86395         * m4/ftruncate.m4: Check for chsize.
86396         Link with ftruncate.o unconditionally if ftruncate is missing.
86397         This was required when cross-compiling to i586-mingw32msvc.
86398
86399 2001-04-08  Jim Meyering  <meyering@lucent.com>
86400
86401         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
86402         recomputed; that's necessary when the offset spans a DST transition.
86403         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
86404
86405 2001-04-02  Jim Meyering  <meyering@lucent.com>
86406
86407         * lib/regex.h, regex.c: Update from GNU libc.
86408
86409 2001-03-24  Jim Meyering  <meyering@lucent.com>
86410
86411         * m4/jm-macros.m4: Require autoconf-2.49d.
86412
86413 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86414
86415         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86416
86417 2001-03-19  Paul Eggert  <eggert@twinsun.com>
86418
86419         * lib/version-etc.c (version_etc_copyright): Update to 2001.
86420
86421 2001-03-17  Jim Meyering  <meyering@lucent.com>
86422
86423         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
86424         now that the version in autoconf is equivalent.
86425         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
86426
86427         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
86428         Suggestion from Akim Demaille.
86429
86430         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
86431         (jm_PREREQ_TEMPNAME): New function.
86432
86433 2001-03-16  Paul Eggert  <eggert@twinsun.com>
86434
86435         * lib/tempname.c (uint64_t): Define to uintmax_t if
86436         not defined, and if UINT64_MAX is not defined.
86437         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
86438         Reported by John David Anglin.
86439
86440 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
86441
86442         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
86443         resolve alias if codeset is empty.
86444         * lib/config.charset (BeOS): Use wildcard syntax.
86445
86446 2001-03-13  Jim Meyering  <meyering@lucent.com>
86447
86448         * lib/path-concat.c (path_concat)
86449         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
86450         concatenating e.g., `C:' and `foo'.
86451         From Bruno Haible.
86452
86453 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86454
86455         * lib/localcharset.c (locale_charset): Don't use
86456         setlocale(LC_CTYPE,NULL). Don't return NULL.
86457         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
86458
86459 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86460
86461         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
86462         support for DOS/DJGPP.
86463
86464 2001-03-01  Paul Eggert  <eggert@twinsun.com>
86465
86466         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
86467         lacks mkstemp.  Compile our own tempname.c if we compile our own
86468         mkstemp.c, as mkstemp relies on tempname.
86469
86470 2001-03-01  Jim Meyering  <meyering@lucent.com>
86471
86472         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
86473         AH_VERBATIM really does output its argument verbatim.
86474
86475 2001-02-28  Paul Eggert  <eggert@twinsun.com>
86476
86477         * lib/Makefile.am (libfetish_a_SOURCES):
86478         Add dup-safer.c, fopen-safer.c.
86479         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
86480
86481         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
86482         * lib/unistd-safer.h: New files.
86483
86484 2001-02-25  Paul Eggert  <eggert@twinsun.com>
86485
86486         The mkstemp replacement is taken from glibc 2.2.2, with some
86487         portability fixes for use outside glibc, as follows:
86488
86489         * lib/tempname.c (struct_stat64): New macro.
86490         (direxists, __gen_tempname): Use it.
86491         This avoids a portability problem with Solaris 8.
86492
86493         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
86494         (<stddef.h>, <stdint.h>, <string.h>):
86495         Include only if STDC_HEADERS || _LIBC.
86496         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
86497         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
86498         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
86499         (__set_errno): Define this macro if <errno.h> doesn't.
86500         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
86501         Define these macros if <stdio.h> doesn't.
86502         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
86503         Define these macros if <sys/stat.h>
86504         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
86505         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
86506         __xstat64): Define if not _LIBC.
86507         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
86508         (__gen_tempname): Invoke gettimeofday only if
86509         HAVE_GETTIMEOFDAY || _LIBC;
86510         otherwise, fall back on plain "time".
86511         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
86512
86513         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
86514
86515         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
86516
86517 2001-02-18  Paul Eggert  <eggert@twinsun.com>
86518
86519         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
86520
86521 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86522
86523         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
86524         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
86525         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
86526         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86527
86528 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86529
86530         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
86531         Remove workaround macros for hosts that have mbrtowc but not
86532         mbstate_t, as we now insist on proper declarations for both
86533         before using mbrtowc.
86534
86535 2001-02-17  Jim Meyering  <meyering@lucent.com>
86536
86537         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
86538         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
86539         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
86540         UnixWare 7.1.1.
86541
86542         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
86543         rather than AC_CACHE_VAL.
86544
86545 2001-02-17  Jim Meyering  <meyering@lucent.com>
86546
86547         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
86548         around included file name.
86549
86550         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
86551
86552         * lib/strftime.c: Update from GNU libc (the only changes were to
86553         comments).
86554
86555 2001-02-17  Jim Meyering  <meyering@lucent.com>
86556
86557         * lib/regex.c: Update from libc.
86558
86559 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
86560
86561         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
86562         clash.
86563
86564 2001-02-16  Paul Eggert  <eggert@twinsun.com>
86565
86566         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
86567         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
86568         Reported by Mark Hounschell via Paul Eggert.
86569
86570 2001-02-07  Jim Meyering  <meyering@lucent.com>
86571
86572         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
86573
86574 2001-02-05  Jim Meyering  <meyering@lucent.com>
86575
86576         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
86577         it includes the patch required for `large file' support with at least
86578         HP-UX's 10.20 /bin/cc.
86579
86580 2001-02-03  Jim Meyering  <meyering@lucent.com>
86581
86582         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
86583         AS_IF, now that it works once again (mysteriously).
86584         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86585
86586 2001-01-30  Jim Meyering  <meyering@lucent.com>
86587
86588         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
86589         * m4/chown.m4: Rename conftestchown to conftest.chown.
86590         * m4/rename.m4: s/conftestdir/conftest.d1/ and
86591         s/conftestdir2/conftest.d2/.
86592         * m4/utimes.m4: s/conftestdata/conftest.data/
86593         Inspired by Pavel Roskin's change in autoconf.
86594
86595 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
86596
86597         * lib/config.charset: Update for FreeBSD 4.2.
86598
86599 2001-01-27  Jim Meyering  <meyering@lucent.com>
86600
86601         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
86602         a use of AS_IF.
86603         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86604
86605 2001-01-26  Jim Meyering  <meyering@lucent.com>
86606
86607         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
86608         quotearg.c includes it.
86609
86610 2001-01-26  Jim Meyering  <meyering@lucent.com>
86611
86612         * lib/quotearg.c: Include stddef.h.
86613         * lib/quote.c: Include stddef.h.
86614         Reported by Axel Kittenberger.
86615
86616         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
86617         line in double quotes so that it evokes a better diagnostic.
86618         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
86619         Reported by Axel Kittenberger.
86620
86621 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
86622
86623         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
86624         as if it was a `charset'.
86625
86626 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86627
86628         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
86629         has const.
86630
86631 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86632
86633         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
86634         to avoid a warning.  Add back 'const' to inptr.
86635
86636 2001-01-20  Jim Meyering  <meyering@lucent.com>
86637
86638         Be sure that headers are checked before used in code compiled
86639         for the type checks.
86640         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
86641         In place of that, invoke jm_CHECK_ALL_TYPES.
86642         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
86643         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
86644         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
86645         The check for ssize_t was mistakenly run before the test for unistd.h.
86646
86647         The configure-time check for stdbool.h was missing.
86648         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
86649         (jm_PREREQ_HASH): New function.
86650
86651 2001-01-17  Jim Meyering  <meyering@lucent.com>
86652
86653         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
86654         for autoconf-2.49c.
86655         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
86656
86657 2001-01-16  Jim Meyering  <meyering@lucent.com>
86658
86659         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
86660         From Bruno Haible.
86661
86662 2001-01-14  Jim Meyering  <meyering@lucent.com>
86663
86664         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
86665         foo and bar.  Create conftestdir/ in the script, not in the C code.
86666         Remove directories in the script, not in the C code.
86667         Remove conftestdir{,2} before trying to create the directory.
86668         Make the entire configure script fail if the mkdir fails.
86669
86670 2001-01-14  Jim Meyering  <meyering@lucent.com>
86671
86672         * lib/rename.c: New file.  From Volker Borchert.
86673         Include stdlib.h, string.h or strings.h, and xalloc.h.
86674         Use strip_trailing_slashes rather than open-coding it.
86675
86676 2001-01-03  Paul Eggert  <eggert@twinsun.com>
86677
86678         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
86679
86680 2001-01-03  Jim Meyering  <meyering@lucent.com>
86681
86682         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
86683         of local `inptr' to avoid warning with some system declarations of
86684         iconv.
86685
86686 2001-01-02  Volker Borchert  <bt@teknon.de>
86687
86688         * m4/rename.m4: New file.
86689         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
86690
86691 2001-01-01  Jim Meyering  <meyering@lucent.com>
86692
86693         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
86694         even on systems with utmpx.h.  It's necessary for the declaration of
86695         utmp's ut_user member.  Reported by Andreas Jaeger.
86696
86697         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
86698         available. They are required for the declarations of getgrgid and
86699         getpwuid resp.
86700         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
86701         Reported by Andreas Jaeger.
86702
86703 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
86704
86705         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
86706         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
86707         so `make install' also works in VPATH builds.
86708
86709 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
86710
86711         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
86712         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
86713         can be used in subdirectories.
86714
86715 2000-12-29  Paul Eggert  <eggert@twinsun.com>
86716
86717         * lib/modechange.c: Do not assume that mode_t uses the
86718         traditional octal encoding.  E.g. "chmod 1 FOO" should set
86719         the other-execute bit of FOO even if S_IXOTH != 1.
86720
86721         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
86722         WOTH, XOTH, ALLM): New macros.
86723         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
86724          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
86725         Use them.
86726         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
86727         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
86728         (mode_compile):
86729         No need to use uintmax_t; unsigned long is long enough.
86730         Don't bother to get suffix since we don't use it.
86731
86732 2000-12-26  Jim Meyering  <meyering@lucent.com>
86733
86734         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
86735         better with autoheader.
86736
86737 2000-12-24  Jim Meyering  <meyering@lucent.com>
86738
86739         * lib/hash.c (is_prime): Return explicit boolean values.
86740         (hash_get_first): Return NULL to appease Irix5.6's 89.
86741         Reported by Nelson Beebe.
86742
86743 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
86744
86745         * lib/localcharset.c (locale_charset): Add support for Win32.
86746
86747 2000-12-18  Paul Eggert  <eggert@twinsun.com>
86748
86749         * lib/physmem.h, lib/physmem.c: New files.
86750
86751         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
86752         (noinst_HEADERS): Add physmem.h.
86753
86754         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
86755         't' for compatibility with Solaris 8 sort.
86756
86757 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
86758
86759         * lib/config.charset: Add support for BeOS.
86760
86761 2000-12-17  Jim Meyering  <meyering@lucent.com>
86762
86763         * m4/dos.m4 (jm_AC_DOS): New file and macro.
86764         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
86765
86766 2000-12-16  Jim Meyering  <meyering@lucent.com>
86767
86768         This bug had a serious impact on chown: `chown N:M FILE' (for integer
86769         N and M) would have treated it like `chown N:N FILE'.
86770
86771         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
86772
86773 2000-12-16  Jim Meyering  <meyering@lucent.com>
86774
86775         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
86776         SHELLS_FILE to a file name that's useful on djgpp systems.
86777         Include stdlib.h.
86778         (ADDITIONAL_DEFAULT_SHELLS): Define.
86779         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
86780         Based mostly on a patch from Prashant TR.
86781
86782 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
86783
86784         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
86785         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
86786         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
86787
86788 2000-12-08  Andreas Schwab  <schwab@suse.de>
86789
86790         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
86791         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
86792
86793 2000-12-07  Jim Meyering  <meyering@lucent.com>
86794
86795         * lib/stripslash.c (ISSLASH): Define.
86796         (strip_trailing_slashes): Use ISSLASH rather than comparing against
86797         `/'.
86798         From Prashant TR.
86799
86800         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
86801         (dir_name_r): Declare this function as static.
86802         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
86803         manifest itself on a name containing a mix of slashes and
86804         backslashes.
86805         Make this function work with names starting with a DOS-style
86806         drive letter and colon prefix.
86807         (dir_name): Append `.' if necessary.
86808         Based mostly on patches from Prashant TR and Eli Zaretskii.
86809
86810         * lib/dirname.h (dir_name_r): Remove prototype.
86811
86812 2000-12-06  Paul Eggert  <eggert@twinsun.com>
86813
86814         * m4/off_t-format.m4: Remove this file.
86815         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
86816
86817 2000-12-06  Jim Meyering  <meyering@lucent.com>
86818
86819         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
86820         replacement strtoull, we may well need the replacement strtoul, too.
86821         Check for declarations of strtoul and strtoull.
86822         Check for strtol.  Mainly as a cue to cause automake to include
86823         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
86824         Check for limits.h -- strtol.c needs it.
86825
86826 2000-12-05  Jim Meyering  <meyering@lucent.com>
86827
86828         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
86829
86830 2000-12-04  Jim Meyering  <meyering@lucent.com>
86831
86832         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
86833         Also include memory.h, stdlib.h, unistd.h if appropriate.
86834         Reported by Andreas Jaeger (conflicting declaration of malloc).
86835
86836 2000-12-02  Jim Meyering  <meyering@lucent.com>
86837
86838         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
86839         * m4/jm-macros.m4 (jm_MACROS): require it.
86840
86841 2000-12-02  Jim Meyering  <meyering@lucent.com>
86842
86843         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
86844
86845 2000-12-01  Paul Eggert  <eggert@twinsun.com>
86846
86847         * lib/memrchr.c: Include <config.h> before any system include file.
86848
86849 2000-11-30  Jim Meyering  <meyering@lucent.com>
86850
86851         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
86852
86853 2000-11-30  Jim Meyering  <meyering@lucent.com>
86854
86855         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
86856
86857 2000-11-29  Paul Eggert  <eggert@twinsun.com>
86858
86859         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
86860
86861 2000-11-26  Jim Meyering  <meyering@lucent.com>
86862
86863         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
86864
86865 2000-11-22  Paul Eggert  <eggert@twinsun.com>
86866
86867         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
86868         size of (size_t) -1; it's not portable.
86869
86870 2000-11-17  Jim Meyering  <meyering@lucent.com>
86871
86872         * lib/strstr.c: Update from GNU libc.
86873
86874 2000-11-17  Akim Demaille  <akim@epita.fr>
86875
86876         * lib/obstack.h: Formatting changes.
86877         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
86878         prevent type checking.
86879         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
86880         cast the value to (void *): assigning a `foo *' to a `void *'
86881         variable is valid.
86882         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
86883
86884 2000-11-16  Jim Meyering  <meyering@lucent.com>
86885
86886         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
86887
86888 2000-11-11  Jim Meyering  <meyering@lucent.com>
86889
86890         * lib/error.c: Add a couple #includes, merging from GNU libc version.
86891
86892 2000-11-10  Jim Meyering  <meyering@lucent.com>
86893
86894         * lib/obstack.h: Update from GNU libc.
86895         * lib/obstack.c: Likewise.
86896
86897 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
86898
86899         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
86900
86901 2000-11-06  Paul Eggert  <eggert@twinsun.com>
86902
86903         * lib/getusershell.c (setusershell): Use rewind rather than
86904         fseek/fseeko, to avoid configuration hassles with fseeko.
86905         Don't bother opening SHELLS_FILE if shellstream is NULL;
86906         it's not necessary.
86907
86908 2000-11-05  Jim Meyering  <meyering@lucent.com>
86909
86910         * lib/makepath.h (make_dir): Declare.
86911         * lib/makepath.c (make_dir): Remove `static' attribute.
86912         Tweak a comment.
86913
86914 2000-11-04  Jim Meyering  <meyering@lucent.com>
86915
86916         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
86917
86918 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
86919
86920         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
86921         last one in a bucket, advance to the next bucket.
86922
86923 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
86924
86925         * lib/fnmatch.c: Do not comment out all the code if we are using
86926         the GNU C library, because in some cases we are replacing buggy
86927         code in the GNU C library itself.
86928
86929 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
86930
86931         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
86932         (regex_compile): Catch bogus \(\1\).
86933
86934 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86935
86936         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
86937         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
86938         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
86939
86940 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86941
86942         * lib/error.h, getline.h, modechange.h:
86943         Remove "2000" from Copyright line, as the file hasn't been
86944         changed this year other than in the copyright notice.
86945
86946         * lib/xalloc.h: Add "2000" to Copyright line, as this file
86947         was changed this year.
86948
86949 2000-10-29  Jim Meyering  <meyering@lucent.com>
86950
86951         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
86952         renaming.
86953         * m4/ls-mntd-fs.m4: Likewise
86954
86955 2000-10-29  Jim Meyering  <meyering@lucent.com>
86956
86957         * lib/xstat.in: Fix grammar in comment.
86958
86959 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
86960
86961         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
86962         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
86963         doesn't define __restrict_arr.
86964
86965 2000-10-28  Jim Meyering  <meyering@lucent.com>
86966
86967         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
86968         (jm_PREREQ_MEMCHR): New function.
86969
86970 2000-10-28  Jim Meyering  <meyering@lucent.com>
86971
86972         * lib/memchr.c: Update from libc.
86973         Adjust for portability:
86974         [HAVE_STDLIB_H]: Include stdlib.h.
86975         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
86976         Undef __memchr, too.
86977         [!weak_alias]: Define __memchr to memchr.
86978
86979         * lib/regex.c: Update from libc.
86980         * lib/regex.h: Likewise.
86981         * lib/getopt1.c: Likewise.
86982         * lib/memcmp.c: Likewise.
86983
86984         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
86985         Avoid using fseek, when possible -- it's broken by design.
86986         Patch by Ulrich Drepper.
86987
86988 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
86989
86990         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
86991         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
86992         Giving in to popular pressure to shut up the compiler with casts.
86993
86994 2000-10-26  Jim Meyering  <meyering@lucent.com>
86995
86996         * lib/strftime.c: Update from libc.
86997
86998 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
86999
87000         * regex.c: More `unsigned char' -> `re_char' changes.
87001         Also change several `int' into `re_wchar_t'.
87002         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87003         (PUSH_FAILURE_POINTER): Don't cast any more.
87004         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87005         We want GCC to complain, since this piece of code makes
87006         re_match non-reentrant, which *should* be fixed.
87007         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87008         (EXTEND_BUFFER): Use RETALLOC.
87009         (SET_LIST_BIT): Don't cast.
87010         (re_wchar_t): New type.
87011         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87012         that those two functions will always properly return.
87013         (IMMEDIATE_QUIT_CHECK): Cast to void.
87014         (analyse_first): Use recursion rather than an explicit stack.
87015         (re_compile_fastmap): Can't fail anymore.
87016         (re_search_2): Don't check re_compile_fastmap for failure.
87017         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87018         Now also sets the new value (passed in a new argument).
87019         (re_match_2_internal): Use it.
87020         Also, use a new var `reg' of type size_t when looping through regs
87021         rather than reuse the inappropriate `mcnt'.
87022
87023 2000-10-25  Jim Meyering  <meyering@lucent.com>
87024
87025         * lib/obstack.c: Update from libc.
87026
87027 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87028
87029         * regex.c (regex_compile): Change the way of handling a range from
87030         a char less than 256 to a char not less than 256.
87031
87032 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87033
87034         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87035         NT-Emacs only.
87036         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87037         so that re_search functions only quit when callers expect them to.
87038
87039 2000-10-23  Jim Meyering  <meyering@lucent.com>
87040
87041         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87042         wrong.  That set_locale call must not have any side effects.
87043         From Paul Eggert.
87044
87045 2000-10-22  Jim Meyering  <meyering@lucent.com>
87046
87047         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87048         [CYCLIC]: Remove now-unused definition.
87049
87050         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87051         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87052         Suggestion from Ulrich Drepper.
87053
87054 2000-10-21  Jim Meyering  <meyering@lucent.com>
87055
87056         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87057         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87058         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87059
87060 2000-10-21  Jim Meyering  <meyering@lucent.com>
87061
87062         * lib/dirname.c (memrchr): Declare if necessary.
87063         (dir_name): Remove the restriction that there be no
87064         trailing slashes.  Now, this code skips past them, effectively
87065         ignoring them.
87066         [TEST_DIRNAME] (main): New unit tests.
87067
87068         * lib/memrchr.c: New file from GNU libc.
87069         Undef __memrchr, too.
87070         [!weak_alias]: Define __memrchr to memrchr.
87071         Guard weak_alias use with `#ifdef weak_alias'.
87072
87073 2000-10-21  Jim Meyering  <meyering@lucent.com>
87074
87075         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87076         (dir_name): Use dir_name_r.
87077         * lib/dirname.h (dir_name_r): Declare it.
87078
87079 2000-10-17  Jim Meyering  <meyering@lucent.com>
87080
87081         * lib/quote.h (PARAMS): Define and use.
87082         Reported by Akim Demaille.
87083
87084         * lib/getopt.c: Update from libc.
87085
87086 2000-10-16  Jim Meyering  <meyering@lucent.com>
87087
87088         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87089         setlocale.
87090         From Jan Fedak.
87091
87092 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87093
87094         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87095
87096 2000-09-25  Jim Meyering  <meyering@lucent.com>
87097
87098         * lib/md5.h (rol): Define (from GnuPG).
87099
87100         * lib/sha.c: Give credit (GnuPG) where due.
87101         (M): Use rol rather than open-coding it.
87102         Add a FIXME comment.
87103
87104 2000-09-21  Jim Meyering  <meyering@lucent.com>
87105
87106         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87107         Reported by Michael Stone.
87108
87109 2000-09-20  Jim Meyering  <meyering@lucent.com>
87110
87111         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87112         (noinst_HEADERS): Add sha.h.
87113         Based on code from Scott G. Miller and from GnuPG.
87114
87115 2000-09-18  Jim Meyering  <meyering@lucent.com>
87116
87117         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87118         LIBS. Otherwise, everyone ends up linking with -lelf for some
87119         configurations.
87120         Reported by Mike Stone.
87121
87122 2000-09-15  Jim Meyering  <meyering@lucent.com>
87123
87124         * lib/regex.c: Update from libc.
87125
87126 2000-09-10  Jim Meyering  <meyering@lucent.com>
87127
87128         * lib/getopt.c (_getopt_internal): Update from glibc.
87129
87130 2000-09-09  Jim Meyering  <meyering@lucent.com>
87131
87132         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87133         think it should be used as a general replacement for isascii.
87134         * lib/fnmatch.c: Likewise.
87135         * lib/mbswidth.c: Likewise
87136         * lib/regex.c: Likewise.
87137
87138         Don't use atoi.
87139         * lib/userspec.c: Include sys/param.h and limits.h.
87140         Include xstrtol.h.
87141         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87142         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87143         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87144         UID, GID.  Check range.
87145
87146 2000-09-06  Jim Meyering  <meyering@lucent.com>
87147
87148         * lib/getopt.c (_getopt_internal): Update from glibc.
87149
87150 2000-08-30  Jim Meyering  <meyering@lucent.com>
87151
87152         * lib/strftime.c: Merge in changes from GNU libc.
87153
87154 2000-08-26  Jim Meyering  <meyering@lucent.com>
87155
87156         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87157         * m4/fpending.m4: New file.
87158
87159 2000-08-26  Jim Meyering  <meyering@lucent.com>
87160
87161         * lib/closeout.c: Include "__fpending.h".
87162         (close_stdout_status): Return right away if there's nothing to flush.
87163
87164         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87165         * lib/__fpending.c: New file.
87166         * lib/__fpending.h: New file.
87167
87168 2000-08-20  Jim Meyering  <meyering@lucent.com>
87169
87170         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87171         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87172         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87173
87174 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87175
87176         Improve fileutils installation on systems where running
87177         programs (like install) can't be unlinked.
87178         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87179         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87180
87181 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87182
87183         Standardize on "memory exhausted" instead of "Memory exhausted"
87184         or "virtual memory exhausted".
87185         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87186         "virtual memory exhausted".
87187         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87188         our own message.
87189         * lib/userspec.c (parse_user_spec): Likewise.
87190         * lib/bumpalloc.h: comment fix
87191         * lib/same.c, userspec.c: Include xalloc.h.
87192
87193         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87194         not char *const and pointing to a constant array.
87195         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87196         (xrealloc): Comment fix.
87197
87198         * lib/userspec.c (parse_user_spec):
87199         Don't translate a message until just before returning,
87200         to avoid unnecessary translation.
87201
87202 2000-08-07  Jim Meyering  <meyering@lucent.com>
87203
87204         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87205         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87206         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87207         getgroups.c, gethostname.c, getopt.h, group-member.c,
87208         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87209         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87210         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87211         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87212         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87213         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87214         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87215         yesno.c: Back out Copyright date changes for each file with no change
87216         this year.  This eases coordination with other programs using the same
87217         source code modules.  From Paul Eggert.
87218
87219 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87220
87221         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87222         not char, for compatibility with glibc 2.1.3 strftime.c.
87223
87224 2000-08-03  Greg McGary  <greg@mcgary.org>
87225
87226         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87227         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87228         (EXTEND_BUFFER): Use them.
87229
87230 2000-08-01  Jim Meyering  <meyering@lucent.com>
87231
87232         * lib/dirname.c (ISSLASH): Define.
87233         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87234         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87235         both `\' and `/' may be use as path separators.
87236         Based on a patch from Prashant TR.
87237
87238 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87239
87240         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87241         slot vector a constant, since it might get modified.
87242
87243 2000-07-31  Jim Meyering  <meyering@lucent.com>
87244
87245         * lib/xmalloc.c: Use `virtual memory exhausted', not
87246         `Memory exhausted'.
87247         * lib/obstack.c (print_and_abort): Likewise.
87248
87249 2000-07-30  Paul Eggert  <eggert@twinsun.com>
87250
87251         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
87252         buffer, so that the caller can always quote one small
87253         component of a "memory exhausted" message in slot 0.
87254         From a suggestion by Jim Meyering.
87255
87256 2000-07-30  Jim Meyering  <meyering@lucent.com>
87257
87258         * lib/makepath.c (make_path): Quote the other instance, too.
87259
87260         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
87261         (STATIC_BUF_SIZE): Define.
87262         (quotearg_n_options): Use only statically allocated storage when
87263         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
87264         than STATIC_BUF_SIZE.
87265
87266 2000-07-29  Jim Meyering  <meyering@lucent.com>
87267
87268         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
87269         * lib/dirname.c (dir_name): Likewise.
87270
87271         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
87272         `/'.
87273
87274         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
87275         (dir_name): Assert that there are no trailing slashes.
87276
87277 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
87278
87279         * lib/mbswidth.h (mbswidth): Add a flags argument.
87280         (mbswidth): New declaration.
87281         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
87282         * lib/mbswidth.c (mbswidth): Add a flags argument.
87283         (mbsnwidth): New function.
87284
87285 2000-07-24  Jim Meyering  <meyering@lucent.com>
87286
87287         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
87288
87289 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87290
87291         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
87292
87293 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87294
87295         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
87296         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
87297         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
87298         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
87299         invoke multibyte primitives.
87300
87301 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87302
87303         * lib/quotearg.c:
87304         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
87305         so that mbstate_t is always defined.
87306
87307         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
87308         be 1 in at least one GCC installation, and this configuration
87309         error is likely to be common.  Ignoring MB_LEN_MAX hurts
87310         performance on hosts that have mbrtowc but have only unibyte
87311         locales, but I assume these hosts are rare.
87312
87313 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87314
87315         * lib/mbswidth.c (_XOPEN_SOURCE):
87316         Don't define; this causes problems on Solaris 7.
87317         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
87318
87319 2000-07-23  Jim Meyering  <meyering@lucent.com>
87320
87321         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
87322         too: getgrgid, getpwuid, getuid.
87323
87324 2000-07-23  Jim Meyering  <meyering@lucent.com>
87325
87326         * lib/basename.c (base_name): Add an assertion.
87327
87328 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
87329
87330         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
87331         shadow its mbsinit function.
87332
87333 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87334
87335         * lib/mbswidth.h: New file.
87336         * lib/mbswidth.c: New file.
87337         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
87338         (noinst_HEADERS): Add mbswidth.h.
87339
87340 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87341
87342         * lib/config.charset: Add support for FreeBSD. Improve support for
87343         HP-UX and IRIX 6.
87344
87345 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87346
87347         * m4/mbswidth.m4: New file.
87348         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87349
87350 2000-07-15  Jim Meyering  <meyering@lucent.com>
87351
87352         * lib/makepath.c: Include quote.h.
87353         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87354         corresponding argument in a `quote (...)' call.
87355         Give better diagnostics.
87356
87357         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87358         (noinst_HEADERS): Add quote.h.
87359
87360         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87361         from tar's src/misc.c.
87362         * lib/quote.h: New file.  Prototypes for same.
87363
87364 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87365
87366         From a suggestion by Bruno Haible.
87367         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87368         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87369         to decide whether to define the BeOS workaround macro;
87370         this adjusts to the change to AC_MBSTATE_T.
87371
87372 2000-07-14  Jim Meyering  <meyering@lucent.com>
87373
87374         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
87375         jm_AC_TYPE_UINTMAX_T.
87376
87377 2000-07-13  Paul Eggert  <eggert@twinsun.com>
87378
87379         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
87380
87381         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
87382         quotearg_buffer_restyled): Add support for
87383         clocale_quoting_style.  Undo previous change to
87384         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
87385         and "{RIGHT QUOTATION MARK}" msgids.
87386
87387 2000-07-10  Paul Eggert  <eggert@twinsun.com>
87388
87389         From a suggestion by Bruno Haible.
87390         * m4/mbstate_t.m4 (AC_MBSTATE_T):
87391         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
87392         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
87393         and mbstate_t, to a single-part test that simply defines mbstate_t.
87394         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
87395         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
87396
87397 2000-07-10  Jim Meyering  <meyering@lucent.com>
87398
87399         * m4/strerror_r.m4: Mirror the correction made in autoconf.
87400
87401         * m4/gnu-source.m4: Output to confdefs.h directly.
87402         Suggestion from Akim Demaille.
87403
87404 2000-07-09  Paul Eggert  <eggert@twinsun.com>
87405
87406         The old behavior of quoting `like this' doesn't look good with
87407         newer, ISO-style fonts.  See:
87408         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
87409
87410         Instead, quote "like this" by default.  Let the translator
87411         tailor the locale-specific quoting behavior by providing
87412         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
87413
87414         * lib/quotearg.c (N_): New macro.
87415         (gettext_default): New function.
87416         (quotearg_buffer_restyled): Use
87417         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
87418         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
87419
87420 2000-07-09  Jim Meyering  <meyering@lucent.com>
87421
87422         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
87423         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
87424
87425         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
87426         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
87427
87428 2000-07-09  Jim Meyering  <meyering@lucent.com>
87429
87430         * lib/Most files: Update copyright dates to include 2000.
87431
87432 2000-07-08  Jim Meyering  <meyering@lucent.com>
87433
87434         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
87435         if not defined.
87436         (xgethostname): Remove now-unnecessary #ifdef.
87437         Move declaration of `err' into loop where it's used.
87438
87439 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87440         and Bruno Haible  <haible@clisp.cons.org>
87441
87442         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
87443         only if the test for an object-type mbstate_t fails.  This
87444         prevents us from mistakenly reporting that mbstate_t is a
87445         system object type after we "#define mbstate_t int" to work
87446         around its lack.
87447
87448 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87449         and Bruno Haible  <haible@clisp.cons.org>
87450
87451         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
87452
87453 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87454
87455         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
87456         to strerror_r.
87457         Include <ctype.h> for use of isalpha.
87458
87459 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87460
87461         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
87462         by allocating a larger buffer. Test the gethostname return value for
87463         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
87464         returns an error and ENAMETOOLONG isn't defined.
87465
87466 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87467
87468         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
87469         dimension.
87470
87471 2000-07-04  Jim Meyering  <meyering@lucent.com>
87472
87473         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
87474         of the deprecated AC_CHECKING.
87475
87476 2000-07-04  Jim Meyering  <meyering@lucent.com>
87477
87478         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
87479         Reported by Bruno Haible.
87480
87481 2000-07-04  Jim Meyering  <meyering@lucent.com>
87482
87483         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
87484         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
87485         lacks mbrtowc.
87486
87487 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87488
87489         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
87490         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
87491
87492 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87493         and Bruno Haible  <haible@clisp.cons.org>
87494
87495         * lib/quotearg.c (mbrtowc):
87496         Assign to *pwc, and return 1 only if result is nonzero.
87497         (iswprint): Use ISPRINT when substituting our own mbrtowc.
87498
87499 2000-07-03  Jim Meyering  <meyering@lucent.com>
87500
87501         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
87502
87503 2000-07-03  Jim Meyering  <meyering@lucent.com>
87504
87505         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
87506         This is necessary to get a definition of e.g., UTMP_FILE on
87507         HP-UX 10.20.
87508         From Bob Proulx.
87509
87510 2000-07-02  Jim Meyering  <meyering@lucent.com>
87511
87512         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
87513
87514         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
87515         AC_LIBOBJ(function_name).
87516         * m4/chown.m4: Likewise.
87517         * m4/fnmatch.m4: Likewise.
87518         * m4/ftruncate.m4: Likewise.
87519         * m4/getgroups.m4: Likewise.
87520         * m4/getline.m4: Likewise.
87521         * m4/group-member.m4: Likewise.
87522         * m4/jm-macros.m4: Likewise.
87523         * m4/lstat.m4: Likewise.
87524         * m4/malloc.m4: Likewise.
87525         * m4/memcmp.m4: Likewise.
87526         * m4/nanosleep.m4: Likewise.
87527         * m4/putenv.m4: Likewise.
87528         * m4/realloc.m4: Likewise.
87529         * m4/regex.m4: Likewise.
87530         * m4/stat.m4: Likewise.
87531         * m4/strftime.m4: Likewise.
87532
87533 2000-07-02  Jim Meyering  <meyering@lucent.com>
87534
87535         * lib/quotearg.c (mbstate_t): Don't define here.
87536
87537 2000-07-02  Jim Meyering  <meyering@lucent.com>
87538
87539         * lib/nanosleep.c (SIGCONT): Define if not already defined.
87540
87541 2000-07-01  Jim Meyering  <meyering@lucent.com>
87542
87543         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
87544
87545 2000-07-01  Jim Meyering  <meyering@lucent.com>
87546
87547         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
87548         problem.
87549
87550 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87551
87552         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
87553         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
87554
87555 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87556
87557         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
87558         per change in ../m4/ls-mntd-fs.m4.
87559         (read_filesystem_list): Ignore symbolic links.
87560
87561 2000-06-29  Jim Meyering  <meyering@lucent.com>
87562
87563         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
87564         for declaration of strcmp.
87565
87566         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
87567
87568         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
87569         Avoid warning by casting result to `char *' to remove `const'.
87570
87571 2000-06-28  Jim Meyering  <meyering@lucent.com>
87572
87573         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
87574         included by quotearg.c, for which we perform this test.  From
87575         Bruno Haible.
87576
87577 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87578
87579         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
87580         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
87581         <utmpx.h> exists, put readutmp.o into LIBOBJS.
87582
87583 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87584
87585         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
87586
87587 2000-06-26  Paul Eggert  <eggert@twinsun.com>
87588
87589         savedir now sets errno on failure and invokes xmalloc to get memory.
87590         Fix a couple of other minor bugs while we're at it.
87591
87592         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
87593         (NAMLEN): Remove macro.
87594         (malloc, realloc): Remove decls.
87595         (stpcpy): Likewise.
87596         ("xalloc.h"): Include.
87597         (NAME_SIZE_DEFAULT): New macro.
87598         (savedir): Use xmalloc / xrealloc to allocate memory.
87599         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
87600         Skip "" directory entries.
87601         Use strlen to calculate directory entry length, since the old method
87602         is rarely used these days and isn't worth supporting.
87603         Don't use a pointer after freeing it.
87604         Check for integer overflow when calculating allocation size.
87605         Use memcpy to copy entries, instead of stpcpy.
87606         Set errno properly when returning NULL.
87607         Check for readdir error.
87608
87609 2000-06-26  Jim Meyering  <meyering@lucent.com>
87610
87611         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
87612
87613 2000-06-25  Jim Meyering  <meyering@lucent.com>
87614
87615         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
87616         Linux header bug when _XOPEN_SOURCE is defined to 500.
87617
87618 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87619
87620         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
87621         deficiency.
87622
87623 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87624
87625         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
87626         Include xalloc.h.
87627         Don't include <stdlib.h>.  Don't declare malloc, realloc.
87628
87629 2000-06-24  Jim Meyering  <meyering@lucent.com>
87630
87631         * m4/strerror_r.m4: Revive this file -- to try out an experimental
87632         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
87633         for which strerror does return char*, but which lacks a conveniently
87634         accessible declaration of the function.  If the compile-test says
87635         strerror_r doesn't work, then resort to a `run'-test that works on
87636         BeOS and segfaults on DEC Unix.
87637
87638 2000-06-24  Jim Meyering  <meyering@lucent.com>
87639
87640         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
87641
87642 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87643
87644         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
87645         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
87646
87647 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87648
87649         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
87650         (mbrtowc, mbstate_t): Define substitutes if
87651         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
87652         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
87653         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
87654
87655 2000-06-23  Jim Meyering  <meyering@lucent.com>
87656
87657         * m4/afs.m4: Add missing AC_MSG_RESULT.
87658         Reported by Bruno Haible.
87659
87660         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
87661         Suggestion from Bruno Haible.
87662
87663 2000-06-23  Jim Meyering  <meyering@lucent.com>
87664
87665         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
87666
87667 2000-06-21  Jim Meyering  <meyering@lucent.com>
87668
87669         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
87670
87671 2000-06-21  Jim Meyering  <meyering@lucent.com>
87672
87673         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
87674         (noinst_HEADERS): Add getstr.h.
87675
87676         * lib/getline.c (getstr): Move into a separate file.
87677         * lib/getstr.c (getstr): New file, extracted from getline.c, with
87678         the following changes: new parameter, delim2; both delim[12]
87679         parameters have type `int', not `char'.  The latter would lose
87680         with 8-bit delimiters.
87681         * lib/getstr.h: New file.
87682
87683 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87684
87685         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
87686         than 1024, return a memory chunk of least possible size, instead
87687         of size PATH_MAX + 2. In the loop, increment the size proportionally.
87688         Use free/xmalloc instead of xrealloc to avoid copying for very long
87689         paths.
87690
87691 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87692
87693         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
87694         the empty string.
87695
87696 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87697
87698         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
87699         address, not strdup.  Include <stdlib.h> and don't declare free().
87700
87701 2000-06-19  Jim Meyering  <meyering@lucent.com>
87702
87703         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
87704
87705 2000-06-18  Jim Meyering  <meyering@lucent.com>
87706
87707         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
87708
87709         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
87710         `checking whether...' message to be consistent with that of the
87711         lstat test.
87712
87713 2000-06-18  Jim Meyering  <meyering@lucent.com>
87714
87715         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
87716         Besides, these days every porting target provides a mkdir function.
87717
87718         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
87719         needed. (this snippet comes from src/system.h).
87720
87721 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
87722
87723         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
87724
87725 2000-06-15  Paul Eggert  <eggert@twinsun.com>
87726
87727         * lib/human.c (adjust_value): New function.
87728         (human_readable_inexact): Apply rounding style even when
87729         printing approximate values.
87730
87731 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87732
87733         * lib/human.c (human_readable_inexact): Allow an input block
87734         size that is not a multiple of the output block size, and vice versa.
87735         Reported by Piergiorgio Sartor.
87736
87737 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87738
87739         * lib/getdate.y (get_date): Apply relative times after time
87740         zone indicator, not before.  Reported by Todd A. Jacobs.
87741
87742 2000-06-13  Jim Meyering  <meyering@lucent.com>
87743
87744         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
87745
87746         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
87747
87748 2000-06-12  Paul Eggert  <eggert@twinsun.com>
87749
87750         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
87751
87752 2000-06-12  Jim Meyering  <meyering@lucent.com>
87753
87754         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
87755         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
87756         optional argument.
87757         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
87758         the optional argument, `lib'.
87759
87760 2000-06-08  Jim Meyering  <meyering@lucent.com>
87761
87762         * m4/largefile.m4: Remove file (now that it's part of autoconf).
87763
87764 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87765
87766         Rewrite largefile configuration so that we don't need to run
87767         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
87768         AC_CANONICAL_HOST in configure.in -- jmm]
87769
87770         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
87771         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
87772         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
87773         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
87774         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
87775         All uses changed.
87776         Instead of inspecting the output of getconf, try to compile the
87777         test program without and with the macro definition.
87778         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
87779         for getconf.  Instead, check for the needed flags by compiling
87780         test programs.
87781
87782 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87783
87784         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
87785
87786 2000-06-04  Jim Meyering  <meyering@lucent.com>
87787
87788         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
87789         SunOS 4.1.4 for which gid_t is an unsigned type.
87790
87791 2000-06-03  Jim Meyering  <meyering@lucent.com>
87792
87793         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
87794         now that autoconf requires that.
87795
87796         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
87797         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
87798         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
87799
87800 2000-06-03  Jim Meyering  <meyering@lucent.com>
87801
87802         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
87803
87804 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87805
87806         * m4/glibc21.m4: New file.
87807         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
87808
87809 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87810
87811         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
87812         newer, don't install charset.alias.
87813         * lib/config.charset: Change the Linux/glibc rules so they become empty
87814         on glibc-2.1 or newer.
87815
87816 2000-06-02  Jim Meyering  <meyering@lucent.com>
87817
87818         * lib/mountlist.c: Back out last change.  Instead, do this...
87819         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
87820         me_dummy member using the same `ignore'-testing code.
87821         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
87822         fs_type strings.
87823         From Mark D. Roth.
87824
87825 2000-05-29  Jim Meyering  <meyering@lucent.com>
87826
87827         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
87828         mounts with the `ignore' attribute.  Based on a patch from
87829         Mark D. Roth.
87830
87831 2000-05-28  Jim Meyering  <meyering@lucent.com>
87832
87833         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
87834         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87835         * m4/stat.m4: Likewise.
87836         * m4/lstat.m4: Likewise.
87837         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
87838
87839         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
87840         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
87841
87842 2000-05-26  Jim Meyering  <meyering@lucent.com>
87843
87844         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
87845
87846 2000-05-24  Jim Meyering  <meyering@lucent.com>
87847
87848         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
87849         autoconf requires that.
87850         * m4/lib-check.m4: Likewise.
87851         * m4/jm-macros.m4: Likewise.
87852         * m4/strftime.m4: Likewise.
87853
87854         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
87855         AC_CHECK_DECLS, now that autoconf requires that.
87856
87857 2000-05-22  Jim Meyering  <meyering@lucent.com>
87858
87859         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87860         * m4/lstat.m4: Likewise.
87861
87862 2000-05-22  Jim Meyering  <meyering@lucent.com>
87863
87864         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
87865
87866 2000-05-20  Jim Meyering  <meyering@lucent.com>
87867
87868         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
87869         (jm_PREREQ): Use it.
87870
87871 2000-05-18  Jim Meyering  <meyering@lucent.com>
87872
87873         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
87874         back, too, since it may have been modified by allocate_entry.
87875         (hash_delete): Rewrite to use neither the assignment operator
87876         nor the comma operator in an if-expression.
87877
87878 2000-05-15  Paul Eggert  <eggert@twinsun.com>
87879
87880         * lib/closeout.c:
87881         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
87882         Remove; no longer needed.
87883         "quotearg.h": Add include.
87884         (file_name): Do not bother to explicitly initialize to NULL; it's less
87885         efficient on some hosts.
87886         (close_stdout_status): Remove test as to whether stdout was already
87887         closed; it breaks for the case "echo x | sort >&-".
87888         Quote file name colons.
87889         Do not assume that _("write error") lacks format strings.
87890
87891 2000-05-15  Jim Meyering  <meyering@lucent.com>
87892
87893         * lib/version-etc.c (version_etc_copyright): Update the copyright
87894         string used in all --version output.
87895
87896 2000-05-14  Jim Meyering  <meyering@lucent.com>
87897
87898         * lib/closeout.c (close_stdout_set_file_name): New function.
87899         (close_stdout_status): Use new file-scoped global.
87900         Return right away if fstat says the stdout file descriptor is invalid.
87901         * lib/closeout.h (close_stdout_set_file_name): Declare.
87902
87903 2000-05-10  Jim Meyering  <meyering@lucent.com>
87904
87905         * lib/closeout.c [default_exit_status]: New file-scoped variable.
87906         (close_stdout_set_status): New function.
87907         * lib/closeout.h (close_stdout_set_status): Declare.
87908
87909 2000-05-09  Jim Meyering  <meyering@lucent.com>
87910
87911         * m4/gettext.m4: Rename this...
87912         * m4/libintl.m4: ...to this.
87913
87914 2000-05-08  Jim Meyering  <meyering@lucent.com>
87915
87916         * lib/long-options.c: Don't include closeout.h.
87917         (parse_long_options): Don't call close_stdout for --version.
87918
87919 2000-05-06  Paul Eggert  <eggert@twinsun.com>
87920
87921         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
87922         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
87923         2.1.3 bug.  This avoids a clash when files like regex.c define
87924         _GNU_SOURCE.
87925
87926 2000-05-06  Jim Meyering  <meyering@lucent.com>
87927
87928         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
87929         (AC_REPLACE_FUNCS): Add strnlen.
87930
87931         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
87932         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
87933
87934         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
87935         AC_SEARCH_LIBS call for nanosleep.
87936         (LIB_NANOSLEEP): Set and AC_SUBST.
87937
87938 2000-05-06  Jim Meyering  <meyering@lucent.com>
87939
87940         * lib/strnlen.c: Undefine __strnlen and strnlen.
87941         [!weak_alias]: Define __strnlen to strnlen.
87942
87943         * lib/atexit.c: New file, from libiberty.
87944
87945 2000-05-06  Jim Meyering  <meyering@lucent.com>
87946
87947         * lib/closeout.c (close_stdout_status): Also check for errors on the
87948         stderr stream.
87949
87950 2000-05-05  Jim Meyering  <meyering@lucent.com>
87951
87952         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
87953         AC_SEARCH_LIBS call for clock_gettime.
87954         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
87955
87956         * m4/search-libs.m4: Update from autoconf.
87957
87958         su doesn't work on Solaris 2.6.
87959         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
87960         <shadow.h>.  Reported by Dragos Harabor.
87961
87962 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
87963
87964         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
87965         memcpy instead of xmalloc, xrealloc, path_concat.
87966         (locale_charset): Treat empty environment variables as absent.
87967         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
87968
87969 2000-05-04  Jim Meyering  <meyering@lucent.com>
87970
87971         * lib/getopt.c: Update from glibc.
87972         * lib/obstack.c: Likewise.
87973         * lib/obstack.h: Likewise.
87974         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
87975         file
87976
87977         * lib/regex.h: Likewise.
87978         * lib/strndup.c: Likewise.
87979         * lib/strnlen.c: New file, from glibc.
87980
87981 2000-05-03  Jim Meyering  <meyering@lucent.com>
87982
87983         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
87984
87985 2000-05-02  Paul Eggert  <eggert@twinsun.com>
87986
87987         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
87988         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
87989         compile-time test, rather than inspecting host and OS, to
87990         decide whether to define _LARGEFILE_SOURCE.
87991
87992 2000-05-01  Jim Meyering  <meyering@lucent.com>
87993
87994         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
87995
87996         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
87997         Based on a patch from Bruno Haible.
87998
87999 2000-05-01  Jim Meyering  <meyering@lucent.com>
88000
88001         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88002
88003 2000-04-29  Jim Meyering  <meyering@lucent.com>
88004
88005         * lib/path-concat.c: Declare strdup only if it's not defined.
88006         * lib/canon-host.c: Likewise.
88007
88008 2000-04-28  Jim Meyering  <meyering@lucent.com>
88009
88010         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88011         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88012         is included first, then limits.h is included by locale.h by libintl.h.
88013         From John David Anglin.
88014
88015 2000-04-25  Jim Meyering  <meyering@lucent.com>
88016
88017         * lib/makepath.c (S_IRWXUGO): Define.
88018         (make_path): Always perform explicit chmod if MODE specifies any
88019         of the `special' permission bits.  Prompted by a bug report against
88020         install from Mate Wierdl and Joost van Baal.
88021
88022 2000-04-18  Jim Meyering  <meyering@lucent.com>
88023
88024         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88025         (jm_PREREQ): Use it.
88026
88027 2000-04-18  Jim Meyering  <meyering@lucent.com>
88028
88029         * lib/README: New file.
88030
88031         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88032         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88033
88034 2000-04-17  Jim Meyering  <meyering@lucent.com>
88035
88036         Get it right :-)
88037         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88038         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88039         Suggestion from Akim Demaille.
88040
88041 2000-04-17  Jim Meyering  <meyering@lucent.com>
88042
88043         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88044         the definition of it to rpl_strftime also defined-away the system's
88045         declaration.
88046
88047 2000-04-15  Jim Meyering  <meyering@lucent.com>
88048
88049         Use `C' to denote so-called `contiguous' files, the same way
88050         that tar does.
88051         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88052         (ftypelet): Use S_ISCTG.
88053         From Michael Deutschmann.
88054
88055 2000-04-14  Jim Meyering  <meyering@lucent.com>
88056
88057         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88058         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88059         clobbered.
88060
88061 2000-04-14  Jim Meyering  <meyering@lucent.com>
88062
88063         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88064
88065 2000-04-13  Jim Meyering  <meyering@lucent.com>
88066
88067         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88068         AH_VERBATIM to insert required #ifndef into config.h.in.
88069         Suggestion from Akim Demaille.
88070
88071 2000-04-12  Jim Meyering  <meyering@lucent.com>
88072
88073         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88074         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88075         Christian Krackowizer.
88076
88077         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88078         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88079         (AC_SYS_LARGEFILE): Require.
88080         (AM_C_PROTOTYPES): Require.
88081
88082 2000-04-08  Jim Meyering  <meyering@lucent.com>
88083
88084         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88085         names don't conflict.  Reported by Eli Zaretskii.
88086
88087 2000-04-07  Jim Meyering  <meyering@lucent.com>
88088
88089         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88090         sys/types.h, to work around system header problems on AIX 3.2.5.
88091         From Bruno Haible.
88092
88093 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88094
88095         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88096         bug.  Deal with the different error behavior of Irix iconv.
88097
88098 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88099
88100         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88101         IRIX if the installer said otherwise.
88102
88103 2000-04-05  Jim Meyering  <meyering@lucent.com>
88104
88105         Portability tweaks required for ultrix4.3.
88106         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88107         (jm_CHECK_DECLS): Add getutent to the list of functions.
88108         (_jm_DECL_HEADERS): Add utmpx.h.
88109         From John David Anglin.
88110
88111         * m4/strftime.m4: Back out the 2000-04-02 change.
88112         Instead of that change, simply undefine putenv in the test program.
88113
88114 2000-04-05  Jim Meyering  <meyering@lucent.com>
88115
88116         Portability tweaks required for ultrix4.3.
88117         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88118         getutent.
88119         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88120         * lib/canon-host.c: Declare strdup.
88121         * lib/path-concat.c: Likewise.
88122         From John David Anglin.
88123
88124 2000-04-04  Jim Meyering  <meyering@lucent.com>
88125
88126         Be more DOS 8.3-friendly.
88127         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88128         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88129         * lib/Makefile.am: Reflect renaming.
88130         Reported by Eli Zaretskii.
88131
88132         Use a temporary file name that won't clash with `charset.alias'
88133         in the DOS 8.3 name space.
88134         * lib/Makefile.am (charset_tmp): Define.
88135         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88136         (uninstall-local): Likewise.
88137         Reported by Eli Zaretskii.
88138
88139 2000-04-03  Jim Meyering  <meyering@lucent.com>
88140
88141         * m4/gettext.m4: Fix typo in comment.
88142
88143         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88144         textutils/configure.in).  Suggestion from Paul Eggert.
88145         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88146
88147 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88148
88149         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88150         variable in the shell rather than using putenv, which isn't
88151         portable.  This avoids the configure-time inter-test dependency
88152         on the potentially-renamed putenv function.
88153
88154 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88155
88156         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88157         before checking struct stat.st_blksize, so that
88158         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88159
88160 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88161
88162         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88163         since strftime.c uses HAVE_STRFTIME to decide whether to use
88164         the underlying strftime.
88165
88166 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88167
88168         * lib/time/strftime.c (my_strftime): Make sure we call the system
88169         strftime, not ourselves, when invoking the underlying strftime.
88170
88171 2000-03-24  Jim Meyering  <meyering@lucent.com>
88172
88173         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88174         (charset_alias): Define.
88175         (install-exec-local): Factor out common code.
88176         (uninstall-local): Split lines longer than 80.
88177         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88178         (SUFFIXES): Define.
88179         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88180         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88181
88182 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88183
88184         * lib/config.charset: Output a line containing "Packages using this
88185         file".
88186         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88187         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88188         ref-del.sed): New rules.
88189
88190 2000-03-17  Jim Meyering  <meyering@lucent.com>
88191
88192         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88193         Otherwise, include <strings.h>
88194
88195 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88196
88197         * lib/unicodeio.c (utf8_wctomb): New function.
88198         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88199         format instead of in UCS-4 with platform dependent endianness.
88200
88201 2000-03-10  Jim Meyering  <meyering@lucent.com>
88202
88203         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88204         From Marco Franzen.
88205
88206 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88207
88208         * lib/savedir.c (savedir): Work even if directory size is
88209         negative; this can happen with some screwy NFS configurations.
88210
88211 2000-03-06  Jim Meyering  <meyering@lucent.com>
88212
88213         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88214         if it's NULL (because we ran out of memory).  From Bruno Haible.
88215
88216 2000-03-05  Jim Meyering  <meyering@lucent.com>
88217
88218         * lib/localcharset.c ("path-concat.h"): Include.
88219         (get_charset_aliases): Use path_concat instead of ANSI string
88220         concatenation.
88221
88222         * lib/unicodeio.h (PARAMS): Define.
88223         Use it to guard prototype.
88224
88225 2000-03-04  Jim Meyering  <meyering@lucent.com>
88226
88227         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88228         for lib/localcharset.c.
88229
88230 2000-03-04  Jim Meyering  <meyering@lucent.com>
88231
88232         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88233         installing into it.
88234         (uninstall-local): Uncomment this rule so `make distcheck' works
88235         once again.
88236
88237         * lib/unicodeio.c (<errno.h>): Include it.
88238         (errno): Declare if not defined.
88239
88240         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88241
88242         * lib/config.charset: New version, incorporating remarks from a linux
88243         i18n mailing list.  From Bruno Haible.
88244
88245 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
88246
88247         * m4/codeset.m4: New file.
88248         * m4/iconv.m4: New file.
88249         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
88250
88251 2000-03-03  Jim Meyering  <meyering@lucent.com>
88252
88253         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
88254
88255 2000-03-02  Jim Meyering  <meyering@lucent.com>
88256
88257         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
88258         the messages come out on separate lines.
88259
88260         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
88261         rather than jm_CHECK_DECLARATIONS.
88262         * m4/decl.m4: Remove now-unused file.
88263
88264         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
88265         geteuid.
88266
88267 2000-03-02  Jim Meyering  <meyering@lucent.com>
88268
88269         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
88270
88271 2000-03-01  Jim Meyering  <meyering@lucent.com>
88272
88273         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
88274         * lib/unicodeio.c: Likewise.
88275
88276 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
88277
88278         * lib/config.charset: New file.
88279         * lib/localcharset.c: New file.
88280         * lib/unicodeio.h, lib/unicodeio.c: New files.
88281         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
88282         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
88283         (noinst_HEADERS): Add unicodeio.h.
88284         (all-local, install-exec-local, charset.alias): New targets.
88285
88286 2000-02-28  Paul Eggert  <eggert@twinsun.com>
88287
88288         * lib/quotearg.c (ALERT_CHAR): New macro.
88289         (quotearg_buffer_restyled): Use it.
88290
88291 2000-02-27  Jim Meyering  <meyering@lucent.com>
88292
88293         * m4/check-decl.m4: Add getenv to the list.
88294
88295 2000-02-27  Jim Meyering  <meyering@lucent.com>
88296
88297         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
88298         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
88299
88300         * lib/backupfile.c: Guard inclusion of stdlib.h with
88301         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
88302         Declare malloc if needed.
88303
88304         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
88305         `#ifndef HAVE_DECL..'
88306         now that autoconf always defines the HAVE_DECL_ symbols.
88307         * lib/human.c: Likewise.
88308         * lib/same.c: Likewise.
88309         * lib/strtoumax.c: Likewise.
88310
88311         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
88312         declaration check was not run.
88313         * lib/hash.c: Likewise.
88314         * lib/human.c: Likewise.
88315         * lib/same.c: Likewise.
88316         * lib/strtoumax.c: Likewise.
88317
88318         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
88319         `.', then first look up the entire `.'-containing string as a login
88320         name.
88321
88322 2000-02-23  Jim Meyering  <meyering@lucent.com>
88323
88324         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
88325         in place of my hack.
88326
88327 2000-02-18  Paul Eggert  <eggert@twinsun.com>
88328
88329         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
88330         (textint): New typedef.
88331         (parser_control): Member year changed from int to textint.
88332         All uses changed.
88333         (YYSTYPE): Removed; replaced by %union with int and textint members.
88334         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
88335         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
88336         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
88337         (tSNUMBER, tUNUMBER): Now of type <textintval>.
88338         (date, number, to_year): Use width of number in digits, not its value,
88339         to determine whether it's a 2-digit year, or a 2-digit time.
88340         (yylex): Store number of digits of numeric tokens.
88341         Reported by John Kendall.
88342
88343         (parser_control): Changed from struct parser_control to typedef (for
88344         consistency).  All uses changed.
88345
88346         (tID): Removed; not used.
88347         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88348
88349 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88350
88351         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88352         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88353
88354 2000-02-12  Jim Meyering  <meyering@lucent.com>
88355
88356         * lib/userspec.c (ISDIGIT): Define it.
88357         (isdigit): Remove definition.
88358         (is_number): Use ISDIGIT, not isdigit.
88359         <libintl.h>: Include.
88360         (_ and N_): Define.
88361         (parse_user_spec): Mark translatable strings.
88362
88363 2000-02-10  Jim Meyering  <meyering@lucent.com>
88364
88365         With these changes, nanosleep.[ch] are finally enough like the other
88366         lib/* replacement files to compile on a few more losing systems.
88367
88368         * lib/nanosleep.h: Don't include config.h.
88369         Remove prototype from declaration of nanosleep.
88370         (PARAMS): Remove now-unneeded definition.
88371         * lib/nanosleep.c: #undef nanosleep.
88372         (rpl_nanosleep): Rename from nanosleep.
88373
88374 2000-02-10  Jim Meyering  <meyering@lucent.com>
88375
88376         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
88377         gnu_nanosleep to rpl_nanosleep.
88378
88379 2000-02-09  Jim Meyering  <meyering@lucent.com>
88380
88381         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
88382         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
88383
88384 2000-02-08  Akim Demaille  <akim@epita.fr>
88385
88386         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
88387         `[' and `]' and remove uses of `changequote'.
88388         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
88389         (AC_SYS_LARGEFILE): Likewise.
88390         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88391         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
88392         of changequote.
88393         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
88394         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
88395         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
88396         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
88397
88398 2000-02-05  Jim Meyering  <meyering@lucent.com>
88399
88400         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
88401         Remove explicit use of AC_HEADER_TIME.  It is required by
88402         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
88403         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
88404         in autoconf whereby the expansion of the latter ended up preceding
88405         the expansion of its prerequisite, AC_HEADER_TIME.
88406         Reported by Volker Borchert.
88407
88408 2000-02-03  Jim Meyering  <meyering@lucent.com>
88409
88410         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
88411
88412 2000-02-03  Jim Meyering  <meyering@lucent.com>
88413
88414         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88415         rather than with `#if HAVE_UTMPNAME'.
88416
88417 2000-02-02  Jim Meyering  <meyering@lucent.com>
88418
88419         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
88420         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
88421         Reported by Eli Zaretskii.
88422
88423 2000-02-01  Jim Meyering  <meyering@lucent.com>
88424
88425         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
88426
88427 2000-01-31  Jim Meyering  <meyering@lucent.com>
88428
88429         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
88430         functions.  Add the time.h and sys/time.h headers along with the
88431         AC_REQUIRE'ment of AC_HEADER_TIME.
88432
88433 2000-01-31  Jim Meyering  <meyering@lucent.com>
88434
88435         * lib/nanosleep.h (nanosleep): Guard declaration with
88436         `#if ! HAVE_DECL_NANOSLEEP'.
88437         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
88438         the declaration in that vendor's sys/timers.h.
88439         Reported by Christian Krackowizer.
88440
88441         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
88442         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
88443         (ISPRINT): Likewise.
88444         Reported by Tom Tromey.
88445
88446 2000-01-30  Jim Meyering  <meyering@lucent.com>
88447
88448         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
88449
88450         * m4/prereq.m4 (utmp_includes): Define.
88451         Check for ut_user and ut_name members in both struct utmpx
88452         and struct utmp.
88453
88454 2000-01-30  Jim Meyering  <meyering@lucent.com>
88455
88456         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
88457         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
88458         header files where only utmpx.ut_user is declared.
88459
88460         * lib/readutmp.h (UT_USER): Define.
88461
88462 2000-01-29  Jim Meyering  <meyering@lucent.com>
88463
88464         * m4/lib-check.m4: New file containing library-related checks from
88465         fileutils and sh-utils (textutils had none).
88466
88467 2000-01-28  Jim Meyering  <meyering@lucent.com>
88468
88469         * m4/perl.m4: Change format of warning message to look more like that
88470         from the missing script.  Suggestion from François Pinard.
88471
88472 2000-01-25  Jim Meyering  <meyering@lucent.com>
88473
88474         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
88475         well as time.h in the compile check.
88476         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
88477         Fix typo in cross-compiling case: s/yes/no/.
88478
88479 2000-01-23  Jim Meyering  <meyering@lucent.com>
88480
88481         * m4/jm-macros.m4: Move df-related tests here from
88482         fileutils/configure.in
88483
88484         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
88485         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
88486
88487         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
88488         s/space/ac_fsusage_space/.
88489         (jm_FILE_SYSTEM_USAGE): Take two parameters.
88490
88491         * m4/ftruncate.m4: New file (derived from part of
88492         fileutils/configure.in).
88493         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
88494         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
88495
88496         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
88497         AC_SUBST these here, rather than just in sh-util/configure.in, so
88498         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
88499         all the same.
88500         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
88501         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
88502         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
88503         (AC_SUBST(POW_LIBM)): Likewise.
88504         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
88505
88506 2000-01-23  Jim Meyering  <meyering@lucent.com>
88507
88508         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
88509         obstack.c.
88510
88511 2000-01-22  Jim Meyering  <meyering@lucent.com>
88512
88513         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
88514
88515         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
88516
88517         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
88518         configure.in
88519         (AC_CHECK_HEADERS): Likewise for sh-utils.
88520         (AC_CHECK_HEADERS): Likewise for textutils.
88521         Merge the three lists of headers.
88522
88523         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
88524         from fileutils' configure.in.
88525
88526         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
88527         code. Moved tests into their own function (_jm_DECL_HEADERS) in
88528         check-decl.m4.
88529
88530         * m4/check-decl.m4: Use #if rather than #ifdef.
88531         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
88532         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
88533         (_jm_DECL_HEADERS): Define new function.
88534         (jm_CHECK_DECLARATIONS): Require it.
88535
88536 2000-01-22  Jim Meyering  <meyering@lucent.com>
88537
88538         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
88539         [! HAVE_DECL_STRTOULL]: Declare strtoull.
88540         Required for some AIX systems.  Reported by Christian Krackowizer.
88541         [TESTING] (main): New function.
88542
88543         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
88544         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
88545         letters.
88546
88547         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
88548         iswprint.
88549
88550         * lib/strverscmp.c (ISDIGIT): Define.
88551         (strverscmp): Use ISDIGIT, not isdigit.
88552
88553 2000-01-19  Jim Meyering  <meyering@lucent.com>
88554
88555         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
88556         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
88557         defines `struct timespec' in <sys/time.h>
88558
88559         * m4/c-bs-a.m4: Remove uses of changequote altogether.
88560         Thanks to Akim for explaining.
88561
88562 2000-01-17  Paul Eggert  <eggert@twinsun.com>
88563
88564         * lib/nanosleep.c (nanosleep):
88565         Don't use SA_INTERRUPT to decide whether to call sigaction, as
88566         POSIX.1 doesn't require SA_INTERRUPT and some systems
88567         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
88568         it's been part of POSIX.1 since day 1 (in 1988).
88569
88570 2000-01-17  Jim Meyering  <meyering@lucent.com>
88571
88572         * lib/interlock: Remove unused file.  Reported by François Pinard.
88573
88574 2000-01-16  Paul Eggert  <eggert@twinsun.com>
88575
88576         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
88577         alert, backslash, formfeed, and vertical tab unnecessarily in
88578         shell quoting style.
88579
88580 2000-01-16  Jim Meyering  <meyering@lucent.com>
88581
88582         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
88583         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
88584         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
88585         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
88586
88587 2000-01-16  Jim Meyering  <meyering@lucent.com>
88588
88589         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
88590         because the latter didn't work.
88591
88592 2000-01-15  Jim Meyering  <meyering@lucent.com>
88593
88594         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
88595         (AC_REPLACE_FUNCS): Add memcpy and memset.
88596         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
88597         Add strpbrk.
88598         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
88599
88600 2000-01-12  Jim Meyering  <meyering@lucent.com>
88601
88602         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
88603         (jm_PREREQ): Use it.
88604         (jm_PREREQ_READUTMP): New macro.
88605         (jm_PREREQ): Use it.
88606
88607 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88608
88609         Quote multibyte characters correctly.
88610         * m4/c-bs-a.m4: New file.
88611         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
88612         (jm_PREREQ): Use it.
88613
88614 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88615
88616         * m4/uintmax_t.m4: Port to autoconf 2.13.
88617
88618 2000-01-08  Jim Meyering  <meyering@ascend.com>
88619
88620         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
88621         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
88622
88623 2000-01-04  Jim Meyering  <meyering@ascend.com>
88624
88625         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
88626         jm_STRUCT_DIRENT_D_TYPE.
88627         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
88628         jm_STRUCT_DIRENT_D_INO.
88629         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
88630         jm_STRUCT_UTIMBUF.
88631         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
88632         renamings.
88633         * m4/utime.m4: Likewise.
88634
88635         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
88636         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
88637
88638 2000-01-03  Paul Eggert  <eggert@twinsun.com>
88639
88640         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
88641         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
88642
88643 2000-01-02  Jim Meyering  <meyering@ascend.com>
88644
88645         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
88646         remember if this is necessary.
88647
88648 1999-12-26  Jim Meyering  <meyering@ascend.com>
88649
88650         * m4/jm-macros.m4: Use it here.
88651         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
88652
88653 1999-12-23  Jim Meyering  <meyering@ascend.com>
88654
88655         * m4/jm-macros.m4: Check for clock_gettime (moved from
88656         fileutils/configure.in)
88657         Check for gettimeofday.
88658
88659 1999-12-20  Jim Meyering  <meyering@ascend.com>
88660
88661         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
88662         autoconf-2.14a-1999-12-20.
88663
88664 1999-12-19  Jim Meyering  <meyering@ascend.com>
88665
88666         * m4/lstat-slash.m4: New file.
88667         * m4/jm-macros.m4: Use the new macro:
88668         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88669
88670 1999-12-07  Jim Meyering  <meyering@ascend.com>
88671
88672         * m4/perl.m4: Require that File::Compare be available, too.
88673         Too many systems seem to lack it.
88674
88675         * m4/strftime.m4: Add checks for most of the cpp macros tested in
88676         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
88677
88678 1999-11-18  Paul Eggert  <eggert@twinsun.com>
88679
88680         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
88681         problem with the QNX 4.25 shell, which doesn't propagate exit
88682         status of failed commands inside shell assignments.
88683
88684 1999-11-17  Jim Meyering  <meyering@ascend.com>
88685
88686         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
88687
88688 1999-11-07  Jim Meyering  <meyering@ascend.com>
88689
88690         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
88691
88692 1999-11-06  Jim Meyering  <meyering@ascend.com>
88693
88694         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
88695         * m4/jm-macros.m4 (jm_MACROS): Use it here.
88696
88697 1999-11-05  Jim Meyering  <meyering@ascend.com>
88698
88699         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
88700         configure.in of textutils, fileutils, and sh-utils into this one
88701         (shared between those packages) file.
88702         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
88703         AC_STRUCT_ST_BLKSIZE.
88704
88705 1999-11-03  Jim Meyering  <meyering@ascend.com>
88706
88707         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
88708         of AC_CHECK_TYPE checks includes unistd.h.
88709         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
88710         Suggestion from Akim Demaille.
88711
88712 1999-10-30  Jim Meyering  <meyering@ascend.com>
88713
88714         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
88715         m4-quoted string.
88716         * m4/ls-mntd-fs.m4: Likewise.
88717         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
88718         * m4/jm-winsz1.m4: Likewise.
88719
88720         * m4/const.m4: Remove file, since the fix made it into the experimental
88721         version of autoconf.
88722         * m4/mktime.m4: Likewise.
88723
88724         * m4/check-type.m4: Remove file, now that the latest version of
88725         AC_CHECK_TYPE takes a third arg to specify additional #includes.
88726
88727         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
88728         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
88729         AC_CHECK_TYPE.
88730
88731 1999-10-04  Jim Meyering  <meyering@ascend.com>
88732
88733         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
88734
88735 1999-09-22  Paul Eggert  <eggert@twinsun.com>
88736
88737         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
88738         2.95.1 bug with HP-UX 10.20.
88739
88740 1999-09-17  Jim Meyering  <meyering@ascend.com>
88741
88742         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
88743         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
88744         due to missing strdup (against sh-utils-2.0).
88745
88746 1999-08-29  Jim Meyering  <meyering@ascend.com>
88747
88748         * m4/jm-macros.m4: Require jm_BISON.
88749         * m4/bison.m4: New file.
88750
88751 1999-08-17  Paul Eggert  <eggert@twinsun.com>
88752
88753         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
88754         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
88755
88756 1999-08-05  Jim Meyering  <meyering@ascend.com>
88757
88758         * m4/getline.m4: Rename test file from conftestdata to conftest.data
88759         to avoid conflicts with `conftest' on 8+3 filesystems.
88760         Suggestion from Eli Zaretskii.
88761
88762 1999-08-04  Jim Meyering  <meyering@ascend.com>
88763
88764         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
88765         fileutils and sh-utils (textutils's getline test was inadequate).
88766         (AM_FUNC_GETLINE): Run this test.
88767         (AC_CHECK_FUNCS): Check for getdelim.
88768         Reported by Bob Proulx.
88769
88770 1999-08-02  Jim Meyering  <meyering@ascend.com>
88771
88772         * m4/jm-macros.m4: Add a comment.
88773
88774 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88775
88776         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
88777         <inttypes.h> defines strtoumax as a macro (and not as a
88778         function).
88779
88780 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88781
88782         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
88783         that we can shift, multiply and divide unsigned long long
88784         values; Ultrix cc can't do it.
88785
88786 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88787
88788         * m4/mktime.m4: New file, which is a preview of what should appear
88789         in the next public autoconf release.
88790
88791 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88792
88793         * m4/lfs.m4: Remove this file.
88794         * m4/largefile.m4: New file.  It contains the old contents of
88795         lfs.m4, except that all names with prefix AC_LFS have been
88796         changed to use the prefix AC_SYS_LARGEFILE instead, to be
88797         compatible with future autoconf versions.  Also, some minor m4
88798         quoting problems have been fixed.
88799
88800 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88801
88802         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
88803         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
88804         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
88805         and simplify the shell code.
88806
88807 1999-08-01  Jim Meyering  <meyering@ascend.com>
88808
88809         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
88810         m4.
88811
88812 1999-07-20  Jim Meyering  <meyering@ascend.com>
88813
88814         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
88815
88816 1999-07-15  Jim Meyering  <meyering@ascend.com>
88817
88818         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
88819
88820 1999-05-22  Jim Meyering  <meyering@ascend.com>
88821
88822         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
88823
88824 1999-05-20  Jim Meyering  <meyering@ascend.com>
88825
88826         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
88827         Add a colon after each `then' in case $4 is empty.
88828
88829 1999-05-16  Jim Meyering  <meyering@ascend.com>
88830
88831         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
88832
88833 1999-05-10  Jim Meyering  <meyering@ascend.com>
88834
88835         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
88836
88837         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
88838         AC_FUNC_MKTIME.
88839
88840 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
88841
88842         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
88843
88844 1999-05-04  Paul Eggert  <eggert@twinsun.com>
88845
88846         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
88847         not CPPFLAGS, so that linking works correctly in IRIX.
88848
88849 1999-04-30  Paul Eggert  <eggert@twinsun.com>
88850
88851         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
88852
88853 1999-04-20  Paul Eggert  <eggert@twinsun.com>
88854
88855         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
88856         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
88857         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
88858         jm_AC_TYPE_UNSIGNED_LONG_LONG.
88859         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
88860
88861         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
88862
88863 1999-04-20  Jim Meyering  <meyering@ascend.com>
88864
88865         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
88866         AC_REPLACE xstroull if necessary.  From Paul Eggert.
88867         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
88868
88869 1999-04-18  Jim Meyering  <meyering@ascend.com>
88870
88871         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
88872         * m4/jm-macros.m4: Use it.
88873
88874 1999-04-06  Jim Meyering  <meyering@ascend.com>
88875
88876         * m4/strftime.m4: Remove test for %f.
88877
88878 1999-03-29  Jim Meyering  <meyering@ascend.com>
88879
88880         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
88881         superset of the AC_TYPE_* checks in the textutils, fileutils,
88882         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
88883         AC_TYPE_PID_T.
88884
88885 1999-03-28  Jim Meyering  <meyering@ascend.com>
88886
88887         * m4/jm-macros.m4: Define GNU_PACKAGE here.
88888         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
88889         replaced e.g., in the *.sh files of the sh-utils.
88890
88891 1999-03-20  Jim Meyering  <meyering@ascend.com>
88892
88893         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
88894         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
88895         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
88896
88897 1999-03-19  Jim Meyering  <meyering@ascend.com>
88898
88899         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
88900
88901 1999-03-12  Jim Meyering  <meyering@ascend.com>
88902
88903         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
88904
88905 1999-03-07  Jim Meyering  <meyering@ascend.com>
88906
88907         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
88908         declared.
88909
88910 1999-02-17  Jim Meyering  <meyering@ascend.com>
88911
88912         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
88913         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
88914
88915 1999-02-07  Jim Meyering  <meyering@ascend.com>
88916
88917         * m4/group-member.m4: New file -- extracted from sh-utils'
88918         configure.in.
88919
88920         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
88921         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
88922
88923 1999-02-06  Jim Meyering  <meyering@ascend.com>
88924
88925         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
88926         * m4/fnmatch.m4: Likewise.
88927         * m4/getgroups.m4: Likewise.
88928         * m4/lstat.m4: Likewise.
88929         * m4/malloc.m4: Likewise.
88930         * m4/putenv.m4: Likewise.
88931         * m4/realloc.m4: Likewise.
88932         * m4/regex.m4: Likewise.
88933         * m4/stat.m4: Likewise.
88934         * m4/strftime.m4: Likewise.
88935         Suggestion from Alain Magloire.
88936
88937         * m4/chown.m4: Use `.$ac_objext', not `.o'.
88938         * m4/fnmatch.m4: Likewise.
88939         * m4/getgroups.m4: Likewise.
88940         * m4/getline.m4: Likewise.
88941         * m4/lstat.m4: Likewise.
88942         * m4/malloc.m4: Likewise.
88943         * m4/memcmp.m4: Likewise.
88944         * m4/putenv.m4: Likewise.
88945         * m4/realloc.m4: Likewise.
88946         * m4/regex.m4: Likewise.
88947         * m4/stat.m4: Likewise.
88948         * m4/strftime.m4: Likewise.
88949         Suggestion from Alain Magloire.
88950
88951         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
88952         an argument.
88953
88954         * m4/regex.m4: Add a run-time Test for proper operation of
88955         re_compile_pattern.
88956
88957 1999-01-31  Jim Meyering  <meyering@ascend.com>
88958
88959         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
88960
88961 1999-01-30  Jim Meyering  <meyering@ascend.com>
88962
88963         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
88964
88965         * m4/jm-mktime.m4: Make this a wrapper around the official
88966         AM_FUNC_MKTIME rather than my private copy, now that the official one
88967         is up to date.
88968         * m4/mktime.m4: Remove file.
88969
88970         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
88971         * m4/uptime.m4: Likewise.
88972         * m4/uintmax_t.m4: Likewise.
88973
88974 1999-01-28  Jim Meyering  <meyering@ascend.com>
88975
88976         * m4/jm-macros.m4: Use jm_AFS.
88977         * m4/afs.m4: New file (from fileutils' configure.in).
88978
88979         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
88980         * m4/chown.m4: Likewise.
88981         * m4/d-ino.m4: Likewise.
88982         * m4/d-type.m4: Likewise.
88983         * m4/fnmatch.m4: Likewise.
88984         * m4/getgroups.m4: Likewise.
88985         * m4/gettext.m4: Likewise.
88986         * m4/jm-mktime.m4: Likewise.
88987         * m4/jm-winsz2.m4: Likewise.
88988         * m4/lcmessage.m4: Likewise.
88989         * m4/ls-mntd-fs.m4: Likewise.
88990         * m4/malloc.m4: Likewise.
88991         * m4/memcmp.m4: Likewise.
88992         * m4/putenv.m4: Likewise.
88993         * m4/realloc.m4: Likewise.
88994         * m4/st_mtim.m4: Likewise.
88995         * m4/strftime.m4: Likewise.
88996
88997 1999-01-16  Jim Meyering  <meyering@ascend.com>
88998
88999         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89000         (ARGMATCH_DIE_DECL): Define.
89001
89002 1999-01-12  Jim Meyering  <meyering@ascend.com>
89003
89004         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89005         Reported by Lars Hecking.
89006
89007 1999-01-10  Jim Meyering  <meyering@ascend.com>
89008
89009         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89010         gross kludge.
89011         * m4/inttypes_h.m4: Likewise.
89012         * m4/lstat.m4: Likewise.
89013         * m4/malloc.m4: Likewise.
89014         * m4/readdir.m4: Likewise.
89015         * m4/realloc.m4: Likewise.
89016         * m4/st_dm_mode.m4: Likewise.
89017         * m4/stat.m4: Likewise.
89018         * m4/utimbuf.m4: Likewise.
89019         * m4/utimes.m4: Likewise.
89020
89021         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89022         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89023         comments in config.h.in are meaningful.
89024
89025         * m4/jm-macros.m4: Require autoconf-2.13 here.
89026
89027         * m4/regex.m4: By default, don't use the included regex.c on systems
89028         with glibc 2.  Suggestion from Uli Drepper.
89029
89030 1999-01-02  Jim Meyering  <meyering@ascend.com>
89031
89032         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89033
89034 1998-12-18  Jim Meyering  <meyering@ascend.com>
89035
89036         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89037         Based on a suggestion from Lars Hecking.
89038
89039 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89040
89041         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89042
89043 1998-11-16  Jim Meyering  <meyering@ascend.com>
89044
89045         * m4/lfs.m4: Double-quote the `uname...` expression.
89046
89047 1998-11-14  Jim Meyering  <meyering@ascend.com>
89048
89049         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89050         * m4/stat.m4: Likewise.
89051
89052 1998-11-03  Jim Meyering  <meyering@ascend.com>
89053
89054         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89055         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89056
89057 1998-10-18  Jim Meyering  <meyering@ascend.com>
89058
89059         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89060
89061 1998-10-17  Jim Meyering  <meyering@ascend.com>
89062
89063         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89064         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89065         calls for those previously hard-coded headers.  Instead, take a new
89066         parameter.
89067         (jm_CHECK_DECLARATIONS): Reflect interface change.
89068         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89069         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89070
89071         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89072
89073 1998-10-14  Jim Meyering  <meyering@ascend.com>
89074
89075         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89076         instead of "TZ=America/Vancouver".  From Paul Eggert.
89077
89078 1998-10-11  Jim Meyering  <meyering@ascend.com>
89079
89080         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89081         This adds a test for a recently added compatibility fix for mktime.c.
89082         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89083
89084 1998-09-27  Jim Meyering  <meyering@ascend.com>
89085
89086         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89087
89088         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89089         ../configure.in, including a change from Gordon Matzigkeit to allow
89090         cross-compiling for the Hurd.
89091
89092         * m4/glibc.m4: New file/macro to test for the GNU C Library
89093         versions 1 and 2.  From Gordon Matzigkeit.
89094         Indent.
89095
89096 1998-09-21  Jim Meyering  <meyering@ascend.com>
89097
89098         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89099
89100 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89101
89102         Port nanosecond-resolution times to UnixWare 2.1.2 and
89103         pedantic Solaris 2.6.
89104
89105         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89106         AC_STRUCT_ST_MTIM.
89107         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89108         Generate name of ns member, instead of just 1 or undef.
89109         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89110
89111 1998-08-15  Jim Meyering  <meyering@ascend.com>
89112
89113         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89114         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89115         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89116         instead of jm_TYPE_SSIZE_T.
89117
89118 1998-08-12  Jim Meyering  <meyering@ascend.com>
89119
89120         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89121
89122 1998-08-02  Jim Meyering  <meyering@ascend.com>
89123
89124         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89125         in acconfig.h manually.
89126
89127 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89128
89129         * m4/st_mtim.m4: New file.
89130
89131 1998-07-28  Jim Meyering  <meyering@ascend.com>
89132
89133         * m4/utimes.m4: Undef stat.
89134
89135 1998-07-25  Jim Meyering  <meyering@ascend.com>
89136
89137         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89138         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89139
89140 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89141
89142         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89143         uid and gid actually remain unchanged.
89144
89145 1998-07-07  Jim Meyering  <meyering@ascend.com>
89146
89147         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89148
89149 1998-07-04  Jim Meyering  <meyering@ascend.com>
89150
89151         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89152         to prove that this macro can be used in packages without regex.c.
89153
89154 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89155
89156         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89157         is to be used.
89158
89159 1998-07-03  Jim Meyering  <meyering@ascend.com>
89160
89161         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89162
89163         * m4/gettext.m4: New file -- from gettext-0.10.35.
89164         * m4/lcmessage.m4: Likewise.
89165         * m4/progtest.m4: Likewise.
89166
89167         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89168         * m4/jm-macros.m4: Require the new macro.
89169
89170 1998-06-29  Jim Meyering  <meyering@ascend.com>
89171
89172         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89173         for the definition of NGROUPS (used in a system header included
89174         by sys/mount.h).
89175
89176 1998-06-28  Jim Meyering  <meyering@ascend.com>
89177
89178         * m4/ls-mntd-fs.m4: New file.
89179         * m4/fstypename.m4: New file.
89180
89181         * m4/jm-macros.m4: Require the new macro.
89182         * m4/jm-glibc-io.m4: New file.
89183
89184 1998-05-19  Jim Meyering  <meyering@ascend.com>
89185
89186         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89187         * m4/lchown.m4: New file.
89188
89189         * m4/Makefile.am.in: New file.
89190         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89191
89192 1998-05-14  Jim Meyering  <meyering@ascend.com>
89193
89194         * m4/Makefile.am (EXTRA_DIST): Add them.
89195         * m4/jm-macros.m4: New file.
89196         * m4/utimbuf.m4: New file.
89197
89198 1998-05-12  Jim Meyering  <meyering@ascend.com>
89199
89200         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89201
89202 1998-05-11  Jim Meyering  <meyering@ascend.com>
89203
89204         * m4/isc-posix.m4: New file.
89205
89206 1998-05-10  Jim Meyering  <meyering@ascend.com>
89207
89208         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89209
89210 1998-05-09  Jim Meyering  <meyering@ascend.com>
89211
89212         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89213         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89214         with automake.
89215
89216         * m4/ssize_t.m4: New file.
89217         * m4/mktime.m4: Remove file -- the new automake has this now.
89218
89219 1998-04-26  Jim Meyering  <meyering@ascend.com>
89220
89221         * m4/assert.m4: New file.
89222         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89223
89224 1998-04-05  Jim Meyering  <meyering@ascend.com>
89225
89226         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89227         (jm_PREREQ): Use it here.
89228
89229 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89230
89231         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89232         in acconfig.h.
89233
89234 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89235
89236         * m4/prereq.m4: New file.
89237         * m4/error.m4: New file.
89238         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89239
89240 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89241
89242         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89243         cache-check for the same variable -- that defeated the purpose of
89244         the test; the test program was never run.  This was a problem only
89245         on systems with losing getline functions -- HP-UX 10.20 is one.
89246         Reported by Bjorn Helgaas.
89247
89248 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
89249
89250         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
89251
89252 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
89253
89254         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
89255
89256         * m4/const.m4: New file.  Use an initializer in this declaration
89257         typedef int charset[2]; const charset x;
89258         Reported by Bob Glickstein.
89259
89260 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
89261
89262         * m4/chown.m4: Fix reversed types on -1 args to chown.
89263         From Kaveh Ghazi.
89264
89265 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
89266
89267         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
89268         Add lseek and memchr.
89269
89270         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
89271         T.E.Dickey <dickey@clark.net> said that some older preprocessors
89272         have a 20-character limit on names.
89273
89274 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
89275
89276         * m4/inttypes_h.m4: New file.
89277         * m4/uintmax_t.m4: New file.
89278         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
89279
89280
89281         -----
89282
89283         Local Variables:
89284         coding: utf-8
89285         End:
89286
89287         Copyright (C) 1997-2011 Free Software Foundation, Inc.
89288
89289         Copying and distribution of this file, with or without
89290         modification, are permitted provided the copyright notice
89291         and this notice are preserved.