Extend gl_MATHFUNC.
[gnulib.git] / ChangeLog
1 2011-11-05  Bruno Haible  <bruno@clisp.org>
2
3         Extend gl_MATHFUNC.
4         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5         Support 'void' as argument type.
6         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
7
8 2011-11-05  Jim Meyering  <meyering@redhat.com>
9
10         maint.mk: also prohibit inclusion of dirent.h without use
11         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
12
13 2011-11-05  Bruno Haible  <bruno@clisp.org>
14
15         ldexpl tests: Avoid test failure on MSVC 9.
16         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
17         value. Needed in order to enforce the conversion from a value greater
18         than LDBL_MAX to Infinity.
19
20 2011-11-05  Bruno Haible  <bruno@clisp.org>
21
22         New modules 'at-internal', 'openat-h', split off from module 'openat'.
23         * modules/at-internal: New file, extracted from modules/openat.
24         * modules/openat-h: New file.
25         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
26         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
27         * modules/openat (Description): Add reference to POSIX function.
28         (Files): Remove lib/openat.h, lib/openat-proc.c.
29         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
30         intprops, unistd.
31         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
32         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
33         gl_FCNTL_MODULE_INDICATOR.
34         (Include): Remove unistd.h, openat.h.
35         * modules/areadlinkat (Files): Add lib/at-func.c.
36         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
37         openat-die, openat-h, save-cwd.
38         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
39         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
40         openat-die, openat-h, save-cwd, unistd.
41         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
42         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
43         openat-h, save-cwd. Remove fcntl-h, openat.
44         * modules/fchmodat (Files): Remove lib/openat.h.
45         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
46         openat, stdbool, unistd.
47         * modules/fchownat (Files): Remove lib/openat.h.
48         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
49         openat, stdbool, sys_stat.
50         * modules/fdopendir (Files): Remove lib/openat-priv.h,
51         lib/openat-proc.c.
52         (Depends-on): Add at-internal.
53         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
54         * modules/fstatat (Files): Remove lib/openat.h.
55         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
56         stdbool, unistd.
57         * modules/fts (Depends-on): Add openat-h.
58         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
59         openat.
60         * modules/mkdirat (Files): Remove lib/openat.h.
61         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
62         openat, stdbool, sys_stat.
63         * modules/mkfifoat (Files): Add lib/at-func.c.
64         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
65         openat-h, save-cwd. Remove fcntl-h, openat.
66         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
67         * modules/readlinkat (Files): Add lib/at-func.c.
68         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
69         openat-h, save-cwd. Remove fcntl-h, openat.
70         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
71         openat.
72         * modules/selinux-at (Files): Add lib/at-func.c.
73         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
74         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
75         * modules/symlinkat (Files): Add lib/at-func.c.
76         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
77         openat-h, save-cwd. Remove fcntl-h, openat.
78         * modules/unlinkat (Files): Remove lib/openat.h.
79         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
80         stdbool.
81         * modules/utimensat (Files): Add lib/at-func.c.
82         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
83         openat-die, openat-h, save-cwd.
84         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
85         * modules/fdutimensat-tests (Depends-on): Add openat.
86         * modules/fstatat-tests (Depends-on): Add openat-h.
87         * modules/readlinkat-tests (Depends-on): Add openat.
88         * modules/symlinkat-tests (Depends-on): Add openat.
89
90 2011-11-05  Bruno Haible  <bruno@clisp.org>
91
92         openat: Include <stdbool.h>.
93         * lib/openat.c: Include <stdbool.h>.
94
95 2011-11-04  Bruno Haible  <bruno@clisp.org>
96
97         fchownat, renameat, unlinkat: Fix dependencies.
98         * modules/fchownat (Depends-on): Add fstatat.
99         * modules/renameat (Depends-on): Likewise.
100         * modules/unlinkat (Depends-on): Likewise.
101
102 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
103
104         openat: remove direct dependency on dirent
105         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
106         and hasn't been needed ever since fdopendir was split into its own
107         module on 2009-08-31.
108         * modules/openat (Depends-on): Remove dirent.
109
110 2011-11-04  Bruno Haible  <bruno@clisp.org>
111
112         renameat: Optimize code size.
113         * modules/renameat (configure.ac): Don't compile at-func2.c if
114         REPLACE_RENAMEAT is 1.
115
116 2011-11-04  Bruno Haible  <bruno@clisp.org>
117
118         openat tests: Fix file list.
119         * modules/openat-tests (Files): Add tests/test-open.h.
120
121 2011-11-04  Bruno Haible  <bruno@clisp.org>
122
123         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
124         * modules/fchmodat (Depends-on): Add openat-die.
125         * modules/fchownat (Depends-on): Likewise.
126         * modules/linkat (Depends-on): Likewise.
127         * modules/renameat (Depends-on): Likewise.
128         * modules/openat (Depends-on): Add dirent.
129
130 2011-11-04  Jim Meyering  <meyering@redhat.com>
131
132         at-func*.c: fix comments
133         * lib/at-func2.c: Correct/improve first-line comment.
134         * lib/at-func.c: Correct grammar in first-line comment.
135
136 2011-11-04  Bruno Haible  <bruno@clisp.org>
137
138         New module 'mkdirat', split off from module 'openat'.
139         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
140         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
141         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
142         * modules/mkdirat: New file, extracted from modules/openat.
143         * modules/openat (Files): Remove lib/mkdirat.c.
144         (Depends-on): Remove mkdir.
145         (configure.ac): Remove AC_LIBOBJ of mkdirat.
146         (Include): Remove <sys/stat.h>.
147         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
148         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
149         tests/test-mkdir.h.
150         (Depends-on): Remove ignore-value.
151         (Makefile.am): Remove rules for test-mkdirat.
152         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
153         of module 'openat'.
154         * NEWS: Mention the change.
155
156 2011-11-04  Bruno Haible  <bruno@clisp.org>
157
158         closedir: Avoid warning on mingw.
159         * lib/closedir.c: Include <unistd.h>.
160
161 2011-11-04  Bruno Haible  <bruno@clisp.org>
162
163         New module 'fstatat', split off from module 'openat'.
164         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
165         defined.
166         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
167         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
168         gl_FUNC_FSTATAT.
169         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
170         * modules/fstatat: New file, extracted from modules/openat.
171         * modules/openat (Files): Remove lib/fstatat.c.
172         (Depends-on): Remove lstat.
173         (configure.ac): Remove AC_LIBOBJ of fstatat.
174         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
175         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
176         tests/test-lstat.h, tests/test-stat.h.
177         (Depends-on): Remove getcwd-lgpl.
178         (Makefile.am): Remove rules for test-fstatat.
179         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
180         of module 'openat'.
181         * NEWS: Mention the change.
182         * modules/getcwd (Depends-on): Add fstatat.
183         * modules/linkat (Depends-on): Likewise.
184         * modules/mkfifoat-tests (Depends-on): Likewise.
185         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
186
187 2011-11-03  Bruno Haible  <bruno@clisp.org>
188
189         New module 'unlinkat', split off from module 'openat'.
190         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
191         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
192         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
193         * modules/unlinkat: New file, extracted from modules/openat. Correct
194         the dependency conditions.
195         * modules/openat (Files): Remove lib/unlinkat.c.
196         (Depends-on): Remove rmdir, unlink.
197         (configure.ac): Remove AC_LIBOBJ of unlinkat.
198         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
199         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
200         tests/test-rmdir.h, tests/test-unlink.h.
201         (Depends-on): Remove unlinkdir.
202         (Makefile.am): Remove rules for test-unlinkat.
203         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
204         of module 'openat'.
205         * NEWS: Mention the change.
206         * modules/linkat-tests (Depends-on): Add unlinkat.
207         * modules/mkfifoat-tests (Depends-on): Likewise.
208         * modules/readlinkat-tests (Depends-on): Likewise.
209
210 2011-11-02  Bruno Haible  <bruno@clisp.org>
211
212         New module 'fchmodat', split off from module 'openat'.
213         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
214         defined.
215         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
216         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
217         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
218         * modules/fchmodat: New file, extracted from modules/openat.
219         * modules/openat (Files): Remove lib/fchmodat.c.
220         (configure.ac): Remove AC_LIBOBJ of fchmodat.
221         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
222         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
223         (Makefile.am): Remove rules for test-fchmodat.
224         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
225         of module 'openat'.
226         * NEWS: Mention the change.
227
228 2011-11-02  Jim Meyering  <meyering@redhat.com>
229
230         putenv: indent #definition of "environ" to placate cppi
231         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
232
233         gitlog-to-changelog: provide a ChangeLog-repair mechanism
234         Git logs are often treated as immutable, because editing them
235         changes the SHA1 checksums of all descendants.  Thus, errors in
236         git logs tend to stay there forever.  However, when we generate
237         a ChangeLog file -- typically for distribution -- from that git log,
238         we can actually make corrections in the generated file.  The key
239         lies in recording in machine-readable/applicable form the desired
240         corrections.  See --help for description and an example.
241         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
242         (usage): Describe it; alphabetize option descriptions.
243         (main): Honor the new option, carefully.
244
245 2011-11-01  Jim Meyering  <meyering@redhat.com>
246
247         gitlog-to-changelog: avoid an infloop
248         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
249         that ends up being empty.
250
251 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
252
253         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
254         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
255         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
256         contains (possibly-quoted) backslashes.  This should avoid
257         all-too-common shell bugs if COMPLICATED contains backslashes in
258         the "wrong" places.  Reported by David Evans in
259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
260         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
261         because we want ASCII ranges.  Is there some reason we don't use
262         the C locale everywhere in this script?
263         (func_module, top level): Avoid unwanted pathname expansion when
264         $repo_url_prefix or $repo_url_suffix_repl contain shell
265         metacharacters like '?' and '*'.
266
267 2011-11-01  Bruno Haible  <bruno@clisp.org>
268
269         fchownat: Improve description.
270         * modules/fchownat (Description): Add link to function.
271
272 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
273
274         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
275         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
277         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
278
279 2011-11-01  Bruno Haible  <bruno@clisp.org>
280
281         alignof: Avoid collision with stdalign module.
282         * lib/alignof.h (alignof): Remove macro.
283         * NEWS: Mention the change.
284         Reported by Paul Eggert.
285
286 2011-11-01  Bruno Haible  <bruno@clisp.org>
287
288         New module 'fchownat', split off from module 'openat'.
289         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
290         defined.
291         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
292         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
293         invoke gl_FUNC_FCHOWNAT.
294         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
295         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
296         * modules/fchownat: New file, extracted from modules/openat.
297         * modules/openat (Files): Remove lib/fchownat.c.
298         (Depends-on): Remove lchown.
299         (configure.ac): Remove AC_LIBOBJ of fchownat.
300         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
301         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
302         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
303         (Depends-on): Remove mgetgroups, usleep, stat-time.
304         (configure.ac): Remove test for getegid.
305         (Makefile.am): Remove rules for test-fchownat.
306         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
307         of module 'openat'.
308         * NEWS: Mention the change.
309
310 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
311
312         stdalign: port better to MSVC and to Sun C 5.11
313         This fixes some of the problems reported by Bruno Haible in
314         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
315         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
316         shortcomings of MSVC and of Sun C 5.11.
317         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
318         around __declspec arg.
319         * modules/stdalign-tests (Files): Add tests/macros.h.
320         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
321         Include macros.h, for ASSERT.
322         (DECLARE_ALIGNED): Remove.
323         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
324         to catch bug), and to 1 if not (simplifies the rest of the code).
325         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
326         (CHECK_AUTO): Remove.
327         (CHECK_ALIGNED): Check only the alignment of the static vars,
328         since auto var alignment isn't supported by Sun C 5.11.
329         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
330         ASSERT failures are easier to diagnose.
331
332 2011-10-31  Bruno Haible  <bruno@clisp.org>
333
334         doc about some IRIX 5.3 problems.
335         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
336         on IRIX 5.3.
337         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
338         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
339         5.3.
340         * doc/posix-functions/grantpt.texi: Likewise.
341         * doc/posix-functions/unlockpt.texi: Likewise.
342         * doc/posix-functions/lgamma.texi: Likewise.
343         * doc/posix-functions/nextafter.texi: Likewise.
344         * doc/posix-functions/remainder.texi: Likewise.
345         * doc/posix-functions/select.texi: Mention misplaced declaration on
346         IRIX 5.3.
347         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
348
349 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
350
351         gitlog-to-changelog: fix git-log invocation.
352         git-log mishandles date strings before 1970-01-01 UTC, and there is
353         no use to specify --since=1970-01-01 by default anyway.
354         * build-aux/gitlog-to-changelog: By default, when no --since option
355         was given, do not specify explicit --since option to git-log.
356
357 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
358
359         gitlog-to-changelog: new option --append-dot.
360         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
361         first non-blank line of each commit message terminated with a dot.
362
363 2011-10-30  Bruno Haible  <bruno@clisp.org>
364
365         ffsl, ffsll: Avoid compilation error due to 'restrict'.
366         * lib/ffsl.h: Include <config.h>.
367         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
368
369 2011-10-30  Jim Meyering  <meyering@redhat.com>
370
371         GNUmakefile: reenable "make syntax-check" for most projects
372         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
373         build-aux variable", "syntax-check" would do nothing but succeed with
374         the "No version control files detected..." diagnostic (unless you
375         happened to override _build-aux via cfg.mk).
376         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
377         to precede inclusion of maint.mk.  Otherwise, these variables would
378         be used undefined in any project that does not override the default.
379
380 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
381
382         gitlog-to-changelog: treat a message with only blank lines as empty.
383         * build-aux/gitlog-to-changelog: Move the code that removes leading and
384         trailing blank lines before the code that issues a warning about an
385         empty commit message.
386
387 2011-10-30  Jim Meyering  <meyering@redhat.com>
388
389         test-parse-datetime.c: avoid new DST-related false positive test failure
390         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
391         based on the time/date we'll convert, not the current time.
392         Otherwise, the moment we cross a DST boundary like today's in
393         Europe, (CEST to CET), that offset ends up being one hour off.
394
395 2011-10-27  Bruno Haible  <bruno@clisp.org>
396
397         fstat: Tweak documentation.
398         * modules/fstat (Description): More precise description.
399
400 2011-10-27  Bruno Haible  <bruno@clisp.org>
401
402         Update documentation regarding 'largefile' module.
403         * doc/posix-functions/fstat.texi: Tweak wording.
404         * doc/posix-functions/opendir.texi: Mention that the module fixes the
405         problems with huge directories and/or small ino_t types.
406         * doc/posix-functions/readdir.texi: Likewise.
407         * doc/posix-functions/rewinddir.texi: Likewise.
408
409 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
410
411         maint.mk: don't maintain a second build-aux variable.
412         * maint.mk (build_aux): Removed.  The maintainer-makefile module
413         depends on GNUmakefile, which already maintains a cfg.mk
414         overridable $(_build-aux) for projects with a non-standard
415         build-aux directory location, although without the $(srcdir)
416         prefix.  Use that variable consistently instead of introducing a
417         second one.  Adjust all call sites.
418
419 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
420
421         Add stdalign module and use it in other modules.
422         This is based on a previous proposal by Bruno Haible
423         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
424
425         stdalign: new module
426         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
427         * modules/stdalign: New files.
428         * MODULES.html.sh (c1x_core_properties): Add stdalign.
429         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
430
431         stdalign-tests: new module
432         * modules/stdalign-tests, tests/test-stdalign.c: New files.
433
434         argp: use stdalign
435         * lib/argp-parse.c: Include <stdalign.h>.
436         (alignof): Remove.
437         * modules/argp (Depends-on): Add stdalign.
438
439         crypto libraries: use stdalign
440         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
441         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
442         Do not include <stdlib.h> twice, in md4.c.
443         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
444         because we are accessing a pointer's bit-pattern, not a size.
445         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
446         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
447         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
448         * modules/crypto/sha512: Likewise.
449
450         sys_socket: use stdalign, not alignof
451         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
452         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
453
454 2011-10-27  Bruno Haible  <bruno@clisp.org>
455
456         raise test: Avoid a test failure on Linux/MIPS.
457         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
458         because 99 is a valid signal on Linux/MIPS.
459
460 2011-10-27  Bruno Haible  <bruno@clisp.org>
461
462         nonblocking tests: Fix test failure on Linux/MIPS.
463         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
464         Set to 270000.
465
466 2011-10-27  Bruno Haible  <bruno@clisp.org>
467
468         utimensat: Work around problem on Linux/hppa.
469         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
470         values.
471         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
472
473 2011-10-25  Jim Meyering  <meyering@redhat.com>
474
475         maint.mk: fix a bug in sc_prohibit_stddef_without_use
476         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
477         after symbols like NULL, size_t, etc.
478         Reported by Alfred M. Szmidt.
479
480         maint.mk: exempt ENODATA from a syntax-check rule
481         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
482         from the sc_prohibit_always-defined_macros syntax-check rule.
483         Add a comment.  See this for more details:
484         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
485
486 2011-10-23  Jim Meyering  <meyering@redhat.com>
487
488         fts: close parent dir FD before returning from post-traversal fts_read
489         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
490         unlink A, even though an FD open on A remained.  This is suboptimal
491         (holding a file descriptor open longer than needed), but otherwise not
492         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
493         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
494         that represents a real problem: it causes the removal of A to fail
495         with e.g., "rm: cannot remove `A': Device or resource busy"
496
497         fts visits each directory twice and keeps a cache (fts_fd_ring) of
498         directory file descriptors.  After completing the final, FTS_DP,
499         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
500         cache, but then proceeded to add a new FD to it via the subsequent
501         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
502         final file descriptor would be closed only via fts_close's call to
503         fd_ring_clear.  Now, it is usually closed earlier, via the final
504         FTS_DP-returning fts_read call.
505         * lib/fts.c (restore_initial_cwd): New function, converted from
506         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
507         Update callers.
508         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
509         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
510
511 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
512             Bruno Haible  <bruno@clisp.org>
513             Jim Meyering  <jim@meyering.net>
514
515         readme-release: improve safety of release prep instructions.
516         * README-release: Don't git pull all branches when only master
517         is needed for the release process.
518         Run make maintainer-clean before changing trees and merging.
519         Don't try to run ./configure right after git pull in case files
520         that influence the bootstrap process have changed, move the
521         ./configure step to after running ./bootstrap.
522         Don't bootstrap "one last time"... it's the first time!
523
524 2011-10-22  Bruno Haible  <bruno@clisp.org>
525
526         errno, strerror-override: Support for MSVC 10.
527         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
528         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
529         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
530         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
531         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
532         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
533         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
534         Assign values compatible with MSVC 10.
535         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
536         New macros.
537         (GNULIB_defined_EWINSOCK): New macro.
538         * lib/strerror-override.c (strerror_override): Update accordingly.
539         * lib/strerror-override.h: Likewise.
540         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
541         longer equal to the corresponding errno value.
542         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
543
544 2011-10-22  Bruno Haible  <bruno@clisp.org>
545
546         perror: Recognize when test program crashes.
547         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
548         strerror, set gl_cv_func_perror_works to no.
549         Reported by Daniel Richard G. <skunk@iskunk.org>.
550
551         perror: Fix indentation.
552         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
553
554 2011-10-22  Bruno Haible  <bruno@clisp.org>
555
556         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
557         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
558         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
559         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
560         functions, not as a macro.
561         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
562         macros.
563         (isfinite, isinf, isnan, signbit): Check overloaded functions and
564         absence of macro.
565         Suggested by Eric Blake.
566         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
567
568 2011-10-21  Bruno Haible  <bruno@clisp.org>
569
570         relocatable-prog-wrapper: Don't leave object files behind.
571         * build-aux/install-reloc: Re-synchronize list of .o files to be
572         removed with list of compilation units.
573
574 2011-10-20  Bruno Haible  <bruno@clisp.org>
575
576         openpty, posix_openpt: Remove code duplication.
577         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
578         * lib/openpty.c: Include <stdlib.h>.
579         (openpty): Use posix_openpt on all platforms except IRIX.
580         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
581
582 2011-10-20  Bruno Haible  <bruno@clisp.org>
583
584         unlockpt: Detect invalid argument.
585         * lib/unlockpt.c: Include <fcntl.h>.
586         (unlockpt): Check whether fd is valid, using fcntl().
587         * modules/unlockpt (Depends-on): Add fcntl-h.
588
589 2011-10-20  Bruno Haible  <bruno@clisp.org>
590
591         openpty: Avoid compilation error on AIX 6.1.
592         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
593
594 2011-10-20  Bruno Haible  <bruno@clisp.org>
595
596         posix_openpt: Support for OpenBSD.
597         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
598         (posix_openpt) [OpenBSD]: New code.
599         * lib/grantpt.c: Include <fcntl.h>.
600         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
601         * modules/grantpt (Depends-on): Add fcntl-h.
602
603 2011-10-20  Bruno Haible  <bruno@clisp.org>
604
605         posix_openpt test: Coding style.
606         * tests/test-posix_openpt.c: Use GNU coding style.
607
608 2011-10-20  Bruno Haible  <bruno@clisp.org>
609
610         grantpt: Support --avoid=pt_chown.
611         * modules/grantpt (Files): Add lib/pty-private.h.
612
613 2011-10-20  Bruno Haible  <bruno@clisp.org>
614
615         posix_openpt: Fix autoconf macro.
616         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
617         unneeded check for _getpty.
618
619 2011-10-20  Bruno Haible  <bruno@clisp.org>
620
621         openpty: Update comments.
622         * lib/openpty.c: Add comments about Minix.
623
624 2011-10-19  Eric Blake  <eblake@redhat.com>
625
626         openpty: relax license
627         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
628
629         pt_chown: use configmake to simplify build
630         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
631
632         ptsname and others: relax license
633         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
634         * modules/unlockpt (License): Likewise.
635         * modules/pt_chown (License): Likewise.
636         * modules/ptsname (License): Likewise.
637         * modules/ttyname_r (License): Likewise.
638
639 2011-10-19  Jim Meyering  <meyering@redhat.com>
640
641         posix_openpt: remove spurious #endif
642         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
643
644 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
645
646         maint.mk: Respect $(build_aux) in web-manual rule.
647         * top/maint.mk (web-manual): Find gen-announce script in user's
648         $(build_aux) directory instead of hard-coding 'build-aux'.
649
650 2011-10-19  Bruno Haible  <bruno@clisp.org>
651
652         posix_openpt: Fix compilation error.
653         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
654         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
655         Mention the openpty module as an alternative.
656
657 2011-10-19  Bruno Haible  <bruno@clisp.org>
658
659         Support for old NeXTstep 3.3 frexp().
660         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
661         execution time of the test to 5 seconds.
662         Reported by Daniel Richard G. <skunk@iskunk.org>.
663
664 2011-10-19  Bruno Haible  <bruno@clisp.org>
665
666         Support for old NeXTstep 3.3 sed.
667         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
668         part, use /.../, not \|...|. Escape periods in the header file name.
669         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
670         Reported by Daniel Richard G. <skunk@iskunk.org>.
671
672 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
673
674         Support for old NeXTstep 3.3 gcc.
675         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
676         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
677         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
678         * lib/spawn.in.h (_Restrict_arr_): Likewise.
679         * lib/regex.h (_Restrict_arr_): Likewise.
680         * lib/regex_internal.h (re_token_t): Likewise.
681         * lib/regexec.c (check_node_accept_bytes): Likewise.
682         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
683
684 2011-10-18  Eric Blake  <eblake@redhat.com>
685
686         posix_openpt: new module
687         * modules/posix_openpt: New module.
688         * m4/posix_openpt.m4: New file.
689         * lib/posix_openpt.c: Likewise.
690         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
691         (gl_STDLIB_H_DEFAULTS): Set defaults.
692         * modules/stdlib (Makefile.am): Substitute macros.
693         * lib/stdlib.in.h (posix_openpt): Declare.
694         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
695         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
696         * modules/posix_openpt-tests: New test module.
697         * tests/test-posix_openpt.c: New test.
698
699 2011-10-15  Bruno Haible  <bruno@clisp.org>
700
701         xstrtoll: Fix compilation failure.
702         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
703         from lib/strtol.c.
704         * doc/posix-headers/limits.texi: Mention missing numerical limits on
705         some platforms.
706         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
707
708 2011-10-15  Bruno Haible  <bruno@clisp.org>
709
710         vasnprintf: Optimize bit search operation.
711         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
712         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
713         gl_DOUBLE_EXPONENT_LOCATION.
714         * modules/vasnprintf (Files): Add m4/exponentd.m4.
715         * modules/unistdio/u8-vasnprintf (Files): Likewise.
716         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
717         * modules/unistdio/u16-vasnprintf (Files): Likewise.
718         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
719         * modules/unistdio/u32-vasnprintf (Files): Likewise.
720         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
721         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
722         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
723
724 2011-10-15  Bruno Haible  <bruno@clisp.org>
725
726         vasnprintf: Fix comments.
727         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
728
729 2011-10-14  Bruno Haible  <bruno@clisp.org>
730
731         Tests for module 'integer_length_ll'.
732         * modules/integer_length_ll-tests: New file.
733         * tests/test-integer_length_ll.c: New file.
734
735         New module 'integer_length_ll'.
736         * lib/integer_length_ll.c: New file.
737         * modules/integer_length_ll: New file.
738
739 2011-10-14  Bruno Haible  <bruno@clisp.org>
740
741         Tests for module 'integer_length_l'.
742         * modules/integer_length_l-tests: New file.
743         * tests/test-integer_length_l.c: New file.
744
745         New module 'integer_length_l'.
746         * lib/integer_length_l.c: New file.
747         * modules/integer_length_l: New file.
748
749 2011-10-14  Bruno Haible  <bruno@clisp.org>
750
751         Tests for module 'integer_length'.
752         * modules/integer_length-tests: New file.
753         * tests/test-integer_length.c: New file.
754
755         New module 'integer_length'.
756         * lib/integer_length.h: New file.
757         * lib/integer_length.c: New file.
758         * modules/integer_length: New file.
759
760 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
761
762         popen: Fix dependency conditions.
763         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
764
765 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
766
767         perror: Fix autoconf test.
768         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
769         <stdlib.h> and <string.h>.
770
771 2011-10-14  Bruno Haible  <bruno@clisp.org>
772
773         ffsl: Optimize on 64-bit platforms.
774         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
775         unrolling.
776
777 2011-10-13  Bruno Haible  <bruno@clisp.org>
778
779         ffsl: Optimize on 32-bit platforms.
780         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
781         use ffs() without a loop.
782
783         ffsl, ffsll: Optimize for GCC.
784         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
785         * lib/ffsl.c (GCC_BUILTIN): New macro.
786         * lib/ffsll.c (GCC_BUILTIN): Likewise.
787
788 2011-10-13  Bruno Haible  <bruno@clisp.org>
789
790         ffs, bcopy, memset: Support symbol renaming via config.h.
791         * lib/ffs.c: Include <config.h>.
792         * lib/bcopy.c: Likewise.
793         * lib/memset.c: Likewise.
794
795 2011-10-10  Bruno Haible  <bruno@clisp.org>
796
797         atanl: Simplify for platforms where 'long double' == 'double'.
798         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
799         alternative implementation.
800         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
801         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
802         * modules/atanl (Depends-on): Add atan. Update conditions.
803
804 2011-10-10  Bruno Haible  <bruno@clisp.org>
805
806         acosl: Simplify for platforms where 'long double' == 'double'.
807         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
808         alternative implementation.
809         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
810         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
811         * modules/acosl (Depends-on): Add acos. Update conditions.
812
813 2011-10-10  Bruno Haible  <bruno@clisp.org>
814
815         asinl: Simplify for platforms where 'long double' == 'double'.
816         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
817         alternative implementation.
818         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
819         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
820         * modules/asinl (Depends-on): Add asin. Update conditions.
821
822 2011-10-10  Bruno Haible  <bruno@clisp.org>
823
824         tanl: Simplify for platforms where 'long double' == 'double'.
825         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
826         implementation.
827         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
828         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
829         * modules/tanl (Depends-on): Add tan. Update conditions.
830         (configure.ac): Don't compile trigl.c if
831         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
832
833 2011-10-10  Bruno Haible  <bruno@clisp.org>
834
835         cosl: Simplify for platforms where 'long double' == 'double'.
836         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
837         implementation.
838         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
839         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
840         * modules/cosl (Depends-on): Add cos. Update conditions.
841         (configure.ac): Don't compile sincosl.c and trigl.c if
842         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
843
844 2011-10-10  Bruno Haible  <bruno@clisp.org>
845
846         sinl: Simplify for platforms where 'long double' == 'double'.
847         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
848         implementation.
849         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
850         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
851         * modules/sinl (Depends-on): Add sin. Update conditions.
852         (configure.ac): Don't compile sincosl.c and trigl.c if
853         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
854
855 2011-10-10  Bruno Haible  <bruno@clisp.org>
856
857         logl: Simplify for platforms where 'long double' == 'double'.
858         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
859         implementation.
860         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
861         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
862         * modules/logl (Depends-on): Add log. Update conditions.
863
864 2011-10-10  Bruno Haible  <bruno@clisp.org>
865
866         expl: Simplify for platforms where 'long double' == 'double'.
867         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
868         implementation.
869         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
870         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
871         * modules/expl (Depends-on): Add exp. Update conditions.
872
873 2011-10-10  Bruno Haible  <bruno@clisp.org>
874
875         sqrtl: Simplify for platforms where 'long double' == 'double'.
876         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
877         alternative implementation.
878         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
879         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
880         * modules/sqrtl (Depends-on): Update conditions.
881
882 2011-10-10  Bruno Haible  <bruno@clisp.org>
883
884         ldexpl: Simplify for platforms where 'long double' == 'double'.
885         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
886         alternative implementation.
887         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
888         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
889         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
890
891 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
892
893         ffsll: set correct witness
894         * modules/ffsll (configure.ac): Fix typo.
895
896 2011-10-10  Bruno Haible  <bruno@clisp.org>
897
898         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
899         * lib/printf-frexpl.c: Include <config.h>.
900         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
901         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
902         second time.
903         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
904         gl_LONG_DOUBLE_VS_DOUBLE.
905         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
906         conditions.
907
908 2011-10-10  Bruno Haible  <bruno@clisp.org>
909
910         frexpl: Simplify for platforms where 'long double' == 'double'.
911         * lib/frexpl.c: Include <config.h>.
912         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
913         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
914         time.
915         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
916         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
917         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
918         * modules/frexpl (Depends-on): Add frexp. Update conditions.
919         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
920         conditions.
921
922 2011-10-10  Jim Meyering  <meyering@redhat.com>
923
924         test-renameat: don't leave behind a temporary file
925         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
926           ERROR: files left in build directory after distclean:
927           ./gltests/test-renameat.too
928           make[1]: *** [distcleancheck] Error 1
929         Reported by Tom G. Christensen.
930
931 2011-10-09  Bruno Haible  <bruno@clisp.org>
932
933         rint: Determine RINT_LIBM correctly on AIX 7.
934         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
935         directly, not only through a function pointer. Also accept an optional
936         4th argument with extra code.
937         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
938         rintf() call by gcc when optimizing.
939
940         mathfunc.m4: Refactor.
941         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
942         m4 variable.
943
944 2011-10-09  Bruno Haible  <bruno@clisp.org>
945
946         rintl: Simplify for platforms where 'long double' == 'double'.
947         * lib/rintl.c: Include <config.h>.
948         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
949         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
950         time.
951         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
952         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
953         * modules/rintl (Depends-on): Add rint. Update conditions.
954
955 2011-10-09  Bruno Haible  <bruno@clisp.org>
956
957         roundl: Simplify for platforms where 'long double' == 'double'.
958         * lib/roundl.c: Include <config.h>.
959         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
960         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
961         time.
962         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
963         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
964         * modules/roundl (Depends-on): Add round. Update conditions.
965
966 2011-10-09  Bruno Haible  <bruno@clisp.org>
967
968         truncl: Simplify for platforms where 'long double' == 'double'.
969         * lib/truncl.c: Include <config.h>.
970         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
971         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
972         time.
973         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
974         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
975         * modules/truncl (Depends-on): Add trunc. Update conditions.
976
977 2011-10-09  Bruno Haible  <bruno@clisp.org>
978
979         ceill: Simplify for platforms where 'long double' == 'double'.
980         * lib/ceill.c: Include <config.h>.
981         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
982         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
983         time.
984         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
985         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
986         * modules/ceill (Depends-on): Add ceil. Update conditions.
987
988 2011-10-09  Bruno Haible  <bruno@clisp.org>
989
990         floorl: Simplify for platforms where 'long double' == 'double'.
991         * lib/floorl.c: Include <config.h>.
992         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
993         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
994         time.
995         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
996         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
997         * modules/floorl (Depends-on): Add floor. Update conditions.
998
999 2011-10-09  Bruno Haible  <bruno@clisp.org>
1000
1001         rint: Fix ordering constraints.
1002         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1003         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1004         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1005
1006 2011-10-09  Bruno Haible  <bruno@clisp.org>
1007
1008         copysignl: Simplify for platforms where 'long double' == 'double'.
1009         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1010         alternative.
1011         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1012         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1013         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1014
1015 2011-10-09  Bruno Haible  <bruno@clisp.org>
1016
1017         Tests for module 'rintl'.
1018         * modules/rintl-tests: New file.
1019         * tests/test-rintl.c: New file.
1020
1021         New module 'rintl'.
1022         * lib/math.in.h (rintl): New declaration.
1023         * lib/rintl.c: New file.
1024         * m4/rintl.m4: New file.
1025         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1027         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1028         * modules/rintl: New file.
1029         * tests/test-math-c++.cc: Check the declaration of rintl.
1030         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1031         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1032         * doc/posix-functions/rintl.texi: Mention the new module.
1033
1034 2011-10-09  Bruno Haible  <bruno@clisp.org>
1035
1036         Tests for module 'rintf'.
1037         * modules/rintf-tests: New file.
1038         * tests/test-rintf.c: New file.
1039
1040         New module 'rintf'.
1041         * lib/math.in.h (rintf): New declaration.
1042         * lib/rintf.c: New file.
1043         * m4/rintf.m4: New file.
1044         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1045         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1046         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1047         * modules/rintf: New file.
1048         * tests/test-math-c++.cc: Check the declaration of rintf.
1049         * doc/posix-functions/rintf.texi: Mention the new module.
1050
1051 2011-10-09  Bruno Haible  <bruno@clisp.org>
1052
1053         rint: Support for MSVC.
1054         * lib/math.in.h (rint): New declaration.
1055         * lib/rint.c: New file.
1056         * m4/rint.m4: New file.
1057         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1059         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1060         * modules/rint (Description): Fix.
1061         (Files): Add lib/rint.c, m4/rint.m4.
1062         (Depends-on): Add math.
1063         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1064         gl_MATH_MODULE_INDICATOR.
1065         * tests/test-math-c++.cc: Check the declaration of rint.
1066         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1067         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1068         * doc/posix-functions/rint.texi: Mention the replacement provided by
1069         the module.
1070
1071         rint tests: More tests.
1072         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1073         minus-zero.h, infinity.h, nan.h.
1074         (main): Skip the test if the current rounding mode is not standard. Add
1075         tests for negative numbers, minus zero, infinity, NaN.
1076         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1077         tests/nan.h.
1078         (Depends-on): Add isnand-nolibm.
1079
1080 2011-10-09  Bruno Haible  <bruno@clisp.org>
1081
1082         Tests for module 'copysignl'.
1083         * modules/copysignl-tests: New file.
1084         * tests/test-copysignl.c: New file.
1085
1086         New module 'copysignl'.
1087         * lib/math.in.h (copysignl): New declaration.
1088         * lib/copysignl.c: New file.
1089         * m4/copysignl.m4: New file.
1090         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1091         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1092         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1093         HAVE_COPYSIGNL.
1094         * modules/copysignl: New file.
1095         * tests/test-math-c++.cc: Check the declaration of copysignl.
1096         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1097         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1098         * doc/posix-functions/copysignl.texi: Mention the new module.
1099
1100 2011-10-09  Bruno Haible  <bruno@clisp.org>
1101
1102         Tests for module 'copysignf'.
1103         * modules/copysignf-tests: New file.
1104         * tests/test-copysignf.c: New file.
1105
1106         New module 'copysignf'.
1107         * lib/math.in.h (copysignf): New declaration.
1108         * lib/copysignf.c: New file.
1109         * m4/copysignf.m4: New file.
1110         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1111         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1112         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1113         HAVE_COPYSIGNF.
1114         * modules/copysignf: New file.
1115         * tests/test-math-c++.cc: Check the declaration of copysignf.
1116         * doc/posix-functions/copysignf.texi: Mention the new module.
1117
1118 2011-10-09  Bruno Haible  <bruno@clisp.org>
1119
1120         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1121         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1122         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1123         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1124         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1125         gl_SIGNAL_H_DEFAULTS.
1126
1127 2011-10-09  Bruno Haible  <bruno@clisp.org>
1128
1129         poll: Make macro safer.
1130         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1131         ac_cv_header_poll_h is not set.
1132
1133 2011-10-09  Bruno Haible  <bruno@clisp.org>
1134
1135         copysign: Provide replacement.
1136         * lib/math.in.h (copysign): New declaration.
1137         * lib/copysign.c: New file.
1138         * m4/copysign.m4: New file.
1139         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1141         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1142         HAVE_COPYSIGN.
1143         * modules/copysign (Description): Clarify.
1144         (Files): Add lib/copysign.c, m4/copysign.m4.
1145         (Depends-on): Add math, signbit.
1146         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1147         gl_MATH_MODULE_INDICATOR.
1148         * tests/test-math-c++.cc: Check the declaration of copysign.
1149         * doc/posix-functions/copysign.texi: Mention the effects of the module
1150         on Minix and MSVC.
1151
1152 2011-10-09  Bruno Haible  <bruno@clisp.org>
1153
1154         isinf: Ensure macro on AIX 5.1.
1155         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1156         macro.
1157         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1158
1159 2011-10-09  Bruno Haible  <bruno@clisp.org>
1160
1161         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1162         * modules/snprintf-posix-tests (configure.ac): Require
1163         gl_LONG_DOUBLE_VS_DOUBLE.
1164         * modules/sprintf-posix-tests (configure.ac): Likewise.
1165         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1166         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1167         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1168         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1169         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1170         tests on platforms where 'long double' is the same as 'double'.
1171         * tests/test-sprintf-posix.h (test_function): Likewise.
1172         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1173         * tests/test-vasprintf-posix.c (test_function): Likewise.
1174
1175         *printf: Fix for platforms where 'long double' == 'double'.
1176         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1177         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1178         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1179         * modules/fprintf-posix (Files): Likewise.
1180         * modules/obstack-printf-posix (Files): Likewise.
1181         * modules/snprintf-posix (Files): Likewise.
1182         * modules/sprintf-posix (Files): Likewise.
1183         * modules/vasnprintf (Files): Likewise.
1184         * modules/vasnprintf-posix (Files): Likewise.
1185         * modules/vasprintf-posix (Files): Likewise.
1186         * modules/vdprintf-posix (Files): Likewise.
1187         * modules/vfprintf-posix (Files): Likewise.
1188         * modules/vsnprintf-posix (Files): Likewise.
1189         * modules/vsprintf-posix (Files): Likewise.
1190         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1191         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1192         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1193         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1194         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1195         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1196         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1197
1198         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1199         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1200         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1201         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1202         'long double'.
1203         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1204
1205         isinf: Fix for platforms where 'long double' == 'double'.
1206         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1207         Don't blindly assume 80-bit 'long double'.
1208
1209         isfinite: Fix for platforms where 'long double' == 'double'.
1210         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1211         Don't blindly assume 80-bit 'long double'.
1212
1213         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1214         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1215         * modules/isfinite-tests (configure.ac): Require
1216         gl_LONG_DOUBLE_VS_DOUBLE.
1217         * modules/isinf-tests (configure.ac): Likewise.
1218         * modules/isnan-tests (configure.ac): Likewise.
1219         * modules/isnanl-tests (configure.ac): Likewise.
1220         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1221         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1222         tests on platforms where 'long double' is the same as 'double'.
1223         * tests/test-isinf.c (test_isinfl): Likewise.
1224         * tests/test-isnan.c (test_long_double): Likewise.
1225         * tests/test-isnanl.h (main): Likewise.
1226
1227 2011-10-08  Bruno Haible  <bruno@clisp.org>
1228
1229         Tests for module 'tanhf'.
1230         * modules/tanhf-tests: New file.
1231         * tests/test-tanhf.c: New file.
1232
1233         New module 'tanhf'.
1234         * lib/math.in.h (tanhf): New declaration.
1235         * lib/tanhf.c: New file.
1236         * m4/tanhf.m4: New file.
1237         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1238         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1239         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1240         * modules/tanhf: New file.
1241         * tests/test-math-c++.cc: Check the declaration of tanhf.
1242         * doc/posix-functions/tanhf.texi: Mention the new module.
1243
1244         tanh: Use a .m4 file.
1245         * m4/tanh.m4: New file.
1246         * modules/tanh (Files): Add it.
1247         (configure.ac): Just invoke gl_FUNC_TANH.
1248
1249 2011-10-08  Bruno Haible  <bruno@clisp.org>
1250
1251         Tests for module 'coshf'.
1252         * modules/coshf-tests: New file.
1253         * tests/test-coshf.c: New file.
1254
1255         New module 'coshf'.
1256         * lib/math.in.h (coshf): New declaration.
1257         * lib/coshf.c: New file.
1258         * m4/coshf.m4: New file.
1259         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1260         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1261         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1262         * modules/coshf: New file.
1263         * tests/test-math-c++.cc: Check the declaration of coshf.
1264         * doc/posix-functions/coshf.texi: Mention the new module.
1265
1266         cosh: Use a .m4 file.
1267         * m4/cosh.m4: New file.
1268         * modules/cosh (Files): Add it.
1269         (configure.ac): Just invoke gl_FUNC_COSH.
1270
1271 2011-10-08  Bruno Haible  <bruno@clisp.org>
1272
1273         Tests for module 'sinhf'.
1274         * modules/sinhf-tests: New file.
1275         * tests/test-sinhf.c: New file.
1276
1277         New module 'sinhf'.
1278         * lib/math.in.h (sinhf): New declaration.
1279         * lib/sinhf.c: New file.
1280         * m4/sinhf.m4: New file.
1281         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1282         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1283         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1284         * modules/sinhf: New file.
1285         * tests/test-math-c++.cc: Check the declaration of sinhf.
1286         * doc/posix-functions/sinhf.texi: Mention the new module.
1287
1288         sinh: Use a .m4 file.
1289         * m4/sinh.m4: New file.
1290         * modules/sinh (Files): Add it.
1291         (configure.ac): Just invoke gl_FUNC_SINH.
1292
1293 2011-10-08  Bruno Haible  <bruno@clisp.org>
1294
1295         Tests for module 'atan2f'.
1296         * modules/atan2f-tests: New file.
1297         * tests/test-atan2f.c: New file.
1298
1299         New module 'atan2f'.
1300         * lib/math.in.h (atan2f): New declaration.
1301         * lib/atan2f.c: New file.
1302         * m4/atan2f.m4: New file.
1303         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1304         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1305         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1306         * modules/atan2f: New file.
1307         * tests/test-math-c++.cc: Check the declaration of atan2f.
1308         * doc/posix-functions/atan2f.texi: Mention the new module.
1309
1310         atan2: Use a .m4 file.
1311         * m4/atan2.m4: New file.
1312         * modules/atan2 (Files): Add it.
1313         (configure.ac): Just invoke gl_FUNC_ATAN2.
1314
1315 2011-10-08  Bruno Haible  <bruno@clisp.org>
1316
1317         Tests for module 'atanf'.
1318         * modules/atanf-tests: New file.
1319         * tests/test-atanf.c: New file.
1320
1321         New module 'atanf'.
1322         * lib/math.in.h (atanf): New declaration.
1323         * lib/atanf.c: New file.
1324         * m4/atanf.m4: New file.
1325         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1326         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1327         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1328         * modules/atanf: New file.
1329         * tests/test-math-c++.cc: Check the declaration of atanf.
1330         * doc/posix-functions/atanf.texi: Mention the new module.
1331
1332         atan: Use a .m4 file.
1333         * m4/atan.m4: New file.
1334         * modules/atan (Files): Add it.
1335         (configure.ac): Just invoke gl_FUNC_ATAN.
1336
1337 2011-10-08  Bruno Haible  <bruno@clisp.org>
1338
1339         Tests for module 'acosf'.
1340         * modules/acosf-tests: New file.
1341         * tests/test-acosf.c: New file.
1342
1343         New module 'acosf'.
1344         * lib/math.in.h (acosf): New declaration.
1345         * lib/acosf.c: New file.
1346         * m4/acosf.m4: New file.
1347         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1348         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1349         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1350         * modules/acosf: New file.
1351         * tests/test-math-c++.cc: Check the declaration of acosf.
1352         * doc/posix-functions/acosf.texi: Mention the new module.
1353
1354         acos: Use a .m4 file.
1355         * m4/acos.m4: New file.
1356         * modules/acos (Files): Add it.
1357         (configure.ac): Just invoke gl_FUNC_ACOS.
1358
1359 2011-10-08  Bruno Haible  <bruno@clisp.org>
1360
1361         Tests for module 'asinf'.
1362         * modules/asinf-tests: New file.
1363         * tests/test-asinf.c: New file.
1364
1365         New module 'asinf'.
1366         * lib/math.in.h (asinf): New declaration.
1367         * lib/asinf.c: New file.
1368         * m4/asinf.m4: New file.
1369         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
1370         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
1371         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
1372         * modules/asinf: New file.
1373         * tests/test-math-c++.cc: Check the declaration of asinf.
1374         * doc/posix-functions/asinf.texi: Mention the new module.
1375
1376         asin: Use a .m4 file.
1377         * m4/asin.m4: New file.
1378         * modules/asin (Files): Add it.
1379         (configure.ac): Just invoke gl_FUNC_ASIN.
1380
1381 2011-10-08  Bruno Haible  <bruno@clisp.org>
1382
1383         Tests for module 'tanf'.
1384         * modules/tanf-tests: New file.
1385         * tests/test-tanf.c: New file.
1386
1387         New module 'tanf'.
1388         * lib/math.in.h (tanf): New declaration.
1389         * lib/tanf.c: New file.
1390         * m4/tanf.m4: New file.
1391         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
1392         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
1393         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
1394         * modules/tanf: New file.
1395         * tests/test-math-c++.cc: Check the declaration of tanf.
1396         * doc/posix-functions/tanf.texi: Mention the new module.
1397
1398         tan: Use a .m4 file.
1399         * m4/tan.m4: New file.
1400         * modules/tan (Files): Add it.
1401         (configure.ac): Just invoke gl_FUNC_TAN.
1402
1403 2011-10-08  Bruno Haible  <bruno@clisp.org>
1404
1405         Tests for module 'cosf'.
1406         * modules/cosf-tests: New file.
1407         * tests/test-cosf.c: New file.
1408
1409         New module 'cosf'.
1410         * lib/math.in.h (cosf): New declaration.
1411         * lib/cosf.c: New file.
1412         * m4/cosf.m4: New file.
1413         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
1414         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
1415         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
1416         * modules/cosf: New file.
1417         * tests/test-math-c++.cc: Check the declaration of cosf.
1418         * doc/posix-functions/cosf.texi: Mention the new module.
1419
1420         cos: Use a .m4 file.
1421         * m4/cos.m4: New file.
1422         * modules/cos (Files): Add it.
1423         (configure.ac): Just invoke gl_FUNC_COS.
1424
1425 2011-10-08  Bruno Haible  <bruno@clisp.org>
1426
1427         Tests for module 'sinf'.
1428         * modules/sinf-tests: New file.
1429         * tests/test-sinf.c: New file.
1430
1431         New module 'sinf'.
1432         * lib/math.in.h (sinf): New declaration.
1433         * lib/sinf.c: New file.
1434         * m4/sinf.m4: New file.
1435         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
1436         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
1437         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
1438         * modules/sinf: New file.
1439         * tests/test-math-c++.cc: Check the declaration of sinf.
1440         * doc/posix-functions/sinf.texi: Mention the new module.
1441
1442         sin: Use a .m4 file.
1443         * m4/sin.m4: New file.
1444         * modules/sin (Files): Add it.
1445         (configure.ac): Just invoke gl_FUNC_SIN.
1446
1447 2011-10-08  Bruno Haible  <bruno@clisp.org>
1448
1449         Tests for module 'powf'.
1450         * modules/powf-tests: New file.
1451         * tests/test-powf.c: New file.
1452
1453         New module 'powf'.
1454         * lib/math.in.h (powf): New declaration.
1455         * lib/powf.c: New file.
1456         * m4/powf.m4: New file.
1457         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1458         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1459         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1460         * modules/powf: New file.
1461         * tests/test-math-c++.cc: Check the declaration of powf.
1462         * doc/posix-functions/powf.texi: Mention the new module.
1463
1464         pow: Use a .m4 file.
1465         * m4/pow.m4: New file.
1466         * modules/pow (Files): Add it.
1467         (configure.ac): Just invoke gl_FUNC_POW.
1468
1469 2011-10-08  Bruno Haible  <bruno@clisp.org>
1470
1471         Tests for module 'log10f'.
1472         * modules/log10f-tests: New file.
1473         * tests/test-log10f.c: New file.
1474
1475         New module 'log10f'.
1476         * lib/math.in.h (log10f): New declaration.
1477         * lib/log10f.c: New file.
1478         * m4/log10f.m4: New file.
1479         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1480         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1481         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1482         * modules/log10f: New file.
1483         * tests/test-math-c++.cc: Check the declaration of log10f.
1484         * doc/posix-functions/log10f.texi: Mention the new module.
1485
1486         log10: Use a .m4 file.
1487         * m4/log10.m4: New file.
1488         * modules/log10 (Files): Add it.
1489         (configure.ac): Just invoke gl_FUNC_LOG10.
1490
1491 2011-10-08  Bruno Haible  <bruno@clisp.org>
1492
1493         Tests for module 'logf'.
1494         * modules/logf-tests: New file.
1495         * tests/test-logf.c: New file.
1496
1497         New module 'logf'.
1498         * lib/math.in.h (logf): New declaration.
1499         * lib/logf.c: New file.
1500         * m4/logf.m4: New file.
1501         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
1502         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
1503         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
1504         * modules/logf: New file.
1505         * tests/test-math-c++.cc: Check the declaration of logf.
1506         * doc/posix-functions/logf.texi: Mention the new module.
1507
1508         log: Use a .m4 file.
1509         * m4/log.m4: New file.
1510         * modules/log (Files): Add it.
1511         (configure.ac): Just invoke gl_FUNC_LOG.
1512
1513 2011-10-08  Bruno Haible  <bruno@clisp.org>
1514
1515         Tests for module 'expf'.
1516         * modules/expf-tests: New file.
1517         * tests/test-expf.c: New file.
1518
1519         New module 'expf'.
1520         * lib/math.in.h (expf): New declaration.
1521         * lib/expf.c: New file.
1522         * m4/expf.m4: New file.
1523         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1525         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1526         * modules/expf: New file.
1527         * tests/test-math-c++.cc: Check the declaration of expf.
1528         * doc/posix-functions/expf.texi: Mention the new module.
1529
1530         exp: Use a .m4 file.
1531         * m4/exp.m4: New file.
1532         * modules/exp (Files): Add it.
1533         (configure.ac): Just invoke gl_FUNC_EXP.
1534
1535 2011-10-08  Bruno Haible  <bruno@clisp.org>
1536
1537         Tests for module 'sqrtf'.
1538         * modules/sqrtf-tests: New file.
1539         * tests/test-sqrtf.c: New file.
1540
1541         New module 'sqrtf'.
1542         * lib/math.in.h (sqrtf): New declaration.
1543         * lib/sqrtf.c: New file.
1544         * m4/sqrtf.m4: New file.
1545         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
1546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
1547         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
1548         * modules/sqrtf: New file.
1549         * tests/test-math-c++.cc: Check the declaration of sqrtf.
1550         * doc/posix-functions/sqrtf.texi: Mention the new module.
1551
1552 2011-10-08  Bruno Haible  <bruno@clisp.org>
1553
1554         Tests: Avoid link failures w.r.t. libintl.
1555         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
1556         $(LIBINTL).
1557         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
1558         $(LIBINTL).
1559         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
1560         against $(LIBINTL).
1561         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
1562         $(LIBINTL).
1563         * modules/openat-tests (Makefile.am): Link test-fchmodat against
1564         $(LIBINTL).
1565         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
1566
1567 2011-10-08  Bruno Haible  <bruno@clisp.org>
1568
1569         pow tests: Defeat compiler optimizations.
1570         * tests/test-pow.c (main): Assign arguments to x and y before use.
1571
1572 2011-10-08  Bruno Haible  <bruno@clisp.org>
1573
1574         gnulib-tool: Improve last commit.
1575         * gnulib-tool (func_modules_transitive_closure): Simplify code.
1576         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
1577         ignore dependencies that are not among the modules list.
1578
1579 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
1580
1581         gnulib-tool: don't follow dependencies to avoided modules
1582         This fixes a bug that is related to the previous one.
1583         * gnulib-tool (func_modules_transitive_closure)
1584         (func_emit_autoconf_snippets):
1585         Check whether a dependency is acceptable before using it.
1586         (--extract-dependencies): Report an error if --avoid is also used,
1587         since this combination of options is not yet supported.
1588
1589         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
1590         Problem reported by Peter Dyballa in
1591         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
1592         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
1593         when echoing "$condition".
1594
1595 2011-10-07  Bruno Haible  <bruno@clisp.org>
1596
1597         Fix documentation about math functions on MacOS X.
1598         * doc/posix-functions/exp2.texi: Don't say the function is missing on
1599         MacOS X 10.5.
1600         * doc/posix-functions/fdim.texi: Likewise.
1601         * doc/posix-functions/feclearexcept.texi: Likewise.
1602         * doc/posix-functions/fegetenv.texi: Likewise.
1603         * doc/posix-functions/fegetround.texi: Likewise.
1604         * doc/posix-functions/feholdexcept.texi: Likewise.
1605         * doc/posix-functions/feraiseexcept.texi: Likewise.
1606         * doc/posix-functions/fesetenv.texi: Likewise.
1607         * doc/posix-functions/fesetround.texi: Likewise.
1608         * doc/posix-functions/fetestexcept.texi: Likewise.
1609         * doc/posix-functions/feupdateenv.texi: Likewise.
1610         * doc/posix-functions/fmax.texi: Likewise.
1611         * doc/posix-functions/fmin.texi: Likewise.
1612         * doc/posix-functions/log2.texi: Likewise.
1613         * doc/posix-functions/modff.texi: Likewise.
1614         * doc/posix-functions/nan.texi: Likewise.
1615         * doc/posix-functions/nanf.texi: Likewise.
1616         * doc/posix-functions/nextafterf.texi: Likewise.
1617         * doc/posix-functions/remquo.texi: Likewise.
1618
1619 2011-10-07  Bruno Haible  <bruno@clisp.org>
1620
1621         modff: Drop assumption about library that defines modff.
1622         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
1623         AC_CHECK_FUNCS.
1624         * modules/modff (Files): Add m4/mathfunc.m4.
1625
1626 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
1627
1628         raise tests: Avoid a GCC warning.
1629         * tests/test-raise.c (handler): Use _Noreturn.
1630
1631 2011-10-07  Bruno Haible  <bruno@clisp.org>
1632
1633         Tests for module 'ldexpf'.
1634         * modules/ldexpf-tests: New file.
1635         * tests/test-ldexpf.c: New file.
1636
1637         New module 'ldexpf'.
1638         * lib/math.in.h (ldexpf): New declaration.
1639         * lib/ldexpf.c: New file.
1640         * m4/ldexpf.m4: New file.
1641         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
1642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
1643         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
1644         * modules/ldexpf: New file.
1645         * tests/test-math-c++.cc: Check the declaration of ldexpf.
1646         * doc/posix-functions/ldexpf.texi: Mention the new module.
1647
1648 2011-10-06  Bruno Haible  <bruno@clisp.org>
1649
1650         frexpf: Work around problems on IRIX and mingw.
1651         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
1652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
1653         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
1654         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
1655         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
1656         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
1657         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
1658
1659 2011-10-06  Bruno Haible  <bruno@clisp.org>
1660
1661         fabsf: Drop assumption about library that defines fabsf.
1662         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
1663         AC_CHECK_FUNCS.
1664         * modules/fabsf (Files): Add m4/mathfunc.m4.
1665
1666 2011-10-06  Bruno Haible  <bruno@clisp.org>
1667
1668         frexpf: Drop assumption about library that defines frexpf.
1669         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
1670         'int *', 'float *', 'long double *', 'float', 'long double'.
1671         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
1672         AC_CHECK_FUNCS.
1673         * modules/frexpf (Files): Add m4/mathfunc.m4.
1674
1675         Tests for module 'frexpf'.
1676         * modules/frexpf-tests: New file.
1677         * tests/test-frexpf.c: New file.
1678
1679         New module 'frexpf'.
1680         * lib/math.in.h (frexpf): New declaration.
1681         * lib/frexpf.c: New file.
1682         * m4/frexpf.m4: New file.
1683         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
1684         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
1685         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
1686         * modules/frexpf: New file.
1687         * tests/test-math-c++.cc: Check the declaration of frexpf.
1688         * doc/posix-functions/frexpf.texi: Mention the new module.
1689
1690 2011-10-06  Bruno Haible  <bruno@clisp.org>
1691
1692         math: Sort function declarations of math.in.h.
1693         * lib/math.in.h (frexp, logb): Move declarations.
1694
1695 2011-10-05  Bruno Haible  <bruno@clisp.org>
1696
1697         Tests for module 'modff'.
1698         * modules/modff-tests: New file.
1699         * tests/test-modff.c: New file.
1700
1701         New module 'modff'.
1702         * lib/math.in.h (modff): New declaration.
1703         * lib/modff.c: New file.
1704         * m4/modff.m4: New file.
1705         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
1706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
1707         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
1708         * modules/modff: New file.
1709         * tests/test-math-c++.cc: Check the declaration of modff.
1710         * doc/posix-functions/modff.texi: Mention the new module.
1711
1712         modf tests: Make test sharper.
1713         * tests/test-modf.c (main): Strengthen upper bound.
1714
1715         modf: Use a .m4 file.
1716         * m4/modf.m4: New file.
1717         * modules/modf (Files): Add it.
1718         (configure.ac): Just invoke gl_FUNC_MODF.
1719
1720 2011-10-05  Bruno Haible  <bruno@clisp.org>
1721
1722         Tests for module 'fmodf'.
1723         * modules/fmodf-tests: New file.
1724         * tests/test-fmodf.c: New file.
1725
1726         New module 'fmodf'.
1727         * lib/math.in.h (fmodf): New declaration.
1728         * lib/fmodf.c: New file.
1729         * m4/fmodf.m4: New file.
1730         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
1731         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
1732         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
1733         * modules/fmodf: New file.
1734         * tests/test-math-c++.cc: Check the declaration of fmodf.
1735         * doc/posix-functions/fmodf.texi: Mention the new module.
1736
1737         fmod: Use a .m4 file.
1738         * m4/fmod.m4: New file.
1739         * modules/fmod (Files): Add it.
1740         (configure.ac): Just invoke gl_FUNC_FMOD.
1741
1742 2011-10-05  Bruno Haible  <bruno@clisp.org>
1743
1744         Tests for module 'fabsf'.
1745         * modules/fabsf-tests: New file.
1746         * tests/test-fabsf.c: New file.
1747
1748         New module 'fabsf'.
1749         * lib/math.in.h (fabsf): New declaration.
1750         * lib/fabsf.c: New file.
1751         * m4/fabsf.m4: New file.
1752         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
1753         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
1754         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
1755         * modules/fabsf: New file.
1756         * tests/test-math-c++.cc: Check the declaration of fabsf.
1757         * doc/posix-functions/fabsf.texi: Mention the new module.
1758
1759         fabs: Use a .m4 file.
1760         * m4/fabs.m4: New file.
1761         * modules/fabs (Files): Add it.
1762         (configure.ac): Just invoke gl_FUNC_FABS.
1763
1764 2011-10-05  Jim Meyering  <meyering@redhat.com>
1765
1766         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
1767         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
1768         ls -lL regression introduced in coreutils-8.12, it does so at the
1769         cost of an additional stat call in the common case.  Besides, now
1770         that the kernel change that prompted commit 95f7c57f has been reverted
1771         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
1772         we have no use for commit 95f7c57f, "file-has-acl: use
1773         acl_extended_file_nofollow if available".
1774
1775 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
1776
1777         file-has-acl: revert unintended change in behavior of ls -L
1778         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
1779         derived from...
1780         (file_has_acl): ...code here.  Call it.
1781         This problem was introduced with 2011-07-22 commit 95f7c57f,
1782         "file-has-acl: use acl_extended_file_nofollow if available".
1783         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
1784
1785 2011-10-03  Bruno Haible  <bruno@clisp.org>
1786
1787         poll: Avoid link errors on MSVC.
1788         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
1789         * modules/poll (Depends-on): Add sockets.
1790         (Link): New section.
1791         * NEWS: Mention the change.
1792         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
1793         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
1794         $(LIB_POLL) instead of $(LIBSOCKET).
1795
1796 2011-10-03  Bruno Haible  <bruno@clisp.org>
1797
1798         sys_select tests: Fix link error on MSVC 9.
1799         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
1800         with $(LIB_SELECT) instead of $(LIBSOCKET).
1801
1802 2011-10-03  Bruno Haible  <bruno@clisp.org>
1803
1804         sys_select: Fix compilation error on mingw.
1805         * lib/sys_select.in.h: On native Windows, include <io.h>.
1806
1807 2011-10-03  Bruno Haible  <bruno@clisp.org>
1808
1809         wmemset: Support for MSVC.
1810         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
1811         whether wmemset() exists.
1812
1813 2011-10-03  Bruno Haible  <bruno@clisp.org>
1814
1815         wmemmove: Support for MSVC.
1816         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
1817         whether wmemmove() exists.
1818
1819 2011-10-03  Bruno Haible  <bruno@clisp.org>
1820
1821         wmemcpy: Support for MSVC.
1822         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
1823         whether wmemcpy() exists.
1824
1825 2011-10-03  Bruno Haible  <bruno@clisp.org>
1826
1827         wmemcmp: Support for MSVC.
1828         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
1829         whether wmemcmp() exists.
1830
1831 2011-10-03  Bruno Haible  <bruno@clisp.org>
1832
1833         wmemchr: Support for MSVC.
1834         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
1835         whether wmemchr() exists.
1836
1837 2011-10-03  Bruno Haible  <bruno@clisp.org>
1838
1839         glthread/*, strsignal: Support for MSVC.
1840         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
1841         including <winsock.h> on MSVC 9.
1842         * lib/glthread/lock.h: Likewise.
1843         * lib/glthread/thread.h: Likewise.
1844         * lib/glthread/tls.h: Likewise.
1845         * lib/glthread/yield.h: Likewise.
1846         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
1847         if HAVE_UNISTD_H is false.
1848         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
1849
1850 2011-10-03  Bruno Haible  <bruno@clisp.org>
1851
1852         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
1853         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
1854         Set to 100000.
1855
1856 2011-10-03  Bruno Haible  <bruno@clisp.org>
1857
1858         acl: Fix specification.
1859         * lib/file-has-acl.c (file_has_acl): Fix specification.
1860
1861 2011-10-03  Bruno Haible  <bruno@clisp.org>
1862
1863         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
1864         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
1865         (compute_curr_prefix, shared_library_fullname,
1866         find_shared_library_fullname, get_shared_library_fullname, relocate):
1867         Use it together with PIC && INSTALLDIR.
1868         Reported by <jojelino@gmail.com>
1869         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
1870
1871 2011-10-01  Jim Meyering  <meyering@redhat.com>
1872
1873         maint.mk: adjust a release-related rule not to require use of gzip
1874         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
1875         Instead, check each file in $(DIST_ARCHIVES).  This is better for
1876         projects that build only .tar.xz files.  Also fix an erroneous test.
1877
1878         test-linkat: don't leave behind a temporary file
1879         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
1880         Otherwise, coreutils' "make distcheck" would fail with this:
1881           Only in /c/cu/tests/torture/coreutils/test/\
1882             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
1883           make[2]: *** [my-distcheck] Error 1
1884
1885         float, math: add omitted file
1886         * lib/itold.c: Add file, required for yesterday's float change.
1887
1888 2011-10-01  Bruno Haible  <bruno@clisp.org>
1889
1890         isinf: Fix for OpenBSD/x86.
1891         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
1892         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
1893         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
1894
1895 2011-10-01  Bruno Haible  <bruno@clisp.org>
1896
1897         isfinite: Fix syntax error in configure test.
1898         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
1899
1900         isfinite: Fix typo.
1901         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
1902         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
1903
1904 2011-10-01  Bruno Haible  <bruno@clisp.org>
1905
1906         nonblocking tests: Fix test failure on Linux/IA-64.
1907         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
1908         Set to 270000.
1909
1910 2011-10-01  Bruno Haible  <bruno@clisp.org>
1911
1912         mkfifoat tests: Fix a test failure on mingw.
1913         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
1914         with error ENOSYS.
1915
1916 2011-09-30  Bruno Haible  <bruno@clisp.org>
1917
1918         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
1919         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
1920         'long double'. Set REPLACE_ITOLD.
1921         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
1922         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
1923         * lib/itold.c: New file.
1924         * modules/float (Files): Add lib/itold.c.
1925         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
1926         (Makefile.am): Substitute REPLACE_ITOLD.
1927         * modules/math (Depends-on): Add float.
1928         (Makefile.am): Substitute REPLACE_ITOLD.
1929         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
1930         * doc/posix-headers/math.texi: Likewise.
1931         * doc/posix-functions/logl.texi: Likewise.
1932
1933 2011-09-30  Bruno Haible  <bruno@clisp.org>
1934
1935         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
1936         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
1937         Set to 140000.
1938
1939 2011-09-30  Bruno Haible  <bruno@clisp.org>
1940
1941         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
1942         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
1943         invocation, say "right after AC_PROG_CC_STDC", not "right after
1944         AC_PROG_CC".
1945         Reported by Gary V. Vaughan <gary@gnu.org>.
1946
1947 2011-09-30  Bruno Haible  <bruno@clisp.org>
1948
1949         Centralize C99 requirement.
1950         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
1951         * modules/stdarg (configure.ac-early): Invoke it instead of
1952         AC_PROG_CC_STDC.
1953         Reported by Gary V. Vaughan and Paul Eggert.
1954
1955 2011-09-29  Bruno Haible  <bruno@clisp.org>
1956
1957         float: Fix LDBL_MAX value on Linux/PowerPC.
1958         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
1959         on Linux/PowerPC.
1960         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
1961         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
1962         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
1963         platform.
1964         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
1965
1966 2011-09-29  Bruno Haible  <bruno@clisp.org>
1967
1968         doc: Improve doc about gl_EARLY.
1969         * doc/gnulib-tool.texi (Initial import): Mention where to place an
1970         AC_PROG_CC_STDC invocation.
1971         Reported by Gary V. Vaughan <gary@gnu.org>.
1972
1973 2011-09-28  Bruno Haible  <bruno@clisp.org>
1974
1975         fgetc, fputc, fread, fwrite tests: Fix link error.
1976         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
1977         on non-MSVC platforms.
1978         * tests/test-fputc.c (main): Likewise.
1979         * tests/test-fread.c (main): Likewise.
1980         * tests/test-fwrite.c (main): Likewise.
1981         Reported by Jim Meyering.
1982
1983 2011-09-27  Bruno Haible  <bruno@clisp.org>
1984
1985         fputc, fwrite tests: Avoid test failure on MSVC.
1986         * tests/test-fgetc.c: Include msvc-inval.h.
1987         (main): Invoke gl_msvc_inval_ensure_handler.
1988         * tests/test-fputc.c: Include msvc-inval.h.
1989         (main): Invoke gl_msvc_inval_ensure_handler.
1990         * tests/test-fread.c: Include msvc-inval.h.
1991         (main): Invoke gl_msvc_inval_ensure_handler.
1992         * tests/test-fwrite.c: Include msvc-inval.h.
1993         (main): Invoke gl_msvc_inval_ensure_handler.
1994         * modules/fgetc-tests (Depends-on): Add msvc-inval.
1995         * modules/fputc-tests (Depends-on): Likewise.
1996         * modules/fread-tests (Depends-on): Likewise.
1997         * modules/fwrite-tests (Depends-on): Likewise.
1998
1999 2011-09-27  Bruno Haible  <bruno@clisp.org>
2000
2001         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2002         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2003         (raise): Remove older, duplicated declaration.
2004         (_gl_raise_SIGPIPE): New declaration.
2005         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2006         (rpl_raise): Remove function.
2007         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2008         a gnulib-defined SIGPIPE here.
2009         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2010         'sigprocmask' has detected missing signal-blocking and the module
2011         'sigpipe' is enabled.
2012         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2013
2014 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2015
2016         base64-tests: avoid memory leak
2017         * tests/test-base64.c (main): Plug memory leak.
2018
2019         base32: new module
2020         * modules/base32: New module.
2021         * lib/base32.c: New file.
2022         * lib/base32.h: Likewise.
2023         * m4/base32.m4: Likewise.
2024         * modules/base32-tests: New test.
2025         * tests/test-base32.c: Likewise.
2026         * MODULES.html.sh (Misc): Mention it.
2027
2028 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2029
2030         gnulib: use more-standard license notice wording
2031         * gnulib-tool (func_emit_copyright_notice): When emitting a
2032         license notice into a file, use the standard wording as suggested
2033         by the current information for GNU maintainers, except say "file"
2034         rather than "program".  The new wording gives a license version
2035         number, which addresses an issue raised by Glenn Morris in
2036         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2037         * m4/onceonly.m4: Use that same wording here, too.
2038
2039         dup2: minor simplification
2040         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2041         as lib/dup2.c no longer uses 'inline'.
2042
2043 2011-09-25  Bruno Haible  <bruno@clisp.org>
2044
2045         strings: Fix compilation error on MSVC.
2046         * lib/strings.in.h: Include <stddef.h> for size_t.
2047
2048 2011-09-25  Bruno Haible  <bruno@clisp.org>
2049
2050         fflush et al.: Document limitation on MSVC.
2051         * doc/posix-functions/fflush.texi: Document possible crash in handling
2052         mode other than DEFAULT_HANDLING.
2053         * doc/posix-functions/fgetc.texi: Likewise.
2054         * doc/posix-functions/fputc.texi: Likewise.
2055         * doc/posix-functions/fread.texi: Likewise.
2056         * doc/posix-functions/fwrite.texi: Likewise.
2057
2058 2011-09-25  Bruno Haible  <bruno@clisp.org>
2059
2060         msvc-inval: Allow three invalid parameter handling modes.
2061         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2062         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2063         macros.
2064         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2065         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2066         SANE_LIBRARY_HANDLING as a no-op.
2067         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2068         <stdlib.h>.
2069         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2070
2071 2011-09-25  Bruno Haible  <bruno@clisp.org>
2072
2073         msvc-inval: Make handler multithread-safe.
2074         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2075         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2076         declarations.
2077         (gl_msvc_inval_current): New declaration.
2078         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2079         Operate on the structure returned by gl_msvc_inval_current().
2080         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2081         Remove varaiables.
2082         (tls_index, tls_initialized): New variables.
2083         (not_per_thread): New variable.
2084         (gl_msvc_inval_current): New function.
2085         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2086         returned by gl_msvc_inval_current().
2087
2088 2011-09-25  Bruno Haible  <bruno@clisp.org>
2089
2090         msvc-inval: Install handler globally.
2091         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2092         !_MSC_VER.
2093         (gl_msvc_invalid_parameter_handler): Remove declaration.
2094         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2095         declarations.
2096         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2097         Install the handler globally, don't uninstall it.
2098         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2099         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2100         currently valid, call RaiseException instead.
2101         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2102         for !_MSC_VER.
2103
2104 2011-09-25  Bruno Haible  <bruno@clisp.org>
2105
2106         strerror_r-posix: Fix for MSVC 9.
2107         * lib/strerror_r.c (local_snprintf): New function.
2108         (snprintf): Define to local_snprintf, not to _snprintf.
2109
2110 2011-09-25  Bruno Haible  <bruno@clisp.org>
2111
2112         ftruncate: Support for MSVC 9.
2113         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2114         (chsize_nothrow): New function.
2115         (chsize): Redefine as a macro.
2116         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2117         * modules/ftruncate (Depends-on): Add msvc-inval.
2118
2119 2011-09-25  Bruno Haible  <bruno@clisp.org>
2120
2121         New module 'fstat'.
2122         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2123         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2124         * lib/fchdir.c (rpl_fstat): Remove function.
2125         * m4/fstat.m4: New file.
2126         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2127         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2128         declared.
2129         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2130         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2131         * modules/fstat: New file.
2132         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2133         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2134         is set.
2135         * doc/posix-functions/fstat.texi: Mention the new module and the
2136         problem on MSVC.
2137         * NEWS: Mention the change.
2138         * modules/acl (Depends-on): Add fstat.
2139         * modules/chdir-safer (Depends-on): Likewise.
2140         * modules/chown (Depends-on): Likewise.
2141         * modules/copy-file (Depends-on): Likewise.
2142         * modules/fchdir (Depends-on): Likewise.
2143         * modules/fdopendir (Depends-on): Likewise.
2144         * modules/fopen (Depends-on): Likewise.
2145         * modules/fts (Depends-on): Likewise.
2146         * modules/getcwd (Depends-on): Likewise.
2147         * modules/isapipe (Depends-on): Likewise.
2148         * modules/linkat (Depends-on): Likewise.
2149         * modules/lseek (Depends-on): Likewise.
2150         * modules/mkdir-p (Depends-on): Likewise.
2151         * modules/open (Depends-on): Likewise.
2152         * modules/openat (Depends-on): Likewise.
2153         * modules/read-file (Depends-on): Likewise.
2154         * modules/renameat (Depends-on): Likewise.
2155         * modules/utimens (Depends-on): Likewise.
2156
2157 2011-09-25  Bruno Haible  <bruno@clisp.org>
2158
2159         linkat: Fix compilation on MSVC 9.
2160         * lib/linkat.c: Don't include <stdint.h>.
2161
2162 2011-09-25  Bruno Haible  <bruno@clisp.org>
2163
2164         fclose: Support for MSVC 9.
2165         * lib/fclose.c: Include msvc-inval.h.
2166         (fclose_nothrow): New function.
2167         (rpl_fclose): Use it.
2168         * modules/fclose (Depends-on): Add msvc-inval.
2169         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2170
2171 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2172
2173         dup2: minor simplifications
2174         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2175         that it's a performance win.
2176         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2177         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2178
2179 2011-09-24  Jim Meyering  <meyering@redhat.com>
2180
2181         test-futimens: avoid a warning from gcc -Wshadow
2182         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2183         to avoid a shadowing warning.
2184
2185 2011-09-24  Bruno Haible  <bruno@clisp.org>
2186
2187         fdopen: Support for MSVC 9.
2188         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2189         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2190         * lib/fdopen.c: Include msvc-inval.h.
2191         (fdopen_nothrow): New function.
2192         (rpl_fdopen): Use it.
2193         * modules/fdopen (Depends-on): Add msvc-inval.
2194         * modules/fclose-tests (Depends-on): Add fdopen.
2195         * modules/fflush-tests (Depends-on): Likewise.
2196         * modules/fgetc-tests (Depends-on): Likewise.
2197         * modules/fputc-tests (Depends-on): Likewise.
2198         * modules/fread-tests (Depends-on): Likewise.
2199         * modules/freopen-tests (Depends-on): Likewise.
2200         * modules/fseeko-tests (Depends-on): Likewise.
2201         * modules/ftello-tests (Depends-on): Likewise.
2202         * modules/fwrite-tests  (Depends-on): Likewise.
2203         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2204
2205 2011-09-24  Bruno Haible  <bruno@clisp.org>
2206
2207         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2208         * modules/fgetc-tests (Depends-on): Add unistd.
2209         * modules/fputc-tests (Depends-on): Likewise.
2210         * modules/fread-tests (Depends-on): Likewise.
2211         * modules/fwrite-tests (Depends-on): Likewise.
2212
2213 2011-09-24  Bruno Haible  <bruno@clisp.org>
2214
2215         dup: Simplify autoconf test.
2216         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2217         on gl_MSVC_INVAL's result.
2218
2219 2011-09-24  Bruno Haible  <bruno@clisp.org>
2220
2221         Tests for function fwrite().
2222         * modules/fwrite-tests: New file.
2223         * tests/test-fwrite.c: New file.
2224         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2225
2226         Tests for function fread().
2227         * modules/fread-tests: New file.
2228         * tests/test-fread.c: New file.
2229         * modules/stdio-tests (Depends-on): Add fread-tests.
2230
2231         Activate fputc tests.
2232         * modules/stdio-tests (Depends-on): Add fputc-tests.
2233
2234         Enhance fgetc, fputc tests.
2235         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2236         * tests/test-fputc.c (main): Likewise.
2237
2238 2011-09-24  Bruno Haible  <bruno@clisp.org>
2239
2240         write: Support for MSVC 9.
2241         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2242         is not 1.
2243         * lib/write.c (write_nothrow): New function.
2244         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2245         not 1. Use write_nothrow.
2246         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2247         invalid parameter handler.
2248         (gl_PREREQ_WRITE): New macro.
2249         * modules/write (Depends-on): Add msvc-inval.
2250         (configure.ac): Invoke gl_PREREQ_WRITE.
2251         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2252
2253 2011-09-24  Bruno Haible  <bruno@clisp.org>
2254
2255         read: Fix last commit.
2256         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2257
2258 2011-09-24  Bruno Haible  <bruno@clisp.org>
2259
2260         dup2: Fix last commit.
2261         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2262         (rpl_dup2): Disable fcntl workaround on native Windows.
2263
2264         sigprocmask: Make code safer.
2265         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2266         section that changes macro definitions for this compilation unit.
2267
2268 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2269
2270         dup2: clarify by coalescing Windows-specific material
2271         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2272         "msvc-nothrow.h"' to the Windows-specific section, so that the
2273         Emacs source need not contain these include files.
2274         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2275         Windows-specific fixes into this function rather than just the
2276         nothrow fix, as this shortens and clarifies the code.  Always
2277         define as a function, as that's a bit cleaner than having it be
2278         sometimes a function and sometimes a macro.
2279         (rpl_dup2): Move the Windows-specific stuff out of here and into
2280         ms_windows_dup2.  Don't protect the Haiku-related fix with
2281         "#if !defined __linux__", as the same code also works around
2282         a Linux kernel bug, and it doesn't add any system calls on any
2283         platform.  Add comment about FreeBSD 6.1.
2284
2285         sigprocmask: move #include directive
2286         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2287         Windows-specific section, so that the Emacs source need not
2288         contain msvc-inval.h.
2289
2290 2011-09-23  Bruno Haible  <bruno@clisp.org>
2291
2292         read: Support for MSVC 9.
2293         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2294         is not 1.
2295         * lib/read.c (read_nothrow): New function.
2296         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2297         read_nothrow.
2298         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2299         invalid parameter handler.
2300         (gl_PREREQ_READ): New macro.
2301         * modules/read (Depends-on): Add msvc-inval.
2302         (configure.ac): Invoke gl_PREREQ_READ.
2303         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2304
2305 2011-09-23  Bruno Haible  <bruno@clisp.org>
2306
2307         close: Support for MSVC 9.
2308         * lib/close.c: Include <errno.h>, msvc-inval.h.
2309         (close_nothrow): New function.
2310         (rpl_close): Use it.
2311         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2312         invalid parameter handler.
2313         * modules/close (Depends-on): Add msvc-inval.
2314         * modules/dup2-tests (Depends-on): Add close.
2315         * modules/dup3-tests (Depends-on): Likewise.
2316         * modules/fcntl-tests (Depends-on): Likewise.
2317         * modules/spawn-pipe-tests (Depends-on): Likewise.
2318         * modules/unistd-safer-tests (Depends-on): Likewise.
2319         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2320
2321 2011-09-23  Bruno Haible  <bruno@clisp.org>
2322
2323         New module 'dup'.
2324         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2325         Allow replacement.
2326         * lib/dup.c: New file.
2327         * lib/fchdir.c (rpl_dup): Remove function.
2328         * m4/dup.m4: New file.
2329         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2330         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2331         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2332         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2333         * modules/dup: New file.
2334         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2335         'dup' module is in use.
2336         * modules/fdopendir (Depends-on): Add dup.
2337         * modules/fdutimensat-tests (Depends-on): Likewise.
2338         * modules/fts (Depends-on): Likewise.
2339         * modules/futimens-tests (Depends-on): Likewise.
2340         * modules/posix_spawnp-tests (Depends-on): Likewise.
2341         * modules/unistd-safer-tests (Depends-on): Likewise.
2342         * modules/utimens-tests (Depends-on): Likewise.
2343         * doc/posix-functions/dup.texi: Mention the new module and the problem
2344         on MSVC.
2345
2346 2011-09-23  Bruno Haible  <bruno@clisp.org>
2347
2348         getdtablesize: Support for MSVC 9.
2349         * lib/getdtablesize.c: Include msvc-inval.h.
2350         (_setmaxstdio_nothrow): New function.
2351         (_setmaxstdio): Redefine it.
2352         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2353         * modules/getdtablesize (Depends-on): Add msvc-inval.
2354         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
2355
2356 2011-09-23  Bruno Haible  <bruno@clisp.org>
2357
2358         signal-h: Rename from signal.
2359         * modules/signal-h: Renamed from modules/signal.
2360         * modules/pthread_sigmask (Depends-on): Update.
2361         * modules/raise (Depends-on): Likewise.
2362         * modules/sigaction (Depends-on): Likewise.
2363         * modules/sigpipe (Depends-on): Likewise.
2364         * modules/sigprocmask (Depends-on): Likewise.
2365         * modules/sys_select (Depends-on): Likewise.
2366         * modules/signal-h-tests: Renamed from modules/signal-tests.
2367         (Files, Depends-on, Makefile.am): Update.
2368         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
2369         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
2370         (Files, Makefile.am): Update.
2371         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
2372         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
2373         * modules/signal: New placeholder file.
2374         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
2375         * doc/posix-headers/signal.texi: Update.
2376         * NEWS: Mention the change.
2377
2378 2011-09-23  Bruno Haible  <bruno@clisp.org>
2379
2380         sigprocmask: Avoid crashes through signal() on MSVC 9.
2381         * lib/sigprocmask.c: Include msvc-inval.h.
2382         (signal_nothrow): New function.
2383         (signal): Redefine it.
2384         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
2385         * modules/sigprocmask (Depends-on): Add msvc-inval.
2386         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
2387
2388 2011-09-23  Bruno Haible  <bruno@clisp.org>
2389
2390         Tests for module 'raise'.
2391         * modules/raise-tests: New file.
2392         * tests/test-raise.c: New file.
2393
2394         raise: Support for MSVC.
2395         * lib/signal.in.h (raise): New declaration.
2396         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
2397         for native Windows platforms.
2398         * m4/raise.m4: New file.
2399         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
2400         HAVE_RAISE, REPLACE_RAISE.
2401         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
2402         REPLACE_RAISE.
2403         * modules/raise (Status, Notice): Remove fields.
2404         (Files): Add m4/raise.m4.
2405         (Depends-on): Add signal, msvc-inval.
2406         (configure.ac): Use the common idioms.
2407         (Maintainer): Add me.
2408         * tests/test-signal-c++.cc: Check the signature of raise.
2409         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
2410
2411 2011-09-23  Bruno Haible  <bruno@clisp.org>
2412
2413         pipe2: Fix compilation on pre-C99 compilers.
2414         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
2415
2416 2011-09-23  Bruno Haible  <bruno@clisp.org>
2417
2418         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
2419         * lib/msvc-nothrow.h: New file.
2420         * lib/msvc-nothrow.c: New file.
2421         * m4/msvc-nothrow.m4: New file.
2422         * modules/msvc-nothrow: New file.
2423         * lib/dup2.c: Include msvc-nothrow.h.
2424         (rpl_dup2): No need to protect _get_osfhandle call here.
2425         * lib/accept4.c: Include msvc-nothrow.h.
2426         * lib/error.c: Likewise.
2427         * lib/fcntl.c: Likewise.
2428         * lib/lseek.c: Likewise.
2429         * lib/nonblocking.c: Likewise.
2430         * lib/poll.c: Likewise.
2431         * lib/read.c: Likewise.
2432         * lib/select.c: Likewise.
2433         * lib/sockets.h: Likewise.
2434         * lib/sockets.c: Likewise.
2435         * lib/stdio-read.c: Likewise.
2436         * lib/stdio-write.c: Likewise.
2437         * lib/write.c: Likewise.
2438         * lib/w32sock.h: Likewise.
2439         * lib/w32spawn.h: Likewise.
2440         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
2441         * lib/fsync.c: Likewise.
2442         * lib/isapipe.c: Likewise.
2443         * modules/dup2 (Depends-on): Add msvc-nothrow.
2444         * modules/accept4 (Depends-on): Likewise.
2445         * modules/error (Depends-on): Likewise.
2446         * modules/fcntl (Depends-on): Likewise.
2447         * modules/lseek (Depends-on): Likewise.
2448         * modules/nonblocking (Depends-on): Likewise.
2449         * modules/poll (Depends-on): Likewise.
2450         * modules/read (Depends-on): Likewise.
2451         * modules/select (Depends-on): Likewise.
2452         * modules/sockets (Depends-on): Likewise.
2453         * modules/sigpipe (Depends-on): Likewise.
2454         * modules/write (Depends-on): Likewise.
2455         * modules/accept (Depends-on): Likewise.
2456         * modules/bind (Depends-on): Likewise.
2457         * modules/connect (Depends-on): Likewise.
2458         * modules/gethostname (Depends-on): Likewise.
2459         * modules/getpeername (Depends-on): Likewise.
2460         * modules/getsockname (Depends-on): Likewise.
2461         * modules/getsockopt (Depends-on): Likewise.
2462         * modules/ioctl (Depends-on): Likewise.
2463         * modules/listen (Depends-on): Likewise.
2464         * modules/recv (Depends-on): Likewise.
2465         * modules/recvfrom (Depends-on): Likewise.
2466         * modules/send (Depends-on): Likewise.
2467         * modules/sendto (Depends-on): Likewise.
2468         * modules/setsockopt (Depends-on): Likewise.
2469         * modules/shutdown (Depends-on): Likewise.
2470         * modules/socket (Depends-on): Likewise.
2471         * modules/execute (Depends-on): Likewise.
2472         * modules/spawn-pipe (Depends-on): Likewise.
2473         * modules/flock (Depends-on): Likewise.
2474         * modules/fsync (Depends-on): Likewise.
2475         * modules/isapipe (Depends-on): Likewise.
2476         * tests/test-cloexec.c: Include msvc-nothrow.h.
2477         * tests/test-dup-safer.c: Likewise.
2478         * tests/test-dup2.c: Likewise.
2479         * tests/test-dup3.c: Likewise.
2480         * tests/test-fcntl.c: Likewise.
2481         * tests/test-pipe.c: Likewise.
2482         * tests/test-pipe2.c: Likewise.
2483         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
2484         * modules/unistd-safer-tests (Depends-on): Likewise.
2485         * modules/dup2-tests (Depends-on): Likewise.
2486         * modules/dup3-tests (Depends-on): Likewise.
2487         * modules/fcntl-tests (Depends-on): Likewise.
2488         * modules/pipe-posix-tests (Depends-on): Likewise.
2489         * modules/pipe2-tests (Depends-on): Likewise.
2490
2491 2011-09-23  Bruno Haible  <bruno@clisp.org>
2492
2493         dup2: Make code more maintainable.
2494         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
2495         (rpl_dup2): Use it.
2496         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
2497         * modules/dup2 (configure.ac): Invoke it.
2498         Reported by Paul Eggert.
2499
2500 2011-09-23  Bruno Haible  <bruno@clisp.org>
2501
2502         msvc-inval: Fix compilation error.
2503         * lib/msvc-inval.h: Include <excpt.h>.
2504
2505 2011-09-23  Bruno Haible  <bruno@clisp.org>
2506
2507         mkdir: Tweak for MSVC 9.
2508         * lib/sys_stat.in.h: Update comments.
2509         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
2510
2511         Tests for module 'chdir'.
2512         * modules/chdir-tests: New file.
2513         * tests/test-chdir.c: New file.
2514
2515         New module 'chdir'.
2516         * modules/chdir: New file.
2517         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
2518         (chdir): New declaration.
2519         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
2520         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
2521         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
2522         * tests/test-unistd-c++.cc: Check signature of chdir.
2523         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2524         * modules/chdir-long (Depends-on): Add chdir.
2525         * modules/fchdir (Depends-on): Likewise.
2526         * modules/rename (Depends-on): Likewise.
2527         * modules/savewd (Depends-on): Likewise.
2528
2529         rmdir: Support for mingw, MSVC 9.
2530         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
2531         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
2532
2533         getcwd: Tweak for MSVC 9.
2534         * lib/unistd.in.h: Update comments.
2535         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
2536
2537 2011-09-22  Bruno Haible  <bruno@clisp.org>
2538
2539         strerror_r-posix: Avoid a link error on MSVC.
2540         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
2541         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
2542
2543 2011-09-22  Bruno Haible  <bruno@clisp.org>
2544
2545         select: Avoid link errors on MSVC.
2546         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
2547         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
2548         * modules/pselect (Link): Likewise.
2549         * NEWS: Mention the change.
2550         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
2551         test-select-stdin against $(LIB_SELECT).
2552         * modules/pselect-tests (Makefile.am): Link test-pselect against
2553         $(LIB_SELECT).
2554
2555 2011-09-22  Bruno Haible  <bruno@clisp.org>
2556
2557         select: Avoid compilation error on MSVC.
2558         * lib/select.c: Don't include <stdbool.h>.
2559
2560 2011-09-21  Bruno Haible  <bruno@clisp.org>
2561
2562         Consolidate all uses of PATH_MAX in *.m4 files.
2563         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
2564         macros.
2565         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
2566         and gl_PATHMAX_SNIPPET.
2567         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2568         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2569         * modules/chdir-long (Files): Add m4/pathmax.m4.
2570         * modules/getcwd (Files): Likewise.
2571
2572 2011-09-21  Bruno Haible  <bruno@clisp.org>
2573
2574         ftruncate: Un-deprecate, concentrate on Win32 support.
2575         * modules/ftruncate (Status, Notice): Remove sections.
2576         (Depends-on): Add largefile.
2577         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
2578         non-mingw platforms.
2579         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
2580         include <io.h>.
2581         * modules/perror-tests (Depends-on): Add ftruncate.
2582         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
2583         'ftruncate' module.
2584
2585 2011-09-21  Bruno Haible  <bruno@clisp.org>
2586
2587         Add dependencies to new dirent related modules.
2588         * modules/opendir (Depends-on): Add closedir.
2589         * modules/getcwd (Depends-on): Add opendir, closedir.
2590         * modules/dirent-safer-tests (Depends-on): Likewise.
2591         * modules/fdopendir-tests (Depends-on): Likewise.
2592         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
2593         * modules/renameat-tests (Depends-on): Likewise.
2594
2595 2011-09-21  Bruno Haible  <bruno@clisp.org>
2596
2597         opendir: Avoid compilation error on mingw.
2598         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
2599         * modules/opendir (Depends-on): Add unistd.
2600
2601 2011-09-21  Bruno Haible  <bruno@clisp.org>
2602
2603         ftruncate tests: Avoid a test failure on mingw.
2604         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
2605
2606 2011-09-21  Bruno Haible  <bruno@clisp.org>
2607
2608         select tests: Avoid test failures on OSF/1 5.1 and mingw.
2609         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
2610         native Windows.
2611
2612 2011-09-21  Bruno Haible  <bruno@clisp.org>
2613
2614         New module 'fdopen'.
2615         * lib/stdio.in.h (fdopen): New declaration.
2616         * lib/fdopen.c: New file.
2617         * m4/fdopen.m4: New file.
2618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
2619         REPLACE_FDOPEN.
2620         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
2621         REPLACE_FDOPEN.
2622         * modules/fdopen: New file.
2623         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
2624         * tests/test-stdio-c++.cc: Check signature of fdopen.
2625         * doc/posix-functions/fdopen.texi: Mention the new module.
2626
2627 2011-09-21  Bruno Haible  <bruno@clisp.org>
2628
2629         unlockpt tests: Avoid test failure on NetBSD 5.1.
2630         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
2631         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
2632
2633 2011-09-21  Bruno Haible  <bruno@clisp.org>
2634
2635         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
2636         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
2637         * tests/test-getlogin_r.c (main): Likewise.
2638
2639 2011-09-20  Bruno Haible  <bruno@clisp.org>
2640
2641         time tests: Don't require pid_t.
2642         * doc/posix-headers/time.texi: Revert last change.
2643         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
2644         * tests/test-time.c: Comment out the check for pid_t.
2645
2646 2011-09-20  Bruno Haible  <bruno@clisp.org>
2647
2648         fsync tests: Avoid a test failure on mingw.
2649         * tests/test-fsync.c (main): Allow a failure with EIO.
2650
2651 2011-09-20  Bruno Haible  <bruno@clisp.org>
2652
2653         euidaccess: Update comments.
2654         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
2655
2656 2011-09-20  Bruno Haible  <bruno@clisp.org>
2657
2658         Ensure EBADF returns for socket functions on mingw.
2659         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
2660         descriptor is invalid.
2661         * lib/bind.c (rpl_bind): Likewise.
2662         * lib/connect.c (rpl_connect): Likewise.
2663         * lib/getpeername.c (rpl_getpeername): Likewise.
2664         * lib/getsockname.c (rpl_getsockname): Likewise.
2665         * lib/getsockopt.c (rpl_getsockopt): Likewise.
2666         * lib/listen.c (rpl_listen): Likewise.
2667         * lib/recv.c (rpl_recv): Likewise.
2668         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2669         * lib/send.c (rpl_send): Likewise.
2670         * lib/sendto.c (rpl_sendto): Likewise.
2671         * lib/setsockopt.c (rpl_setsockopt): Likewise.
2672         * lib/shutdown.c (rpl_shutdown): Likewise.
2673
2674 2011-09-20  Bruno Haible  <bruno@clisp.org>
2675
2676         select tests: EBADF tests.
2677         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
2678         test_bad_fd): New functions.
2679         (test_function): Invoke also test_bad_fd.
2680
2681 2011-09-20  Bruno Haible  <bruno@clisp.org>
2682
2683         Tests for module 'posix_spawn_file_actions_addopen.
2684         * modules/posix_spawn_file_actions_addopen-tests: New file.
2685         * tests/test-posix_spawn_file_actions_addopen.c: New file.
2686
2687         Tests for module 'posix_spawn_file_actions_adddup2'.
2688         * modules/posix_spawn_file_actions_adddup2-tests: New file.
2689         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
2690
2691         Tests for module 'posix_spawn_file_actions_addclose'.
2692         * modules/posix_spawn_file_actions_addclose-tests: New file.
2693         * tests/test-posix_spawn_file_actions_addclose.c: New file.
2694
2695 2011-09-20  Bruno Haible  <bruno@clisp.org>
2696
2697         Tests for module 'unlockpt'.
2698         * modules/unlockpt-tests: New file.
2699         * tests/test-unlockpt.c: New file.
2700         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
2701
2702         Tests for module 'grantpt'.
2703         * modules/grantpt-tests: New file.
2704         * tests/test-grantpt.c: New file.
2705         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
2706
2707 2011-09-20  Bruno Haible  <bruno@clisp.org>
2708
2709         freopen tests: EBADF tests.
2710         * tests/test-freopen.c: Include errno.h, unistd.h.
2711         (main): Add tests for EBADF, commented out for the moment.
2712
2713         fclose tests: EBADF tests.
2714         * tests/test-fclose.c (main): Add tests for EBADF.
2715
2716         fflush tests: EBADF tests.
2717         * tests/test-fflush.c: Include errno.h, macros.h.
2718         (main): Add tests for EBADF.
2719
2720         ftello tests: EBADF tests.
2721         * tests/test-ftello4.sh: New file.
2722         * tests/test-ftello4.c: New file.
2723         * modules/ftello-tests (Files): Add them.
2724         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
2725
2726         fseeko tests: EBADF tests.
2727         * tests/test-fseeko4.sh: New file.
2728         * tests/test-fseeko4.c: New file.
2729         * modules/fseeko-tests (Files): Add them.
2730         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
2731
2732         Tests for function fputc().
2733         * modules/fputc-tests: New file.
2734         * tests/test-fputc.c: New file.
2735         * modules/stdio-tests (Depends-on): Add fputc-tests.
2736
2737         Tests for function fgetc().
2738         * modules/fgetc-tests: New file.
2739         * tests/test-fgetc.c: New file.
2740         * modules/stdio-tests (Depends-on): Add fgetc-tests.
2741
2742         Tests for function fdopen().
2743         * modules/fdopen-tests: New file.
2744         * tests/test-fdopen.c: New file.
2745         * modules/stdio-tests (Depends-on): Add fdopen-tests.
2746
2747         Tests for module 'vdprintf'.
2748         * modules/vdprintf-tests: New file.
2749         * tests/test-vdprintf.c: New file.
2750
2751         Tests for module 'dprintf'.
2752         * modules/dprintf-tests: New file.
2753         * tests/test-dprintf.c: New file.
2754
2755 2011-09-20  Bruno Haible  <bruno@clisp.org>
2756
2757         Tests for module 'ioctl'.
2758         * modules/ioctl-tests: New file.
2759         * tests/test-ioctl.c: New file.
2760
2761 2011-09-20  Bruno Haible  <bruno@clisp.org>
2762
2763         fcntl tests: EBADF tests.
2764         * tests/test-fcntl.c (main): Add more tests for EBADF.
2765
2766 2011-09-20  Bruno Haible  <bruno@clisp.org>
2767
2768         utimensat tests: EBADF tests.
2769         * tests/test-utimensat.c (main): Add tests for EBADF.
2770
2771         renameat tests: EBADF tests.
2772         * tests/test-renameat.c (main): Add tests for EBADF.
2773
2774         mkfifoat tests: EBADF tests.
2775         * tests/test-mkfifoat.c (main): Add tests for EBADF.
2776
2777         readlinkat tests: EBADF tests.
2778         * tests/test-readlinkat.c (main): Add tests for EBADF.
2779
2780         symlinkat tests: EBADF tests.
2781         * tests/test-symlinkat.c (main): Add tests for EBADF.
2782
2783         linkat tests: EBADF tests.
2784         * tests/test-linkat.c (main): Add tests for EBADF.
2785
2786         Tests for module 'faccessat'.
2787         * modules/faccessat-tests: New file.
2788         * tests/test-faccessat.c: New file.
2789
2790         fdopendir tests: EBADF tests.
2791         * tests/test-fdopendir.c (main): Add more tests for EBADF.
2792
2793         openat tests: EBADF tests.
2794         * tests/test-fchownat.c (main): Add tests for EBADF.
2795         * tests/test-fstatat.c (main): Likewise.
2796         * tests/test-mkdirat.c (main): Likewise.
2797         * tests/test-openat.c (main): Likewise.
2798         * tests/test-unlinkat.c (main): Likewise.
2799         * tests/test-fchmodat.c: New file.
2800         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
2801         (Makefile.am): Also run 'test-fchmodat'.
2802
2803 2011-09-20  Bruno Haible  <bruno@clisp.org>
2804
2805         utimens, futimens, fdutimensat tests: EBADF tests.
2806         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
2807
2808         Tests for function fstat().
2809         * modules/fstat-tests: New file.
2810         * tests/test-fstat.c: New file.
2811         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
2812
2813 2011-09-20  Bruno Haible  <bruno@clisp.org>
2814
2815         test-ttyname_r tests: EBADF tests.
2816         * tests/test-ttyname_r.c (main): Add tests for EBADF.
2817
2818         Tests for module 'isatty'.
2819         * modules/isatty-tests: New file.
2820         * tests/test-isatty.c: New file.
2821
2822         Tests for module 'write'.
2823         * modules/write-tests: New file.
2824         * tests/test-write.c: New file.
2825
2826         Tests for module 'read'.
2827         * modules/read-tests: New file.
2828         * tests/test-read.c: New file.
2829
2830         pwrite tests: EBADF tests.
2831         * tests/test-pwrite.c (main): Add tests for EBADF.
2832
2833         pread tests: EBADF tests.
2834         * tests/test-pread.c (main): Add tests for EBADF.
2835
2836         lseek tests: EBADF tests.
2837         * tests/test-lseek.c (main): Add more tests for EBADF.
2838
2839         Tests for module 'ftruncate'.
2840         * modules/ftruncate-tests: New file.
2841         * tests/test-ftruncate.sh: New file.
2842         * tests/test-ftruncate.c: New file.
2843
2844         fsync tests: EBADF tests.
2845         * tests/test-fsync.c (main): Add more tests for EBADF.
2846
2847         fdatasync tests: EBADF tests.
2848         * tests/test-fdatasync.c (main): Add more tests for EBADF.
2849
2850         Tests for module 'fchown'.
2851         * modules/fchown-tests: New file.
2852         * tests/test-fchown.c: New file.
2853
2854         Tests for module 'fchmod'.
2855         * modules/fchmod-tests: New file.
2856         * tests/test-fchmod.c: New file.
2857
2858         fchdir tests: EBADF tests.
2859         * tests/test-fchdir.c (main): Add more tests for EBADF.
2860
2861         dup2 tests: EBADF tests.
2862         * tests/test-dup2.c (main): Add more tests for EBADF.
2863
2864         Tests for module 'dup'.
2865         * modules/dup-tests: New file.
2866         * tests/test-dup.c: New file.
2867
2868         Tests for module 'close'.
2869         * modules/close-tests: New file.
2870         * tests/test-close.c: New file.
2871
2872 2011-09-20  Bruno Haible  <bruno@clisp.org>
2873
2874         Tests for module 'shutdown'.
2875         * modules/shutdown-tests: New file.
2876         * tests/test-shutdown.c: New file.
2877
2878         Tests for module 'setsockopt'.
2879         * modules/setsockopt-tests: New file.
2880         * tests/test-setsockopt.c: New file.
2881
2882         Tests for module 'sendto'.
2883         * modules/sendto-tests: New file.
2884         * tests/test-sendto.c: New file.
2885
2886         Tests for module 'send'.
2887         * modules/send-tests: New file.
2888         * tests/test-send.c: New file.
2889
2890         Tests for module 'recvfrom'.
2891         * modules/recvfrom-tests: New file.
2892         * tests/test-recvfrom.c: New file.
2893
2894         Tests for module 'recv'.
2895         * modules/recv-tests: New file.
2896         * tests/test-recv.c: New file.
2897
2898         Tests for module 'listen'.
2899         * modules/listen-tests: New file.
2900         * tests/test-listen.c: New file.
2901
2902         Tests for module 'getsockopt'.
2903         * modules/getsockopt-tests: New file.
2904         * tests/test-getsockopt.c: New file.
2905
2906         Tests for module 'getsockname'.
2907         * modules/getsockname-tests: New file.
2908         * tests/test-getsockname.c: New file.
2909
2910         Tests for module 'getpeername'.
2911         * modules/getpeername-tests: New file.
2912         * tests/test-getpeername.c: New file.
2913
2914         Tests for module 'connect'.
2915         * modules/connect-tests: New file.
2916         * tests/test-connect.c: New file.
2917
2918         Tests for module 'bind'.
2919         * modules/bind-tests: New file.
2920         * tests/test-bind.c: New file.
2921
2922         accept4 tests: Fix for native Windows.
2923         * tests/test-accept4.c: Include sockets.h.
2924         (main): Invoke gl_sockets_startup.
2925         * modules/accept4-tests (Depends-on): Add sockets.
2926
2927         accept tests: Fix for native Windows.
2928         * tests/test-accept.c: Include sockets.h.
2929         (main): Invoke gl_sockets_startup.
2930         * modules/accept-tests (Depends-on): Add sockets.
2931
2932 2011-09-19  Bruno Haible  <bruno@clisp.org>
2933
2934         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
2935         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
2936         do...while(0).
2937         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
2938         Suggested by Paul Eggert.
2939
2940 2011-09-19  Bruno Haible  <bruno@clisp.org>
2941
2942         sched: Ensure pid_t is defined.
2943         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
2944         not define pid_t.
2945         * lib/sched.in.h: Include <sys/types.h>.
2946         * doc/posix-headers/sched.texi: Mention the pid_t problem.
2947         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2948
2949 2011-09-19  Bruno Haible  <bruno@clisp.org>
2950
2951         msvc-inval: Ensure the entire expansion is a single statement.
2952         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
2953         of braces.
2954
2955 2011-09-19  Jim Meyering  <meyering@redhat.com>
2956
2957         tests: use printf, not echo in init.sh's warn_ function
2958         * tests/init.sh (warn_): Use printf, not echo.  The latter would
2959         misbehave when given strings containing a backslash or starting
2960         with e.g., -n.  James Youngman suggested setting IFS.
2961
2962 2011-09-19  Eric Blake  <eblake@redhat.com>
2963
2964         futimens: enhance test
2965         * tests/test-futimens.h (test_futimens): Also check for EBADF on
2966         closed non-negative fd.
2967
2968         date: accept 'hence' as opposite of 'ago'
2969         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
2970         * tests/test-parse-datetime.c (main): Enhance test.
2971         Suggested by Jesse Wilson.
2972
2973 2011-09-19  Jim Meyering  <meyering@redhat.com>
2974
2975         getcwd: don't fail in a deep directory on a system without openat
2976         Before this change, getcwd would fail when called from a directory
2977         of depth PATH_MAX / 3 or greater.  That was due to the fact that
2978         the non-openat implementation used "..", "../..", "../../..", etc.
2979         to access ancestor directories.  With too many, that string would
2980         be longer than PATH_MAX.
2981         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
2982         using gnulib's openat replacement.
2983         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
2984         we're using the replacement function.
2985
2986 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
2987
2988         maint.mk: avoid warnings from perl about missing files
2989         * top/maint.mk (def_sym_regex): Ignore files listed in
2990         $(gl_other_headers_) that do not exist, say because a project
2991         does not use a corresponding module.
2992
2993 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2994
2995         stat: use pathmax.h only if needed
2996         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
2997         This is better for Emacs, which does not have a mingw port and
2998         therefore can avoid the pathmax module.
2999
3000         utimens: remove dependency on dup2
3001         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3002         to work around the Linux kernel bug.
3003         * modules/utimens (Depends-on): Remove dup2.
3004
3005 2011-09-18  Bruno Haible  <bruno@clisp.org>
3006
3007         inet_ntop, inet_pton: Look for it also in libresolv.
3008         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3009         libnsl, search for it in libresolv.
3010         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3011         Needed on Solaris 7.
3012
3013 2011-09-18  Bruno Haible  <bruno@clisp.org>
3014
3015         accept, accept4 tests: Avoid link error on Solaris.
3016         * modules/accept-tests (Makefile.am): Link test-accept against
3017         $(LIBSOCKET).
3018         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3019         $(LIBSOCKET).
3020
3021         accept4: Avoid link error on Solaris.
3022         * modules/accept4 (Link): New section.
3023
3024         socket functions: Avoid link errors on Solaris.
3025         * modules/accept (Depends-on): Add socketlib.
3026         (Link): New section.
3027         * modules/bind (Depends-on): Add socketlib.
3028         (Link): New section.
3029         * modules/connect (Depends-on): Add socketlib.
3030         (Link): New section.
3031         * modules/getpeername (Depends-on): Add socketlib.
3032         (Link): New section.
3033         * modules/getsockname (Depends-on): Add socketlib.
3034         (Link): New section.
3035         * modules/getsockopt (Depends-on): Add socketlib.
3036         (Link): New section.
3037         * modules/listen (Depends-on): Add socketlib.
3038         (Link): New section.
3039         * modules/recv (Depends-on): Add socketlib.
3040         (Link): New section.
3041         * modules/recvfrom (Depends-on): Add socketlib.
3042         (Link): New section.
3043         * modules/send (Depends-on): Add socketlib.
3044         (Link): New section.
3045         * modules/sendto (Depends-on): Add socketlib.
3046         (Link): New section.
3047         * modules/setsockopt (Depends-on): Add socketlib.
3048         (Link): New section.
3049         * modules/shutdown (Depends-on): Add socketlib.
3050         (Link): New section.
3051         * modules/socket (Depends-on): Add socketlib.
3052         (Link): New section.
3053
3054 2011-09-18  Bruno Haible  <bruno@clisp.org>
3055
3056         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3057         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3058         than 5 seconds.
3059         * modules/ptsname-tests (configure.ac): Test for alarm.
3060
3061 2011-09-18  Bruno Haible  <bruno@clisp.org>
3062
3063         posix_spawn_file_actions_add*: Fix module dependencies.
3064         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3065         posix_spawn_file_actions_init.
3066         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3067         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3068
3069 2011-09-18  Bruno Haible  <bruno@clisp.org>
3070
3071         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3072         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3073         * tests/test-renameat.c (main): Likewise.
3074
3075 2011-09-18  Bruno Haible  <bruno@clisp.org>
3076
3077         Tests for module 'accept4'.
3078         * modules/accept4-tests: New file.
3079         * tests/test-accept4.c: New file.
3080
3081 2011-09-18  Bruno Haible  <bruno@clisp.org>
3082
3083         Tests for module 'accept'.
3084         * modules/accept-tests: New file.
3085         * tests/test-accept.c: New file.
3086
3087 2011-09-18  Bruno Haible  <bruno@clisp.org>
3088
3089         dup2: Support for MSVC.
3090         * lib/dup2.c: Include msvc-inval.h.
3091         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3092         _get_osfhandle calls.
3093         * modules/dup2 (Depends-on): Add msvc-inval.
3094         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3095
3096         New module 'msvc-inval'.
3097         * lib/msvc-inval.h: New file.
3098         * lib/msvc-inval.c: New file.
3099         * m4/msvc-inval.m4: New file.
3100         * modules/msvc-inval: New file.
3101
3102 2011-09-17  Bruno Haible  <bruno@clisp.org>
3103
3104         Tests for module 'pclose'.
3105         * modules/pclose-tests: New file.
3106
3107         New module 'pclose'.
3108         * lib/stdio.in.h (pclose): New declaration.
3109         * lib/pclose.c: New file.
3110         * m4/pclose.m4: New file.
3111         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3112         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3113         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3114         * modules/pclose: New file.
3115         * modules/popen-tests (Depends-on): Add pclose.
3116         * modules/popen-safer-tests (Depends-on): Likewise.
3117         * doc/posix-functions/pclose.texi: Mention the new module.
3118
3119 2011-09-17  Bruno Haible  <bruno@clisp.org>
3120
3121         popen: Support for MSVC.
3122         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3123         * lib/popen.c (popen): Provide alternate definition for native Windows.
3124         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3125         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3126         * modules/popen (Depends-on, configure.ac): Update condition.
3127         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3128         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3129         fixed.
3130
3131 2011-09-17  Bruno Haible  <bruno@clisp.org>
3132
3133         isnanl, isnand, isnanf: Work around MSVC bug.
3134         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3135
3136 2011-09-17  Bruno Haible  <bruno@clisp.org>
3137
3138         sys_socket tests: Fix recent mistake.
3139         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3140
3141 2011-09-17  Bruno Haible  <bruno@clisp.org>
3142
3143         putenv: Support for MSVC.
3144         * modules/putenv (Depends-on): Add environ.
3145         * lib/putenv.c (environ): Disable declaration.
3146         * lib/unistd.in.h: Update comment.
3147
3148 2011-09-17  Bruno Haible  <bruno@clisp.org>
3149
3150         math: Avoid macro redefinition warnings on MSVC.
3151         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3152         Undefine before redefining.
3153
3154 2011-09-17  Bruno Haible  <bruno@clisp.org>
3155
3156         doc: Mention functions which are declared as macros.
3157         * doc/posix-functions/*[fl].texi: Mention that some functions are
3158         defined as macros with arguments only.
3159
3160 2011-09-17  Bruno Haible  <bruno@clisp.org>
3161
3162         Add dependencies to new dirent related modules.
3163         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3164         * modules/fts (Depends-on): Likewise.
3165         * modules/glob (Depends-on): Likewise.
3166         * modules/savedir (Depends-on): Likewise.
3167         * modules/scandir (Depends-on): Likewise.
3168         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3169         * modules/fdopendir (Depends-on): Add opendir.
3170
3171 2011-09-17  Bruno Haible  <bruno@clisp.org>
3172
3173         inet_pton: Support for MSVC on Windows Vista or newer.
3174         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3175         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3176         HAVE_DECL_INET_PTON is defined.
3177         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3178         On platforms with <winsock2.h>, test whether inet_pton is declared in
3179         <ws2tcpip.h>. If so, arrange to replace it.
3180         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3181         REPLACE_INET_PTON.
3182         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3183         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3184         (Depends-on, configure.ac): Update condition.
3185         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3186
3187 2011-09-17  Bruno Haible  <bruno@clisp.org>
3188
3189         inet_ntop: Support for MSVC on Windows Vista or newer.
3190         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3191         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3192         HAVE_DECL_INET_NTOP is defined.
3193         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3194         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3195         <ws2tcpip.h>. If so, arrange to replace it.
3196         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3197         REPLACE_INET_NTOP.
3198         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3199         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3200         (Depends-on, configure.ac): Update condition.
3201         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3202
3203 2011-09-16  Eric Blake  <eblake@redhat.com>
3204
3205         test-fsync: yet another enhancement
3206         * tests/test-fsync.c (main): Also test behavior on read-only text
3207         file.
3208
3209 2011-09-16  Bruno Haible  <bruno@clisp.org>
3210
3211         Enhance fsync, fdatasync tests.
3212         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3213         * tests/test-fdatasync.c (main): Likewise.
3214
3215 2011-09-16  Bruno Haible  <bruno@clisp.org>
3216
3217         Support for MSVC compiler: Ensure mode_t gets defined.
3218         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3219         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3220         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3221         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3222         * tests/test-fcntl-h.c: Check that mode_t is defined.
3223         * tests/test-sys_stat.c: Likewise.
3224         * tests/test-sys_types.c: Likewise.
3225         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3226         * doc/posix-headers/sys_stat.texi: Likewise.
3227         * doc/posix-headers/sys_types.texi: Likewise.
3228
3229 2011-09-16  Bruno Haible  <bruno@clisp.org>
3230
3231         sys_stat: Support for MSVC.
3232         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3233         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3234         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3235         MSVC.
3236
3237 2011-09-16  Bruno Haible  <bruno@clisp.org>
3238
3239         Support for MSVC compiler: Ensure off_t gets defined.
3240         * lib/unistd.in.h: Include <sys/types.h>.
3241         * tests/test-fcntl-h.c: Check that off_t is defined.
3242         * tests/test-sys_stat.c: Likewise.
3243         * tests/test-sys_types.c: Likewise.
3244
3245 2011-09-16  Eric Blake  <eblake@redhat.com>
3246
3247         fdatasync: port to Solaris
3248         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3249         * modules/fdatasync (Link): Document it.
3250         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3251
3252         fdatasync: port to MacOS X 10.7
3253         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3254         declared.
3255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3256         * modules/unistd (Makefile.am): Substitute it.
3257         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3258         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3259
3260         fdatasync: minor improvements
3261         * modules/fdatasync (Depends-on): Add condition for fsync.
3262         * lib/fdatasync.c (fdatasync): Add comment.
3263         * tests/test-unistd-c++.cc: Test fdatasync.
3264
3265         unistd: update refs to newer POSIX
3266         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3267         Suggested by Bruno Haible.
3268
3269         fdatasync: new module
3270         * modules/fsync (Description): Document difference to fdatasync.
3271         * modules/fdatasync: New module.
3272         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3273         * lib/fdatasync.c (fdatasync): Likewise.
3274         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3275         defaults.
3276         * modules/unistd (Makefile.am): Set witnesses.
3277         * lib/unistd.in.h (fdatasync): Declare.
3278         * MODULES.html.sh: Document it.
3279         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3280         * modules/fdatasync-tests: New test.
3281         * tests/test-fdatasync.c: Likewise.
3282
3283 2011-09-16  Eric Blake  <eblake@redhat.com>
3284
3285         test-fsync: enhance tests
3286         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3287         * tests/test-fsync.c (main): Enhance test.
3288
3289 2011-09-15  Bruno Haible  <bruno@clisp.org>
3290
3291         Support for MSVC compiler: Ensure ssize_t gets defined.
3292         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3293         * doc/posix-headers/stdio.texi: Likewise.
3294         * modules/stdio (Depends-on): Add ssize_t.
3295         * modules/sys_socket (Depends-on): Likewise.
3296         * modules/sys_types (Depends-on): Likewise.
3297         * modules/sys_uio (Depends-on): Likewise.
3298         * modules/unistd (Depends-on): Likewise.
3299         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3300         * tests/test-sys_types.c: Check that ssize_t is defined.
3301
3302 2011-09-14  Bruno Haible  <bruno@clisp.org>
3303
3304         Avoid using #, the m4 comment starter character, near brackets.
3305         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3306         delimiter character in sed expressions.
3307         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3308         Suggested by Eric Blake.
3309
3310         Properly quote AC_CHECK_DECLS' 4th argument.
3311         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3312         argument.
3313         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3314         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3315         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3316         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3317         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3318         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3319         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3320         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3321         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3322         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3323         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3324         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3325         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3326         * m4/isinf.m4 (gl_ISINF): Likewise.
3327         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3328         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3329         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3330         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3331         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3332         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3333         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3334         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3335         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3336         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3337         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3338         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3339         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3340         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3341         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3342         Reported by Eric Blake.
3343
3344         Properly quote AC_CHECK_DECL's 4th argument.
3345         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3346         argument.
3347         * m4/argp.m4 (gl_ARGP): Likewise.
3348         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3349         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3350         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3351         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3352         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3353         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3354         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3355         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3356         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3357         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3358         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3359         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3360         Reported by Eric Blake.
3361
3362 2011-09-14  Eric Blake  <eblake@redhat.com>
3363
3364         opendir: avoid compile warning
3365         * lib/opendir.c (includes): Always include errno.h.
3366         Reported by Tatsuro MATSUOKA.
3367
3368 2011-09-14  Jim Meyering  <meyering@redhat.com>
3369
3370         maint.mk: sc_tight_scope: propagate failure from sub-make
3371         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
3372         Reported by Martin von Gagern.
3373
3374 2011-09-13  Bruno Haible  <bruno@clisp.org>
3375
3376         tempname: Support for MSVC.
3377         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
3378         MSVC.
3379         * modules/tempname (Depends-on): Add fcntl-h.
3380
3381 2011-09-13  Bruno Haible  <bruno@clisp.org>
3382
3383         sys_time: Support for MSVC.
3384         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
3385         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
3386         include <winsock2.h>.
3387         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
3388         function declarations that collide with POSIX.
3389         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
3390         (Makefile.am): Substitute HAVE_WINSOCK2_H.
3391
3392 2011-09-13  Bruno Haible  <bruno@clisp.org>
3393
3394         stat: Support for MSVC.
3395         * lib/stat.c: Include pathmax.h.
3396         * modules/stat (Depends-on): Add pathmax.
3397
3398         pathmax: Support for native Windows.
3399         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
3400
3401 2011-09-12  Bruno Haible  <bruno@clisp.org>
3402
3403         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
3404         * lib/dirent.in.h (struct dirent): New type.
3405         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
3406         DT_WHT): New macros.
3407         (DIR): New type.
3408         (opendir, closedir): Declare only if the module 'opendir' is enabled.
3409         (readdir, rewinddir): New declarations.
3410         * lib/dirent-private.h: New file.
3411         * lib/opendir.c: New file.
3412         * lib/readdir.c: New file.
3413         * lib/rewinddir.c: New file.
3414         * lib/closedir.c: New file.
3415         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
3416         * m4/opendir.m4: New file.
3417         * m4/readdir.m4: New file.
3418         * m4/rewinddir.m4: New file.
3419         * m4/closedir.m4: New file.
3420         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
3421         REPLACE_CLOSEDIR here.
3422         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
3423         readdir, rewinddir are declared.
3424         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
3425         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
3426         HAVE_REWINDDIR, HAVE_CLOSEDIR.
3427         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
3428         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
3429         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
3430         * modules/opendir: New file.
3431         * modules/readdir: New file.
3432         * modules/rewinddir: New file.
3433         * modules/closedir: New file.
3434         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
3435         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
3436         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
3437         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
3438         * NEWS: Mention the 'fchdir' change.
3439
3440 2011-09-11  Bruno Haible  <bruno@clisp.org>
3441
3442         asm-underscore.m4: Support for MSVC.
3443         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
3444         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
3445
3446 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
3447
3448         Doc about crypt functions.
3449         * doc/posix-functions/crypt.texi: Expand range of glibc versions
3450         needing for _GNU_SOURCE to get crypt.
3451         * doc/posix-functions/encrypt.texi: Likewise.
3452         * doc/posix-functions/setkey.texi: Likewise.
3453
3454 2011-09-11  Bruno Haible  <bruno@clisp.org>
3455
3456         doc: Update regarding MSVC 9.
3457         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3458         tested".
3459         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3460         * doc/posix-headers/*.texi: Likewise.
3461         * doc/pastposix-functions/*.texi: Likewise.
3462         * doc/glibc-functions/*.texi: Likewise.
3463         * doc/glibc-headers/*.texi: Likewise.
3464
3465 2011-09-11  Bruno Haible  <bruno@clisp.org>
3466
3467         unistd et al.: Don't assume <unistd.h> exists.
3468         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3469         does not exist.
3470         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3471         exist. But include <stdlib.h>.
3472         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3473         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3474         symlink() does not exist.
3475         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3476         include <io.h> instead.
3477         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3478         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3479         include <direct.h> instead.
3480         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3481         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3482         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3483         <io.h> instead.
3484         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
3485         correctly if the system does not have hard links.
3486         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
3487         <direct.h> instead.
3488         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
3489         it when looking for function declarations.
3490         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
3491         <direct.h> and <io.h> instead.
3492         * doc/posix-headers/unistd.texi: More details about MSVC problem.
3493
3494 2011-09-11  Bruno Haible  <bruno@clisp.org>
3495
3496         strcase: Support for MSVC.
3497         * modules/strcase (Status, Notice): Remove obsoletion mark.
3498         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
3499         * doc/posix-functions/strncasecmp.texi: Likewise.
3500
3501         strings: Don't assume <strings.h> exists.
3502         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
3503         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
3504         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
3505         * doc/posix-headers/strings.texi: Mention the MSVC problem.
3506
3507 2011-09-11  Bruno Haible  <bruno@clisp.org>
3508
3509         dirent: Don't assume <dirent.h> exists.
3510         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
3511         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
3512         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
3513         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
3514
3515 2011-09-11  Bruno Haible  <bruno@clisp.org>
3516
3517         Fix wint_t on MSVC.
3518         * lib/wchar.in.h (wint_t): On MSVC, override it.
3519         * lib/wctype.in.h (wint_t): Likewise.
3520         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
3521         MSVC.
3522         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3523         * doc/posix-headers/wctype.texi: Likewise.
3524
3525 2011-09-11  Bruno Haible  <bruno@clisp.org>
3526
3527         sys_types: Fix typo.
3528         * lib/sys_types.in.h: Fix typo in comment.
3529         Reported by Paul Eggert.
3530
3531         Support for MSVC compiler: Ensure size_t gets defined.
3532         * modules/strings (Depends-on): Add 'sys_types'.
3533         * modules/sys_uio (Depends-on): Likewise.
3534         * lib/sys_uio.in.h: Update comment.
3535
3536         C++ tests for module 'sys_types'.
3537         * modules/sys_types-c++-tests: New file.
3538         * tests/test-sys_types-c++.cc: New file.
3539
3540         Tests for module 'sys_types'.
3541         * modules/sys_types-tests: New file.
3542         * tests/test-sys_types.c: New file.
3543
3544         New module 'sys_types'.
3545         * lib/sys_types.in.h: New file.
3546         * m4/sys_types_h.m4: New file.
3547         * modules/sys_types: New file.
3548         * doc/posix-headers/sys_types.texi: Mention the new module and the
3549         size_t problem on MSVC 9.
3550
3551 2011-09-11  Bruno Haible  <bruno@clisp.org>
3552
3553         Support for MSVC compiler: Avoid division by a literal 0.
3554         * lib/math.in.h (NAN): Define through a function call also on MSVC.
3555         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
3556         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
3557         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
3558         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
3559         * tests/infinity.h: New file.
3560         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
3561         on MSVC.
3562         * tests/test-ceilf1.c: Include infinity.h.
3563         (main): Use Infinityf.
3564         * tests/test-ceil1.c: Include infinity.h.
3565         (main): Use Infinityd.
3566         * tests/test-ceill.c: Include infinity.h.
3567         (main): Use Infinityl.
3568         * tests/test-dprintf-posix.c: Include infinity.h.
3569         (test_function): Use Infinityd.
3570         * tests/test-floorf1.c: Include infinity.h.
3571         (main): Use Infinityf.
3572         * tests/test-floor1.c: Include infinity.h.
3573         (main): Use Infinityd.
3574         * tests/test-floorl.c: Include infinity.h.
3575         (main): Use Infinityl.
3576         * tests/test-fprintf-posix.c: Include infinity.h.
3577         (test_function): Use Infinityd.
3578         * tests/test-frexp.c: Include infinity.h.
3579         (main): Use Infinityd.
3580         * tests/test-frexpl.c: Include infinity.h.
3581         (main): Use Infinityl.
3582         * tests/test-isfinite.c: Include infinity.h.
3583         (test_isfinitef): Use Infinityf.
3584         (test_isfinited): Use Infinityd.
3585         (test_isfinitel): Use Infinityl.
3586         * tests/test-isinf.c: Include infinity.h.
3587         (test_isinff): Use Infinityf.
3588         (test_isinfd): Use Infinityd.
3589         (test_isinfl): Use Infinityl.
3590         * tests/test-isnan.c: Include infinity.h.
3591         (test_float): Use Infinityf.
3592         (test_double): Use Infinityd.
3593         (test_long_double): Use Infinityl.
3594         * tests/test-isnanf.h: Include infinity.h.
3595         (main): Use Infinityf.
3596         * tests/test-isnand.h: Include infinity.h.
3597         (main): Use Infinityd.
3598         * tests/test-isnanl.h: Include infinity.h.
3599         (main): Use Infinityl.
3600         * tests/test-ldexpl.c: Include infinity.h.
3601         (main): Use Infinityl.
3602         * tests/test-printf-posix.h: Include infinity.h.
3603         (test_function): Use Infinityd.
3604         * tests/test-roundf1.c: Include infinity.h.
3605         (main): Use Infinityf.
3606         * tests/test-round1.c: Include infinity.h.
3607         (main): Use Infinityd.
3608         * tests/test-roundl.c: Include infinity.h.
3609         (main): Use Infinityl.
3610         * tests/test-signbit.c: Include infinity.h.
3611         (test_signbitf): Use Infinityf.
3612         (test_signbitd): Use Infinityd.
3613         (test_signbitl): Use Infinityl.
3614         * tests/test-snprintf-posix.h: Include infinity.h.
3615         (test_function): Use Infinityd, Infinityl.
3616         * tests/test-sprintf-posix.h: Include infinity.h.
3617         (test_function): Use Infinityd, Infinityl.
3618         * tests/test-truncf1.c: Include infinity.h.
3619         (main): Use Infinityf.
3620         * tests/test-trunc1.c: Include infinity.h.
3621         (main): Use Infinityd.
3622         * tests/test-truncl.c: Include infinity.h.
3623         (main): Use Infinityl.
3624         * tests/test-vasnprintf-posix.c: Include infinity.h.
3625         (test_function): Use Infinityd, Infinityl.
3626         * tests/test-vasprintf-posix.c: Include infinity.h.
3627         (test_function): Use Infinityd, Infinityl.
3628         * modules/ceilf-tests (Files): Add tests/infinity.h.
3629         * modules/ceil-tests (Files): Likewise.
3630         * modules/ceill-tests (Files): Likewise.
3631         * modules/dprintf-posix-tests (Files): Likewise.
3632         * modules/floorf-tests (Files): Likewise.
3633         * modules/floor-tests (Files): Likewise.
3634         * modules/floorl-tests (Files): Likewise.
3635         * modules/fprintf-posix-tests (Files): Likewise.
3636         * modules/frexp-tests (Files): Likewise.
3637         * modules/frexp-nolibm-tests (Files): Likewise.
3638         * modules/frexpl-tests (Files): Likewise.
3639         * modules/frexpl-nolibm-tests (Files): Likewise.
3640         * modules/isfinite-tests (Files): Likewise.
3641         * modules/isinf-tests (Files): Likewise.
3642         * modules/isnan-tests (Files): Likewise.
3643         * modules/isnanf-tests (Files): Likewise.
3644         * modules/isnanf-nolibm-tests (Files): Likewise.
3645         * modules/isnand-tests (Files): Likewise.
3646         * modules/isnand-nolibm-tests (Files): Likewise.
3647         * modules/isnanl-tests (Files): Likewise.
3648         * modules/isnanl-nolibm-tests (Files): Likewise.
3649         * modules/ldexpl-tests (Files): Likewise.
3650         * modules/printf-posix-tests (Files): Likewise.
3651         * modules/roundf-tests (Files): Likewise.
3652         * modules/round-tests (Files): Likewise.
3653         * modules/roundl-tests (Files): Likewise.
3654         * modules/signbit-tests (Files): Likewise.
3655         * modules/snprintf-posix-tests (Files): Likewise.
3656         * modules/sprintf-posix-tests (Files): Likewise.
3657         * modules/truncf-tests (Files): Likewise.
3658         * modules/trunc-tests (Files): Likewise.
3659         * modules/truncl-tests (Files): Likewise.
3660         * modules/vasnprintf-posix-tests (Files): Likewise.
3661         * modules/vasprintf-posix-tests (Files): Likewise.
3662         * modules/vdprintf-posix-tests (Files): Likewise.
3663         * modules/vfprintf-posix-tests (Files): Likewise.
3664         * modules/vprintf-posix-tests (Files): Likewise.
3665         * modules/vsnprintf-posix-tests (Files): Likewise.
3666         * modules/vsprintf-posix-tests (Files): Likewise.
3667         * modules/xprintf-posix-tests (Files): Likewise.
3668
3669 2011-09-11  Bruno Haible  <bruno@clisp.org>
3670
3671         Ensure pid_t gets defined.
3672         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
3673         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3674         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3675         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3676         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
3677         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3678         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
3679         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3680         * tests/test-fcntl-h.c: Check that pid_t is defined.
3681         * tests/test-sched.c: Likewise.
3682         * tests/test-termios.c: Likewise.
3683         * tests/test-time.c: Likewise.
3684         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
3685         * doc/posix-headers/signal.texi: Likewise.
3686         * doc/posix-headers/sys_types.texi: Likewise.
3687         * doc/posix-headers/time.texi: Likewise.
3688
3689 2011-09-11  Bruno Haible  <bruno@clisp.org>
3690
3691         acl: Fix compilation on Solaris 10 (older version).
3692         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
3693         of ACE_EVERYONE.
3694         * lib/set-mode-acl.c (qset_acl): Likewise.
3695         Reported by Christian Jullien <eligis@orange.fr>.
3696
3697 2011-09-10  Bruno Haible  <bruno@clisp.org>
3698
3699         iconv, unsetenv: Add support for MSVC compiler.
3700         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
3701         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
3702
3703 2011-09-10  Bruno Haible  <bruno@clisp.org>
3704
3705         *printf: Add support for MSVC compiler.
3706         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
3707         handles the exception caused by the %n directive. When cross-compiling,
3708         guess no on native Windows.
3709         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3710         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
3711         emulate it through vsnprintf.
3712         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
3713         * doc/posix-functions/dprintf.texi: Update documentation regarding
3714         MSVC 9.
3715         * doc/posix-functions/fprintf.texi: Likewise.
3716         * doc/posix-functions/printf.texi: Likewise.
3717         * doc/posix-functions/snprintf.texi: Likewise.
3718         * doc/posix-functions/sprintf.texi: Likewise.
3719         * doc/posix-functions/swprintf.texi: Likewise.
3720         * doc/posix-functions/vdprintf.texi: Likewise.
3721         * doc/posix-functions/vfprintf.texi: Likewise.
3722         * doc/posix-functions/vprintf.texi: Likewise.
3723         * doc/posix-functions/vsnprintf.texi: Likewise.
3724         * doc/posix-functions/vsprintf.texi: Likewise.
3725         * doc/glibc-functions/asprintf.texi: Likewise.
3726         * doc/glibc-functions/obstack_printf.texi: Likewise.
3727         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3728         * doc/glibc-functions/vasprintf.texi: Likewise.
3729
3730 2011-09-10  Bruno Haible  <bruno@clisp.org>
3731
3732         nocrash: Add support for native Windows.
3733         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
3734
3735 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
3736             Bruno Haible  <bruno@clisp.org>
3737
3738         absolute-header, include-next: Add support for MSVC compiler.
3739         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
3740         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
3741         directory separator in #line directives.
3742         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
3743         recognize also backslash as directory separator in #line directives.
3744
3745 2011-09-08  Jim Meyering  <meyering@redhat.com>
3746
3747         maint.mk: mark the post-release commit log with "maint: " prefix
3748         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
3749         one-line commit-log summary.
3750
3751 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
3752             Bruno Haible  <bruno@clisp.org>
3753
3754         Doc about crypt functions.
3755         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
3756         systems.
3757         * doc/posix-functions/encrypt.texi: Likewise.
3758         * doc/posix-functions/setkey.texi: Likewise.
3759
3760 2011-09-08  Simon Josefsson  <simon@josefsson.org>
3761
3762         * lib/gc.h: Fix copyright header.
3763
3764 2011-09-07  Bruno Haible  <bruno@clisp.org>
3765
3766         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
3767         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
3768         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
3769
3770 2011-09-07  Bruno Haible  <bruno@clisp.org>
3771
3772         openat: Work around compilation error with OSF/1 5.1 DTK cc.
3773         * lib/fopen.c: Use different syntax for include of <stdio.h>.
3774         * lib/freopen.c: Likewise.
3775         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
3776         * lib/lstat.c: Likewise.
3777         * lib/stat.c: Likewise.
3778         * lib/open.c: Use different syntax for include of <fcntl.h>.
3779         * lib/openat.c: Include fcntl.h again, explicitly.
3780
3781 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
3782
3783         parse-datetime: document the newly accepted format
3784         * doc/parse-datetime.texi (Combined date and time of day items):
3785         New section.
3786
3787 2011-09-06  Bruno Haible  <bruno@clisp.org>
3788
3789         acl: Fix a test failure on newer Solaris 10 with ZFS.
3790         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
3791         ENOSYS as no ACL.
3792         Reported by Jim Meyering.
3793
3794 2011-09-06  Bruno Haible  <bruno@clisp.org>
3795
3796         acl: Update for AIX >= 5.3 with NFS.
3797         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
3798         ENOSYS as no ACL.
3799
3800         acl: Fix a test failure on AIX >= 5.3 with NFS.
3801         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
3802         as no ACL.
3803
3804 2011-09-06  Bruno Haible  <bruno@clisp.org>
3805
3806         acl: Fix a test failure on IRIX 6.5 with NFS.
3807         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
3808         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
3809         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
3810         * lib/copy-acl.c (qcopy_acl): Likewise.
3811
3812 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3813
3814         openat: port to AIX 7.1 with large files
3815         AIX 7.1 does a "#define openat open64at" if large files are in use,
3816         so we can't simply #undef openat.  Use the orig_openat trick (similar
3817         to orig_open in lib/open.c) to work around the problem.  Problem
3818         reported by Kevin Brott for GNU tar, in the thread containing
3819         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
3820         * lib/openat.c (__need_system_fcntl_h): Define first.
3821         Include <fcntl.h> and <sys/types.h> before undefining.
3822         (orig_openat) [HAVE_OPENAT]: New inline function.
3823         (openat) [HAVE_OPENAT]: Do not undef.
3824         (rpl_openat): Use orig_openat, not openat.
3825
3826 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3827             Bruno Haible  <bruno@clisp.org>
3828
3829         acl: Avoid errors on NonStop Kernel.
3830         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
3831         ENOTSUP errors.
3832
3833 2011-09-05  Bruno Haible  <bruno@clisp.org>
3834
3835         acl: Clean up Solaris code.
3836         * lib/acl-internal.h: Remove no-op #if.
3837         * lib/file-has-acl.c: Likewise.
3838         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
3839         * lib/copy-acl.c (qcopy_acl): Likewise.
3840
3841 2011-09-05  Bruno Haible  <bruno@clisp.org>
3842
3843         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
3844         binaries built on the original Solaris 10.
3845         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
3846         trivial.
3847
3848 2011-09-05  Bruno Haible  <bruno@clisp.org>
3849
3850         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3851         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
3852         10.
3853         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
3854         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
3855         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
3856         instead of acl_get, facl_get, acl_set, facl_set.
3857
3858 2011-09-05  Bruno Haible  <bruno@clisp.org>
3859
3860         copy-file: Try unit tests on more file systems.
3861         * tests/test-copy-file-1.sh: New file.
3862         * tests/test-copy-file-2.sh: New file.
3863         * modules/copy-file-tests (Files): Add them.
3864         (Makefile.am): Add them to TESTS.
3865
3866         acl: Try unit tests on more file systems.
3867         * tests/test-file-has-acl-1.sh: New file.
3868         * tests/test-file-has-acl-2.sh: New file.
3869         * tests/test-set-mode-acl-1.sh: New file.
3870         * tests/test-set-mode-acl-2.sh: New file.
3871         * tests/test-copy-acl-1.sh: New file.
3872         * tests/test-copy-acl-2.sh: New file.
3873         * modules/acl-tests (Files): Add them.
3874         (Makefile.am): Add them to TESTS.
3875
3876 2011-09-04  Bruno Haible  <bruno@clisp.org>
3877
3878         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3879         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
3880         10.
3881         (OLD_ALLOW, OLD_DENY): New macros.
3882         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
3883         ACE_ACCESS_ALLOWED_ACE_TYPE.
3884         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
3885         ACE_ACCESS_DENIED_ACE_TYPE.
3886         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
3887         (NEW_ACE_EXECUTE): Fix value.
3888         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
3889         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
3890         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
3891         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
3892         NEW_ACE_SYNCHRONIZE): New macros.
3893         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
3894         instead of acl_fromtext, acl_set, facl_set.
3895         Fixes a coreutils/tests/cp/perm failure.
3896
3897 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
3898
3899         openat: test for fstatat (..., 0) bug
3900         Further testing with tar suggests that fstatat (..., 0)
3901         does not work in general, on AIX 7.1; see
3902         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
3903         So, give up entirely on AIX 7.1's fstatat, and fall back on our
3904         replacement fstatat (which is what older AIX releases were using
3905         anyway).
3906         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
3907         use is now changed to orig_fstatat.  This was probably the right
3908         thing to do anyway.
3909         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
3910         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
3911         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
3912         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
3913         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
3914         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
3915         if the bug is found.
3916
3917         openat: test for fstatat (AT_FDCWD, ..., 0) bug
3918         This tests for another fstatat bug on AIX 7.1:
3919         fstatat (AT_FDCWD, ..., 0) does not work.  See
3920         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
3921         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
3922         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
3923         (rpl_fstatat): Adjust so that it works around either (or both)
3924         bugs if present.
3925         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
3926
3927 2011-09-03  Karl Berry  <karl@gnu.org>
3928
3929         * doc/regex.texi (Character Class Operators): Avoid literal ":"
3930         in index entries.
3931
3932 2011-09-02  Bruno Haible  <bruno@clisp.org>
3933
3934         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
3935         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
3936         values of AR, ARFLAGS, RANLIB.
3937         Reported by John W. Eaton <jwe@gnu.org> for Octave.
3938
3939 2011-09-02  Bruno Haible  <bruno@clisp.org>
3940
3941         Find 'ar' program that fits with --host argument.
3942         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
3943
3944 2011-09-02  Bruno Haible  <bruno@clisp.org>
3945
3946         tests: init.sh: Support any non-GNU diff.
3947         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
3948         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
3949         Solaris 8.
3950
3951 2011-09-02  Bruno Haible  <bruno@clisp.org>
3952
3953         tests: init.sh: work also with any non-GNU diff that supports -u
3954         * tests/init.sh: Relax check for diff -u support.
3955         Rather than checking for GNU diff via --version, simply check
3956         for support for -u itself.  Useful at least on OpenBSD 4.9,
3957         AIX 7.1, IRIX 6.5, and Solaris 10.
3958
3959 2011-09-01  Bruno Haible  <bruno@clisp.org>
3960
3961         strtoimax, strtoumax: Document problem on HP-UX 11.
3962         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
3963         * doc/posix-functions/strtoumax.texi: Likewise.
3964
3965 2011-09-01  Bruno Haible  <bruno@clisp.org>
3966
3967         strtoumax: Avoid link error on OSF/1 with DTK cc.
3968         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
3969         defined as a function.
3970         * modules/strtoumax (Depends-on, configure.ac): Test only whether
3971         strtoumax is defined, not whether it is declared.
3972
3973 2011-09-01  Bruno Haible  <bruno@clisp.org>
3974
3975         strtoimax: Avoid link error on OSF/1 with DTK cc.
3976         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
3977         defined as a function.
3978         * modules/strtoimax (Depends-on, configure.ac): Test only whether
3979         strtoimax is defined, not whether it is declared.
3980
3981 2011-09-01  Bruno Haible  <bruno@clisp.org>
3982
3983         imaxdiv: Avoid link error on OSF/1 with DTK cc.
3984         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
3985         as a function.
3986         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
3987         whether it is declared.
3988
3989 2011-09-01  Bruno Haible  <bruno@clisp.org>
3990
3991         imaxabs: Avoid link error on OSF/1 with DTK cc.
3992         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
3993         as a function.
3994         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
3995         whether it is declared.
3996
3997 2011-09-01  Bruno Haible  <bruno@clisp.org>
3998
3999         Tests for module 'strtoumax'.
4000         * modules/strtoumax-tests: New file.
4001         * tests/test-strtoumax.c: New file.
4002
4003         Tests for module 'strtoimax'.
4004         * modules/strtoimax-tests: New file.
4005         * tests/test-strtoimax.c: New file.
4006
4007         Tests for module 'imaxdiv'.
4008         * modules/imaxdiv-tests: New file.
4009         * tests/test-imaxdiv.c: New file.
4010
4011         Tests for module 'imaxabs'.
4012         * modules/imaxabs-tests: New file.
4013         * tests/test-imaxabs.c: New file.
4014
4015 2011-09-01  Bruno Haible  <bruno@clisp.org>
4016
4017         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4018         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4019         pthread_create.
4020
4021 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4022
4023         openat: work around AIX 7.1 fstatat issue
4024         This should fix the problem that was not properly fixed
4025         in the previous change, dated 2011-08-30.
4026         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4027         __need_system_stat_h defined.
4028         (orig_fstatat) [HAVE_FSTATAT]: New function.
4029         (rpl_fstatat): Go back to the old way of doing things,
4030         except call orig_fstatat instead of fstatat.
4031         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4032         Remove unnecessary check whether fstatat fills in st_size etc.
4033
4034 2011-09-01  Bruno Haible  <bruno@clisp.org>
4035
4036         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4037         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4038         just include the system's header.
4039
4040 2011-08-31  Jim Meyering  <meyering@redhat.com>
4041
4042         tests: avoid spurious assertion failure in test-float.c on ppc64
4043         * tests/test-float.c (test_long_double): Comment out an assertion,
4044         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4045         with gcc-4.4.4.
4046
4047         maint: indent with spaces, not TABs
4048         I need to get in the habit of running gnulib's "make check".
4049         Both of these would have been caught.
4050         * m4/largefile.m4: Indent with spaces, not TABs.
4051         * lib/parse-datetime.y (iso_8601_time): Likewise.
4052         Spotted by Pádraig Brady.
4053
4054         test-parse-datetime.c: accommodate a relatively strict gcc warning
4055         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4056         to avoid a warning from gcc's -Werror=missing-declarations.
4057         Insert a few spaces-before-funcall-parenthesis.
4058
4059 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4060
4061         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4062         The parser now accepts ISO 8601 date-time strings with "T" as the
4063         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4064         with a space between the date and time strings.  Now it also parses
4065         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4066         variants like "2004-02-29T16:21:42.333-07:00"
4067         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4068         of day representation using the 'T' separator character.
4069         * doc/parse-datetime.texi (General date syntax): replace use of
4070         deprecated --iso-8601 option with --rfc-3339 in example of date
4071         command output formats that can be parsed.
4072         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4073         lib/parse-datetime.y.
4074         (gmt_offset): New function.
4075         (main): Add additional test cases to validate ISO8601 extended
4076         date and time of day parsing.
4077
4078 2011-08-31  Bruno Haible  <bruno@clisp.org>
4079
4080         freopen: Documentation.
4081         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4082         name.
4083         Reported by Claudio Bley <claudio.bley@gmail.com>.
4084
4085 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4086
4087         freopen: Don't crash if the filename argument is NULL.
4088         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4089         NULL.
4090
4091 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4092
4093         openat: work around AIX 7.1 fstatat bug
4094         Problem reported by Kevin Brott for GNU tar, in the thread containing
4095         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4096         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4097         FSTATAT_ST_SIZE_ETC_BROKEN.
4098         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4099         rpl_fstatat.
4100         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4101         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4102         AC_CHECK_FUNCS_ONCE for fstatat.
4103         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4104         fchmodat, mkdirat, openat and unlinkat.
4105
4106 2011-08-30  Bruno Haible  <bruno@clisp.org>
4107
4108         Avoid endless recursions if config.h includes some header files.
4109         * lib/fopen.c (__need_FILE): Define already before including config.h.
4110         * lib/freopen.c (__need_FILE): Likewise.
4111         * lib/open.c (__need_system_fcntl_h): Likewise.
4112         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4113         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4114         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4115
4116 2011-08-25  Karl Berry  <karl@gnu.org>
4117
4118         * config/srclist.txt (ylwrap): new try.
4119         * build-aux/ylwrap: new file.
4120
4121 2011-08-23  Bruno Haible  <bruno@clisp.org>
4122
4123         tmpdir: Use a good default directory on native Windows.
4124         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4125         (P_tmpdir): Default to _P_tmpdir on native Windows.
4126         (path_search): On native Windows, try the value returned by GetTempPath
4127         before trying P_tmpdir.
4128         * modules/tmpdir (Depends-on): Add pathmax.
4129         Suggested by John Darrington <john@darrington.wattle.id.au>.
4130
4131 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4132
4133         doc: fix typo in README-release
4134         * top/README-release: Capitalize first word of a sentence.
4135
4136 2011-08-19  Jim Meyering  <meyering@redhat.com>
4137
4138         fts: do not exhaust memory when processing million-entry directories
4139         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4140         directory would require about 256*N bytes of memory.  Thus, it was
4141         easy to construct a directory too large to be processed by any of
4142         those tools.  With this change, fts' maximum memory utilization is
4143         now limited to around 30MB.
4144         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4145         (fts_read): When we've processed the final entry (i.e., when
4146         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4147         using the parent entry to read any remaining entries.  Dispatch
4148         depending on what fts_build returns:
4149         - NULL+stop, aka failure: stop
4150         - NULL otherwise: move up in the dir hierarchy
4151         - non-NULL: handle this new entry
4152         (fts_build): Declare and use new local, continue_readdir.
4153         Prepare to be called from fts_read, when the entries
4154         from a partially-read directory have just been exhausted.
4155         In that case, we'll skip the opendir and instead use the parent's
4156         fts_dirp and derive dir_fd from that.
4157         Finally, in the readdir loop, if we read max_entries entries,
4158         exit the loop ensuring *not* to call closedir.  This is required
4159         so that fts_dirp can be reused on a subsequent call.
4160         Prompted by Ben England's report of memory exhaustion in find
4161         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4162
4163         maint: fts: move decl of `dp' down into while loop; split a long line
4164         * lib/fts.c (fts_build): No semantic change.
4165
4166         fts: add/use new struct member, fts_dirp
4167         We are about to use this to manage any directory with
4168         too many entries to read all of them into memory at once.
4169         To do that, we'll need to save the DIR* pointer in each
4170         affected FTSENT struct.
4171         * lib/fts_.h: Include <dirent.h>.
4172         (struct FTSENT) [fts_dirp]: New member.
4173         * lib/fts.c (closedir_and_clear): Define.
4174         Use it in place of closedir so that we are sure to
4175         clear the new fts_dirp member when done with it.
4176         (fts_alloc): Initialize the new member.
4177         (fts_lfree): Free, if needed.
4178
4179         maint: fts: give __opendir2 a new parameter and rename
4180         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4181         than surreptitiously using sole caller's "dir_fd".
4182         (fts_opendir): Rename from __opendir2.
4183
4184         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4185         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4186
4187         maint: fts.c: correct off-by-one indentation
4188         * lib/fts.c (fts_build): Correct indentation, change style
4189         of a couple of block comments, and bracing style.
4190
4191         maint: fts.c: move __opendir2 #define "up" out of function body
4192         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4193
4194         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4195         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4196         out for a long time and besides was useful only on BSD systems.
4197
4198 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4199
4200         regex: port to Stratus OpenVOS
4201         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4202         define to empty, rather than attempting nonportable optimizations.
4203         Problem reported by Paul Green in:
4204         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4205         and fix suggested by Eric Blake in:
4206         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4207
4208 2011-08-17  Eric Blake  <eblake@redhat.com>
4209
4210         getcwd: fix test failures on mingw
4211         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4212         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4213         test if long directory cannot be created, and allow mingw errno.
4214
4215         getcwd-lgpl: fix m4 to match relaxed test for BSD
4216         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4217         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4218         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4219         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4220         signature problem.
4221
4222         getcwd: fix compilation on mingw64
4223         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4224         getcwd.
4225         Reported by Marc-André Lureau.
4226
4227         pipe2: silence compiler warning
4228         * lib/pipe2.c (pipe2): Hide label if it is not used.
4229
4230 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4231
4232         relocatable-prog: fix link error
4233         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4234         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4235         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4236         into modules/relocatable-lib without noticing that
4237         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4238         also needs to build relocatable.c.
4239
4240 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4241
4242         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4243         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4244         shell code: it contained a 'break' that was not in a loop.
4245         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4246         via a shell-language loop; this may have been true in old Autoconf
4247         versions, but it's not true in Autoconf 2.68.  I found this bug
4248         when testing coreutils git on Solaris 8, whose shell complains
4249         about the syntax error.
4250
4251 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4252
4253         * lib/base64.c: Fix comment to reference RFC 4648.
4254         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4255         <gvtulder@gmail.com>.
4256
4257 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4258
4259         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4260
4261         po/Makefile.in.in: fix make -q problem
4262         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4263         rule, since there's no file named 'check-macro-version' and its
4264         use as a file breaks make -q.
4265         (all): Don't depend on check-macro-version.
4266         (CHECK_MACRO_VERSION): New macro.
4267         (stamp-po): Use it.
4268
4269         configmake: fix make -q problem
4270         * modules/configmake (configmake.h): Update configmake.h's time stamp
4271         even if the file does not change.  Otherwise, 'make -q' fails.
4272         Problem reported by Simon Josefsson in
4273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4274
4275 2011-08-11  Jim Meyering  <meyering@redhat.com>
4276
4277         git-version-gen: correct the advice in a comment
4278         * build-aux/git-version-gen: Correct comment.
4279         Don't recommend to list .tarball-version in .gitignore.
4280
4281 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4282
4283         base64: fix off-by-one buffer size bug
4284         Problem and (trivial) fix reported by Gijs van Tulder in
4285         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4286         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4287         * tests/test-base64.c (main): Catch the bug.
4288
4289 2011-08-10  Eric Blake  <eblake@redhat.com>
4290
4291         closein: correct comments
4292         * lib/closein.c (close_stdin): Improve comments.
4293
4294 2011-08-09  Bruno Haible  <bruno@clisp.org>
4295
4296         More tests for 'fseeko'.
4297         * tests/test-fseeko3.c: New file, from Eric Blake.
4298         * tests/test-fseeko3.sh: New file.
4299         * modules/fseeko-tests (Files): Add them.
4300         (TESTS): Add test-fseeko3.sh.
4301         (check_PROGRAMS): Add test-fseeko3.
4302
4303 2011-08-09  Eric Blake  <eblake@redhat.com>
4304
4305         fseeko: remove unneeded hack
4306         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4307
4308         fseeko: fix bug on glibc
4309         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4310         Reported by John W. Eaton.
4311
4312 2011-08-08  Bruno Haible  <bruno@clisp.org>
4313
4314         unictype/base: Fix interoperability with preinstalled libunistring.
4315         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4316         Reported by Simon Josefsson.
4317
4318 2011-08-08  Bruno Haible  <bruno@clisp.org>
4319
4320         iswblank: Detect declaration correctly.
4321         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4322         AC_CHECK_DECLS invocation.
4323
4324 2011-08-08  Bruno Haible  <bruno@clisp.org>
4325
4326         tcgetsid: Detect declaration correctly.
4327         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4328         AC_CHECK_DECLS invocation.
4329         Reported by Simon Josefsson.
4330
4331 2011-08-08  Eric Blake  <eblake@redhat.com>
4332
4333         largefile: fix typo that regressed large file support
4334         * modules/largefile (configure.ac-early): Fix section name.
4335
4336 2011-08-06  Karl Berry  <karl@gnu.org>
4337
4338         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4339         a separate module.
4340
4341 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4342
4343         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4344         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4345         get prototype for free.
4346
4347 2011-08-04  Bruno Haible  <bruno@clisp.org>
4348
4349         Tests for module 'pathmax'.
4350         * modules/pathmax-tests: New file.
4351         * tests/test-pathmax.c: New file.
4352
4353         canonicalize-lgpl: Support larger filenames on the Hurd.
4354         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
4355         Reported by Paul Eggert.
4356
4357         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
4358         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
4359         * lib/chdir-long.h: Include pathmax.h.
4360         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
4361         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
4362         (PATH_MAX): Remove code that is done by pathmax.h.
4363         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
4364         * lib/tmpfile.c: Add a comment.
4365         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
4366         * modules/chdir-long (Depends-on): Add pathmax.
4367         * modules/getcwd (Depends-on): Add pathmax.
4368         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
4369         is not defined.
4370         * doc/posix-headers/limits.texi: Mention the pathmax module.
4371         * NEWS: Mention the change.
4372
4373 2011-08-02  Bruno Haible  <bruno@clisp.org>
4374
4375         pthread_sigmask: Actually use results of gl_THREADLIB.
4376         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
4377         gl_THREADLIB, not gl_[]THREADLIB.
4378         Reported by Eric Blake.
4379
4380 2011-08-02  Jim Meyering  <meyering@redhat.com>
4381
4382         maint.mk: relax the default _gl_TS_function_match regexp
4383         * top/maint.mk (_gl_TS_function_match): Don't require at least one
4384         space between function name and "(" in an "extern" declaration.
4385         That would fail to match a decl with no space there: extern void foo();
4386
4387 2011-07-31  Iain Nicol  <iain@thenicols.net>
4388
4389         git-version-gen: document that EXTRA_DIST must include .version
4390         * build-aux/git-version-gen: In the how-to-use comment, document
4391         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
4392         will fail when run from an unpacked distribution tarball.
4393
4394 2011-08-01  Bruno Haible  <bruno@clisp.org>
4395
4396         wctype-h: Fix last change.
4397         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
4398         REPLACE_TOWLOWER to 0.
4399         Reported by Sam Steingold <sds@gnu.org>.
4400
4401 2011-07-31  Bruno Haible  <bruno@clisp.org>
4402
4403         frexpl: Update autoconf test.
4404         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
4405         according to changes of 2011-06-20.
4406
4407 2011-07-31  Bruno Haible  <bruno@clisp.org>
4408
4409         sys_utsname: Add support for Minix.
4410         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
4411         <sys/utsname.h>.
4412         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4413         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
4414
4415 2011-07-31  Bruno Haible  <bruno@clisp.org>
4416
4417         strings: Add support for Minix.
4418         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
4419         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4420         * doc/posix-headers/strings.texi: Document the Minix problem.
4421
4422 2011-07-31  Bruno Haible  <bruno@clisp.org>
4423
4424         wctype-h: Add support for Minix.
4425         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
4426         REPLACE_TOWLOWER.
4427         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
4428         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
4429         REPLACE_ISWCNTRL.
4430
4431 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
4432
4433         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
4434         This is a performance improvement for 64-bit hosts: it causes the
4435         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
4436
4437 2011-07-31  Bruno Haible  <bruno@clisp.org>
4438
4439         stdioext: Add support for Minix.
4440         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
4441         * lib/fpurge.c (fpurge): Likewise.
4442         * lib/freadahead.c (freadahead): Likewise.
4443         * lib/freadable.c (freadable): Likewise.
4444         * lib/freading.c (freading): Likewise.
4445         * lib/freadptr.c (freadptr): Likewise.
4446         * lib/freadseek.c (freadptrinc): Likewise.
4447         * lib/fseeko.c (rpl_fseeko): Likewise.
4448         * lib/fseterr.c (fseterr): Likewise.
4449         * lib/fwritable.c (fwritable): Likewise.
4450         * lib/fwriting.c (fwriting): Likewise.
4451         * lib/fflush.c (clear_ungetc_buffer): Update comment.
4452         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4453
4454 2011-07-31  Bruno Haible  <bruno@clisp.org>
4455
4456         errno: Port to Minix.
4457         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4458         ECONNABORTED are defined.
4459         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4460         GNULIB_defined_ECONNABORTED): New macros.
4461         * lib/strerror-override.h (strerror_override): Test also
4462         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4463         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4464         ECONNABORTED.
4465         * doc/posix-headers/errno.texi: Mention the Minix problem.
4466
4467 2011-07-31  Bruno Haible  <bruno@clisp.org>
4468
4469         Work around declaration collisions on Minix.
4470         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4471         defined, set REPLACE_MBSINIT.
4472         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4473         defined, set REPLACE_MBRTOWC.
4474         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4475         set REPLACE_MBRLEN.
4476         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4477         defined, set REPLACE_MBSRTOWCS.
4478         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4479         defined, set REPLACE_WCRTOMB.
4480         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4481         defined, set REPLACE_WCSRTOMBS.
4482
4483 2011-07-31  Bruno Haible  <bruno@clisp.org>
4484
4485         Add support for Minix with ACK compiler.
4486         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
4487         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
4488         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
4489
4490 2011-07-31  Bruno Haible  <bruno@clisp.org>
4491
4492         Documentation about Minix.
4493         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
4494         * doc/glibc-headers/*.texi: Likewise.
4495         * doc/posix-functions/*.texi: Likewise.
4496         * doc/glibc-functions/*.texi: Likewise.
4497
4498 2011-07-31  Bruno Haible  <bruno@clisp.org>
4499
4500         snippet/warn-on-use: Fix indentation.
4501         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
4502
4503 2011-07-25  Jim Meyering  <meyering@redhat.com>
4504
4505         tests: test-update-copyright.sh: remove unnecessary "rm" commands
4506         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
4507         commands.
4508
4509 2011-07-27  Jim Meyering  <meyering@redhat.com>
4510
4511         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
4512         * top/maint.mk (gl_extract_significant_defines_): Now that
4513         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
4514         gnulib/lib/signal.in.h, and now that we recommend to
4515         define-if-undefined those two symbols in application code,
4516         we must filter them out of the "significant" list.
4517         This avoids a "make syntax-check" failure in coreutils.
4518
4519 2011-07-26  Eric Blake  <eblake@redhat.com>
4520
4521         warnings: add comments about previous patch
4522         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4523         * m4/include_next.m4: Likewise.
4524         * m4/warn-on-use.m4: Likewise.
4525         * m4/warnings.m4: Likewise, and simplify use.
4526         Suggested by Stefano Lattarini.
4527
4528         include-next, warnings: support older autoconf
4529         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
4530         AS_VAR_PUSHDEF in a way that works with older autoconf.
4531         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
4532         Reported by Daniel P. Berrange.
4533
4534 2011-07-25  Bruno Haible  <bruno@clisp.org>
4535
4536         fseek, ftell: Fix doc.
4537         * doc/posix-functions/fseek.texi: Reword statement about
4538         AC_SYS_LARGEFILE.
4539         * doc/posix-functions/ftell.texi: Likewise.
4540
4541 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4542             Bruno Haible  <bruno@clisp.org>
4543
4544         Add dependencies to the 'largefile' module.
4545         * modules/fopen (Depends-on): Add 'largefile'.
4546         * modules/freopen (Depends-on): Likewise.
4547         * modules/fseeko (Depends-on): Likewise.
4548         * modules/ftello (Depends-on): Likewise.
4549         * modules/glob (Depends-on): Likewise.
4550         * modules/lseek (Depends-on): Likewise.
4551         * modules/lstat (Depends-on): Likewise.
4552         * modules/mkostemp (Depends-on): Likewise.
4553         * modules/mkostemps (Depends-on): Likewise.
4554         * modules/mkstemp (Depends-on): Likewise.
4555         * modules/mkstemps (Depends-on): Likewise.
4556         * modules/open (Depends-on): Likewise.
4557         * modules/openat (Depends-on): Likewise.
4558         * modules/pread (Depends-on): Likewise.
4559         * modules/pwrite (Depends-on): Likewise.
4560         * modules/scandir (Depends-on): Likewise.
4561         * modules/stat (Depends-on): Likewise.
4562         * modules/tmpfile (Depends-on): Likewise.
4563         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
4564         since the containing module now depends on the largefile module.
4565         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
4566         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
4567         off_t is fixed by gnulib.
4568         * doc/posix-functions/freopen.texi: Likewise.
4569         * doc/posix-functions/fseeko.texi: Likewise.
4570         * doc/posix-functions/fstatat.texi: Likewise.
4571         * doc/posix-functions/ftello.texi: Likewise.
4572         * doc/posix-functions/glob.texi: Likewise.
4573         * doc/posix-functions/lseek.texi: Likewise.
4574         * doc/posix-functions/lstat.texi: Likewise.
4575         * doc/posix-functions/mkstemp.texi: Likewise.
4576         * doc/posix-functions/open.texi: Likewise.
4577         * doc/posix-functions/openat.texi: Likewise.
4578         * doc/posix-functions/pread.texi: Likewise.
4579         * doc/posix-functions/pwrite.texi: Likewise.
4580         * doc/posix-functions/scandir.texi: Likewise.
4581         * doc/posix-functions/stat.texi: Likewise.
4582         * doc/posix-functions/tmpfile.texi: Likewise.
4583         * doc/glibc-functions/mkostemp.texi: Likewise.
4584         * doc/glibc-functions/mkostemps.texi: Likewise.
4585         * doc/glibc-functions/mkstemps.texi: Likewise.
4586
4587 2011-07-25  Bruno Haible  <bruno@clisp.org>
4588
4589         fcntl: Move AC_LIBOBJ invocation to module description.
4590         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
4591         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
4592
4593         fcntl: Remove call-in from fchdir.m4.
4594         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
4595         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
4596
4597         dup3: Remove potential call-in from fchdir.m4.
4598         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
4599         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
4600
4601         dup2: Move AC_LIBOBJ invocation to module description.
4602         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
4603         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
4604         Don't invoke AC_LIBOBJ.
4605         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
4606
4607         dup2: Remove call-in from fchdir.m4.
4608         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
4609         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
4610
4611         fclose: Move AC_LIBOBJ invocation to module description.
4612         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
4613         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
4614         to 1.
4615         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
4616
4617         fclose: Remove call-in from close.m4.
4618         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
4619         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
4620
4621         close: Move AC_LIBOBJ invocation to module description.
4622         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
4623         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
4624         1.
4625         * modules/close (configure.ac): Invoke AC_LIBOBJ.
4626
4627         close: Remove call-in from fchdir.m4.
4628         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
4629         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
4630
4631         open: Move AC_LIBOBJ invocation to module description.
4632         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
4633         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
4634         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
4635
4636         open: Remove call-in from fchdir.m4.
4637         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
4638         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
4639
4640         fchdir: Start to remove gl_REPLACE_* idiom.
4641         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
4642         (gl_FUNC_FCHDIR): Invoke it.
4643
4644 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4645
4646         * lib/ftell.c (ftell): Comment out cast.
4647
4648         close: use gl_REPLACE_FCLOSE only if defined
4649         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
4650         is defined.  The close module doesn't depend on the fclose module
4651         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
4652         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
4653         I reproduced the problem with "./gnulib-tool --test close sys_socket".
4654
4655 2011-07-24  Jim Meyering  <meyering@redhat.com>
4656
4657         test-select.h: avoid warning when using gcc's -Wmissing-declarations
4658         * tests/test-select.h (test_function): Declare as "static".
4659
4660 2011-07-24  Bruno Haible  <bruno@clisp.org>
4661
4662         doc: Mention the effects of AC_SYS_LARGEFILE.
4663         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
4664         on this function.
4665         * doc/posix-functions/aio_error.texi: Likewise.
4666         * doc/posix-functions/aio_fsync.texi: Likewise.
4667         * doc/posix-functions/aio_read.texi: Likewise.
4668         * doc/posix-functions/aio_return.texi: Likewise.
4669         * doc/posix-functions/aio_suspend.texi: Likewise.
4670         * doc/posix-functions/aio_write.texi: Likewise.
4671         * doc/posix-functions/fgetpos.texi: Likewise.
4672         * doc/posix-functions/fopen.texi: Likewise.
4673         * doc/posix-functions/freopen.texi: Likewise.
4674         * doc/posix-functions/fsetpos.texi: Likewise.
4675         * doc/posix-functions/fstatvfs.texi: Likewise.
4676         * doc/posix-functions/ftruncate.texi: Likewise.
4677         * doc/posix-functions/ftw.texi: Likewise.
4678         * doc/posix-functions/getrlimit.texi: Likewise.
4679         * doc/posix-functions/glob.texi: Likewise.
4680         * doc/posix-functions/lio_listio.texi: Likewise.
4681         * doc/posix-functions/lockf.texi: Likewise.
4682         * doc/posix-functions/mkstemp.texi: Likewise.
4683         * doc/posix-functions/mmap.texi: Likewise.
4684         * doc/posix-functions/nftw.texi: Likewise.
4685         * doc/posix-functions/openat.texi: Likewise.
4686         * doc/posix-functions/opendir.texi: Likewise.
4687         * doc/posix-functions/posix_fadvise.texi: Likewise.
4688         * doc/posix-functions/posix_fallocate.texi: Likewise.
4689         * doc/posix-functions/pread.texi: Likewise.
4690         * doc/posix-functions/pwrite.texi: Likewise.
4691         * doc/posix-functions/readdir.texi: Likewise.
4692         * doc/posix-functions/readdir_r.texi: Likewise.
4693         * doc/posix-functions/rewinddir.texi: Likewise.
4694         * doc/posix-functions/scandir.texi: Likewise.
4695         * doc/posix-functions/seekdir.texi: Likewise.
4696         * doc/posix-functions/setrlimit.texi: Likewise.
4697         * doc/posix-functions/statvfs.texi: Likewise.
4698         * doc/posix-functions/telldir.texi: Likewise.
4699         * doc/posix-functions/tmpfile.texi: Likewise.
4700         * doc/posix-functions/truncate.texi: Likewise.
4701         * doc/glibc-functions/fallocate.texi: Likewise.
4702         * doc/glibc-functions/fstatfs.texi: Likewise.
4703         * doc/glibc-functions/fts_children.texi: Likewise.
4704         * doc/glibc-functions/fts_read.texi: Likewise.
4705         * doc/glibc-functions/getdirentries.texi: Likewise.
4706         * doc/glibc-functions/mkostemp.texi: Likewise.
4707         * doc/glibc-functions/mkostemps.texi: Likewise.
4708         * doc/glibc-functions/mkstemps.texi: Likewise.
4709         * doc/glibc-functions/preadv.texi: Likewise.
4710         * doc/glibc-functions/pwritev.texi: Likewise.
4711         * doc/glibc-functions/sendfile.texi: Likewise.
4712         * doc/glibc-functions/statfs.texi: Likewise.
4713
4714 2011-07-24  Bruno Haible  <bruno@clisp.org>
4715
4716         doc: Fix typo.
4717         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
4718
4719 2011-07-24  Bruno Haible  <bruno@clisp.org>
4720
4721         doc: Mention fsusage.
4722         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
4723
4724 2011-07-24  Bruno Haible  <bruno@clisp.org>
4725
4726         doc: Mention new glibc headers and functions.
4727         * doc/glibc-headers/gshadow.texi: New file.
4728         * doc/glibc-functions/endsgent.texi: New file.
4729         * doc/glibc-functions/fgetsgent.texi: New file.
4730         * doc/glibc-functions/fgetsgent_r.texi: New file.
4731         * doc/glibc-functions/getsgent.texi: New file.
4732         * doc/glibc-functions/getsgent_r.texi: New file.
4733         * doc/glibc-functions/getsgnam.texi: New file.
4734         * doc/glibc-functions/getsgnam_r.texi: New file.
4735         * doc/glibc-functions/putsgent.texi: New file.
4736         * doc/glibc-functions/setsgent.texi: New file.
4737         * doc/glibc-functions/sgetsgent.texi: New file.
4738         * doc/glibc-functions/sgetsgent_r.texi: New file.
4739         * doc/glibc-functions/malloc_info.texi: New file.
4740         * doc/glibc-functions/preadv.texi: New file.
4741         * doc/glibc-functions/pwritev.texi: New file.
4742         * doc/glibc-functions/register_printf_modifier.texi: New file.
4743         * doc/glibc-functions/register_printf_specifier.texi: New file.
4744         * doc/glibc-functions/register_printf_type.texi: New file.
4745         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
4746         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
4747         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
4748         * doc/glibc-functions/pthread_getname_np.texi: New file.
4749         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
4750         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
4751         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
4752         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
4753         * doc/glibc-functions/pthread_setname_np.texi: New file.
4754         * doc/glibc-functions/pthread_sigqueue.texi: New file.
4755         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
4756         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
4757         * doc/glibc-functions/qsort_r.texi: New file.
4758         * doc/glibc-functions/quick_exit.texi: New file.
4759         * doc/glibc-functions/syncfs.texi: New file.
4760         * doc/gnulib.texi: Include them.
4761         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
4762         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
4763         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
4764         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
4765         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
4766         * doc/glibc-functions/execvpe.texi: Likewise.
4767
4768 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4769
4770         ftell: don't include <unistd.h>
4771         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
4772         guaranteed to define off_t, and the ftell module depends on the
4773         stdio module.
4774
4775         ftell: do not assume wraparound signed arithmetic
4776         * lib/ftell.c: Include <limits.h>.
4777         (ftell): Don't assume wraparound signed arithmetic.
4778
4779 2011-07-24  Bruno Haible  <bruno@clisp.org>
4780
4781         close: No longer depend on module 'fclose'.
4782         * modules/close (Depends-on): Remove fclose.
4783         * NEWS: Mention the change.
4784         Suggested by Sam Steingold <sds@gnu.org>.
4785
4786 2011-07-24  Bruno Haible  <bruno@clisp.org>
4787
4788         fsusage: Enable large volume support on AIX >= 5.2.
4789         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
4790         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
4791         instead of STAT_STATVFS.
4792         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
4793
4794         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
4795         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
4796         f_blocks field only on MacOS X.
4797
4798         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
4799         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
4800         * modules/fsusage (Depends-on): Add largefile.
4801
4802 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4803
4804         * README: Modernize discussion of signed integers.
4805         Assuming overflow wraparound is no longer safe.
4806         Mention ones' complement and signed magnitude.
4807
4808 2011-07-22  Bruno Haible  <bruno@clisp.org>
4809
4810         select tests, pselect tests: Refactor.
4811         * tests/test-select.h: New file, extracted from tests/test-select.c.
4812         (select_fn): New type.
4813         (test, do_select, do_select_nowait, do_select_wait, test_tty,
4814         test_connect_first, test_accept_first, test_pair, test_socket_pair,
4815         test_pipe): Add my_select argument.
4816         (test_function): Renamed from main. Add my_select argument.
4817         * tests/test-select.c: Move most code to tests/test-select.h. Include
4818         test-select.h.
4819         * modules/select-tests (Files): Add tests/test-select.h.
4820         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
4821         (my_select, main): New functions.
4822         * modules/pselect-tests (Files): Add tests/test-select.h,
4823         tests/macros.h, tests/signature.h.
4824         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
4825         (configure.ac): Check for <sys/wait.h>.
4826
4827 2011-07-22  Bruno Haible  <bruno@clisp.org>
4828
4829         sys_select tests: Check the signature of FD_*.
4830         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
4831         signature tests from here...
4832         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
4833         here.
4834         * modules/sys_select-tests (Files): Add tests/signature.h.
4835
4836 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4837
4838         largefile: new module, replacing large-inode
4839         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
4840         * MODULES.html.sh: Add largefile, remove large-inode.
4841         * modules/largefile, m4/largefile.m4: New files.
4842         * modules/large-inode, m4/large-inode.m4: Remove.
4843
4844         fsusage: port to MacOS X 10.7 with 4 TiB file systems
4845         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
4846         implementations that use only 32 bits to count blocks.
4847         On typical hosts with 1024-byte blocks, this fails with file
4848         systems as small as 4 TiB.  Problem reported by Herb Wartens
4849         <http://debbugs.gnu.org/9140> and this should also fix a similar
4850         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
4851
4852         large-inode: New module
4853         * MODULES.html.sh: Add it.
4854         * modules/large-inode, m4/large-inode.m4: New files.
4855
4856         extensions: Enable extensions on MacOS X 10.5 and later.
4857         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
4858
4859 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
4860
4861         file-has-acl: use acl_extended_file_nofollow if available
4862         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
4863         (acl_extended_file): New macro.
4864         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
4865         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
4866
4867 2011-07-21  Bruno Haible  <bruno@clisp.org>
4868
4869         Declare system functions in a way that works with C++.
4870         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
4871         declare fdopendir as extern "C".
4872         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
4873         declare frexpl as extern "C".
4874         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
4875         declare gai_strerror as extern "C".
4876         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
4877         programs, declare gai_strerror as extern "C".
4878         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
4879         declare getlogin_r as extern "C".
4880         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
4881         as extern "C".
4882         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
4883         declare ldexpl as extern "C".
4884         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
4885         as extern "C".
4886         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
4887         program, declare getmntinfo as extern "C".
4888         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
4889         stpncpy as extern "C".
4890         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
4891         program, declare __xpg_strerror_r as extern "C".
4892         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
4893         strndup as extern "C".
4894         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
4895         declare memset and bzero as extern "C".
4896         Reported by Sam Steingold <sds@gnu.org>.
4897
4898 2011-07-12  Jim Meyering  <meyering@redhat.com>
4899
4900         maint.mk: prohibit inclusion of "verify.h" without use
4901         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
4902
4903 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4904
4905         timer-time: A new module to check for timer_settime()
4906         * m4/timer_time.m4: Check for the posix function.
4907         * modules/timer-time: Add the new module.
4908         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
4909         Mention it.
4910
4911 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
4912             Bruno Haible  <bruno@clisp.org>
4913
4914         pthread_sigmask: assume POSIX threads if --avoid=threadlib
4915         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
4916         not defined, assume POSIX threads and look for pthread_sigmask in
4917         $LIBS, without changing $CPPFLAGS.
4918
4919 2011-07-19  Bruno Haible  <bruno@clisp.org>
4920
4921         strstr: Update cross-compilation guess.
4922         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
4923         CPUs, guess no, in view of glibc
4924         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
4925         Suggested by Eric Blake. Reported by Reuben Thomas.
4926
4927 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4928
4929         getopt-gnu: suppress core dumps from detection code
4930         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
4931         to suppress core dumps that may well occur on glibc systems.
4932         * modules/getopt-gnu: Depend on nocrash.
4933
4934 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4935
4936         pthread_sigmask: ensure usleep is declared
4937         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
4938         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
4939
4940 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4941
4942         doc: Document NonStop portability issues.
4943         * doc/posix-functions/sigaction.texi (sigaction):
4944         * doc/posix-headers/signal.texi (signal.h):
4945         Document NonStop.  See Joachim Schmitz in
4946         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
4947
4948 2011-07-15  Bruno Haible  <bruno@clisp.org>
4949
4950         ffsl, ffsll: Avoid unportable behaviour.
4951         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
4952
4953 2011-07-15  Bruno Haible  <bruno@clisp.org>
4954
4955         ffs: More tests.
4956         * tests/test-ffs.c (NBITS): New macro.
4957         (main): Add more tests.
4958         * tests/test-ffsl.c (NBITS): New macro.
4959         (main): Add more tests.
4960         * tests/test-ffsll.c (NBITS): New macro.
4961         (main): Add more tests.
4962
4963 2011-07-15  Eric Blake  <eblake@redhat.com>
4964
4965         ffsl, ffsll: new modules
4966         * modules/ffsl: New file.
4967         * modules/ffsll: Likewise.
4968         * m4/ffsl.m4: Likewise.
4969         * m4/ffsll.m4: Likewise.
4970         * lib/ffsl.c: Likewise.
4971         * lib/ffsl.h: Likewise.
4972         * lib/ffsll.c: Likewise.
4973         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
4974         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
4975         * modules/string (Makefile.am): Substitute witnesses.
4976         * lib/strings.in.h (ffsl, ffsll): Declare.
4977         * modules/ffsl-tests: New test file.
4978         * modules/ffsll-tests: Likewise.
4979         * tests/test-ffsl.c: Likewise.
4980         * tests/test-ffsll.c: Likewise.
4981         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4982         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
4983         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
4984
4985         ffs: fix m4 prerequisite
4986         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
4987
4988         ffs: avoid undefined behavior
4989         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
4990         * tests/test-ffs.c (naive, main): Avoid signed shifts.
4991         Reported by Bruno Haible.
4992
4993 2011-07-12  Bruno Haible  <bruno@clisp.org>
4994
4995         pthread_sigmask: Rely on module 'threadlib'.
4996         * modules/pthread_sigmask (Depends-on): Add threadlib.
4997         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
4998         is defined.
4999
5000 2011-07-12  Bruno Haible  <bruno@clisp.org>
5001
5002         regex: Depend on module 'strcase'.
5003         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5004
5005 2011-07-12  Jim Meyering  <meyering@redhat.com>
5006
5007         warn-on-use: fix typo in file name
5008         * modules/snippet/warn-on-use (Files): Correct file name:
5009         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5010
5011 2011-07-12  Bruno Haible  <bruno@clisp.org>
5012
5013         strings: Document module.
5014         * doc/posix-headers/strings.texi: Mention module 'strings'.
5015
5016 2011-07-12  Bruno Haible  <bruno@clisp.org>
5017
5018         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5019         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5020         (Files, Makefile.am): Update.
5021         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5022         * modules/stdlib (Depends-on): Update.
5023
5024 2011-07-12  Bruno Haible  <bruno@clisp.org>
5025
5026         * NEWS: Mention the changes.
5027
5028         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5029         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5030         (Files, Makefile.am): Update.
5031         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5032         * modules/arpa_inet (Depends-on): Update.
5033         * modules/ctype (Depends-on): Update.
5034         * modules/dirent (Depends-on): Update.
5035         * modules/fcntl-h (Depends-on): Update.
5036         * modules/glob (Depends-on): Update.
5037         * modules/iconv-h (Depends-on): Update.
5038         * modules/inttypes-incomplete (Depends-on): Update.
5039         * modules/langinfo (Depends-on): Update.
5040         * modules/locale (Depends-on): Update.
5041         * modules/math (Depends-on): Update.
5042         * modules/netdb (Depends-on): Update.
5043         * modules/poll-h (Depends-on): Update.
5044         * modules/pty (Depends-on): Update.
5045         * modules/search (Depends-on): Update.
5046         * modules/signal (Depends-on): Update.
5047         * modules/spawn (Depends-on): Update.
5048         * modules/stdio (Depends-on): Update.
5049         * modules/stdlib (Depends-on): Update.
5050         * modules/string (Depends-on): Update.
5051         * modules/strings (Depends-on): Update.
5052         * modules/sys_file (Depends-on): Update.
5053         * modules/sys_ioctl (Depends-on): Update.
5054         * modules/sys_select (Depends-on): Update.
5055         * modules/sys_socket (Depends-on): Update.
5056         * modules/sys_stat (Depends-on): Update.
5057         * modules/sys_time (Depends-on): Update.
5058         * modules/sys_times (Depends-on): Update.
5059         * modules/sys_utsname (Depends-on): Update.
5060         * modules/sys_wait (Depends-on): Update.
5061         * modules/termios (Depends-on): Update.
5062         * modules/time (Depends-on): Update.
5063         * modules/unistd (Depends-on): Update.
5064         * modules/wchar (Depends-on): Update.
5065         * modules/wctype-h (Depends-on): Update.
5066         * MODULES.html.sh (Support for building libraries and executables):
5067         Update.
5068
5069         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5070         * modules/snippet/unused-parameter: Renamed from
5071         modules/unused-parameter.
5072         (Files, Makefile.am): Update.
5073         * build-aux/snippet/unused-parameter.h: Renamed from
5074         build-aux/unused-parameter.h.
5075         * modules/selinux-h (Depends-on): Update.
5076         * modules/unistr/base (Depends-on): Update.
5077         * MODULES.html.sh (Core language properties): Update.
5078
5079         Rename module 'link-warning' to 'snippet/link-warning'.
5080         * modules/snippet/link-warning: Renamed from modules/link-warning.
5081         (Files, Makefile.am): Update.
5082         * build-aux/snippet/link-warning.h: Renamed from
5083         build-aux/link-warning.h.
5084         * MODULES.html.sh (Support for building libraries and executables):
5085         Update.
5086
5087         Rename module 'c++defs' to 'snippet/c++defs'.
5088         * modules/snippet/c++defs: Renamed from modules/c++defs.
5089         (Files, Makefile.am): Update.
5090         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5091         * modules/arpa_inet (Depends-on): Update.
5092         * modules/ctype (Depends-on): Update.
5093         * modules/dirent (Depends-on): Update.
5094         * modules/fcntl-h (Depends-on): Update.
5095         * modules/glob (Depends-on): Update.
5096         * modules/iconv-h (Depends-on): Update.
5097         * modules/langinfo (Depends-on): Update.
5098         * modules/locale (Depends-on): Update.
5099         * modules/math (Depends-on): Update.
5100         * modules/netdb (Depends-on): Update.
5101         * modules/poll-h (Depends-on): Update.
5102         * modules/pty (Depends-on): Update.
5103         * modules/search (Depends-on): Update.
5104         * modules/signal (Depends-on): Update.
5105         * modules/spawn (Depends-on): Update.
5106         * modules/stdio (Depends-on): Update.
5107         * modules/stdlib (Depends-on): Update.
5108         * modules/string (Depends-on): Update.
5109         * modules/strings (Depends-on): Update.
5110         * modules/sys_ioctl (Depends-on): Update.
5111         * modules/sys_select (Depends-on): Update.
5112         * modules/sys_socket (Depends-on): Update.
5113         * modules/sys_stat (Depends-on): Update.
5114         * modules/sys_time (Depends-on): Update.
5115         * modules/sys_wait (Depends-on): Update.
5116         * modules/termios (Depends-on): Update.
5117         * modules/time (Depends-on): Update.
5118         * modules/unistd (Depends-on): Update.
5119         * modules/wchar (Depends-on): Update.
5120         * modules/wctype-h (Depends-on): Update.
5121
5122         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5123         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5124         (Files, Makefile.am): Update.
5125         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5126         * modules/argv-iter (Depends-on): Update.
5127         * modules/arpa_inet (Depends-on): Update.
5128         * modules/dirent (Depends-on): Update.
5129         * modules/fcntl-h (Depends-on): Update.
5130         * modules/fnmatch (Depends-on): Update.
5131         * modules/getopt-posix (Depends-on): Update.
5132         * modules/glob (Depends-on): Update.
5133         * modules/iconv-h (Depends-on): Update.
5134         * modules/inttypes-incomplete (Depends-on): Update.
5135         * modules/locale (Depends-on): Update.
5136         * modules/math (Depends-on): Update.
5137         * modules/netdb (Depends-on): Update.
5138         * modules/search (Depends-on): Update.
5139         * modules/signal (Depends-on): Update.
5140         * modules/spawn (Depends-on): Update.
5141         * modules/stdio (Depends-on): Update.
5142         * modules/stdlib (Depends-on): Update.
5143         * modules/string (Depends-on): Update.
5144         * modules/strings (Depends-on): Update.
5145         * modules/sys_socket (Depends-on): Update.
5146         * modules/sys_stat (Depends-on): Update.
5147         * modules/sys_time (Depends-on): Update.
5148         * modules/sys_times (Depends-on): Update.
5149         * modules/sys_utsname (Depends-on): Update.
5150         * modules/time (Depends-on): Update.
5151         * modules/unistd (Depends-on): Update.
5152         * modules/wchar (Depends-on): Update.
5153         * MODULES.html.sh (Support for building libraries and executables):
5154         Update.
5155
5156 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5157
5158         Improvements on _Noreturn and related modules.
5159
5160         modules/_Exit-tests: test _Noreturn too
5161         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5162         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5163         (main): Use them.
5164
5165         stdnoreturn, stdnoreturn-tests: remove modules
5166         They're not needed here and a bit premature for use elsewhere.  See
5167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5168         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5169         * tests/test-stdnoreturn.c: Remove files.
5170         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5171         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5172         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5173         and using noreturn.
5174         * modules/openat, modules/sigpipe-die, modules/xalloc:
5175         * modules/xmemdup0, modules/xstrtol:
5176         Remove dependency on stdnoreturn.
5177
5178         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5179         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5180         Reparenthesize to avoid GCC warning.
5181         Support Microsoft's syntax.
5182         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5183
5184         _Noreturn-tests: remove module
5185         * modules/_Noreturn-tests: Remove.
5186         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5187         * tests/test-_Noreturn.c: Remove.
5188         * tests/test-stdnoreturn.c: Merge from the old
5189         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5190
5191 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5192
5193         _Noreturn, stdnoreturn, and related modules.
5194
5195         * top/maint.mk: Adjust to new noreturn support.
5196         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5197         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5198
5199         xalloc: use stdnoreturn.h
5200         * lib/xalloc.h: Include <stdnoreturn.h>.
5201         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5202         * modules/xalloc (Depends-on): Add stdnoreturn.
5203
5204         xstrtol: use stdnoreturn.h
5205         * lib/xstrtol.h: Include <stdnoreturn.h>.
5206         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5207         * modules/xstrtol (Depends-on): Add stdnoreturn.
5208
5209         xmemdup0: use stdnoreturn.h
5210         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5211         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5212         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5213
5214         sigpipe-die: use stdnoreturn.h
5215         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5216         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5217         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5218
5219         openat: use stdnoreturn.h
5220         * lib/openat.h: Include <stdnoreturn.h>.
5221         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5222         * modules/openat (Depends-on): Add stdnoreturn.
5223
5224         * lib/openat-die.c (openat_save_fail): Modernize comment.
5225
5226         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5227
5228         * lib/glthread/thread.h: Modernize comment.
5229
5230         obstack: use _Noreturn
5231         * lib/obstack.c (__attribute__): Remove macro.
5232         (print_and_abort): Use _Noreturn.
5233
5234         c-stack: use _Noreturn
5235         * lib/c-stack.c (die, overflow_handler, segv_handler):
5236         Use _Noreturn rather than __attribute__((noreturn)).
5237
5238         argmatch-tests, exclude_tests: use _Noreturn
5239         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5240         Remove.
5241         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5242
5243         stdlib: use _Noreturn
5244         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5245         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5246         * modules/stdlib (Depends-on): Add _Noreturn.
5247         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5248
5249         stdnoreturn-tests: new module
5250         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5251
5252         stdnoreturn: new module
5253         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5254         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5255
5256         _Noreturn-tests: new module
5257         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5258
5259         _Noreturn: new module
5260         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5261         New section, mentioning it.
5262         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5263
5264         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5265
5266 2011-07-11  Eric Blake  <eblake@redhat.com>
5267
5268         ffs: new module
5269         * modules/ffs: New file.
5270         * m4/ffs.m4: Likewise.
5271         * lib/ffs.c: Likewise.
5272         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5273         * modules/strings (Makefile.am): Substitute witness.
5274         (Depends-on): Add c++defs.
5275         * lib/strings.in.h (ffs): Declare.
5276         * modules/ffs-tests: New test file.
5277         * tests/test-ffs.c: Test new module.
5278         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5279         * doc/posix-functions/ffs.texi (ffs): Likewise.
5280
5281         regex: avoid compiler warning
5282         * lib/regex.c (includes): Include <strings.h>, for use of
5283         strcasecmp in regcomp.c.
5284         Reported by Joachim Schmitz.
5285
5286 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5287
5288         stdint: respect system's intmax_t if INTMAX_MAX
5289         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5290         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5291         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5292         long but int64_t is long long, and where we will clash with the
5293         system intmax_t if we override it.  See
5294         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5295         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5296         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5297         similarly for UINTMAX_C.
5298
5299 2011-07-08  Bruno Haible  <bruno@clisp.org>
5300
5301         pthread_sigmask tests: Avoid a compiler warning.
5302         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5303         non-zero.
5304
5305         sigprocmask tests: A better way to avoid a compiler warning.
5306         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5307         (main): Complain if system() returns non-zero.
5308         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5309
5310 2011-07-08  Bruno Haible  <bruno@clisp.org>
5311
5312         pthread_sigmask: Work around IRIX bug.
5313         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5314         bug.
5315         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5316         there may be unblocked pending signals.
5317         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5318
5319 2011-07-08  Bruno Haible  <bruno@clisp.org>
5320
5321         pthread_sigmask: Work around Cygwin bug.
5322         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5323         bug.
5324         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5325         the system's pthread_sigmask function.
5326         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5327
5328 2011-07-08  Bruno Haible  <bruno@clisp.org>
5329
5330         pthread_sigmask: Work around bug in single-threaded implementation.
5331         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5332         FreeBSD, HP-UX, Solaris bug.
5333         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5334         * lib/pthread_sigmask.c: Include <stddef.h>.
5335         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5336         the system's pthread_sigmask function.
5337         * modules/pthread_sigmask (configure.ac): Invoke
5338         gl_PREREQ_PTHREAD_SIGMASK.
5339         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5340         HP-UX, Solaris.
5341
5342 2011-07-08  Eric Blake  <eblake@redhat.com>
5343
5344         test-sigprocmask: avoid compiler warning
5345         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5346         * tests/test-sigprocmask.c (main): Use it to silence warning.
5347         Reported by Jim Meyering.
5348
5349         test-snprintf: avoid compiler warning
5350         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5351         * tests/test-vsnprintf.c (main): Likewise.
5352         Reported by Jim Meyering.
5353
5354 2011-07-08  Bruno Haible  <bruno@clisp.org>
5355
5356         Tests for module 'pthread_sigmask'.
5357         * modules/pthread_sigmask-tests: New file.
5358         * tests/test-pthread_sigmask1.c: New file, based on
5359         tests/test-sigprocmask.c.
5360         * tests/test-pthread_sigmask2.c: New file.
5361
5362 2011-07-08  Jim Meyering  <meyering@redhat.com>
5363
5364         test-getopt.h: avoid warning about an unused variable
5365         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
5366
5367 2011-07-07  Jim Meyering  <meyering@redhat.com>
5368
5369         maint: reduce list of files exempt from sc_prohibit_leading_TABs
5370         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
5371         now that it no longer contains leading TABs.
5372         Remove unused "url=FIXME" statement.
5373
5374 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5375
5376         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
5377         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5378         When gl_THREADLIB is not in use, assume that the POSIX sematics
5379         are desired.  This is better for Emacs, which uses POSIX semantics
5380         on GNUish and/or POSIXish platforms, and does not use threads at
5381         all otherwise.
5382
5383         pthread_sigmask: fix typo when testing for libraries
5384         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5385         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
5386
5387 2011-07-08  Eric Blake  <eblake@redhat.com>
5388
5389         fts: introduce FTS_NOATIME
5390         * lib/fts_.h (FTS_NOATIME): New bit flag.
5391         (FTS_OPTIONMASK): Adjust.
5392         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
5393         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
5394
5395 2011-07-08  Bruno Haible  <bruno@clisp.org>
5396
5397         Tests for module 'thread'.
5398         * modules/thread-tests: New file.
5399         * tests/test-thread_self.c: New file.
5400         * tests/test-thread_create.cc: New file.
5401
5402 2011-07-08  Bruno Haible  <bruno@clisp.org>
5403
5404         thread: Avoid gcc warnings when using gl_thread_self().
5405         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
5406         'void *'.
5407         (gl_thread_self_pointer): Update.
5408
5409 2011-07-07  Bruno Haible  <bruno@clisp.org>
5410
5411         signal-c++-tests: Check declaration of pthread_sigmask.
5412         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
5413         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
5414         $(LIB_PTHREAD_SIGMASK).
5415
5416 2011-07-07  Bruno Haible  <bruno@clisp.org>
5417
5418         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
5419         * lib/signal.in.h (pthread_sigmask): Override if
5420         REPLACE_PTHREAD_SIGMASK is 1.
5421         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5422         REPLACE_PTHREAD_SIGMASK.
5423         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
5424         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
5425         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
5426         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5427         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
5428
5429 2011-07-07  Bruno Haible  <bruno@clisp.org>
5430
5431         pthread_sigmask: Ensure declaration in <signal.h>.
5432         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
5433         include <pthread.h>.
5434         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
5435         problem.
5436
5437 2011-07-07  Bruno Haible  <bruno@clisp.org>
5438
5439         pthread_sigmask: Document the module.
5440         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
5441
5442 2011-07-07  Bruno Haible  <bruno@clisp.org>
5443
5444         pthread_sigmask: Follow gnulib conventions.
5445         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
5446         gl_PTHREAD_SIGMASK.
5447         * modules/pthread_sigmask (configure.ac): Update.
5448
5449 2011-07-07  Bruno Haible  <bruno@clisp.org>
5450
5451         pthread_sigmask: Make declaration C++ safe.
5452         * lib/signal.in.h: In two special conditions, just do an #include_next.
5453         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5454         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5455         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5456         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5457         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5458         not REPLACE_PTHREAD_MASK.
5459         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5460         not REPLACE_PTHREAD_MASK.
5461         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5462
5463 2011-07-07  Bruno Haible  <bruno@clisp.org>
5464
5465         pthread_sigmask: Fix return value.
5466         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5467         * lib/pthread_sigmask.c: New file.
5468         * modules/pthread_sigmask (Files): Add it.
5469         (configure.ac): Invoke AC_LIBOBJ.
5470
5471 2011-07-07  Eric Blake  <eblake@redhat.com>
5472
5473         getopt: more portable argv creation
5474         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5475         const, use char arrays rather than strings.
5476         Suggested by Paul Eggert.
5477
5478 2011-07-07  Bruno Haible  <bruno@clisp.org>
5479
5480         Tests for module 'sigprocmask'.
5481         * modules/sigprocmask-tests: New file.
5482         * tests/test-sigprocmask.c: New file.
5483
5484 2011-07-07  Bruno Haible  <bruno@clisp.org>
5485
5486         float tests: Tweak.
5487         * tests/test-float.c (main): Tweak skip message.
5488
5489 2011-07-07  Eric Blake  <eblake@redhat.com>
5490
5491         getopt: avoid compiler warning during configure
5492         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
5493         assigning string literals to non-const pointer.
5494
5495         getopt-gnu: avoid crash in glibc getopt
5496         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
5497         * tests/test-getopt.h (test_getopt): Enhance test.
5498         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5499         * doc/posix-functions/getopt.texi (getopt): Document it.
5500         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5501         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5502         Likewise.
5503
5504 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
5505
5506         getopt: handle W; without long options in getopt [BZ #12922]
5507         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
5508         but no long options are defined, just return 'W'.
5509
5510 2011-07-07  Bruno Haible  <bruno@clisp.org>
5511
5512         Avoid literal tabs.
5513         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
5514         variable containing a tab instead of a literal tab.
5515         Reported by Jim Meyering.
5516
5517 2011-07-07  Bruno Haible  <bruno@clisp.org>
5518
5519         Comments.
5520         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
5521
5522 2011-07-06  Bruno Haible  <bruno@clisp.org>
5523
5524         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5525         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5526         <winsock2.h>.
5527         (rpl_fd_isset, FD_ISSET): New definitions, copied from
5528         lib/sys_socket.in.h.
5529         (close, gethostname): Hide declarations from <winsock2.h>.
5530         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5531         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
5532         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
5533         (select): Don't override if gnulib's <sys/select.h> was already
5534         included.
5535         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5536         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5537         setsockopt, shutdown, select): Tweak indentation.
5538
5539 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5540
5541         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
5542         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
5543         in an application that does not use the sys_select module.
5544
5545 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
5546
5547         poll: do not return 0 on timeout=-1
5548         * lib/poll.c: Loop with yield if no events occured
5549
5550 2011-07-06  Eric Blake  <eblake@redhat.com>
5551
5552         pthread_sigmask: always replace when not using pthread
5553         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
5554         replacement when using some threading other than pthread.  Fix
5555         logic bug.
5556
5557 2011-07-06  Bruno Haible  <bruno@clisp.org>
5558
5559         Comments.
5560         * m4/printf.m4: Update comments about mingw.
5561
5562 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5563
5564         sys_select: define sigset_t more portably
5565         * lib/sys_select.in.h: Always include <sys/types.h>, since
5566         we now need sigset_t and mingw defines it there.
5567         Include <signal.h> before split inclusion guard, to avoid
5568         mishaps on Solaris, whose <signal.h> eventually includes us.
5569         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
5570         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
5571         which come from ...
5572         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
5573         gl_CHECK_TYPE_SIGSET_T.
5574         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
5575         does the real work.
5576         * modules/sys_select (Depends-on): Add 'signal'.
5577
5578         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
5579         Suggested by Bruno Haible.
5580
5581         pselect: Use pthread_sigmask, not sigprocmask.
5582         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
5583         multithreaded apps better than sigprocmask does.
5584         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
5585         sigprocmask directly.
5586
5587 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5588
5589         * lib/pselect.c (pselect): Use plain name, without "rpl_".
5590         Don't #undef,  since we don't need any underlying pselect.
5591         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
5592         (Depends-on): Add select.
5593         (Link): Add $(LIBSOCKET).
5594         These changes suggested by Bruno Haible.
5595
5596         pselect: document better
5597         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5598         * doc/posix-functions/pselect.texi (pselect): Document new module.
5599
5600         pthread_sigmask: new module
5601         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5602         * doc/posix-functions/pthread_sigmask.texi: Document new module.
5603         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
5604         This is done only as a macro; I don't know how well that'll
5605         work for C++.  Move <sys/types.h> include before the include_next,
5606         to avoid mishap on Solaris.
5607         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
5608         * modules/signal (Makefile.am): Substitute the check's results.
5609         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
5610
5611         test-pselect: new module
5612         * modules/pselect-tests, tests/test-pselect.c: New files.
5613         * tests/test-select.c, tests/test-sys_select-c++.cc:
5614         If TEST_PSELECT is defined, test pselect instead of testing select.
5615
5616         * tests/test-sys_select.c (sigset_t): Test for it, too.
5617         Suggested by Bruno Haible.
5618
5619 2011-07-05  Eric Blake  <eblake@redhat.com>
5620
5621         snprintf: guarantee %1$d, for libintl
5622         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
5623         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5624         * doc/posix-functions/snprintf.texi (snprintf): Update.
5625         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5626         * tests/test-snprintf.c (main): Enhance test.
5627         * tests/test-vsnprintf.c (main): Likewise.
5628
5629 2011-07-05  Jim Meyering  <meyering@redhat.com>
5630
5631         maint: exempt stdio-read.c and stdio-write.c from the cppi check
5632         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
5633         per Bruno's request, to accommodate this idiom (no space after "#")
5634         even when the function is inside an #if block:
5635         char *
5636         gets (char *s)
5637         #undef gets
5638         {
5639           ...
5640         }
5641
5642 2011-07-04  Jim Meyering  <meyering@redhat.com>
5643
5644         maint: indent with spaces, not TABs, and add a rule to check this
5645         * tests/test-userspec.c: Indent with spaces, not TABs.
5646         * tests/test-argp.c: Likewise.
5647         * tests/test-c-stack2.sh: Likewise.
5648         * tests/test-parse-duration.sh: Likewise
5649         * m4/strtod.m4: Likewise.
5650         * m4/alloca.m4: Likewise.
5651         * m4/pselect.m4: Likewise.
5652         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
5653
5654 2011-07-03  Jim Meyering  <meyering@redhat.com>
5655
5656         maint.mk: correct omissions in prohibit_argmatch_without_use check
5657         This rule would mistakenly report that argmatch.h is included without
5658         use even when both the argmatch and invalid_arg macro were used.
5659         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
5660         of argmatch and invalid_arg.
5661
5662 2011-07-03  Bruno Haible  <bruno@clisp.org>
5663
5664         Comments about EINTR.
5665         * lib/safe-read.h: Explain the purpose of this module.
5666         * lib/safe-write.h: Likewise.
5667         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
5668         module.
5669         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
5670         module.
5671         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5672
5673 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5674
5675         xnanosleep: Rewrite to use new dtotimespec module.
5676         It has the conversion code that used to be in xnanosleep.
5677         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
5678         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
5679         (TIME_T_MAX): Remove.
5680         (xnanosleep): Rewrite in terms of dtotimespec.
5681         * modules/xnanosleep (Depends-on): Add dtotimespec.
5682         Remove intprops, stdbool.
5683
5684         timespec-add, timespec-sub: new modules
5685         * lib/timespec.h (timespec_add, timespec_sub): New decls.
5686         * lib/timespec-add.c, lib/timespec-sub.c:
5687         * modules/timespec-add, modules/timespec-sub: New files.
5688
5689         dtotimespec: new module
5690         * lib/timespec.h (dtotimespec): New decl.
5691         * lib/dtotimespec.c, modules/dtotimespec: New files.
5692
5693         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
5694
5695         pselect: new module
5696         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
5697         (pselect): New decls.
5698         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
5699         since the standard pselect decl uses 'restrict'.
5700         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
5701         HAVE_PSELECT, REPLACE_PSELECT.
5702         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
5703         HAVE_PSELECT, REPLACE_PSELECT.
5704         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
5705
5706         sys_select: don't depend on sys_socket
5707         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
5708         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
5709         This fix works on GNU and GNU-like platforms, but has not been tested
5710         on native Windows.
5711         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
5712         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
5713         gl_HEADER_SYS_SOCKET.
5714         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
5715         gl_PREREQ_SYS_H_WINSOCK2.
5716
5717 2011-06-29  Eric Blake  <eblake@redhat.com>
5718
5719         pipe2: fix C89 compile problem
5720         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
5721         Reported by Bruno Haible.
5722
5723         pipe, pipe2: don't corrupt fd on error
5724         * lib/pipe.c (pipe): Leave fd unchanged on error.
5725         * lib/pipe2.c (pipe2): Likewise.
5726         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
5727         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5728
5729 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
5730
5731         mmap-anon: do not use regular expressions inadvertently
5732         * m4/mmap-anon.m4: Remove trailing period from strings sought
5733         in the output.
5734
5735 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
5736
5737         nanosleep: fix integer overflow problem
5738         * lib/nanosleep.c (my_usleep): Don't assume signed integer
5739         arithmetic wraps around on overflow.
5740
5741         nanosleep: simplify carrying
5742         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
5743         first call to the underyling nanosleep, not for the last one.
5744         This doesn't fix any bugs, but it simplifies the computation of
5745         the remaining delay.  Found while auditing integer overflow issues.
5746
5747         dup2: remove test for existence of fcntl
5748         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
5749         "#if HAVE_FCNTL", in the configure-time test program.
5750         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
5751         and therefore speeds up "configure" a bit.  Found while
5752         adding the dup2 module to Emacs.
5753
5754 2011-06-24  Eric Blake  <eblake@redhat.com>
5755
5756         maint.mk: enhance useless header checks
5757         * top/maint.mk (_sc_header_without_use): Check both include
5758         styles.
5759         (sc_prohibit_assert_without_use)
5760         (sc_prohibit_close_stream_without_use)
5761         (sc_prohibit_getopt_without_use)
5762         (sc_prohibit_quotearg_without_use)
5763         (sc_prohibit_quote_without_use)
5764         (sc_prohibit_long_options_without_use)
5765         (sc_prohibit_inttostr_without_use)
5766         (sc_prohibit_ignore_value_without_use)
5767         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
5768         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
5769         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
5770         (sc_prohibit_hash_pjw_without_use)
5771         (sc_prohibit_safe_read_without_use)
5772         (sc_prohibit_argmatch_without_use)
5773         (sc_prohibit_canonicalize_without_use)
5774         (sc_prohibit_root_dev_ino_without_use)
5775         (sc_prohibit_openat_without_use)
5776         (sc_prohibit_c_ctype_without_use)
5777         (sc_prohibit_signal_without_use)
5778         (sc_prohibit_stdio--_without_use)
5779         (sc_prohibit_stdio-safer_without_use)
5780         (sc_prohibit_strings_without_use)
5781         (sc_prohibit_intprops_without_use)
5782         (sc_prohibit_stddef_without_use)
5783         (sc_prohibit_xfreopen_without_use): Update clients.
5784
5785 2011-06-24  Jim Meyering  <meyering@redhat.com>
5786
5787         syntax-check: keep one maint.mk rule in sync with its header
5788         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
5789         of the bug Eric has just fixed, with today's commit 25e4c2ec.
5790         I prefer to avoid temporary files here, so use <(...), but that
5791         is not supported by /bin/sh, so...
5792         (SHELL): Define to /bin/bash.
5793
5794 2011-06-24  Eric Blake  <eblake@redhat.com>
5795
5796         maint.mk: update sc_prohibit_intprops_without_use
5797         * top/maint.mk (_intprops_names): Match recent changes.
5798
5799 2011-06-24  Bruno Haible  <bruno@clisp.org>
5800
5801         strerror-override: No-op tweak.
5802         * lib/strerror-override.h (strerror_override): Reorder conditions,
5803         for consistency with lib/strerror-override.c.
5804
5805 2011-06-23  Eric Blake  <eblake@redhat.com>
5806
5807         maint.mk: test further PATH_MAX issues
5808         * top/maint.mk (sc_prohibit_path_max_array): Rename...
5809         (sc_prohibit_path_max_allocation): ...and also test alloca.
5810         Suggested by Jim Meyering.
5811
5812 2011-06-22  Eric Blake  <eblake@redhat.com>
5813
5814         maint.mk: add syntax-check to avoid char[PATH_MAX]
5815         * top/maint.mk (sc_prohibit_path_max_array): New rule.
5816
5817         stat: be robust to PATH_MAX definition
5818         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
5819         * modules/stat (Depends-on): Add verify.
5820
5821         link: work around IRIX bug
5822         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
5823         * lib/link.c (rpl_link): Work around it.
5824         * tests/test-link.h (test_link): Enhance test.
5825         * doc/posix-functions/link.texi (link): Document the bug.
5826
5827         getopt: silence clang warning
5828         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
5829         dereference.
5830         Reported by Gustavo Martin Domato.
5831
5832 2011-06-22  Jim Meyering  <meyering@redhat.com>
5833
5834         bootstrap: do not insert a blank line into each .gitignore file
5835         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
5836
5837 2011-06-21  Eric Blake  <eblake@redhat.com>
5838
5839         perror: test for output mismatch
5840         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
5841         perror on IRIX.
5842
5843         strerror_r: fix OpenBSD behavior on out-of-range
5844         * lib/strerror_r.c (strerror_r): Always use maximal string.
5845         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5846
5847         strerror_r: fix OpenBSD behavior on 0
5848         * lib/strerror-override.c (strerror_override): Also override 0
5849         when needed.
5850         * lib/strerror-override.h (strerror_override): Likewise.
5851         * lib/strerror.c (strerror): Simplify, now that 0 override is done
5852         earlier.
5853         * lib/strerror_r.c (strerror_r): Likewise.
5854         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
5855         behavior...
5856         (gl_FUNC_STRERROR_0): ...into new macro.
5857         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
5858         is overridden.
5859         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
5860         * modules/strerror-override (Files): Add strerror.m4.
5861         (configure.ac): Also provide override for 0 when needed.
5862         * doc/posix-functions/strerror.texi (strerror): Document this.
5863         * doc/posix-functions/perror.texi (perror): Likewise.
5864
5865         perror: adjust array size
5866         * modules/perror (Depends-on): Add strerror-override.
5867         * lib/perror.c (perror): Use it to avoid magic number.
5868
5869         strerror-override: reduce size
5870         * lib/strerror-override.c (strerror_override): Use fewer lines.
5871
5872 2011-06-20  Bruno Haible  <bruno@clisp.org>
5873
5874         pathmax: Ensure correct value for PATH_MAX on HP-UX.
5875         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
5876
5877 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5878
5879         alloca: port to compilers that can optimize like GCC 4.6.0
5880         * lib/alloca.c (find_stack_direction): New signature, taken from
5881         Autoconf git.  This works with GCC 4.6.0.  This code should never
5882         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
5883         be used with other compilers that optimize as well as GCC 4.6.0 does.
5884         (alloca): Adjust to new signature.
5885         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
5886         New macro, which patches Autoconf in a similar way.
5887
5888         c-stack: stop worrying about stack direction
5889         * lib/c-stack.c (find_stack_direction): Remove.
5890         (segv_handler): Don't worry about stack direction growth, as it's
5891         too much of a pain to configure this correctly, given how compilers
5892         are optimizing-away our stack-growth detection code.  Instead, assume
5893         that any access to just before or just after the stack is OK.
5894         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
5895         Don't require AC_FUNC_ALLOCA; no longer needed.
5896
5897 2011-06-20  Eric Blake  <eblake@redhat.com>
5898
5899         test-stat: don't allocate PATH_MAX bytes
5900         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
5901         PATH_MAX-sized buffer.
5902         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
5903         * modules/stat-tests (Depends-on): Likewise.
5904         * tests/test-fstatat.c (includes): Drop pathmax.h.
5905         * tests/test-stat.c (includes): Likewise.
5906         Reported by Bruno Haible.
5907
5908 2011-06-20  Bruno Haible  <bruno@clisp.org>
5909
5910         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
5911         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
5912         * lib/float.c: New file.
5913         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
5914         REPLACE_FLOAT_LDBL.
5915         * modules/float (Files): Add lib/float.c.
5916         (configure.ac): Invoke AC_LIBOBJ.
5917         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
5918
5919 2011-06-20  Bruno Haible  <bruno@clisp.org>
5920
5921         Tests for module 'float'.
5922         * modules/float-tests: New file.
5923         * tests/test-float.c: New file.
5924
5925 2011-06-19  Bruno Haible  <bruno@clisp.org>
5926
5927         isinf: Coding style.
5928         * lib/isinf.c: Use GNU coding style.
5929
5930 2011-06-19  Bruno Haible  <bruno@clisp.org>
5931
5932         linkat test: Avoid test failure on AIX 7.1.
5933         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
5934         * tests/test-link.h (test_link): Likewise.
5935
5936 2011-06-19  Bruno Haible  <bruno@clisp.org>
5937
5938         pread test: Avoid test failure on OpenBSD 4.9.
5939         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
5940
5941 2011-06-19  Bruno Haible  <bruno@clisp.org>
5942
5943         sprintf-posix: Fix test failure on AIX 7.1.
5944         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
5945         * doc/posix-functions/dprintf.texi: Mention limited precision problem
5946         on AIX.
5947         * doc/posix-functions/fprintf.texi: Likewise.
5948         * doc/posix-functions/printf.texi: Likewise.
5949         * doc/posix-functions/snprintf.texi: Likewise.
5950         * doc/posix-functions/sprintf.texi: Likewise.
5951         * doc/posix-functions/vdprintf.texi: Likewise.
5952         * doc/posix-functions/vfprintf.texi: Likewise.
5953         * doc/posix-functions/vprintf.texi: Likewise.
5954         * doc/posix-functions/vsnprintf.texi: Likewise.
5955         * doc/posix-functions/vsprintf.texi: Likewise.
5956
5957 2011-06-19  Bruno Haible  <bruno@clisp.org>
5958
5959         roundl-ieee: Fix test failure on AIX 7.1.
5960         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
5961         * doc/posix-functions/roundl.texi: Mention problem with negative
5962         arguments.
5963
5964 2011-06-19  Bruno Haible  <bruno@clisp.org>
5965
5966         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5967         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
5968         * doc/posix-functions/round.texi: Mention problem with negative
5969         arguments.
5970         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
5971
5972 2011-06-19  Bruno Haible  <bruno@clisp.org>
5973
5974         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5975         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
5976         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
5977         * doc/posix-functions/roundf.texi: Mention problem with negative
5978         arguments.
5979         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
5980
5981 2011-06-19  Bruno Haible  <bruno@clisp.org>
5982
5983         ceilf-ieee: Work around bug on MacOS X 10.5.
5984         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
5985
5986         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
5987         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
5988         IEEE compliant, avoid compiler optimizations.
5989         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5990         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5991         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
5992         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5993         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5994         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5995         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5996         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5997         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5998         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5999
6000 2011-06-19  Bruno Haible  <bruno@clisp.org>
6001
6002         ceilf-ieee: Work around bug on AIX 7.1.
6003         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6004         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6005
6006 2011-06-19  Bruno Haible  <bruno@clisp.org>
6007
6008         ceil-ieee: Work around bug on AIX 7.1.
6009         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6010         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6011
6012 2011-06-18  Bruno Haible  <bruno@clisp.org>
6013
6014         fsync test: Avoid test failure on MacOS X and AIX.
6015         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6016         EINVAL.
6017
6018 2011-06-18  Bruno Haible  <bruno@clisp.org>
6019
6020         openat, fdopendir tests: Fix link errors.
6021         * modules/openat-tests (Depends-on): Add progname.
6022         * modules/fdopendir-tests (Depends-on): Likewise.
6023         * tests/test-fchownat.c: Include progname.h.
6024         (main): Call set_program_name.
6025         * tests/test-fstatat.c: Include progname.h.
6026         (main): Call set_program_name.
6027         * tests/test-mkdirat.c: Include progname.h.
6028         (main): Call set_program_name.
6029         * tests/test-openat.c: Include progname.h.
6030         (main): Call set_program_name.
6031         * tests/test-unlinkat.c: Include progname.h.
6032         (main): Call set_program_name.
6033         * tests/test-fdopendir.c: Include progname.h.
6034         (main): Call set_program_name.
6035
6036 2011-06-18  Bruno Haible  <bruno@clisp.org>
6037
6038         Doc update.
6039         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6040         HP-UX.
6041         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6042
6043 2011-06-18  Bruno Haible  <bruno@clisp.org>
6044
6045         getcwd tests: Avoid compilation error on HP-UX 11.31.
6046         * modules/getcwd-tests (Depends-on): Add pathmax.
6047         * tests/test-getcwd.c: Include pathmax.h.
6048
6049 2011-06-18  Bruno Haible  <bruno@clisp.org>
6050
6051         isfinite, isinf: Fix link error on AIX 6 and 7.
6052         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6053         needed, also test the macro with a 'float' argument.
6054         * m4/isinf.m4 (gl_ISINF): Likewise.
6055
6056 2011-06-18  Bruno Haible  <bruno@clisp.org>
6057
6058         getloadavg: Don't clobber LIBS. Regression from previous commit.
6059         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6060         AC_CHECK_LIB from here...
6061         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6062         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6063         gl_func_getloadavg_done.
6064         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6065
6066 2011-06-18  Bruno Haible  <bruno@clisp.org>
6067
6068         clean-temp: Improve documentation.
6069         * lib/clean-temp.h: Explain better how to use this module.
6070         Reported by John Darrington <john@darrington.wattle.id.au>.
6071
6072 2011-06-17  Bruno Haible  <bruno@clisp.org>
6073
6074         pread, pwrite: Avoid cc warning on AIX.
6075         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6076         (pwrite): Likewise.
6077
6078 2011-06-17  Bruno Haible  <bruno@clisp.org>
6079
6080         spawn-pipe tests: Fix link error.
6081         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6082         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6083
6084 2011-06-17  Bruno Haible  <bruno@clisp.org>
6085
6086         Tests: Remove unnecessary dependency.
6087         * modules/canonicalize-tests (Depends-on): Remove progname.
6088         * modules/chown-tests (Depends-on): Likewise.
6089         * modules/dirname-tests (Depends-on): Likewise.
6090         * modules/fdopendir-tests (Depends-on): Likewise.
6091         * modules/fdutimensat-tests (Depends-on): Likewise.
6092         * modules/hash-tests (Depends-on): Likewise.
6093         * modules/lchown-tests (Depends-on): Likewise.
6094         * modules/linkat-tests (Depends-on): Likewise.
6095         * modules/renameat-tests (Depends-on): Likewise.
6096         * modules/spawn-pipe-tests (Depends-on): Likewise.
6097         * modules/utimensat-tests (Depends-on): Likewise.
6098
6099 2011-06-17  Bruno Haible  <bruno@clisp.org>
6100
6101         spawn-pipe tests: Fix link error.
6102         * tests/test-spawn-pipe-child.c: Undefine fflush.
6103
6104 2011-06-17  Bruno Haible  <bruno@clisp.org>
6105
6106         Fix tests link errors.
6107         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6108         * modules/chown-tests (Makefile.am): Don't link test-chown with
6109         LIBINTL.
6110         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6111         LIBINTL.
6112         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6113         LIBINTL.
6114         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6115         LIBINTL.
6116
6117 2011-06-16  Bruno Haible  <bruno@clisp.org>
6118
6119         crypto/gc-sha1: Fix recent regression.
6120         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6121         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6122
6123         crypto/gc-md5: Fix recent regression.
6124         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6125
6126         crypto/gc-md4: Fix recent regression.
6127         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6128         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6129
6130         crypto/gc-arctwo: Fix recent regression.
6131         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6132         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6133
6134         crypto/gc-rijndael: Fix recent regression.
6135         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6136         (configure.ac): Invoke AC_LIBOBJ here.
6137         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6138         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6139
6140         crypto/gc-hmac-sha1: Fix recent regression.
6141         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6142         (configure.ac): Invoke AC_LIBOBJ here.
6143         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6144         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6145
6146         crypto/gc-hmac-md5: Fix recent regression.
6147         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6148         (configure.ac): Invoke AC_LIBOBJ here.
6149         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6150         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6151
6152         crypto/gc-des: Fix recent regression.
6153         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6154         (configure.ac): Invoke AC_LIBOBJ here.
6155         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6156         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6157
6158         crypto/gc-arcfour: Fix recent regression.
6159         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6160         (configure.ac): Invoke AC_LIBOBJ here.
6161         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6162         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6163
6164 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6165
6166         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6167         After the 2011-05-21 change, this macro requires
6168         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6169         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6170
6171 2011-06-16  Bruno Haible  <bruno@clisp.org>
6172
6173         fprintftime: Move AC_LIBOBJ invocations to module description.
6174         * m4/fprintftime.m4: Remove file.
6175         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6176         (configure.ac): Remove gl_FPRINTFTIME call.
6177         (Makefile.am): Augment lib_SOURCES.
6178         Reported by Jim Meyering.
6179
6180 2011-06-16  Bruno Haible  <bruno@clisp.org>
6181
6182         tmpfile-safer: Finish 2011-05-23 commit.
6183         * m4/stdio-safer.m4: Really remove file.
6184         Reported by Jim Meyering.
6185
6186 2011-06-16  Bruno Haible  <bruno@clisp.org>
6187
6188         syntax-check: Fix typo.
6189         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6190         printf-posix.m4.
6191         Reported by Jim Meyering.
6192
6193 2011-06-13  Jim Meyering  <meyering@redhat.com>
6194
6195         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6196         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6197
6198 2011-05-23  Bruno Haible  <bruno@clisp.org>
6199
6200         yesno: Move AC_LIBOBJ invocations to module description.
6201         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6202         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6203
6204 2011-05-23  Bruno Haible  <bruno@clisp.org>
6205
6206         xstrtol: Move AC_LIBOBJ invocations to module description.
6207         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6208         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6209
6210 2011-05-23  Bruno Haible  <bruno@clisp.org>
6211
6212         xstrtold: Move AC_LIBOBJ invocations to module description.
6213         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6214         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6215
6216 2011-05-23  Bruno Haible  <bruno@clisp.org>
6217
6218         xstrtod: Move AC_LIBOBJ invocations to module description.
6219         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6220         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6221
6222 2011-05-23  Bruno Haible  <bruno@clisp.org>
6223
6224         xnanosleep: Move AC_LIBOBJ invocations to module description.
6225         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6226         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6227
6228 2011-05-23  Bruno Haible  <bruno@clisp.org>
6229
6230         xgetcwd: Move AC_LIBOBJ invocations to module description.
6231         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6232         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6233
6234 2011-05-23  Bruno Haible  <bruno@clisp.org>
6235
6236         xalloc: Move AC_LIBOBJ invocations to module description.
6237         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6238         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6239
6240 2011-05-23  Bruno Haible  <bruno@clisp.org>
6241
6242         write-any-file: Move AC_LIBOBJ invocations to module description.
6243         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6244         invocation.
6245         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6246
6247 2011-05-23  Bruno Haible  <bruno@clisp.org>
6248
6249         utimens: Move AC_LIBOBJ invocations to module description.
6250         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6251         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6252
6253 2011-05-23  Bruno Haible  <bruno@clisp.org>
6254
6255         utimecmp: Move AC_LIBOBJ invocations to module description.
6256         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6257         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6258
6259 2011-05-23  Bruno Haible  <bruno@clisp.org>
6260
6261         userspec: Move AC_LIBOBJ invocations to module description.
6262         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6263         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6264
6265 2011-05-23  Bruno Haible  <bruno@clisp.org>
6266
6267         unlinkdir: Move AC_LIBOBJ invocations to module description.
6268         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6269         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6270
6271 2011-05-23  Bruno Haible  <bruno@clisp.org>
6272
6273         unistd-safer: Move AC_LIBOBJ invocations to module description.
6274         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6275         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6276
6277 2011-05-23  Bruno Haible  <bruno@clisp.org>
6278
6279         tempname: Move AC_LIBOBJ invocations to module description.
6280         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6281         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6282
6283 2011-05-23  Bruno Haible  <bruno@clisp.org>
6284
6285         strftime: Move AC_LIBOBJ invocations to module description.
6286         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6287         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6288
6289 2011-05-23  Bruno Haible  <bruno@clisp.org>
6290
6291         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6292         * m4/stdlib-safer.m4: Remove file.
6293         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6294         (configure.ac): Remove gl_STDLIB_SAFER call.
6295         (Makefile.am): Augment lib_SOURCES.
6296
6297 2011-05-23  Bruno Haible  <bruno@clisp.org>
6298
6299         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6300         * m4/stdio-safer.m4: Remove file.
6301         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6302         (configure.ac): Remove gl_TMPFILE_SAFER call.
6303         (Makefile.am): Augment lib_SOURCES.
6304
6305 2011-05-23  Bruno Haible  <bruno@clisp.org>
6306
6307         popen-safer: Move AC_LIBOBJ invocations to module description.
6308         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6309         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6310         (configure.ac): Remove gl_POPEN_SAFER call.
6311         (Makefile.am): Augment lib_SOURCES.
6312
6313 2011-05-23  Bruno Haible  <bruno@clisp.org>
6314
6315         freopen-safer: Move AC_LIBOBJ invocations to module description.
6316         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6317         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6318         (configure.ac): Remove gl_FREOPEN_SAFER call.
6319         (Makefile.am): Augment lib_SOURCES.
6320
6321 2011-05-23  Bruno Haible  <bruno@clisp.org>
6322
6323         fopen-safer: Move AC_LIBOBJ invocations to module description.
6324         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6325         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6326         (configure.ac): Remove gl_FOPEN_SAFER call.
6327         (Makefile.am): Augment lib_SOURCES.
6328
6329 2011-05-23  Bruno Haible  <bruno@clisp.org>
6330
6331         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6332         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6333         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6334
6335 2011-05-23  Bruno Haible  <bruno@clisp.org>
6336
6337         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6338         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6339         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6340
6341 2011-05-23  Bruno Haible  <bruno@clisp.org>
6342
6343         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6344         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6345         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6346
6347 2011-05-23  Bruno Haible  <bruno@clisp.org>
6348
6349         settime: Move AC_LIBOBJ invocations to module description.
6350         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6351         * modules/settime (Makefile.am): Augment lib_SOURCES.
6352
6353 2011-05-23  Bruno Haible  <bruno@clisp.org>
6354
6355         savedir: Move AC_LIBOBJ invocations to module description.
6356         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
6357         * modules/savedir (Makefile.am): Augment lib_SOURCES.
6358
6359 2011-05-23  Bruno Haible  <bruno@clisp.org>
6360
6361         save-cwd: Move AC_LIBOBJ invocations to module description.
6362         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
6363         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6364
6365 2011-05-23  Bruno Haible  <bruno@clisp.org>
6366
6367         same: Move AC_LIBOBJ invocations to module description.
6368         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
6369         * modules/same (Makefile.am): Augment lib_SOURCES.
6370
6371 2011-05-23  Bruno Haible  <bruno@clisp.org>
6372
6373         safe-write: Move AC_LIBOBJ invocations to module description.
6374         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
6375         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
6376         instead of gl_SAFE_WRITE.
6377         (Makefile.am): Augment lib_SOURCES.
6378
6379 2011-05-23  Bruno Haible  <bruno@clisp.org>
6380
6381         safe-read: Move AC_LIBOBJ invocations to module description.
6382         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
6383         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
6384         of gl_SAFE_READ.
6385         (Makefile.am): Augment lib_SOURCES.
6386
6387 2011-05-23  Bruno Haible  <bruno@clisp.org>
6388
6389         safe-alloc: Move AC_LIBOBJ invocations to module description.
6390         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
6391         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
6392
6393 2011-05-23  Bruno Haible  <bruno@clisp.org>
6394
6395         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
6396         * m4/rijndael.m4: Remove file.
6397         * modules/crypto/rijndael (Files): Remove it.
6398         (configure.ac): Remove gl_RIJNDAEL call.
6399         (Makefile.am): Augment lib_SOURCES.
6400
6401 2011-05-23  Bruno Haible  <bruno@clisp.org>
6402
6403         readtokens: Move AC_LIBOBJ invocations to module description.
6404         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
6405         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
6406
6407 2011-05-23  Bruno Haible  <bruno@clisp.org>
6408
6409         read-file: Move AC_LIBOBJ invocations to module description.
6410         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
6411         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
6412         of gl_FUNC_READ_FILE.
6413         (Makefile.am): Augment lib_SOURCES.
6414
6415 2011-05-23  Bruno Haible  <bruno@clisp.org>
6416
6417         quotearg: Move AC_LIBOBJ invocations to module description.
6418         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
6419         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
6420
6421 2011-05-23  Bruno Haible  <bruno@clisp.org>
6422
6423         quote: Move AC_LIBOBJ invocations to module description.
6424         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
6425         * modules/quote (Makefile.am): Augment lib_SOURCES.
6426
6427 2011-05-23  Bruno Haible  <bruno@clisp.org>
6428
6429         posixver: Move AC_LIBOBJ invocations to module description.
6430         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
6431         * modules/posixver (Makefile.am): Augment lib_SOURCES.
6432
6433 2011-05-23  Bruno Haible  <bruno@clisp.org>
6434
6435         posixtm: Move AC_LIBOBJ invocations to module description.
6436         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
6437         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
6438
6439 2011-05-23  Bruno Haible  <bruno@clisp.org>
6440
6441         physmem: Move AC_LIBOBJ invocations to module description.
6442         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
6443         * modules/physmem (Makefile.am): Augment lib_SOURCES.
6444
6445 2011-05-23  Bruno Haible  <bruno@clisp.org>
6446
6447         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
6448         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
6449         invocation.
6450         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
6451
6452 2011-05-23  Bruno Haible  <bruno@clisp.org>
6453
6454         mpsort: Move AC_LIBOBJ invocations to module description.
6455         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6456         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6457
6458 2011-05-23  Bruno Haible  <bruno@clisp.org>
6459
6460         modechange: Move AC_LIBOBJ invocations to module description.
6461         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6462         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6463
6464 2011-05-23  Bruno Haible  <bruno@clisp.org>
6465
6466         mkdir-p: Move AC_LIBOBJ invocations to module description.
6467         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6468         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6469
6470 2011-05-23  Bruno Haible  <bruno@clisp.org>
6471
6472         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6473         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6474         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6475
6476 2011-05-23  Bruno Haible  <bruno@clisp.org>
6477
6478         mgetgroups: Move AC_LIBOBJ invocations to module description.
6479         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6480         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6481
6482 2011-05-23  Bruno Haible  <bruno@clisp.org>
6483
6484         memxor: Move AC_LIBOBJ invocations to module description.
6485         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
6486         * modules/memxor (Makefile.am): Augment lib_SOURCES.
6487
6488 2011-05-23  Bruno Haible  <bruno@clisp.org>
6489
6490         memcoll: Move AC_LIBOBJ invocations to module description.
6491         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
6492         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
6493
6494 2011-05-23  Bruno Haible  <bruno@clisp.org>
6495
6496         memcasecmp: Move AC_LIBOBJ invocations to module description.
6497         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
6498         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
6499
6500 2011-05-23  Bruno Haible  <bruno@clisp.org>
6501
6502         crypto/md5: Move AC_LIBOBJ invocations to module description.
6503         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
6504         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
6505
6506 2011-05-23  Bruno Haible  <bruno@clisp.org>
6507
6508         crypto/md4: Move AC_LIBOBJ invocations to module description.
6509         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
6510         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
6511
6512 2011-05-23  Bruno Haible  <bruno@clisp.org>
6513
6514         crypto/md2: Move AC_LIBOBJ invocations to module description.
6515         * m4/md2.m4: Remove file.
6516         * modules/crypto/md2 (Files): Remove it.
6517         (configure.ac): Remove gl_MD2 call.
6518         (Makefile.am): Augment lib_SOURCES.
6519
6520 2011-05-23  Bruno Haible  <bruno@clisp.org>
6521
6522         long-options: Move AC_LIBOBJ invocations to module description.
6523         * m4/long-options.m4: Remove file.
6524         * modules/long-options (Files): Remove it.
6525         (configure.ac): Remove gl_LONG_OPTIONS call.
6526         (Makefile.am): Augment lib_SOURCES.
6527
6528 2011-05-23  Bruno Haible  <bruno@clisp.org>
6529
6530         i-ring: Move AC_LIBOBJ invocations to module description.
6531         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
6532         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
6533
6534 2011-05-23  Bruno Haible  <bruno@clisp.org>
6535
6536         idcache: Move AC_LIBOBJ invocations to module description.
6537         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
6538         * modules/idcache (Makefile.am): Augment lib_SOURCES.
6539
6540 2011-05-23  Bruno Haible  <bruno@clisp.org>
6541
6542         human: Move AC_LIBOBJ invocations to module description.
6543         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
6544         * modules/human (Makefile.am): Augment lib_SOURCES.
6545
6546 2011-05-23  Bruno Haible  <bruno@clisp.org>
6547
6548         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
6549         * m4/hmac-sha1.m4: Remove file.
6550         * modules/crypto/hmac-sha1 (Files): Remove it.
6551         (configure.ac): Remove gl_HMAC_SHA1 call.
6552         (Makefile.am): Augment lib_SOURCES.
6553
6554 2011-05-23  Bruno Haible  <bruno@clisp.org>
6555
6556         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
6557         * m4/hmac-md5.m4: Remove file.
6558         * modules/crypto/hmac-md5 (Files): Remove it.
6559         (configure.ac): Remove gl_HMAC_MD5 call.
6560         (Makefile.am): Augment lib_SOURCES.
6561
6562 2011-05-23  Bruno Haible  <bruno@clisp.org>
6563
6564         hash: Move AC_LIBOBJ invocations to module description.
6565         * m4/hash.m4: Remove file.
6566         * modules/hash (Files): Remove it.
6567         (configure.ac): Remove gl_HASH call.
6568         (Makefile.am): Augment lib_SOURCES.
6569
6570 2011-05-23  Bruno Haible  <bruno@clisp.org>
6571
6572         hard-locale: Move AC_LIBOBJ invocations to module description.
6573         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
6574         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
6575
6576 2011-05-23  Bruno Haible  <bruno@clisp.org>
6577
6578         getugroups: Move AC_LIBOBJ invocations to module description.
6579         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
6580         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
6581
6582 2011-05-23  Bruno Haible  <bruno@clisp.org>
6583
6584         gettime: Move AC_LIBOBJ invocations to module description.
6585         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
6586         * modules/gettime (Makefile.am): Augment lib_SOURCES.
6587
6588 2011-05-23  Bruno Haible  <bruno@clisp.org>
6589
6590         getndelim2: Move AC_LIBOBJ invocations to module description.
6591         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
6592         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
6593
6594 2011-05-23  Bruno Haible  <bruno@clisp.org>
6595
6596         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
6597         * m4/gc-pbkdf2-sha1.m4: Remove file.
6598         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
6599         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
6600         (Makefile.am): Augment lib_SOURCES.
6601
6602 2011-05-23  Bruno Haible  <bruno@clisp.org>
6603
6604         fts: Move AC_LIBOBJ invocations to module description.
6605         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
6606         * modules/fts (configure.ac): ... to here.
6607
6608 2011-05-23  Bruno Haible  <bruno@clisp.org>
6609
6610         file-type: Move AC_LIBOBJ invocations to module description.
6611         * m4/file-type.m4: Remove file.
6612         * modules/file-type (Files): Remove it.
6613         (configure.ac): Remove gl_FILE_TYPE call.
6614         (Makefile.am): Augment lib_SOURCES.
6615
6616 2011-05-23  Bruno Haible  <bruno@clisp.org>
6617
6618         filenamecat*: Respect rules for use of AC_LIBOBJ.
6619         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
6620         Remove AC_LIBOBJ invocation.
6621         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
6622         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
6623
6624 2011-05-23  Bruno Haible  <bruno@clisp.org>
6625
6626         filemode: Move AC_LIBOBJ invocations to module description.
6627         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
6628         * modules/filemode (Makefile.am): Augment lib_SOURCES.
6629
6630 2011-05-23  Bruno Haible  <bruno@clisp.org>
6631
6632         openat-safer: Move AC_LIBOBJ invocations to module description.
6633         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
6634         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
6635
6636 2011-05-23  Bruno Haible  <bruno@clisp.org>
6637
6638         fcntl-safer: Move AC_LIBOBJ invocations to module description.
6639         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
6640         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
6641
6642 2011-05-23  Bruno Haible  <bruno@clisp.org>
6643
6644         exclude: Move AC_LIBOBJ invocations to module description.
6645         * m4/exclude.m4: Remove file.
6646         * modules/exclude (Files): Remove it.
6647         (configure.ac): Remove gl_EXCLUDE call.
6648         (Makefile.am): Augment lib_SOURCES.
6649
6650 2011-05-23  Bruno Haible  <bruno@clisp.org>
6651
6652         dirname*: Respect rules for use of AC_LIBOBJ.
6653         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
6654         invocations.
6655         * modules/dirname (Makefile.am): Augment lib_SOURCES.
6656         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
6657
6658 2011-05-23  Bruno Haible  <bruno@clisp.org>
6659
6660         dirent-safer: Move AC_LIBOBJ invocations to module description.
6661         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
6662         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
6663
6664 2011-05-23  Bruno Haible  <bruno@clisp.org>
6665
6666         crypto/des: Move AC_LIBOBJ invocations to module description.
6667         * m4/des.m4: Remove file.
6668         * modules/crypto/des (Files): Remove it.
6669         (configure.ac): Remove gl_DES call.
6670         (Makefile.am): Augment lib_SOURCES.
6671
6672 2011-05-23  Bruno Haible  <bruno@clisp.org>
6673
6674         cycle-check: Move AC_LIBOBJ invocations to module description.
6675         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
6676         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
6677
6678 2011-05-23  Bruno Haible  <bruno@clisp.org>
6679
6680         c-strtold: Move AC_LIBOBJ invocations to module description.
6681         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
6682         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
6683
6684 2011-05-23  Bruno Haible  <bruno@clisp.org>
6685
6686         c-strtod: Move AC_LIBOBJ invocations to module description.
6687         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
6688         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
6689
6690 2011-05-23  Bruno Haible  <bruno@clisp.org>
6691
6692         crc: Move AC_LIBOBJ invocations to module description.
6693         * m4/crc.m4: Remove file.
6694         * modules/crc (Files): Remove it.
6695         (configure.ac): Remove gl_CRC call.
6696         (Makefile.am): Augment lib_SOURCES.
6697
6698 2011-05-23  Bruno Haible  <bruno@clisp.org>
6699
6700         close-stream: Move AC_LIBOBJ invocations to module description.
6701         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
6702         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
6703
6704 2011-05-23  Bruno Haible  <bruno@clisp.org>
6705
6706         closeout: Move AC_LIBOBJ invocations to module description.
6707         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
6708         * modules/closeout (Makefile.am): Augment lib_SOURCES.
6709
6710 2011-05-23  Bruno Haible  <bruno@clisp.org>
6711
6712         closein: Move AC_LIBOBJ invocations to module description.
6713         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
6714         * modules/closein (Makefile.am): Augment lib_SOURCES.
6715
6716 2011-05-23  Bruno Haible  <bruno@clisp.org>
6717
6718         cloexec: Move AC_LIBOBJ invocations to module description.
6719         * m4/cloexec.m4: Remove file.
6720         * modules/cloexec (Files): Remove it.
6721         (configure.ac): Remove gl_CLOEXEC call.
6722         (Makefile.am): Augment lib_SOURCES.
6723
6724 2011-05-23  Bruno Haible  <bruno@clisp.org>
6725
6726         check-version: Move AC_LIBOBJ invocations to module description.
6727         * m4/check-version.m4: Remove file.
6728         * modules/check-version (Files): Remove it.
6729         (configure.ac): Remove gl_CHECK_VERSION call.
6730         (Makefile.am): Augment lib_SOURCES.
6731
6732 2011-05-23  Bruno Haible  <bruno@clisp.org>
6733
6734         chdir-safer: Move AC_LIBOBJ invocations to module description.
6735         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
6736         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
6737
6738 2011-05-23  Bruno Haible  <bruno@clisp.org>
6739
6740         canonicalize: Move AC_LIBOBJ invocations to module description.
6741         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
6742         AC_LIBOBJ invocation.
6743         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
6744
6745 2011-05-23  Bruno Haible  <bruno@clisp.org>
6746
6747         canon-host: Move AC_LIBOBJ invocations to module description.
6748         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
6749         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
6750         instead of gl_CANON_HOST.
6751         (Makefile.am): Augment lib_SOURCES.
6752
6753 2011-05-23  Bruno Haible  <bruno@clisp.org>
6754
6755         backupfile: Move AC_LIBOBJ invocations to module description.
6756         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
6757         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
6758
6759 2011-05-23  Bruno Haible  <bruno@clisp.org>
6760
6761         argmatch: Move AC_LIBOBJ invocations to module description.
6762         * m4/argmatch.m4: Remove file.
6763         * modules/argmatch (Files): Remove it.
6764         (configure.ac): Remove gl_ARGMATCH call.
6765         (Makefile.am): Augment lib_SOURCES.
6766
6767 2011-05-23  Bruno Haible  <bruno@clisp.org>
6768
6769         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
6770         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
6771         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
6772
6773 2011-05-23  Bruno Haible  <bruno@clisp.org>
6774
6775         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
6776         * m4/arcfour.m4: Remove file.
6777         * modules/crypto/arcfour (Files): Remove it.
6778         (configure.ac): Remove gl_ARCFOUR call.
6779         (Makefile.am): Augment lib_SOURCES.
6780
6781 2011-05-22  Bruno Haible  <bruno@clisp.org>
6782
6783         write: Move AC_LIBOBJ invocations to module description.
6784         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
6785         * modules/write (configure.ac): ... to here.
6786
6787 2011-05-22  Bruno Haible  <bruno@clisp.org>
6788
6789         wmemset: Move AC_LIBOBJ invocations to module description.
6790         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
6791         here...
6792         * modules/wmemset (configure.ac): ... to here.
6793
6794 2011-05-22  Bruno Haible  <bruno@clisp.org>
6795
6796         wmemmove: Move AC_LIBOBJ invocations to module description.
6797         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
6798         here...
6799         * modules/wmemmove (configure.ac): ... to here.
6800
6801 2011-05-22  Bruno Haible  <bruno@clisp.org>
6802
6803         wmemcpy: Move AC_LIBOBJ invocations to module description.
6804         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
6805         here...
6806         * modules/wmemcpy (configure.ac): ... to here.
6807
6808 2011-05-22  Bruno Haible  <bruno@clisp.org>
6809
6810         wmemcmp: Move AC_LIBOBJ invocations to module description.
6811         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
6812         here...
6813         * modules/wmemcmp (configure.ac): ... to here.
6814
6815 2011-05-22  Bruno Haible  <bruno@clisp.org>
6816
6817         wmemchr: Move AC_LIBOBJ invocations to module description.
6818         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
6819         here...
6820         * modules/wmemchr (configure.ac): ... to here.
6821
6822 2011-05-22  Bruno Haible  <bruno@clisp.org>
6823
6824         wcswidth: Move AC_LIBOBJ invocations to module description.
6825         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
6826         here...
6827         * modules/wcswidth (configure.ac): ... to here.
6828
6829 2011-05-22  Bruno Haible  <bruno@clisp.org>
6830
6831         wcwidth: Respect rules for use of AC_LIBOBJ.
6832         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
6833         invocation from here...
6834         * modules/wcwidth (configure.ac): ... to here.
6835         (Depends-on): Update conditions.
6836
6837 2011-05-22  Bruno Haible  <bruno@clisp.org>
6838
6839         wctype: Move AC_LIBOBJ invocations to module description.
6840         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
6841         invocation from here...
6842         * modules/wctype (configure.ac): ... to here.
6843         (Depends-on): Update conditions.
6844
6845 2011-05-22  Bruno Haible  <bruno@clisp.org>
6846
6847         wctrans: Move AC_LIBOBJ invocations to module description.
6848         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
6849         invocation from here...
6850         * modules/wctrans (configure.ac): ... to here.
6851
6852 2011-05-22  Bruno Haible  <bruno@clisp.org>
6853
6854         wctomb: Move AC_LIBOBJ invocations to module description.
6855         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
6856         invocations from here...
6857         * modules/wctomb (configure.ac): ... to here.
6858
6859 2011-05-22  Bruno Haible  <bruno@clisp.org>
6860
6861         wctob: Move AC_LIBOBJ invocations to module description.
6862         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
6863         gl_PREREQ_WCTOB invocations from here...
6864         * modules/wctob (configure.ac): ... to here.
6865         (Depends-on): Update conditions.
6866
6867 2011-05-22  Bruno Haible  <bruno@clisp.org>
6868
6869         wcsxfrm: Move AC_LIBOBJ invocations to module description.
6870         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
6871         here...
6872         * modules/wcsxfrm (configure.ac): ... to here.
6873
6874 2011-05-22  Bruno Haible  <bruno@clisp.org>
6875
6876         wcstok: Move AC_LIBOBJ invocations to module description.
6877         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
6878         * modules/wcstok (configure.ac): ... to here.
6879
6880 2011-05-22  Bruno Haible  <bruno@clisp.org>
6881
6882         wcsstr: Move AC_LIBOBJ invocations to module description.
6883         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
6884         * modules/wcsstr (configure.ac): ... to here.
6885
6886 2011-05-22  Bruno Haible  <bruno@clisp.org>
6887
6888         wcsspn: Move AC_LIBOBJ invocations to module description.
6889         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
6890         * modules/wcsspn (configure.ac): ... to here.
6891
6892 2011-05-22  Bruno Haible  <bruno@clisp.org>
6893
6894         wcsrtombs: Move AC_LIBOBJ invocations to module description.
6895         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
6896         gl_PREREQ_WCSRTOMBS invocations from here...
6897         * modules/wcsrtombs (configure.ac): ... to here.
6898
6899 2011-05-22  Bruno Haible  <bruno@clisp.org>
6900
6901         wcsrchr: Move AC_LIBOBJ invocations to module description.
6902         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
6903         here...
6904         * modules/wcsrchr (configure.ac): ... to here.
6905
6906 2011-05-22  Bruno Haible  <bruno@clisp.org>
6907
6908         wcspbrk: Move AC_LIBOBJ invocations to module description.
6909         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
6910         here...
6911         * modules/wcspbrk (configure.ac): ... to here.
6912
6913 2011-05-22  Bruno Haible  <bruno@clisp.org>
6914
6915         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
6916         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
6917         gl_PREREQ_WCSNRTOMBS invocations from here...
6918         * modules/wcsnrtombs (configure.ac): ... to here.
6919
6920 2011-05-22  Bruno Haible  <bruno@clisp.org>
6921
6922         wcsnlen: Move AC_LIBOBJ invocations to module description.
6923         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
6924         here...
6925         * modules/wcsnlen (configure.ac): ... to here.
6926
6927 2011-05-22  Bruno Haible  <bruno@clisp.org>
6928
6929         wcsncpy: Move AC_LIBOBJ invocations to module description.
6930         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
6931         here...
6932         * modules/wcsncpy (configure.ac): ... to here.
6933
6934 2011-05-22  Bruno Haible  <bruno@clisp.org>
6935
6936         wcsncmp: Move AC_LIBOBJ invocations to module description.
6937         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
6938         here...
6939         * modules/wcsncmp (configure.ac): ... to here.
6940
6941 2011-05-22  Bruno Haible  <bruno@clisp.org>
6942
6943         wcsncat: Move AC_LIBOBJ invocations to module description.
6944         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
6945         here...
6946         * modules/wcsncat (configure.ac): ... to here.
6947
6948 2011-05-22  Bruno Haible  <bruno@clisp.org>
6949
6950         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
6951         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
6952         from here...
6953         * modules/wcsncasecmp (configure.ac): ... to here.
6954
6955 2011-05-22  Bruno Haible  <bruno@clisp.org>
6956
6957         wcslen: Move AC_LIBOBJ invocations to module description.
6958         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
6959         * modules/wcslen (configure.ac): ... to here.
6960
6961 2011-05-22  Bruno Haible  <bruno@clisp.org>
6962
6963         wcsdup: Move AC_LIBOBJ invocations to module description.
6964         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
6965         * modules/wcsdup (configure.ac): ... to here.
6966
6967 2011-05-22  Bruno Haible  <bruno@clisp.org>
6968
6969         wcscspn: Move AC_LIBOBJ invocations to module description.
6970         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
6971         here...
6972         * modules/wcscspn (configure.ac): ... to here.
6973
6974 2011-05-22  Bruno Haible  <bruno@clisp.org>
6975
6976         wcscpy: Move AC_LIBOBJ invocations to module description.
6977         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
6978         * modules/wcscpy (configure.ac): ... to here.
6979
6980 2011-05-22  Bruno Haible  <bruno@clisp.org>
6981
6982         wcscoll: Move AC_LIBOBJ invocations to module description.
6983         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
6984         here...
6985         * modules/wcscoll (configure.ac): ... to here.
6986
6987 2011-05-22  Bruno Haible  <bruno@clisp.org>
6988
6989         wcscmp: Move AC_LIBOBJ invocations to module description.
6990         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
6991         * modules/wcscmp (configure.ac): ... to here.
6992
6993 2011-05-22  Bruno Haible  <bruno@clisp.org>
6994
6995         wcschr: Move AC_LIBOBJ invocations to module description.
6996         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
6997         * modules/wcschr (configure.ac): ... to here.
6998
6999 2011-05-22  Bruno Haible  <bruno@clisp.org>
7000
7001         wcscat: Move AC_LIBOBJ invocations to module description.
7002         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7003         * modules/wcscat (configure.ac): ... to here.
7004
7005 2011-05-22  Bruno Haible  <bruno@clisp.org>
7006
7007         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7008         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7009         here...
7010         * modules/wcscasecmp (configure.ac): ... to here.
7011
7012 2011-05-22  Bruno Haible  <bruno@clisp.org>
7013
7014         wcrtomb: Move AC_LIBOBJ invocations to module description.
7015         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7016         invocations from here...
7017         * modules/wcrtomb (configure.ac): ... to here.
7018
7019 2011-05-22  Bruno Haible  <bruno@clisp.org>
7020
7021         wcpncpy: Move AC_LIBOBJ invocations to module description.
7022         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7023         here...
7024         * modules/wcpncpy (configure.ac): ... to here.
7025
7026 2011-05-22  Bruno Haible  <bruno@clisp.org>
7027
7028         wcpcpy: Move AC_LIBOBJ invocations to module description.
7029         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7030         * modules/wcpcpy (configure.ac): ... to here.
7031
7032 2011-05-22  Bruno Haible  <bruno@clisp.org>
7033
7034         waitpid: Move AC_LIBOBJ invocations to module description.
7035         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7036         invocation from here...
7037         * modules/waitpid (configure.ac): ... to here.
7038
7039 2011-05-22  Bruno Haible  <bruno@clisp.org>
7040
7041         utimensat: Move AC_LIBOBJ invocations to module description.
7042         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7043         here...
7044         * modules/utimensat (configure.ac): ... to here.
7045
7046 2011-05-22  Bruno Haible  <bruno@clisp.org>
7047
7048         usleep: Move AC_LIBOBJ invocations to module description.
7049         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7050         here...
7051         * modules/usleep (configure.ac): ... to here.
7052
7053 2011-05-22  Bruno Haible  <bruno@clisp.org>
7054
7055         unlockpt: Move AC_LIBOBJ invocations to module description.
7056         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7057         gl_PREREQ_UNLOCKPT invocations from here...
7058         * modules/unlockpt (configure.ac): ... to here.
7059
7060 2011-05-22  Bruno Haible  <bruno@clisp.org>
7061
7062         unlink: Respect rules for use of AC_LIBOBJ.
7063         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7064         * modules/unlink (configure.ac): ... to here.
7065
7066 2011-05-22  Bruno Haible  <bruno@clisp.org>
7067
7068         uname: Move AC_LIBOBJ invocations to module description.
7069         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7070         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7071         here...
7072         * modules/uname (configure.ac): ... to here.
7073
7074 2011-05-22  Bruno Haible  <bruno@clisp.org>
7075
7076         ttyname_r: Move AC_LIBOBJ invocations to module description.
7077         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7078         gl_PREREQ_TTYNAME_R invocations from here...
7079         * modules/ttyname_r (configure.ac): ... to here.
7080
7081 2011-05-22  Bruno Haible  <bruno@clisp.org>
7082
7083         tsearch: Move AC_LIBOBJ invocations to module description.
7084         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7085         invocations from here...
7086         * modules/tsearch (configure.ac): ... to here.
7087
7088 2011-05-22  Bruno Haible  <bruno@clisp.org>
7089
7090         towctrans: Move AC_LIBOBJ invocations to module description.
7091         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7092         AC_LIBOBJ invocation from here...
7093         * modules/towctrans (configure.ac): ... to here.
7094
7095 2011-05-22  Bruno Haible  <bruno@clisp.org>
7096
7097         tmpfile: Move AC_LIBOBJ invocations to module description.
7098         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7099         invocations from here...
7100         * modules/tmpfile (configure.ac): ... to here.
7101
7102 2011-05-22  Bruno Haible  <bruno@clisp.org>
7103
7104         times: Move AC_LIBOBJ invocations to module description.
7105         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7106         * modules/times (configure.ac): ... to here.
7107
7108 2011-05-22  Bruno Haible  <bruno@clisp.org>
7109
7110         time_r: Move AC_LIBOBJ invocations to module description.
7111         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7112         invocations from here...
7113         * modules/time_r (configure.ac): ... to here.
7114
7115 2011-05-22  Bruno Haible  <bruno@clisp.org>
7116
7117         timegm: Move AC_LIBOBJ invocations to module description.
7118         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7119         invocations from here...
7120         * modules/timegm (configure.ac): ... to here.
7121
7122 2011-05-22  Bruno Haible  <bruno@clisp.org>
7123
7124         tcgetsid: Move AC_LIBOBJ invocations to module description.
7125         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7126         and gl_PREREQ_TCGETSID invocations from here...
7127         * modules/tcgetsid (configure.ac): ... to here.
7128         (Depends-on): Update conditions.
7129
7130 2011-05-22  Bruno Haible  <bruno@clisp.org>
7131
7132         symlinkat: Move AC_LIBOBJ invocations to module description.
7133         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7134         here...
7135         * modules/symlinkat (configure.ac): ... to here.
7136
7137 2011-05-22  Bruno Haible  <bruno@clisp.org>
7138
7139         symlink: Move AC_LIBOBJ invocations to module description.
7140         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7141         here...
7142         * modules/symlink (configure.ac): ... to here.
7143
7144 2011-05-22  Bruno Haible  <bruno@clisp.org>
7145
7146         strverscmp: Move AC_LIBOBJ invocations to module description.
7147         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7148         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7149         from here...
7150         * modules/strverscmp (configure.ac): ... to here.
7151
7152 2011-05-22  Bruno Haible  <bruno@clisp.org>
7153
7154         strtok_r: Move AC_LIBOBJ invocations to module description.
7155         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7156         and gl_PREREQ_STRTOK_R invocations from here...
7157         * modules/strtok_r (configure.ac): ... to here.
7158         (Depends-on): Update conditions.
7159
7160 2011-05-22  Bruno Haible  <bruno@clisp.org>
7161
7162         strtoumax: Move AC_LIBOBJ invocations to module description.
7163         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7164         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7165         from here...
7166         * modules/strtoumax (configure.ac): ... to here.
7167
7168 2011-05-22  Bruno Haible  <bruno@clisp.org>
7169
7170         strtoimax: Move AC_LIBOBJ invocations to module description.
7171         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7172         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7173         from here...
7174         * modules/strtoimax (configure.ac): ... to here.
7175
7176 2011-05-22  Bruno Haible  <bruno@clisp.org>
7177
7178         strtoull: Move AC_LIBOBJ invocations to module description.
7179         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7180         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7181         from here...
7182         * modules/strtoull (configure.ac): ... to here.
7183
7184 2011-05-22  Bruno Haible  <bruno@clisp.org>
7185
7186         strtoll: Move AC_LIBOBJ invocations to module description.
7187         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7188         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7189         here...
7190         * modules/strtoll (configure.ac): ... to here.
7191
7192 2011-05-22  Bruno Haible  <bruno@clisp.org>
7193
7194         strtoul: Move AC_LIBOBJ invocations to module description.
7195         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7196         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7197         * modules/strtoul (configure.ac): ... to here.
7198
7199 2011-05-22  Bruno Haible  <bruno@clisp.org>
7200
7201         strtol: Move AC_LIBOBJ invocations to module description.
7202         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7203         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7204         * modules/strtol (configure.ac): ... to here.
7205
7206 2011-05-22  Bruno Haible  <bruno@clisp.org>
7207
7208         strtod: Move AC_LIBOBJ invocations to module description.
7209         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7210         invocations from here...
7211         * modules/strtod (configure.ac): ... to here.
7212
7213 2011-05-22  Bruno Haible  <bruno@clisp.org>
7214
7215         strstr*: Move AC_LIBOBJ invocations to module description.
7216         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7217         invocations from here...
7218         * modules/strstr-simple (configure.ac): ... to here.
7219         * modules/strstr (configure.ac): ... and here.
7220
7221 2011-05-22  Bruno Haible  <bruno@clisp.org>
7222
7223         strsignal: Move AC_LIBOBJ invocations to module description.
7224         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7225         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7226         * modules/strsignal (configure.ac): ... to here.
7227         (Depends-on): Update conditions.
7228
7229 2011-05-22  Bruno Haible  <bruno@clisp.org>
7230
7231         strsep: Move AC_LIBOBJ invocations to module description.
7232         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7233         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7234         here...
7235         * modules/strsep (configure.ac): ... to here.
7236
7237 2011-05-22  Bruno Haible  <bruno@clisp.org>
7238
7239         strptime: Move AC_LIBOBJ invocations to module description.
7240         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7241         gl_PREREQ_STRPTIME invocations from here...
7242         * modules/strptime (configure.ac): ... to here.
7243
7244 2011-05-22  Bruno Haible  <bruno@clisp.org>
7245
7246         strpbrk: Move AC_LIBOBJ invocations to module description.
7247         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7248         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7249         here...
7250         * modules/strpbrk (configure.ac): ... to here.
7251
7252 2011-05-22  Bruno Haible  <bruno@clisp.org>
7253
7254         strnlen: Move AC_LIBOBJ invocations to module description.
7255         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7256         invocations from here...
7257         * modules/strnlen (configure.ac): ... to here.
7258
7259 2011-05-22  Bruno Haible  <bruno@clisp.org>
7260
7261         strndup: Move AC_LIBOBJ invocations to module description.
7262         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7263         invocations from here...
7264         * modules/strndup (configure.ac): ... to here.
7265         (Depends-on): Update conditions.
7266
7267 2011-05-22  Bruno Haible  <bruno@clisp.org>
7268
7269         strncat: Move AC_LIBOBJ invocations to module description.
7270         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7271         invocations from here...
7272         * modules/strncat (configure.ac): ... to here.
7273
7274 2011-05-22  Bruno Haible  <bruno@clisp.org>
7275
7276         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7277         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7278         invocations from here...
7279         * modules/strdup (configure.ac): ... to here.
7280         * modules/strdup-posix (configure.ac): ... and here.
7281
7282 2011-05-22  Bruno Haible  <bruno@clisp.org>
7283
7284         strcspn: Move AC_LIBOBJ invocations to module description.
7285         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7286         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7287         here...
7288         * modules/strcspn (configure.ac): ... to here.
7289
7290 2011-05-22  Bruno Haible  <bruno@clisp.org>
7291
7292         strchrnul: Move AC_LIBOBJ invocations to module description.
7293         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7294         gl_PREREQ_STRCHRNUL invocations from here...
7295         * modules/strchrnul (configure.ac): ... to here.
7296
7297 2011-05-22  Bruno Haible  <bruno@clisp.org>
7298
7299         strcasestr*: Move AC_LIBOBJ invocations to module description.
7300         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7301         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7302         * modules/strcasestr-simple (configure.ac): ... to here.
7303         * modules/strcasestr (configure.ac): ... and here.
7304
7305 2011-05-22  Bruno Haible  <bruno@clisp.org>
7306
7307         strcase: Move AC_LIBOBJ invocations to module description.
7308         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7309         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7310         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7311         gl_PREREQ_STRNCASECMP invocations from here...
7312         * modules/strcase (configure.ac): ... to here.
7313
7314 2011-05-22  Bruno Haible  <bruno@clisp.org>
7315
7316         stpncpy: Move AC_LIBOBJ invocations to module description.
7317         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7318         here...
7319         * modules/stpncpy (configure.ac): ... to here.
7320
7321 2011-05-22  Bruno Haible  <bruno@clisp.org>
7322
7323         stpcpy: Move AC_LIBOBJ invocations to module description.
7324         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7325         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7326         here...
7327         * modules/stpcpy (configure.ac): ... to here.
7328
7329 2011-05-21  Bruno Haible  <bruno@clisp.org>
7330
7331         stat: Move AC_LIBOBJ invocations to module description.
7332         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7333         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7334         here...
7335         * modules/stat (configure.ac): ... to here.
7336
7337 2011-05-21  Bruno Haible  <bruno@clisp.org>
7338
7339         sleep: Move AC_LIBOBJ invocations to module description.
7340         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7341         * modules/sleep (configure.ac): ... to here.
7342
7343 2011-05-21  Bruno Haible  <bruno@clisp.org>
7344
7345         signbit: Move AC_LIBOBJ invocations to module description.
7346         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7347         * modules/signbit (configure.ac): ... to here.
7348
7349 2011-05-21  Bruno Haible  <bruno@clisp.org>
7350
7351         sigprocmask: Move AC_LIBOBJ invocations to module description.
7352         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7353         gl_PREREQ_SIGPROMASK invocations from here...
7354         * modules/sigprocmask (configure.ac): ... to here.
7355
7356 2011-05-21  Bruno Haible  <bruno@clisp.org>
7357
7358         sigaction: Move AC_LIBOBJ invocations to module description.
7359         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
7360         gl_PREREQ_SIGACTION invocations from here...
7361         * modules/sigaction (configure.ac): ... to here.
7362
7363 2011-05-21  Bruno Haible  <bruno@clisp.org>
7364
7365         sig2str: Move AC_LIBOBJ invocations to module description.
7366         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
7367         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
7368         here...
7369         * modules/sig2str (configure.ac): ... to here.
7370
7371 2011-05-21  Bruno Haible  <bruno@clisp.org>
7372
7373         setlocale: Move AC_LIBOBJ invocations to module description.
7374         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
7375         gl_PREREQ_SETLOCALE invocations from here...
7376         * modules/setlocale (configure.ac): ... to here.
7377
7378 2011-05-21  Bruno Haible  <bruno@clisp.org>
7379
7380         unsetenv: Move AC_LIBOBJ invocations to module description.
7381         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
7382         and gl_PREREQ_UNSETENV invocations from here...
7383         * modules/unsetenv (configure.ac): ... to here.
7384         (Depends-on): Update.
7385
7386 2011-05-21  Bruno Haible  <bruno@clisp.org>
7387
7388         setenv: Move AC_LIBOBJ invocations to module description.
7389         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
7390         here...
7391         * modules/setenv (configure.ac): ... to here.
7392
7393 2011-05-21  Bruno Haible  <bruno@clisp.org>
7394
7395         selinux-h: Move AC_LIBOBJ invocations to module description.
7396         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
7397         AC_LIBOBJ invocation from here...
7398         * modules/selinux-h (configure.ac): ... to here.
7399
7400 2011-05-21  Bruno Haible  <bruno@clisp.org>
7401
7402         select: Respect rules for use of AC_LIBOBJ.
7403         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
7404         here...
7405         * modules/select (configure.ac): ... to here.
7406
7407 2011-05-21  Bruno Haible  <bruno@clisp.org>
7408
7409         scandir: Move AC_LIBOBJ invocations to module description.
7410         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
7411         invocations from here...
7412         * modules/scandir (configure.ac): ... to here.
7413
7414 2011-05-21  Bruno Haible  <bruno@clisp.org>
7415
7416         rpmatch: Move AC_LIBOBJ invocations to module description.
7417         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
7418         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
7419         here...
7420         * modules/rpmatch (configure.ac): ... to here.
7421
7422 2011-05-21  Bruno Haible  <bruno@clisp.org>
7423
7424         rmdir: Respect rules for use of AC_LIBOBJ.
7425         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
7426         * modules/rmdir (configure.ac): ... to here.
7427
7428 2011-05-21  Bruno Haible  <bruno@clisp.org>
7429
7430         renameat: Move AC_LIBOBJ invocations to module description.
7431         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
7432         here...
7433         * modules/renameat (configure.ac): ... to here.
7434
7435 2011-05-21  Bruno Haible  <bruno@clisp.org>
7436
7437         rename: Respect rules for use of AC_LIBOBJ.
7438         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
7439         here...
7440         * modules/rename (configure.ac): ... to here.
7441
7442 2011-05-21  Bruno Haible  <bruno@clisp.org>
7443
7444         remove: Move AC_LIBOBJ invocations to module description.
7445         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
7446         here...
7447         * modules/remove (configure.ac): ... to here.
7448
7449 2011-05-21  Bruno Haible  <bruno@clisp.org>
7450
7451         relocatable-lib: Move AC_LIBOBJ invocations to module description.
7452         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7453         macro.
7454         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7455         * modules/relocatable-lib (configure.ac): ... to here.
7456         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7457         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7458
7459 2011-05-21  Bruno Haible  <bruno@clisp.org>
7460
7461         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7462         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7463         here...
7464         * modules/relocatable-prog (configure.ac): ... to here.
7465
7466 2011-05-21  Bruno Haible  <bruno@clisp.org>
7467
7468         regex: Move AC_LIBOBJ invocations to module description.
7469         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7470         invocations from here...
7471         * modules/regex (configure.ac): ... to here.
7472
7473 2011-05-21  Bruno Haible  <bruno@clisp.org>
7474
7475         realloc-*: Move AC_LIBOBJ invocations to module description.
7476         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7477         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7478         AC_LIBOBJ invocations from here...
7479         * modules/realloc-gnu (configure.ac): ... to here.
7480         * modules/realloc-posix (configure.ac): ... and here.
7481
7482 2011-05-21  Bruno Haible  <bruno@clisp.org>
7483
7484         readutmp: Move AC_LIBOBJ invocations to module description.
7485         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
7486         * modules/readutmp (configure.ac): ... to here.
7487
7488 2011-05-21  Bruno Haible  <bruno@clisp.org>
7489
7490         readlinkat: Move AC_LIBOBJ invocations to module description.
7491         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
7492         here...
7493         * modules/readlinkat (configure.ac): ... to here.
7494
7495 2011-05-21  Bruno Haible  <bruno@clisp.org>
7496
7497         readlink: Move AC_LIBOBJ invocations to module description.
7498         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
7499         gl_PREREQ_READLINK invocations from here...
7500         * modules/readlink (configure.ac): ... to here.
7501
7502 2011-05-21  Bruno Haible  <bruno@clisp.org>
7503
7504         readline: Move AC_LIBOBJ invocations to module description.
7505         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
7506         gl_PREREQ_READLINE invocations from here...
7507         * modules/readline (configure.ac): ... to here.
7508
7509 2011-05-21  Bruno Haible  <bruno@clisp.org>
7510
7511         read: Move AC_LIBOBJ invocations to module description.
7512         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
7513         * modules/read (configure.ac): ... to here.
7514
7515 2011-05-21  Bruno Haible  <bruno@clisp.org>
7516
7517         rawmemchr: Move AC_LIBOBJ invocations to module description.
7518         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
7519         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
7520         from here...
7521         * modules/rawmemchr (configure.ac): ... to here.
7522
7523 2011-05-21  Bruno Haible  <bruno@clisp.org>
7524
7525         random_r: Move AC_LIBOBJ invocations to module description.
7526         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
7527         gl_PREREQ_RANDOM_R invocations from here...
7528         * modules/random_r (configure.ac): ... to here.
7529
7530 2011-05-21  Bruno Haible  <bruno@clisp.org>
7531
7532         pwrite: Move AC_LIBOBJ invocations to module description.
7533         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
7534         * modules/pwrite (configure.ac): ... to here.
7535
7536 2011-05-21  Bruno Haible  <bruno@clisp.org>
7537
7538         putenv: Move AC_LIBOBJ invocations to module description.
7539         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
7540         * modules/putenv (configure.ac): ... to here.
7541
7542 2011-05-21  Bruno Haible  <bruno@clisp.org>
7543
7544         login_tty: Move AC_LIBOBJ invocations to module description.
7545         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
7546         * modules/login_tty (configure.ac): ... to here.
7547
7548 2011-05-21  Bruno Haible  <bruno@clisp.org>
7549
7550         openpty: Move AC_LIBOBJ invocations to module description.
7551         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
7552         * modules/openpty (configure.ac): ... to here.
7553
7554 2011-05-21  Bruno Haible  <bruno@clisp.org>
7555
7556         forkpty: Move AC_LIBOBJ invocations to module description.
7557         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
7558         * modules/forkpty (configure.ac): ... to here.
7559
7560 2011-05-21  Bruno Haible  <bruno@clisp.org>
7561
7562         ptsname: Move AC_LIBOBJ invocations to module description.
7563         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
7564         invocations from here...
7565         * modules/ptsname (configure.ac): ... to here.
7566
7567 2011-05-21  Bruno Haible  <bruno@clisp.org>
7568
7569         pread: Move AC_LIBOBJ invocations to module description.
7570         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
7571         * modules/pread (configure.ac): ... to here.
7572
7573 2011-05-21  Bruno Haible  <bruno@clisp.org>
7574
7575         posix_spawn*: Move AC_LIBOBJ invocations to module description.
7576         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
7577         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
7578         * modules/posix_spawn (configure.ac): ... to here.
7579         * modules/posix_spawnp (configure.ac): ... and here.
7580
7581 2011-05-21  Bruno Haible  <bruno@clisp.org>
7582
7583         popen: Move AC_LIBOBJ invocations to module description.
7584         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
7585         invocations from here...
7586         * modules/popen (configure.ac): ... to here.
7587
7588 2011-05-21  Bruno Haible  <bruno@clisp.org>
7589
7590         poll: Move AC_LIBOBJ invocations to module description.
7591         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
7592         invocations from here...
7593         * modules/poll (configure.ac): ... to here.
7594
7595 2011-05-21  Bruno Haible  <bruno@clisp.org>
7596
7597         pipe-posix: Move AC_LIBOBJ invocations to module description.
7598         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
7599         * modules/pipe-posix (configure.ac): ... to here.
7600
7601 2011-05-21  Bruno Haible  <bruno@clisp.org>
7602
7603         openat: Respect rules for use of AC_LIBOBJ.
7604         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
7605         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7606         * modules/openat (configure.ac): ... to here.
7607
7608 2011-05-21  Bruno Haible  <bruno@clisp.org>
7609
7610         obstack-printf*: Move AC_LIBOBJ invocations to module description.
7611         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
7612         invocation from here...
7613         * modules/obstack-printf (configure.ac): ... to here.
7614         * modules/obstack-printf-posix (configure.ac): ... and here.
7615
7616 2011-05-21  Bruno Haible  <bruno@clisp.org>
7617
7618         nl_langinfo: Move AC_LIBOBJ invocations to module description.
7619         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
7620         from here...
7621         * modules/nl_langinfo (configure.ac): ... to here.
7622
7623 2011-05-21  Bruno Haible  <bruno@clisp.org>
7624
7625         nanosleep: Move AC_LIBOBJ invocations to module description.
7626         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
7627         gl_PREREQ_NANOSLEEP invocations from here...
7628         * modules/nanosleep (configure.ac): ... to here.
7629
7630 2011-05-21  Bruno Haible  <bruno@clisp.org>
7631
7632         mountlist: Move AC_LIBOBJ invocations to module description.
7633         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
7634         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
7635         * modules/mountlist (configure.ac): ... to here.
7636
7637 2011-05-21  Bruno Haible  <bruno@clisp.org>
7638
7639         mktime: Respect rules for use of AC_LIBOBJ.
7640         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
7641         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
7642         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
7643         (gl_FUNC_MKTIME_INTERNAL): ... and here...
7644         * modules/mktime (configure.ac): ... to here.
7645         * modules/mktime-internal (configure.ac): ... and here.
7646         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
7647
7648 2011-05-21  Bruno Haible  <bruno@clisp.org>
7649
7650         mkstemps: Move AC_LIBOBJ invocations to module description.
7651         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
7652         here...
7653         * modules/mkstemps (configure.ac): ... to here.
7654
7655 2011-05-21  Bruno Haible  <bruno@clisp.org>
7656
7657         mkstemp: Move AC_LIBOBJ invocations to module description.
7658         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
7659         gl_PREREQ_MKSTEMP invocations from here...
7660         * modules/mkstemp (configure.ac): ... to here.
7661
7662 2011-05-21  Bruno Haible  <bruno@clisp.org>
7663
7664         mkostemps: Move AC_LIBOBJ invocations to module description.
7665         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
7666         here...
7667         * modules/mkostemps (configure.ac): ... to here.
7668
7669 2011-05-21  Bruno Haible  <bruno@clisp.org>
7670
7671         mkostemp: Move AC_LIBOBJ invocations to module description.
7672         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
7673         gl_PREREQ_MKOSTEMP invocations from here...
7674         * modules/mkostemp (configure.ac): ... to here.
7675
7676 2011-05-21  Bruno Haible  <bruno@clisp.org>
7677
7678         mknod: Move AC_LIBOBJ invocations to module description.
7679         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
7680         * modules/mknod (configure.ac): ... to here.
7681
7682 2011-05-21  Bruno Haible  <bruno@clisp.org>
7683
7684         mkfifoat: Move AC_LIBOBJ invocations to module description.
7685         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
7686         here...
7687         * modules/mkfifoat (configure.ac): ... to here.
7688
7689 2011-05-21  Bruno Haible  <bruno@clisp.org>
7690
7691         mkfifo: Respect rules for use of AC_LIBOBJ.
7692         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
7693         here...
7694         * modules/mkfifo (configure.ac): ... to here.
7695
7696 2011-05-21  Bruno Haible  <bruno@clisp.org>
7697
7698         mkdtemp: Move AC_LIBOBJ invocations to module description.
7699         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
7700         invocations from here...
7701         * modules/mkdtemp (configure.ac): ... to here.
7702
7703 2011-05-21  Bruno Haible  <bruno@clisp.org>
7704
7705         mkdir: Move AC_LIBOBJ invocations to module description.
7706         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
7707         * modules/mkdir (configure.ac): ... to here.
7708
7709 2011-05-21  Bruno Haible  <bruno@clisp.org>
7710
7711         memset: Move AC_LIBOBJ invocations to module description.
7712         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
7713         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
7714         here...
7715         * modules/memset (configure.ac): ... to here.
7716
7717 2011-05-21  Bruno Haible  <bruno@clisp.org>
7718
7719         memrchr: Move AC_LIBOBJ invocations to module description.
7720         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
7721         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
7722         here...
7723         * modules/memrchr (configure.ac): ... to here.
7724
7725 2011-05-21  Bruno Haible  <bruno@clisp.org>
7726
7727         mempcpy: Move AC_LIBOBJ invocations to module description.
7728         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
7729         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
7730         here...
7731         * modules/mempcpy (configure.ac): ... to here.
7732
7733 2011-05-21  Bruno Haible  <bruno@clisp.org>
7734
7735         memmove: Move AC_LIBOBJ invocations to module description.
7736         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
7737         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
7738         here...
7739         * modules/memmove (configure.ac): ... to here.
7740
7741 2011-05-21  Bruno Haible  <bruno@clisp.org>
7742
7743         memmem*: Move AC_LIBOBJ invocations to module description.
7744         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
7745         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
7746         here...
7747         (gl_FUNC_MEMMEM): ... and here...
7748         * modules/memmem-simple (configure.ac): ... to here.
7749         * modules/memmem (configure.ac): ... and here.
7750
7751 2011-05-21  Bruno Haible  <bruno@clisp.org>
7752
7753         memcpy: Move AC_LIBOBJ invocations to module description.
7754         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
7755         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
7756         here...
7757         * modules/memcpy (configure.ac): ... to here.
7758
7759 2011-05-21  Bruno Haible  <bruno@clisp.org>
7760
7761         memcmp: Simplify autoconf macro.
7762         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
7763         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
7764         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
7765
7766 2011-05-21  Bruno Haible  <bruno@clisp.org>
7767
7768         memcmp: Move AC_LIBOBJ invocations to module description.
7769         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
7770         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
7771         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
7772         * modules/memcmp (configure.ac): ... to here.
7773         (Depends-on): Update conditions.
7774
7775 2011-05-21  Bruno Haible  <bruno@clisp.org>
7776
7777         memchr: Respect rules for use of AC_LIBOBJ.
7778         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
7779         invocations from here...
7780         * modules/memchr (configure.ac): ... to here.
7781
7782 2011-05-21  Bruno Haible  <bruno@clisp.org>
7783
7784         mbtowc: Move AC_LIBOBJ invocations to module description.
7785         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
7786         invocations from here...
7787         * modules/mbtowc (configure.ac): ... to here.
7788
7789 2011-05-21  Bruno Haible  <bruno@clisp.org>
7790
7791         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
7792         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
7793         gl_PREREQ_MBSRTOWCS invocations from here...
7794         * modules/mbsrtowcs (configure.ac): ... to here.
7795
7796 2011-05-21  Bruno Haible  <bruno@clisp.org>
7797
7798         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
7799         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
7800         gl_PREREQ_MBSNRTOWCS invocations from here...
7801         * modules/mbsnrtowcs (configure.ac): ... to here.
7802
7803 2011-05-21  Bruno Haible  <bruno@clisp.org>
7804
7805         mbsinit: Move AC_LIBOBJ invocations to module description.
7806         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
7807         invocations from here...
7808         * modules/mbsinit (configure.ac): ... to here.
7809
7810 2011-05-21  Bruno Haible  <bruno@clisp.org>
7811
7812         mbrlen: Move AC_LIBOBJ invocations to module description.
7813         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
7814         invocations from here...
7815         * modules/mbrlen (configure.ac): ... to here.
7816
7817 2011-05-21  Bruno Haible  <bruno@clisp.org>
7818
7819         mbrtowc: Respect rules for use of AC_LIBOBJ.
7820         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
7821         invocations from here...
7822         * modules/mbrtowc (configure.ac): ... to here.
7823
7824 2011-05-21  Bruno Haible  <bruno@clisp.org>
7825
7826         malloc-*: Move AC_LIBOBJ invocations to module description.
7827         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
7828         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
7829         AC_LIBOBJ invocations from here...
7830         * modules/malloc-gnu (configure.ac): ... to here.
7831         * modules/malloc-posix (configure.ac): ... and here.
7832
7833 2011-05-21  Bruno Haible  <bruno@clisp.org>
7834
7835         lstat, openat: Respect rules for use of AC_LIBOBJ.
7836         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
7837         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
7838         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
7839         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
7840         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
7841         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
7842         here.
7843         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
7844
7845 2011-05-21  Bruno Haible  <bruno@clisp.org>
7846
7847         lseek: Move AC_LIBOBJ invocations to module description.
7848         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
7849         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7850         * modules/lseek (configure.ac): ... to here.
7851
7852 2011-05-21  Bruno Haible  <bruno@clisp.org>
7853
7854         linkat: Move AC_LIBOBJ invocations to module description.
7855         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
7856         here...
7857         * modules/linkat (configure.ac): ... to here.
7858
7859 2011-05-21  Bruno Haible  <bruno@clisp.org>
7860
7861         link: Respect rules for use of AC_LIBOBJ.
7862         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
7863         * modules/link (configure.ac): ... to here.
7864
7865 2011-05-21  Bruno Haible  <bruno@clisp.org>
7866
7867         lchown: Move AC_LIBOBJ invocations to module description.
7868         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7869         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7870         * modules/lchown (configure.ac): ... to here.
7871
7872 2011-05-21  Bruno Haible  <bruno@clisp.org>
7873
7874         iswctype: Move AC_LIBOBJ invocations to module description.
7875         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
7876         here...
7877         * modules/iswctype (configure.ac): ... to here.
7878
7879 2011-05-21  Bruno Haible  <bruno@clisp.org>
7880
7881         iswblank: Move AC_LIBOBJ invocations to module description.
7882         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
7883         here...
7884         * modules/iswblank (configure.ac): ... to here.
7885
7886 2011-05-21  Bruno Haible  <bruno@clisp.org>
7887
7888         atanl: Move AC_LIBOBJ invocations to module description.
7889         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
7890         * modules/atanl (configure.ac): ... to here.
7891
7892 2011-05-21  Bruno Haible  <bruno@clisp.org>
7893
7894         acosl: Move AC_LIBOBJ invocations to module description.
7895         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
7896         * modules/acosl (configure.ac): ... to here.
7897
7898 2011-05-21  Bruno Haible  <bruno@clisp.org>
7899
7900         asinl: Respect rules for use of AC_LIBOBJ.
7901         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
7902         * modules/asinl (configure.ac): ... to here.
7903
7904 2011-05-21  Bruno Haible  <bruno@clisp.org>
7905
7906         tanl: Move AC_LIBOBJ invocations to module description.
7907         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
7908         * modules/tanl (configure.ac): ... to here.
7909
7910 2011-05-21  Bruno Haible  <bruno@clisp.org>
7911
7912         cosl: Move AC_LIBOBJ invocations to module description.
7913         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
7914         * modules/cosl (configure.ac): ... to here.
7915
7916 2011-05-21  Bruno Haible  <bruno@clisp.org>
7917
7918         sinl: Move AC_LIBOBJ invocations to module description.
7919         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
7920         * modules/sinl (configure.ac): ... to here.
7921
7922 2011-05-21  Bruno Haible  <bruno@clisp.org>
7923
7924         logl: Move AC_LIBOBJ invocations to module description.
7925         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
7926         * modules/logl (configure.ac): ... to here.
7927
7928 2011-05-21  Bruno Haible  <bruno@clisp.org>
7929
7930         expl: Move AC_LIBOBJ invocations to module description.
7931         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
7932         * modules/expl (configure.ac): ... to here.
7933
7934 2011-05-21  Bruno Haible  <bruno@clisp.org>
7935
7936         roundl: Move AC_LIBOBJ invocations to module description.
7937         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
7938         * modules/roundl (configure.ac): ... to here.
7939
7940 2011-05-21  Bruno Haible  <bruno@clisp.org>
7941
7942         round: Move AC_LIBOBJ invocations to module description.
7943         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
7944         * modules/round (configure.ac): ... to here.
7945
7946 2011-05-21  Bruno Haible  <bruno@clisp.org>
7947
7948         roundf: Move AC_LIBOBJ invocations to module description.
7949         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
7950         * modules/roundf (configure.ac): ... to here.
7951
7952 2011-05-21  Bruno Haible  <bruno@clisp.org>
7953
7954         truncl: Move AC_LIBOBJ invocations to module description.
7955         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
7956         * modules/truncl (configure.ac): ... to here.
7957
7958 2011-05-21  Bruno Haible  <bruno@clisp.org>
7959
7960         trunc: Move AC_LIBOBJ invocations to module description.
7961         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
7962         * modules/trunc (configure.ac): ... to here.
7963
7964 2011-05-21  Bruno Haible  <bruno@clisp.org>
7965
7966         truncf: Move AC_LIBOBJ invocations to module description.
7967         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
7968         * modules/truncf (configure.ac): ... to here.
7969
7970 2011-05-21  Bruno Haible  <bruno@clisp.org>
7971
7972         ceill: Move AC_LIBOBJ invocations to module description.
7973         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
7974         * modules/ceill (configure.ac): ... to here.
7975
7976 2011-05-21  Bruno Haible  <bruno@clisp.org>
7977
7978         ceil: Move AC_LIBOBJ invocations to module description.
7979         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
7980         * modules/ceil (configure.ac): ... to here.
7981
7982 2011-05-21  Bruno Haible  <bruno@clisp.org>
7983
7984         ceilf: Move AC_LIBOBJ invocations to module description.
7985         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
7986         * modules/ceilf (configure.ac): ... to here.
7987
7988 2011-05-21  Bruno Haible  <bruno@clisp.org>
7989
7990         floorl: Respect rules for use of AC_LIBOBJ.
7991         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
7992         * modules/floorl (configure.ac): ... to here.
7993
7994 2011-05-21  Bruno Haible  <bruno@clisp.org>
7995
7996         floor: Respect rules for use of AC_LIBOBJ.
7997         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
7998         * modules/floor (configure.ac): ... to here.
7999
8000 2011-05-21  Bruno Haible  <bruno@clisp.org>
8001
8002         floorf: Move AC_LIBOBJ invocations to module description.
8003         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8004         * modules/floorf (configure.ac): ... to here.
8005
8006 2011-05-20  Bruno Haible  <bruno@clisp.org>
8007
8008         sqrtl: Respect rules for use of AC_LIBOBJ.
8009         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8010         * modules/sqrtl (configure.ac): ... to here.
8011
8012 2011-05-20  Bruno Haible  <bruno@clisp.org>
8013
8014         ldexpl: Respect rules for use of AC_LIBOBJ.
8015         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8016         * modules/ldexpl (configure.ac): ... to here.
8017
8018 2011-05-20  Bruno Haible  <bruno@clisp.org>
8019
8020         frexpl*: Respect rules for use of AC_LIBOBJ.
8021         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8022         invocation from here...
8023         * modules/frexpl (configure.ac): ... to here.
8024         * modules/frexpl-nolibm (configure.ac): ... and here.
8025
8026 2011-05-20  Bruno Haible  <bruno@clisp.org>
8027
8028         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8029         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8030         invocation from here...
8031         * modules/frexp (configure.ac): ... to here.
8032         * modules/frexp-nolibm (configure.ac): ... and here.
8033
8034 2011-05-20  Bruno Haible  <bruno@clisp.org>
8035
8036         isnan: Respect rules for use of AC_LIBOBJ.
8037         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8038         invocations here.
8039         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8040         REPLACE_ISNAN.
8041         * modules/isnand (configure.ac): Likewise.
8042         * modules/isnanl (configure.ac): Likewise.
8043
8044 2011-05-20  Bruno Haible  <bruno@clisp.org>
8045
8046         isnanl*: Respect rules for use of AC_LIBOBJ.
8047         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8048         invocation from here...
8049         * modules/isnanl (configure.ac): ... to here.
8050         * modules/isnanl-nolibm (configure.ac): ... and here.
8051
8052 2011-05-20  Bruno Haible  <bruno@clisp.org>
8053
8054         isnand*: Move AC_LIBOBJ invocations to module description.
8055         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8056         invocation from here...
8057         * modules/isnand (configure.ac): ... to here.
8058         * modules/isnand-nolibm (configure.ac): ... and here.
8059
8060 2011-05-20  Bruno Haible  <bruno@clisp.org>
8061
8062         isnanf*: Move AC_LIBOBJ invocations to module description.
8063         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8064         invocation from here...
8065         * modules/isnanf (configure.ac): ... to here.
8066         * modules/isnanf-nolibm (configure.ac): ... and here.
8067
8068 2011-05-20  Bruno Haible  <bruno@clisp.org>
8069
8070         isnan*: Separate the AC_LIBOBJ invocations.
8071         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8072         AC_LIBOBJ invocation.
8073         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8074         here.
8075         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8076         AC_LIBOBJ invocation.
8077         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8078         here.
8079         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8080         AC_LIBOBJ invocation.
8081         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8082         here.
8083         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8084
8085 2011-05-08  Bruno Haible  <bruno@clisp.org>
8086
8087         isinf: Move AC_LIBOBJ invocations to module description.
8088         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8089         * modules/isinf (configure.ac): ... to here.
8090
8091 2011-05-08  Bruno Haible  <bruno@clisp.org>
8092
8093         isfinite: Move AC_LIBOBJ invocations to module description.
8094         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8095         * modules/isfinite (configure.ac): ... to here.
8096
8097 2011-05-08  Bruno Haible  <bruno@clisp.org>
8098
8099         isblank: Move AC_LIBOBJ invocations to module description.
8100         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8101         here...
8102         * modules/isblank (configure.ac): ... to here.
8103
8104 2011-05-08  Bruno Haible  <bruno@clisp.org>
8105
8106         isapipe: Move AC_LIBOBJ invocations to module description.
8107         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8108         gl_PREREQ_ISAPIPE invocations from here...
8109         * modules/isapipe (configure.ac): ... to here.
8110         (Depends-on): Update condition.
8111
8112 2011-05-08  Bruno Haible  <bruno@clisp.org>
8113
8114         ioctl: Move AC_LIBOBJ invocations to module description.
8115         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8116         invocations from here...
8117         * modules/ioctl (configure.ac): ... to here.
8118         (Depends-on): Update condition.
8119
8120 2011-05-08  Bruno Haible  <bruno@clisp.org>
8121
8122         imaxdiv: Move AC_LIBOBJ invocations to module description.
8123         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8124         invocations from here...
8125         * modules/imaxdiv (configure.ac): ... to here.
8126
8127 2011-05-08  Bruno Haible  <bruno@clisp.org>
8128
8129         imaxabs: Move AC_LIBOBJ invocations to module description.
8130         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8131         invocations from here...
8132         * modules/imaxabs (configure.ac): ... to here.
8133
8134 2011-05-08  Bruno Haible  <bruno@clisp.org>
8135
8136         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8137         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8138         AC_LIBOBJ invocations from here...
8139         * modules/getaddrinfo (configure.ac): ... to here.
8140         (Depends-on): Add conditions.
8141
8142 2011-05-08  Bruno Haible  <bruno@clisp.org>
8143
8144         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8145         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8146         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8147         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8148         (gl_PREREQ_INET_PTON): ... from here.
8149         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8150         gl_PREREQ_INET_PTON here.
8151         (Depends-on): Update condition.
8152
8153 2011-05-08  Bruno Haible  <bruno@clisp.org>
8154
8155         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8156         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8157         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8158         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8159         (gl_PREREQ_INET_NTOP): ... from here.
8160         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8161         gl_PREREQ_INET_NTOP here.
8162         (Depends-on): Update condition.
8163
8164 2011-05-08  Bruno Haible  <bruno@clisp.org>
8165
8166         iconv_open: Move AC_LIBOBJ invocations to module description.
8167         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8168         AC_LIBOBJ invocations from here...
8169         * modules/iconv_open (configure.ac): ... to here.
8170
8171 2011-05-08  Bruno Haible  <bruno@clisp.org>
8172
8173         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8174         If module 'iconv_open' is among the main modules and module
8175         'iconv_open-utf' is among the tests dependencies, then
8176         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8177         return the special iconv_t values. Therefore iconv() and iconv_close()
8178         must support these special iconv_t values, already in lib, not only in
8179         tests.
8180         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8181         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8182         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8183         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8184         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8185         (Depends-on): Add the dependencies of iconv_open-utf.
8186         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8187         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8188         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8189
8190 2011-05-08  Bruno Haible  <bruno@clisp.org>
8191
8192         group-member: Move AC_LIBOBJ invocations to module description.
8193         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8194         gl_PREREQ_GROUP_MEMBER invocations from here...
8195         * modules/group-member (configure.ac): ... to here.
8196
8197 2011-05-08  Bruno Haible  <bruno@clisp.org>
8198
8199         grantpt: Move AC_LIBOBJ invocations to module description.
8200         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8201         invocations from here...
8202         * modules/grantpt (configure.ac): ... to here.
8203
8204 2011-05-08  Bruno Haible  <bruno@clisp.org>
8205
8206         glob: Move AC_LIBOBJ invocations to module description.
8207         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8208         from here...
8209         * modules/glob (configure.ac): ... to here.
8210
8211 2011-05-08  Bruno Haible  <bruno@clisp.org>
8212
8213         getusershell: Move AC_LIBOBJ invocations to module description.
8214         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8215         Move AC_LIBOBJ invocation from here...
8216         * modules/getusershell (configure.ac): ... to here.
8217         (Depends-on): Update condition.
8218
8219 2011-05-08  Bruno Haible  <bruno@clisp.org>
8220
8221         gettimeofday: Move AC_LIBOBJ invocations to module description.
8222         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8223         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8224         gl_PREREQ_GETTIMEOFDAY invocations from here...
8225         * modules/gettimeofday (configure.ac): ... to here.
8226
8227 2011-05-08  Bruno Haible  <bruno@clisp.org>
8228
8229         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8230         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8231         just gl_FUNC_TZSET.
8232         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8233         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8234         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8235         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8236
8237 2011-05-08  Bruno Haible  <bruno@clisp.org>
8238
8239         getsubopt: Move AC_LIBOBJ invocations to module description.
8240         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8241         gl_PREREQ_GETSUBOPT invocations from here...
8242         * modules/getsubopt (configure.ac): ... to here.
8243
8244 2011-05-08  Bruno Haible  <bruno@clisp.org>
8245
8246         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8247         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8248         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8249         * modules/getpass-gnu (configure.ac): ... to here.
8250
8251 2011-05-08  Bruno Haible  <bruno@clisp.org>
8252
8253         getpass: Move AC_LIBOBJ invocations to module description.
8254         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8255         gl_PREREQ_GETPASS invocations from here...
8256         * modules/getpass (configure.ac): ... to here.
8257
8258 2011-05-08  Bruno Haible  <bruno@clisp.org>
8259
8260         getpagesize: Move AC_LIBOBJ invocations to module description.
8261         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8262         from here...
8263         * modules/getpagesize (configure.ac): ... to here.
8264
8265 2011-05-08  Bruno Haible  <bruno@clisp.org>
8266
8267         getopt: Move AC_LIBOBJ invocations to module description.
8268         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8269         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8270         invocations from here...
8271         * modules/getopt-gnu (configure.ac): ... to here.
8272         * modules/getopt-posix (configure.ac): ... and here.
8273         (Depends-on): Update condition.
8274
8275 2011-05-08  Bruno Haible  <bruno@clisp.org>
8276
8277         getopt, argp: Respect rules for use of AC_LIBOBJ.
8278         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8279         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8280         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8281         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8282
8283 2011-05-08  Bruno Haible  <bruno@clisp.org>
8284
8285         getlogin_r: Move AC_LIBOBJ invocations to module description.
8286         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8287         gl_PREREQ_GETLOGIN_R invocations from here...
8288         * modules/getlogin_r (configure.ac): ... to here.
8289
8290 2011-05-08  Bruno Haible  <bruno@clisp.org>
8291
8292         getlogin: Move AC_LIBOBJ invocations to module description.
8293         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8294         here...
8295         * modules/getlogin (configure.ac): ... to here.
8296
8297 2011-05-08  Bruno Haible  <bruno@clisp.org>
8298
8299         getloadavg: Move AC_LIBOBJ invocations to module description.
8300         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8301         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8302         * modules/getloadavg (configure.ac): ... to here.
8303
8304 2011-05-08  Bruno Haible  <bruno@clisp.org>
8305
8306         gethrxtime: Move AC_LIBOBJ invocations to module description.
8307         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8308         LIB_GETHRXTIME from here...
8309         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8310         invocations from here...
8311         * modules/gethrxtime (configure.ac): ... to here.
8312
8313 2011-05-08  Bruno Haible  <bruno@clisp.org>
8314
8315         gethostname: Move AC_LIBOBJ invocations to module description.
8316         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8317         gl_PREREQ_GETHOSTNAME invocations from here...
8318         * modules/gethostname (configure.ac): ... to here.
8319
8320 2011-05-08  Bruno Haible  <bruno@clisp.org>
8321
8322         getgroups: Move AC_LIBOBJ invocations to module description.
8323         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8324         here...
8325         * modules/getgroups (configure.ac): ... to here.
8326
8327 2011-05-08  Bruno Haible  <bruno@clisp.org>
8328
8329         getdtablesize: Move AC_LIBOBJ invocations to module description.
8330         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8331         invocation from here...
8332         * modules/getdtablesize (configure.ac): ... to here.
8333
8334 2011-05-08  Bruno Haible  <bruno@clisp.org>
8335
8336         getdomainname: Move AC_LIBOBJ invocations to module description.
8337         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8338         gl_PREREQ_GETDOMAINNAME invocations from here...
8339         * modules/getdomainname (configure.ac): ... to here.
8340
8341 2011-05-08  Bruno Haible  <bruno@clisp.org>
8342
8343         getline: Move AC_LIBOBJ invocations to module description.
8344         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8345         invocations from here...
8346         * modules/getline (configure.ac): ... to here.
8347
8348 2011-05-08  Bruno Haible  <bruno@clisp.org>
8349
8350         getline: Simplify.
8351         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8352         It's already handled through the module dependency.
8353
8354 2011-05-08  Bruno Haible  <bruno@clisp.org>
8355
8356         getdelim: Move AC_LIBOBJ invocations to module description.
8357         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
8358         and gl_PREREQ_GETDELIM invocations from here...
8359         * modules/getdelim (configure.ac): ... to here.
8360         (Depends-on): Fix condition.
8361
8362 2011-05-08  Bruno Haible  <bruno@clisp.org>
8363
8364         getcwd: Move AC_LIBOBJ invocations to module description.
8365         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
8366         invocations from here...
8367         * modules/getcwd (configure.ac): ... to here.
8368
8369 2011-05-08  Bruno Haible  <bruno@clisp.org>
8370
8371         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
8372         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
8373         here...
8374         * modules/getcwd-lgpl (configure.ac): ... to here.
8375
8376 2011-05-07  Bruno Haible  <bruno@clisp.org>
8377
8378         crypto/gc: Move AC_LIBOBJ invocations to module description.
8379         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
8380         * modules/crypto/gc (configure.ac): ... to here.
8381
8382 2011-05-07  Bruno Haible  <bruno@clisp.org>
8383
8384         fwriting: Move AC_LIBOBJ invocations to module description.
8385         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
8386         here...
8387         * modules/fwriting (configure.ac): ... to here.
8388
8389 2011-05-07  Bruno Haible  <bruno@clisp.org>
8390
8391         fwritable: Move AC_LIBOBJ invocations to module description.
8392         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
8393         here...
8394         * modules/fwritable (configure.ac): ... to here.
8395
8396 2011-05-07  Bruno Haible  <bruno@clisp.org>
8397
8398         futimens: Move AC_LIBOBJ invocations to module description.
8399         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
8400         here...
8401         * modules/futimens (configure.ac): ... to here.
8402
8403 2011-05-07  Bruno Haible  <bruno@clisp.org>
8404
8405         ftruncate: Move AC_LIBOBJ invocations to module description.
8406         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
8407         gl_PREREQ_FTRUNCATE invocations from here...
8408         * modules/ftruncate (configure.ac): ... to here.
8409
8410 2011-05-07  Bruno Haible  <bruno@clisp.org>
8411
8412         fsync: Move AC_LIBOBJ invocations to module description.
8413         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
8414         invocations from here...
8415         * modules/fsync (configure.ac): ... to here.
8416
8417 2011-05-07  Bruno Haible  <bruno@clisp.org>
8418
8419         fsusage: Move AC_LIBOBJ invocations to module description.
8420         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
8421         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
8422         * modules/fsusage (configure.ac): ... to here.
8423
8424 2011-05-07  Bruno Haible  <bruno@clisp.org>
8425
8426         freopen: Move AC_LIBOBJ invocations to module description.
8427         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
8428         invocations from here...
8429         * modules/freopen (configure.ac): ... to here.
8430
8431 2011-05-07  Bruno Haible  <bruno@clisp.org>
8432
8433         free: Move AC_LIBOBJ invocations to module description.
8434         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
8435         invocations from here...
8436         * modules/free (configure.ac): ... to here.
8437
8438 2011-05-07  Bruno Haible  <bruno@clisp.org>
8439
8440         freadable: Move AC_LIBOBJ invocations to module description.
8441         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
8442         here...
8443         * modules/freadable (configure.ac): ... to here.
8444
8445 2011-05-07  Bruno Haible  <bruno@clisp.org>
8446
8447         fpurge: Move AC_LIBOBJ invocations to module description.
8448         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
8449         invocations from here...
8450         * modules/fpurge (configure.ac): ... to here.
8451
8452 2011-05-07  Bruno Haible  <bruno@clisp.org>
8453
8454         fpending: Move AC_LIBOBJ invocations to module description.
8455         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8456         gl_FUNC_FPENDING.
8457         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8458         invocations from here...
8459         * modules/fpending (configure.ac): ... to here.
8460
8461 2011-05-07  Bruno Haible  <bruno@clisp.org>
8462
8463         fopen: Move AC_LIBOBJ invocations to module description.
8464         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8465         invocations from here...
8466         * modules/fopen (configure.ac): ... to here.
8467
8468 2011-05-07  Bruno Haible  <bruno@clisp.org>
8469
8470         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8471         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8472         gl_FUNC_FNMATCH_POSIX.
8473         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8474         invocations from here...
8475         * modules/fnmatch (configure.ac): ... to here.
8476         * modules/fnmatch-gnu (configure.ac): ... and here.
8477
8478 2011-05-07  Bruno Haible  <bruno@clisp.org>
8479
8480         flock: Move AC_LIBOBJ invocations to module description.
8481         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8482         invocations from here...
8483         * modules/flock (configure.ac): ... to here.
8484
8485 2011-05-07  Bruno Haible  <bruno@clisp.org>
8486
8487         fileblocks: Move AC_LIBOBJ invocations to module description.
8488         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
8489         gl_PREREQ_FILEBLOCKS invocations from here...
8490         * modules/fileblocks (configure.ac): ... to here.
8491
8492 2011-05-06  Bruno Haible  <bruno@clisp.org>
8493
8494         fflush: Move AC_LIBOBJ invocations to module description.
8495         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
8496         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
8497         invocations from here...
8498         * modules/fflush (configure.ac): ... to here.
8499
8500 2011-05-06  Bruno Haible  <bruno@clisp.org>
8501
8502         fdopendir: Move AC_LIBOBJ invocations to module description.
8503         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
8504         here...
8505         * modules/fdopendir (configure.ac): ... to here.
8506         (Depends-on): Improve conditions.
8507
8508 2011-05-06  Bruno Haible  <bruno@clisp.org>
8509
8510         _Exit: Move AC_LIBOBJ invocations to module description.
8511         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
8512         invocations from here...
8513         * modules/_Exit (configure.ac): ... to here.
8514
8515 2011-05-21  Bruno Haible  <bruno@clisp.org>
8516
8517         euidaccess: Respect rules for use of AC_LIBOBJ.
8518         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8519         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
8520         from here...
8521         * modules/euidaccess (configure.ac): ... to here.
8522
8523 2011-05-06  Bruno Haible  <bruno@clisp.org>
8524
8525         error: Move AC_LIBOBJ invocations to module description.
8526         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
8527         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
8528         invocations from here...
8529         * modules/error (configure.ac): ... to here.
8530
8531 2011-05-06  Bruno Haible  <bruno@clisp.org>
8532
8533         duplocale: Move AC_LIBOBJ invocations to module description.
8534         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
8535         gl_PREREQ_DUPLOCALE invocations from here...
8536         * modules/duplocale (configure.ac): ... to here.
8537
8538 2011-05-05  Bruno Haible  <bruno@clisp.org>
8539
8540         dirfd: Move AC_LIBOBJ invocations to module description.
8541         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
8542         gl_FUNC_DIRFD.
8543         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
8544         here...
8545         * modules/dirfd (configure.ac): ... to here.
8546         (Depends-on): Fix condition.
8547
8548 2011-05-05  Bruno Haible  <bruno@clisp.org>
8549
8550         chown: Respect rules for use of AC_LIBOBJ.
8551         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
8552         * modules/chown (configure.ac): ... to here.
8553
8554 2011-05-05  Bruno Haible  <bruno@clisp.org>
8555
8556         chdir-long: Move AC_LIBOBJ invocations to module description.
8557         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
8558         gl_PREREQ_CHDIR_LONG invocations from here...
8559         * modules/chdir-long (configure.ac): ... to here.
8560
8561 2011-05-05  Bruno Haible  <bruno@clisp.org>
8562
8563         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
8564         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
8565         from here...
8566         * modules/canonicalize-lgpl (configure.ac): ... to here.
8567
8568 2011-05-05  Bruno Haible  <bruno@clisp.org>
8569
8570         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
8571         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
8572         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
8573         REPLACE_CALLOC.
8574         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
8575         * modules/calloc-gnu (configure.ac): Likewise.
8576
8577 2011-05-05  Bruno Haible  <bruno@clisp.org>
8578
8579         btowc: Move AC_LIBOBJ invocations to module description.
8580         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
8581         invocations from here...
8582         * modules/btowc (configure.ac): ... to here.
8583
8584 2011-05-21  Bruno Haible  <bruno@clisp.org>
8585
8586         atexit: Move AC_LIBOBJ invocations to module description.
8587         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
8588         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
8589         here...
8590         * modules/atexit (configure.ac): ... to here.
8591
8592 2011-05-05  Bruno Haible  <bruno@clisp.org>
8593
8594         atoll: Move AC_LIBOBJ invocations to module description.
8595         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
8596         invocations from here...
8597         * modules/atoll (configure.ac): ... to here.
8598
8599 2011-05-05  Bruno Haible  <bruno@clisp.org>
8600
8601         argz: Move AC_LIBOBJ invocations to module description.
8602         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
8603         * modules/argz (configure.ac): ... to here.
8604
8605 2011-05-05  Bruno Haible  <bruno@clisp.org>
8606
8607         alphasort: Move AC_LIBOBJ invocations to module description.
8608         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
8609         gl_PREREQ_ALPHASORT invocations from here...
8610         * modules/alphasort (configure.ac): ... to here.
8611
8612 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8613
8614         verify: new macro verify_expr; verify_true deprecated
8615         * NEWS: Mention this.
8616         * doc/verify.texi (Compile-time Assertions): Document this.
8617         * lib/verify.h (verify_true): Deprecate.
8618         (verify_expr): New macro.
8619         * tests/test-verify.c (function): Test verify_expr.
8620
8621 2011-06-14  Jim Meyering  <meyering@redhat.com>
8622
8623         init.sh: give more portable redirection-related advice in a comment
8624         * tests/init.sh (stderr_fileno_): Update the advice in comments.
8625         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
8626         for lots of discussion.  Stefano Lattarini suggested the solution
8627         of putting "9>&2" after the command.  Reported by Bruno Haible.
8628
8629 2011-06-13  Bruno Haible  <bruno@clisp.org>
8630
8631         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
8632         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
8633         'none'.
8634
8635 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8636
8637         ftoastr: use strtof only if HAVE_STRTOF
8638         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
8639         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
8640         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
8641         * modules/ftoastr (configure.ac): Check for strtof.
8642
8643 2011-06-13  Bruno Haible  <bruno@clisp.org>
8644
8645         gnulib-tool: Addendum to 2011-06-08 commit.
8646         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
8647         and --witness-c-macro have been given, augment AM_CPPFLAGS.
8648
8649 2011-06-13  Bruno Haible  <bruno@clisp.org>
8650
8651         fseeko: Provide a non-inline replacement of fseek().
8652         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
8653         * modules/fseeko (Depends-on): Add fseek.
8654         * modules/fseek (License): Change to LGPLv2+.
8655
8656 2011-06-13  Bruno Haible  <bruno@clisp.org>
8657
8658         ftello: Provide a non-inline replacement of ftell().
8659         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
8660         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
8661         not have ftello() (such as on mingw).
8662         * modules/ftello (Depends-on): Add ftell.
8663         * modules/ftell (License): Change to LGPLv2+.
8664
8665 2011-05-07  Bruno Haible  <bruno@clisp.org>
8666
8667         ftell: Move AC_LIBOBJ invocations to module description.
8668         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
8669         * modules/ftell (configure.ac): ... to here.
8670
8671 2011-05-07  Bruno Haible  <bruno@clisp.org>
8672
8673         ftello: Respect rules for use of AC_LIBOBJ.
8674         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
8675         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
8676         here...
8677         * modules/ftello (configure.ac): ... to here.
8678
8679 2011-05-07  Bruno Haible  <bruno@clisp.org>
8680
8681         fseeko: Simplify.
8682         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
8683         (gl_FUNC_FSEEKO): Inline it here.
8684
8685 2011-05-07  Bruno Haible  <bruno@clisp.org>
8686
8687         fseek: Move AC_LIBOBJ invocations to module description.
8688         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
8689         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8690         * modules/fseek (configure.ac): ... to here.
8691
8692 2011-05-07  Bruno Haible  <bruno@clisp.org>
8693
8694         fseek: Respect rules for use of AC_LIBOBJ.
8695         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
8696         here...
8697         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
8698
8699 2011-05-07  Bruno Haible  <bruno@clisp.org>
8700
8701         fseeko: Respect rules for use of AC_LIBOBJ.
8702         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
8703         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
8704         here...
8705         * modules/fseeko (configure.ac): ... to here.
8706
8707 2011-06-13  Bruno Haible  <bruno@clisp.org>
8708
8709         gnulib-tool: Allow comments in the 'Depends-on' section.
8710         * doc/gnulib.texi (Module description): Mention comment syntax in the
8711         Depends-on section.
8712         * gnulib-tool (func_get_dependencies): Filter out comment lines.
8713
8714 2011-06-13  Bruno Haible  <bruno@clisp.org>
8715
8716         file-set.h: guard __attibute__ use, now that it's not always defined
8717         * lib/file-set.h (record_file): Use __attribute__ only with compiler
8718         versions that support it.  This fixes a coreutils build failure with
8719         the vendor cc on HP-UX 11.31.
8720
8721 2011-06-12  Bruno Haible  <bruno@clisp.org>
8722
8723         acl: Add support for HP-UX >= 11.11 JFS ACLs.
8724         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
8725         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
8726         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
8727         (acl, aclsort): New declarations.
8728         (aclv_nontrivial): New declaration.
8729         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
8730         (file_has_acl): Read also the second kind of HP-UX ACLs.
8731         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
8732         kind of HP-UX ACLs if the first kind fails.
8733         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
8734         second kind of HP-UX ACLs.
8735         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
8736         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
8737         agree.
8738         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8739         hpuxjfs.
8740         Handle hpuxjfs.
8741         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8742         hpuxjfs.
8743         Handle hpuxjfs.
8744         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8745         (func_test_same_acls): Use both lsacl and getacl.
8746         Handle hpuxjfs.
8747         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8748         (func_test_same_acls): Use both lsacl and getacl.
8749         Handle hpuxjfs.
8750
8751 2011-06-12  Bruno Haible  <bruno@clisp.org>
8752
8753         acl: Complete the 2010-08-10 fix.
8754         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
8755         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
8756         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
8757         explicitly.
8758         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
8759         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
8760
8761 2011-06-12  Bruno Haible  <bruno@clisp.org>
8762
8763         spawn-pipe tests: Comments.
8764         * tests/test-spawn-pipe-child.c (main): Update comment.
8765         Reported by James Youngman <jay@gnu.org>.
8766
8767 2011-06-11  James Youngman  <jay@gnu.org>
8768
8769         New module 'stat-size'.
8770         * modules/stat-size: New module.  Provides macros for accessing
8771         file size information in instances of struct stat.  Depends on the
8772         fileblocks module because it calls st_blocks.
8773         * lib/stat-size.h: New file, adapted from coreutils' system.h.
8774         * doc/gnulib.texi: Include stat-size.texi.
8775         * doc/stat-size.texi: Documentation for this module.
8776         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
8777         * m4/fileblocks.m4: Mention that stat-size depends on the call to
8778         AC_STRUCT_ST_BLOCKS.
8779
8780 2011-06-09  Bruno Haible  <bruno@clisp.org>
8781
8782         thread: Support pthreads-win32.
8783         * lib/glthread/thread.h (gl_thread_self): Define differently on
8784         pthreads-win32.
8785         (gl_null_thread): New declaration.
8786         (gl_thread_self_pointer): New macro.
8787         * lib/glthread/thread.c (gl_null_thread): New constant.
8788         * tests/test-lock.c: Use gl_thread_self_pointer instead of
8789         gl_thread_self.
8790         * tests/test-tls.c: Likewise.
8791         Suggested by Paul Eggert. Reported by Eric Blake.
8792
8793 2011-06-09  Bruno Haible  <bruno@clisp.org>
8794
8795         thread: Fix confusion between NULL and 0.
8796         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
8797         Reported by Paul Eggert.
8798
8799 2011-06-09  Bruno Haible  <bruno@clisp.org>
8800
8801         spawn-pipe tests: Avoid test failure on HP-UX 11.
8802         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
8803         is closed.
8804
8805 2011-06-09  Bruno Haible  <bruno@clisp.org>
8806
8807         acl tests: Fix compilation error on HP-UX 11.
8808         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
8809
8810 2011-06-09  Bruno Haible  <bruno@clisp.org>
8811
8812         rmdir: Avoid test failure on HP-UX 10.20.
8813         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
8814         EEXIST.
8815
8816 2011-06-08  Eric Blake  <eblake@redhat.com>
8817
8818         perror: fix test on mingw
8819         * modules/perror-tests (Depends-on): Add dup2.
8820
8821         strerror_r-posix: fix on MacOS
8822         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
8823         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
8824         logic bug.
8825         * lib/strerror_r.c (strerror_r): Fix the bug.
8826         * lib/strerror.c (strerror): Likewise.
8827         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8828         problem.
8829         * doc/posix-functions/strerror.texi (strerror): Likewise.
8830         * doc/posix-functions/perror.texi (perror): Likewise.
8831         * tests/test-strerror.c (main): Enhance test.
8832         * tests/test-strerror_r.c (main): Likewise.
8833
8834 2011-06-08  Bruno Haible  <bruno@clisp.org>
8835
8836         gnulib-tool: Better isolation between different gnulib-tool invocations.
8837         * gnulib-tool: New option --witness-c-macro.
8838         (witness_c_macro): New variable.
8839         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
8840         AM_CPPFLAGS define it as a C macro.
8841         (func_emit_tests_Makefile_am): Likewise.
8842         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
8843         read it from there.
8844         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
8845         m4_define, not AC_DEFUN.
8846         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
8847         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
8848         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
8849         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
8850         s|...|...|, to substitute the values of the GNULIB_* module indicator
8851         variables.
8852         * modules/dirent (Makefile.am): Likewise.
8853         * modules/fcntl-h (Makefile.am): Likewise.
8854         * modules/iconv-h (Makefile.am): Likewise.
8855         * modules/langinfo (Makefile.am): Likewise.
8856         * modules/locale (Makefile.am): Likewise.
8857         * modules/math (Makefile.am): Likewise.
8858         * modules/netdb (Makefile.am): Likewise.
8859         * modules/poll-h (Makefile.am): Likewise.
8860         * modules/pty (Makefile.am): Likewise.
8861         * modules/search (Makefile.am): Likewise.
8862         * modules/signal (Makefile.am): Likewise.
8863         * modules/spawn (Makefile.am): Likewise.
8864         * modules/stdio (Makefile.am): Likewise.
8865         * modules/stdlib (Makefile.am): Likewise.
8866         * modules/string (Makefile.am): Likewise.
8867         * modules/sys_ioctl (Makefile.am): Likewise.
8868         * modules/sys_select (Makefile.am): Likewise.
8869         * modules/sys_socket (Makefile.am): Likewise.
8870         * modules/sys_stat (Makefile.am): Likewise.
8871         * modules/sys_times (Makefile.am): Likewise.
8872         * modules/sys_utsname (Makefile.am): Likewise.
8873         * modules/sys_wait (Makefile.am): Likewise.
8874         * modules/termios (Makefile.am): Likewise.
8875         * modules/time (Makefile.am): Likewise.
8876         * modules/unistd (Makefile.am): Likewise.
8877         * modules/wchar (Makefile.am): Likewise.
8878
8879 2011-06-08  Eric Blake  <eblake@redhat.com>
8880
8881         strerror: simplify replacement
8882         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
8883         * modules/strerror (configure.ac): No prereqs needed here...
8884         * modules/strerror-override (configure.ac): ...but this needs it.
8885         (Files): Add file for needed prereq macro.
8886
8887 2011-06-08  Bruno Haible  <bruno@clisp.org>
8888
8889         strerror_r-posix: Tweaks.
8890         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
8891         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
8892         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
8893         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
8894         (gl_FUNC_STRERROR_R): ... to here.
8895         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
8896
8897 2011-06-07  Eric Blake  <eblake@redhat.com>
8898
8899         perror: document fixed bugs
8900         * doc/posix-functions/perror.texi (perror): Document recent
8901         patches.
8902
8903 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8904
8905         stat-time: get_stat_birthtime failure is better-defined
8906         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
8907         return a timestamp whose tv_sec and tv_nsec values are both -1.
8908         Previously, the spec said only that the tv_nsec value was negative.
8909         This upward-compatible change simplifies GNU tar a bit.
8910
8911 2011-06-07  Eric Blake  <eblake@redhat.com>
8912
8913         strerror_r-posix: work around cygwin 1.7.9
8914         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
8915         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
8916         bug without replacing strerror_r.
8917         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
8918         strerror_r is buggy, but without requiring strerror_r compilation.
8919         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
8920
8921         test-perror: relax test to ignore cygwin bug
8922         * tests/test-perror2.c (main): Relax test on requiring detection
8923         of stream errors, and use unbuffered stream.
8924         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
8925         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
8926         * doc/posix-functions/fputc.texi (fputc): Likewise.
8927         * doc/posix-functions/fputs.texi (fputs): Likewise.
8928         * doc/posix-functions/fputws.texi (fputws): Likewise.
8929         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
8930         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
8931         * doc/posix-functions/getopt.texi (getopt): Likewise.
8932         * doc/posix-functions/perror.texi (perror): Likewise.
8933         * doc/posix-functions/printf.texi (printf): Likewise.
8934         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
8935         * doc/posix-functions/psignal.texi (psignal): Likewise.
8936         * doc/posix-functions/putc.texi (putc): Likewise.
8937         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
8938         Likewise.
8939         * doc/posix-functions/putchar.texi (putchar): Likewise.
8940         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
8941         Likewise.
8942         * doc/posix-functions/puts.texi (puts): Likewise.
8943         * doc/posix-functions/putwc.texi (putwc): Likewise.
8944         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8945         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8946         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8947         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8948         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8949         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8950         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8951         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8952
8953 2011-05-22  Bruno Haible  <bruno@clisp.org>
8954
8955         strerror: Move AC_LIBOBJ invocations to module description.
8956         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
8957         gl_PREREQ_STRERROR invocations from here...
8958         * modules/strerror (configure.ac): ... to here.
8959
8960 2011-05-21  Bruno Haible  <bruno@clisp.org>
8961
8962         perror: Use common idiom.
8963         * modules/perror (configure.ac): Reorder statements.
8964
8965 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8966
8967         tests: fix usage message in 'mktempd_'
8968         * tests/init.sh (mktempd_): In the usage message, use literal
8969         'mktempd_', not '$ME' (which is even undefined), as the name of
8970         the subroutine.
8971
8972 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8973
8974         tests init: new function 'fatal_', for hard errors
8975         Before this patch, the only way offered by tests/init.sh to
8976         properly signal a hard error was the `framework_failure_'
8977         function.  But the error message issued by that function,
8978         as its name would suggest, refers to a set-up failure in the
8979         testsuite, while hard errors can obviously also be due to
8980         other reasons.  The best way to fix this inconsistency is to
8981         introduce a new function with a more general error message.
8982         * tests/init.sh (fatal_): New function.
8983
8984 2011-06-06  Eric Blake  <eblake@redhat.com>
8985
8986         canonicalize-lgpl: use common idiom
8987         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
8988         over newer POSIX -Rf.
8989         Reported by Bruno Haible.
8990
8991         canonicalize-lgpl: work around AIX realpath bug
8992         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
8993         * doc/posix-functions/realpath.texi (realpath): Document it.
8994         Reported by Bruno Haible.
8995
8996         strerror: work around FreeBSD bug
8997         * lib/strerror.c (strerror): Special case 0.
8998         Reported by Bruno Haible.
8999
9000         strerror-override: avoid bloating errno module
9001         * modules/errno (Files, configure.ac): Move replacement strings...
9002         * modules/strerror-override: ...to new module.
9003         * modules/strerror (Depends-on): Add strerror-override.
9004         * modules/strerror_r-posix (Depends-on): Likewise.
9005         * MODULES.html.sh: Document new module.
9006         Reported by Bruno Haible.
9007
9008 2011-06-06  Bruno Haible  <bruno@clisp.org>
9009
9010         spawn-pipe tests: Rename program.
9011         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9012         * tests/test-spawn-pipe-child.c: Update comment.
9013         * tests/test-spawn-pipe.sh: Update.
9014         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9015
9016         spawn-pipe tests: Link the child program only against libc.
9017         * tests/test-spawn-pipe-child.c: New file, extracted from
9018         tests/test-spawn-pipe.c.
9019         (main): Expect only one argument.
9020         (is_open): New function, copied from tests/test-pipe.c.
9021         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9022         (child_main): Remove function.
9023         (test_pipe): Pass only one argument to the child program.
9024         (main): Remove child process code. Expect the child program's name as
9025         first argument.
9026         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9027         argument.
9028         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9029         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9030         test-spawn-pipe-child against no libraries.
9031
9032 2011-06-06  Bruno Haible  <bruno@clisp.org>
9033
9034         careadlinkat: Avoid mismatch between ssize_t and int.
9035         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9036         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9037
9038 2011-06-06  Jim Meyering  <meyering@redhat.com>
9039
9040         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9041         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9042         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9043
9044 2011-06-05  Bruno Haible  <bruno@clisp.org>
9045
9046         ansi-c++-opt: Interoperability with libtool.
9047         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9048         set the variable to "no", not to ":".
9049         * NEWS: Mention the change.
9050
9051 2011-06-05  Bruno Haible  <bruno@clisp.org>
9052
9053         acl: Fix test failure on AIX 7.
9054         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9055         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9056
9057 2011-06-05  Bruno Haible  <bruno@clisp.org>
9058
9059         pipe-filter-ii: Fix test failure on AIX and IRIX.
9060         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9061         with EAGAIN, retry with a smaller buffer size.
9062
9063 2011-06-05  Bruno Haible  <bruno@clisp.org>
9064
9065         localename: Fix link dependencies.
9066         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9067         * modules/localename-tests (Makefile.am): Link test-localename with
9068         $(LIBTHREAD).
9069
9070 2011-06-05  Bruno Haible  <bruno@clisp.org>
9071
9072         error: Avoid gcc warning.
9073         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9074
9075 2011-06-05  Bruno Haible  <bruno@clisp.org>
9076
9077         unsetenv: Avoid gcc warning.
9078         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9079
9080 2011-06-05  Bruno Haible  <bruno@clisp.org>
9081
9082         setenv: Avoid gcc warning.
9083         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9084
9085 2011-06-05  Bruno Haible  <bruno@clisp.org>
9086
9087         sys_select: Ensure memset is declared also on AIX 7.
9088         * lib/sys_select.in.h: Include <string.h> also on AIX.
9089         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9090         self-contained also on AIX 7.1.
9091
9092 2011-06-04  Jim Meyering  <meyering@redhat.com>
9093
9094         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9095         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9096         function name, "error".
9097         (_gl_translatable_diag_func_re): New configurable variable.
9098
9099 2011-06-04  Bruno Haible  <bruno@clisp.org>
9100
9101         getopt: Avoid gcc warning.
9102         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9103
9104 2011-06-04  Bruno Haible  <bruno@clisp.org>
9105
9106         strerror_r: Fix comments.
9107         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9108         commit.
9109
9110 2011-06-04  Bruno Haible  <bruno@clisp.org>
9111
9112         perror: Fix compilation error.
9113         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9114         Undefine fprintf, not sprintf.
9115         * modules/perror (Depends-on): Remove intprops, verify.
9116
9117 2011-06-04  Bruno Haible  <bruno@clisp.org>
9118
9119         setlocale: Enable replacement on Cygwin 1.5.
9120         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9121         Cygwin 1.5.x.
9122         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9123         LC_CTYPE category also exists on Cygwin 1.5.x.
9124
9125 2011-06-04  Bruno Haible  <bruno@clisp.org>
9126
9127         strerror-override: Don't disable symbol renamings.
9128         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9129         * lib/strerror-override.c: Include config.h.
9130         (strerror_override): Don't undefine.
9131
9132 2011-06-03  Bruno Haible  <bruno@clisp.org>
9133
9134         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9135         * lib/localename.h: Update copyright header.
9136         * lib/localename.c: Likewise.
9137         * lib/relocatable.h: Likewise.
9138         * lib/relocatable.c: Likewise.
9139
9140 2011-06-02  Bruno Haible  <bruno@clisp.org>
9141
9142         doc: Fix a module name.
9143         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9144
9145 2011-06-02  Bruno Haible  <bruno@clisp.org>
9146
9147         pipe2: Remove dependency on 'nonblocking' module.
9148         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9149         O_NONBLOCK is defined by gnulib.
9150         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9151         is zero.
9152         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9153         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9154         defined by gnulib.
9155         (get_nonblocking_flag): New function.
9156         (main): Test O_NONBLOCK flag only if it is nonzero.
9157         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9158
9159 2011-06-03  Jim Meyering  <meyering@redhat.com>
9160
9161         maint: three new prohibit-header-without-use rules
9162         Prohibit use of cloexec.h, posixver.h, same.h without use.
9163         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9164         (sc_prohibit_posixver_without_use): Likewise.
9165         (sc_prohibit_same_without_use): Likewise.
9166
9167 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9168
9169         allocator: 'die' routine is now given requested size
9170         * lib/allocator.h (struct allocator.die): New size arg.
9171         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9172         If the actual problem is an ssize_t limitation, not a size_t or
9173         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9174
9175 2011-06-01  Eric Blake  <eblake@redhat.com>
9176
9177         strerror: drop strerror_r dependency
9178         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9179         * lib/strerror-override.c (strerror_override): ...to new file.
9180         * lib/strerror-override.h: Add prototype.
9181         * lib/strerror-impl.h: Delete.
9182         * lib/strerror.c (strerror): New implementation.
9183         * modules/errno (Files): Add new files.
9184         (configure.ac): Compile new file as appropriate.
9185         * modules/strerror (Files): Drop unused file.
9186         (Depends-on): Drop strerror_r-posix.
9187         * MODULES.html.sh: Document strerror_r-posix.
9188         Requested by Sam Steingold.
9189
9190         perror: call strerror_r directly
9191         * modules/perror (Files): Drop strerror-impl.h.
9192         * lib/perror.c (perror): Use our own stack buffer, rather than
9193         calling a wrapper that uses static storage.
9194         * doc/posix-functions/perror.texi (perror): Document a limitation
9195         of our replacement.
9196
9197         strerror_r: fix includes for FreeBSD
9198         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9199         since we use abort on some platforms.
9200         Reported by Matthias Bolte.
9201
9202 2011-05-31  Bruno Haible  <bruno@clisp.org>
9203
9204         Fix link errors in tests: openat-die uses gettext-h.
9205         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9206         against $(LIBINTL).
9207         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9208         against $(LIBINTL).
9209         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9210         $(LIBINTL).
9211         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9212         against $(LIBINTL).
9213         * modules/linkat-tests (Makefile.am): Link test-linkat against
9214         $(LIBINTL).
9215         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9216         $(LIBINTL).
9217         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9218         against $(LIBINTL).
9219         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9220         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9221         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9222         $(LIBINTL).
9223         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9224         $(LIBINTL).
9225         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9226         $(LIBINTL).
9227         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9228
9229 2011-05-31  Bruno Haible  <bruno@clisp.org>
9230
9231         Fix link errors in tests: wait-process uses gettext-h.
9232         * modules/nonblocking-pipe-tests (Makefile.am): Set
9233         test_nonblocking_pipe_main_LDADD.
9234         * modules/nonblocking-socket-tests (Makefile.am): Link
9235         test-nonblocking-socket-main against $(LIBINTL).
9236         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9237
9238 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9239
9240         assert-h: work around 'verify' incompatibility
9241         * lib/verify.h: Use @...@ directives, not ifdef.
9242         * modules/assert-h (assert.h): Implement the directives.
9243         (assert.h): Substitute the symbol-prefix more consistently.
9244
9245 2011-05-29  Jim Meyering  <meyering@redhat.com>
9246
9247         trim: remove three superfluous assignments
9248         * lib/trim.c (trim2): Remove three superfluous assignments
9249         and correct brace positioning.
9250
9251 2011-05-29  Bruno Haible  <bruno@clisp.org>
9252
9253         wctype-h: Avoid namespace pollution on Solaris 2.6.
9254         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9255         identifiers.
9256         * doc/posix-headers/wctype.texi: Mention the problem.
9257         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9258
9259 2011-05-28  Jim Meyering  <meyering@redhat.com>
9260
9261         parse-datetime.y: accommodate -Wstrict-overflow
9262         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9263         placate -Wstrict-overflow.
9264
9265         trim: avoid a warning from -O2 -Wstrict-overflow
9266         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9267
9268 2011-05-29  Bruno Haible  <bruno@clisp.org>
9269
9270         gnulib-tool: Fix bug in yesterday's commit.
9271         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9272         twice.
9273
9274 2011-05-29  Bruno Haible  <bruno@clisp.org>
9275
9276         Allow multiple gnulib generated include files to be combined.
9277         * gnulib-tool (func_compute_include_guard_prefix): New function.
9278         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9279         ${gl_include_guard_prefix} references.
9280         (func_import, func_create_testdir): Invoke
9281         func_compute_include_guard_prefix.
9282         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9283         * lib/ctype.in.h: Likewise.
9284         * lib/dirent.in.h: Likewise.
9285         * lib/errno.in.h: Likewise.
9286         * lib/fcntl.in.h: Likewise.
9287         * lib/float.in.h: Likewise.
9288         * lib/getopt.in.h: Likewise.
9289         * lib/iconv.in.h: Likewise.
9290         * lib/langinfo.in.h: Likewise.
9291         * lib/locale.in.h: Likewise.
9292         * lib/math.in.h: Likewise.
9293         * lib/netdb.in.h: Likewise.
9294         * lib/netinet_in.in.h: Likewise.
9295         * lib/poll.in.h: Likewise.
9296         * lib/pthread.in.h: Likewise.
9297         * lib/pty.in.h: Likewise.
9298         * lib/sched.in.h: Likewise.
9299         * lib/se-selinux.in.h: Likewise.
9300         * lib/search.in.h: Likewise.
9301         * lib/signal.in.h: Likewise.
9302         * lib/spawn.in.h: Likewise.
9303         * lib/stdarg.in.h: Likewise.
9304         * lib/stddef.in.h: Likewise.
9305         * lib/stdint.in.h: Likewise.
9306         * lib/stdio.in.h: Likewise.
9307         * lib/stdlib.in.h: Likewise.
9308         * lib/string.in.h: Likewise.
9309         * lib/strings.in.h: Likewise.
9310         * lib/sys_file.in.h: Likewise.
9311         * lib/sys_ioctl.in.h: Likewise.
9312         * lib/sys_select.in.h: Likewise.
9313         * lib/sys_socket.in.h: Likewise.
9314         * lib/sys_stat.in.h: Likewise.
9315         * lib/sys_time.in.h: Likewise.
9316         * lib/sys_times.in.h: Likewise.
9317         * lib/sys_uio.in.h: Likewise.
9318         * lib/sys_utsname.in.h: Likewise.
9319         * lib/sys_wait.in.h: Likewise.
9320         * lib/sysexits.in.h: Likewise.
9321         * lib/termios.in.h: Likewise.
9322         * lib/time.in.h: Likewise.
9323         * lib/unistd.in.h: Likewise.
9324         * lib/wchar.in.h: Likewise.
9325         * lib/wctype.in.h: Likewise.
9326         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9327         * modules/ctype (Makefile.am): Likewise.
9328         * modules/dirent (Makefile.am): Likewise.
9329         * modules/errno (Makefile.am): Likewise.
9330         * modules/fcntl-h (Makefile.am): Likewise.
9331         * modules/float (Makefile.am): Likewise.
9332         * modules/getopt-posix (Makefile.am): Likewise.
9333         * modules/iconv-h (Makefile.am): Likewise.
9334         * modules/langinfo (Makefile.am): Likewise.
9335         * modules/locale (Makefile.am): Likewise.
9336         * modules/math (Makefile.am): Likewise.
9337         * modules/netdb (Makefile.am): Likewise.
9338         * modules/netinet_in (Makefile.am): Likewise.
9339         * modules/poll-h (Makefile.am): Likewise.
9340         * modules/pthread (Makefile.am): Likewise.
9341         * modules/pty (Makefile.am): Likewise.
9342         * modules/sched (Makefile.am): Likewise.
9343         * modules/search (Makefile.am): Likewise.
9344         * modules/selinux-h (Makefile.am): Likewise.
9345         * modules/signal (Makefile.am): Likewise.
9346         * modules/spawn (Makefile.am): Likewise.
9347         * modules/stdarg (Makefile.am): Likewise.
9348         * modules/stddef (Makefile.am): Likewise.
9349         * modules/stdint (Makefile.am): Likewise.
9350         * modules/stdio (Makefile.am): Likewise.
9351         * modules/stdlib (Makefile.am): Likewise.
9352         * modules/string (Makefile.am): Likewise.
9353         * modules/strings (Makefile.am): Likewise.
9354         * modules/sys_file (Makefile.am): Likewise.
9355         * modules/sys_ioctl (Makefile.am): Likewise.
9356         * modules/sys_select (Makefile.am): Likewise.
9357         * modules/sys_socket (Makefile.am): Likewise.
9358         * modules/sys_stat (Makefile.am): Likewise.
9359         * modules/sys_time (Makefile.am): Likewise.
9360         * modules/sys_times (Makefile.am): Likewise.
9361         * modules/sys_uio (Makefile.am): Likewise.
9362         * modules/sys_utsname (Makefile.am): Likewise.
9363         * modules/sys_wait (Makefile.am): Likewise.
9364         * modules/sysexits (Makefile.am): Likewise.
9365         * modules/termios (Makefile.am): Likewise.
9366         * modules/time (Makefile.am): Likewise.
9367         * modules/unistd (Makefile.am): Likewise.
9368         * modules/wchar (Makefile.am): Likewise.
9369         * modules/wctype-h (Makefile.am): Likewise.
9370         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
9371
9372 2011-05-29  Bruno Haible  <bruno@clisp.org>
9373
9374         assert-h: Allow multiple gnulib generated replacements to coexist.
9375         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
9376
9377 2011-05-29  Bruno Haible  <bruno@clisp.org>
9378
9379         argp: Allow coexistence with strerror_r-posix module.
9380         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
9381         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
9382         by gnulib's <string.h> replacement), assume it has the POSIX signature,
9383         not the glibc signature.
9384
9385 2011-05-28  Bruno Haible  <bruno@clisp.org>
9386
9387         gnulib-tool: Alternative structure of testdirs, similar to --import.
9388         * gnulib-tool: New option --single-configure.
9389         (func_usage): Document it.
9390         (single_configure): New variable.
9391         (func_modules_transitive_closure_separately,
9392         func_modules_transitive_closure_separately,
9393         func_determine_use_libtests, func_modules_add_dummy_separately,
9394         func_modules_to_filelist_separately): New functions, extracted from
9395         func_import.
9396         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
9397         (func_import): Use the new functions.
9398         (func_create_testdir): Set final_modules. Handle $single_configure =
9399         true case.
9400
9401 2011-05-28  Bruno Haible  <bruno@clisp.org>
9402
9403         getloadavg: Remove an unreliable safety check.
9404         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
9405         getloadavg.c is in place.
9406         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
9407         Reported by Sam Steingold <sds@gnu.org>.
9408
9409 2011-05-28  Bruno Haible  <bruno@clisp.org>
9410
9411         doc: Cleanup yet another file produced by texinfo.tex.
9412         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
9413
9414 2011-05-28  Bruno Haible  <bruno@clisp.org>
9415
9416         Finish the conditional dependencies mechanism.
9417         * gnulib-tool: New option --no-conditional-dependencies.
9418         (func_usage): Document it. Don't mark --conditional-dependencies as
9419         experimental.
9420         (cond_dependencies): The possible values can now be true, false, empty.
9421         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
9422         (func_import): Store setting in gnulib-cache.m4 and read it from there.
9423         * doc/gnulib-tool.texi (Conditional dependencies): New section.
9424
9425 2011-05-28  Bruno Haible  <bruno@clisp.org>
9426
9427         doc: Use a recent texinfo.tex.
9428         * doc/Makefile (tex_opts): New variable.
9429         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
9430
9431 2011-05-28  Jim Meyering  <meyering@redhat.com>
9432
9433         intprops.h: adjust comment to match code change
9434         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
9435         only once, it *may* have side effects.  Also fix an unrelated typo.
9436         (_GL_INT_SIGNED): Likewise.
9437
9438 2011-05-26  Simon Josefsson  <simon@josefsson.org>
9439
9440         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
9441
9442 2011-05-26  Bruno Haible  <bruno@clisp.org>
9443
9444         mbsrchr: Avoid collision with system function on Interix.
9445         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
9446         Reported by Markus Duft <mduft@gentoo.org>.
9447
9448 2011-05-15  James Youngman  <jay@gnu.org>
9449
9450         getopt: for ambiguous options, enumerate the possibilities.
9451         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
9452         the ambiguous options when an ambiguous prefix is given. This was
9453         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9454         glibc change was
9455         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9456
9457 2011-05-25  Eric Blake  <eblake@redhat.com>
9458
9459         getcwd: work around mingw bug
9460         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9461         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9462         Reported by Matthias Bolte.
9463
9464 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9465
9466         test-intprops: disable -Wtype-limits diagnostics
9467         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9468         diagnostics.  Otherwise, the integer overflow macros generate many
9469         diagnostics.  Reported by Jim Meyering in
9470         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9471
9472         intprops: shorten, to pacify gcc -Woverlength-strings
9473         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9474         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9475         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9476         likely to run afoul of C compiler limits for string constant lengths.
9477         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9478
9479 2011-05-24  Eric Blake  <eblake@redhat.com>
9480
9481         docs: document recently fixed glibc printf bug
9482         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9483         * doc/posix-functions/printf.texi (printf): Likewise.
9484         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9485         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9486
9487         closein-tests: convert to init.sh
9488         * modules/closein-tests (Files): Add init.sh
9489         * tests/test-closein.sh Use it.
9490
9491         yesno-tests: convert to init.sh
9492         * modules/yesno-tests (Files): Add init.sh.
9493         * tests/test-yesno.sh: Use it.
9494
9495         atexit-tests: ensure reliable exit status
9496         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
9497         Reported by Bruno Haible.
9498
9499 2011-05-24  Bruno Haible  <bruno@clisp.org>
9500
9501         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
9502         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
9503         gl_PREREQ_STRERROR_R invocations from here...
9504         * modules/strerror_r-posix (configure.ac): ... to here.
9505
9506 2011-05-24  Eric Blake  <eblake@redhat.com>
9507
9508         strerror_r: fix missing header
9509         * lib/strerror_r.c: Avoid compiler warning about snprintf.
9510
9511         strerror_r: fix AIX test failures
9512         * lib/strerror_r.c (strerror_r): Convert silent truncation to
9513         ERANGE failure.
9514
9515         strerror_r: fix Solaris test failures
9516         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
9517         failures.
9518         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9519
9520         strerror_r: enforce POSIX recommendations
9521         * lib/strerror_r.c (safe_copy): New helper method.
9522         (strerror_r): Guarantee a non-empty string.
9523         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9524         recent POSIX rulings and to match our strerror guarantees.
9525         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9526
9527 2011-05-24  Jim Meyering  <meyering@redhat.com>
9528
9529         test-perror2.c: avoid warning about unused variable
9530         * tests/test-perror2.c (main): Remove declaration of unused "fp".
9531
9532 2011-05-24  Eric Blake  <eblake@redhat.com>
9533
9534         perror: avoid spurious test failure on HP-UX
9535         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
9536
9537         tests: fix logic bug in init.sh
9538         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
9539         shell.
9540
9541 2011-05-24  Jim Meyering  <meyering@redhat.com>
9542
9543         utimensat: do not reference an out-of-scope buffer
9544         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
9545         declared in an inner scope, yet "times" would be dereferenced outside
9546         the scope in which "ts" was valid.
9547         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
9548         of ts[2] "out/up", so that the use of aliased "times" (via
9549         "times = ts;") does not end up referencing an out-of-scope "ts"
9550
9551         opendir-safer.c: don't clobber errno; don't close negative FD
9552         * lib/opendir-safer.c (opendir_safer):
9553         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
9554         file descriptor, and more importantly, don't clobber the
9555         offending errno value with EINVAL.  Before, upon failure
9556         of dup_safer, we would pass the negative file descriptor to
9557         fdopendir, which would clobber errno.
9558
9559 2011-05-23  Bruno Haible  <bruno@clisp.org>
9560
9561         idcache: Fix module description.
9562         * modules/idcache (Include): Set to "idcache.h".
9563
9564 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9565
9566         gnulib-tool: fix portability problem with MacOS sed
9567         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
9568         before the "}".  Problem reported by Leo in
9569         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
9570         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
9571         sed_extract_condition1, sed_extract_condition2.
9572
9573 2011-05-23  Bruno Haible  <bruno@clisp.org>
9574
9575         hash: Simplify autoconf macro.
9576         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
9577
9578 2011-05-23  Bruno Haible  <bruno@clisp.org>
9579
9580         getugroups: Fix module description.
9581         * modules/getugroups (Include): Set to "getugroups.h".
9582
9583 2011-05-23  Bruno Haible  <bruno@clisp.org>
9584
9585         linkat: Simplify autoconf macro.
9586         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
9587
9588 2011-05-23  Bruno Haible  <bruno@clisp.org>
9589             Eric Blake  <eblake@redhat.com>
9590
9591         linkat, renameat: Update dependencies.
9592         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
9593         * modules/linkat (Depends-on): Likewise. Remove also readlink,
9594         symlinkat.
9595
9596 2011-05-23  Jim Meyering  <meyering@redhat.com>
9597
9598         maint.mk: more tight_scope improvements
9599         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
9600         (_gl_TS_headers): Define only in if-0'd block.
9601         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
9602         sometimes we must *not* use it.  Adjust uses accordingly.
9603         (sc_tight_scope): Use much simpler grep-based test to determine
9604         whether we skip this rule.
9605
9606         maint.mk: generalize/improve the tight-scope rule
9607         * top/maint.mk: Emit a warning when the test is skipped.
9608         (_gl_TS_dir): Add $(srcdir)/ prefix.
9609         (_gl_TS_function_match): Simplify, rather than trying
9610         to enumerate common types.  Otherwise, it would fail to match an
9611         "extern unsigned char const *" declaration in idutils.
9612         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
9613         a way to support use of that type of macro.
9614         (_gl_TS_var_match): Simplify regexp.
9615         (_gl_TS_obj_files): New configurable variable.
9616         (_gl_TS_headers): Likewise.
9617
9618 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9619
9620         verify: fix bug when gnulib <assert.h> is also included
9621         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
9622         is defined, not if _GL_STATIC_ASSERT_H is not defined.
9623         Perhaps there's a better way, but this fixes the immediate problem.
9624         Problem reported by Bruno Haible in
9625         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
9626
9627 2011-05-22  Bruno Haible  <bruno@clisp.org>
9628
9629         xgetcwd: Simplify autoconf macro.
9630         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
9631
9632 2011-05-22  Bruno Haible  <bruno@clisp.org>
9633
9634         New module 'mktime-internal'.
9635         * modules/mktime-internal: New file.
9636         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
9637         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
9638         mktime_internal as a C macro if libc has __mktime_internal.
9639         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
9640         conditions.
9641         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
9642
9643 2011-05-22  Bruno Haible  <bruno@clisp.org>
9644
9645         timegm: Correct mktime replacement statements.
9646         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
9647         defining mktime as a C macro. This completes a 2009-07-28 commit.
9648
9649 2011-05-22  Bruno Haible  <bruno@clisp.org>
9650
9651         timegm: Simplify autoconf macro.
9652         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
9653
9654 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9655
9656         clock-time: change to LGPLv2+.
9657         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
9658         BSD-like but we have no mark for that; this is good enough for now.
9659
9660 2011-05-21  Bruno Haible  <bruno@clisp.org>
9661
9662         strerror_r: Fix comments.
9663         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
9664
9665 2011-05-21  Bruno Haible  <bruno@clisp.org>
9666
9667         relocatable-prog-wrapper: Fix possible link error.
9668         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
9669         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
9670         (gl_FUNC_SETENV): ... to here.
9671         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
9672         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
9673
9674 2011-05-21  Bruno Haible  <bruno@clisp.org>
9675
9676         relocatable-prog-wrapper: Assume strerror() exists.
9677         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
9678         m4/strerror.m4.
9679         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
9680         * lib/relocwrapper.c: Remove mention of strerror module.
9681         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
9682         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
9683         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
9684         C macro.
9685
9686 2011-05-21  Bruno Haible  <bruno@clisp.org>
9687
9688         select: Simplify replacement idiom.
9689         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
9690         Win32 platforms.
9691         * lib/sys_select.in.h (select): Simplify accordingly.
9692         * modules/select (Depends-on): Likewise.
9693
9694 2011-05-21  Bruno Haible  <bruno@clisp.org>
9695
9696         mkdir-p: Simplify autoconf macro.
9697         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
9698         gl_FUNC_LCHOWN.
9699
9700 2011-05-21  Eric Blake  <eblake@redhat.com>
9701
9702         strerror_r: avoid clobbering strerror on cygwin
9703         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
9704         fall back instead to sys_errlist.
9705         * modules/strerror (configure.ac): Add witness.
9706         * tests/test-strerror_r.c (main): Enhance test.
9707         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9708         * tests/test-perror2.c (main): Free memory before exit.
9709
9710 2011-05-21  Bruno Haible  <bruno@clisp.org>
9711
9712         mkdtemp: Use gnulib naming conventions.
9713         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
9714         * modules/mkdtemp (configure.ac): Update.
9715
9716 2011-05-20  Eric Blake  <eblake@redhat.com>
9717
9718         strerror_r: avoid corrupting errno on Solaris
9719         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
9720         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9721
9722         strerror_r: avoid compiler warning
9723         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
9724
9725         strerror_r: simplify AIX code
9726         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
9727
9728         test-perror: avoid spurious failure on FreeBSD
9729         * modules/perror-tests (Depends-on): Add strerror, now that
9730         strerror_r no longer pulls it in.
9731
9732 2011-05-20  Bruno Haible  <bruno@clisp.org>
9733
9734         strerror_r-posix: Remove unused dependencies.
9735         * modules/strerror_r-posix (Depends-on): Remove strerror.
9736         Reported by Eric Blake.
9737
9738 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
9739
9740         intprops: remove assumption about A|B representation
9741         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
9742         is a valid integer if both A and B are.  Although this is true for
9743         all known practical hosts, the C standard doesn't guarantee it,
9744         and the code need not assume it.  Also, this change may work around
9745         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
9746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
9747
9748 2011-05-20  Eric Blake  <eblake@redhat.com>
9749
9750         perror: work around FreeBSD bug
9751         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
9752         is broken.  Move AC_LIBOBJ...
9753         * modules/perror (configure.ac): Here.
9754         * doc/posix-functions/perror.texi (perror): Document this.
9755         * tests/test-perror2.c (main): Enhance test.
9756
9757         test-perror: check for strerror interactions
9758         * tests/macros.h (STREQ): Add macro.
9759         * modules/perror-tests (Files): Add second test.
9760         * tests/test-perror2.c (main): New file.
9761         * doc/posix-functions/perror.texi (perror): Document glibc bug.
9762
9763         test-perror: rewrite to use init script
9764         * modules/perror-tests (Files): Add init.sh.
9765         * tests/test-perror.sh: Use temporary directory.
9766
9767 2011-05-20  Jim Meyering  <meyering@redhat.com>
9768
9769         maint: replace misused "a" with "an"
9770         * doc/intprops.texi: "a integer"
9771         * doc/regex.texi: "a explanation"
9772         * lib/alignof.h: "a object"
9773         * lib/argmatch.h: "a explanation"
9774         * lib/argp-help.c: "a option" and "a OPTION_DOC"
9775         * lib/stdint.in.h: "a integer"
9776         * lib/userspec.c: "a owner"
9777         * doc/gnulib.texi: Fix "a idea", and reword.
9778
9779 2011-05-19  Jim Meyering  <meyering@redhat.com>
9780
9781         maint: correct misuse of "a" and "an"
9782         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
9783         * lib/argp-help.c: "an docum...": s/an/a/
9784         * lib/argp-parse.c: "An vector": s/An/A/
9785         * lib/execute.c: "an native": s/an/a/
9786         * lib/spawn-pipe.c: Likewise.
9787         * lib/gc.h: "an Gc_rc": s/an/a/
9788         * lib/unigbrk.in.h: "an grapheme": s/an/a/
9789         * lib/fts.c: "an stat.st_dev": s/an/a/
9790
9791 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9792
9793         intprops-tests: work around HP-UX 11.23 cc bug with constants
9794         * tests/test-intprops.c (VERIFY): New macro.
9795         (main): Use it, instead of verify, to work around the compiler bug; see
9796         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9797
9798         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
9799         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
9800         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
9801         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
9802         (_GL_REMAINDER_OVERFLOW): Use it.
9803
9804         intprops-tests: revert unsigned part of previous change
9805         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
9806         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
9807         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
9808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
9809
9810 2011-05-19  Bruno Haible  <bruno@clisp.org>
9811
9812         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
9813         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
9814         strerror_r() returned without filling the buffer.
9815         Reported by Eric Blake.
9816
9817 2011-05-19  Eric Blake  <eblake@redhat.com>
9818
9819         strerror_r: guarantee unchanged errno
9820         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
9821         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
9822         failure.
9823         * tests/test-strerror_r.c (main): Enhance test.
9824
9825 2011-05-19  Bruno Haible  <bruno@clisp.org>
9826
9827         strerror_r: Reorder #if blocks.
9828         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
9829         for consistency with the previous commit.
9830
9831 2011-05-19  Bruno Haible  <bruno@clisp.org>
9832
9833         perror: Avoid clobbering the strerror buffer when possible.
9834         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
9835         * lib/strerror.c: Include it.
9836         * modules/strerror (Files): Add lib/strerror-impl.h.
9837         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
9838         (my_strerror): New function, defined through lib/strerror-impl.h.
9839         (perror): Use it instead of strerror.
9840         * modules/perror (Files): Add lib/strerror-impl.h.
9841         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
9842
9843 2011-05-19  Eric Blake  <eblake@redhat.com>
9844
9845         strerror_r: fix on newer cygwin
9846         * lib/strerror_r.c (strerror_r): Cygwin now has
9847         __xpg_strerror_r, use it.
9848
9849 2011-05-19  Bruno Haible  <bruno@clisp.org>
9850
9851         strerror_r: Avoid clobbering the strerror buffer when possible.
9852         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
9853         (sys_nerr, sys_errlist): New declarations.
9854         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
9855         HP-UX, native Win32, IRIX, and 32-bit Solaris.
9856         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
9857
9858 2011-05-19  Bruno Haible  <bruno@clisp.org>
9859
9860         strerror_r: Fix test failure on mingw.
9861         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
9862         EXTEND_STRERROR_R.
9863         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
9864         macros from errno.in.h instead.
9865
9866 2011-05-19  Eric Blake  <eblake@redhat.com>
9867
9868         strerror: relax test for Solaris
9869         * tests/test-strerror.c (main): Permit Solaris behavior.
9870         * tests/test-strerror_r.c (main): Likewise.
9871
9872         strerror: enforce POSIX ruling on strerror(0)
9873         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
9874         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9875         * lib/strerror_r.c (rpl_strerror_r): Work around it.
9876         * doc/posix-functions/strerror.texi (strerror): Document it.
9877         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
9878         * tests/test-strerror.c (main): Strengthen test.
9879         * tests/test-strerror_r.c (main): Likewise.
9880
9881 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9882
9883         intprop-tests: port to older and more-pedantic compilers
9884         * modules/intprops-tests (Files): Add tests/macros.h.
9885         * tests/test-intprops.c: Include macros.h.
9886         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
9887         it's no longer documented to expand to an integer constant expression.
9888         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
9889         argument is floating point, as it's no longer documented to expand
9890         to an integer constant expression in that case.
9891         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
9892         compiler bugs reported by Bruno Haible.  See
9893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9894         (U0, U1): New constants, to work around the same bugs.  Also,
9895         in tests, use e.g., "(unsigned int) 39" rather than "39u".
9896
9897         intprops: work around C compiler bugs
9898         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
9899         bug in Sun C 5.11 2010/08/13 and other compilers; see
9900         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9901
9902         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
9903         * doc/intprops.texi (Integer Type Determination): Fix
9904         documentation for TYPE_IS_INTEGER: it returns an constant
9905         expression, not an integer constant expression.  Fix doc for
9906         TYPE_SIGNED: it returns an integer constant expression only if its
9907         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
9908         hardly worth documented that way....)
9909
9910 2011-05-18  Bruno Haible  <bruno@clisp.org>
9911
9912         strerror_r: Avoid clobbering the strerror buffer when possible.
9913         * lib/strerror_r.c (strerror_r): Merge the three implementations.
9914         Handle gnulib defined errno values here. When strerror() returns NULL
9915         or an empty string, return EINVAL.
9916         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
9917         gnulib defined errno values here.
9918         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
9919
9920 2011-05-18  Eric Blake  <eblake@redhat.com>
9921
9922         fnmatch: avoid compiler warning
9923         * lib/fnmatch_loop.c (FCT): Use correct type.
9924         Reported by Matthias Bolte.
9925
9926 2011-05-13  Jim Meyering  <meyering@redhat.com>
9927
9928         maint.mk: three new prohibit_<HDR>_without_use rules
9929         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
9930         (sc_prohibit_stdio-safer_without_use): Likewise.
9931         (sc_prohibit_xfreopen_without_use): Likewise.
9932
9933 2011-05-17  Jim Meyering  <meyering@redhat.com>
9934
9935         announce-gen: fail if the NEWS delta is empty
9936         If there's nothing noteworthy in NEWS, then either you forgot
9937         or you shouldn't be releasing.
9938         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
9939
9940 2011-05-17  Pádraig Brady <P@draigBrady.com>
9941
9942         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
9943         reserved symbols starting with double underscore from the check.
9944
9945 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9946
9947         intprops: add doc
9948         * doc/intprops.texi: New file, documenting intprops.
9949         * doc/gnulib.texi (Particular Modules): Include it.
9950
9951         verify: add doc to gnulib manual and fix example
9952         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
9953         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
9954         (Compile-time Assertions): Fix example so it can't overflow.
9955
9956 2011-05-17  Jim Meyering  <meyering@redhat.com>
9957
9958         warnings.m4: don't usurp save_CPPFLAGS variable name
9959         * m4/warnings.m4: Prefix local temporary variable name with gl_.
9960
9961         doc: fix typo
9962         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
9963
9964 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9965             Bruno Haible  <bruno@clisp.org>
9966
9967         doc: Tweak recent change.
9968         * README (Portability guidelines): Tweak new text.
9969         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
9970         Interix 6.1.
9971
9972 2011-05-16  Eric Blake  <eblake@redhat.com>
9973
9974         inttypes: avoid autoconf warning
9975         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
9976         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9977
9978 2011-05-16  Sam Steingold <sds@gnu.org>
9979         and Eric Blake  <eblake@redhat.com>
9980
9981         vc-list-files: accept multiple directory operands
9982         * build-aux/vc-list-files: Iterate over all remaining operands.
9983
9984 2011-05-16  Bruno Haible  <bruno@clisp.org>
9985
9986         Fix confusion regarding deprecated modules.
9987         * modules/calloc (Status, Notice): Mark module as deprecated, not
9988         obsolete.
9989         * modules/fnmatch-posix (Status, Notice): Likewise.
9990         * modules/getdate (Status, Notice): Likewise.
9991         * modules/getopt (Status, Notice): Likewise.
9992         * modules/malloc (Status, Notice): Likewise.
9993         * modules/pipe (Status, Notice): Likewise.
9994         * modules/realloc (Status, Notice): Likewise.
9995         * modules/rename-dest-slash (Status, Notice): Likewise.
9996         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
9997         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
9998         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
9999         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10000         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10001
10002 2011-05-16  Bruno Haible  <bruno@clisp.org>
10003
10004         doc: List the target platforms.
10005         * doc/gnulib-intro.texi (Target Platforms): New section.
10006         * doc/gnulib.texi (Introduction): Update menu.
10007         * README (Portability guidelines): Refer to the new section. Update
10008         statement about oldest supported environment. Remove rationale why
10009         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10010         unportable C89 function.
10011         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10012         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10013
10014 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10015
10016         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10017
10018 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10019
10020         intprops-tests: new module
10021         * modules/intprops-tests, tests/test-intprops.c: New files.
10022
10023         intprops: add safe, portable integer overflow checking
10024         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10025         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10026         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10027         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10028         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10029         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10030         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10031         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10032         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10033         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10034         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10035
10036 2011-05-12  James Youngman  <jay@gnu.org>
10037
10038         Add a test for glibc's Bugzilla bug #12378.
10039         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10040         doesn't allow the literal matching of a lone "[" (which is
10041         required by POSIX).
10042         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10043
10044 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10045
10046         Sync glibc change fixing Bugzilla bug #12378.
10047         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10048         beginning and fall back to matching as normal character if the
10049         string ends before the matching ']' is found.  This is what POSIX
10050         requires.
10051
10052 2011-05-13  Eric Blake  <eblake@redhat.com>
10053
10054         getcwd-lgpl: relax test for FreeBSD
10055         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10056         issue.
10057         * tests/test-getcwd-lgpl.c (main): Relax test.
10058         Reported by Matthias Bolte.
10059
10060 2011-05-11  Eric Blake  <eblake@redhat.com>
10061
10062         test-fflush: silence compiler warning
10063         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10064
10065 2011-05-11  Bruno Haible  <bruno@clisp.org>
10066
10067         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10068         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10069         * modules/canonicalize (Depends-on): Add 'nocrash'.
10070         * modules/canonicalize-lgpl (Depends-on): Likewise.
10071         * doc/posix-functions/realpath.texi: Update platforms list.
10072         Reported by Ryan Schmidt <ryandesign@macports.org>.
10073
10074 2011-05-11  Bruno Haible  <bruno@clisp.org>
10075
10076         group-member: Declare function in <unistd.h>.
10077         * lib/unistd.in.h (group_member): New declaration.
10078         * lib/group-member.h: Remove file.
10079         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10080         * tests/test-unistd-c++.cc: Check signature of group_member.
10081         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10082         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10083         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10084         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10085         HAVE_GROUP_MEMBER.
10086         * modules/group-member (Files): Remove lib/group-member.h.
10087         (Depends-on): Add unistd. Specify conditions.
10088         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10089         (Include): Change to <unistd.h>.
10090         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10091         HAVE_GROUP_MEMBER.
10092         * NEWS: Mention the change.
10093         * lib/euidaccess.c: Don't include group-member.h.
10094
10095 2011-05-11  Bruno Haible  <bruno@clisp.org>
10096
10097         group-member: Document module.
10098         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10099         module.
10100
10101 2011-05-11  Bruno Haible  <bruno@clisp.org>
10102
10103         fclose: Fix mistake earlier today.
10104         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10105
10106 2011-05-11  Eric Blake  <eblake@redhat.com>
10107
10108         fclose: preserve fflush errors
10109         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10110         Reported by Jim Meyering.
10111
10112         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10113         * build-aux/bootstrap (check_versions): When no specific version
10114         is required, merely check that the app produces an exit status
10115         that indicates its existence.
10116
10117         maint.mk: drop redundant check
10118         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10119         the same but better.
10120
10121 2011-05-11  Bruno Haible  <bruno@clisp.org>
10122
10123         fclose: Fix possible link error.
10124         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10125         unregister_shadow_fd. Improve comments.
10126         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10127         Eric Blake.
10128
10129 2011-05-11  Jim Meyering  <meyering@redhat.com>
10130
10131         maint.mk: improve "can not" detection and generalize rule name
10132         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10133         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10134         Use the same technique as in sc_prohibit_doubled_word, so that
10135         we recognize "can not" also when the words are separated by a newline.
10136         Suggested by Eric Blake.
10137         (perl_filename_lineno_text_): Define.  Factored out of...
10138         (prohibit_doubled_word_): ...here.  Use the new definition.
10139         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10140         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10141         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10142
10143 2011-05-10  Eric Blake  <eblake@redhat.com>
10144
10145         fclose: avoid double close race when possible
10146         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10147         all but WINDOWS_SOCKETS.
10148
10149 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10150
10151         openat: correct new comment
10152         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10153
10154 2011-05-10  Jim Meyering  <meyering@redhat.com>
10155
10156         openat: add comments
10157         * lib/openat-proc.c (openat_proc_name): Add comments,
10158         mostly from Eric Blake.
10159
10160 2011-05-09  Eric Blake  <eblake@redhat.com>
10161
10162         openat: reduce syscalls in first probe of /proc
10163         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10164         be a directory.  Simplify the probe for .. bugs.
10165         * modules/openat (Depends-on): Drop same-inode.
10166         Reported by Bastien ROUCARIES.
10167
10168 2011-05-09  Jim Meyering  <meyering@redhat.com>
10169
10170         maint.mk: change semantics/name of tight_scope variables
10171         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10172         Rename variables to align with semantics that make them more useful.
10173
10174         maint.mk: tweak new rule's name not to impinge
10175         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10176         (sc_tight_scope): Use new rule name rather than $@-0.
10177
10178         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10179         * top/maint.mk (sc_tight_scope): New rule.
10180         (sc_tight_scope-0): New rule, ifdef'd out.
10181         (_gl_TS_dir): Default.
10182         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10183         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10184
10185 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10186
10187         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10188         Haible <bruno@clisp.org>.
10189
10190 2011-05-08  Bruno Haible  <bruno@clisp.org>
10191
10192         Comments.
10193         * m4/isnanf.m4: Add comment.
10194         * m4/isnanl.m4: Likewise.
10195
10196 2011-05-08  Bruno Haible  <bruno@clisp.org>
10197
10198         glob: Remove obsolete macro.
10199         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10200
10201 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10202
10203         intprops: Sun C 5.11 supports __typeof__
10204         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10205         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10206         which is new.
10207         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10208
10209         intprops: switch to usual gnulib indenting and naming
10210         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10211         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10212
10213         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10214
10215 2011-05-08  Jim Meyering  <meyering@redhat.com>
10216
10217         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10218         * top/maint.mk (release-prep): Use make's --no-print-directory
10219         option when generating the announcement.  This eliminates the
10220         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10221         generated announcement template.
10222
10223 2011-05-08  Bruno Haible  <bruno@clisp.org>
10224
10225         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10226         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10227         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10228
10229 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10230
10231         ignore-value, verify: Omit include files from lib_SOURCES.
10232         * modules/ignore-value, modules/verify (Makefile.am):
10233         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10234         that leads Automake to duplicate use of am__objects_... variables
10235         in Makefile.in.  See
10236         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10237
10238 2011-05-07  Bruno Haible  <bruno@clisp.org>
10239
10240         fclose: Simplify autoconf macro.
10241         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10242         defined.
10243
10244 2011-05-07  Bruno Haible  <bruno@clisp.org>
10245
10246         canonicalize-lgpl: Fix autoconf macro ordering bug.
10247         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10248         gl_STDLIB_H_DEFAULTS.
10249
10250 2011-05-06  Eric Blake  <eblake@redhat.com>
10251
10252         maintainer-makefile: make sc_po_check easier to tune
10253         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10254         to probe for strings, such as an alternate location for gnulib.
10255
10256         fclose: guarantee behavior on seekable stdin
10257         * modules/fclose (Depends-on): Add fflush.
10258         * doc/posix-functions/fclose.texi (fclose): Document this.
10259         * tests/test-fclose.c (main): Make test for this unconditional.
10260
10261 2011-05-06  Bruno Haible  <bruno@clisp.org>
10262
10263         fflush, fpurge: Relicense under LGPLv2+.
10264         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10265         * modules/fpurge (License): Likewise.
10266         With permission from Eric Blake and Jim Meyering.
10267         Suggested by Eric Blake.
10268
10269 2011-05-06  Karl Berry  <karl@gnu.org>
10270
10271         * MODULES.html.sh (func_all_modules): remove exit.
10272
10273 2011-05-06  Jim Meyering  <meyering@redhat.com>
10274
10275         maint.mk: use info-gnu@ as the default only for a stable release
10276         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10277         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10278         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10279         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10280
10281 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10282
10283         assert-h: new module, which supports C1X-style static_assert
10284         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10285         * lib/verify.h: Revamp so that this can be copied into assert.h,
10286         while retaining the ability to use it standalone as before.
10287         Rename private identifiers so as not to encroach on the
10288         standard C namespace, since this is now used by assert.h.
10289         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10290         the old verify_true.
10291         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10292         the old verify_true.  Use _GL_VERIFY_TYPE.
10293         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10294         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10295         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10296         defined when this file is copied into the replacement assert.h.
10297         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10298         and _Static_assert is not built in.
10299         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10300         defined, and use the new macros mentioned above.
10301         * doc/posix-headers/assert.texi: Document this.
10302
10303 2011-05-05  Bruno Haible  <bruno@clisp.org>
10304
10305         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10306         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10307         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10308         gl_REPLACE_FCLOSE here.
10309         * modules/fflush (Depends-on): Remove fclose.
10310         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10311         combination with module 'fclose'.
10312
10313 2011-05-05  Bruno Haible  <bruno@clisp.org>
10314
10315         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10316         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10317         gl_FUNC_FFLUSH.
10318         (gl_FUNC_FFLUSH): Use it.
10319         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10320         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10321         gl_REPLACE_FSEEKO here.
10322
10323 2011-05-05  Bruno Haible  <bruno@clisp.org>
10324
10325         tzset: Relicense under LGPL.
10326         * modules/tzset (License): Change to LGPL.
10327         No agreement needed; it's a no-op.
10328
10329         strtoimax, strtoumax: Relicense under LGPL.
10330         * modules/strtoimax (License): Change to LGPL.
10331         * modules/strtoumax (License): Likewise.
10332         With permission from Jim Meyering, Paul Eggert:
10333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10335
10336         getgroups: Relicense under LGPL.
10337         * modules/getgroups (License): Change to LGPL.
10338         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10339         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10342
10343         nanosleep: Relicense under LGPL.
10344         * modules/nanosleep (License): Change to LGPL.
10345         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10346         Haible:
10347         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10348         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10351
10352         futimens: Relicense under LGPL.
10353         * modules/futimens (License): Change to LGPL.
10354         With permission from Eric Blake:
10355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10356
10357         fflush: Relicense under LGPL.
10358         * modules/fflush (License): Change to LGPL.
10359         With permission from Eric Blake, Bruno Haible, Jim Meyering:
10360         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10361         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
10363
10364         tmpfile: Relicense under LGPL.
10365         * modules/tmpfile (License): Change to LGPL.
10366         With permission from Ben Pfaff:
10367         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10368
10369         isfinite: Relicense under LGPL.
10370         * modules/isfinite (License): Change to LGPL.
10371         With permission from Ben Pfaff, Bruno Haible:
10372         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
10374
10375         acosl..tanl: Relicense under LGPL.
10376         * modules/acosl (License): Change to LGPL.
10377         * modules/asinl (License): Likewise.
10378         * modules/atanl (License): Likewise.
10379         * modules/cosl (License): Likewise.
10380         * modules/expl (License): Likewise.
10381         * modules/logl (License): Likewise.
10382         * modules/sinl (License): Likewise.
10383         * modules/sqrtl (License): Likewise.
10384         * modules/tanl (License): Likewise.
10385         Source code originally from glibc and Paolo Bonzini. Agreements:
10386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
10387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
10388
10389 2011-05-05  Bruno Haible  <bruno@clisp.org>
10390
10391         signal: Define sighandler_t.
10392         * lib/signal.in.h (sighandler_t): New type.
10393         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
10394         whether sighandler_t is defined.
10395         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
10396         * modules/signal (Depends-on): Add extensions.
10397         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
10398         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
10399         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
10400
10401 2011-05-05  Eric Blake  <eblake@redhat.com>
10402
10403         maint: remove useless REPLACE_*_H macros
10404         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
10405         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10406         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10407         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
10408         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10409         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10410         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
10411         * m4/btowc.m4: Update callers.
10412         * m4/dirfd.m4: Likewise.
10413         * m4/duplocale.m4: Likewise.
10414         * m4/fchdir.m4: Likewise.
10415         * m4/fdopendir.m4: Likewise.
10416         * m4/inet_ntop.m4: Likewise.
10417         * m4/inet_pton.m4: Likewise.
10418         * m4/ioctl.m4: Likewise.
10419         * m4/mbrlen.m4: Likewise.
10420         * m4/mbrtowc.m4: Likewise.
10421         * m4/mbsinit.m4: Likewise.
10422         * m4/mbsnrtowcs.m4: Likewise.
10423         * m4/mbsrtowcs.m4: Likewise.
10424         * m4/poll.m4: Likewise.
10425         * m4/setlocale.m4: Likewise.
10426         * m4/wcrtomb.m4: Likewise.
10427         * m4/wcsnrtombs.m4: Likewise.
10428         * m4/wcsrtombs.m4: Likewise.
10429         * m4/wctob.m4: Likewise.
10430         * m4/wcwidth.m4: Likewise.
10431         * modules/posix_spawn: Likewise.
10432         * modules/posix_spawn_file_actions_addclose: Likewise.
10433         * modules/posix_spawn_file_actions_adddup2: Likewise.
10434         * modules/posix_spawn_file_actions_addopen: Likewise.
10435         * modules/posix_spawn_file_actions_destroy: Likewise.
10436         * modules/posix_spawn_file_actions_init: Likewise.
10437         * modules/posix_spawnattr_destroy: Likewise.
10438         * modules/posix_spawnattr_getflags: Likewise.
10439         * modules/posix_spawnattr_getpgroup: Likewise.
10440         * modules/posix_spawnattr_getschedparam: Likewise.
10441         * modules/posix_spawnattr_getschedpolicy: Likewise.
10442         * modules/posix_spawnattr_getsigdefault: Likewise.
10443         * modules/posix_spawnattr_getsigmask: Likewise.
10444         * modules/posix_spawnattr_init: Likewise.
10445         * modules/posix_spawnattr_setflags: Likewise.
10446         * modules/posix_spawnattr_setpgroup: Likewise.
10447         * modules/posix_spawnattr_setschedparam: Likewise.
10448         * modules/posix_spawnattr_setschedpolicy: Likewise.
10449         * modules/posix_spawnattr_setsigdefault: Likewise.
10450         * modules/posix_spawnattr_setsigmask: Likewise.
10451         * modules/posix_spawnp: Likewise.
10452
10453 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10454
10455         Add option to do-release-commit-and-tag to specify branch.
10456         * build-aux/do-release-commit-and-tag: Add --branch.
10457
10458 2011-05-03  Bruno Haible  <bruno@clisp.org>
10459
10460         Avoid unnecessary compilation units, through conditional dependencies.
10461         * modules/accept (Depends-on): Add conditions to the dependencies.
10462         * modules/acosl (Depends-on): Likewise.
10463         * modules/argz (Depends-on): Likewise.
10464         * modules/asinl (Depends-on): Likewise.
10465         * modules/atanl (Depends-on): Likewise.
10466         * modules/atoll (Depends-on): Likewise.
10467         * modules/bind (Depends-on): Likewise.
10468         * modules/btowc (Depends-on): Likewise.
10469         * modules/canonicalize-lgpl (Depends-on): Likewise.
10470         * modules/ceil (Depends-on): Likewise.
10471         * modules/ceilf (Depends-on): Likewise.
10472         * modules/ceill (Depends-on): Likewise.
10473         * modules/chdir-long (Depends-on): Likewise.
10474         * modules/chown (Depends-on): Likewise.
10475         * modules/close (Depends-on): Likewise.
10476         * modules/connect (Depends-on): Likewise.
10477         * modules/cosl (Depends-on): Likewise.
10478         * modules/dirfd (Depends-on): Likewise.
10479         * modules/dprintf (Depends-on): Likewise.
10480         * modules/dprintf-posix (Depends-on): Likewise.
10481         * modules/error (Depends-on): Likewise.
10482         * modules/euidaccess (Depends-on): Likewise.
10483         * modules/expl (Depends-on): Likewise.
10484         * modules/faccessat (Depends-on): Likewise.
10485         * modules/fchdir (Depends-on): Likewise.
10486         * modules/fclose (Depends-on): Likewise.
10487         * modules/fcntl (Depends-on): Likewise.
10488         * modules/fdopendir (Depends-on): Likewise.
10489         * modules/fflush (Depends-on): Likewise.
10490         * modules/floor (Depends-on): Likewise.
10491         * modules/floorf (Depends-on): Likewise.
10492         * modules/floorl (Depends-on): Likewise.
10493         * modules/fnmatch (Depends-on): Likewise.
10494         * modules/fopen (Depends-on): Likewise.
10495         * modules/fprintf-posix (Depends-on): Likewise.
10496         * modules/frexp (Depends-on): Likewise.
10497         * modules/frexp-nolibm (Depends-on): Likewise.
10498         * modules/frexpl (Depends-on): Likewise.
10499         * modules/frexpl-nolibm (Depends-on): Likewise.
10500         * modules/fseek (Depends-on): Likewise.
10501         * modules/fsusage (Depends-on): Likewise.
10502         * modules/ftell (Depends-on): Likewise.
10503         * modules/ftello (Depends-on): Likewise.
10504         * modules/futimens (Depends-on): Likewise.
10505         * modules/getcwd (Depends-on): Likewise.
10506         * modules/getcwd-lgpl (Depends-on): Likewise.
10507         * modules/getdelim (Depends-on): Likewise.
10508         * modules/getdomainname (Depends-on): Likewise.
10509         * modules/getgroups (Depends-on): Likewise.
10510         * modules/gethostname (Depends-on): Likewise.
10511         * modules/getline (Depends-on): Likewise.
10512         * modules/getlogin_r (Depends-on): Likewise.
10513         * modules/getopt-posix (Depends-on): Likewise.
10514         * modules/getpeername (Depends-on): Likewise.
10515         * modules/getsockname (Depends-on): Likewise.
10516         * modules/getsockopt (Depends-on): Likewise.
10517         * modules/getsubopt (Depends-on): Likewise.
10518         * modules/getusershell (Depends-on): Likewise.
10519         * modules/glob (Depends-on): Likewise.
10520         * modules/grantpt (Depends-on): Likewise.
10521         * modules/iconv_open (Depends-on): Likewise.
10522         * modules/iconv_open-utf (Depends-on): Likewise.
10523         * modules/inet_ntop (Depends-on): Likewise.
10524         * modules/inet_pton (Depends-on): Likewise.
10525         * modules/ioctl (Depends-on): Likewise.
10526         * modules/isapipe (Depends-on): Likewise.
10527         * modules/isfinite (Depends-on): Likewise.
10528         * modules/isinf (Depends-on): Likewise.
10529         * modules/lchown (Depends-on): Likewise.
10530         * modules/ldexpl (Depends-on): Likewise.
10531         * modules/link (Depends-on): Likewise.
10532         * modules/linkat (Depends-on): Likewise.
10533         * modules/listen (Depends-on): Likewise.
10534         * modules/logl (Depends-on): Likewise.
10535         * modules/lstat (Depends-on): Likewise.
10536         * modules/mbrlen (Depends-on): Likewise.
10537         * modules/mbrtowc (Depends-on): Likewise.
10538         * modules/mbsinit (Depends-on): Likewise.
10539         * modules/mbsnrtowcs (Depends-on): Likewise.
10540         * modules/mbsrtowcs (Depends-on): Likewise.
10541         * modules/mbtowc (Depends-on): Likewise.
10542         * modules/memcmp (Depends-on): Likewise.
10543         * modules/mkdir (Depends-on): Likewise.
10544         * modules/mkdtemp (Depends-on): Likewise.
10545         * modules/mkfifo (Depends-on): Likewise.
10546         * modules/mkfifoat (Depends-on): Likewise.
10547         * modules/mknod (Depends-on): Likewise.
10548         * modules/mkostemp (Depends-on): Likewise.
10549         * modules/mkostemps (Depends-on): Likewise.
10550         * modules/mkstemp (Depends-on): Likewise.
10551         * modules/mkstemps (Depends-on): Likewise.
10552         * modules/mktime (Depends-on): Likewise.
10553         * modules/nanosleep (Depends-on): Likewise.
10554         * modules/open (Depends-on): Likewise.
10555         * modules/openat (Depends-on): Likewise.
10556         * modules/perror (Depends-on): Likewise.
10557         * modules/poll (Depends-on): Likewise.
10558         * modules/popen (Depends-on): Likewise.
10559         * modules/posix_spawn (Depends-on): Likewise.
10560         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
10561         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10562         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10563         * modules/posix_spawnp (Depends-on): Likewise.
10564         * modules/pread (Depends-on): Likewise.
10565         * modules/printf-posix (Depends-on): Likewise.
10566         * modules/ptsname (Depends-on): Likewise.
10567         * modules/putenv (Depends-on): Likewise.
10568         * modules/pwrite (Depends-on): Likewise.
10569         * modules/readline (Depends-on): Likewise.
10570         * modules/readlink (Depends-on): Likewise.
10571         * modules/readlinkat (Depends-on): Likewise.
10572         * modules/recv (Depends-on): Likewise.
10573         * modules/recvfrom (Depends-on): Likewise.
10574         * modules/regex (Depends-on): Likewise.
10575         * modules/remove (Depends-on): Likewise.
10576         * modules/rename (Depends-on): Likewise.
10577         * modules/renameat (Depends-on): Likewise.
10578         * modules/rmdir (Depends-on): Likewise.
10579         * modules/round (Depends-on): Likewise.
10580         * modules/roundf (Depends-on): Likewise.
10581         * modules/roundl (Depends-on): Likewise.
10582         * modules/rpmatch (Depends-on): Likewise.
10583         * modules/select (Depends-on): Likewise.
10584         * modules/send (Depends-on): Likewise.
10585         * modules/sendto (Depends-on): Likewise.
10586         * modules/setenv (Depends-on): Likewise.
10587         * modules/setlocale (Depends-on): Likewise.
10588         * modules/setsockopt (Depends-on): Likewise.
10589         * modules/shutdown (Depends-on): Likewise.
10590         * modules/sigaction (Depends-on): Likewise.
10591         * modules/signbit (Depends-on): Likewise.
10592         * modules/sigprocmask (Depends-on): Likewise.
10593         * modules/sinl (Depends-on): Likewise.
10594         * modules/sleep (Depends-on): Likewise.
10595         * modules/snprintf (Depends-on): Likewise.
10596         * modules/snprintf-posix (Depends-on): Likewise.
10597         * modules/socket (Depends-on): Likewise.
10598         * modules/sprintf-posix (Depends-on): Likewise.
10599         * modules/sqrtl (Depends-on): Likewise.
10600         * modules/stat (Depends-on): Likewise.
10601         * modules/strchrnul (Depends-on): Likewise.
10602         * modules/strdup-posix (Depends-on): Likewise.
10603         * modules/strerror (Depends-on): Likewise.
10604         * modules/strerror_r-posix (Depends-on): Likewise.
10605         * modules/strndup (Depends-on): Likewise.
10606         * modules/strnlen (Depends-on): Likewise.
10607         * modules/strptime (Depends-on): Likewise.
10608         * modules/strsep (Depends-on): Likewise.
10609         * modules/strsignal (Depends-on): Likewise.
10610         * modules/strstr-simple (Depends-on): Likewise.
10611         * modules/strtod (Depends-on): Likewise.
10612         * modules/strtoimax (Depends-on): Likewise.
10613         * modules/strtok_r (Depends-on): Likewise.
10614         * modules/strtoumax (Depends-on): Likewise.
10615         * modules/symlink (Depends-on): Likewise.
10616         * modules/symlinkat (Depends-on): Likewise.
10617         * modules/tanl (Depends-on): Likewise.
10618         * modules/tcgetsid (Depends-on): Likewise.
10619         * modules/tmpfile (Depends-on): Likewise.
10620         * modules/trunc (Depends-on): Likewise.
10621         * modules/truncf (Depends-on): Likewise.
10622         * modules/truncl (Depends-on): Likewise.
10623         * modules/uname (Depends-on): Likewise.
10624         * modules/unlink (Depends-on): Likewise.
10625         * modules/unlockpt (Depends-on): Likewise.
10626         * modules/unsetenv (Depends-on): Likewise.
10627         * modules/usleep (Depends-on): Likewise.
10628         * modules/utimensat (Depends-on): Likewise.
10629         * modules/vasprintf (Depends-on): Likewise.
10630         * modules/vdprintf (Depends-on): Likewise.
10631         * modules/vdprintf-posix (Depends-on): Likewise.
10632         * modules/vfprintf-posix (Depends-on): Likewise.
10633         * modules/vprintf-posix (Depends-on): Likewise.
10634         * modules/vsnprintf (Depends-on): Likewise.
10635         * modules/vsnprintf-posix (Depends-on): Likewise.
10636         * modules/vsprintf-posix (Depends-on): Likewise.
10637         * modules/wcrtomb (Depends-on): Likewise.
10638         * modules/wcscasecmp (Depends-on): Likewise.
10639         * modules/wcscspn (Depends-on): Likewise.
10640         * modules/wcsdup (Depends-on): Likewise.
10641         * modules/wcsncasecmp (Depends-on): Likewise.
10642         * modules/wcsnrtombs (Depends-on): Likewise.
10643         * modules/wcspbrk (Depends-on): Likewise.
10644         * modules/wcsrtombs (Depends-on): Likewise.
10645         * modules/wcsspn (Depends-on): Likewise.
10646         * modules/wcsstr (Depends-on): Likewise.
10647         * modules/wcstok (Depends-on): Likewise.
10648         * modules/wcswidth (Depends-on): Likewise.
10649         * modules/wctob (Depends-on): Likewise.
10650         * modules/wctomb (Depends-on): Likewise.
10651         * modules/wctype (Depends-on): Likewise.
10652         * modules/wcwidth (Depends-on): Likewise.
10653         * modules/write (Depends-on): Likewise.
10654
10655 2011-05-03  Bruno Haible  <bruno@clisp.org>
10656
10657         Support for conditional dependencies.
10658         * doc/gnulib.texi (Module description): Document the syntax of
10659         conditional dependencies.
10660         * gnulib-tool: New option --conditional-dependencies.
10661         (func_usage): Document it.
10662         (cond_dependencies): New variable.
10663         (func_get_automake_snippet_conditional,
10664         func_get_automake_snippet_unconditional): New functions, extracted from
10665         func_get_automake_snippet.
10666         (func_get_automake_snippet): Use them.
10667         (sed_first_32_chars): New variable.
10668         (func_module_shellfunc_name): New function.
10669         (func_module_shellvar_name): New function.
10670         (func_module_conditional_name): New function.
10671         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
10672         func_cond_module_condition): New functions.
10673         (func_modules_transitive_closure): Add support for conditional
10674         dependencies.
10675         (func_emit_lib_Makefile_am): For a conditional module, enclose the
10676         conditional automake snippet in an automake conditional.
10677         (func_emit_autoconf_snippets): Emit shell functions that contain the
10678         code for conditional modules.
10679         (func_import, func_create_testdir): Update specification.
10680
10681 2011-05-03  Eric Blake  <eblake@redhat.com>
10682
10683         test-getaddrinfo: report error information
10684         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
10685
10686 2011-05-03  Jim Meyering  <meyering@redhat.com>
10687
10688         bootstrap: avoid build failure when $GZIP is set
10689         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
10690         program name.  If defined at all, it is supposed to list gzip options.
10691         Reported by Alan Curry in http://debbugs.gnu.org/8609
10692
10693 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
10694
10695         readme-release: new module with release instructions
10696         * modules/readme-release: New module.
10697         * top/README-release: New file, from coreutils, grep, diffutils.
10698         * MODULES.html.sh (Support for maintaining and releasing): Add it.
10699
10700 2011-05-02  Eric Blake  <eblake@redhat.com>
10701
10702         fflush: also replace fclose when fixing fflush
10703         * modules/fflush (Depends-on): Add fclose.
10704         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
10705         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
10706         memstreams with no backing fd.
10707         * doc/posix-functions/fclose.texi (fclose): Document the use of
10708         fflush module to fix the bug.
10709         * tests/test-fclose.c (main): Relax test when fclose is used in
10710         isolation.
10711
10712         fclose: add some tests
10713         * modules/fclose-tests: New test module.
10714         * tests/test-fclose.c: New file.
10715         * doc/posix-functions/fclose.texi (fclose): Document the bug.
10716
10717         fclose: reduced dependencies
10718         * modules/fclose (Depends-on): Switch from fflush/fseeko to
10719         simpler lseek.
10720         * lib/fclose.c (rpl_fclose): Likewise.
10721         Reported by Simon Josefsson.
10722
10723         exit: drop remaining clients
10724         * modules/argmatch (Depends-on): Replace exit with stdlib.
10725         * modules/copy-file (Depends-on): Likewise.
10726         * modules/execute (Depends-on): Likewise.
10727         * modules/exitfail (Depends-on): Likewise.
10728         * modules/obstack (Depends-on): Likewise.
10729         * modules/pagealign_alloc (Depends-on): Likewise.
10730         * modules/pipe-filter-gi (Depends-on): Likewise.
10731         * modules/pipe-filter-ii (Depends-on): Likewise.
10732         * modules/savewd (Depends-on): Likewise.
10733         * modules/spawn-pipe (Depends-on): Likewise.
10734         * modules/wait-process (Depends-on): Likewise.
10735         * modules/xsetenv (Depends-on): Likewise.
10736         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
10737         * modules/git-merge-changelog (Depends-on): Likewise.
10738         * modules/long-options (Depends-on): Likewise.
10739         * modules/pt_chown (Depends-on): Likewise.
10740         * modules/sysexits (Depends-on): Likewise.
10741
10742         freading: relax license from LGPLv3+ to LGPLv2+
10743         * modules/freading (License): Relax LGPL version.
10744
10745 2011-05-02  Bruno Haible  <bruno@clisp.org>
10746
10747         fchdir: Remove unused dependencies.
10748         * modules/fchdir (Depends-on): Remove include_next.
10749
10750 2011-05-02  Bruno Haible  <bruno@clisp.org>
10751
10752         gnulib-tool: Refactor.
10753         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
10754         from func_emit_autoconf_snippets.
10755         (func_emit_autoconf_snippets): Use it.
10756
10757 2011-05-02  Simon Josefsson  <simon@josefsson.org>
10758
10759         * NEWS: Document removal of 'exit'.
10760         * modules/exit: Remove file.
10761
10762 2011-05-01  Bruno Haible  <bruno@clisp.org>
10763
10764         Update DEPENDENCIES.
10765         * DEPENDENCIES (gettext): Recommend the newest release.
10766         Reported by Simon Josefsson.
10767
10768 2011-05-01  Bruno Haible  <bruno@clisp.org>
10769
10770         gnulib-tool: Reduce code duplication.
10771         * gnulib-tool (func_emit_autoconf_snippets): New function.
10772         (func_import, func_create_testdir): Use it.
10773
10774 2011-04-30  Eric Blake  <eblake@redhat.com>
10775
10776         fclose: don't fail on non-seekable input stream
10777         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
10778         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
10779         since fflush is allowed to fail in that case.
10780
10781 2011-04-30  Bruno Haible  <bruno@clisp.org>
10782
10783         dup3: cleanup
10784         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
10785
10786 2011-04-30  Bruno Haible  <bruno@clisp.org>
10787
10788         netdb: Make it work in C++ mode.
10789         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
10790         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
10791         module.
10792         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
10793         gl_MODULE_INDICATOR_FOR_TESTS.
10794         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
10795         * modules/netdb-c++-tests: New file.
10796         * tests/test-netdb-c++.cc: New file.
10797
10798 2011-04-30  Bruno Haible  <bruno@clisp.org>
10799
10800         New modules 'vfscanf', 'vscanf'.
10801         * modules/vfscanf: New file.
10802         * modules/vscanf: New file.
10803         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
10804         here.
10805         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
10806         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
10807
10808 2011-04-30  Bruno Haible  <bruno@clisp.org>
10809
10810         passfd: Add comments.
10811         * lib/passfd.c: Add comments about platforms.
10812
10813 2011-04-30  Bruno Haible  <bruno@clisp.org>
10814
10815         sys_uio: Make <sys/uio.h> self-contained.
10816         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
10817         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
10818
10819 2011-04-30  Bruno Haible  <bruno@clisp.org>
10820
10821         sys_socket: Ensure 'struct iovec' definition.
10822         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
10823         <sys/socket.h>.
10824         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
10825
10826 2011-04-30  Bruno Haible  <bruno@clisp.org>
10827
10828         sys_uio: Protect definition of 'struct iovec'.
10829         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
10830         it as a C struct.
10831
10832 2011-04-30  Bruno Haible  <bruno@clisp.org>
10833
10834         manywarnings: fix indentation
10835         * m4/manywarnings.m4: Indent by 2 spaces consistently.
10836
10837 2011-04-30  Pádraig Brady <P@draigBrady.com>
10838
10839         manywarnings: add -Wno-missing-field-initializers if needed.
10840         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
10841         option if it's needed to allow initialization with { 0, }
10842
10843 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
10844
10845         announce-gen: cosmetic improvement
10846         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
10847
10848 2011-04-29  Jim Meyering  <meyering@redhat.com>
10849
10850         vc-list-files: indent with spaces, not TABs
10851         * build-aux/vc-list-files: Convert leading TABs to spaces,
10852         to match the style of most other files in gnulib.
10853
10854         announce-gen: indent with spaces, not TABs
10855         * build-aux/announce-gen: Convert all TABs to spaces, to match
10856         the style of most other files in gnulib.
10857
10858 2011-04-29  Eric Blake  <eblake@redhat.com>
10859
10860         quotearg: avoid uninitialized variable use
10861         * lib/quotearg.c (quoting_options_from_style): Initialize
10862         remaining fields, and ensure that custom styles are only used via
10863         quoting_options rather than quoting_style.
10864
10865 2011-04-29  Jim Meyering  <meyering@redhat.com>
10866
10867         maint.mk: remove unused VC-tag variable
10868         * top/maint.mk (VC-tag): Remove unused variable.
10869
10870 2011-04-29  Bruno Haible  <bruno@clisp.org>
10871
10872         netdb: fix gai_strerror replacements
10873         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
10874         * modules/netdb: Substitute it.
10875
10876 2011-04-29  Jim Meyering  <meyering@redhat.com>
10877
10878         test-getcwd.c: avoid new set-but-not-used warning
10879         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
10880         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
10881         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
10882         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
10883
10884         test-hash.c: avoid a new shadowing warning
10885         * tests/test-hash.c (main): Don't shadow "dup".
10886
10887 2011-04-28  Eric Blake  <eblake@redhat.com>
10888
10889         getaddrinfo: fix gai_strerror signature
10890         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
10891         and work around mingw with UNICODE defined.
10892         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
10893         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
10894         * modules/netdb (Makefile.am): Substitute it.
10895         * lib/netdb.in.h (gai_strerror): Declare replacement.
10896         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
10897         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
10898         the fix.
10899
10900         getsockopt: avoid compiler warning
10901         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
10902         Reported by Matthias Bolte.
10903
10904         tests: drop unused link dependency
10905         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
10906         * modules/dirent-safer-tests (Makefile.am): Likewise.
10907         * modules/fdopendir-tests (Makefile.am): Likewise.
10908         * modules/mkfifoat-tests (Makefile.am): Likewise.
10909         * modules/openat-safer-tests (Makefile.am): Likewise.
10910         * modules/openat-tests (Makefile.am): Likewise.
10911         * modules/readlinkat-tests (Makefile.am): Likewise.
10912         * modules/symlinkat-tests (Makefile.am): Likewise.
10913         * modules/linkat-tests (Makefile.am): Likewise.
10914         (Depends-on): Switch to filenamecat-lgpl.
10915         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
10916         LIBINTL.
10917         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
10918         * tests/test-linkat.c (main): Don't require xalloc.
10919
10920         hash, mgetgroups: drop xalloc dependency
10921         * lib/hash.c (includes): Adjust includes.
10922         * lib/mgetgroups.c (includes): Likewise.
10923         (xgetgroups): Move...
10924         * lib/xgetgroups.c: ...to new file.
10925         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
10926         * modules/xgetgroups: New file, split from...
10927         * modules/mgetgroups: ...here.
10928         (Depends-on): Add xalloc-oversized.
10929         * modules/hash (Depends-on): Likewise.
10930         * modules/hash-tests (Depends-on): Drop xalloc.
10931         (test_hash_LDADD): Drop unused library.
10932         * tests/test-hash.c (main): Break xalloc dependency.
10933         (includes): Drop unused include.
10934
10935         xalloc-oversized: new module
10936         * modules/xalloc-oversized: New module.
10937         * modules/xalloc (Depends-on): Add it.
10938         * lib/xalloc.h (xalloc_oversized): Move...
10939         * lib/xalloc-oversized.h: ...into new file.
10940
10941         utimecmp: drop dependency on xmalloc
10942         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
10943         due to memory pressure.
10944         * modules/utimecmp (Depends-on): Drop xalloc.
10945
10946 2011-04-27  Eric Blake  <eblake@redhat.com>
10947
10948         getcwd: fix mingw bugs
10949         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
10950         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
10951         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
10952
10953 2011-04-27  Bruno Haible  <bruno@clisp.org>
10954
10955         mkstemps: Ensure declaration on MacOS X 10.5.
10956         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
10957         * doc/glibc-functions/mkstemps.texi: Document header file problem on
10958         MacOS X.
10959
10960 2011-04-27  Bruno Haible  <bruno@clisp.org>
10961
10962         mkstemp: More documentation.
10963         * doc/posix-functions/mkstemp.texi: Document header file problem on
10964         MacOS X.
10965
10966 2011-04-27  Bruno Haible  <bruno@clisp.org>
10967
10968         mkstemp: Tweak configure message when cross-compiling.
10969         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
10970         result as a guess.
10971
10972 2011-04-27  Bruno Haible  <bruno@clisp.org>
10973
10974         clean-temp: Clarify what it does.
10975         * lib/clean-temp.h: Add more comments.
10976         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
10977         module.
10978         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
10979         * doc/glibc-functions/mkstemps.texi: Likewise.
10980         * doc/glibc-functions/mkostemps.texi: Likewise.
10981
10982 2011-04-27  Eric Blake  <eblake@redhat.com>
10983
10984         fchdir: avoid extra chdir and fix test
10985         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
10986         getcwd-lgpl.
10987         * lib/fchdir.c (get_name): Any absolute name will do; it does not
10988         have to be canonical.
10989         (canonicalize_file_name): Drop unused macro.
10990         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
10991
10992         filenamecat-lgpl: fix licence
10993         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
10994         when it was first created.
10995
10996         linkat, renameat: add missing dependency
10997         * modules/linkat (Depends-on): Require getcwd-lgpl.
10998         * modules/renameat (Depends-on): Likewise.
10999
11000         tests: reduce dependencies
11001         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11002         * tests/test-renameat.c (main): Likewise.
11003         * modules/linkat-tests (Depends-on): Relax dependency.
11004         * modules/renameat-tests (Depends-on): Likewise.
11005         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11006         dependency explicit.
11007
11008         save-cwd: reduce default dependency
11009         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11010         * lib/save-cwd.c: Update comments.
11011         * NEWS: Document the semantic change.
11012
11013         getcwd: enhance tests
11014         * tests/test-getcwd-lgpl.c: New file, taken from...
11015         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11016         repeat long path stress tests from m4 probe.
11017         * modules/getcwd-lgpl-tests: New module.
11018         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11019         * m4/getcwd-abort-bug.m4: Update comment.
11020         * m4/getcwd-path-max.m4: Likewise.
11021
11022         getcwd-lgpl: new module
11023         * modules/getcwd-lgpl: New module.
11024         * lib/getcwd-lgpl.c: New file.
11025         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11026         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11027         * modules/getcwd (configure.ac): Set C witness.
11028         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11029
11030         getcwd: tweak comments
11031         * m4/getcwd-abort-bug.m4: Fix comments.
11032         * m4/getcwd-path-max.m4: Likewise.
11033         * m4/getcwd.m4: Likewise.
11034
11035 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11036         and Eric Blake  <eblake@redhat.com>
11037
11038         mkstemp: replace if system version uses wrong permissions
11039         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11040         read/write mode bits set in file created by mkstemp.
11041         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11042
11043 2011-04-27  Eric Blake  <eblake@redhat.com>
11044
11045         passfd: avoid compiler warning
11046         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11047         Reported by Laine Stump.
11048
11049 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11050
11051         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11052         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11053
11054 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11055         and Eric Blake  <eblake@redhat.com>
11056
11057         mkstemp: mention clean-temp module
11058         * lib/mkstemp.c: Add comment.
11059         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11060
11061 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11062
11063         inttypes: also provide default values for 32-bit tests
11064         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11065         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11066
11067 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11068
11069         strtoumax: remove dependency on strtoimax
11070         This is like the strtoull change of yesterday.
11071         * modules/strtoumax (Files): Add lib/strtoimax.c.
11072         (Depends-on): Remove strtoimax and add verify.
11073
11074         inttypes-incomplete: new module
11075         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11076         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11077         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11078         of gl_INTTYPES_H.
11079         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11080         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11081         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11082         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11083         * modules/strtoumax, modules/xstrtol (Depends-on):
11084         Depend on inttypes-incomplete, not inttypes.
11085         * modules/inttypes-incomplete: New module, containing the contents
11086         of the old modules/inttypes module, except that the Files: section
11087         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11088         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11089         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11090         (Depends-on): Depend only on inttypes-incomplete.
11091         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11092
11093         inttypes: omit now-redundant strtoimax and strtoumax work
11094         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11095         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11096
11097         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11098         This supports apps that need pointers to strtoimax and strtoumax,
11099         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11100         nonexistent functions.  See
11101         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11102         et seq.
11103         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11104         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11105         a macro.
11106         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11107
11108 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11109
11110         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11111
11112 2011-04-25  Bruno Haible  <bruno@clisp.org>
11113
11114         strtol, strtoul: Mark modules as obsolete.
11115         * modules/strtol (Status, Notice): New sections.
11116         * modules/strtoul (Status, Notice): New sections.
11117
11118 2011-04-25  Bruno Haible  <bruno@clisp.org>
11119
11120         strtod: Remove check for strtod, unless supporting old platforms.
11121         * modules/strtod-obsolete: New file.
11122         * m4/strtod-obsolete.m4: New file.
11123         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11124         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11125         * modules/strtod (Depends-on): Add strtod-obsolete.
11126         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11127
11128 2011-04-25  Bruno Haible  <bruno@clisp.org>
11129
11130         strcase: Make module obsolete.
11131         * modules/strcase (Status, Notice): New sections.
11132
11133 2011-04-25  Bruno Haible  <bruno@clisp.org>
11134
11135         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11136         * modules/dup2-obsolete: New file.
11137         * m4/dup2-obsolete.m4: New file.
11138         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11139         gl_FUNC_DUP2_OBSOLETE is not also defined.
11140         * modules/dup2 (Depends-on): Add dup2-obsolete.
11141         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11142
11143 2011-04-25  Bruno Haible  <bruno@clisp.org>
11144
11145         strnlen: Avoid memchr related link error on old obsolete platforms.
11146         * modules/memchr-obsolete: New file.
11147         * m4/memchr-obsolete.m4: New file.
11148         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11149         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11150         * modules/memchr (Depends-on): Add memchr-obsolete.
11151         * modules/strnlen (Depends-on): Likewise.
11152         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11153
11154 2011-04-25  Jim Meyering  <meyering@redhat.com>
11155
11156         maint.mk: makefile_at_at_check extend and clean up
11157         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11158         in addition to */Makefile.am.
11159         Exempt legitimate uses of @VAR@ notation, e.g.,
11160         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11161         Remove obsolete coreutils-specific comment.
11162         Prompted by discussion here:
11163         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11164
11165 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11166
11167         strtoul: remove dependency on strtol
11168         This is so that 'configure' need not check for strtol merely because
11169         the application needs strtoul.
11170         * modules/strtoul (Files): Add lib/strtol.c.
11171         (Depends-on): Remove strtol.
11172
11173         strtoull: remove dependency on strtoul
11174         This is like the strtoll change.
11175         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11176         (Depends-on): Remove strtoul.
11177
11178         strtoll: remove dependency on strtol
11179         This is so that 'configure' need not check for strtol merely because
11180         the application needs strtoll.
11181         * modules/strtoll (Files): Add lib/strtol.c.
11182         (Depends-on): Remove strtol.
11183
11184 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11185
11186         inttypes: Move some configure check to module 'imaxdiv'.
11187         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11188         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11189         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11190
11191 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11192
11193         inttypes: Move some configure check to module 'imaxabs'.
11194         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11195         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11196         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11197
11198 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11199
11200         inttypes: Remove configure tests that are not needed since 2009-12-31.
11201         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11202         gl_cv_header_working_inttypes_h.
11203
11204 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11205
11206         * modules/strnlen (Depends-on): Remove memchr.
11207         The strnlen implementation doesn't need the memchr module's fixes; see
11208         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11209
11210         strtol: remove dependency on wchar
11211         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11212         * modules/strtol (Depends-on): Remove wchar.
11213
11214 2011-04-21  Eric Blake  <eblake@redhat.com>
11215
11216         passfd: fix test regression on Linux
11217         * modules/passfd-tests (configure.ac): Correct socketpair check.
11218
11219         passfd: speed up configure and drop unused code
11220         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11221         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11222         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11223         Instead of probing at configure for unix_scm_rights_bsd44_way,
11224         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11225         check to a struct member probe.
11226         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11227         (sendfd, recvfd): Update preprocessor checks.
11228         * modules/passfd (Files): Reflect rename, and drop unused file.
11229         (Depends-on): Drop unused dependency.
11230
11231         passfd: allow compilation on mingw
11232         * modules/sys_socket (Depends-on): Add sys_uio.
11233         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11234         iovec and a minimal struct msghdr.
11235         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11236         * tests/test-sys_socket.c (main): Enhance test.
11237         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11238         guaranteed to provide what we need.
11239         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11240         * modules/passfd-tests (Depends-on): Add sys_wait.
11241         * tests/test-passfd.c (main): Skip test on mingw, for now.
11242         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11243         partial 'struct msghdr' implementation.
11244
11245         sys_uio: new module
11246         * modules/sys_uio: New module.
11247         * modules/sys_uio-tests: Likewise.
11248         * lib/sys_uio.in.h: New file.
11249         * m4/sys_uio_h.m4: Likewise.
11250         * tests/test-sys_uio.c: Likewise.
11251         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11252         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11253
11254 2011-04-20  Jim Meyering  <meyering@redhat.com>
11255
11256         useless-if-before-free: avoid false-positive
11257         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11258         disjunct so that it too requires a terminating ";".  Without that,
11259         this script would identify as useless one statement from gcc that
11260         was not:
11261           if (aligned_ptr)
11262             free (((void **) aligned_ptr) [-1]);
11263
11264 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11265
11266         doc: update users.txt.
11267         * users.txt: Add barcode.
11268
11269 2011-04-19  Bruno Haible  <bruno@clisp.org>
11270
11271         ioctl: Remove link dependency on native Windows.
11272         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11273         (gl_close_fn, gl_ioctl_fn): New types.
11274         (struct fd_hook): Renamed from struct close_hook. Change type of
11275         private_close_fn field. Add private_ioctl_fn field.
11276         (close_hook_fn): Add parameter for primary close method.
11277         (execute_close_hooks, execute_all_close_hooks): Likewise.
11278         (ioctl_hook_fn): New type.
11279         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11280         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11281         argument.
11282         (unregister_fd_hook): Renamed from unregister_close_hook.
11283         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11284         Don't include <unistd.h>.
11285         (close): Remove undef.
11286         (anchor): Update.
11287         (execute_close_hooks): Add argument for primary close method.
11288         (execute_all_close_hooks): Likewise.
11289         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11290         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11291         argument. Allow each argument to be NULL.
11292         (unregister_fd_hook): Renamed from unregister_close_hook.
11293         * lib/close.c (rpl_close): Pass 'close' function pointer to
11294         execute_all_close_hooks.
11295         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11296         (primary_ioctl): New function.
11297         (ioctl): Don't call ioctlsocket here. Instead, call
11298         execute_all_ioctl_hooks.
11299         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11300         close method.
11301         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11302         (fd_sockets_hook): Renamed from close_sockets_hook.
11303         (gl_sockets_startup, gl_sockets_cleanup): Update.
11304         * modules/fd-hook: Renamed from modules/close-hook. Update.
11305         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11306         * modules/sockets (Depends-on): Likewise.
11307         * modules/ioctl (Depends-on): Add fd-hook.
11308         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11309         GNULIB_SOCKET.
11310
11311 2011-04-19  Bruno Haible  <bruno@clisp.org>
11312
11313         Move the support of O_NONBLOCK in open() to the 'open' module.
11314         * modules/nonblocking (Depends-on): Remove 'open'.
11315         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11316         gl_cv_have_open_O_NONBLOCK.
11317         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11318         O_NONBLOCK support.
11319         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11320
11321 2011-04-17  Bruno Haible  <bruno@clisp.org>
11322
11323         pipe2: Simplify code.
11324         * lib/pipe2.c (pipe2): Reduce code duplication.
11325
11326 2011-04-17  Bruno Haible  <bruno@clisp.org>
11327
11328         nonblocking: Add comment.
11329         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11330
11331 2011-04-17  Bruno Haible  <bruno@clisp.org>
11332
11333         nonblocking: Add tests for sockets.
11334         * tests/test-nonblocking-socket.sh: New file.
11335         * tests/test-nonblocking-socket-main.c: New file.
11336         * tests/test-nonblocking-socket-child.c: New file.
11337         * tests/test-nonblocking-socket.h: New file.
11338         * tests/socket-server.h: New file.
11339         * tests/socket-client.h: New file.
11340         * modules/nonblocking-socket-tests: New file.
11341         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11342
11343 2011-04-17  Bruno Haible  <bruno@clisp.org>
11344
11345         nonblocking: Add tests for pipes.
11346         * tests/test-nonblocking-pipe.sh: New file.
11347         * tests/test-nonblocking-pipe-main.c: New file.
11348         * tests/test-nonblocking-pipe-child.c: New file.
11349         * tests/test-nonblocking-pipe.h: New file.
11350         * tests/test-nonblocking-writer.h: New file.
11351         * tests/test-nonblocking-reader.h: New file.
11352         * tests/test-nonblocking-misc.h: New file.
11353         * modules/nonblocking-pipe-tests: New file.
11354         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
11355
11356 2011-04-16  Bruno Haible  <bruno@clisp.org>
11357
11358         gettext: Clarify the needed programmer actions.
11359         * modules/gettext (Notice): New field.
11360         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
11361
11362 2011-04-16  Bruno Haible  <bruno@clisp.org>
11363
11364         strchrnul: Tweak last commit.
11365         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
11366         bug.
11367         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
11368         as in _GL_FUNCDECL_SYS.
11369         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
11370         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
11371
11372 2011-04-15  Eric Blake  <eblake@redhat.com>
11373
11374         strchrnul: work around cygwin bug
11375         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
11376         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
11377         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
11378         * modules/string (Makefile.am): Substitute it.
11379         * lib/string.in.h (strchrnul): Use it.
11380
11381 2011-04-15  Bruno Haible  <bruno@clisp.org>
11382
11383         Don't require lib/stdio-write.c when only module 'stdio' is used.
11384         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
11385         invocation.
11386         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
11387
11388 2011-04-14  Bruno Haible  <bruno@clisp.org>
11389
11390         Support non-blocking pipe I/O in read() on native Windows.
11391         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
11392         (read): New declaration.
11393         * lib/read.c: New file.
11394         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
11395         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
11396         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
11397         vscanf): New declarations.
11398         * lib/stdio-read.c: New file.
11399         * m4/read.m4: New file.
11400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
11401         REPLACE_READ.
11402         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
11403         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11404         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
11405         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
11406         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
11407         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11408         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11409         * modules/read: New file.
11410         * modules/nonblocking (Files): Add lib/stdio-read.c.
11411         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
11412         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
11413         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11414         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11415         * modules/pread (Depends-on): Add read.
11416         * modules/safe-read (Depends-on): Likewise.
11417         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
11418         gets, scanf, vfscanf, vscanf): Verify signatures.
11419         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
11420         problem with non-blocking pipes.
11421         * doc/posix-functions/fgetc.texi: Likewise.
11422         * doc/posix-functions/fgets.texi: Likewise.
11423         * doc/posix-functions/fread.texi: Likewise.
11424         * doc/posix-functions/fscanf.texi: Likewise.
11425         * doc/posix-functions/getc.texi: Likewise.
11426         * doc/posix-functions/getchar.texi: Likewise.
11427         * doc/posix-functions/gets.texi: Likewise.
11428         * doc/posix-functions/scanf.texi: Likewise.
11429         * doc/posix-functions/vfscanf.texi: Likewise.
11430         * doc/posix-functions/vscanf.texi: Likewise.
11431
11432 2011-04-14  Bruno Haible  <bruno@clisp.org>
11433
11434         Support non-blocking pipe I/O in write() on native Windows.
11435         * lib/write.c (rpl_write): Split a write request that failed merely
11436         because the byte count was larger than the pipe buffer's size.
11437         * doc/posix-functions/write.texi: Mention the problem with large byte
11438         counts.
11439
11440 2011-04-14  Bruno Haible  <bruno@clisp.org>
11441
11442         wchar: Ensure that wchar_t gets defined on uClibc.
11443         * lib/wchar.in.h: On uClibc, include <stddef.h>.
11444         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
11445
11446 2011-04-13  Bruno Haible  <bruno@clisp.org>
11447
11448         safe-write, full-read: Avoid unnecessary compilation units.
11449         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
11450         (Depends-on): Remove safe-read. Add ssize_t.
11451         * modules/full-read (Files): Add lib/full-write.c.
11452         (Depends-on): Add full-write.
11453
11454 2011-04-13  Bruno Haible  <bruno@clisp.org>
11455
11456         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11457         * modules/pwrite (Depends-on): Add 'write'.
11458
11459 2011-04-13  Bruno Haible  <bruno@clisp.org>
11460
11461         Support non-blocking pipe I/O in write() on native Windows.
11462         * lib/unistd.in.h (write): Enable replacement also if
11463         GNULIB_UNISTD_H_NONBLOCKING is 1.
11464         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11465         (rpl_write): When failing to write on a non-blocking pipe, change
11466         errno from ENOSPC to EAGAIN.
11467         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11468         putchar, puts, vfprintf, vprintf): Enable replacement also if
11469         GNULIB_STDIO_H_NONBLOCKING is 1.
11470         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11471         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11472         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11473         CALL_WITH_SIGPIPE_EMULATION.
11474         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11475         * m4/nonblocking.m4: New file.
11476         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11477         for non-blocking I/O support.
11478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11479         GNULIB_UNISTD_H_NONBLOCKING.
11480         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11481         required for non-blocking I/O support.
11482         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11483         * modules/nonblocking (Files): Add m4/nonblocking.m4,
11484         lib/stdio-write.c, m4/asm-underscore.m4.
11485         (Depends-on): Add stdio, unistd.
11486         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
11487         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
11488         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
11489         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
11490         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
11491         problem with non-blocking pipes.
11492         * doc/posix-functions/fputc.texi: Likewise.
11493         * doc/posix-functions/fputs.texi: Likewise.
11494         * doc/posix-functions/fwrite.texi: Likewise.
11495         * doc/posix-functions/printf.texi: Likewise.
11496         * doc/posix-functions/putc.texi: Likewise.
11497         * doc/posix-functions/putchar.texi: Likewise.
11498         * doc/posix-functions/puts.texi: Likewise.
11499         * doc/posix-functions/vfprintf.texi: Likewise.
11500         * doc/posix-functions/vprintf.texi: Likewise.
11501         * doc/posix-functions/write.texi: Likewise.
11502
11503 2011-04-10  Jim Meyering  <meyering@redhat.com>
11504
11505         maint.mk: prohibit doubled words
11506         Detect them also when they're separated by a newline.
11507         There are 3 ways to customize it:
11508           - disable the test on a per file basis, as usual with rules using
11509             $(VC_LIST_EXCEPT)
11510           - replace the default doubled-word-selecting regexp (affects all files)
11511           - ignore a particular file-vs-doubled-word match
11512         I nearly used that last one to ignore the "is is" match in
11513         coreutils' NEWS file, since the text was "ls -is is ..."
11514         To do that, I would have added this line to cfg.mk:
11515           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
11516         but it would have ignored any "is is" match in NEWS.
11517         Low probability, but still...
11518         Instead, I changed the text, slightly:
11519           -  ls -is is now consistent with ls -lis in ignoring values returned
11520           +  "ls -is" is now consistent with ls -lis in ignoring values returned
11521         * top/maint.mk (prohibit_double_word_RE_): Provide default.
11522         (prohibit_doubled_word_): Define.
11523         (sc_prohibit_doubled_word): New rule.
11524         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11525
11526 2011-04-10  Jim Meyering  <meyering@redhat.com>
11527
11528         maint: fix doubled-word typo in comment
11529         * m4/gethostname.m4: s/is is/it is/
11530         * m4/getdomainname.m4: Likewise.
11531
11532 2011-04-10  Jim Meyering  <meyering@redhat.com>
11533
11534         maint: remove doubled word: s/it it/it/
11535         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
11536
11537 2011-04-10  Jim Meyering  <meyering@redhat.com>
11538
11539         maint.mk: remove useless semicolon and backslash
11540         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
11541         semicolon and backslash.
11542
11543 2011-04-10  Bruno Haible  <bruno@clisp.org>
11544
11545         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
11546         * modules/stdint-tests (Depends-on): Add wchar.
11547
11548 2011-04-10  Jim Meyering  <meyering@redhat.com>
11549
11550         maint: remove doubled words in comments, e.g., s/a a/a/
11551         * lib/strptime.c (day_of_the_week): s/the the/the/
11552         * tests/test-chown.h (test_chown): s/a a/a/
11553
11554         test-chown.h: correct a cast
11555         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
11556         when the destination is a stat.st_gid.
11557
11558 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
11559
11560         getaddrinfo: Fix test for sa_len member.
11561         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11562         include <sys/types.h> before <sys/socket.h>.
11563
11564 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11565
11566         maint: change "can not" to "cannot"
11567         * doc/posix-functions/iconv.texi (iconv): This one crossed line
11568         boundaries.
11569
11570 2011-04-09  Jim Meyering  <meyering@redhat.com>
11571
11572         maint: change "a a" to "a"
11573         * tests/test-lchown.h (test_lchown): s/a a/a/
11574
11575         maint.mk: prohibit \<the the\>
11576         * top/maint.mk (sc_prohibit_the_the): New rule.
11577
11578         maint: fix "the the" in comment
11579         * lib/count-one-bits.h: s/the the/the/
11580
11581         maint: change "can not" to "cannot"
11582         But do not change the occurrences in maintain.texi or in
11583         build-aux/po/Makefile.in.in, which I presume comes from gettext.
11584         * doc/gnulib-tool.texi: s/can not/cannot/
11585         * doc/posix-functions/accept.texi (accept): Likewise.
11586         * doc/posix-functions/socket.texi (socket): Likewise.
11587         * lib/mbrtowc.c: Likewise.
11588
11589         maint.mk: prohibit use of "can not"
11590         * top/maint.mk (sc_prohibit_can_not): New rule.
11591         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
11592
11593 2011-04-09  Bruno Haible  <bruno@clisp.org>
11594
11595         careadlinkat: Guard against misuse of careadlinkatcwd.
11596         * lib/careadlinkat.c: Include <stdlib.h>.
11597         (careadlinkatcwd): Check that the fd argument is as expected.
11598
11599 2011-04-09  Bruno Haible  <bruno@clisp.org>
11600
11601         careadlinkat: Use common coding style.
11602         * lib/careadlinkat.c: Move gnulib includes after system includes.
11603
11604 2011-04-09  Bruno Haible  <bruno@clisp.org>
11605
11606         careadlinkat: Clarify specification.
11607         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
11608         (careadlinkatcwd): Add comment.
11609         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
11610
11611 2011-04-09  Bruno Haible  <bruno@clisp.org>
11612
11613         areadlinkat: Avoid link error on many platforms.
11614         * modules/areadlinkat (Depends-on): Add areadlink.
11615
11616 2011-04-09  Bruno Haible  <bruno@clisp.org>
11617
11618         allocator, careadlinkat: Fix double-inclusion guard.
11619         * lib/allocator.h: Fix double-inclusion guard.
11620         * lib/careadlinkat.h: Likewise.
11621
11622 2011-04-09  Bruno Haible  <bruno@clisp.org>
11623
11624         relocatable-prog-wrapper: Update after module 'areadlink' changed.
11625         * lib/relocwrapper.c: Update dependencies hierarchy.
11626         * build-aux/install-reloc: Update list of files to be compiled.
11627         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
11628         lib/allocator.[hc].
11629
11630 2011-04-08  Eric Blake  <eblake@redhat.com>
11631
11632         strftime: silence gnulib-tool warning
11633         * modules/strftime-tests (Depends-on): Drop automatic dependency.
11634
11635 2011-04-08  Bruno Haible  <bruno@clisp.org>
11636
11637         verify: Fix syntax error with GCC 4.6 in C++ mode.
11638         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
11639         (HAVE_STATIC_ASSERT): New macro.
11640         (verify_true, verify): Use 'static_assert' if it is supported and
11641         '_Static_assert' is not supported.
11642
11643 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11644
11645         allocator: New module.
11646         * modules/allocator, lib/allocator.c: New files.
11647         * lib/allocator.h (stdlib_allocator): New decl.
11648         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
11649         Remove.  Do not include <stdlib.h>.
11650         (careadlinkat): Use stdlib_allocator instead of rolling our own.
11651         * modules/careadlinkat (Files): Remove lib/allocator.h.
11652         (Depends-on): Add allocator.
11653
11654         stdlib: let modules use system malloc, realloc
11655         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
11656         if !_GL_USE_STDLIB_ALLOC.
11657         (malloc, realloc): Limit this change to a smaller scope.
11658
11659         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
11660         (malloc, realloc): Don't #undef; no longer needed.
11661         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11662         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11663         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11664         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11665         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11666         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11667         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11668         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11669
11670         careadlinkat: rename members to avoid problem
11671         * lib/allocator.h (struct allocator): Rename members from
11672         malloc/realloc to allocate/reallocate, to avoid problems if malloc
11673         and realloc are #define'd.  Reported by Eric Blake in
11674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
11675         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
11676
11677 2011-04-08  Eric Blake  <eblake@redhat.com>
11678
11679         nonblocking: reduce dependency
11680         * tests/test-nonblocking.c: Only test sockets when in use.
11681         * modules/nonblocking-tests (Depends-on): Drop socket.
11682         (Makefile.am): Link even if sockets are not present.
11683         * modules/pipe2-tests (Makefile.am): Likewise.
11684         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
11685
11686         pipe2: fix O_NONBLOCK support on mingw
11687         * modules/pipe2 (Depends-on): Add nonblocking.
11688         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
11689         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
11690         * tests/test-nonblocking.c (main): Likewise.
11691         * modules/pipe2-tests (Makefile.am): Avoid link failure.
11692
11693         fcntl-h: fix O_ACCMODE on cygwin
11694         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
11695         * lib/fcntl.in.h (O_ACCMODE): Fix it.
11696
11697         pipe-filter: drop O_NONBLOCK workarounds
11698         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
11699         * modules/pipe-filter-ii (Depends-on): Likewise.
11700         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
11701
11702         nonblocking: provide O_NONBLOCK for mingw
11703         * modules/nonblocking (Depends-on): Add open.
11704         (configure.ac): Set new witness macro.
11705         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
11706         * modules/fcntl-h (Makefile.am): Substitute it.
11707         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
11708         nonblocking module is in use.
11709         * lib/nonblocking.c: Adjust portability test.
11710         * lib/open.c (open): Don't let native open see gnulib flag.
11711         * tests/test-fcntl-h.c (main): Enhance test.
11712         * tests/test-open.h (test_open): Likewise.
11713         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
11714
11715         careadlinkat: fix compilation error on mingw
11716         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
11717         within struct allocator.
11718
11719 2011-04-06  Eric Blake  <eblake@redhat.com>
11720
11721         binary-io: relicense under LGPLv2+
11722         * modules/binary-io (License): Relax to LGPLv2+.
11723         Requested for libvirt, and required by pipe2.
11724
11725 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
11726
11727         verify: use _Static_assert if available
11728         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
11729         (verify_true, verify): Use it if available.  This generates better
11730         diagnostics with GCC 4.6.0 and later.
11731
11732 2011-04-05  Bruno Haible  <bruno@clisp.org>
11733
11734         Remove leftover generated .h files after config.status changed.
11735
11736         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
11737         GL_GENERATE_ALLOCA_H.
11738         * modules/alloca-opt (Makefile.am): Remove alloca.h if
11739         GL_GENERATE_ALLOCA_H evaluates to false.
11740
11741         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
11742         GL_GENERATE_ARGZ_H.
11743         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
11744         evaluates to false.
11745
11746         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
11747         GL_GENERATE_BYTESWAP_H.
11748         * modules/byteswap (Makefile.am): Remove byteswap.h if
11749         GL_GENERATE_BYTESWAP_H evaluates to false.
11750
11751         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
11752         GL_GENERATE_ERRNO_H.
11753         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
11754         evaluates to false.
11755
11756         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
11757         GL_GENERATE_FLOAT_H.
11758         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
11759         evaluates to false.
11760
11761         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
11762         GL_GENERATE_FNMATCH_H.
11763         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
11764         GL_GENERATE_FNMATCH_H evaluates to false.
11765
11766         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
11767         GL_GENERATE_GLOB_H.
11768         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
11769         evaluates to false.
11770
11771         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
11772         automake conditional GL_GENERATE_ICONV_H.
11773         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
11774         evaluates to false.
11775
11776         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
11777         GL_GENERATE_NETINET_IN_H.
11778         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
11779         GL_GENERATE_NETINET_IN_H evaluates to false.
11780
11781         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
11782         conditional GL_GENERATE_PTHREAD_H.
11783         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
11784         * modules/pthread (Makefile.am): Remove pthread.h if
11785         GL_GENERATE_PTHREAD_H evaluates to false.
11786
11787         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
11788         GL_GENERATE_SCHED_H.
11789         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
11790         evaluates to false.
11791
11792         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
11793         conditional GL_GENERATE_SELINUX_CONTEXT_H.
11794         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
11795         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
11796
11797         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
11798         GL_GENERATE_STDARG_H.
11799         * modules/stdarg (Makefile.am): Remove stdarg.h if
11800         GL_GENERATE_STDARG_H evaluates to false.
11801
11802         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
11803         GL_GENERATE_STDBOOL_H.
11804         * modules/stdbool (Makefile.am): Remove stdbool.h if
11805         GL_GENERATE_STDBOOL_H evaluates to false.
11806
11807         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
11808         conditional GL_GENERATE_STDDEF_H.
11809         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
11810         * modules/stddef (Makefile.am): Remove stddef.h if
11811         GL_GENERATE_STDDEF_H evaluates to false.
11812
11813         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
11814         GL_GENERATE_STDINT_H.
11815         * modules/stdint (Makefile.am): Remove stdint.h if
11816         GL_GENERATE_STDINT_H evaluates to false.
11817
11818         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
11819         GL_GENERATE_SYSEXITS_H.
11820         * modules/sysexits (Makefile.am): Remove sysexits.h if
11821         GL_GENERATE_SYSEXITS_H evaluates to false.
11822
11823         Reported by Karl Berry and Ralf Wildenhues.
11824
11825 2011-04-05  Bruno Haible  <bruno@clisp.org>
11826
11827         Ensure to rebuild generated .h files when config.status has changed.
11828         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
11829         config.status.
11830         * modules/ctype (Makefile.am): Likewise.
11831         * modules/dirent (Makefile.am): Likewise.
11832         * modules/errno (Makefile.am): Likewise.
11833         * modules/fcntl-h (Makefile.am): Likewise.
11834         * modules/float (Makefile.am): Likewise.
11835         * modules/getopt-posix (Makefile.am): Likewise.
11836         * modules/glob (Makefile.am): Likewise.
11837         * modules/iconv-h (Makefile.am): Likewise.
11838         * modules/inttypes (Makefile.am): Likewise.
11839         * modules/langinfo (Makefile.am): Likewise.
11840         * modules/locale (Makefile.am): Likewise.
11841         * modules/math (Makefile.am): Likewise.
11842         * modules/netdb (Makefile.am): Likewise.
11843         * modules/netinet_in (Makefile.am): Likewise.
11844         * modules/poll-h (Makefile.am): Likewise.
11845         * modules/pthread (Makefile.am): Likewise.
11846         * modules/pty (Makefile.am): Likewise.
11847         * modules/sched (Makefile.am): Likewise.
11848         * modules/search (Makefile.am): Likewise.
11849         * modules/selinux-h (Makefile.am): Likewise.
11850         * modules/signal (Makefile.am): Likewise.
11851         * modules/spawn (Makefile.am): Likewise.
11852         * modules/stdarg (Makefile.am): Likewise.
11853         * modules/stdbool (Makefile.am): Likewise.
11854         * modules/stddef (Makefile.am): Likewise.
11855         * modules/stdint (Makefile.am): Likewise.
11856         * modules/stdio (Makefile.am): Likewise.
11857         * modules/stdlib (Makefile.am): Likewise.
11858         * modules/string (Makefile.am): Likewise.
11859         * modules/strings (Makefile.am): Likewise.
11860         * modules/sys_file (Makefile.am): Likewise.
11861         * modules/sys_ioctl (Makefile.am): Likewise.
11862         * modules/sys_select (Makefile.am): Likewise.
11863         * modules/sys_socket (Makefile.am): Likewise.
11864         * modules/sys_stat (Makefile.am): Likewise.
11865         * modules/sys_time (Makefile.am): Likewise.
11866         * modules/sys_times (Makefile.am): Likewise.
11867         * modules/sys_utsname (Makefile.am): Likewise.
11868         * modules/sys_wait (Makefile.am): Likewise.
11869         * modules/sysexits (Makefile.am): Likewise.
11870         * modules/termios (Makefile.am): Likewise.
11871         * modules/time (Makefile.am): Likewise.
11872         * modules/unistd (Makefile.am): Likewise.
11873         * modules/wchar (Makefile.am): Likewise.
11874         * modules/wctype-h (Makefile.am): Likewise.
11875         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
11876
11877 2011-04-05  Bruno Haible  <bruno@clisp.org>
11878
11879         pipe2: Relicense under LGPLv2+.
11880         * modules/pipe2 (License): Change to LGPLv2+.
11881         Requested by Eric Blake, for libvirt.
11882
11883 2011-04-05  Bruce Korb  <bkorb@gnu.org>
11884
11885         bootstrap: compute gnulib_extra_files after updating build_aux
11886         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
11887         change build_aux or also supply gnulib_extra_files.  Handle correctly.
11888
11889 2011-04-05  Eric Blake  <eblake@redhat.com>
11890
11891         bootstrap: preserve git whitelist item sorting
11892         * build-aux/bootstrap (sort_patterns): New function.
11893         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
11894
11895 2011-04-05  Simon Josefsson  <simon@josefsson.org>
11896
11897         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
11898         sc_space_tab check.
11899
11900 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11901
11902         areadlink, areadlinkat: rewrite in terms of careadlinkat
11903         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
11904         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
11905         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
11906         (malloc, realloc): Remove #undefs.
11907         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
11908         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
11909         readlink, ssize_t, stdint, unistd.
11910         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
11911         areadlink, stdint.
11912
11913         careadlinkat: new module
11914         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
11915         * modules/careadlinkat: New files, written by me with
11916         a review and feedback from Ben Pfaff in
11917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
11918
11919 2011-04-01  Bruno Haible  <bruno@clisp.org>
11920
11921         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
11922         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
11923         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
11924         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
11925         Reported by Bruce Korb <bruce.korb@gmail.com>.
11926
11927 2011-04-01  Bruno Haible  <bruno@clisp.org>
11928
11929         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
11930         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
11931         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
11932         * modules/wcpcpy (Depends-on): Add extensions.
11933         * modules/wcpncpy (Depends-on): Likewise.
11934         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
11935         systems.
11936         * doc/posix-functions/wcpncpy.texi: Likewise.
11937         * doc/posix-functions/wcwidth.texi: Likewise.
11938
11939 2011-03-31  Eric Blake  <eblake@redhat.com>
11940
11941         nonblocking: fix mingw test failures
11942         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
11943         non-blocking flag on regular file.
11944         (get_nonblocking_flag): Set errno on invalid fd.
11945         * tests/test-nonblocking.c (main): Avoid test failure on
11946         directories if fchdir is not active.
11947         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
11948
11949 2011-03-31  Bruno Haible  <bruno@clisp.org>
11950
11951         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
11952         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
11953         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
11954         Reported by Simon Josefsson <simon@josefsson.org>.
11955
11956 2011-03-31  Bruno Haible  <bruno@clisp.org>
11957         and Eric Blake  <eblake@redhat.com>
11958
11959         nonblocking: new module
11960         * modules/nonblocking: New module.
11961         * modules/nonblocking-tests: Likewise.
11962         * lib/nonblocking.h: New file.
11963         * lib/nonblocking.c: Likewise.
11964         * tests/test-nonblocking.c: New test.
11965         * lib/ioctl.c (ioctl) [mingw]: Update comment.
11966
11967 2011-03-30  Bruno Haible  <bruno@clisp.org>
11968
11969         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
11970         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
11971         instead of 'printf' format for GCC >= 4.4.
11972         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
11973         (fprintf, printf, vfprintf, vprintf): Declare with
11974         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
11975         the system's vfprintf() function.
11976         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
11977
11978 2011-03-30  Eric Blake  <eblake@redhat.com>
11979
11980         passfd: fix scoping bug
11981         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
11982         before sendmsg/recvmsg.
11983
11984         passfd: standardize coding conventions
11985         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
11986         can be learned at compile time.
11987         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
11988         ifdefs.
11989         (sendfd, recvfd): Follow gnulib code conventions.
11990
11991         passfd: fix incorrect sendmsg arguments
11992         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
11993         incorrect msg_controllen value.
11994         * modules/passfd-tests (Depends-on): Check for alarm.
11995         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
11996         Reported by Bastien ROUCARIES.
11997
11998 2011-03-30  Bruno Haible  <bruno@clisp.org>
11999
12000         c-strcasestr: Relicense under LGPLv2+.
12001         * modules/c-strcasestr (License): Change to LGPLv2+.
12002         Requested by Eric Blake, for libvirt.
12003
12004 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12005
12006         * users.txt: Add libidn2.  Fix libtasn1 link.
12007
12008 2011-03-30  Jim Meyering  <meyering@redhat.com>
12009
12010         tests: readlink* ("",... fails with EINVAL on newer kernels
12011         readlink and readlinkat have typically failed with ENOENT for
12012         the invalid, empty file name,  "".  However, with the advent
12013         of linux-2.6.39, they fail with EINVAL.
12014         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12015         when operating on the empty file name.
12016         * tests/test-readlink.h (test_readlink): Likewise.
12017
12018 2011-03-29  Bruno Haible  <bruno@clisp.org>
12019
12020         Relicense some modules under LGPLv2+, for libidn2.
12021         * modules/array-mergesort (License): Change to LGPLv2+.
12022         * modules/c-strcaseeq (License): Likewise.
12023         * modules/striconveh (License): Likewise.
12024         * modules/striconveha (License): Likewise.
12025         * modules/uniconv/base (License): Likewise.
12026         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12027         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12028         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12029         * modules/unictype/base (License): Likewise.
12030         * modules/unictype/bidiclass-of (License): Likewise.
12031         * modules/unictype/category-M (License): Likewise.
12032         * modules/unictype/category-none (License): Likewise.
12033         * modules/unictype/category-of (License): Likewise.
12034         * modules/unictype/category-test (License): Likewise.
12035         * modules/unictype/category-test-withtable (License): Likewise.
12036         * modules/unictype/combining-class (License): Likewise.
12037         * modules/unictype/joiningtype-of (License): Likewise.
12038         * modules/unictype/scripts (License): Likewise.
12039         * modules/uninorm/base (License): Likewise.
12040         * modules/uninorm/canonical-decomposition (License): Likewise.
12041         * modules/uninorm/composition (License): Likewise.
12042         * modules/uninorm/decompose-internal (License): Likewise.
12043         * modules/uninorm/decomposition-table (License): Likewise.
12044         * modules/uninorm/nfc (License): Likewise.
12045         * modules/uninorm/nfd (License): Likewise.
12046         * modules/uninorm/u32-normalize (License): Likewise.
12047         * modules/unistr/base (License): Likewise.
12048         * modules/unistr/u32-cpy (License): Likewise.
12049         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12050         * modules/unistr/u32-to-u8 (License): Likewise.
12051         * modules/unistr/u32-uctomb (License): Likewise.
12052         * modules/unistr/u8-check (License): Likewise.
12053         * modules/unistr/u8-mblen (License): Likewise.
12054         * modules/unistr/u8-mbtouc (License): Likewise.
12055         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12056         * modules/unistr/u8-mbtoucr (License): Likewise.
12057         * modules/unistr/u8-prev (License): Likewise.
12058         * modules/unistr/u8-strlen (License): Likewise.
12059         * modules/unistr/u8-to-u32 (License): Likewise.
12060         * modules/unistr/u8-uctomb (License): Likewise.
12061         * modules/unitypes (License): Likewise.
12062         Requested by Simon Josefsson.
12063
12064 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12065
12066         lib-symbol-visibility: Add a notice.
12067         * modules/lib-symbol-visibility (Notice): New field.
12068
12069 2011-03-29  Bruno Haible  <bruno@clisp.org>
12070
12071         getaddrinfo: Doc fix.
12072         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12073         section "fixed in Gnulib".
12074
12075 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12076
12077         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12078         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12079
12080 2011-03-26  Bruno Haible  <bruno@clisp.org>
12081
12082         unictype/property-byname: Reduce the number of load-time relocations.
12083         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12084         (UC_PROPERTY_INDEX_*): New enumeration values.
12085         (uc_property_byname): Convert an index from the lookup table to an
12086         uc_property_t.
12087         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12088         values.
12089
12090 2011-03-26  Bruno Haible  <bruno@clisp.org>
12091
12092         unictype/property-byname: Allow omitted word separators and aliases.
12093         * lib/unictype/pr_byname.gperf: Add property names without word
12094         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12095         for 'space'.
12096
12097 2011-03-26  Bruno Haible  <bruno@clisp.org>
12098
12099         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12100         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12101         also hyphens to space.
12102         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12103         without spaces.
12104         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12105
12106 2011-03-26  Bruno Haible  <bruno@clisp.org>
12107
12108         unictype/joiningtype-byname: Recognize long names as well.
12109         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12110         a long name.
12111         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12112         unictype/joiningtype_byname.h.
12113         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12114         * lib/unictype/joiningtype_byname.gperf: New file.
12115         * modules/unictype/joiningtype-byname (Files): Add
12116         lib/unictype/joiningtype_byname.gperf.
12117         (Depends-on): Add gperf.
12118         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12119         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12120         long names.
12121
12122         Tests for module 'unictype/joiningtype-longname'.
12123         * modules/unictype/joiningtype-longname-tests: New file.
12124         * tests/unictype/test-joiningtype_longname.c: New file.
12125
12126         New module 'unictype/joiningtype-longname'.
12127         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12128         * lib/unictype/joiningtype_longname.c: New file.
12129         * modules/unictype/joiningtype-longname: New file.
12130         * modules/unictype/joiningtype-all (Depends-on): Add
12131         unictype/joiningtype-longname.
12132
12133 2011-03-26  Bruno Haible  <bruno@clisp.org>
12134
12135         unictype/bidiclass-byname: Recognize long names as well.
12136         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12137         name.
12138         * lib/unictype/bidi_byname.c: Include <string.h>,
12139         unictype/bidi_byname.h.
12140         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12141         * lib/unictype/bidi_byname.gperf: New file.
12142         * modules/unictype/bidiclass-byname (Files): Add
12143         lib/unictype/bidi_byname.gperf.
12144         (Depends-on): Add gperf.
12145         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12146         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12147         long names.
12148
12149         Tests for module 'unictype/bidiclass-longname'.
12150         * modules/unictype/bidiclass-longname-tests: New file.
12151         * tests/unictype/test-bidi_longname.c: New file.
12152
12153         New module 'unictype/bidiclass-longname'.
12154         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12155         * lib/unictype/bidi_longname.c: New file.
12156         * modules/unictype/bidiclass-longname: New file.
12157         * modules/unictype/bidiclass-all (Depends-on): Add
12158         unictype/bidiclass-longname.
12159
12160 2011-03-26  Bruno Haible  <bruno@clisp.org>
12161
12162         unictype/bidi*: Rename modules.
12163         * modules/unictype/bidiclass-all: Renamed from
12164         modules/unictype/bidicategory-all.
12165         * modules/unictype/bidiclass-name: Renamed from
12166         modules/unictype/bidiclass-name.
12167         (Description): Update.
12168         * modules/unictype/bidiclass-name-tests: Renamed from
12169         modules/unictype/bidicategory-name-tests.
12170         * modules/unictype/bidiclass-byname: Renamed from
12171         modules/unictype/bidicategory-byname.
12172         (Description): Update.
12173         * modules/unictype/bidiclass-byname-tests: Renamed from
12174         modules/unictype/bidicategory-byname-tests.
12175         * modules/unictype/bidiclass-of: Renamed from
12176         modules/unictype/bidicategory-of.
12177         (Description): Update.
12178         * modules/unictype/bidiclass-of-tests: Renamed from
12179         modules/unictype/bidicategory-of-tests.
12180         * modules/unictype/bidiclass-test: Renamed from
12181         modules/unictype/bidicategory-test.
12182         (Description): Update.
12183         * modules/unictype/bidiclass-test-tests: Renamed from
12184         modules/unictype/bidicategory-test-tests.
12185         * modules/unictype/bidicategory-all: New file, a simple redirection.
12186         * modules/unictype/bidicategory-name: Likewise.
12187         * modules/unictype/bidicategory-byname: Likewise.
12188         * modules/unictype/bidicategory-of: Likewise.
12189         * modules/unictype/bidicategory-test: Likewise.
12190         * modules/unictype/property-bidi-* (Dependencies): Update.
12191         * lib/unictype/bidi_*.c: Update comment.
12192
12193 2011-03-26  Bruno Haible  <bruno@clisp.org>
12194
12195         unictype/bidi*: Rename functions, part 2.
12196         * modules/unictype/bidicategory-name (configure.ac): Update required
12197         libunistring version.
12198         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12199
12200 2011-03-25  Bruno Haible  <bruno@clisp.org>
12201
12202         New module 'unictype/combining-class-all'.
12203         * modules/unictype/combining-class-all: New file.
12204
12205         Tests for module 'unictype/combining-class-byname'.
12206         * modules/unictype/combining-class-byname-tests: New file.
12207         * tests/unictype/test-combiningclass_byname.c: New file.
12208
12209         New module 'unictype/combining-class-byname'.
12210         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12211         * lib/unictype/combiningclass_byname.c: New file.
12212         * lib/unictype/combiningclass_byname.gperf: New file.
12213         * modules/unictype/combining-class-byname: New file.
12214
12215         Tests for module 'unictype/combining-class-longname'.
12216         * modules/unictype/combining-class-longname-tests: New file.
12217         * tests/unictype/test-combiningclass_longname.c: New file.
12218
12219         New module 'unictype/combining-class-longname'.
12220         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12221         * lib/unictype/combiningclass_longname.c: New file.
12222         * modules/unictype/combining-class-longname: New file.
12223
12224         Tests for module 'unictype/combining-class-name'.
12225         * modules/unictype/combining-class-name-tests: New file.
12226         * tests/unictype/test-combiningclass_name.c: New file.
12227
12228         New module 'unictype/combining-class-name'.
12229         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12230         * lib/unictype/combiningclass_name.c: New file.
12231         * modules/unictype/combining-class-name: New file.
12232
12233 2011-03-25  Bruno Haible  <bruno@clisp.org>
12234
12235         unictype/combining-class: Rename source files.
12236         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12237         of unictype/combining.h.
12238         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12239         Update.
12240         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12241         * modules/unictype/combining-class (Description): Fix.
12242         (Files, Makefile.am): Update.
12243         * tests/unictype/test-combiningclass.c: Renamed from
12244         tests/unictype/test-combining.c.
12245         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12246
12247 2011-03-25  Bruno Haible  <bruno@clisp.org>
12248
12249         unictype: Update list of canonical combining classes.
12250         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12251
12252 2011-03-25  Bruno Haible  <bruno@clisp.org>
12253
12254         unictype/category-byname: Recognize long names as well.
12255         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12256         a long name.
12257         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12258         unictype/categ_byname.h.
12259         (UC_CATEGORY_INDEX_*): New enumeration values.
12260         (uc_general_category_byname): Use uc_general_category_lookup and
12261         convert from index to value.
12262         * lib/unictype/categ_byname.gperf: New file.
12263         * modules/unictype/category-byname (Files): Add
12264         lib/unictype/categ_byname.gperf.
12265         (Depends-on): Add gperf.
12266         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12267         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12268         long names.
12269
12270         Tests for module 'unictype/category-longname'.
12271         * modules/unictype/category-longname-tests: New file.
12272         * tests/unictype/test-categ_longname.c: New file.
12273
12274         New module 'unictype/category-longname'.
12275         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12276         * lib/unictype/categ_longname.c: New file.
12277         * modules/unictype/category-longname: New file.
12278         * modules/unictype/category-all (Depends-on): Add it.
12279
12280 2011-03-25  Bruno Haible  <bruno@clisp.org>
12281
12282         Tests for module 'unictype/category-LC'.
12283         * modules/unictype/category-LC-tests: New file.
12284         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12285
12286         New module 'unictype/category-LC'.
12287         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12288         (UC_CATEGORY_LC): New declaration.
12289         (UC_CASED_LETTER): New macro.
12290         * lib/gen-uni-tables.c (is_category_LC): New function.
12291         (output_categories): Also handle category LC.
12292         (UC_CATEGORY_MASK_LC): New enumeration value.
12293         (general_category_byname): Also handle category LC.
12294         * lib/unictype/categ_LC.c: New file.
12295         * lib/unictype/categ_LC.h: New file, automatically generated.
12296         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12297         category LC.
12298         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12299         * modules/unictype/category-LC: New file.
12300         * modules/unictype/category-byname (Depends-on): Add
12301         unictype/category-LC.
12302         * modules/unictype/category-all (Depends-on): Likewise.
12303
12304 2011-03-25  Eric Blake  <eblake@redhat.com>
12305
12306         xmalloc: revert yesterday's regression
12307         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12308         realloc's underlying behavior (allowing allocation of zero-size
12309         objects, especially if malloc-gnu is also in use).
12310
12311 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12312
12313         maint.mk: add missing version to VC-tag
12314         * top/maint.mk: git tag was missing actual tag name; add it.
12315
12316         valgrind: do leak checking, and exit with code 1 on error (not 0)
12317         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12318         to VALGRIND.
12319
12320 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12321
12322         posix-modules: say what it does.
12323         * posix-modules: Add a line to the --help output saying what it does.
12324
12325 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12326
12327         xmalloc: Do not leak if underlying realloc is C99 compatible.
12328         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12329         This avoids a leak on C99-based systems.  See
12330         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12331
12332 2011-03-24  Eric Blake  <eblake@redhat.com>
12333
12334         realloc: document portability problem
12335         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12336         passing 0 size to realloc.
12337
12338 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12339
12340         doc: update users.txt
12341         * users.txt: Add cvsps, tmpwatch
12342
12343 2011-03-23  Matt Rice  <ratmice@gmail.com>
12344
12345         doc: update users.txt
12346         * users.txt: Add gdb.
12347
12348 2011-03-23  Jim Meyering  <meyering@redhat.com>
12349
12350         doc: update users.txt
12351         Looking through matches up to the following URL (there are still
12352         several more pages), I found several projects that use gnulib:
12353         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
12354         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
12355         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
12356
12357 2011-03-22  Bruno Haible  <bruno@clisp.org>
12358
12359         unictype/bidi*: Rename functions.
12360         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
12361         uc_bidi_class, uc_is_bidi_class): New declarations.
12362         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
12363         uc_bidi_category_byname.
12364         (uc_bidi_category_byname): New function.
12365         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
12366         u_bidi_category_name.
12367         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
12368         (uc_bidi_category_name): New function.
12369         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
12370         uc_bidi_category.
12371         (uc_bidi_category): New function.
12372         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
12373         uc_is_bidi_category. Invoke uc_bidi_class.
12374         (uc_is_bidi_category): New function.
12375         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
12376         instead of uc_bidi_category_byname.
12377         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
12378         instead of uc_bidi_category_name.
12379         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
12380         uc_bidi_category.
12381         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
12382         instead of uc_is_bidi_category.
12383
12384 2011-03-21  Bruno Haible  <bruno@clisp.org>
12385
12386         New module 'unictype/joininggroup-all'.
12387         * modules/unictype/joininggroup-all: New file.
12388
12389         Tests for module 'unictype/joininggroup-of'.
12390         * modules/unictype/joininggroup-of-tests: New file.
12391         * tests/unictype/test-joininggroup_of.c: New file.
12392         * tests/unictype/test-joininggroup_of.h: New file, automatically
12393         generated by gen-uni-tables.
12394
12395         New module 'unictype/joininggroup-of'.
12396         * modules/unictype/joininggroup-of: New file.
12397         * lib/unictype/joininggroup_of.c: New file.
12398         * lib/unictype/joininggroup_of.h: New file, automatically generated by
12399         gen-uni-tables.
12400
12401         Tests for module 'unictype/joininggroup-byname'.
12402         * modules/unictype/joininggroup-byname-tests: New file.
12403         * tests/unictype/test-joininggroup_byname.c: New file.
12404
12405         New module 'unictype/joininggroup-byname'.
12406         * modules/unictype/joininggroup-byname: New file.
12407         * lib/unictype/joininggroup_byname.c: New file.
12408         * lib/unictype/joininggroup_byname.gperf: New file.
12409
12410         Tests for module 'unictype/joininggroup-name'.
12411         * modules/unictype/joininggroup-name-tests: New file.
12412         * tests/unictype/test-joininggroup_name.c: New file.
12413
12414         New module 'unictype/joininggroup-name'.
12415         * modules/unictype/joininggroup-name: New file.
12416         * lib/unictype/joininggroup_name.c: New file.
12417         * lib/unictype/joininggroup_name.h: New file.
12418
12419         New module 'unictype/joiningtype-all'.
12420         * modules/unictype/joiningtype-all: New file.
12421
12422         Tests for module 'unictype/joiningtype-of'.
12423         * modules/unictype/joiningtype-of-tests: New file.
12424         * tests/unictype/test-joiningtype_of.c: New file.
12425         * tests/unictype/test-joiningtype_of.h: New file, automatically
12426         generated by gen-uni-tables.
12427
12428         New module 'unictype/joiningtype-of'.
12429         * modules/unictype/joiningtype-of: New file.
12430         * lib/unictype/joiningtype_of.c: New file.
12431         * lib/unictype/joiningtype_of.h: New file, automatically generated by
12432         gen-uni-tables.
12433
12434         Tests for module 'unictype/joiningtype-byname'.
12435         * modules/unictype/joiningtype-byname-tests: New file.
12436         * tests/unictype/test-joiningtype_byname.c: New file.
12437
12438         New module 'unictype/joiningtype-byname'.
12439         * modules/unictype/joiningtype-byname: New file.
12440         * lib/unictype/joiningtype_byname.c: New file.
12441
12442         Tests for module 'unictype/joiningtype-name'.
12443         * modules/unictype/joiningtype-name-tests: New file.
12444         * tests/unictype/test-joiningtype_name.c: New file.
12445
12446         New module 'unictype/joiningtype-name'.
12447         * modules/unictype/joiningtype-name: New file.
12448         * lib/unictype/joiningtype_name.c: New file.
12449
12450         unictype: Add support for Arabic shaping properties.
12451         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
12452         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12453         declarations.
12454         (UC_JOINING_GROUP_*): New enumeration values.
12455         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12456         declarations.
12457         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12458         (unicode_joining_type): New variable.
12459         (UC_JOINING_GROUP_*): New enumeration values.
12460         (unicode_joining_group): New variable.
12461         (fill_arabicshaping, joining_type_as_c_identifier,
12462         output_joining_type_test, output_joining_type,
12463         joining_group_as_c_identifier, output_joining_group_test,
12464         output_joining_group): New functions.
12465         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12466         fill_arabicshaping and output_joining_type_test, output_joining_type,
12467         output_joining_group_test, output_joining_group.
12468         Reported by Simon Josefsson.
12469
12470 2011-03-21  Jim Meyering  <meyering@redhat.com>
12471
12472         strftime: fix a bug in yesterday's change
12473         * lib/strftime.c (add): Accommodate width's initial value of -1.
12474         Otherwise, nstrftime would copy uninitialized data into
12475         the result buffer.
12476
12477 2011-03-21  Jim Meyering  <meyering@redhat.com>
12478
12479         tests: add strftime-tests module
12480         * tests/test-strftime.c: New file.
12481         * modules/strftime-tests: New module.
12482
12483 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12484
12485         strftime: don't assume a byte count fits in 'int'
12486         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
12487         found this problem by static analysis, using gcc -Wstrict-overflow
12488         (GCC 4.5.2, x86-64).  This reported an optimization that depended
12489         on an integer overflow having undefined behavior, but it turns out
12490         that the argument is a size, which might not fit in 'int' anyway,
12491
12492 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12493
12494         stdio: don't require ignore_value around fwrite
12495
12496         This patch works around libc bug 11959
12497         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
12498         Without this patch, applications must often write
12499         ignore_value (fwrite (...)) even though the ignore_value is
12500         not helpful here.  It's common to write many objects, using
12501         fwrite/printf/etc., and then use ferror to detect output error.
12502
12503         I considered making this patch optional, but decided against it,
12504         because libc is obviously being inconsistent here: there is no
12505         reason libc should insist that user code must inspect fwrite
12506         return's value without also insisting that it inspect printf's,
12507         putchar's, etc.  If user code wants to have a strict style where
12508         all these functions' values are checked (so that ferror need not
12509         be checked), we could add support for that style in a new gnulib
12510         module, but in the meantime it's better to be consistent and to
12511         support common usage.
12512
12513         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
12514         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
12515         that we are compiling in checking mode, and if not C++, and
12516         if not already wrapping fwrite for some other reason.
12517         (fwrite): #define to rpl_fwrite if the latter is defined.
12518
12519 2011-03-20  Bruno Haible  <bruno@clisp.org>
12520
12521         verror: Fix compilation error introduced on 2011-02-13.
12522         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12523         instead of __attribute__.
12524         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12525
12526 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12527             Bruno Haible  <bruno@clisp.org>
12528
12529         socklen: do not depend on sys_socket
12530         While trying to modify Emacs to use gnulib's socklen module,
12531         I discovered a circular dependency: socklen depends on sys_socket
12532         and vice versa.  Emacs can use socklen, but it does not need
12533         sys_socket because it has its own substitute for sys/socket.h.
12534         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
12535         gl_TYPE_SOCKLEN_T.
12536         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
12537         gl_PREREQ_SYS_H_SOCKET.
12538         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
12539         gl_PREREQ_SYS_H_SOCKET.
12540         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
12541         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
12542         * modules/socklen (Depends-on): Do not depend on sys_socket.
12543         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
12544
12545 2011-03-20  Jim Meyering  <meyering@redhat.com>
12546
12547         maint.mk: sort file names *after* new transformation
12548         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
12549         prefix would have led to an unwarranted failure in GNU parted.
12550         Sort after that transformation.
12551
12552 2011-03-19  Jim Meyering  <meyering@redhat.com>
12553
12554         maint.mk: fix po-file syntax-check rule
12555         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
12556         Patch by Bruno Haible.
12557
12558 2011-03-19  Bruno Haible  <bruno@clisp.org>
12559
12560         socklen: Update comment.
12561         * m4/socklen.m4: Update comment about platforms.
12562
12563 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12564             Bruno Haible  <bruno@clisp.org>
12565
12566         inet_ntop, inet_pton: Simplify.
12567         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
12568         documented to provide socklen_t and we already depend on sys_socket.
12569         * modules/inet_pton (Depends-on): Likewise.
12570         * lib/arpa_inet.in.h: Adjust comment.
12571
12572 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12573             Bruno Haible  <bruno@clisp.org>
12574
12575         netdb: Simplify.
12576         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
12577         documented to provide socklen_t and we already depend on sys_socket.
12578         * lib/netdb.in.h: Adjust comment.
12579
12580 2011-03-19  Bruno Haible  <bruno@clisp.org>
12581
12582         sys_socket, netdb: Document problem with socklen_t.
12583         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
12584         platforms.
12585         * doc/posix-headers/netdb.texi: Likewise.
12586
12587 2011-03-18  Eric Blake  <eblake@redhat.com>
12588
12589         maint.mk: let po check work in VPATH build
12590         * top/maint.mk (po_file): Allow cfg.mk override.
12591         (sc_po_check): Allow VPATH use.
12592         Reported by Jiri Denemark.
12593
12594 2011-03-16  Jim Meyering  <meyering@redhat.com>
12595
12596         maint.mk: allow fine-grained syntax-check exclusion via Make variables
12597         Before, you would have had to create one .x-sc_ file per rule in order
12598         to exempt offending files.  Now, you may instead use a Make variable --
12599         usually defined in cfg.mk -- whose name identifies the affected rule.
12600         * top/maint.mk (_sc_excl): Define.
12601         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
12602         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
12603
12604 2011-03-13  Bruno Haible  <bruno@clisp.org>
12605
12606         ignore-value tests: Avoid warnings.
12607         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
12608         empty for gcc < 3.4.
12609
12610 2011-03-13  Bruno Haible  <bruno@clisp.org>
12611
12612         passfd: Fix link error on Solaris.
12613         * modules/passfd (Description): Correct.
12614         (Depends-on): Add socketlib.
12615         (Link): New section.
12616         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
12617
12618 2011-03-13  Bruno Haible  <bruno@clisp.org>
12619
12620         passfd: Fix link error on AIX 5.2.
12621         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
12622
12623 2011-03-13  Bruno Haible  <bruno@clisp.org>
12624
12625         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
12626         * lib/sys_socket.in.h: Include <stddef.h>.
12627         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
12628         CMSG_FIRSTHDR. Remove unused variable.
12629
12630 2011-03-13  Bruno Haible  <bruno@clisp.org>
12631
12632         passfd: Fix compilation error on OpenBSD.
12633         * lib/passfd.c: Include <sys/uio.h>.
12634
12635 2011-03-13  Bruno Haible  <bruno@clisp.org>
12636
12637         passfd test: Fix warnings.
12638         * tests/test-passfd.c: Include <sys/wait.h>.
12639         (main): Fix typo.
12640
12641 2011-03-13  Bruno Haible  <bruno@clisp.org>
12642
12643         passfd module, part 4, tweaks.
12644         * tests/test-passfd.c: Reorder includes.
12645         (main): Fix perror and printf calls.
12646
12647 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12648
12649         passfd module, part 4.
12650         * modules/passfd-tests: New file.
12651         * tests/test-passfd.c: New file.
12652
12653 2011-03-13  Jim Meyering  <meyering@redhat.com>
12654
12655         Makefile: rely on GNU make; derive syntax-check rule names
12656         Rather than requiring that each sc_ rule be listed as a dependent
12657         of "check", use features of GNU make to derive the list.
12658         * Makefile (syntax-check-rules): Define.
12659         (check): Depend on the new variable, not the hard-coded list.
12660
12661 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
12662             Bruno Haible  <bruno@clisp.org>
12663
12664         passfd module, part 3.
12665         * lib/passfd.h (recvfd): Add a flags argument.
12666         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
12667         (recvfd): Add a flags argument.
12668         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
12669         exists.
12670         * modules/passfd (Depends-on): Add cloexec.
12671         Suggested by Eric Blake.
12672
12673 2011-03-13  Bruno Haible  <bruno@clisp.org>
12674
12675         passfd module, part 2, tweaks.
12676         * modules/passfd (Files): Reorder.
12677         (Depends-on): Remove errno.
12678         (Include): Remove <sys/socket.h>, <sys/un.h>.
12679         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
12680         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
12681         specification header. Include <sys/socket.h> always. Don't include
12682         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
12683         (sendfd): Clarify that it sets errno when it fails.
12684         (recvfd): Fix specification.
12685
12686 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12687
12688         passfd module, part 2.
12689         * modules/passfd: New file.
12690         * lib/passfd.h: New file.
12691         * lib/passfd.c: New file.
12692
12693 2011-03-12  Bruno Haible  <bruno@clisp.org>
12694
12695         wcswidth, mbswidth: Avoid integer overflow.
12696         * lib/wcswidth.c: Include <limits.h>.
12697         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
12698         * lib/mbswidth.c: Include <limits.h>.
12699         (mbsnwidth): Avoid 'int' overflow.
12700         Reported by Jim Meyering.
12701
12702 2011-03-12  Bruno Haible  <bruno@clisp.org>
12703
12704         futimens, utimensat: Avoid endless recursion on Solaris 10.
12705         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
12706         Solaris.
12707         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
12708         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
12709
12710 2011-03-11  Jim Meyering  <meyering@redhat.com>
12711
12712         maint.mk: relax a regexp to accommodate other formatting styles
12713         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
12714         between "ngettext" and the following "(".
12715
12716 2011-03-11  Pádraig Brady <P@draigBrady.com>
12717
12718         maint.mk: suppress a false positive warning
12719         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
12720         diagnostics are marked with ngettext.
12721
12722 2011-03-10  Eric Blake  <eblake@redhat.com>
12723
12724         wchar: add explicit dependencies, for Tru64
12725         * modules/mbmemcasecoll (Depends-on): Add wchar.
12726         * modules/mbtowc (Depends-on): Likewise.
12727         * modules/vasnprintf (Depends-on): Likewise.
12728         * modules/unistdio/u-printf-args (Depends-on): Likewise.
12729         * modules/wctomb (Depends-on): Likewise.
12730         Reported by Peter O'Gorman.
12731
12732 2011-03-08  Bruno Haible  <bruno@clisp.org>
12733
12734         passfd module, part 1, tweaks.
12735         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
12736         Improve indentation. Improve AC_MSG_CHECKING messages.
12737         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
12738         gl_SOCKET_FAMILIES.
12739
12740 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12741
12742         passfd module, part 1.
12743         * m4/afunix.m4: New file.
12744         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
12745         sockets.
12746
12747 2011-03-08  Bruno Haible  <bruno@clisp.org>
12748
12749         regex-quote: New API.
12750         * lib/regex-quote.h: Include <stdbool.h>.
12751         (struct regex_quote_spec): New type.
12752         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12753         New declarations.
12754         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12755         'const struct regex_quote_spec *' argument.
12756         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
12757         (pcre_special): New constant.
12758         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12759         New functions.
12760         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12761         'const struct regex_quote_spec *' argument.
12762         * modules/regex-quote (Depends-on): Add stdbool.
12763         * tests/test-regex-quote.c (check): Update for new API. Add test for
12764         anchored results.
12765         * NEWS: Mention the API change.
12766         Reported by Reuben Thomas and Eric Blake.
12767
12768 2011-03-06  Bruno Haible  <bruno@clisp.org>
12769
12770         regex-quote: Fix creation of POSIX extended regular expressions.
12771         * lib/regex-quote.c (ere_special): Add grouping and alternation
12772         operators.
12773
12774 2011-03-05  Bruno Haible  <bruno@clisp.org>
12775
12776         doc: Improve doc regarding autopoint vs. gnulib.
12777         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
12778         disable autopoint while running autoreconf.
12779         Suggested by Ralf Wildenhues.
12780
12781 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12782
12783         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
12784         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
12785
12786 2011-03-03  Bruce Korb  <bkorb@gnu.org>
12787
12788         parse-duration: remove xalloc.h dependency
12789         * lib/parse-duration.c (parse_period): handle NULL return from
12790         strdup instead of calling xstrdup().
12791         * modules/parse-duration: remove "xalloc" dependency
12792
12793 2011-03-03  Matthew Booth  <mbooth@redhat.com>
12794
12795         bootstrap: honor m4_base when running aclocal
12796         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
12797
12798 2011-03-02  Jim Meyering  <meyering@redhat.com>
12799
12800         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
12801         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
12802         on request from Matt Booth.
12803
12804 2011-03-01  Eric Blake  <eblake@redhat.com>
12805
12806         test-link: work on Hurd
12807         * tests/test-link.h (test_link): Hurd rejects linking directories
12808         with EISDIR instead of the POSIX-mandated EPERM.
12809
12810 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
12811
12812         stdio: simplify by moving files to printf-posix, sigpipe
12813         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
12814         since this symbol is needed only if printf is replaced.
12815         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
12816         Require gl_ASM_SYMBOL_PREFIX.
12817         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
12818         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
12819         (Depends-on): Add 'raise'.
12820         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
12821         * modules/stdio (Files): Remove lib/stdio-write.c,
12822         m4/asm-underscore.m4.
12823         (Depends-on): Remove 'raise'.
12824
12825         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
12826         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
12827         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
12828         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
12829
12830 2011-02-28  Bruno Haible  <bruno@clisp.org>
12831
12832         localcharset: Assume ANSI C behaviour of free().
12833         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
12834         calling free().
12835         Suggested by Simon Josefsson <simon@josefsson.org>.
12836
12837 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
12838             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
12839             Bruno Haible  <bruno@clisp.org>  (tiny change)
12840
12841         On Cygwin, use /proc file system instead of win32 API.
12842         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
12843         Win32 file names.
12844         (DllMain): Simplify by removing Cygwin specific code.
12845         (find_shared_library_fullname): Use Linux specific implementation also
12846         for Cygwin.
12847         (get_shared_library_fullname): Update accordingly.
12848         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
12849         Win32 file names.
12850         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
12851         Cygwin specific code.
12852
12853 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
12854             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
12855
12856         Fix OpenMP flag detection for various Fortran compilers.
12857         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
12858         OpenMP-conditional compilation construct, to force compile
12859         failure with missing OpenMP flag.
12860         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
12861
12862 2011-02-25  Eric Blake  <eblake@redhat.com>
12863
12864         strstr: expand test coverage
12865         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
12866         compilation.
12867         * tests/test-memmem.c (main): Duplicate tests.
12868         * tests/test-strcasestr.c (main): Likewise.
12869         * tests/test-c-strcasestr.c (main): Likewise.
12870
12871 2011-02-25  Jim Meyering  <meyering@redhat.com>
12872
12873         maint.mk: detect missing-NL-at-EOF, too
12874         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
12875         it also detects when a file lacks a newline at EOF.
12876         (require_exactly_one_NL_at_EOF_): Renamed from
12877         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
12878         since people may well have .x-sc_... file names tied to the
12879         existing name.  Suggested by Eric Blake.
12880
12881 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12882
12883         dirname: move m4/dos.m4 functionality into lib/dosname.h
12884
12885         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
12886         extracts symbols from it, puts them into config.h; but it's much
12887         easier to use the symbols directly.  filename.h already does this,
12888         but it disagrees with dos.m4 in some respects.  This patch
12889         introduces a different include file dosname.h that packages up
12890         dos.m4, and then later we can work on merging filename.h and
12891         dosname.h.  Applications that need only the easy-to-configure
12892         symbols should consider including dosname.h rather than dirname.h.
12893         * NEWS: Mention incompatible changes.
12894         * m4/dos.m4: Remove.
12895         * lib/dosname.h, modules/dosname: New files.
12896         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
12897         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
12898         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
12899         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
12900         Include dosname.h, not dirname.h.
12901         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
12902         Include dosname.h, for definitions of symbols like ISSLASH
12903         that used to be in config.h.
12904         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
12905         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12906         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12907         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12908         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
12909         * modules/rmdir (Files): Likewise.
12910         * modules/stat (Files): Likewise.
12911         * modules/unlink (Files): Likewise.
12912         * modules/dirname-lgpl (Depends-on): Add dosname.
12913         * modules/lstat (Depends-on): Likewise.
12914         * modules/openat (Depends-on): Likewise.
12915         * modules/rmdir (Depends-on): Likewise.
12916         * modules/savewd (Depends-on): Likewise.
12917         * modules/stat (Depends-on): Likewise.
12918         * modules/unlink (Depends-on): Likewise.
12919         * modules/openat (Depends-on): Remove dirname-lgpl.
12920         * modules/savewd (Depends-on): Likewise.
12921         * tests/test-dirname.c: Do not use removed symbols like
12922         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
12923         the remaining symbols, e.g., ISSLASH ('\\').
12924
12925 2011-02-25  Eric Blake  <eblake@redhat.com>
12926
12927         strstr: revert patches that introduced bug and pessimization
12928         * lib/str-two-way.h: Add another reference.
12929         (two_way_short_needle, two_way_long_needle): Revert changes from
12930         2011-02-24; they pessimize search speed.
12931         (critical_factorization): Partially revert changes from
12932         2010-06-22; they violate the requirement that the left half of the
12933         needle be smaller than the period of the needle.
12934
12935 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12936
12937         filenamecat: remove unnecessary dependency on dirname-lgpl
12938         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
12939         is no direct dependency, just an indirect one via filenamecat-lgpl.
12940
12941         remove: remove unnecessary use of m4/dos.m4
12942         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
12943         * modules/remove (FILES): Remove m4/dos.m4.
12944
12945         * lib/openat-proc.c: Don't include dirname.h; not needed.
12946
12947         backupfile: remove unnecessary use of m4/dos.m4
12948         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
12949         of its symbols are used by the backupfile code.  backupfile.c does
12950         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
12951         for the rare case of programs that want all their backup file
12952         names to live within 8+3 limits, and dos.m4 doesn't address that.
12953         * modules/backupfile (Files): Remove m4/dos.m4.
12954
12955 2011-02-24  Jim Meyering  <meyering@redhat.com>
12956
12957         strstr: fix a bug whereby strstr would mistakenly return NULL
12958         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
12959         in period calculation.
12960         (two_way_long_needle): Likewise.
12961         The original problem was reported by Mike Stump in
12962         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
12963         Ralf Wildenhues provided the short needle and haystack.
12964         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
12965         Add a more involved test to trigger the bug in two_way_long_needle.
12966
12967 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12968
12969         gnulib-tool: remove use of bold display in help screen
12970         * gnulib-tool (func_usage): Do not use bold display anymore in the
12971         help screen.  That was just meant to be a temporary emphasis for a
12972         backward-incompatible change.
12973
12974 2011-02-23  Bruno Haible  <bruno@clisp.org>
12975
12976         Fix misindentation of preprocessor directives.
12977         * lib/argp-namefrob.h: Reindent preprocessor directives.
12978         * lib/getopt_int.h (struct _getopt_data): Likewise.
12979         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
12980         * lib/vasnprintf.c (decode_long_double): Likewise.
12981         * tests/test-argmatch.c: Insert blank lines, for clarity.
12982         * tests/test-exclude.c: Likewise.
12983
12984 2011-02-22  Bruno Haible  <bruno@clisp.org>
12985
12986         ioctl: Fix for MacOS X in 64-bit mode.
12987         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
12988         value.
12989         Suggested by Eric Blake.
12990         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
12991
12992 2011-02-22  Jim Meyering  <meyering@redhat.com>
12993
12994         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
12995         * Makefile (sc_cpp_indent_check): Don't limit the check to files
12996         in lib/.
12997
12998 2011-02-22  Eric Blake  <eblake@redhat.com>
12999
13000         maint: avoid any CDPATH issue
13001         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13002
13003         maint: adjust cpp indentation for my modules, as well
13004         * Makefile (sc_cpp_indent_check): Add my name.
13005         * lib/fbufmode.c: Filter through cppi.
13006         * lib/fpurge.c: Likewise.
13007         * lib/freadable.c: Likewise.
13008         * lib/freading.c: Likewise.
13009         * lib/fwritable.c: Likewise.
13010         * lib/fwriting.c: Likewise.
13011         * lib/sigaction.c: Likewise.
13012
13013 2011-02-22  Jim Meyering  <meyering@redhat.com>
13014
13015         maint: adjust cpp indentation to reflect nesting depth
13016         I.e., in a block of code that begins with an unnested "#if",
13017         put one space between the "#" in column 1 and following token.
13018         For example,
13019         -#include <sys/vfs.h>
13020         +# include <sys/vfs.h>
13021         Do this only in .c files that are part of a module I maintain.
13022         * lib/linkat.c: Filter through cppi.
13023         * lib/nanosleep.c: Likewise.
13024         * lib/openat.c: Likewise.
13025         * lib/openat-die.c: Likewise.
13026         * lib/dup3.c: Likewise.
13027         * lib/fchownat.c: Likewise.
13028         * lib/flock.c: Likewise.
13029         * lib/fsync.c: Likewise.
13030         * lib/fts.c: Likewise.
13031         * lib/getpass.c: Likewise.
13032         * lib/gettimeofday.c: Likewise.
13033         * lib/userspec.c: Likewise.
13034         * Makefile (sc_cpp_indent_check): New rule, to check this.
13035
13036 2011-02-22  Bruno Haible  <bruno@clisp.org>
13037
13038         New module 'wctomb'.
13039         * lib/stdlib.in.h (wctomb): New declaration.
13040         * lib/wctomb.c: New file.
13041         * lib/wctomb-impl.h: New file.
13042         * m4/wctomb.m4: New file.
13043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13044         REPLACE_WCTOMB.
13045         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13046         REPLACE_WCTOMB.
13047         * modules/wctomb: New file.
13048         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13049         * doc/posix-functions/wctomb.texi: Mention the new module.
13050         * modules/wctob (Depends-on): Add wctomb.
13051
13052 2011-02-22  Bruno Haible  <bruno@clisp.org>
13053
13054         New module 'mbtowc'.
13055         * lib/stdlib.in.h (mbtowc): New declaration.
13056         * lib/mbtowc.c: New file.
13057         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13058         * m4/mbtowc.m4: New file.
13059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13060         REPLACE_MBTOWC.
13061         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13062         REPLACE_MBTOWC.
13063         * modules/mbtowc: New file.
13064         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13065         * doc/posix-functions/mbtowc.texi: Mention the new module.
13066         * modules/btowc (Depends-on): Add mbtowc.
13067
13068 2011-02-22  Bruno Haible  <bruno@clisp.org>
13069
13070         wcrtomb: Add more tests for native Windows platforms.
13071         * tests/test-wcrtomb-w32-1.sh: New file.
13072         * tests/test-wcrtomb-w32-2.sh: New file.
13073         * tests/test-wcrtomb-w32-3.sh: New file.
13074         * tests/test-wcrtomb-w32-4.sh: New file.
13075         * tests/test-wcrtomb-w32-5.sh: New file.
13076         * tests/test-wcrtomb-w32.c: New file.
13077         * modules/wcrtomb-tests (Files): Add them.
13078         (Makefile.am): Arrange to run these tests.
13079         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13080         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13081
13082 2011-02-20  Bruno Haible  <bruno@clisp.org>
13083
13084         wcrtomb: Enhance test.
13085         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13086
13087 2011-02-20  Bruno Haible  <bruno@clisp.org>
13088
13089         mbrtowc: Tiny optimization.
13090         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13091
13092 2011-02-20  Jim Meyering  <meyering@redhat.com>
13093
13094         test-exclude.c: remove unmatched #endif
13095         * tests/test-exclude.c: Remove stray #endif, left over from
13096         the change of a week ago.
13097
13098 2011-02-19  Jim Meyering  <meyering@redhat.com>
13099
13100         git-version-gen: skip "-dirty" check when appropriate
13101         * build-aux/git-version-gen: Don't run any git commands when the
13102         version string comes from .tarball-version.  Prior to this, we
13103         would run git update-index --refresh even from a just-unpacked
13104         tarball directory, and that could affect a .git/ directory in a
13105         parent of the build directory.  Reported by Mike Frysinger.
13106
13107 2011-02-19  Bruno Haible  <bruno@clisp.org>
13108
13109         unictype/property-byname: Reduce the size of the 'data' segment.
13110         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13111
13112 2011-02-19  Bruno Haible  <bruno@clisp.org>
13113
13114         unictype/scripts: Reduce the size of the 'data' segment.
13115         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13116         '%pic'.
13117         * lib/unictype/scripts_byname.gperf: Regenerated.
13118
13119 2011-02-19  Bruno Haible  <bruno@clisp.org>
13120
13121         stdint: Update documentation.
13122         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13123
13124 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13125
13126         stdint: omit redundant check for wchar.h
13127         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13128         always tests whether wchar.h exists, so remove the now-redundant test.
13129
13130 2011-02-18  Bruno Haible  <bruno@clisp.org>
13131
13132         stdint: Cut dependency to module 'wchar'.
13133         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13134         include the necessary prerequisites.
13135         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13136         * modules/stdint (Depends-on): Remove wchar.
13137         (Makefile.am): Substitute HAVE_WCHAR_H.
13138         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13139
13140 2011-02-18  Eric Blake  <eblake@redhat.com>
13141
13142         longlong: skip, rather than fail, on cross-compilation
13143         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13144         when cross-compiling; regression from 2011-02-16.
13145
13146 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13147
13148         * NEWS: Mention 2011-02-08 change to stdlib.
13149
13150 2011-02-17  Bruno Haible  <bruno@clisp.org>
13151
13152         getloadavg: Add comments about platforms.
13153         * m4/getloadavg.m4: Add comment.
13154         * lib/getloadavg.c: Likewise.
13155
13156 2011-02-17  Bruno Haible  <bruno@clisp.org>
13157
13158         getloadavg: Fix link error on Solaris 2.6.
13159         * modules/getloadavg (Link): New section.
13160         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13161         linking test-getloadavg.
13162         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13163         getloadavg.
13164
13165 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13166
13167         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13168         It was 'int', but this doesn't match the IRIX 6.5 manual.
13169         Suggested by Bruno Haible in
13170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13171
13172 2011-02-17  Bruno Haible  <bruno@clisp.org>
13173
13174         havelib: Fix comments.
13175         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13176         change.
13177
13178 2011-02-17  Bruno Haible  <bruno@clisp.org>
13179
13180         havelib: Update config.rpath.
13181         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13182
13183 2011-02-17  Bruno Haible  <bruno@clisp.org>
13184
13185         getloadavg test: Add some plausibility checks.
13186         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13187         is improbable.
13188
13189 2011-02-16  Eric Blake  <eblake@redhat.com>
13190
13191         maintainer-makefile: make syntax-check a no-op from tarballs
13192         * top/maint.mk (no-vc-detected): New rule.
13193         (local-checks-available): Use it to avoid hanging if someone tries
13194         'make syntax-check' from a tarball.  Also append to any non-syntax
13195         checks already defined in cfg.mk.
13196
13197 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13198
13199         longlong: tune, particularly for common case of c99
13200
13201         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13202         or running anything if c99, or if unsigned long long int does not
13203         work.  In either case, we know the answer without further tests.
13204         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13205         it at most once, and use its results for both long long int and
13206         unsigned long long int.  This is more likely to be efficient in
13207         the common case where the program wants to check for both long
13208         long int and unsigned long long int.
13209         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13210         since the answer is already known.
13211
13212 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13213
13214         getloadavg: set errno
13215         * lib/getloadavg.c: Set errno when returning -1.  If no other
13216         error number looks appropriate, set it to ENOSYS if the getloadavg
13217         looks like it can't possibly ever work, ENOTSUP otherwise.
13218         Suggested by Bruno Haible in
13219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13220
13221         getloadavg: trim unused parts and speed up 'configure'
13222         * NEWS: Document this.
13223         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13224         always compiled if getloadavg is absent.
13225         Move test code to ...
13226         * tests/test-getloadavg.c: New file, containing previous
13227         contents of test from lib/getloadavg.c.  It also contains
13228         suggestions by Bruno Haible in
13229         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13230         * modules/getloadavg-tests: New file.
13231         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13232         Do tests in the same order as they're needed for getloadavg.c.
13233         Omit setgid-related tests that generate symbols KMEM_GROUP,
13234         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13235         Do only the tests that are needed to see whether the system has
13236         getloadavg, moving the other tests into ...
13237         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13238         NLIST_NAME_UNION; nobody should be using it.  Do not define
13239         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13240         relevant, as the user of this module shouldn't care how getloadavg
13241         is implemented.
13242
13243         getloadavg: omit unused var
13244         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13245
13246 2011-02-15  Jim Meyering  <meyering@redhat.com>
13247
13248         doc: update users.txt
13249         * users.txt: Update iwhd's URL.
13250
13251 2011-02-13  Bruno Haible  <bruno@clisp.org>
13252
13253         Consistent macro naming for macros that use GCC __attribute__.
13254         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13255         _ATTRIBUTE_NONNULL_.
13256         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13257         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13258         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13259         ATTRIBUTE_DEPRECATED.
13260         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13261         ATTRIBUTE_NORETURN.
13262         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13263         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13264         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13265         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13266         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13267         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13268         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13269         ATTRIBUTE_SENTINEL.
13270         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13271         ATTRIBUTE_RETURN_CHECK.
13272         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13273         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13274         ATTRIBUTE_NORETURN.
13275         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13276         Reported by Paul Eggert.
13277
13278 2011-02-13  Bruno Haible  <bruno@clisp.org>
13279
13280         Don't interfere with a program's definition of __attribute__.
13281         * lib/argp.h (__attribute__): Remove definition.
13282         (_GL_ATTRIBUTE_FORMAT): New macro.
13283         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13284         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13285         (_GL_ATTRIBUTE_FORMAT): New macro.
13286         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13287         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13288         GCC 3 or newer.
13289         * lib/error.h (__attribute__): Remove definition.
13290         (_GL_ATTRIBUTE_FORMAT): New macro.
13291         (error, error_at_line): Use it.
13292         * lib/hash.h (__attribute__): Remove definition.
13293         (ATTRIBUTE_WUR): Update definition. Define always.
13294         * lib/openat.h (__attribute__): Remove definition.
13295         (ATTRIBUTE_NORETURN): Update definition. Define always.
13296         * lib/sigpipe-die.h (__attribute__): Remove definition.
13297         (ATTRIBUTE_NORETURN): Update definition. Define always.
13298         * lib/vasnprintf.h (__attribute__): Remove definition.
13299         (_GL_ATTRIBUTE_FORMAT): New macro.
13300         (asnprintf, vasnprintf): Use it.
13301         * lib/xalloc.h (__attribute__): Remove definition.
13302         (ATTRIBUTE_NORETURN): Update definition. Define always.
13303         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13304         * lib/xmemdup0.h (__attribute__): Remove definition.
13305         (ATTRIBUTE_NORETURN): Update definition. Define always.
13306         * lib/xprintf.h (__attribute__): Remove definition.
13307         (_GL_ATTRIBUTE_FORMAT): New macro.
13308         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13309         * lib/xstrtol.h (__attribute__): Remove definition.
13310         (ATTRIBUTE_NORETURN): Update definition. Define always.
13311         * lib/xvasprintf.h (__attribute__): Remove definition.
13312         (_GL_ATTRIBUTE_FORMAT): New macro.
13313         (xasprintf, xvasprintf): Use it.
13314         * tests/test-argmatch.c (__attribute__): Remove definition.
13315         (ATTRIBUTE_NORETURN): Update definition. Define always.
13316         * tests/test-exclude.c (__attribute__): Remove definition.
13317         (ATTRIBUTE_NORETURN): Update definition. Define always.
13318         Reported by Paul Eggert.
13319
13320 2011-02-13  Bruno Haible  <bruno@clisp.org>
13321
13322         mbrtowc: Add more tests for native Windows platforms.
13323         * tests/test-mbrtowc-w32-1.sh: New file.
13324         * tests/test-mbrtowc-w32-2.sh: New file.
13325         * tests/test-mbrtowc-w32-3.sh: New file.
13326         * tests/test-mbrtowc-w32-4.sh: New file.
13327         * tests/test-mbrtowc-w32-5.sh: New file.
13328         * tests/test-mbrtowc-w32.c: New file.
13329         * modules/mbrtowc-tests (Files): Add them.
13330         (Makefile.am): Arrange to run these tests.
13331         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13332         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13333
13334 2011-02-13  Bruno Haible  <bruno@clisp.org>
13335
13336         mbrtowc: Work around native Windows bug.
13337         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13338         guess when no suitable locale for testing was found.
13339         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13340
13341 2011-02-13  Bruno Haible  <bruno@clisp.org>
13342
13343         mbsinit: Work around mingw bug.
13344         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13345         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13346         Windows.
13347         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13348
13349 2011-02-13  Bruno Haible  <bruno@clisp.org>
13350
13351         mbsinit: Don't crash for a NULL argument.
13352         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13353         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
13354
13355 2011-02-13  Bruno Haible  <bruno@clisp.org>
13356
13357         Don't interfere with a program's definition of __attribute__.
13358         * lib/stdio.in.h (__attribute__): Remove definition.
13359         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
13360         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13361         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
13362         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
13363         * lib/string.in.h (__attribute__): Remove definition.
13364         Reported by Paul Eggert.
13365
13366 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13367
13368         stdlib: don't get in the way of non-GCC __attribute__
13369         See thread starting at
13370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
13371         Revert previous stdlib change, installing the following instead:
13372         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
13373         to get in the way of a non-GCC compiler that supports __attribute__.
13374         (_GL_ATTRIBUTE_RETURN): New macro.
13375         (_Exit): Use it instead of __attribute__.
13376
13377 2011-02-12  Bruno Haible  <bruno@clisp.org>
13378
13379         quotearg test: Avoid test failure on mingw.
13380         * tests/test-quotearg.sh: Convert the locale identifier from native
13381         Windows syntax to Unix syntax.
13382
13383 2011-02-12  Bruno Haible  <bruno@clisp.org>
13384
13385         setlocale: Prefer gnulib's override over libintl's override.
13386         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
13387         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
13388         GNULIB_defined_setlocale is set.
13389
13390 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13391
13392         stdlib: support non-GCC __attribute__
13393
13394         Fix a serious and tricky problem encountered when attempting to
13395         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
13396         5.5, but it crashed due to memory corruption on Solaris 10 with
13397         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
13398         bits that are otherwise zero.  This tagging is optional inside
13399         Emacs but is preferred and is used when __attribute__ ((__aligned
13400         (8))) works, as it does with both recent-enough GCC and with Sun C
13401         5.11.  However, Sun C 5.11 is not GCC and does not #define
13402         __GNUC__ and __GNUC_MINOR__.
13403
13404         When I added the getloadavg module to Emacs, it brought in
13405         stdlib.in.h, which contained this fragment:
13406
13407            #ifndef __attribute__
13408            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
13409            #  define __attribute__(Spec)   /* empty */
13410            # endif
13411            #endif
13412
13413         When files that include <stdlib.h> were compiled with Sun C 5.11,
13414         the above code disabled __attribute__ ((__aligned (8))), which
13415         caused variables to not be properly aligned, which eventually led
13416         to the pointer corruption mentioned above.  (This was a bit hard
13417         to diagnose, unfortunately.)
13418
13419         Several "#define __attribute__(X) /* empty */" code snippets need
13420         to be eradicated from Gnulib to work with non-GCC compilers that
13421         support __attribute__.  The Autoconf way to do this is to test for
13422         each kind of attribute that we want support for, and selectively
13423         enable that in source code.
13424
13425         Fix this problem just for stdlib.h, by adding a test for the
13426         __noreturn__ attribute, and change stdlib.in.h to use that test
13427         when needed.  This technique can be easily generalized to the
13428         other *.in.h files and attributes, and a similar technique can be
13429         used for *.h and *.c files.  This patch is enough to solve the
13430         problem for Emacs + getloadavg, and I thought I'd publish it for
13431         feedback before undertaking further, similar fixes in other
13432         modules.
13433
13434         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
13435         because it's not needed for stdlib.h.  It merely substitutes the
13436         value directly into stdlib.h.  We may well need to #define it, or
13437         similar symbols, for other modules, but it's nice to also have an
13438         option to not #define it for applications like Emacs that do not
13439         need it.
13440
13441         * lib/stdlib.in.h (__attribute__): Do not #define.
13442         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
13443         be defined only if the _Exit module is also used.
13444         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
13445         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
13446         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
13447         platforms.
13448         * modules/_Exit (Files): Add m4/attribute.m4.
13449         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
13450         * m4/attribute.m4: New file.
13451
13452 2011-02-12  Bruno Haible  <bruno@clisp.org>
13453
13454         wcsrtombs: Work around bug on native Windows.
13455         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13456         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13457         instead of len.
13458         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13459
13460 2011-02-12  Bruno Haible  <bruno@clisp.org>
13461
13462         mbsrtowcs: Work around bug on native Windows.
13463         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13464         against mingw bug.
13465         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13466
13467 2011-02-12  Bruno Haible  <bruno@clisp.org>
13468
13469         Avoid setlocale bugs in tests.
13470         * modules/btowc (Dependencies): Add setlocale.
13471         * modules/c-strcase (Dependencies): Likewise.
13472         * modules/mbmemcasecmp (Dependencies): Likewise.
13473         * modules/mbmemcasecoll (Dependencies): Likewise.
13474         * modules/mbrtowc (Dependencies): Likewise.
13475         * modules/mbscasecmp (Dependencies): Likewise.
13476         * modules/mbscasestr (Dependencies): Likewise.
13477         * modules/mbschr (Dependencies): Likewise.
13478         * modules/mbscspn (Dependencies): Likewise.
13479         * modules/mbsinit (Dependencies): Likewise.
13480         * modules/mbsncasecmp (Dependencies): Likewise.
13481         * modules/mbsnrtowcs (Dependencies): Likewise.
13482         * modules/mbspbrk (Dependencies): Likewise.
13483         * modules/mbspcasecmp (Dependencies): Likewise.
13484         * modules/mbsrchr (Dependencies): Likewise.
13485         * modules/mbsrtowcs (Dependencies): Likewise.
13486         * modules/mbsspn (Dependencies): Likewise.
13487         * modules/mbsstr (Dependencies): Likewise.
13488         * modules/nl_langinfo (Dependencies): Likewise.
13489         * modules/quotearg (Dependencies): Likewise.
13490         * modules/unicase/locale-language (Dependencies): Likewise.
13491         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
13492         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
13493         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
13494         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
13495         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
13496         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
13497         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
13498         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
13499         * modules/vasnprintf-posix (Dependencies): Likewise.
13500         * modules/wcrtomb (Dependencies): Likewise.
13501         * modules/wcsnrtombs (Dependencies): Likewise.
13502         * modules/wcsrtombs (Dependencies): Likewise.
13503
13504 2011-02-12  Bruno Haible  <bruno@clisp.org>
13505
13506         setlocale: Workaround native Windows bug.
13507         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
13508         succeeds but sets LC_CTYPE to "C", report a failure.
13509         * tests/test-setlocale2.sh: New file.
13510         * tests/test-setlocale2.c: New file.
13511         * modules/setlocale-tests (Files): Add the new files.
13512         (Makefile.am): Enable test-setlocale2.sh test.
13513         * doc/posix-functions/setlocale.texi: Mention workaround.
13514
13515 2011-02-11  Bruno Haible  <bruno@clisp.org>
13516
13517         Tests for module 'setlocale'.
13518         * modules/setlocale-tests: New file.
13519         * tests/test-setlocale1.sh: New file.
13520         * tests/test-setlocale1.c: New file.
13521
13522         New module 'setlocale'.
13523         * lib/locale.in.h (setlocale): New declaration.
13524         * lib/setlocale.c: New file, based on
13525         gettext/gettext-runtime/intl/setlocale.c.
13526         * m4/setlocale.m4: New file.
13527         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
13528         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
13529         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
13530         REPLACE_SETLOCALE.
13531         * modules/setlocale: New file.
13532         * tests/test-locale-c++.cc: Test the declaration of setlocale.
13533         * doc/posix-functions/setlocale.texi: Mention the new module.
13534
13535 2011-02-11  Bruno Haible  <bruno@clisp.org>
13536
13537         Prepare for locale dependent tests on mingw.
13538         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
13539         because it has the wrong locale encoding.
13540         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
13541         French_France.1252 instead of "fr".
13542         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
13543         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
13544         because it has the wrong locale encoding.
13545         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
13546         native Windows, try Turkish_Turkey.65001.
13547         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
13548         Chinese_China.54936.
13549
13550         Prepare for locale dependent tests on mingw.
13551         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
13552         differently.
13553         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
13554         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
13555         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13556         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13557
13558 2011-02-11  Eric Blake  <eblake@redhat.com>
13559
13560         strptime: avoid compiler warnings
13561         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
13562         compiler warnings about dead code.
13563         Reported by Daniel P. Berrange.
13564
13565 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
13566
13567         doc: update users.txt
13568         * users.txt: Add rcs.
13569
13570 2011-02-10  John W. Eaton  <jwe@gnu.org>
13571
13572         doc: update users.txt
13573         * users.txt: Add octave.
13574
13575 2011-02-10  Jim Meyering  <meyering@redhat.com>
13576
13577         doc: update users.txt
13578         * users.txt: Add iwhd.
13579
13580 2011-02-09  Bruno Haible  <bruno@clisp.org>
13581
13582         gnulib-tool: Make copyright notice adjustment more robust.
13583         * gnulib-tool (func_import): In sed_transform_main_lib_file,
13584         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
13585         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
13586         License".
13587         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
13588
13589 2011-02-06  Bruno Haible  <bruno@clisp.org>
13590
13591         New module 'towctrans'.
13592         * modules/towctrans: New file.
13593         * lib/wctype.in.h (towctrans): New declaration.
13594         * lib/towctrans.c: New file.
13595         * lib/towctrans-impl.h: New file.
13596         * m4/towctrans.m4: New file.
13597         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
13598         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
13599         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
13600         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
13601         * doc/posix-functions/towctrans.texi: Mention the new module.
13602
13603 2011-02-06  Bruno Haible  <bruno@clisp.org>
13604
13605         New module 'wctrans'.
13606         * modules/wctrans: New file.
13607         * lib/wctype.in.h (wctrans): New declaration.
13608         * lib/wctrans.c: New file.
13609         * lib/wctrans-impl.h: New file.
13610         * m4/wctrans.m4: New file.
13611         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
13612         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
13613         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
13614         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
13615         * doc/posix-functions/wctrans.texi: Mention the new module.
13616
13617 2011-02-06  Bruno Haible  <bruno@clisp.org>
13618
13619         New module 'iswctype'.
13620         * modules/iswctype: New file.
13621         * lib/wctype.in.h (iswctype): New declaration.
13622         * lib/iswctype.c: New file.
13623         * lib/iswctype-impl.h: New file.
13624         * m4/iswctype.m4: New file.
13625         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
13626         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
13627         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
13628         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
13629         * doc/posix-functions/iswctype.texi: Mention the new module and the
13630         HP-UX 11.00 problem.
13631
13632 2011-02-06  Bruno Haible  <bruno@clisp.org>
13633
13634         New module 'wctype'.
13635         * modules/wctype: Change to represent the wctype() substitute.
13636         * lib/wctype.in.h (wctype): New declaration.
13637         * lib/wctype.c: New file.
13638         * lib/wctype-impl.h: New file.
13639         * m4/wctype.m4: New file.
13640         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
13641         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
13642         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
13643         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
13644         * doc/posix-functions/wctype.texi: Mention the new module and the
13645         HP-UX 11.00 problem.
13646
13647 2011-02-06  Bruno Haible  <bruno@clisp.org>
13648
13649         wctype-h: Ensure wctype_t and wctrans_t are defined.
13650         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
13651         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13652         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13653         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
13654         HAVE_WCTRANS_T.
13655         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
13656
13657 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13658
13659         flock: fix license typo
13660
13661         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
13662         omitted.
13663
13664 2011-02-08  Bruno Haible  <bruno@clisp.org>
13665
13666         Split large sed scripts, for HP-UX sed.
13667         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
13668         to avoid HP-UX limit of 99 commands, in the near future.
13669         * modules/stdlib (Makefile.am): Likewise.
13670         * modules/unistd (Makefile.am): Likewise.
13671         * modules/wchar (Makefile.am): Likewise.
13672         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13673         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
13674         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
13675
13676 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13677             Bruno Haible  <bruno@clisp.org>
13678
13679         stdlib: improve random_r modularization
13680         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
13681         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
13682         you also need the random_r module to get this material right.
13683         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
13684         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
13685         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
13686
13687 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13688
13689         stdlib: don't depend on stdint
13690         * lib/stdlib.in.h: Don't include <stdint.h> merely because
13691         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
13692         be independent of whether stdint.h is needed.
13693         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
13694         here, instead of ...
13695         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
13696         struct random_data should be using the random_r module, not just
13697         the stdlib module (which wouldn't make sense: what package needs
13698         just struct random_data without also needing random_r?).
13699         * modules/stdlib (Depends-on): Remove stdint.
13700
13701         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
13702         See the thread rooted at
13703         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
13704         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
13705         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
13706         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
13707         __VMS)); previously it was always included (via fcntl--.h).
13708         (getloadavg): Do not use c_strtod.  Instead, approximate it by
13709         hand; this is good enough for load averages.  Also, do not use
13710         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
13711         flags directly if available and don't bother otherwise.  (Packages
13712         that need the extra reliability should use the modules that define
13713         these flags on older platforms that lack them.)
13714         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
13715         fcntl-safer.
13716
13717 2011-02-08  Jim Meyering  <meyering@redhat.com>
13718
13719         di-set.h, ino-map.h: add multiple-inclusion guard
13720         Technically, the guard is required only for ino-map.h, due to its
13721         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
13722         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
13723         * lib/ino-map.h: Likewise.
13724
13725 2011-02-06  Bruno Haible  <bruno@clisp.org>
13726
13727         iswblank: Ensure declaration on glibc systems.
13728         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
13729         * modules/iswblank (Dependencies): Add 'extensions'.
13730         * doc/posix-functions/iswblank.texi: Document the glibc problem.
13731
13732 2011-02-06  Bruno Haible  <bruno@clisp.org>
13733
13734         New module 'iswblank'.
13735         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
13736         * modules/iswblank: New file.
13737         * modules/wctype-h (Files): Remove lib/iswblank.c.
13738         (Makefile.am): Substitute GNULIB_ISWBLANK.
13739         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
13740         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
13741         (gl_WCTYPE_H_DEFAULTS): New macro.
13742         (gl_WCTYPE_H): Require it. Remove iswblank related code.
13743         * modules/iswblank-tests: New file.
13744         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
13745         * tests/test-wctype-h.c (main): Remove iswblank tests.
13746         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
13747         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
13748         of 'wctype-h'.
13749         * NEWS: Mention the change.
13750         * modules/mbchar (Depends-on): Add iswblank.
13751
13752 2011-02-08  Bruno Haible  <bruno@clisp.org>
13753
13754         di-set tests: Refactor.
13755         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
13756         unnecessary includes.
13757         (ASSERT): Remove macro.
13758         (main): Make C90 compliant by avoiding variable declaration after
13759         statement.
13760         * modules/di-set-tests (Files): Add tests/macros.h.
13761
13762 2011-02-08  Bruno Haible  <bruno@clisp.org>
13763
13764         ino-map tests: Refactor.
13765         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
13766         unnecessary includes.
13767         (ASSERT): Remove macro.
13768         (main): Make C90 compliant by avoiding variable declaration after
13769         statement.
13770         * modules/ino-map-tests (Files): Add tests/macros.h.
13771
13772 2011-02-08  Jim Meyering  <meyering@redhat.com>
13773
13774         di-set: add "const" to a cast
13775         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
13776         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
13777
13778 2011-02-06  Bruno Haible  <bruno@clisp.org>
13779
13780         Rename module 'wctype' to 'wctype-h'.
13781         * modules/wctype-h: Renamed from modules/wctype.
13782         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
13783         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
13784         (Files, Depends-on, Makefile.am): Update.
13785         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
13786         (Files, Makefile.am): Update.
13787         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
13788         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
13789         * doc/posix-headers/wctype.texi: Update.
13790         * doc/posix-functions/iswalnum.texi: Update.
13791         * doc/posix-functions/iswalpha.texi: Update.
13792         * doc/posix-functions/iswblank.texi: Update.
13793         * doc/posix-functions/iswcntrl.texi: Update.
13794         * doc/posix-functions/iswdigit.texi: Update.
13795         * doc/posix-functions/iswgraph.texi: Update.
13796         * doc/posix-functions/iswlower.texi: Update.
13797         * doc/posix-functions/iswprint.texi: Update.
13798         * doc/posix-functions/iswpunct.texi: Update.
13799         * doc/posix-functions/iswspace.texi: Update.
13800         * doc/posix-functions/iswupper.texi: Update.
13801         * doc/posix-functions/iswxdigit.texi: Update.
13802         * doc/posix-functions/towlower.texi: Update.
13803         * doc/posix-functions/towupper.texi: Update.
13804         * NEWS: Mention the change.
13805         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
13806         * modules/mbchar (Dependencies): Likewise.
13807         * modules/mbswidth (Dependencies): Likewise.
13808         * modules/quotearg (Dependencies): Likewise.
13809         * modules/regex (Dependencies): Likewise.
13810         * modules/wcscasecmp (Dependencies): Likewise.
13811         * modules/wcsncasecmp (Dependencies): Likewise.
13812         * modules/wcwidth (Dependencies): Likewise.
13813
13814 2011-02-06  Bruno Haible  <bruno@clisp.org>
13815
13816         New module 'wcswidth'.
13817         * modules/wcswidth: New file.
13818         * lib/wchar.in.h (wcswidth): New declaration.
13819         * lib/wcswidth.c: New file.
13820         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
13821         * m4/wcswidth.m4: New file.
13822         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
13823         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
13824         REPLACE_WCSWIDTH.
13825         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
13826         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
13827         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
13828         * doc/posix-functions/wcswidth.texi: Mention the new module.
13829
13830 2011-02-06  Bruno Haible  <bruno@clisp.org>
13831
13832         New module 'wcstok'.
13833         * modules/wcstok: New file.
13834         * lib/wchar.in.h (wcstok): New declaration.
13835         * lib/wcstok.c: New file.
13836         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
13837         * m4/wcstok.m4: New file.
13838         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
13839         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
13840         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
13841         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
13842         * doc/posix-functions/wcstok.texi: Mention the new module.
13843
13844 2011-02-06  Bruno Haible  <bruno@clisp.org>
13845
13846         New module 'wcsstr'.
13847         * modules/wcsstr: New file.
13848         * lib/wchar.in.h (wcsstr): New declaration.
13849         * lib/wcsstr.c: New file.
13850         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
13851         * m4/wcsstr.m4: New file.
13852         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
13853         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
13854         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
13855         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
13856         * doc/posix-functions/wcsstr.texi: Mention the new module.
13857
13858 2011-02-06  Bruno Haible  <bruno@clisp.org>
13859
13860         New module 'wcspbrk'.
13861         * modules/wcspbrk: New file.
13862         * lib/wchar.in.h (wcspbrk): New declaration.
13863         * lib/wcspbrk.c: New file.
13864         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
13865         * m4/wcspbrk.m4: New file.
13866         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
13867         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
13868         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
13869         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
13870         * doc/posix-functions/wcspbrk.texi: Mention the new module.
13871
13872 2011-02-06  Bruno Haible  <bruno@clisp.org>
13873
13874         New module 'wcsspn'.
13875         * modules/wcsspn: New file.
13876         * lib/wchar.in.h (wcsspn): New declaration.
13877         * lib/wcsspn.c: New file.
13878         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
13879         * m4/wcsspn.m4: New file.
13880         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
13881         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
13882         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
13883         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
13884         * doc/posix-functions/wcsspn.texi: Mention the new module.
13885
13886 2011-02-06  Bruno Haible  <bruno@clisp.org>
13887
13888         New module 'wcscspn'.
13889         * modules/wcscspn: New file.
13890         * lib/wchar.in.h (wcscspn): New declaration.
13891         * lib/wcscspn.c: New file.
13892         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
13893         * m4/wcscspn.m4: New file.
13894         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
13895         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
13896         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
13897         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
13898         * doc/posix-functions/wcscspn.texi: Mention the new module.
13899
13900 2011-02-06  Bruno Haible  <bruno@clisp.org>
13901
13902         New module 'wcsrchr'.
13903         * modules/wcsrchr: New file.
13904         * lib/wchar.in.h (wcsrchr): New declaration.
13905         * lib/wcsrchr.c: New file.
13906         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
13907         * m4/wcsrchr.m4: New file.
13908         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
13909         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
13910         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
13911         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
13912         * doc/posix-functions/wcsrchr.texi: Mention the new module.
13913
13914 2011-02-06  Bruno Haible  <bruno@clisp.org>
13915
13916         New module 'wcschr'.
13917         * modules/wcschr: New file.
13918         * lib/wchar.in.h (wcschr): New declaration.
13919         * lib/wcschr.c: New file.
13920         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
13921         * m4/wcschr.m4: New file.
13922         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
13923         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
13924         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
13925         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
13926         * doc/posix-functions/wcschr.texi: Mention the new module.
13927
13928 2011-02-06  Bruno Haible  <bruno@clisp.org>
13929
13930         New module 'wcsdup'.
13931         * modules/wcsdup: New file.
13932         * lib/wchar.in.h (wcsdup): New declaration.
13933         * lib/wcsdup.c: New file.
13934         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
13935         * m4/wcsdup.m4: New file.
13936         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
13937         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
13938         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
13939         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
13940         * doc/posix-functions/wcsdup.texi: Mention the new module.
13941
13942 2011-02-06  Bruno Haible  <bruno@clisp.org>
13943
13944         New module 'wcsxfrm'.
13945         * modules/wcsxfrm: New file.
13946         * lib/wchar.in.h (wcsxfrm): New declaration.
13947         * lib/wcsxfrm.c: New file.
13948         * lib/wcsxfrm-impl.h: New file.
13949         * m4/wcsxfrm.m4: New file.
13950         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
13951         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
13952         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
13953         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
13954         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
13955
13956 2011-02-06  Bruno Haible  <bruno@clisp.org>
13957
13958         New module 'wcscoll'.
13959         * modules/wcscoll: New file.
13960         * lib/wchar.in.h (wcscoll): New declaration.
13961         * lib/wcscoll.c: New file.
13962         * lib/wcscoll-impl.h: New file.
13963         * m4/wcscoll.m4: New file.
13964         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
13965         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
13966         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
13967         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
13968         * doc/posix-functions/wcscoll.texi: Mention the new module.
13969
13970 2011-02-06  Bruno Haible  <bruno@clisp.org>
13971
13972         New module 'wcsncasecmp'.
13973         * modules/wcsncasecmp: New file.
13974         * lib/wchar.in.h (wcsncasecmp): New declaration.
13975         * lib/wcsncasecmp.c: New file.
13976         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
13977         * m4/wcsncasecmp.m4: New file.
13978         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
13979         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
13980         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
13981         HAVE_WCSNCASECMP.
13982         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
13983         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
13984
13985 2011-02-06  Bruno Haible  <bruno@clisp.org>
13986
13987         New module 'wcscasecmp'.
13988         * modules/wcscasecmp: New file.
13989         * lib/wchar.in.h (wcscasecmp): New declaration.
13990         * lib/wcscasecmp.c: New file.
13991         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
13992         * m4/wcscasecmp.m4: New file.
13993         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
13994         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
13995         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
13996         HAVE_WCSCASECMP.
13997         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
13998         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
13999
14000 2011-02-05  Bruno Haible  <bruno@clisp.org>
14001
14002         New module 'wcsncmp'.
14003         * modules/wcsncmp: New file.
14004         * lib/wchar.in.h (wcsncmp): New declaration.
14005         * lib/wcsncmp.c: New file.
14006         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14007         * m4/wcsncmp.m4: New file.
14008         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14009         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14010         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14011         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14012         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14013
14014 2011-02-05  Bruno Haible  <bruno@clisp.org>
14015
14016         New module 'wcscmp'.
14017         * modules/wcscmp: New file.
14018         * lib/wchar.in.h (wcscmp): New declaration.
14019         * lib/wcscmp.c: New file.
14020         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14021         * m4/wcscmp.m4: New file.
14022         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14023         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14024         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14025         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14026         * doc/posix-functions/wcscmp.texi: Mention the new module.
14027
14028 2011-02-05  Bruno Haible  <bruno@clisp.org>
14029
14030         New module 'wcsncat'.
14031         * modules/wcsncat: New file.
14032         * lib/wchar.in.h (wcsncat): New declaration.
14033         * lib/wcsncat.c: New file.
14034         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14035         * m4/wcsncat.m4: New file.
14036         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14037         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14038         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14039         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14040         * doc/posix-functions/wcsncat.texi: Mention the new module.
14041
14042 2011-02-05  Bruno Haible  <bruno@clisp.org>
14043
14044         New module 'wcscat'.
14045         * modules/wcscat: New file.
14046         * lib/wchar.in.h (wcscat): New declaration.
14047         * lib/wcscat.c: New file.
14048         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14049         * m4/wcscat.m4: New file.
14050         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14051         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14052         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14053         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14054         * doc/posix-functions/wcscat.texi: Mention the new module.
14055
14056 2011-02-05  Bruno Haible  <bruno@clisp.org>
14057
14058         New module 'wcpncpy'.
14059         * modules/wcpncpy: New file.
14060         * lib/wchar.in.h (wcpncpy): New declaration.
14061         * lib/wcpncpy.c: New file.
14062         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14063         * m4/wcpncpy.m4: New file.
14064         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14065         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14066         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14067         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14068         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14069
14070 2011-02-05  Bruno Haible  <bruno@clisp.org>
14071
14072         New module 'wcsncpy'.
14073         * modules/wcsncpy: New file.
14074         * lib/wchar.in.h (wcsncpy): New declaration.
14075         * lib/wcsncpy.c: New file.
14076         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14077         * m4/wcsncpy.m4: New file.
14078         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14079         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14080         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14081         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14082         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14083
14084 2011-02-05  Bruno Haible  <bruno@clisp.org>
14085
14086         New module 'wcpcpy'.
14087         * modules/wcpcpy: New file.
14088         * lib/wchar.in.h (wcpcpy): New declaration.
14089         * lib/wcpcpy.c: New file.
14090         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14091         * m4/wcpcpy.m4: New file.
14092         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14093         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14094         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14095         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14096         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14097
14098 2011-02-05  Bruno Haible  <bruno@clisp.org>
14099
14100         New module 'wcscpy'.
14101         * modules/wcscpy: New file.
14102         * lib/wchar.in.h (wcscpy): New declaration.
14103         * lib/wcscpy.c: New file.
14104         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14105         * m4/wcscpy.m4: New file.
14106         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14107         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14108         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14109         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14110         * doc/posix-functions/wcscpy.texi: Mention the new module.
14111
14112 2011-02-05  Bruno Haible  <bruno@clisp.org>
14113
14114         New module 'wcsnlen'.
14115         * modules/wcsnlen: New file.
14116         * lib/wchar.in.h (wcsnlen): New declaration.
14117         * lib/wcsnlen.c: New file.
14118         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14119         * m4/wcsnlen.m4: New file.
14120         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14121         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14122         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14123         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14124         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14125
14126 2011-02-05  Bruno Haible  <bruno@clisp.org>
14127
14128         New module 'wcslen'.
14129         * modules/wcslen: New file.
14130         * lib/wchar.in.h (wcslen): New declaration.
14131         * lib/wcslen.c: New file.
14132         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14133         * m4/wcslen.m4: New file.
14134         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14135         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14136         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14137         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14138         * doc/posix-functions/wcslen.texi: Mention the new module.
14139
14140 2011-02-05  Bruno Haible  <bruno@clisp.org>
14141
14142         New module 'wmemset'.
14143         * modules/wmemset: New file.
14144         * lib/wchar.in.h (wmemset): New declaration.
14145         * lib/wmemset.c: New file.
14146         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14147         * m4/wmemset.m4: New file.
14148         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14149         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14150         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14151         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14152         * doc/posix-functions/wmemset.texi: Mention the new module.
14153
14154 2011-02-05  Bruno Haible  <bruno@clisp.org>
14155
14156         New module 'wmemmove'.
14157         * modules/wmemmove: New file.
14158         * lib/wchar.in.h (wmemmove): New declaration.
14159         * lib/wmemmove.c: New file.
14160         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14161         * m4/wmemmove.m4: New file.
14162         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14163         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14164         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14165         HAVE_WMEMMOVE.
14166         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14167         * doc/posix-functions/wmemmove.texi: Mention the new module.
14168
14169 2011-02-05  Bruno Haible  <bruno@clisp.org>
14170
14171         New module 'wmemcpy'.
14172         * modules/wmemcpy: New file.
14173         * lib/wchar.in.h (wmemcpy): New declaration.
14174         * lib/wmemcpy.c: New file.
14175         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14176         * m4/wmemcpy.m4: New file.
14177         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14178         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14179         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14180         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14181         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14182
14183 2011-02-05  Bruno Haible  <bruno@clisp.org>
14184
14185         New module 'wmemcmp'.
14186         * modules/wmemcmp: New file.
14187         * lib/wchar.in.h (wmemcmp): New declaration.
14188         * lib/wmemcmp.c: New file.
14189         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14190         * m4/wmemcmp.m4: New file.
14191         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14192         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14193         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14194         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14195         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14196
14197 2011-02-07  Jim Meyering  <meyering@redhat.com>
14198
14199         di-set, ino-map: new modules, from coreutils
14200         * lib/di-set.c: New file.
14201         * lib/di-set.h: Likewise.
14202         * lib/ino-map.c: Likewise.
14203         * lib/ino-map.h: Likewise.
14204         * modules/di-set: Likewise.
14205         * modules/di-set-tests: Likewise.
14206         * modules/ino-map: Likewise.
14207         * modules/ino-map-tests: Likewise.
14208         * tests/test-di-set.c: Likewise.
14209         * tests/test-ino-map.c: Likewise.
14210
14211 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14212
14213         getloadavg: merge minor changes from Emacs
14214
14215         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14216         (getloadavg): Use memset, not bzero.
14217
14218         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14219         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14220         clash (bug#86).
14221
14222 2010-11-14  Bruno Haible  <bruno@clisp.org>
14223
14224         Allow multiple gnulib generated replacements to coexist.
14225         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14226         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14227         * lib/langinfo.in.h (nl_item): Likewise.
14228         * lib/math.in.h (_NaN, NAN): Likewise.
14229         * lib/netdb.in.h (struct addrinfo): Likewise.
14230         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14231         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14232         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14233         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14234         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14235         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14236         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14237         pthread_mutexattr_init, pthread_mutexattr_settype,
14238         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14239         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14240         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14241         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14242         * lib/sched.in.h (struct sched_param): Likewise.
14243         * lib/se-selinux.in.h (security_class_t, security_context_t,
14244         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14245         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14246         lsetfilecon, fsetfilecon, security_check_context,
14247         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14248         Likewise.
14249         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14250         Likewise.
14251         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14252         _gl_function_taking_int_returning_void_t, union sigval,
14253         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14254         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14255         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14256         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14257         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14258         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14259         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14260         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14261         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14262         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14263         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14264         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14265         socklen_t, rpl_fd_isset): Likewise.
14266         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14267         * lib/sys_time.in.h (struct timeval): Likewise.
14268         * lib/sys_times.in.h (struct tms): Likewise.
14269         * lib/sys_utsname.in.h (struct utsname):
14270         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14271         * lib/unistd.in.h (getpagesize): Likewise.
14272         * lib/wchar.in.h (mbstate_t): Likewise.
14273         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14274         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14275         towlower, towupper): Likewise.
14276         Reported by Sam Steingold <sds@gnu.org>.
14277
14278 2011-02-05  Eric Blake  <eblake@redhat.com>
14279
14280         unsetenv: work around Haiku issues
14281         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14282         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14283
14284 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14285
14286         libposix: avoid calling error() within libposix
14287         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14288         is defined.
14289
14290 2011-02-05  Eric Blake  <eblake@redhat.com>
14291
14292         strerror_r-posix: port to cygwin
14293         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14294         implementation.
14295         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14296         * tests/test-strerror_r.c (main): Fix test.
14297         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14298         issue.
14299
14300 2011-02-05  Bruno Haible  <bruno@clisp.org>
14301
14302         New module 'wmemchr'.
14303         * modules/wmemchr: New file.
14304         * lib/wchar.in.h (wmemchr): New declaration.
14305         * lib/wmemchr.c: New file.
14306         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14307         * m4/wmemchr.m4: New file.
14308         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14309         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14310         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14311         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14312         * doc/posix-functions/wmemchr.texi: Mention the new module.
14313
14314 2011-02-04  Eric Blake  <eblake@redhat.com>
14315
14316         fdopendir: detect FreeBSD bug
14317         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14318         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14319
14320 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14321
14322         stdbool: do not define HAVE_STDBOOL_H
14323         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14324         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14325         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14326         imported from the latest Autoconf git.  It was motivated by Emacs,
14327         which uses gnulib but does not need HAVE_STDBOOL_H.
14328
14329 2011-02-04  Bruno Haible  <bruno@clisp.org>
14330
14331         wcsnrtombs: Prepare for new module wwcsnrtombs.
14332         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14333         * lib/wcsnrtombs.c: Include it.
14334         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14335
14336         wcsrtombs: Prepare for new module wwcsrtombs.
14337         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14338         * lib/wcsrtombs.c: Include it.
14339         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14340
14341         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14342         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14343         * lib/mbsnrtowcs.c: Include it.
14344         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14345
14346         mbsrtowcs: Prepare for new module mbsrtowwcs.
14347         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14348         * lib/mbsrtowcs.c: Include it.
14349         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14350
14351 2011-02-04  Bruno Haible  <bruno@clisp.org>
14352
14353         vasnprintf: Reduce use of malloc for small format strings.
14354         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
14355         (arguments): Add room for the first 7 arguments.
14356         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14357         (char_directives, u8_directives, u16_directives, u32_directives): Add
14358         room for the first 7 directives.
14359         * lib/printf-parse.c: Include <string.h>.
14360         (PRINTF_PARSE): Change memory handling code so that it uses the first
14361         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
14362         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
14363         Reported by Pádraig Brady <P@draigbrady.com>.
14364
14365 2011-01-31  Eric Blake  <eblake@redhat.com>
14366
14367         dup2: work around Haiku bug
14368         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
14369         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
14370         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14371         * tests/test-dup2.c (main): Enhance test.
14372
14373 2011-01-31  Simon Josefsson  <simon@josefsson.org>
14374
14375         doc: off_t is not available in eglibc 2.11.2 stdio.h.
14376         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
14377         declared by eglibc 2.11.2.
14378         * lib/stdio.in.h: Likewise.
14379
14380 2011-01-31  Eric Blake  <eblake@redhat.com>
14381
14382         ignore-value: add missing test dependency
14383         * tests/test-ignore-value.c: Revert previous change; stdio.h
14384         provides off_t.
14385         * modules/ignore-value-tests (Depends-on): Add missing dependency.
14386
14387 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14388
14389         mktime: clarify long_int width checking
14390         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
14391         the top level, to make it clearer that the assumption about
14392         long_int width is being checked.  See
14393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
14394
14395 2011-01-30  Simon Josefsson  <simon@josefsson.org>
14396
14397         ignore-value: Fix self-test.
14398         * tests/test-ignore-value.c: Include sys/types.h for off_t.
14399
14400 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14401
14402         TYPE_MAXIMUM: avoid theoretically undefined behavior
14403         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
14404         negative number, which the C Standard says has undefined behavior.
14405         In practice this is not a problem, but might as well do it by the book.
14406         Reported by Rich Felker and Eric Blake; see
14407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
14408         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
14409         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14410         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14411         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
14412         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14413         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
14414
14415         mktime: #undef mktime before #defining it
14416         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
14417
14418         mktime: systematically normalize tm_isdst comparisons
14419         * lib/mktime.c (isdst_differ): New function.
14420         (__mktime_internal): Use it systematically for all isdst comparisons.
14421         This completes the fix for libc BZ #6723, and removes the need for
14422         normalizing tm_isdst.  See
14423         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
14424         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
14425
14426         mktime: fix some integer overflow issues and sidestep the rest
14427
14428         This was prompted by a bug report by Benjamin Lindner for MinGW
14429         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
14430         His bug is due to signed integer overflow (0 - INT_MIN), and I
14431         I scanned through mktime.c looking for other integer overflow
14432         problems, fixing all the bugs I found.
14433
14434         Although the C Standard says the resulting code is still not safe
14435         in the presence of integer overflow, in practice it should be good
14436         enough for all real-world two's-complement implementations, except
14437         for debugging environments that deliberately trap on integer
14438         overflow (e.g., gcc -ftrapv).
14439
14440         * lib/mktime.c (WRAPV): New macro.
14441         (SHR): Also check that long_int and time_t shift right in the
14442         usual way, before using the fast-but-unportable method.
14443         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
14444         used.  The code already assumed two's complement, so there's
14445         no need to test for alternatives.  All uses removed.
14446         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
14447         the C standard.  Problem reported by Rich Felker in
14448         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
14449         (twos_complement_arithmetic): Also check long_int and time_t.
14450         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
14451         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
14452         (__mktime_internal): Avoid integer overflow with unary subtraction
14453         in two instances where -1 - X is an adequate replacement for -X,
14454         since the calculations are approximate.
14455
14456 2011-01-29  Eric Blake  <eblake@redhat.com>
14457
14458         mktime: avoid infinite loop
14459         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14460         type; behavior is still undefined but portable to all known targets.
14461         Reported by Rich Felker.
14462
14463 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14464
14465         rename, unlink, same-inode: Relicense.
14466         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14467         * modules/unlink (License): Likewise.
14468         * modules/same-inode (License): Likewise.
14469
14470 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14471
14472         mktime: avoid problems on NetBSD 5 / i386
14473         * lib/mktime.c (long_int): New type.  This works around a problem
14474         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14475         but time_t is 64 bits, and where I expect the existing code is
14476         wrong in some cases.
14477         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14478         (ydhms_diff): Bring back the compile-time check for wide-enough
14479         year and yday.
14480
14481         mktime: fix misspelling in comment
14482         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14483         This merges all recent glibc changes of importance.
14484
14485 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14486
14487         move-if-change: cope with concurrent mv of identical file.
14488         * build-aux/move-if-change (CMPPROG): Accept environment
14489         variable as an override for `cmp'.
14490         (usage): Document CMPPROG.
14491         Adjust comparison to drop stdout.  Cope with failure of mv if
14492         the target file exists and is identical to the source, for
14493         parallel builds.
14494         Report from H.J. Lu against binutils in PR binutils/12283.
14495
14496 2011-01-28  Bruce Korb  <bkorb@gnu.org>
14497
14498         * users.txt: Mention sharutils.
14499
14500 2011-01-28  Simon Josefsson  <simon@josefsson.org>
14501
14502         * users.txt: Mention OATH Toolkit.
14503
14504 2011-01-27  Bruno Haible  <bruno@clisp.org>
14505
14506         Prepare for supporting FreeBSD 10.
14507         * build-aux/config.libpath: Remove handling of freebsd1*.
14508
14509 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
14510
14511         Prepare for supporting FreeBSD 10.
14512         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
14513         match FreeBSD 10.0.
14514
14515 2011-01-27  Bruno Haible  <bruno@clisp.org>
14516
14517         vma-iter, get-rusage-as: Add OpenBSD support.
14518         * modules/vma-iter (configure.ac): Test for mquery.
14519         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
14520         * lib/vma-iter.c: Include <sys/mman.h>.
14521         (vma_iterate): Add an implementation based on mquery().
14522         * lib/resource-ext.h (get_rusage_as): Update comments.
14523         * lib/get-rusage-as.c: Likewise.
14524         * lib/get-rusage-data.c: Likewise.
14525
14526 2011-01-26  Karl Berry  <karl@gnu.org>
14527
14528         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
14529         variables to make it easier to override the makeinfo program used.
14530
14531 2011-01-26  Eric Blake  <eblake@redhat.com>
14532
14533         fcntl: work around Haiku F_DUPFD bugs
14534         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
14535         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
14536         cloexec bit on duplication.
14537         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
14538
14539 2011-01-26  Bruno Haible  <bruno@clisp.org>
14540
14541         Enable memory leak tests on AIX.
14542         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
14543         * tests/test-fprintf-posix3.c (main): Likewise.
14544
14545 2011-01-26  Bruno Haible  <bruno@clisp.org>
14546
14547         Tests for module 'get-rusage-data'.
14548         * modules/get-rusage-data-tests: New file.
14549         * tests/test-get-rusage-data.c: New file.
14550
14551         New module 'get-rusage-data'.
14552         * lib/resource-ext.h (get_rusage_data): New declaration.
14553         * lib/get-rusage-data.c: New file.
14554         * modules/get-rusage-data: New file.
14555
14556 2011-01-25  Bruno Haible  <bruno@clisp.org>
14557
14558         get-rusage-as: Allow for easier testing.
14559         * lib/resource-ext.h (get_rusage_as): Add comment.
14560         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
14561         (main): New function for interactive testing.
14562
14563 2011-01-25  Bruno Haible  <bruno@clisp.org>
14564
14565         vma-iter: Treat Haiku like BeOS.
14566         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
14567         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
14568
14569 2011-01-25  Eric Blake  <eblake@redhat.com>
14570
14571         c-stack: fix regression on cygwin when libsigsegv is present
14572         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
14573
14574 2011-01-24  Bruno Haible  <bruno@clisp.org>
14575
14576         vma-iter: Avoid empty intervals.
14577         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
14578         on an empty interval.
14579
14580 2011-01-24  Jim Meyering  <meyering@redhat.com>
14581
14582         u64: remove unnecessary #include
14583         * lib/u64.h: Don't include <stddef.h>.  It was not used.
14584
14585 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14586
14587         Allow the user to avoid the HAVE_RAW_DECL_* macros.
14588         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
14589
14590 2011-01-23  Bruno Haible  <bruno@clisp.org>
14591
14592         New module 'vma-iter'.
14593         * lib/vma-iter.h: New file.
14594         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
14595         * modules/vma-iter: New file.
14596         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
14597         for get_rusage_as_via_iterator.
14598         (vma_iterate_callback): New function.
14599         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
14600         * modules/get-rusage-as (Depends-on): Add vma-iter.
14601
14602 2011-01-23  Bruno Haible  <bruno@clisp.org>
14603
14604         uninorm: Tweak includes.
14605         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
14606         Reported by Jim Meyering.
14607
14608 2011-01-23  Bruno Haible  <bruno@clisp.org>
14609
14610         get-rusage-as: Improve on NetBSD.
14611         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
14612         /proc, like on FreeBSD.
14613
14614 2011-01-23  Jim Meyering  <meyering@redhat.com>
14615
14616         xreadlink.h: remove unnecessary #include
14617         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
14618
14619         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
14620         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
14621
14622 2011-01-23  Bruno Haible  <bruno@clisp.org>
14623
14624         get-rusage-as: Fix bug.
14625         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
14626         original limit when aborting the first loop.
14627
14628 2011-01-23  Bruno Haible  <bruno@clisp.org>
14629
14630         wctype: Ensure valid C syntax.
14631         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
14632         unconditionally, instead of gl_NEXT_HEADERS conditionally.
14633
14634 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14635
14636         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
14637         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
14638         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
14639         as they are needed only for configure's test case.
14640         This removes two unnecessary symbols from config.h.
14641
14642         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
14643         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
14644         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
14645         AC_CHECK_HEADERS_ONCE on a header that we also invoke
14646         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
14647         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
14648         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
14649         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14650         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14651         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14652         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14653         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14654         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14655         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14656         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14657         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14658         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14659         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14660
14661 2011-01-21  Eric Blake  <eblake@redhat.com>
14662
14663         maintainer-makefile: work with older git for submodule check
14664         * top/maint.mk (public-submodule-commit): Rewrite to avoid
14665         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
14666         Reported by Matthias Bolte.
14667
14668         bootstrap: minor portability fixes
14669         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
14670         (usage): Omit leading capital and trailing . on help phrases, per
14671         GNU Coding Standards.
14672         (check_versions, top level): Prefix messages with script name.
14673
14674 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
14675
14676         bootstrap: support --no-git option
14677         * build-aux/bootstrap: Add --no-git option, to be used when
14678         --gnulib-srcdir points to the exact desired checkout.
14679
14680 2011-01-21  Eric Blake  <eblake@redhat.com>
14681
14682         strerror_r-posix: work with glibc 2.13
14683         * lib/strerror_r.c (strerror_r): Fix return type.
14684
14685 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14686             Bruno Haible  <bruno@clisp.org>
14687
14688         uN_strstr: New unit tests.
14689         * modules/unistr/u8-strstr-tests: New file.
14690         * modules/unistr/u16-strstr-tests: New file.
14691         * modules/unistr/u32-strstr-tests: New file.
14692         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
14693         * tests/unistr/test-u8-strstr.c: New file.
14694         * tests/unistr/test-u16-strstr.c: New file.
14695         * tests/unistr/test-u32-strstr.c: New file.
14696
14697 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14698             Bruno Haible  <bruno@clisp.org>
14699
14700         Make uN_strstr functions O(n) worst-case.
14701         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
14702         16-bit and 32-bit unit cases, use the unibyte algorithm from
14703         lib/mbsstr.c.
14704         * lib/unistr/u8-strstr.c: Include <string.h>.
14705         (UNIT_IS_UINT8_T): New macro.
14706         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
14707         (U_STRLEN, U_STRNLEN): New macros.
14708         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
14709         (U_STRLEN, U_STRNLEN): New macros.
14710         * modules/unistr/u8-strstr (Depends-on): Add strstr.
14711         (configure.ac): Update required libunistring version.
14712         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
14713         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
14714         malloca.
14715         (configure.ac): Update required libunistring version.
14716         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
14717         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
14718         malloca.
14719         (configure.ac): Update required libunistring version.
14720
14721 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14722             Bruno Haible  <bruno@clisp.org>
14723
14724         Prepare for faster uN_strstr functions.
14725         * lib/str-kmp.h: Support definable UNITs.
14726         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
14727         needle_len argument.
14728         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
14729         * lib/mbscasestr.c (mbscasestr): Likewise.
14730
14731 2011-01-21  Pádraig Brady <P@draigBrady.com>
14732
14733         malloca-tests: make faster by unsetting MALLOC_PERTURB_
14734         * tests/test-malloca.c (main): Unset the environment variable
14735         to greatly speed up the test.
14736         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
14737         * modules/malloca-tests: Depend on unsetenv.
14738
14739 2011-01-21  Pádraig Brady <P@draigBrady.com>
14740
14741         ignore-value: remove stdint dependency
14742         * lib/ignore-value.h: Remove <stdint.h>
14743         * modules/ignore-value: Remove stdint dependency.
14744
14745 2011-01-21  Jim Meyering  <meyering@redhat.com>
14746
14747         maint.mk: adjust variable name to be consistent with other gl_ vars
14748         * top/maint.mk (gl_public_submodule_commit): Rename the variable
14749         to be lower case.
14750
14751 2011-01-20  Jim Meyering  <meyering@redhat.com>
14752
14753         maint.mk: make "check" depend on public-submodule-commit by default
14754         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
14755
14756 2011-01-20  Bruno Haible  <bruno@clisp.org>
14757
14758         mbfile, mbiter: Complete change from 2008-12-21.
14759         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
14760         * m4/mbiter.m4 (gl_MBITER): Likewise.
14761
14762 2011-01-20  Jim Meyering  <meyering@redhat.com>
14763
14764         init.sh: insert space between each function name and "()"
14765         * tests/init.sh: Make it a little easier to see that a function's
14766         name is "warn_", and not "warn" when looking at the first part of
14767         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
14768
14769 2011-01-20  Jim Meyering  <meyering@redhat.com>
14770
14771         mountlist: clean up code formatting
14772         * lib/mountlist.c (read_file_system_list): Split a long line,
14773         correct bracing style, use NULL in place of "(struct statfs *)0",
14774         don't parenthesize return value, add spaces around "=" and after
14775         ";-in-for-stmt".
14776
14777 2011-01-14  Markus Duft <mduft@gentoo.org>
14778
14779         mountlist: add support for Interix
14780         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
14781         Apply statvfs to all entries of /dev/fs.
14782         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
14783         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
14784
14785 2011-01-20  Jim Meyering  <meyering@redhat.com>
14786
14787         maint.mk: improve the public-submodule-commit rule
14788         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
14789         to suppress printing of its commands... unless V=1.
14790         Add git submodule's --quiet option to suppress printing of e.g.,
14791         "Entering gnulib" output.
14792         "cd" into $(srcdir) before running git submodule.
14793
14794 2011-01-20  Bruno Haible  <bruno@clisp.org>
14795
14796         include_next: Fix bug introduced on 2011-01-18.
14797         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
14798         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
14799         ac_cv_header_... variable if the second argument is not 'check'.
14800         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
14801         gl_NEXT_HEADERS_INTERNAL.
14802
14803 2011-01-20  Bruno Haible  <bruno@clisp.org>
14804
14805         Allow the user to avoid the GNULIB_TEST_* macros.
14806         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
14807         Suggested by Paul Eggert.
14808
14809 2011-01-14  Jim Meyering  <meyering@redhat.com>
14810
14811         bootstrap: avoid failure when there is no .gitmodules file
14812         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
14813         has been assigned to, even when its value is the empty string.
14814         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
14815         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
14816         Reported by John W. Eaton <jwe@gnu.org>.
14817
14818 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14819
14820         assume <ctype.h>, ..., <time.h> exist
14821         For years gnulib has been assuming the existence of the headers
14822         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
14823         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
14824         them, since they don't appear to be needed.
14825         * README (Portability guidelines): Document this.
14826         * lib/flock.c: Assume <fcntl.h> exists.
14827         * lib/regex_internal.h: Assume <locale.h> exists.
14828         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
14829         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
14830         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
14831         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
14832         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
14833         * m4/regex.m4 (gl_REGEX): Likewise.
14834         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
14835         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
14836         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
14837         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
14838         * tests/test-argp.c: Likewise.
14839         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
14840
14841         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
14842         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
14843         AA_APPLE_UNIVERSAL_BUILD.  See
14844         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
14845         * NEWS: Document this.
14846
14847 2011-01-19  Eric Blake  <eblake@redhat.com>
14848
14849         c-stack: assume stack overflow if SA_SIGINFO unsupported
14850         * lib/c-stack.c (SIGACTION_WORKS): Rename...
14851         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
14852         sigaction will work.
14853         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
14854         behavior match Linux.
14855         * tests/test-c-stack.c (main): Prefer NULL for pointers.
14856
14857         stdbool-tests: accomodate Haiku
14858         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
14859
14860         binary-io: fix O_TEXT on Haiku
14861         * modules/binary-io (Depends-on): Add fcntl-h.
14862         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
14863         than blindly undefining O_TEXT.
14864         Reported by Scott McCreary.
14865
14866 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14867
14868         include_next: do not check for standard headers like stddef.h
14869
14870         I found this problem when modifying Emacs to use gnulib.
14871         I noticed that it added HAVE_STDDEF_H to config.h, even though
14872         gnulib always assumes <stddef.h> exists as per README and this
14873         symbol is unnecessary.
14874         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
14875         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
14876         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
14877         faster for headers like stddef.h that are known to exist.
14878         (gl_CHECK_NEXT_HEADERS): Use it.
14879         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
14880         rather than gl_CHECK_NEXT_HEADERS.
14881         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
14882         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
14883
14884 2011-01-18  Eric Blake  <eblake@redhat.com>
14885
14886         ansi-c++-opt: skip C++ dependency style if C++ is unused
14887         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
14888         tests when we know C++ compilation is not desired.
14889         Reported by Scott McCreary.
14890
14891 2011-01-18  Bruno Haible  <bruno@clisp.org>
14892
14893         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
14894         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
14895         (main): Perform test also when getrlimit and setrlimit don't exist or
14896         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
14897         limiting the address space size using setrlimit, compare the address
14898         space size before and after the the test.
14899         * tests/test-dprintf-posix2.c: Likewise.
14900         * tests/test-fprintf-posix3.sh: Update skip messages.
14901         * tests/test-dprintf-posix2.sh: Likewise.
14902         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
14903         * modules/dprintf-posix-tests (Depends-on): Likewise.
14904         Reported by Bruce Korb <bkorb@gnu.org> and
14905         Gary V. Vaughan <gary@gnu.org>.
14906
14907 2011-01-18  Bruno Haible  <bruno@clisp.org>
14908
14909         get-rusage-as: Improvement for Cygwin.
14910         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
14911         areas that are merely reserved.
14912
14913 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14914
14915         strftime: remove dependencies on multibyte modules
14916
14917         strftime depended on mbrlen, mbsinit, and wchar, but these modules
14918         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
14919         only if __osf__ is defined, and I suspect OSF doesn't need these
14920         other modules.  If my guess is wrong, we'll need to come up with a
14921         variant of strftime that doesn't need the multibyte modules.
14922
14923         I discovered this problem when attempting modify Emacs to use the
14924         strftime module.  With the previous gnulib, this caused Emacs to
14925         need 31 new files, ranging from lib/config.charset to
14926         m4/wint_t.m4.  This was overkill and I expect would be offputting
14927         to the Emacs maintainers.  After this change, only 6 new files are
14928         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
14929         stdbool.m4, and tm_gmtoff.m4.
14930
14931         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
14932         Suggested by Bruno Haible in
14933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
14934         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
14935         and do not check for wchar.h.
14936         * modules/strftime (Files): Remove m4/mbstate_t.m4.
14937         (Depends-on): Remove mbrlen, mbsinit, wchar.
14938
14939 2011-01-18  Bruno Haible  <bruno@clisp.org>
14940
14941         Tests for module 'get-rusage-as'.
14942         * modules/get-rusage-as-tests: New file.
14943         * tests/test-get-rusage-as.c: New file.
14944
14945         New module 'get-rusage-as'.
14946         * modules/get-rusage-as: New file.
14947         * lib/resource-ext.h: New file.
14948         * lib/get-rusage-as.c: New file.
14949
14950 2011-01-17  Eric Blake  <eblake@redhat.com>
14951
14952         sigaction: relax license from LGPLv3+ to LGPLv2+
14953         * modules/sigaction (License): Relax to LGPLv2+.
14954
14955 2011-01-14  Bruno Haible  <bruno@clisp.org>
14956
14957         filemode: Make function declarations usable in C++ mode.
14958         * lib/filemode.h: Enclose function declarations in extern "C" block.
14959         Reported by John W. Eaton <jwe@gnu.org>.
14960
14961 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
14962
14963         save-cwd: no longer include "xgetcwd.h"
14964         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
14965         This avoids a compilation failure in projects that use save-cwd
14966         without also using the xgetcwd module.
14967
14968 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14969
14970         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
14971         This is so that a program like Emacs, which needs only dtoastr,
14972         does not have to bother with distributing and compiling ftoastr
14973         and ldtoastr.
14974         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
14975         * modules/dtoastr, modules/ldtoastr: New files.
14976         * modules/ftoastr: Now works just for 'float'.
14977         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
14978         (Makefile.am): Remove ftoastr.h (not needed and no effect),
14979         dtoastr.c, ldtoastr.c.
14980
14981 2011-01-11  Jim Meyering  <meyering@redhat.com>
14982
14983         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
14984         There is no need to work around the lack of the fchdir function,
14985         since gnulib can now provide a replacement when required.
14986         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
14987         * modules/save-cwd (Depends-on): Add fchdir.
14988
14989 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14990
14991         openat, save-cwd: avoid xmalloc
14992
14993         This removes a direct (but undocumented) dependency of openat on
14994         xalloc, along with an indirect dependency via save-cwd.  It also
14995         removes a dependency of save-cwd on xgetcwd, and thereby
14996         indirectly on xalloc.  This change causes the openat substitute
14997         to fall back on save_cwd when memory is tight, and for save_cwd to
14998         fail instead of dying when memory is tight, but that's good enough.
14999         Problem and initial idea for fix reported by Bastien Roucaries in
15000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15001
15002         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15003         xalloc.h (for xmalloc).
15004         (openat_proc_name): Use malloc, not xmalloc.
15005         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15006         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15007
15008         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15009         This avoids heap allocation for file names whose lengths are in
15010         the range 512..1023, with the upper bound increasing to at most
15011         4031 depending on the platform's PATH_MAX.  (We do not want
15012         pathmax.h here as it might supply a non-constant PATH_MAX.)
15013         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15014         Perhaps they should be moved to malloca.h?
15015         (OPENAT_BUFFER_SIZE): Use them.
15016
15017 2011-01-10  Bruno Haible  <bruno@clisp.org>
15018
15019         doc: Update users.txt.
15020         * users.txt: Add recutils.
15021
15022 2011-01-09  Karl Berry  <karl@gnu.org>
15023
15024         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15025
15026         * doc/configmake.texi: New file.
15027         * doc/gnulib.texi: Include it.
15028         * modules/configmake: Move documentation from here.
15029
15030 2011-01-09  Bruno Haible  <bruno@clisp.org>
15031
15032         Update to Unicode 6.0.0.
15033         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15034         (get_lbp): Update for Unicode 6.0.0.
15035         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15036         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15037         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15038         U+11001, U+11038..U+11046. Remove U+06DE.
15039         (uc_width): Fix bounds of planes.
15040         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15041         lib/uniwidth/width.c.
15042         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15043         trailing whitespace removed.
15044         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15045         without comments, but with the original copyright notice.
15046         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15047         * lib/unicase/ignorable.h: Likewise.
15048         * lib/unicase/tocasefold.h: Likewise.
15049         * lib/unicase/tolower.h: Likewise.
15050         * lib/unicase/totitle.h: Likewise.
15051         * lib/unicase/toupper.h: Likewise.
15052         * lib/unictype/bidi_of.h: Likewise.
15053         * lib/unictype/blocks.h: Likewise.
15054         * lib/unictype/categ_C.h: Likewise.
15055         * lib/unictype/categ_Cn.h: Likewise.
15056         * lib/unictype/categ_L.h: Likewise.
15057         * lib/unictype/categ_Ll.h: Likewise.
15058         * lib/unictype/categ_Lm.h: Likewise.
15059         * lib/unictype/categ_Lo.h: Likewise.
15060         * lib/unictype/categ_Lu.h: Likewise.
15061         * lib/unictype/categ_M.h: Likewise.
15062         * lib/unictype/categ_Mc.h: Likewise.
15063         * lib/unictype/categ_Me.h: Likewise.
15064         * lib/unictype/categ_Mn.h: Likewise.
15065         * lib/unictype/categ_N.h: Likewise.
15066         * lib/unictype/categ_Nd.h: Likewise.
15067         * lib/unictype/categ_No.h: Likewise.
15068         * lib/unictype/categ_P.h: Likewise.
15069         * lib/unictype/categ_Po.h: Likewise.
15070         * lib/unictype/categ_S.h: Likewise.
15071         * lib/unictype/categ_Sc.h: Likewise.
15072         * lib/unictype/categ_Sk.h: Likewise.
15073         * lib/unictype/categ_Sm.h: Likewise.
15074         * lib/unictype/categ_So.h: Likewise.
15075         * lib/unictype/categ_of.h: Likewise.
15076         * lib/unictype/combining.h: Likewise.
15077         * lib/unictype/ctype_alnum.h: Likewise.
15078         * lib/unictype/ctype_alpha.h: Likewise.
15079         * lib/unictype/ctype_graph.h: Likewise.
15080         * lib/unictype/ctype_lower.h: Likewise.
15081         * lib/unictype/ctype_print.h: Likewise.
15082         * lib/unictype/ctype_punct.h: Likewise.
15083         * lib/unictype/ctype_upper.h: Likewise.
15084         * lib/unictype/decdigit.h: Likewise.
15085         * lib/unictype/digit.h: Likewise.
15086         * lib/unictype/numeric.h: Likewise.
15087         * lib/unictype/pr_alphabetic.h: Likewise.
15088         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15089         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15090         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15091         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15092         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15093         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15094         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15095         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15096         * lib/unictype/pr_case_ignorable.h: Likewise.
15097         * lib/unictype/pr_cased.h: Likewise.
15098         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15099         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15100         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15101         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15102         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15103         * lib/unictype/pr_combining.h: Likewise.
15104         * lib/unictype/pr_composite.h: Likewise.
15105         * lib/unictype/pr_currency_symbol.h: Likewise.
15106         * lib/unictype/pr_decimal_digit.h: Likewise.
15107         * lib/unictype/pr_deprecated.h: Likewise.
15108         * lib/unictype/pr_format_control.h: Likewise.
15109         * lib/unictype/pr_grapheme_base.h: Likewise.
15110         * lib/unictype/pr_grapheme_extend.h: Likewise.
15111         * lib/unictype/pr_grapheme_link.h: Likewise.
15112         * lib/unictype/pr_id_continue.h: Likewise.
15113         * lib/unictype/pr_id_start.h: Likewise.
15114         * lib/unictype/pr_ideographic.h: Likewise.
15115         * lib/unictype/pr_lowercase.h: Likewise.
15116         * lib/unictype/pr_math.h: Likewise.
15117         * lib/unictype/pr_numeric.h: Likewise.
15118         * lib/unictype/pr_other_alphabetic.h: Likewise.
15119         * lib/unictype/pr_other_id_continue.h: Likewise.
15120         * lib/unictype/pr_other_math.h: Likewise.
15121         * lib/unictype/pr_punctuation.h: Likewise.
15122         * lib/unictype/pr_sentence_terminal.h: Likewise.
15123         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15124         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15125         * lib/unictype/pr_unified_ideograph.h: Likewise.
15126         * lib/unictype/pr_uppercase.h: Likewise.
15127         * lib/unictype/pr_xid_continue.h: Likewise.
15128         * lib/unictype/pr_xid_start.h: Likewise.
15129         * lib/unictype/scripts.h: Likewise.
15130         * lib/unictype/scripts_byname.gperf: Likewise.
15131         * lib/unictype/sy_java_ident.h: Likewise.
15132         * lib/unigbrk/gbrkprop.h: Likewise.
15133         * lib/unilbrk/lbrkprop1.h: Likewise.
15134         * lib/unilbrk/lbrkprop2.h: Likewise.
15135         * lib/uninorm/decomposition-table2.h: Likewise.
15136         * lib/uniwbrk/wbrkprop.h: Likewise.
15137         * tests/unicase/test-cased.c: Likewise.
15138         * tests/unicase/test-ignorable.c: Likewise.
15139         * tests/unicase/test-uc_tolower.c: Likewise.
15140         * tests/unicase/test-uc_totitle.c: Likewise.
15141         * tests/unicase/test-uc_toupper.c: Likewise.
15142         * tests/unictype/test-categ_C.c: Likewise.
15143         * tests/unictype/test-categ_Cn.c: Likewise.
15144         * tests/unictype/test-categ_L.c: Likewise.
15145         * tests/unictype/test-categ_Ll.c: Likewise.
15146         * tests/unictype/test-categ_Lm.c: Likewise.
15147         * tests/unictype/test-categ_Lo.c: Likewise.
15148         * tests/unictype/test-categ_Lu.c: Likewise.
15149         * tests/unictype/test-categ_M.c: Likewise.
15150         * tests/unictype/test-categ_Mc.c: Likewise.
15151         * tests/unictype/test-categ_Me.c: Likewise.
15152         * tests/unictype/test-categ_Mn.c: Likewise.
15153         * tests/unictype/test-categ_N.c: Likewise.
15154         * tests/unictype/test-categ_Nd.c: Likewise.
15155         * tests/unictype/test-categ_No.c: Likewise.
15156         * tests/unictype/test-categ_P.c: Likewise.
15157         * tests/unictype/test-categ_Po.c: Likewise.
15158         * tests/unictype/test-categ_S.c: Likewise.
15159         * tests/unictype/test-categ_Sc.c: Likewise.
15160         * tests/unictype/test-categ_Sk.c: Likewise.
15161         * tests/unictype/test-categ_Sm.c: Likewise.
15162         * tests/unictype/test-categ_So.c: Likewise.
15163         * tests/unictype/test-ctype_alnum.c: Likewise.
15164         * tests/unictype/test-ctype_alpha.c: Likewise.
15165         * tests/unictype/test-ctype_graph.c: Likewise.
15166         * tests/unictype/test-ctype_lower.c: Likewise.
15167         * tests/unictype/test-ctype_print.c: Likewise.
15168         * tests/unictype/test-ctype_punct.c: Likewise.
15169         * tests/unictype/test-ctype_upper.c: Likewise.
15170         * tests/unictype/test-decdigit.h: Likewise.
15171         * tests/unictype/test-digit.h: Likewise.
15172         * tests/unictype/test-numeric.h: Likewise.
15173         * tests/unictype/test-pr_alphabetic.c: Likewise.
15174         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15175         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15176         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15177         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15178         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15179         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15180         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15181         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15182         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15183         * tests/unictype/test-pr_cased.c: Likewise.
15184         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15185         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15186         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15187         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15188         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15189         * tests/unictype/test-pr_combining.c: Likewise.
15190         * tests/unictype/test-pr_composite.c: Likewise.
15191         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15192         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15193         * tests/unictype/test-pr_deprecated.c: Likewise.
15194         * tests/unictype/test-pr_format_control.c: Likewise.
15195         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15196         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15197         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15198         * tests/unictype/test-pr_id_continue.c: Likewise.
15199         * tests/unictype/test-pr_id_start.c: Likewise.
15200         * tests/unictype/test-pr_ideographic.c: Likewise.
15201         * tests/unictype/test-pr_lowercase.c: Likewise.
15202         * tests/unictype/test-pr_math.c: Likewise.
15203         * tests/unictype/test-pr_numeric.c: Likewise.
15204         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15205         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15206         * tests/unictype/test-pr_other_math.c: Likewise.
15207         * tests/unictype/test-pr_punctuation.c: Likewise.
15208         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15209         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15210         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15211         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15212         * tests/unictype/test-pr_uppercase.c: Likewise.
15213         * tests/unictype/test-pr_xid_continue.c: Likewise.
15214         * tests/unictype/test-pr_xid_start.c: Likewise.
15215         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15216         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15217         changes.
15218         * lib/unictype/categ_Cc.h: Likewise.
15219         * lib/unictype/categ_Cf.h: Likewise.
15220         * lib/unictype/categ_Co.h: Likewise.
15221         * lib/unictype/categ_Cs.h: Likewise.
15222         * lib/unictype/categ_Lt.h: Likewise.
15223         * lib/unictype/categ_Nl.h: Likewise.
15224         * lib/unictype/categ_Pc.h: Likewise.
15225         * lib/unictype/categ_Pd.h: Likewise.
15226         * lib/unictype/categ_Pe.h: Likewise.
15227         * lib/unictype/categ_Pf.h: Likewise.
15228         * lib/unictype/categ_Pi.h: Likewise.
15229         * lib/unictype/categ_Ps.h: Likewise.
15230         * lib/unictype/categ_Z.h: Likewise.
15231         * lib/unictype/categ_Zl.h: Likewise.
15232         * lib/unictype/categ_Zp.h: Likewise.
15233         * lib/unictype/categ_Zs.h: Likewise.
15234         * lib/unictype/ctype_blank.h: Likewise.
15235         * lib/unictype/ctype_cntrl.h: Likewise.
15236         * lib/unictype/ctype_digit.h: Likewise.
15237         * lib/unictype/ctype_space.h: Likewise.
15238         * lib/unictype/ctype_xdigit.h: Likewise.
15239         * lib/unictype/mirror.h: Likewise.
15240         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15241         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15242         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15243         * lib/unictype/pr_bidi_control.h: Likewise.
15244         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15245         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15246         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15247         * lib/unictype/pr_bidi_pdf.h: Likewise.
15248         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15249         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15250         * lib/unictype/pr_dash.h: Likewise.
15251         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15252         * lib/unictype/pr_diacritic.h: Likewise.
15253         * lib/unictype/pr_extender.h: Likewise.
15254         * lib/unictype/pr_hex_digit.h: Likewise.
15255         * lib/unictype/pr_hyphen.h: Likewise.
15256         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15257         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15258         * lib/unictype/pr_ignorable_control.h: Likewise.
15259         * lib/unictype/pr_iso_control.h: Likewise.
15260         * lib/unictype/pr_join_control.h: Likewise.
15261         * lib/unictype/pr_left_of_pair.h: Likewise.
15262         * lib/unictype/pr_line_separator.h: Likewise.
15263         * lib/unictype/pr_logical_order_exception.h: Likewise.
15264         * lib/unictype/pr_non_break.h: Likewise.
15265         * lib/unictype/pr_not_a_character.h: Likewise.
15266         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15267         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15268         * lib/unictype/pr_other_id_start.h: Likewise.
15269         * lib/unictype/pr_other_lowercase.h: Likewise.
15270         * lib/unictype/pr_other_uppercase.h: Likewise.
15271         * lib/unictype/pr_paired_punctuation.h: Likewise.
15272         * lib/unictype/pr_paragraph_separator.h: Likewise.
15273         * lib/unictype/pr_pattern_syntax.h: Likewise.
15274         * lib/unictype/pr_pattern_white_space.h: Likewise.
15275         * lib/unictype/pr_private_use.h: Likewise.
15276         * lib/unictype/pr_quotation_mark.h: Likewise.
15277         * lib/unictype/pr_radical.h: Likewise.
15278         * lib/unictype/pr_soft_dotted.h: Likewise.
15279         * lib/unictype/pr_space.h: Likewise.
15280         * lib/unictype/pr_titlecase.h: Likewise.
15281         * lib/unictype/pr_variation_selector.h: Likewise.
15282         * lib/unictype/pr_white_space.h: Likewise.
15283         * lib/unictype/pr_zero_width.h: Likewise.
15284         * lib/unictype/sy_c_ident.h: Likewise.
15285         * lib/unictype/sy_c_whitespace.h: Likewise.
15286         * lib/unictype/sy_java_whitespace.h: Likewise.
15287         * lib/uninorm/composition-table.gperf: Likewise.
15288         * lib/uninorm/decomposition-table1.h: Likewise.
15289         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15290         LB8.
15291         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15292         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15293         * modules/unictype/*: Bump version number of expected libunistring
15294         version.
15295
15296 2011-01-09  Bruno Haible  <bruno@clisp.org>
15297
15298         Update to Unicode 5.2.0.
15299         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15300         trailing whitespace removed.
15301
15302 2011-01-09  Bruno Haible  <bruno@clisp.org>
15303
15304         New Unicode character properties, from Unicode 5.2.0.
15305         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15306         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15307         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15308         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15309         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15310         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15311         uc_is_property_cased, uc_is_property_case_ignorable,
15312         uc_is_property_changes_when_lowercased,
15313         uc_is_property_changes_when_uppercased,
15314         uc_is_property_changes_when_titlecased,
15315         uc_is_property_changes_when_casefolded,
15316         uc_is_property_changes_when_casemapped): New declarations.
15317         * lib/unictype/pr_byname.gperf: Add the new properties.
15318         * modules/unictype/property-byname (Depends-on): Depend on the new
15319         properties modules.
15320         * modules/unictype/property-all (Depends-on): Likewise.
15321         * MODULES.html.sh (Unicode string functions): Add
15322         unictype/property-case-ignorable, unictype/property-cased,
15323         unictype/property-changes-when-casefolded,
15324         unictype/property-changes-when-casemapped,
15325         unictype/property-changes-when-lowercased,
15326         unictype/property-changes-when-titlecased,
15327         unictype/property-changes-when-uppercased.
15328
15329         New module 'unictype/property-changes-when-casemapped'.
15330         * modules/unictype/property-changes-when-casemapped: New file.
15331         * lib/unictype/pr_changes_when_casemapped.c: New file.
15332         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15333         generated by gen-uni-tables.
15334         * modules/unictype/property-changes-when-casemapped-tests: New file.
15335         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15336         automatically generated by gen-uni-tables.
15337
15338         New module 'unictype/property-changes-when-casefolded'.
15339         * modules/unictype/property-changes-when-casefolded: New file.
15340         * lib/unictype/pr_changes_when_casefolded.c: New file.
15341         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15342         generated by gen-uni-tables.
15343         * modules/unictype/property-changes-when-casefolded-tests: New file.
15344         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15345         automatically generated by gen-uni-tables.
15346
15347         New module 'unictype/property-changes-when-titlecased'.
15348         * modules/unictype/property-changes-when-titlecased: New file.
15349         * lib/unictype/pr_changes_when_titlecased.c: New file.
15350         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15351         generated by gen-uni-tables.
15352         * modules/unictype/property-changes-when-titlecased-tests: New file.
15353         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
15354         automatically generated by gen-uni-tables.
15355
15356         New module 'unictype/property-changes-when-uppercased'.
15357         * modules/unictype/property-changes-when-uppercased: New file.
15358         * lib/unictype/pr_changes_when_uppercased.c: New file.
15359         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
15360         generated by gen-uni-tables.
15361         * modules/unictype/property-changes-when-uppercased-tests: New file.
15362         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
15363         automatically generated by gen-uni-tables.
15364
15365         New module 'unictype/property-changes-when-lowercased'.
15366         * modules/unictype/property-changes-when-lowercased: New file.
15367         * lib/unictype/pr_changes_when_lowercased.c: New file.
15368         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
15369         generated by gen-uni-tables.
15370         * modules/unictype/property-changes-when-lowercased-tests: New file.
15371         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
15372         automatically generated by gen-uni-tables.
15373
15374         New module 'unictype/property-case-ignorable'.
15375         * modules/unictype/property-case-ignorable: New file.
15376         * lib/unictype/pr_case_ignorable.c: New file.
15377         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
15378         by gen-uni-tables.
15379         * modules/unictype/property-case-ignorable-tests: New file.
15380         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
15381         generated by gen-uni-tables.
15382
15383         New module 'unictype/property-cased'.
15384         * modules/unictype/property-cased: New file.
15385         * lib/unictype/pr_cased.c: New file.
15386         * lib/unictype/pr_cased.h: New file, automatically generated by
15387         gen-uni-tables.
15388         * modules/unictype/property-cased-tests: New file.
15389         * tests/unictype/test-pr_cased.c: New file, automatically generated by
15390         gen-uni-tables.
15391
15392 2011-01-09  Bruno Haible  <bruno@clisp.org>
15393
15394         Update to Unicode 5.2.0.
15395         * lib/gen-uni-tables.c (output_predicate, output_category,
15396         output_combclass, output_bidi_category, output_decimal_digit_test,
15397         output_decimal_digit, output_digit_test, output_digit,
15398         output_numeric_test, output_numeric, output_mirror, output_scripts,
15399         output_scripts_byname, output_blocks, output_ident_category): Fix
15400         comment header.
15401         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
15402         get_wbp.
15403         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
15404         items.
15405         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
15406         Changes_When_Lowercased, Changes_When_Uppercased,
15407         Changes_When_Titlecased, Changes_When_Casefolded,
15408         Changes_When_Casemapped.
15409         (is_property_alphabetic, is_property_default_ignorable_code_point):
15410         Update for Unicode 5.2.0.
15411         (is_property_cased, is_property_case_ignorable,
15412         is_property_changes_when_lowercased,
15413         is_property_changes_when_uppercased,
15414         is_property_changes_when_titlecased,
15415         is_property_changes_when_casefolded,
15416         is_property_changes_when_casemapped): New functions.
15417         (output_properties): Output also the properties cased, case_ignorable,
15418         changes_when_lowercased, changes_when_uppercased,
15419         changes_when_titlecased, changes_when_casefolded,
15420         changes_when_casemapped.
15421         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
15422         Unicode TR#11 revision 17 -> 19.
15423         (LBP_CP): New enumeration value.
15424         (LBP_*): Adjust values accordingly.
15425         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15426         TR#14 revision 22 -> 24.
15427         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
15428         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
15429         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15430         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
15431         is_WBP_MIDLETTER.
15432         (output_composition_tables): Allow for 24 bits instead of 16 bits in
15433         the code1 and code2 of each composition rule.
15434         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
15435         * lib/unicase/ignorable.h: Likewise.
15436         * lib/unicase/tocasefold.h: Likewise.
15437         * lib/unicase/tolower.h: Likewise.
15438         * lib/unicase/totitle.h: Likewise.
15439         * lib/unicase/toupper.h: Likewise.
15440         * lib/unictype/bidi_of.h: Likewise.
15441         * lib/unictype/blocks.h: Likewise.
15442         * lib/unictype/categ_C.h: Likewise.
15443         * lib/unictype/categ_Cf.h: Likewise.
15444         * lib/unictype/categ_Cn.h: Likewise.
15445         * lib/unictype/categ_L.h: Likewise.
15446         * lib/unictype/categ_Ll.h: Likewise.
15447         * lib/unictype/categ_Lm.h: Likewise.
15448         * lib/unictype/categ_Lo.h: Likewise.
15449         * lib/unictype/categ_Lu.h: Likewise.
15450         * lib/unictype/categ_M.h: Likewise.
15451         * lib/unictype/categ_Mc.h: Likewise.
15452         * lib/unictype/categ_Mn.h: Likewise.
15453         * lib/unictype/categ_N.h: Likewise.
15454         * lib/unictype/categ_Nd.h: Likewise.
15455         * lib/unictype/categ_Nl.h: Likewise.
15456         * lib/unictype/categ_No.h: Likewise.
15457         * lib/unictype/categ_P.h: Likewise.
15458         * lib/unictype/categ_Pd.h: Likewise.
15459         * lib/unictype/categ_Po.h: Likewise.
15460         * lib/unictype/categ_S.h: Likewise.
15461         * lib/unictype/categ_Sc.h: Likewise.
15462         * lib/unictype/categ_So.h: Likewise.
15463         * lib/unictype/categ_of.h: Likewise.
15464         * lib/unictype/combining.h: Likewise.
15465         * lib/unictype/ctype_alnum.h: Likewise.
15466         * lib/unictype/ctype_alpha.h: Likewise.
15467         * lib/unictype/ctype_graph.h: Likewise.
15468         * lib/unictype/ctype_lower.h: Likewise.
15469         * lib/unictype/ctype_print.h: Likewise.
15470         * lib/unictype/ctype_punct.h: Likewise.
15471         * lib/unictype/ctype_upper.h: Likewise.
15472         * lib/unictype/decdigit.h: Likewise.
15473         * lib/unictype/digit.h: Likewise.
15474         * lib/unictype/numeric.h: Likewise.
15475         * lib/unictype/pr_alphabetic.h: Likewise.
15476         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15477         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15478         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15479         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15480         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15481         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15482         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15483         * lib/unictype/pr_combining.h: Likewise.
15484         * lib/unictype/pr_composite.h: Likewise.
15485         * lib/unictype/pr_currency_symbol.h: Likewise.
15486         * lib/unictype/pr_dash.h: Likewise.
15487         * lib/unictype/pr_decimal_digit.h: Likewise.
15488         * lib/unictype/pr_deprecated.h: Likewise.
15489         * lib/unictype/pr_diacritic.h: Likewise.
15490         * lib/unictype/pr_extender.h: Likewise.
15491         * lib/unictype/pr_grapheme_base.h: Likewise.
15492         * lib/unictype/pr_grapheme_extend.h: Likewise.
15493         * lib/unictype/pr_grapheme_link.h: Likewise.
15494         * lib/unictype/pr_id_continue.h: Likewise.
15495         * lib/unictype/pr_id_start.h: Likewise.
15496         * lib/unictype/pr_ideographic.h: Likewise.
15497         * lib/unictype/pr_ignorable_control.h: Likewise.
15498         * lib/unictype/pr_logical_order_exception.h: Likewise.
15499         * lib/unictype/pr_lowercase.h: Likewise.
15500         * lib/unictype/pr_numeric.h: Likewise.
15501         * lib/unictype/pr_other_alphabetic.h: Likewise.
15502         * lib/unictype/pr_punctuation.h: Likewise.
15503         * lib/unictype/pr_sentence_terminal.h: Likewise.
15504         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15505         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15506         * lib/unictype/pr_unified_ideograph.h: Likewise.
15507         * lib/unictype/pr_uppercase.h: Likewise.
15508         * lib/unictype/pr_xid_continue.h: Likewise.
15509         * lib/unictype/pr_xid_start.h: Likewise.
15510         * lib/unictype/pr_zero_width.h: Likewise.
15511         * lib/unictype/scripts.h: Likewise.
15512         * lib/unictype/scripts_byname.gperf: Likewise.
15513         * lib/unictype/sy_java_ident.h: Likewise.
15514         * lib/unigbrk/gbrkprop.h: Likewise.
15515         * lib/unilbrk/lbrkprop1.h: Likewise.
15516         * lib/unilbrk/lbrkprop2.h: Likewise.
15517         * lib/unilbrk/lbrktables.h: Likewise.
15518         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
15519         LBP_CP. Implement rule LB30.
15520         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
15521         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
15522         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15523         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15524         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15525         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15526         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
15527         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
15528         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
15529         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
15530         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
15531         bits instead of 16 bits in the code1 and code2 of each composition
15532         rule.
15533         (uc_composition): Update for Unicode 5.2.0.
15534         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
15535         * lib/uninorm/decomposition-table2.h: Likewise.
15536         * lib/uniwbrk/wbrkprop.h: Likewise.
15537         * tests/unicase/test-cased.c: Likewise.
15538         * tests/unicase/test-ignorable.c: Likewise.
15539         * tests/unicase/test-uc_tolower.c: Likewise.
15540         * tests/unicase/test-uc_totitle.c: Likewise.
15541         * tests/unicase/test-uc_toupper.c: Likewise.
15542         * tests/unictype/test-categ_C.c: Likewise.
15543         * tests/unictype/test-categ_Cf.c: Likewise.
15544         * tests/unictype/test-categ_Cn.c: Likewise.
15545         * tests/unictype/test-categ_L.c: Likewise.
15546         * tests/unictype/test-categ_Ll.c: Likewise.
15547         * tests/unictype/test-categ_Lm.c: Likewise.
15548         * tests/unictype/test-categ_Lo.c: Likewise.
15549         * tests/unictype/test-categ_Lu.c: Likewise.
15550         * tests/unictype/test-categ_M.c: Likewise.
15551         * tests/unictype/test-categ_Mc.c: Likewise.
15552         * tests/unictype/test-categ_Mn.c: Likewise.
15553         * tests/unictype/test-categ_N.c: Likewise.
15554         * tests/unictype/test-categ_Nd.c: Likewise.
15555         * tests/unictype/test-categ_Nl.c: Likewise.
15556         * tests/unictype/test-categ_No.c: Likewise.
15557         * tests/unictype/test-categ_P.c: Likewise.
15558         * tests/unictype/test-categ_Pd.c: Likewise.
15559         * tests/unictype/test-categ_Po.c: Likewise.
15560         * tests/unictype/test-categ_S.c: Likewise.
15561         * tests/unictype/test-categ_Sc.c: Likewise.
15562         * tests/unictype/test-categ_So.c: Likewise.
15563         * tests/unictype/test-ctype_alnum.c: Likewise.
15564         * tests/unictype/test-ctype_alpha.c: Likewise.
15565         * tests/unictype/test-ctype_graph.c: Likewise.
15566         * tests/unictype/test-ctype_lower.c: Likewise.
15567         * tests/unictype/test-ctype_print.c: Likewise.
15568         * tests/unictype/test-ctype_punct.c: Likewise.
15569         * tests/unictype/test-ctype_upper.c: Likewise.
15570         * tests/unictype/test-decdigit.h: Likewise.
15571         * tests/unictype/test-digit.h: Likewise.
15572         * tests/unictype/test-numeric.h: Likewise.
15573         * tests/unictype/test-pr_alphabetic.c: Likewise.
15574         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15575         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15576         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
15577         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15578         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15579         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15580         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15581         * tests/unictype/test-pr_combining.c: Likewise.
15582         * tests/unictype/test-pr_composite.c: Likewise.
15583         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15584         * tests/unictype/test-pr_dash.c: Likewise.
15585         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15586         * tests/unictype/test-pr_deprecated.c: Likewise.
15587         * tests/unictype/test-pr_diacritic.c: Likewise.
15588         * tests/unictype/test-pr_extender.c: Likewise.
15589         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15590         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15591         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15592         * tests/unictype/test-pr_id_continue.c: Likewise.
15593         * tests/unictype/test-pr_id_start.c: Likewise.
15594         * tests/unictype/test-pr_ideographic.c: Likewise.
15595         * tests/unictype/test-pr_ignorable_control.c: Likewise.
15596         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
15597         * tests/unictype/test-pr_lowercase.c: Likewise.
15598         * tests/unictype/test-pr_numeric.c: Likewise.
15599         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15600         * tests/unictype/test-pr_punctuation.c: Likewise.
15601         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15602         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15603         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15604         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15605         * tests/unictype/test-pr_uppercase.c: Likewise.
15606         * tests/unictype/test-pr_xid_continue.c: Likewise.
15607         * tests/unictype/test-pr_xid_start.c: Likewise.
15608         * tests/unictype/test-pr_zero_width.c: Likewise.
15609         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15610         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
15611         changed behaviour: line breaking is now disallowed between a letter
15612         or '=' and '('.
15613         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15614         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15615         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15616         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
15617         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15618         lib/uniwidth/width.c.
15619         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
15620         without comments, but with the original copyright notice.
15621         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15622         changes.
15623         * lib/unictype/categ_Cc.h: Likewise.
15624         * lib/unictype/categ_Co.h: Likewise.
15625         * lib/unictype/categ_Cs.h: Likewise.
15626         * lib/unictype/categ_Lt.h: Likewise.
15627         * lib/unictype/categ_Me.h: Likewise.
15628         * lib/unictype/categ_Pc.h: Likewise.
15629         * lib/unictype/categ_Pe.h: Likewise.
15630         * lib/unictype/categ_Pf.h: Likewise.
15631         * lib/unictype/categ_Pi.h: Likewise.
15632         * lib/unictype/categ_Ps.h: Likewise.
15633         * lib/unictype/categ_Sk.h: Likewise.
15634         * lib/unictype/categ_Sm.h: Likewise.
15635         * lib/unictype/categ_Z.h: Likewise.
15636         * lib/unictype/categ_Zl.h: Likewise.
15637         * lib/unictype/categ_Zp.h: Likewise.
15638         * lib/unictype/categ_Zs.h: Likewise.
15639         * lib/unictype/ctype_blank.h: Likewise.
15640         * lib/unictype/ctype_cntrl.h: Likewise.
15641         * lib/unictype/ctype_digit.h: Likewise.
15642         * lib/unictype/ctype_space.h: Likewise.
15643         * lib/unictype/ctype_xdigit.h: Likewise.
15644         * lib/unictype/mirror.h: Likewise.
15645         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15646         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15647         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15648         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15649         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15650         * lib/unictype/pr_bidi_control.h: Likewise.
15651         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15652         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15653         * lib/unictype/pr_bidi_pdf.h: Likewise.
15654         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15655         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15656         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15657         * lib/unictype/pr_format_control.h: Likewise.
15658         * lib/unictype/pr_hex_digit.h: Likewise.
15659         * lib/unictype/pr_hyphen.h: Likewise.
15660         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15661         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15662         * lib/unictype/pr_iso_control.h: Likewise.
15663         * lib/unictype/pr_join_control.h: Likewise.
15664         * lib/unictype/pr_left_of_pair.h: Likewise.
15665         * lib/unictype/pr_line_separator.h: Likewise.
15666         * lib/unictype/pr_math.h: Likewise.
15667         * lib/unictype/pr_non_break.h: Likewise.
15668         * lib/unictype/pr_not_a_character.h: Likewise.
15669         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15670         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15671         * lib/unictype/pr_other_id_continue.h: Likewise.
15672         * lib/unictype/pr_other_id_start.h: Likewise.
15673         * lib/unictype/pr_other_lowercase.h: Likewise.
15674         * lib/unictype/pr_other_math.h: Likewise.
15675         * lib/unictype/pr_other_uppercase.h: Likewise.
15676         * lib/unictype/pr_paired_punctuation.h: Likewise.
15677         * lib/unictype/pr_paragraph_separator.h: Likewise.
15678         * lib/unictype/pr_pattern_syntax.h: Likewise.
15679         * lib/unictype/pr_pattern_white_space.h: Likewise.
15680         * lib/unictype/pr_private_use.h: Likewise.
15681         * lib/unictype/pr_quotation_mark.h: Likewise.
15682         * lib/unictype/pr_radical.h: Likewise.
15683         * lib/unictype/pr_soft_dotted.h: Likewise.
15684         * lib/unictype/pr_space.h: Likewise.
15685         * lib/unictype/pr_titlecase.h: Likewise.
15686         * lib/unictype/pr_variation_selector.h: Likewise.
15687         * lib/unictype/pr_white_space.h: Likewise.
15688         * lib/unictype/sy_c_ident.h: Likewise.
15689         * lib/unictype/sy_c_whitespace.h: Likewise.
15690         * lib/unictype/sy_java_whitespace.h: Likewise.
15691         * modules/uni*/*: Bump version number of expected libunistring version.
15692         Reported by Simon Josefsson.
15693
15694 2011-01-09  Karl Heuer  <kwzh@gnu.org>
15695
15696         useless-if-before-free: fix typo in --help and make the internal,
15697         automatic version date update process work once again.
15698         --help output contained a NUL character instead of the
15699         backslash-zero that was intended.  Also, the "must lie within
15700         the first 8 lines" line is on line 9, and hence not getting
15701         automatically updated.
15702         * build-aux/useless-if-before-free: Fix the former by adding a
15703         backslash, and the latter by condensing the three lines of what-it-does
15704         to a single line, leaving one line of slack for the future.
15705
15706 2011-01-09  Bruno Haible  <bruno@clisp.org>
15707
15708         uniwidth/width: Fix width of U+1D173..U+1D17A.
15709         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
15710         symbolic_width, output_width_property_test): New functions.
15711         (main): Invoke output_nonspacing_property, output_width_property_test.
15712         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
15713         U+1D173..U+1D17A.
15714         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
15715         1.
15716         * modules/uniwidth/*: Bump version number of expected libunistring
15717         version.
15718         * modules/unilbrk/*: Likewise.
15719
15720 2011-01-08  Bruno Haible  <bruno@clisp.org>
15721
15722         uninorm tests: Preserve copyright of Unicode data file.
15723         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
15724         Mention modifications.
15725
15726 2011-01-08  Bruno Haible  <bruno@clisp.org>
15727
15728         gen-uni-tables: Prepare for Unicode 5.2.0.
15729         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
15730         (debug_output_lbp, output_lbp): Update.
15731
15732 2011-01-08  Bruno Haible  <bruno@clisp.org>
15733
15734         unilbrk: Clarify gen-uni-tables.c code.
15735         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
15736         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
15737         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
15738
15739 2011-01-07  Bruno Haible  <bruno@clisp.org>
15740
15741         strtod: Restore errno when successfully parsing Infinity or NaN.
15742         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
15743         restore the original errno.
15744
15745 2011-01-07  Bruno Haible  <bruno@clisp.org>
15746
15747         remove test: Avoid failure on HP-UX 11.
15748         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
15749
15750 2011-01-07  Bruno Haible  <bruno@clisp.org>
15751
15752         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
15753         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
15754         error code.
15755
15756 2011-01-07  Pádraig Brady <P@draigBrady.com>
15757
15758         ignore-value: fixup comments, and add Eric Blake
15759         as an author since he rewrote the macros.
15760         * lib/ignore-value.h (ignore_value):  State that
15761         we now support aggregates.  Also specify exactly
15762         when the GCC warn_unused_result feature was added.
15763
15764 2011-01-06  Eric Blake  <eblake@redhat.com>
15765
15766         ignore-value: support aggregate types
15767         * lib/ignore-value.h (ignore_value): Provide separate gcc
15768         definition.
15769         * modules/ignore-value-tests: New test module.
15770         * tests/test-ignore-value.c: New test.
15771
15772         maint.mk: improve sc_prohibit_strcmp regex
15773         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
15774         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
15775         definition of STRNEQ.
15776
15777         signal: work around Haiku issue with SIGBUS
15778         * lib/siglist.h: Add comment.
15779         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
15780         strsignal's favoring of SIGSEGV.
15781         * tests/test-signal.c (main): Avoid test failure.
15782         * doc/posix-headers/signal.texi (signal.h): Document the issue.
15783         Reported by Scott McCreary.
15784
15785         maint.mk: add pre-release check to ensure submodule commits are public
15786         * top/maint.mk (public-submodule-commit): New rule.
15787         (submodule-checks): New variable.
15788         (alpha beta stable): Depend on the variable.
15789
15790 2011-01-05  Pádraig Brady <P@draigBrady.com>
15791         and Jim Meyering  <meyering@redhat.com>
15792
15793         ignore-value: make ignore_value more generic; deprecate ignore_ptr
15794         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
15795         (ATTRIBUTE_DEPRECATED): Define.
15796         (_ignore_case): New function.
15797         (ignore_value): New macro, to replace the old function.
15798         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
15799         * modules/ignore-value (Depends-on): Add stdint.
15800
15801 2011-01-04  Eric Blake  <eblake@redhat.com>
15802
15803         doc: regenerate INSTALL
15804         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
15805         @firstparagraphindent support, now that autoconf dropped it.
15806         (INSTALL_PRELUDE): Reinstate old macro.
15807         * doc/install.texi: Resync from autoconf.
15808         * doc/INSTALL: Reflect recent autoconf update.
15809         * doc/INSTALL.ISO: Likewise.
15810         * doc/INSTALL.UTF-8: Likewise.
15811         Reported by Karl Berry.
15812
15813 2011-01-04  Bruce Korb  <address@hidden>
15814
15815         git-version-gen: avoid a sub-shell
15816         * build-aux/git-version-gen: Redirect stderr in `...` via
15817         "exec 2>...", rather than via an added sub-shell.
15818
15819 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
15820
15821         git-version-gen: use (...) rather than sh -c '...'
15822         * build-aux/git-version-gen: Rather than hard-coding a shell's name
15823         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
15824
15825 2011-01-03  Jim Meyering  <meyering@redhat.com>
15826
15827         git-version-gen: convert leading TABs to spaces
15828         * build-aux/git-version-gen: Expand leading TABs.
15829
15830         git-version-gen: handle failed "git rev-list"
15831         * build-aux/git-version-gen: Rather than leaking a "fatal" error
15832         from git and proceeding as if it had succeeded but printed no SHA1
15833         checksums, suppress the diagnostic and handle the failure.
15834         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
15835
15836         git-version-gen: include command name in one more diagnostic
15837         * build-aux/git-version-gen: When the required .tarball-version file
15838         was missing or unreadable, you might see the diagnostic from "cat",
15839         but no trace of the name of the invoking script.  Now, you still see
15840         the diagnostic from cat, but also get one from "git-version-gen: ".
15841         Inspired by a patch from Bruce Korb.
15842
15843         update-copyright: adjust test to match changed code
15844         * tests/test-update-copyright.sh: Change test's expected output
15845         to match new actual output.
15846
15847 2011-01-02  Bruno Haible  <bruno@clisp.org>
15848
15849         getlogin_r: Avoid test failure on HP-UX 11.
15850         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
15851         ERANGE when the second argument is zero.
15852         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
15853         portability problem.
15854
15855 2011-01-02  Bruce Korb  <bkorb@gnu.org>
15856
15857         * build-aux/update-copyright: doc Simon's changes
15858
15859 2011-01-02  Simon Josefsson  <simon@josefsson.org>
15860
15861         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
15862         environment variable.
15863
15864 2011-01-02  Bruno Haible  <bruno@clisp.org>
15865
15866         unigbrk: Avoid gcc warnings.
15867         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
15868         unused variable.
15869         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
15870         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
15871         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
15872         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
15873         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
15874         Change type of first argument to 'const char *'.
15875         (main): Remove unused variable.
15876         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
15877         type of first argument to 'const char *'.
15878         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
15879         Likewise.
15880         (main): Change type of variable 's'.
15881         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
15882         to 'int'.
15883
15884 2011-01-02  Bruno Haible  <bruno@clisp.org>
15885
15886         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
15887         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
15888         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
15889         bug.
15890         * lib/pwrite.c: Undo 2010-12-31 patch.
15891         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
15892
15893 2011-01-02  Bruno Haible  <bruno@clisp.org>
15894
15895         pread: Fix test whether it works.
15896         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
15897
15898 2011-01-02  Bruno Haible  <bruno@clisp.org>
15899
15900         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
15901         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
15902         ends in "6". Don't require a specific month name. Try also the locale
15903         names found on HP-UX 11 and Solaris 7.
15904
15905 2011-01-02  Bruno Haible  <bruno@clisp.org>
15906
15907         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
15908         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
15909         C linkage.
15910         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
15911
15912 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15913
15914         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
15915         for consistency, since the "cluster" term is not used elsewhere.
15916         * lib/unigbrk.in.h: Update name.
15917         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
15918         * lib/unigbrk/u16-grapheme-next.c: Update name.
15919         * lib/unigbrk/u16-grapheme-prev.c: Update name.
15920         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
15921         * lib/unigbrk/u32-grapheme-next.c: Update name.
15922         * lib/unigbrk/u32-grapheme-prev.c: Update name.
15923         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
15924         * lib/unigbrk/u8-grapheme-next.c: Update name.
15925         * lib/unigbrk/u8-grapheme-prev.c: Update name.
15926         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
15927         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
15928         Suggested by Bruno Haible.
15929
15930 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15931
15932         Remove module 'u8-grapheme-len' as too redundant with
15933         'u8-grapheme-next'.
15934         * modules/unigbrk/u8-grapheme-len: Delete file.
15935         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
15936         * lib/unigbrk.in.h: Remove prototype for deleted function.
15937         * lib/unigbrk/u8-grapheme-len.c: Delete file.
15938         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
15939
15940         Remove module 'u16-grapheme-len' as too redundant with
15941         'u16-grapheme-next'.
15942         * modules/unigbrk/u16-grapheme-len: Delete file.
15943         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
15944         * lib/unigbrk.in.h: Remove prototype for deleted function.
15945         * lib/unigbrk/u16-grapheme-len.c: Delete file.
15946         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
15947
15948         Remove module 'u32-grapheme-len' as too redundant with
15949         'u32-grapheme-next'.
15950         * modules/unigbrk/u32-grapheme-len: Delete file.
15951         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
15952         * lib/unigbrk.in.h: Remove prototype for deleted function.
15953         * lib/unigbrk/u32-grapheme-len.c: Delete file.
15954         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
15955
15956         Suggested by Bruno Haible.
15957
15958 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15959
15960         * unigbrk.in.h: Fix typo: "ben" => "been".
15961         Reported by Bruno Haible.
15962
15963 2011-01-01  Jim Meyering  <meyering@redhat.com>
15964
15965         maint: update almost all copyright ranges to include 2011
15966         Run the new "make update-copyright" rule.
15967
15968 2011-01-01  Jim Meyering  <meyering@redhat.com>
15969
15970         maint: update-copyright: exempt doc/INSTALL*
15971         * Makefile (update-copyright): Also exclude doc/INSTALL*,
15972         since they are generated.  Suggested by Bruno Haible.
15973
15974 2011-01-01  Jim Meyering  <meyering@redhat.com>
15975
15976         maint: refine the update-copyright rule
15977         * Makefile (update-copyright): Also exclude any file that includes
15978         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
15979         code that merely generates the comment.
15980
15981 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15982
15983         New module 'u8-grapheme-len'.
15984         * modules/unigbrk/u8-grapheme-len: New file.
15985         * modules/unigbrk/u8-grapheme-len-tests: New file.
15986         * lib/unigbrk.in.h: Add prototype for new function.
15987         * lib/unigbrk/u8-grapheme-len.c: New file.
15988         * tests/unigbrk/test-u8-grapheme-len.c: New file.
15989
15990         New module 'u16-grapheme-len'.
15991         * modules/unigbrk/u16-grapheme-len: New file.
15992         * modules/unigbrk/u16-grapheme-len-tests: New file.
15993         * lib/unigbrk.in.h: Add prototype for new function.
15994         * lib/unigbrk/u16-grapheme-len.c: New file.
15995         * tests/unigbrk/test-u16-grapheme-len.c: New file.
15996
15997         New module 'u32-grapheme-len'.
15998         * modules/unigbrk/u32-grapheme-len: New file.
15999         * modules/unigbrk/u32-grapheme-len-tests: New file.
16000         * lib/unigbrk.in.h: Add prototype for new function.
16001         * lib/unigbrk/u32-grapheme-len.c: New file.
16002         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16003
16004         New module 'u8-grapheme-next'.
16005         * modules/unigbrk/u8-grapheme-next: New file.
16006         * modules/unigbrk/u8-grapheme-next-tests: New file.
16007         * lib/unigbrk.in.h: Add prototype for new function.
16008         * lib/unigbrk/u8-grapheme-next.c: New file.
16009         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16010
16011         New module 'u16-grapheme-next'.
16012         * modules/unigbrk/u16-grapheme-next: New file.
16013         * modules/unigbrk/u16-grapheme-next-tests: New file.
16014         * lib/unigbrk.in.h: Add prototype for new function.
16015         * lib/unigbrk/u16-grapheme-next.c: New file.
16016         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16017
16018         New module 'u32-grapheme-next'.
16019         * modules/unigbrk/u32-grapheme-next: New file.
16020         * modules/unigbrk/u32-grapheme-next-tests: New file.
16021         * lib/unigbrk.in.h: Add prototype for new function.
16022         * lib/unigbrk/u32-grapheme-next.c: New file.
16023         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16024
16025         New module 'u8-grapheme-prev'.
16026         * modules/unigbrk/u8-grapheme-prev: New file.
16027         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16028         * lib/unigbrk.in.h: Add prototype for new function.
16029         * lib/unigbrk/u8-grapheme-prev.c: New file.
16030         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16031
16032         New module 'u16-grapheme-prev'.
16033         * modules/unigbrk/u16-grapheme-prev: New file.
16034         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16035         * lib/unigbrk.in.h: Add prototype for new function.
16036         * lib/unigbrk/u16-grapheme-prev.c: New file.
16037         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16038
16039         New module 'u32-grapheme-prev'.
16040         * modules/unigbrk/u32-grapheme-prev: New file.
16041         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16042         * lib/unigbrk.in.h: Add prototype for new function.
16043         * lib/unigbrk/u32-grapheme-prev.c: New file.
16044         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16045
16046         New module 'u8-grapheme-breaks'.
16047         * modules/unigbrk/u8-grapheme-breaks: New file.
16048         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16049         * lib/unigbrk.in.h: Add prototype for new function.
16050         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16051         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16052
16053         New module 'u16-grapheme-breaks'.
16054         * modules/unigbrk/u16-grapheme-breaks: New file.
16055         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16056         * lib/unigbrk.in.h: Add prototype for new function.
16057         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16058         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16059
16060         New module 'u32-grapheme-breaks'.
16061         * modules/unigbrk/u32-grapheme-breaks: New file.
16062         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16063         * lib/unigbrk.in.h: Add prototype for new function.
16064         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16065         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16066
16067         New module 'ulc-grapheme-breaks'.
16068         * modules/unigbrk/ulc-grapheme-breaks: New file.
16069         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16070         * m4/locale-ar.m4: New file.
16071         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16072         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16073         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16074
16075 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16076
16077         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16078         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16079         modified how this file was generated before I initially submitted
16080         the module, but failed to regenerate it.  This meant that several
16081         of the level2 entries were wrong.
16082         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16083         Remove the division-by-2 that is folded into the table now that
16084         gbrkprop.h has been regenerated properly.  Now -1 entries are
16085         handled correctly.
16086
16087         New module 'unigbrk/uc-gbrk-prop-tests'.
16088         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16089         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16090         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16091         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16092
16093 2011-01-01  Bruno Haible  <bruno@clisp.org>
16094
16095         Avoid use of hexadecimal escapes.
16096         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16097         instead of hexadecimal escapes.
16098
16099 2011-01-01  Jim Meyering  <meyering@redhat.com>
16100
16101         maint: new rule to update copyright year ranges
16102         * Makefile (update-copyright): New rule.
16103
16104         maint: indent with TABs in Makefile
16105         * Makefile: Expand leading sequences of spaces to TABs
16106
16107         version-etc: update the copyright year it reports
16108         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16109
16110 2010-12-31  Bruno Haible  <bruno@clisp.org>
16111
16112         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16113         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16114         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16115         zero.
16116
16117 2010-12-31  Bruno Haible  <bruno@clisp.org>
16118
16119         pwrite: Work around HP-UX 11.11 bug.
16120         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16121         works and set REPLACE_PWRITE if not.
16122         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16123         function.
16124         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16125
16126 2010-12-31  Bruno Haible  <bruno@clisp.org>
16127
16128         pread: Work around HP-UX 11 bugs.
16129         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16130         and set REPLACE_PREAD if not.
16131         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16132
16133 2010-12-31  Eric Blake  <eblake@redhat.com>
16134
16135         nl_langinfo: fix YESEXPR on Irix 6.5
16136         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16137         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16138         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16139         it.
16140
16141 2010-12-31  Bruno Haible  <bruno@clisp.org>
16142
16143         iconv: Document HP-UX 11 bug.
16144         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16145
16146 2010-12-31  Bruno Haible  <bruno@clisp.org>
16147
16148         ldexpl: Fix link error on HP-UX 11.
16149         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16150         LDEXPL_LIBM, using $ISNANL_LIBM.
16151
16152 2010-12-31  Eric Blake  <eblake@redhat.com>
16153
16154         ftello: avoid compilation failure with SunStudio c89
16155         * lib/ftello.c (ftello): Use lseek, not llseek.
16156
16157         tests: avoid failing coreutils tests on cygwin
16158         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16159         (create_exe_shims_): Return 0 when skipping.
16160
16161 2010-12-31  Bruno Haible  <bruno@clisp.org>
16162
16163         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16164         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16165
16166 2010-12-31  Bruno Haible  <bruno@clisp.org>
16167
16168         waitpid: Fix link error in C++ mode.
16169         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16170
16171 2010-12-31  Bruno Haible  <bruno@clisp.org>
16172
16173         isnan: Use GCC built-ins when possible.
16174         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16175         __builtin_isnan.
16176         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16177         (isnan): Define using GCC built-ins for GCC >= 4.0.
16178
16179 2010-12-31  Bruno Haible  <bruno@clisp.org>
16180
16181         isnand: Fix mistake.
16182         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16183         __builtin_isnand.
16184
16185 2010-12-31  Bruno Haible  <bruno@clisp.org>
16186
16187         open: Avoid C++ error on HP-UX 11.
16188         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16189
16190 2010-12-31  Bruno Haible  <bruno@clisp.org>
16191
16192         time_r: Add missing declarations on HP-UX 11.
16193         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16194         instead of HAVE_LOCALTIME_R.
16195         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16196         HAVE_LOCALTIME_R always.
16197         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16198         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16199         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16200         HAVE_LOCALTIME_R.
16201         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16202         * doc/posix-functions/localtime_r.texi: Likewise.
16203
16204 2010-12-29  Eric Blake  <eblake@redhat.com>
16205
16206         mountlist: tweak previous commit
16207         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16208         Reported by Paul Eggert.
16209
16210         mountlist: fix local drive detection on cygwin
16211         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16212         that works for cygwin.
16213
16214 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16215
16216         ftoastr, snprintf: ftoastr + snprintf module
16217         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16218         since the snprintf module now should be good enough here.
16219         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16220         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16221         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16222         GNULIB_SNPRINTF only for the test directory, and the latter
16223         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16224         seems to suffice by itself.
16225
16226 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16227
16228         alloca: one step towards thread-safety
16229         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16230         need for a static variable.  All callers changed.  This does not
16231         make the alloca replacement thread-safe, but it's one step.
16232
16233         tests: minor indenting change
16234         * tests/init.sh: Sync from coreutils housekeeping patch
16235         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16236         to keep lines within 80 columns.
16237
16238 2010-12-28  Jim Meyering  <meyering@redhat.com>
16239
16240         regex: don't infloop on persistent failing calloc
16241         * lib/regexec.c (build_trtable): Return failure indication upon
16242         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16243         In glibc, this was fixed for version 2.13:
16244         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16245
16246 2010-12-28  Bruno Haible  <bruno@clisp.org>
16247             Paul Eggert <eggert@cs.ucla.edu>
16248
16249         linkat: Make implementation robust against system behaviour variations.
16250         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16251         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16252         way, and to -2 if it needs a generic runtime test.
16253         * lib/linkat.c (solaris_optimized_link_immediate,
16254         solaris_optimized_link_follow): New functions.
16255         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16256         (check_same_link): Use it.
16257
16258 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16259
16260         New module 'unigbrk/base'.
16261         * modules/unigbrk/base: New file.
16262         * lib/unigbrk.in.h: New file.
16263
16264         New module 'unigbrk/uc-gbrk-prop'.
16265         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16266         * modules/unigbrk/uc-gbrk-prop: New file.
16267         * lib/unigbrk/gbrkprop.h: New file.
16268         * lib/unigbrk/uc-gbrk-prop.c: New file.
16269
16270         New module 'unigbrk/uc-is-grapheme-break'.
16271         * modules/unigbrk/uc-is-grapheme-break: New file.
16272         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16273         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16274         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16275         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16276         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16277
16278         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16279
16280 2010-12-27  Bruno Haible  <bruno@clisp.org>
16281
16282         linkat test: Avoid failure on Solaris 11 2010-11.
16283         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16284
16285 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16286
16287         utimens: work around glibc rounding bug on more platforms
16288         * lib/utimens.c (fdutimens): Work around rounding bug even if
16289         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16290         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16291
16292 2010-12-27  Bruno Haible  <bruno@clisp.org>
16293
16294         select tests: Improve comments.
16295         * tests/test-select.c (do_select): Add comments.
16296
16297 2010-12-27  Bruno Haible  <bruno@clisp.org>
16298
16299         select tests: Safer way of handling timeout.
16300         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16301         at every invocation.
16302
16303 2010-12-27  Bruno Haible  <bruno@clisp.org>
16304
16305         select tests: Use 'bool' where appropriate.
16306         * tests/test-select.c (connect_to_socket): Change argument type to
16307         'bool'.
16308
16309 2010-12-27  Bruno Haible  <bruno@clisp.org>
16310
16311         select tests: Use existing modules.
16312         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16313         (configure.ac): Don't test for unistd.h.
16314         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16315         declared in <unistd.h>.
16316
16317 2010-12-27  Bruno Haible  <bruno@clisp.org>
16318
16319         mbrtowc: Work around a Solaris 7 bug.
16320         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16321         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16322         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16323         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16324         MBRTOWC_NULL_ARG1_BUG.
16325         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16326         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16327         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16328         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16329
16330 2010-12-27  Jim Meyering  <meyering@redhat.com>
16331
16332         read-file.c: tweak syntax
16333         * lib/read-file.c (fread_file): Remove space after "*" in function
16334         definitions.
16335
16336 2010-12-27  Bruno Haible  <bruno@clisp.org>
16337
16338         times test: Avoid gcc warnings on OSF/1.
16339         * tests/test-times.c (main): Cast printf arguments from clock_t to
16340         'long int'.
16341
16342 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16343
16344         utimens: work around glibc rounding bug on older Linux kernels
16345         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16346         on Linux with a glibc whose utimes might not work, then work
16347         around a longstanding glibc bug involving rounding rather than
16348         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16349         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16350
16351 2010-12-26  Bruno Haible  <bruno@clisp.org>
16352
16353         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
16354         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
16355         _GL_CXXALIAS_SYS.
16356         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16357
16358 2010-12-26  Bruno Haible  <bruno@clisp.org>
16359
16360         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
16361         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
16362         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16363         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
16364         looking for the declaration.
16365         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16366         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
16367         problem.
16368         * doc/posix-functions/inet_pton.texi: Likewise.
16369
16370 2010-12-26  Bruno Haible  <bruno@clisp.org>
16371
16372         arpa_inet: Use the common idioms with C++ support.
16373         * lib/arpa_inet.in.h: Include c++defs.h.
16374         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
16375         support.
16376         * modules/arpa_inet (Depends-on): Add c++defs.
16377         (Makefile.am): Substitute the contents of c++defs.h.
16378         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
16379         * modules/arpa_inet-c++-tests: New file.
16380         * tests/test-arpa_inet-c++.cc: New file.
16381
16382 2010-12-25  Bruno Haible  <bruno@clisp.org>
16383
16384         Fix more C++ link errors on Solaris 8.
16385         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
16386         $(LIB_EACCESS).
16387         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
16388         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
16389         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
16390         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
16391         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
16392
16393 2010-12-25  Bruno Haible  <bruno@clisp.org>
16394
16395         printf-posix: Fix link error when a non-GCC compiler is used.
16396         * lib/stdio.in.h (printf): When not using GCC, override printf
16397         correctly.
16398         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16399
16400 2010-12-25  Bruno Haible  <bruno@clisp.org>
16401
16402         strerror_r-posix: Update doc.
16403         * doc/posix-functions/strerror_r.texi: Update doc about the return
16404         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
16405
16406 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16407
16408         utimens: simplify the logic of the previous change
16409         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
16410         This should not affect whether the test succeeds or fails.
16411
16412         utimens: configure better on hosts with NFS clock skew
16413         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
16414         uses the clock of the local host.  It might use the clock of the
16415         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
16416         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16417
16418 2010-12-25  Bruno Haible  <bruno@clisp.org>
16419
16420         ptsname test: Avoid failure on Solaris.
16421         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
16422         open a pseudo-terminal; don't use BSD-style ptys.
16423         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
16424
16425 2010-12-25  Bruno Haible  <bruno@clisp.org>
16426
16427         ptsname: Avoid ERANGE failure on some systems.
16428         * lib/ptsname.c (buffer): Increase size.
16429
16430 2010-12-25  Bruno Haible  <bruno@clisp.org>
16431
16432         rename, renameat: Avoid test failures at NFS mounted locations.
16433         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
16434         so that subsequent mkdir calls succeed.
16435
16436 2010-12-25  Bruno Haible  <bruno@clisp.org>
16437
16438         iswblank: Fix C++ link error on Solaris 8.
16439         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
16440         _GL_FUNCDECL_SYS.
16441
16442 2010-12-25  Bruno Haible  <bruno@clisp.org>
16443
16444         unistd: Fix C++ link error on Solaris 8.
16445         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
16446
16447 2010-12-25  Bruno Haible  <bruno@clisp.org>
16448
16449         readlink doc: Mention an old glibc bug.
16450         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16451
16452 2010-12-25  Bruno Haible  <bruno@clisp.org>
16453
16454         fcntl-h: Fix for use of C++ on glibc systems.
16455         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16456         also on glibc systems in C++ mode.
16457         Reported by Gary V. Vaughan <gary@gnu.org>.
16458
16459 2010-12-25  Bruno Haible  <bruno@clisp.org>
16460
16461         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16462         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16463
16464 2010-12-25  Bruno Haible  <bruno@clisp.org>
16465
16466         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16467         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16468         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16469         test whether truncl works according to ISO C 99 with IEC 60559.
16470         * m4/truncl-ieee.m4: New file.
16471         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16472         m4/signbit.m4.
16473         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16474
16475 2010-12-25  Bruno Haible  <bruno@clisp.org>
16476
16477         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16478         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16479         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16480         test whether ceill works according to ISO C 99 with IEC 60559.
16481         * m4/ceill-ieee.m4: New file.
16482         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16483         m4/signbit.m4.
16484         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
16485
16486 2010-12-25  Bruno Haible  <bruno@clisp.org>
16487
16488         Ensure all prerequisites of <wchar.h> are included.
16489         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16490         before <wchar.h>.
16491         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16492         gl_MBRLEN_NUL_RETVAL): Likewise.
16493         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16494         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
16495         AC_FUNC_MBRTOWC): Likewise.
16496         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16497         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16498         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16499         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16500         Likewise.
16501         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16502         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
16503         (gl_WCHAR_H): Improve comments.
16504         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16505
16506 2010-12-25  Bruno Haible  <bruno@clisp.org>
16507
16508         strtok_r: Fix C syntax error in autoconf macro.
16509         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
16510         characters in test program.
16511
16512 2010-12-24  Bruno Haible  <bruno@clisp.org>
16513
16514         ceil, trunc, round: Fix gcc warnings.
16515         * lib/ceil.c (MIN): Undefine before redefining.
16516         * lib/trunc.c (MIN): Likewise.
16517         * lib/round.c (MIN): Likewise.
16518         Include <math.h> first.
16519
16520 2010-12-24  Bruno Haible  <bruno@clisp.org>
16521
16522         select tests: Avoid failures on OSF/1 5.1.
16523         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16524         failure of closing the last socket; it may fail with ECONNRESET.
16525
16526 2010-12-24  Eric Blake  <eblake@redhat.com>
16527
16528         stdint: avoid HP-UX 10.20 preprocessor bug
16529         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
16530         than #if.
16531         * tests/test-floor2.c (main): Likewise.
16532         Reported by Peter O'Gorman.
16533
16534         pipe: make obsoletion transition easier
16535         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
16536         * modules/pipe (Files): Include revived file.
16537         (Include): Drop reference, to mirror getdate's behavior.
16538
16539 2010-12-24  Bruno Haible  <bruno@clisp.org>
16540
16541         sys_socket: Hide mismatch of declarations on NonStop Kernel.
16542         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
16543         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
16544         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16545
16546 2010-12-24  Bruno Haible  <bruno@clisp.org>
16547
16548         gethostname: Ensure declaration on NonStop Kernel.
16549         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
16550         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16551
16552 2010-12-24  Bruno Haible  <bruno@clisp.org>
16553
16554         sys_select: Ensure all necessary types on NonStop Kernel.
16555         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
16556         include <sys/time.h>.
16557         * doc/posix-headers/sys_select.texi: Mention that it's missing on
16558         NonStop Kernel.
16559         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16560
16561 2010-12-24  Bruno Haible  <bruno@clisp.org>
16562
16563         sys_select: Remove unneeded include.
16564         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
16565         have <sys/select.h>.
16566
16567 2010-12-24  Bruno Haible  <bruno@clisp.org>
16568
16569         gethostname: Provide a fallback for HOST_NAME_MAX.
16570         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
16571         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
16572         instead.
16573         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16574
16575 2010-12-24  Bruno Haible  <bruno@clisp.org>
16576
16577         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
16578         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
16579         (SA_RESTART): Likewise.
16580         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16581
16582 2010-12-24  Bruno Haible  <bruno@clisp.org>
16583
16584         signal: Define NSIG.
16585         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
16586         * tests/test-signal.c (nsig): New variable.
16587         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16588
16589 2010-12-24  Bruno Haible  <bruno@clisp.org>
16590
16591         rename, renameat: Avoid test failures on OSF/1 5.1.
16592         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
16593         alternative error codes.
16594         * tests/test-renameat.c (main): Likewise.
16595
16596 2010-12-24  Bruno Haible  <bruno@clisp.org>
16597
16598         *printf: Detect large precisions bug on Solaris 10/SPARC.
16599         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
16600         by Paul Eggert.
16601         * tests/test-snprintf-posix.h (test_function): Add this test code here
16602         too.
16603         * tests/test-sprintf-posix.h (test_function): Likewise.
16604         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16605         * tests/test-vasprintf-posix.c (test_function): Likewise.
16606         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
16607         around by gnulib.
16608         * doc/posix-functions/printf.texi: Likewise.
16609         * doc/posix-functions/snprintf.texi: Likewise.
16610         * doc/posix-functions/sprintf.texi: Likewise.
16611         * doc/posix-functions/vfprintf.texi: Likewise.
16612         * doc/posix-functions/vprintf.texi: Likewise.
16613         * doc/posix-functions/vsnprintf.texi: Likewise.
16614         * doc/posix-functions/vsprintf.texi: Likewise.
16615         * doc/posix-functions/dprintf.texi: Undo last commit.
16616         * doc/posix-functions/vdprintf.texi: Likewise.
16617
16618 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16619
16620         tests: port test-fdutimensat.c to Solaris 8
16621         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
16622         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
16623         On Solaris 8, it fails with errno == ENOSYS, because there is no
16624         futimens (so it can't use the fd), and there is no lutimens (so it
16625         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
16626
16627         vsnprintf: make more consistent with snprintf; doc fixes
16628
16629         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
16630         the byte count return problem was promoted from the snprintf-posix
16631         to the snprintf module.
16632         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16633         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
16634         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
16635         * tests/test-snprintf.c (main): Check the byte count returned.
16636         * tests/test-vsnprintf.c (main): Likewise.
16637
16638 2010-12-23  Eric Blake  <eblake@redhat.com>
16639
16640         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
16641         * modules/sigpipe (License): Relax license.
16642
16643 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16644
16645         doc: document Solaris printf bug with large float precisions
16646         * doc/posix-functions/dprintf.texi (dprintf):
16647         * doc/posix-functions/fprintf.texi (fprintf):
16648         * doc/posix-functions/printf.texi (printf):
16649         * doc/posix-functions/snprintf.texi (snprintf):
16650         * doc/posix-functions/sprintf.texi (sprintf):
16651         * doc/posix-functions/vdprintf.texi (vdprintf):
16652         * doc/posix-functions/vfprintf.texi (vfprintf):
16653         * doc/posix-functions/vprintf.texi (vprintf):
16654         * doc/posix-functions/vsnprintf.texi (vsnprintf):
16655         * doc/posix-functions/vsprintf.texi (vsprintf):
16656         Mention that these functions mishandle large floating point
16657         precisions on Solaris 10.  The same bug is also present in Solaris
16658         8, and I assume earlier.  This causes "cd gnulib-tests; make
16659         check" to fail on Solaris 8 (and I assume, later) when building
16660         the latest coreutils, in test-vasprintf-posix's call to
16661         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
16662         the wide flavors (e.g., wprintf) so this patch just updates the
16663         documentation for the narrow ones.
16664
16665         test-posixtm.c: add two tests
16666         * tests/test-posixtm.c: Add two tests, to highlight the
16667         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
16668         around this bug; this is merely to document it.
16669
16670 2010-12-22  Bruno Haible  <bruno@clisp.org>
16671
16672         getlogin_r: Work around portability problem on OSF/1.
16673         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
16674         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
16675         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
16676         test for a truncated result.
16677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
16678         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
16679         * modules/getlogin_r (Depends-on): Add memchr.
16680         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
16681
16682 2010-12-22  Bruno Haible  <bruno@clisp.org>
16683
16684         ptsname: Avoid test failure on OSF/1 5.1.
16685         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
16686         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
16687         (same_slave): New function.
16688         (main): Use it to compare ptsname's result with the expected file name.
16689
16690 2010-12-22  Bruno Haible  <bruno@clisp.org>
16691
16692         Port extended stdio modules to HP NonStop Kernel.
16693         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
16694         macros.
16695         * lib/fbufmode.c: Update comments.
16696         * lib/fflush.c: Likewise.
16697         * lib/fpurge.c: Likewise.
16698         * lib/freadable.c: Likewise.
16699         * lib/freadahead.c: Likewise.
16700         * lib/freading.c: Likewise.
16701         * lib/freadptr.c: Likewise.
16702         * lib/freadseek.c: Likewise.
16703         * lib/fseeko.c: Likewise.
16704         * lib/fseterr.c: Likewise.
16705         * lib/fwritable.c: Likewise.
16706         * lib/fwriting.c: Likewise.
16707         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16708
16709 2010-12-22  Bruno Haible  <bruno@clisp.org>
16710
16711         ttyname_r: Work around bug on OSF/1 5.1.
16712         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
16713         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
16714         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
16715         present.
16716         * lib/ttyname_r.c (ttyname_r): Update comments.
16717
16718 2010-12-22  Bruno Haible  <bruno@clisp.org>
16719
16720         round: Implement result sign according to IEEE 754.
16721         * lib/round.c (MIN, MINUS_ZERO): New macros.
16722         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
16723         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
16724         * tests/test-round-ieee.c (main): Likewise.
16725         * tests/test-roundl-ieee.c (main): Likewise.
16726
16727         trunc: Implement result sign according to IEEE 754.
16728         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
16729         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
16730         * tests/test-trunc2.c: Include minus-zero.h.
16731         (MINUS_ZERO): New macro.
16732         (trunc_reference): Keep in sync with lib/trunc.c.
16733         * tests/test-truncf2.c: Include minus-zero.h.
16734         (MINUS_ZERO): New macro.
16735         (truncf_reference): Keep in sync with lib/trunc.c.
16736         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
16737         * tests/test-trunc-ieee.c (main): Likewise.
16738         * tests/test-truncl-ieee.c (main): Likewise.
16739
16740         ceil: Implement result sign according to IEEE 754.
16741         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
16742         (FUNC): Return -0.0 for -1 < x < 0.
16743         * tests/test-ceil2.c: Include minus-zero.h.
16744         (MINUS_ZERO): New macro.
16745         (ceil_reference): Keep in sync with lib/ceil.c.
16746         * tests/test-ceilf2.c: Include minus-zero.h.
16747         (MINUS_ZERO): New macro.
16748         (ceilf_reference): Keep in sync with lib/ceil.c.
16749         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
16750         * tests/test-ceil-ieee.c (main): Likewise.
16751         * tests/test-ceill-ieee.c (main): Likewise.
16752
16753         floor: Implement result sign according to IEEE 754.
16754         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
16755         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
16756         * tests/test-floorf2.c (floorf_reference): Likewise.
16757         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
16758         * tests/test-floor-ieee.c (main): Likewise.
16759         * tests/test-floorl-ieee.c (main): Likewise.
16760
16761 2010-12-22  Bruno Haible  <bruno@clisp.org>
16762
16763         getaddrinfo: Update doc.
16764         * doc/posix-functions/gai_strerror.texi: Return type is also different
16765         on AIX and HP-UX.
16766
16767 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16768
16769         getaddrinfo, inet_ntop: Update doc for Solaris.
16770         * doc/posix-functions/gai_strerror.texi: Return type is also an
16771         issue on Solaris 9 and earlier.
16772         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
16773         on Solaris 10 and earlier.
16774
16775 2010-12-21  Bruno Haible  <bruno@clisp.org>
16776
16777         New module 'roundl-ieee'.
16778         * modules/roundl-ieee: New file.
16779         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
16780         test whether roundl works according to ISO C 99 with IEC 60559.
16781         * m4/roundl-ieee.m4: New file.
16782         * modules/roundl-ieee-tests: New file.
16783         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
16784         * tests/test-roundl.c (main): Remove signbit tests.
16785         * modules/roundl-tests (Depends-on): Remove signbit.
16786         * doc/posix-functions/roundl.texi: Mention the new module.
16787
16788 2010-12-21  Bruno Haible  <bruno@clisp.org>
16789
16790         New module 'truncl-ieee'.
16791         * modules/truncl-ieee: New file.
16792         * modules/truncl-ieee-tests: New file.
16793         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
16794         * tests/test-truncl.c (main): Remove signbit tests.
16795         * modules/truncl-tests (Depends-on): Remove signbit.
16796         * doc/posix-functions/truncl.texi: Mention the new module.
16797
16798 2010-12-21  Bruno Haible  <bruno@clisp.org>
16799
16800         New module 'ceill-ieee'.
16801         * modules/ceill-ieee: New file.
16802         * modules/ceill-ieee-tests: New file.
16803         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
16804         * tests/test-ceill.c (main): Remove signbit tests.
16805         * modules/ceill-tests (Depends-on): Remove signbit.
16806         * doc/posix-functions/ceill.texi: Mention the new module.
16807
16808 2010-12-21  Bruno Haible  <bruno@clisp.org>
16809
16810         New module 'floorl-ieee'.
16811         * modules/floorl-ieee: New file.
16812         * modules/floorl-ieee-tests: New file.
16813         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
16814         * tests/test-floorl.c (main): Remove signbit tests.
16815         * modules/floorl-tests (Depends-on): Remove signbit.
16816         * doc/posix-functions/floorl.texi: Mention the new module.
16817
16818 2010-12-21  Bruno Haible  <bruno@clisp.org>
16819
16820         New module 'round-ieee'.
16821         * modules/round-ieee: New file.
16822         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
16823         whether round works according to ISO C 99 with IEC 60559.
16824         * m4/round-ieee.m4: New file.
16825         * modules/round-ieee-tests: New file.
16826         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
16827         * tests/test-round1.c (main): Remove signbit tests.
16828         * modules/round-tests (Depends-on): Remove 'signbit'.
16829         * doc/posix-functions/round.texi: Mention the new module.
16830
16831 2010-12-21  Bruno Haible  <bruno@clisp.org>
16832
16833         New module 'trunc-ieee'.
16834         * modules/trunc-ieee: New file.
16835         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
16836         whether trunc works according to ISO C 99 with IEC 60559.
16837         * m4/trunc-ieee.m4: New file.
16838         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
16839         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
16840         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
16841         * modules/trunc-ieee-tests: New file.
16842         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
16843         * tests/test-trunc1.c (main): Remove signbit tests.
16844         * modules/trunc-tests (Depends-on): Remove 'signbit'.
16845         * doc/posix-functions/trunc.texi: Mention the new module.
16846
16847 2010-12-21  Bruno Haible  <bruno@clisp.org>
16848
16849         New module 'ceil-ieee'.
16850         * modules/ceil-ieee: New file.
16851         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
16852         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
16853         ISO C 99 with IEC 60559.
16854         * m4/ceil-ieee.m4: New file.
16855         * modules/ceil (Files): Add lib/ceil.c.
16856         (Depends-on): Add 'float'.
16857         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16858         * lib/math.in.h (ceil): New declaration.
16859         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
16860         REPLACE_CEIL.
16861         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
16862         * modules/ceil-ieee-tests: New file.
16863         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
16864         * tests/test-math-c++.cc: Check the signature of 'ceil'.
16865         * doc/posix-functions/ceil.texi: Mention the new module.
16866
16867 2010-12-21  Bruno Haible  <bruno@clisp.org>
16868
16869         New module 'floor-ieee'.
16870         * modules/floor-ieee: New file.
16871         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
16872         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
16873         ISO C 99 with IEC 60559.
16874         * m4/floor-ieee.m4: New file.
16875         * modules/floor (Files): Add lib/floor.c.
16876         (Depends-on): Add 'float'.
16877         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16878         * lib/math.in.h (floor): New declaration.
16879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
16880         REPLACE_FLOOR.
16881         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
16882         * modules/floor-ieee-tests: New file.
16883         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
16884         * tests/test-math-c++.cc: Check the signature of 'floor'.
16885         * doc/posix-functions/floor.texi: Mention the new module.
16886
16887 2010-12-21  Bruno Haible  <bruno@clisp.org>
16888
16889         New module 'roundf-ieee'.
16890         * modules/roundf-ieee: New file.
16891         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
16892         test whether roundf works according to ISO C 99 with IEC 60559.
16893         * m4/roundf-ieee.m4: New file.
16894         * modules/roundf-ieee-tests: New file.
16895         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
16896         * tests/test-roundf1.c (main): Remove signbit tests.
16897         * modules/roundf-tests (Depends-on): Remove 'signbit'.
16898         * doc/posix-functions/roundf.texi: Mention the new module.
16899
16900 2010-12-21  Bruno Haible  <bruno@clisp.org>
16901
16902         New module 'truncf-ieee'.
16903         * modules/truncf-ieee: New file.
16904         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
16905         test whether truncf works according to ISO C 99 with IEC 60559.
16906         * m4/truncf-ieee.m4: New file.
16907         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
16908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
16909         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
16910         * modules/truncf-ieee-tests: New file.
16911         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
16912         * tests/test-truncf1.c (main): Remove signbit tests.
16913         * modules/truncf-tests (Depends-on): Remove 'signbit'.
16914         * doc/posix-functions/truncf.texi: Mention the new module.
16915
16916 2010-12-21  Bruno Haible  <bruno@clisp.org>
16917
16918         New module 'ceilf-ieee'.
16919         * modules/ceilf-ieee: New file.
16920         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
16921         test whether ceilf works according to ISO C 99 with IEC 60559.
16922         * m4/ceilf-ieee.m4: New file.
16923         * modules/ceilf-ieee-tests: New file.
16924         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
16925         * tests/test-ceilf1.c (main): Remove signbit tests.
16926         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
16927         * doc/posix-functions/ceilf.texi: Mention the new module.
16928
16929 2010-12-21  Bruno Haible  <bruno@clisp.org>
16930
16931         New module 'floorf-ieee'.
16932         * modules/floorf-ieee: New file.
16933         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
16934         test whether floorf works according to ISO C 99 with IEC 60559.
16935         * m4/floorf-ieee.m4: New file.
16936         * modules/floorf-ieee-tests: New file.
16937         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
16938         * tests/test-floorf1.c (main): Remove signbit tests.
16939         * modules/floorf-tests (Depends-on): Remove 'signbit'.
16940         * doc/posix-functions/floorf.texi: Mention the new module.
16941
16942 2010-12-21  Bruno Haible  <bruno@clisp.org>
16943
16944         Support for minus zero in autoconf macros.
16945         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
16946         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
16947         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
16948         * tests/minus-zero.h: Update comments.
16949
16950 2010-12-21  Bruno Haible  <bruno@clisp.org>
16951
16952         Tests for module 'ceil'.
16953         * modules/ceil-tests: New file.
16954         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
16955         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
16956
16957 2010-12-21  Bruno Haible  <bruno@clisp.org>
16958
16959         Tests for module 'floor'.
16960         * modules/floor-tests: New file.
16961         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
16962         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
16963
16964 2010-12-21  Bruno Haible  <bruno@clisp.org>
16965
16966         math: Fix indentation.
16967         * lib/math.in.h (floorf): Fix indentation.
16968
16969 2010-12-21  Bruno Haible  <bruno@clisp.org>
16970
16971         Fix cross-compilation guesses on Solaris.
16972         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
16973         not match "solaris2.10".
16974         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16975         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
16976         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
16977
16978 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16979
16980         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
16981         This fixes a problem observed with the latest coreutils snapshot
16982         that caused a test to fail on Solaris 8.  src/csplit.c's call
16983         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
16984         earlier, instead of returning the number of bytes that would have
16985         been generated; this causes csplit to incorrectly report memory
16986         exhaustion.
16987         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
16988         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
16989         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
16990         comments to match.
16991         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
16992         Fix typo in matching older versions of Solaris: "solaris2.10"
16993         is matched by the shell pattern "solaris2.[0-9]*".  This matters
16994         only for guessing while cross-compiling.
16995         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
16996
16997 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16998
16999         ftoastr: fix comment again
17000         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17001         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17002         Also, simplify example a bit by using flags = 0.
17003
17004 2010-12-20  Bruno Haible  <bruno@clisp.org>
17005
17006         round*, trunc*: Update documentation regarding glibc.
17007         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17008         * doc/posix-functions/round.texi: Likewise.
17009         * doc/posix-functions/roundl.texi: Likewise.
17010         * doc/posix-functions/truncf.texi: Likewise.
17011         * doc/posix-functions/trunc.texi: Likewise.
17012         * doc/posix-functions/truncl.texi: Likewise.
17013
17014 2010-12-20  Bruno Haible  <bruno@clisp.org>
17015
17016         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17017         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17018         * doc/posix-functions/round.texi: Likewise.
17019         * doc/posix-functions/roundl.texi: Likewise.
17020
17021 2010-12-20  Bruno Haible  <bruno@clisp.org>
17022
17023         ttyname_r: Add missing declaration on HP-UX 11.
17024         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17025         HAVE_TTYNAME_R.
17026         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17027         declared. Set HAVE_TTYNAME_R always.
17028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17029         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17030         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17031         HAVE_TTYNAME_R.
17032         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17033
17034 2010-12-20  Bruno Haible  <bruno@clisp.org>
17035
17036         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17037         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17038         * doc/posix-functions/getlogin_r.texi: Likewise.
17039         * tests/test-getlogin.c: Include <errno.h>.
17040         (main): Avoid test failure on HP-UX 11.11.
17041         * tests/test-getlogin_r.c (main): Likewise.
17042
17043 2010-12-20  Bruno Haible  <bruno@clisp.org>
17044
17045         getlogin_r: Add missing declaration on HP-UX 11.
17046         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17047         declared also when it exists as a function.
17048         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17049
17050 2010-12-20  Bruno Haible  <bruno@clisp.org>
17051
17052         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17053         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17054         through wcrtomb.
17055
17056 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17057
17058         ftoastr: fix comment
17059         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17060         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17061
17062 2010-12-19  Bruno Haible  <bruno@clisp.org>
17063
17064         isnan: Ensure it is a macro.
17065         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17066         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17067         Solaris.
17068
17069 2010-12-19  Bruno Haible  <bruno@clisp.org>
17070
17071         ldexpl test: Fix link error on OSF/1 5.1.
17072         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17073
17074 2010-12-19  Bruno Haible  <bruno@clisp.org>
17075
17076         wctype: Make it work in C++ mode on OSF/1 5.1.
17077         * lib/wctype.in.h (iswblank): Declare but not define here.
17078         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17079         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17080         * modules/wctype (Files): Add lib/iswblank.c.
17081
17082 2010-12-19  Bruno Haible  <bruno@clisp.org>
17083
17084         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17085         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17086         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17087
17088 2010-12-19  Bruno Haible  <bruno@clisp.org>
17089
17090         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17091         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17092         _POSIX_PII_SOCKET.
17093         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17094         * doc/posix-functions/recvfrom.texi: Likewise.
17095         * doc/posix-functions/send.texi: Likewise.
17096         * doc/posix-functions/sendto.texi: Likewise.
17097
17098 2010-12-19  Bruno Haible  <bruno@clisp.org>
17099
17100         tcgetsid: Add missing declaration on OSF/1 5.1.
17101         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17102         HAVE_TCGETSID.
17103         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17104         Don't set HAVE_TCGETSID.
17105         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17106         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17107         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17108         HAVE_TCGETSID.
17109         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17110
17111 2010-12-19  Bruno Haible  <bruno@clisp.org>
17112
17113         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17114         * lib/stdio.in.h: During the include_next statement, let recursive
17115         includes of this file include only the system header file.
17116
17117 2010-12-19  Bruno Haible  <bruno@clisp.org>
17118
17119         iconv_open: Fix regression from 2010-12-04.
17120         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17121         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17122
17123 2010-12-19  Bruno Haible  <bruno@clisp.org>
17124
17125         stdbool test: Avoid a gcc warning.
17126         * tests/test-stdbool.c (main): Fail if e1 is false.
17127         Reported by Jim Meyering.
17128
17129 2010-12-19  Jim Meyering  <meyering@redhat.com>
17130
17131         setenv: restore to working order
17132         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17133         mistakenly removed.
17134         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17135         HAVE_SETENV.
17136         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17137         HAVE_SETENV.
17138
17139 2010-12-19  Bruno Haible  <bruno@clisp.org>
17140
17141         Document some different function declarations on OSF/1 5.1.
17142         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17143         * doc/posix-functions/inet_ntop.texi: Likewise.
17144         * doc/posix-functions/gethostname.texi: Likewise.
17145         * lib/unistd.in.h (gethostname): Update comment.
17146
17147 2010-12-19  Bruno Haible  <bruno@clisp.org>
17148
17149         doc: Mention vasprintf-posix module.
17150         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17151         the 'vasprintf-posix' module.
17152         * doc/glibc-functions/vasprintf.texi: Likewise.
17153
17154 2010-12-19  Bruno Haible  <bruno@clisp.org>
17155
17156         unsetenv: Add missing declaration on OSF/1 5.1.
17157         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17158         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17159         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17161         not HAVE_UNSETENV.
17162         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17163         HAVE_UNSETENV.
17164         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17165
17166 2010-12-19  Bruno Haible  <bruno@clisp.org>
17167
17168         setenv: Add missing declaration on OSF/1 5.1.
17169         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17170         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17171         declared. Don't set HAVE_SETENV.
17172         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17173         not HAVE_SETENV.
17174         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17175         HAVE_SETENV.
17176         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17177
17178 2010-12-19  Bruno Haible  <bruno@clisp.org>
17179
17180         nl_langinfo tests: Avoid gcc warning.
17181         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17182
17183 2010-12-19  Bruno Haible  <bruno@clisp.org>
17184
17185         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17186         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17187         _GL_CXXALIAS_SYS.
17188
17189 2010-12-19  Bruno Haible  <bruno@clisp.org>
17190
17191         stdbool: Relax test.
17192         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17193         address to 'bool' work in static initializer, for compilers other than
17194         GCC.
17195
17196 2010-12-19  Bruno Haible  <bruno@clisp.org>
17197
17198         ftello: Add missing declaration on OSF/1 5.1.
17199         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17200         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17202         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17203         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17204
17205 2010-12-19  Bruno Haible  <bruno@clisp.org>
17206
17207         fseeko: Add missing declaration on OSF/1 5.1.
17208         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17209         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17211         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17212         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17213
17214 2010-12-19  Bruno Haible  <bruno@clisp.org>
17215
17216         fchdir: Add missing declaration on OSF/1 5.1.
17217         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17218         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17220         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17221         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17222
17223 2010-12-19  Bruno Haible  <bruno@clisp.org>
17224
17225         relocatable-prog-wrapper: Separate from relocatable-prog.
17226         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17227         uninstall-relocwrapper rule here.
17228         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17229         Reported by Ian Beckwith <ianb@erislabs.net>.
17230
17231 2010-12-19  Bruno Haible  <bruno@clisp.org>
17232
17233         unistr/u8-mbsnlen: Add missing dependency.
17234         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17235         Reported by Ian Beckwith <ianb@erislabs.net>.
17236
17237 2010-12-19  Bruno Haible  <bruno@clisp.org>
17238
17239         iconv: Make it possible again to use this module without 'iconv-h'.
17240         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17241         if it is not defined.
17242         Reported by Ian Beckwith <ianb@erislabs.net>.
17243
17244 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17245
17246         acl: port to Solaris 8 when copying from tmpfs to ufs
17247         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17248         error number.  Problem observed on Solaris 8 with latest
17249         coreutils, with "mv A B", where A is on a tmpfs file system and B
17250         is on a ufs file system.  This caused coreutils' mv/part-symlink
17251         test to fail.
17252
17253         tests: set fail=0 at start
17254         * tests/init.sh (setup_): Move fail=0 initialization here ...
17255         (mktempd_): ... from here, so that tests can rely on fail being
17256         set to 0 initially.  This fixes a problem in coreutils; see:
17257         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17258
17259 2010-12-18  Bruno Haible  <bruno@clisp.org>
17260
17261         memmem-simple: Stylistic changes.
17262         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17263         Fix preprocessor directive indentation.
17264
17265 2010-12-15  Pádraig Brady <P@draigBrady.com>
17266
17267         memmem, memmem-simple: reorganize and expand empty needle check
17268         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17269         functional checks to memmem-simple so that one has a fully functional
17270         memmem by using just this module.
17271         Restrict the performance only check to the memmem module.
17272         Also expand the empty needle check to ensure the correct
17273         pointer is returned, not just a non NULL pointer.
17274         * doc/glibc-functions/memmem.texi: Rearrange the portability
17275         documentation to correlate with the rearranged checks.
17276         Clarify exactly how the memmem and memmem-simple modules
17277         relate to each other.
17278
17279 2010-12-15  Pádraig Brady <P@draigBrady.com>
17280             Bruno Haible  <bruno@clisp.org>
17281
17282         Improve cross-compilation guesses for uClibc.
17283         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17284         that uClibc does not have the glibc bug.
17285         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17286         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17287
17288 2010-12-14  Eric Blake  <eblake@redhat.com>
17289
17290         configmake: provide fallbacks for oldest supported autotools
17291         * m4/configmake.m4: New file.
17292         * modules/configmake (Files): Ship it.
17293         (configure.ac): Use it to guarantee fallbacks.
17294
17295 2010-12-13  Pádraig Brady <P@draigBrady.com>
17296
17297         read-file: Improve handling of large files
17298         * lib/read-file.c (fread_file): Minimize realloc()s
17299         for regular files, and better manage sizes around SIZE_MAX.
17300
17301 2010-12-13  Eric Blake  <eblake@redhat.com>
17302
17303         cloexec, fcntl: relax license
17304         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17305         consent from all contributors.
17306         * modules/fcntl (License): Likewise.
17307
17308 2010-12-10  Bruno Haible  <bruno@clisp.org>
17309
17310         Tests for module 'pipe-posix'.
17311         * modules/pipe-posix-tests: New file.
17312         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17313
17314 2010-12-10  Bruno Haible  <bruno@clisp.org>
17315
17316         pipe-posix: Make it work in C++ mode.
17317         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17318         (pipe): Use common idiom, not a macro definition.
17319         * lib/pipe.c: New file.
17320         * m4/pipe.m4: New file.
17321         * modules/pipe-posix (Description): Enhance.
17322         (Files): Add lib/pipe.c, m4/pipe.m4.
17323         (configure.ac): Invoke gl_FUNC_PIPE.
17324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17325         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17326         * tests/test-unistd-c++.cc: Check the signature of pipe.
17327
17328 2010-12-10  Bruno Haible  <bruno@clisp.org>
17329
17330         Rename module 'pipe' to 'spawn-pipe'.
17331         * modules/spawn-pipe: New file, renamed from modules/pipe.
17332         (Files, configure.ac, Makefile.am): Update.
17333         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17334         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17335         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17336         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17337         "spawn-pipe.h" instead of "pipe.h".
17338         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17339         to gl_SPAWN_PIPE.
17340         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17341         (Files, Makefile.am): Update.
17342         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17343         Update.
17344         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17345         Include "spawn-pipe.h" instead of "pipe.h".
17346         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17347         * lib/javacomp.c: Likewise.
17348         * lib/javaversion.c: Likewise.
17349         * lib/pipe-filter-gi.c: Likewise.
17350         * lib/pipe-filter-ii.c: Likewise.
17351         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17352         * modules/javacomp (Depends-on): Likewise.
17353         * modules/javaversion (Depends-on): Likewise.
17354         * modules/pipe-filter-gi (Depends-on): Likewise.
17355         * modules/pipe-filter-ii (Depends-on): Likewise.
17356         * MODULES.html.sh (Executing programs): Update.
17357         * NEWS: Mention the change.
17358
17359 2010-12-10  Eric Blake  <eblake@redhat.com>
17360
17361         pipe-posix: new module
17362         * modules/pipe-posix: New file.
17363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
17364         (gl_UNISTD_H): Check for declaration.
17365         * modules/unistd (Makefile.am): Substitute it.
17366         * lib/unistd.in.h (pipe): Provide it for mingw.
17367         * doc/posix-functions/pipe.texi (pipe): Update documentation.
17368         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
17369
17370 2010-12-07  Bruno Haible  <bruno@clisp.org>
17371
17372         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
17373         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
17374         u8_strcmp_gnu.
17375         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
17376
17377 2010-12-06  Bruno Haible  <bruno@clisp.org>
17378
17379         Update internal documentation.
17380         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
17381
17382 2010-12-04  Bruno Haible  <bruno@clisp.org>
17383
17384         Put more information about failed tests into the test return codes.
17385         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
17386         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
17387         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
17388         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
17389         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17390         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17391         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17392         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17393         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
17394         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17395         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
17396         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
17397         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
17398         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17399         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
17400         returns a bit mask.
17401         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
17402         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
17403         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
17404         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
17405         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17406         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17407         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17408         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17409         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17410         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17411         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17412         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17413         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17414         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17415         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17416         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17417         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
17418         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
17419         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17420         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
17421         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17422         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17423         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
17424         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17425         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17426         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17427         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
17428         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17429         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17430         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
17431         gl_PRINTF_PRECISION): Likewise.
17432         * m4/regex.m4 (gl_REGEX): Likewise.
17433         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17434         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17435         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
17436         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17437         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17438         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17439         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17440         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
17441         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17442         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17443         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17444         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17445         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17446         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17447         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17448         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17449         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17450         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17451         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17452         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17453         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17454         enumerated value.
17455         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17456
17457 2010-12-04  Bruno Haible  <bruno@clisp.org>
17458
17459         Update for Solaris 11 2010-11.
17460         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17461         Express, released in November 2010.
17462
17463 2010-12-04  Bruno Haible  <bruno@clisp.org>
17464
17465         nproc: Relax license.
17466         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17467         and Paul Eggert.
17468         Requested by Ludovic Courtès <ludo@gnu.org>.
17469
17470 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17471
17472         utimecmp: fine-grained src to nearby coarse-grained dest
17473
17474         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17475         and the source is on a file system with higher-resolution time
17476         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17477         not work, and the time stamps are close together, the algorithm to
17478         determine the exact resolution from the read-back mtime was buggy:
17479         it had a "!=" where it should have had an "==".  This bug has been
17480         in the code ever since it was introduced to gnulib.
17481         Problem reported by Dan Jacobson in
17482         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17483
17484 2010-11-30  Bruno Haible  <bruno@clisp.org>
17485
17486         strerror_r-posix: Fix autoconf test.
17487         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
17488
17489 2010-11-28  Bruno Haible  <bruno@clisp.org>
17490             Paul Eggert  <eggert@cs.ucla.edu>
17491
17492         Tests for module 'getdomainname'.
17493         * modules/getdomainname-tests: New file.
17494         * tests/test-getdomainname.c: New file, based on
17495         tests/test-gethostname.c.
17496
17497 2010-11-28  Bruno Haible  <bruno@clisp.org>
17498             Paul Eggert  <eggert@cs.ucla.edu>
17499
17500         getdomainname: Use the system function when possible.
17501         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
17502         (getdomainname): Replace if needed. Provide the declaration if it is
17503         missing. Don't use _GL_CXXALIAS_SYS_CAST.
17504         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
17505         (getdomainname): When the system has getdomainname, call the system
17506         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
17507         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17508         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
17509         found in libnsl. Look for the declaration also in <netdb.h>. Replace
17510         the function if its second argument is of type 'int' or if it is found
17511         in libnsl.
17512         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
17513         <sys/systeminfo.h> and sysinfo().
17514         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
17515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17516         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
17517         HAVE_GETDOMAINNAME.
17518         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
17519         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
17520         * doc/glibc-functions/getdomainname.texi: Document the problems with
17521         the getdomainname declaration.
17522
17523 2010-11-28  Bruno Haible  <bruno@clisp.org>
17524
17525         sys_socket: Ensure ss_family field on AIX.
17526         * lib/sys_socket.in.h (ss_family): New macro definition.
17527         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
17528         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
17529         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17530         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17531         * modules/sys_socket (Makefile.am): Substitute
17532         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17533         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
17534
17535 2010-11-27  Bruno Haible  <bruno@clisp.org>
17536
17537         readline: Improve configure output.
17538         * m4/readline.m4 (gl_FUNC_READLINE): Make the
17539         "checking for readline..." result understandable.
17540
17541 2010-11-27  Bruno Haible  <bruno@clisp.org>
17542
17543         *printf-posix: Detect a bug on Solaris 10/x86.
17544         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
17545         for floating-point output.
17546         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
17547         directive.
17548         * tests/test-snprintf-posix.h (test_function): Likewise.
17549         * tests/test-sprintf-posix.h (test_function): Likewise.
17550         * tests/test-vasprintf-posix.c (test_function): Likewise.
17551         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
17552         * doc/posix-functions/printf.texi: Likewise.
17553         * doc/posix-functions/snprintf.texi: Likewise.
17554         * doc/posix-functions/sprintf.texi: Likewise.
17555         * doc/posix-functions/vfprintf.texi: Likewise.
17556         * doc/posix-functions/vprintf.texi: Likewise.
17557         * doc/posix-functions/vsnprintf.texi: Likewise.
17558         * doc/posix-functions/vsprintf.texi: Likewise.
17559         * doc/glibc-functions/obstack_printf.texi: Likewise.
17560         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
17561
17562 2010-11-27  Bruno Haible  <bruno@clisp.org>
17563
17564         Fix link error when module libunistring-optional is in use.
17565         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
17566         * modules/striconveha-tests (Makefile.am): Likewise.
17567
17568 2010-11-27  Bruno Haible  <bruno@clisp.org>
17569
17570         regex: Mention link dependencies.
17571         * modules/regex (Link): New section.
17572         * modules/rpmatch (Link): Likewise.
17573         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
17574
17575 2010-11-27  Bruno Haible  <bruno@clisp.org>
17576
17577         ftoastr: Fix compilation error on Solaris.
17578         * lib/ftoastr.c: Include <config.h>.
17579
17580 2010-11-27  Bruno Haible  <bruno@clisp.org>
17581
17582         getloadavg: Update documentation.
17583         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
17584
17585 2010-11-27  Bruno Haible  <bruno@clisp.org>
17586
17587         sys_socket: Fix test whether the functions are declared.
17588         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
17589         not <sys/select.h>.
17590
17591 2010-11-27  Bruno Haible  <bruno@clisp.org>
17592
17593         getpass: Make sure to get system declaration on some platforms.
17594         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
17595         gl_USE_SYSTEM_EXTENSIONS.
17596         * modules/getpass (Depends-on): Add extensions.
17597
17598 2010-11-26  Bruno Haible  <bruno@clisp.org>
17599
17600         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
17601         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
17602         'iconv' module is present.
17603         (ICONV_CONST): New macro.
17604         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
17605         ICONV_CONST.
17606         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
17607         set ICONV_CONST.
17608         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
17609         here.
17610         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
17611         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
17612         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
17613         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
17614         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
17615         present.
17616
17617 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17618
17619         ftoastr: comment fix
17620         * lib/ftoastr.c: "little" -> "little or no" in comment
17621
17622 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17623
17624         stdint: port to GCC 4.3 + OSX + Octave
17625         On this platform, stdint.h is buggy and defines int64_t to long
17626         long int.  The replacement defined it to long int, causing
17627         problems with C++ style name mangling.  Instead, trust the system
17628         definition if INT64_MAX is defined, and likewise for the unsigned
17629         variant.   Problem reported by Jarno Rajahalme in
17630         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
17631         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
17632         and don't mess with int64_t and INT64_MAX in this case.
17633         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
17634
17635 2010-11-24  Bruno Haible  <bruno@clisp.org>
17636
17637         doc: Corrections regarding MacOS X 10.4 and 10.5.
17638         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
17639         MacOS X.
17640         Reported by Simon Josefsson.
17641
17642 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
17643
17644         Uninstall ".bin" files installed by relocwrapper.
17645         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
17646         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
17647         unless it is already there.
17648
17649 2010-11-21  Bruno Haible  <bruno@clisp.org>
17650
17651         Update for NetBSD 5.0.
17652         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17653         NetBSD; the test fails on NetBSD 5.0.
17654         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17655         about NetBSD.
17656
17657 2010-11-21  Bruno Haible  <bruno@clisp.org>
17658
17659         Update for HP-UX 11.23 and HP-UX 11.31.
17660         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
17661         HP-UX.
17662
17663 2010-11-21  Bruno Haible  <bruno@clisp.org>
17664
17665         Update for MacOS X 10.5.
17666         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17667         MacOS X; the test fails on MacOS X 10.5.8.
17668         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17669         about MacOS X.
17670
17671 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
17672
17673         bootstrap: add bootstrap_sync option.
17674         See discussion at
17675         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
17676         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
17677         * build-aux/bootstrap: Accept --bootstrap-sync to update
17678         bootstrap if it is not identical to the local gnulib's
17679         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
17680         enable this by default.  Accept --no-bootstrap-sync to disable
17681         it.
17682
17683 2010-11-20  Bruno Haible  <bruno@clisp.org>
17684
17685         Ensure that <features.h> is included before __GLIBC__ is tested.
17686         * lib/printf-parse.h: Include <features.h>.
17687         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
17688         Reported by Mike Frysinger <vapier@gentoo.org>.
17689
17690         Ensure that <features.h> is included before __GLIBC__ is tested.
17691         * lib/wchar.in.h: Include <features.h>.
17692         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
17693         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
17694         Reported by Mike Frysinger <vapier@gentoo.org>.
17695
17696         Ensure that <features.h> is included before __GLIBC__ is tested.
17697         * lib/arpa_inet.in.h: Include <features.h>.
17698         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
17699         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
17700         Reported by Mike Frysinger <vapier@gentoo.org>.
17701
17702         Ensure that <features.h> is included before __GLIBC__ is tested.
17703         * build-aux/link-warning.h: Include <features.h>.
17704         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
17705         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
17706         Reported by Mike Frysinger <vapier@gentoo.org>.
17707
17708         Ensure that <features.h> is included before __GLIBC__ is tested.
17709         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
17710         Reported by Mike Frysinger <vapier@gentoo.org>.
17711
17712 2010-11-20  Bruno Haible  <bruno@clisp.org>
17713
17714         memmem: Fix autoconf test.
17715         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
17716
17717 2010-11-20  Bruno Haible  <bruno@clisp.org>
17718
17719         Port to uClibc.
17720         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
17721         * lib/fcntl.in.h: Likewise.
17722         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
17723         * lib/mbrtowc.c (mbrtowc): Likewise.
17724         * lib/relocatable.c (find_shared_library_fullname): Likewise.
17725         * lib/strerror_r.c: Likewise.
17726         * lib/unistr/u8-strnlen.c: Likewise.
17727         * lib/vasnprintf.c (decimal_point_char): Likewise.
17728         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17729         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17730         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17731         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17732         * tests/test-sigaction.c (handler, main): Likewise.
17733         * lib/freading.h: Treat uClibc like a non-glibc platform.
17734         * lib/freading.c: Likewise.
17735         * lib/gettext.h: Likewise.
17736         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
17737         Likewise.
17738         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
17739         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
17740         * lib/propername.c (proper_name_utf8): Likewise.
17741         * lib/spawn.in.h: Likewise.
17742         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
17743         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
17744         mem_cd_iconveh_internal): Likewise.
17745         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
17746         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17747         strstr, strcasestr): Likewise.
17748         * lib/unicodeio.c (unicode_to_mb): Likewise.
17749         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
17750         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
17751         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
17752         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
17753         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
17754         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
17755         * lib/unistr/u8-stpncpy.c: Likewise.
17756         * lib/vasnprintf.c (VASNPRINTF): Likewise.
17757         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
17758         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17759         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17760         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17761         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
17762         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
17763         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
17764         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17765         Likewise.
17766         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17767         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17768         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17769         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17770         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17771         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17772         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17773         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17774         * tests/test-getopt.h (OPTIND_MIN): Likewise.
17775         * tests/test-striconveha.c (main): Likewise.
17776         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17777         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
17778         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
17779         * doc/posix-functions/getline.texi: Likewise.
17780         Reported by Mike Frysinger <vapier@gentoo.org>.
17781
17782 2010-11-20  Bruno Haible  <bruno@clisp.org>
17783
17784         nproc: Fix condition.
17785         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
17786         HAVE_PTHREAD_AFFINITY_NP.
17787
17788 2010-11-20  Bruno Haible  <bruno@clisp.org>
17789
17790         Fix a comment.
17791         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
17792
17793 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
17794
17795         ftoastr: don't assume snprintf
17796         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
17797         Implement a subset of snprintf here, by using sprintf safely.
17798         * modules/ftoastr (Depends-on): Remove snprintf.
17799
17800 2010-11-19  Jim Meyering  <meyering@redhat.com>
17801
17802         test-rename.h: fix compilation failure
17803         * tests/test-rename.h (test_rename): Add omitted "}".
17804
17805 2010-11-17  Jim Meyering  <meyering@redhat.com>
17806
17807         maint.mk: add a URL discussing the no-@acronym policy
17808         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
17809
17810 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
17811
17812         ftoastr: depend on snprintf, improve comments
17813         * lib/ftoastr.c: Also mention Loitsch's draft.
17814         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
17815         needed in the current implementation, but it might simplify
17816         speeding up the code later.
17817         * modules/ftoastr: Depend on snprintf; this improves portability.
17818         Suggested by Bruno Haible in the same email.
17819
17820         ftoastr: port to hosts lacking strtof and strtold
17821         Problem reported by Bruno Haible in
17822         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
17823         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
17824         environment and strtold (and presumably strtof) are not available.
17825         * modules/ftoastr (Files): Add m4/c-strtod.m4.
17826         (configure.ac): Require gl_C99_STRTOLD.
17827
17828 2010-11-18  Bruno Haible  <bruno@clisp.org>
17829
17830         c-strtold: Avoid link error on AIX 7.
17831         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
17832         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
17833         (gl_C_STRTOLD): Test whether strtold_l exists.
17834         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17835
17836 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
17837
17838         intprops: new macro INT_BITS_STRLEN_BOUND
17839         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
17840         ftoastr.h.  This exposes an internal of intprops.h that was formerly
17841         not exposed.  Also, it uses a slightly tighter bound than before;
17842         though this makes no practical difference, we might as well be as
17843         tight as we easily can.
17844
17845         ftoastr: new module, for lossless conversion of floats to short strings
17846         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
17847         * modules/ftoastr: New files.
17848
17849 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17850
17851         bootstrap: port to Solaris sed
17852         * build-aux/bootstrap (get_version): Port to Solaris sed.
17853         See Ralf Wildenhues's note in
17854         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
17855
17856 2010-11-14  Jim Meyering  <meyering@redhat.com>
17857
17858         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
17859         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
17860         and move definition closer to sole use.
17861
17862 2010-11-13  Jim Meyering  <meyering@redhat.com>
17863
17864         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
17865         Now we require at least autoconf-2.59, which means the work-around
17866         is no longer needed.
17867         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
17868         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17869         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17870         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
17871         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17872
17873 2010-11-13  Bruno Haible  <bruno@clisp.org>
17874
17875         rename, renameat: Avoid test failures at NFS mounted locations.
17876         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
17877         functions.
17878         (test_rename): Use assert_nonexistent.
17879         * tests/test-rename.c: Include <dirent.h>.
17880         * tests/test-renameat.c: Likewise.
17881         Reported by Gary V. Vaughan <gary@gnu.org>.
17882
17883         rename, renameat: Document Linux bug with NFS
17884         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
17885         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
17886         * doc/posix-functions/renameat.texi: Likewise.
17887         Suggested by Eric Blake.
17888
17889 2010-11-13  Bruno Haible  <bruno@clisp.org>
17890
17891         rename test: Add comments.
17892         * tests/test-rename.h (test_rename): Add structure and comments.
17893
17894 2010-11-13  Eric Blake  <eblake@redhat.com>
17895
17896         maintainer-makefile: cover a few more files
17897         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
17898         scripts generated within C files, for libvirt.
17899
17900 2010-11-13  Bruno Haible  <bruno@clisp.org>
17901
17902         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
17903         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
17904         character, return the number of bytes that belong together, not always
17905         1.
17906         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
17907         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
17908         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
17909         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
17910         number of bytes of an invalid character.
17911         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
17912         (main): Invoke it.
17913         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
17914         results.
17915         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
17916         malformed byte sequences.
17917         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
17918         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
17919         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
17920         Reported by Ben Pfaff and Paolo Bonzini.
17921
17922 2010-11-13  Bruno Haible  <bruno@clisp.org>
17923
17924         openat: Work around glibc bug with fchownat() and empty file names.
17925         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
17926         (gl_FUNC_FCHOWNAT): Invoke it.
17927         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
17928         * doc/posix-functions/fchownat.texi: Document the glibc bug.
17929         Reported by Gary V. Vaughan <gary@gnu.org>.
17930
17931 2010-11-13  Bruno Haible  <bruno@clisp.org>
17932
17933         openat: Ensure autoconf macro ordering.
17934         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
17935         gl_USE_SYSTEM_EXTENSIONS.
17936         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
17937
17938 2010-11-13  Bruno Haible  <bruno@clisp.org>
17939
17940         Update comments.
17941         * lib/unistr/u8-check.c: Update file name in comments.
17942         * lib/unistr/u8-mblen.c: Likewise.
17943         * lib/unistr/u8-prev.c: Likewise.
17944         * lib/unistr/u8-strmblen.c: Likewise.
17945         * lib/unistr/u8-strmbtouc.c: Likewise.
17946
17947 2010-11-13  Jim Meyering  <meyering@redhat.com>
17948
17949         tests: avoid test failure on Solaris 10 due to lack of PATH export
17950         * tests/test-update-copyright.sh: Don't forget to export PATH.
17951
17952         init.sh: ensure that IFS is defined, just in case...
17953         * tests/init.sh (setup_): Ensure that IFS is defined,
17954         so that saving and restoring it works as expected.  This
17955         appears to be useful at least for an old version of dash
17956         from a long time ago (RH 6).  See here for details:
17957         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
17958
17959         maint.mk: tighten "test a == b" check
17960         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
17961         test to files that contain something like #!/bin/sh.
17962         Without this, coreutils would get two false positives in
17963         the comments of C source files.
17964
17965 2010-11-12  Eric Blake  <eblake@redhat.com>
17966
17967         bootstrap: fix typo in previous attempt
17968         * build-aux/bootstrap (buildreq): Correct the grouping.
17969         Reported by Paul Eggert.
17970
17971         maintainer-makefile: prohibit test x == x
17972         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
17973         Based on a report by Matthias Bolte.
17974
17975         bootstrap: allow FreeBSD gzip
17976         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
17977         which has no '.' and goes to stderr.
17978         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
17979         Reported by Matthias Bolte.
17980
17981         maintainer-makefile: check for i18n setup
17982         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
17983         will likely work.
17984
17985 2010-11-12  Bruno Haible  <bruno@clisp.org>
17986
17987         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
17988         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
17989         * lib/nanosleep.c (nanosleep): Likewise.
17990
17991 2010-11-11  Bruno Haible  <bruno@clisp.org>
17992
17993         fcntl-h: Fix for use of C++ on glibc systems.
17994         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17995         also on glibc systems in C++ mode.
17996         Reported by Gary V. Vaughan <gary@gnu.org>.
17997
17998 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17999
18000         mknod: avoid false failure with dash
18001         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18002
18003 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18004
18005         unlink: Fix "is it should" typo in diagnostic.
18006         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18007         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18008
18009 2010-11-11  Bruno Haible  <bruno@clisp.org>
18010
18011         Tests for module 'strerror_r-posix'.
18012         * modules/strerror_r-posix-tests: New file.
18013         * tests/test-strerror_r.c: New file.
18014         * tests/test-string-c++.cc: Check the signature of strerror_r.
18015
18016         New module 'strerror_r-posix'.
18017         * lib/string.in.h (strerror_r): New declaration.
18018         * lib/strerror_r.c: New file.
18019         * m4/strerror_r.m4: New file.
18020         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18021         of strerror_r.
18022         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18023         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18024         * modules/strerror_r-posix: New file.
18025         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18026         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18027         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18028         portability problems.
18029
18030 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18031
18032         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18033         line is also considered for output. Quoted function name in shell
18034         command, so temporary files for functions like MyClass::operator()
18035         are removed correctly without errors.
18036
18037 2010-11-09  Bruno Haible  <bruno@clisp.org>
18038
18039         * doc/posix-functions/strerror.texi: List more failing platforms.
18040
18041         * doc/posix-functions/strerror.texi: Add a comment.
18042
18043 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18044
18045         fdopendir: fix bug on MacOS X when low on file descriptors
18046
18047         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18048         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18049         All callers changed.
18050         (fdopendir): Invoke save_cwd at the top level, not after using
18051         multiple dup() calls to use up file descriptors.  Then retry
18052         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18053         less than the maximum number of open file descriptors, because
18054         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18055         on Mac OS X 10.6.4 for tar 1.24
18056         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18057         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18058         and for tar 1.25
18059         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18060
18061 2010-11-07  Bruno Haible  <bruno@clisp.org>
18062
18063         vasnprintf: Support I flag on glibc systems.
18064         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18065         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18066         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18067         snprintf function.
18068         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18069         glibc systems.
18070         * tests/test-vasnprintf-posix3.c: New file.
18071         * modules/vasnprintf-posix-tests (Files): Add it.
18072         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18073
18074 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18075
18076         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18077         * MODULES.html.sh: For compiler warnings, use name
18078         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18079
18080 2010-11-05  Eric Blake  <eblake@redhat.com>
18081
18082         ceil, floor: avoid spurious failure with icc
18083         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18084         [denormals-as-zero] when optimizing without -mieee-fp option.
18085         * tests/test-floorf2.c (floorf_reference): Likewise.
18086         * tests/test-ceilf1.c (dummy): New function.
18087         (main): Use it to outsmart icc's optimization.
18088         * tests/test-floorf1.c (dummy, main): Likewise.
18089
18090         tests: require working signbit
18091         * modules/ceilf-tests (Depends-on): Add signbit.
18092         * modules/ceill-tests (Depends-on): Likewise.
18093         * modules/floorf-tests (Depends-on): Likewise.
18094         * modules/floorl-tests (Depends-on): Likewise.
18095         * modules/round-tests (Depends-on): Likewise.
18096         * modules/roundf-tests (Depends-on): Likewise.
18097         * modules/roundl-tests (Depends-on): Likewise.
18098         * modules/trunc-tests (Depends-on): Likewise.
18099         * modules/truncf-tests (Depends-on): Likewise.
18100         * modules/truncl-tests (Depends-on): Likewise.
18101
18102         strtod: work around icc bug
18103         * lib/strtod.c (minus_zero): Define to working value.
18104         (strtod): Use it to avoid icc bug.
18105
18106         copysign: enhance tests
18107         * modules/copysign-tests (Files): Add minus-zero.h.
18108         * tests/test-copysign.c (main): Also test zeros.
18109
18110 2010-11-04  Eric Blake  <eblake@redhat.com>
18111
18112         ceil, floor, round, trunc: enhance tests of -0
18113         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18114         * tests/test-ceill.c (main): Likewise.
18115         * tests/test-floorf1.c (main): Likewise.
18116         * tests/test-floorl.c (main): Likewise.
18117         * tests/test-round1.c (main): Likewise.
18118         * tests/test-roundf1.c (main): Likewise.
18119         * tests/test-roundl.c (main): Likewise.
18120         * tests/test-trunc1.c (main): Likewise.
18121         * tests/test-truncf1.c (main): Likewise.
18122         * tests/test-truncl.c (main): Likewise.
18123
18124 2010-11-04  Eric Blake  <eblake@redhat.com>
18125
18126         frexp, tests: work around ICC bug with -zero
18127         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18128         works with more compilers.
18129         * tests/minus-zero.h: New file.
18130         * modules/ceilf-tests (Files): Include it.
18131         * modules/ceill-tests (Files): Likewise.
18132         * modules/floorf-tests (Files): Likewise.
18133         * modules/floorl-tests (Files): Likewise.
18134         * modules/frexp-nolibm-tests (Files): Likewise.
18135         * modules/frexp-tests (Files): Likewise.
18136         * modules/frexpl-nolibm-tests (Files): Likewise.
18137         * modules/frexpl-tests (Files): Likewise.
18138         * modules/isnan-tests (Files): Likewise.
18139         * modules/isnand-nolibm-tests (Files): Likewise.
18140         * modules/isnand-tests (Files): Likewise.
18141         * modules/isnanf-nolibm-tests (Files): Likewise.
18142         * modules/isnanf-tests (Files): Likewise.
18143         * modules/isnanl-nolibm-tests (Files): Likewise.
18144         * modules/isnanl-tests (Files): Likewise.
18145         * modules/round-tests (Files): Likewise.
18146         * modules/roundf-tests (Files): Likewise.
18147         * modules/roundl-tests (Files): Likewise.
18148         * modules/ldexpl-tests (Files): Likewise.
18149         * modules/signbit-tests (Files): Likewise.
18150         * modules/snprintf-posix-tests (Files): Likewise.
18151         * modules/sprintf-posix-tests (Files): Likewise.
18152         * modules/strtod-tests (Files): Likewise.
18153         * modules/trunc-tests (Files): Likewise.
18154         * modules/truncf-tests (Files): Likewise.
18155         * modules/truncl-tests (Files): Likewise.
18156         * modules/vsnprintf-posix-tests (Files): Likewise.
18157         * modules/vsprintf-posix-tests (Files): Likewise.
18158         * modules/vasnprintf-posix-tests (Files): Likewise.
18159         * modules/vasprintf-posix-tests (Files): Likewise.
18160         * tests/test-ceilf1.c (main): Use it.
18161         * tests/test-ceill.c (main): Likewise.
18162         * tests/test-floorf1.c (main): Likewise.
18163         * tests/test-floorl.c (main): Likewise.
18164         * tests/test-frexp.c (main): Likewise.
18165         * tests/test-frexpl.c (main): Likewise.
18166         * tests/test-isnan.c (main): Likewise.
18167         * tests/test-isnand.h (main): Likewise.
18168         * tests/test-isnanf.h (main): Likewise.
18169         * tests/test-isnanl.h (main): Likewise.
18170         * tests/test-ldexpl.c (main): Likewise.
18171         * tests/test-round.c (main): Likewise.
18172         * tests/test-roundf.c (main): Likewise.
18173         * tests/test-roundl.c (main): Likewise.
18174         * tests/test-signbit.c (test_signbitf, test_signbitd)
18175         (test_signbitl): Likewise.
18176         * tests/test-snprintf-posix.h (test_function): Likewise.
18177         * tests/test-sprintf-posix.h (test_function): Likewise.
18178         * tests/test-strtod.c (main): Likewise.
18179         * tests/test-trunc1.c (main): Likewise.
18180         * tests/test-truncf1.c (main): Likewise.
18181         * tests/test-truncl.c (main): Likewise.
18182
18183         isnanl: work around icc bug
18184         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18185
18186 2010-11-03  Eric Blake  <eblake@redhat.com>
18187
18188         tests: fix compiler warnings
18189         * tests/test-getopt.h (test_getopt): Fix condition.
18190         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18191         * tests/test-pipe2.c (main): Likewise.
18192         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18193
18194         utimens: fix broken m4 test
18195         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18196
18197 2010-10-28  Bruno Haible  <bruno@clisp.org>
18198
18199         posix_spawn*, getdtablesize: Relax license.
18200         * modules/posix_spawn (License): Change to LGPLv2+.
18201         * modules/posix_spawnp (License): Likewise.
18202         * modules/posix_spawn-internal (License): Likewise.
18203         * modules/posix_spawnattr_init (License): Likewise.
18204         * modules/posix_spawnattr_getflags (License): Likewise.
18205         * modules/posix_spawnattr_setflags (License): Likewise.
18206         * modules/posix_spawnattr_getpgroup (License): Likewise.
18207         * modules/posix_spawnattr_setpgroup (License): Likewise.
18208         * modules/posix_spawnattr_getschedparam (License): Likewise.
18209         * modules/posix_spawnattr_setschedparam (License): Likewise.
18210         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18211         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18212         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18213         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18214         * modules/posix_spawnattr_getsigmask (License): Likewise.
18215         * modules/posix_spawnattr_setsigmask (License): Likewise.
18216         * modules/posix_spawnattr_destroy (License): Likewise.
18217         * modules/posix_spawn_file_actions_init (License): Likewise.
18218         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18219         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18220         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18221         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18222         * modules/getdtablesize (License): Likewise.
18223         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18224
18225 2010-10-26  Bruno Haible  <bruno@clisp.org>
18226
18227         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18228         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18229         Cygwin and mingw.
18230         Suggested by Eric Blake.
18231
18232 2010-10-26  Bruno Haible  <bruno@clisp.org>
18233
18234         stdio: Work around compilation error due to renameat() on Solaris 10.
18235         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18236         * lib/renameat.c: Don't include <unistd.h> here.
18237         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18238         Reported by Paul Eggert and Eric Blake.
18239
18240 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18241
18242         renameat: port to Solaris 10, which declares renameat in unistd.h
18243
18244         * lib/renameat.c: Include unistd.h before stdio.h, because
18245         Solaris 10 declares renameat in unistd.h.  Problem encountered
18246         when building GNU tar 1.24 on Solaris 10.
18247
18248 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18249
18250         fdopendir: fix C89 compilation
18251         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18252         compilers.
18253
18254 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18255
18256         inttostr: simplify by removing unnecessary redundancy
18257         * lib/anytostr.c: Don't include verify.h.
18258         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18259         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18260         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18261         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18262         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18263         Likewise.
18264         * modules/inttostr (Depends-on): Remove 'verify'.
18265
18266 2010-10-23  Bruno Haible  <bruno@clisp.org>
18267
18268         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18269         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18270         Reported by Eric Blake.
18271
18272 2010-10-23  Bruno Haible  <bruno@clisp.org>
18273
18274         Tests: Fix LOCALE_JA on MirBSD 10.
18275         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18276         to an UTF-8 locale.
18277         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18278         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18279         Reported by Eric Blake.
18280
18281 2010-10-21  Bruno Haible  <bruno@clisp.org>
18282
18283         nl_langinfo test: Avoid test failure on NetBSD 5.
18284         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18285         Reported by Eric Blake.
18286
18287 2010-10-21  Eric Blake  <eblake@redhat.com>
18288
18289         c-stack: work around libsigsegv 2.8 bug
18290         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18291         overflow on at least PowerPC64.
18292
18293 2010-10-17  Bruno Haible  <bruno@clisp.org>
18294
18295         userspec: Drop redundant file.
18296         * modules/userspec (Files): Remove lib/inttostr.h.
18297
18298 2010-10-17  Bruno Haible  <bruno@clisp.org>
18299
18300         nl_langinfo tests: Silence some warnings.
18301         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18302         Reported by Jim Meyering.
18303
18304 2010-10-17  Bruno Haible  <bruno@clisp.org>
18305
18306         Make use of GCC's attribute __alloc_size__.
18307         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18308         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18309         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18310         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18311         __alloc_size__.
18312         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18313         Suggested by Jim Meyering.
18314
18315 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18316
18317         bootstrap: anchor .gitignore entries.
18318         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18319         with...
18320         (insert_vc_ignore): ... this new function, which prepends `/' to
18321         all .gitignore entries before passing them to
18322         insert_sorted_if_absent.
18323
18324 2010-10-16  Bruno Haible  <bruno@clisp.org>
18325
18326         nextafter: Fix configure check.
18327         * modules/nextafter (configure.ac): Correct expected prototype.
18328
18329 2010-10-16  Bruno Haible  <bruno@clisp.org>
18330
18331         termios: Update documentation.
18332         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18333
18334 2010-10-16  Bruno Haible  <bruno@clisp.org>
18335
18336         tests: Make them compile with TinyCC.
18337         * tests/test-strstr.c (main): Remove parentheses around array
18338         initializer.
18339
18340 2010-10-15  Eric Blake  <eblake@redhat.com>
18341
18342         ignore-value: make header idempotent
18343         * lib/ignore-value.h: Add double-inclusion guards.
18344         Reported by Stefan Berger.
18345
18346 2010-10-15  Jim Meyering  <meyering@redhat.com>
18347
18348         GNUmakefile: handle "stable" target, not "major"
18349         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18350         lists in maint.mk and announce-gen.  Without this, "make stable"
18351         would fail to ensure that $(VERSION) is up to date.
18352
18353 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
18354
18355         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
18356         & co.
18357
18358 2010-10-14  Bruno Haible  <bruno@clisp.org>
18359
18360         vasnprintf: Don't set errno to 0.
18361         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
18362         block that sets it to 0.
18363         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18364
18365 2010-10-14  Bruno Haible  <bruno@clisp.org>
18366
18367         socketlib: Fix.
18368         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
18369         gl_PREREQ_SYS_H_WINSOCK2.
18370         Reported by Ian Beckwith <ianb@erislabs.net>.
18371
18372 2010-10-13  Jim Meyering  <meyering@redhat.com>
18373
18374         test-select-stdin.c: avoid warn_unused_result warnings
18375         * tests/test-select-stdin.c: Include "macros.h".
18376         ASSERT that read and fflush succeed.
18377
18378 2010-10-13  Jim Meyering  <meyering@redhat.com>
18379
18380         git-version-gen: do require git-VC'd files in cwd
18381         * build-aux/git-version-gen: Reject a git version string
18382         if there are no commits associated with the current directory.
18383         This avoids an unlikely false-positive (unrelated dir whose parent
18384         repository also contains a tag matching v*), as pointed out
18385         by Giuseppe Scrivano in
18386         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
18387
18388 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18389
18390         argv-iter: omit nonconforming declaration
18391         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
18392         enum arg_iter_err declaration, which doesn't conform to C99.
18393         Solaris 10 cc warns about this.
18394
18395 2010-10-13  Eric Blake  <eblake@redhat.com>
18396
18397         termios: fix compilation on mingw
18398         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
18399         (gl_TERMIOS_H): Adjust it on mingw.
18400         * modules/termios (Makefile.am): Substitute new key.
18401         * lib/termios.in.h (includes): Make include_next conditional.
18402         * doc/posix-headers/termios.texi (termios.h): Update
18403         documentation.
18404         Reported by Daniel P. Berrange.
18405
18406 2010-10-13  Jim Meyering  <meyering@redhat.com>
18407
18408         git-version-gen: don't require that .git/ be in the current dir
18409         * build-aux/git-version-gen: Adjust this script so that it works
18410         when run from any working directory beneath the top-level .git/-
18411         containing directory.  Inspired by a patch from Giuseppe Scrivano,
18412         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
18413
18414         test-select: avoid warn_unused_result warnings
18415         * tests/test-select.c: Include "macros.h".
18416         ASSERT that each call to read, write, and pipe succeeds.
18417         While not technically required, also check each "close".
18418         * modules/select-tests (Files): Add tests/macros.h.
18419
18420         test-symlinkat: remove declaration of unused local
18421         * tests/test-symlinkat.c (main): Remove unused local, "buf".
18422
18423         test-inttostr: avoid shadowing warnings
18424         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
18425         and use malloc rather than the stack for the same reason as
18426         mentioned in the comment justifying the other allocation.
18427
18428 2010-10-11  Bruno Haible  <bruno@clisp.org>
18429
18430         stdlib: Allow multiple gnulib generated replacements to coexist.
18431         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
18432         Reported by Sam Steingold <sds@gnu.org>.
18433
18434 2010-10-11  Jim Meyering  <meyering@redhat.com>
18435
18436         fix a documentation typo
18437         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
18438
18439 2010-10-11  Eric Blake  <eblake@redhat.com>
18440
18441         futimens: work around Solaris 11 bug
18442         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
18443         * tests/test-futimens.h (test_futimens): Enhance, rather than
18444         weaken test.
18445         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18446
18447 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18448
18449         Indentation.
18450         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
18451         higher-level operators more to the left.
18452
18453 2010-10-11  Jim Meyering  <meyering@redhat.com>
18454
18455         test-futimens: avoid unwarranted test failure on Solaris 5.11
18456         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18457         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18458         because it tries to dereference the NULL name argument.
18459
18460 2010-10-11  Bruno Haible  <bruno@clisp.org>
18461
18462         Indentation.
18463         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18464         indentation.
18465
18466 2010-10-11  Jim Meyering  <meyering@redhat.com>
18467
18468         spawn.in.h: make indentation consistent with parentheses
18469         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18470         Make indentation consistent with parentheses.
18471
18472 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18473
18474         Fix mismatched parens in previous commit
18475         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18476         parens.
18477
18478 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18479
18480         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18481
18482         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18483         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
18484         * lib/malloca.c: Include "verify.h".
18485         (verify1): Remove, replacing with a verify call.
18486         * lib/relocwrapper.c (verify1): Likewise.
18487         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
18488         Likewise.
18489         * modules/malloca (Depends-on): Add 'verify'.
18490         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
18491         * modules/vasnprintf (Depends-on): Add 'verify'.
18492         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18493         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18494         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18495         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18496         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18497         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18498         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18499
18500         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
18501
18502         Formerly the style was sometimes 2*X - 1, because the C standard
18503         was wrongly thought to disallow ?: in integral constant expressions.
18504         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
18505         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
18506         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18507         * lib/stdint.in.h (_verify_intmax_size): Likewise.
18508         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
18509         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
18510         verify that time_t cannot be floating.
18511
18512 2010-10-08  Eric Blake  <eblake@redhat.com>
18513
18514         time: enforce recent POSIX ruling that time_t is integral
18515         * lib/time.in.h (__time_t_must_be_integral): Detect any
18516         problematic systems, allowing the rest of gnulib to assume POSIX.
18517
18518 2010-10-08  Jim Meyering  <meyering@redhat.com>
18519
18520         fdopendir: fix a bug on systems lacking openat and /proc support
18521         OpenBSD 4.7 is one such system.  The most noticeable effect was
18522         failure of any application making nontrivial use of fts: rm, du,
18523         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18524           ./rm: traversal failed: `a': Bad file descriptor
18525         Debugging that, you see that even though FD 6 was closed just
18526         prior to the opendir call in fd_clone_opendir, its resulting
18527         dir->dd_fd was 8, rather than the expected value of 6:
18528
18529         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
18530         93                close (fd);
18531         (gdb) n
18532         94                dir = fd_clone_opendir (dupfd);
18533         (gdb) n
18534         95                saved_errno = errno;
18535         (gdb) p dir->dd_fd
18536         $11 = 8
18537
18538         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
18539         The problem is that on OpenBSD, fd_clone_opendir has to resort
18540         to using the old-style save/restore CWD mechanism, due to its
18541         lack of openat/proc support, and *that* would steal the FD (6)
18542         that opendir was supposed to use.
18543
18544         The fix is to squirrel away the desired FD so that save_cwd uses a
18545         different one, and then free the dest FD right before calling opendir.
18546         That guarantees opendir will use the required file descriptor.
18547
18548         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
18549
18550 2010-10-08  Bruno Haible  <bruno@clisp.org>
18551
18552         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
18553         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
18554
18555 2010-10-08  Bruno Haible  <bruno@clisp.org>
18556
18557         nanosleep: Make replacement POSIX compliant.
18558         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
18559         is out of range.
18560         Reported by Jim Meyering.
18561
18562 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18563
18564         bootstrap: add hook for altering gnulib.mk, for Bison
18565         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
18566         the Bison bootstrapping process can rewrite file names and variables
18567         in this file before later parts of 'bootstrap' use the file.
18568         Bison wants to include lib/gnulib.mk from the top-level makefile,
18569         so it needs the file names in this file to be relative to the top
18570         level, not relative to lib; plus it needs variable names to be
18571         rewritten.
18572         (slurp): Use the new function.
18573
18574         bootstrap: reformat for readability
18575         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
18576
18577 2010-10-08  Eric Blake  <eblake@redhat.com>
18578
18579         docs: update cygwin progress
18580         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
18581         1.7.7.
18582         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
18583         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
18584         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
18585         * doc/posix-functions/carg.texi (carg): Likewise.
18586         * doc/posix-functions/cargf.texi (cargf): Likewise.
18587         * doc/posix-functions/casin.texi (casin): Likewise.
18588         * doc/posix-functions/casinf.texi (casinf): Likewise.
18589         * doc/posix-functions/casinh.texi (casinh): Likewise.
18590         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
18591         * doc/posix-functions/catan.texi (catan): Likewise.
18592         * doc/posix-functions/catanf.texi (catanf): Likewise.
18593         * doc/posix-functions/catanh.texi (catanh): Likewise.
18594         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
18595         * doc/posix-functions/ccos.texi (ccos): Likewise.
18596         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
18597         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
18598         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
18599         * doc/posix-functions/cexp.texi (cexp): Likewise.
18600         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
18601         * doc/posix-functions/cimag.texi (cimag): Likewise.
18602         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
18603         * doc/posix-functions/clog.texi (clog): Likewise.
18604         * doc/posix-functions/clogf.texi (clogf): Likewise.
18605         * doc/posix-functions/conj.texi (conj): Likewise.
18606         * doc/posix-functions/conjf.texi (conjf): Likewise.
18607         * doc/posix-functions/cpow.texi (cpow): Likewise.
18608         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
18609         * doc/posix-functions/cproj.texi (cproj): Likewise.
18610         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
18611         * doc/posix-functions/creal.texi (creal): Likewise.
18612         * doc/posix-functions/crealf.texi (crealf): Likewise.
18613         * doc/posix-functions/csin.texi (csin): Likewise.
18614         * doc/posix-functions/csinf.texi (csinf): Likewise.
18615         * doc/posix-functions/csinh.texi (csinh): Likewise.
18616         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
18617         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
18618         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
18619         * doc/posix-functions/ctan.texi (ctan): Likewise.
18620         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
18621         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
18622         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
18623         * doc/posix-headers/complex.texi (complex.h): Likewise.
18624
18625 2010-10-07  Jim Meyering  <meyering@redhat.com>
18626
18627         parse-datetime: avoid compilation failure on OpenBSD 4.7
18628         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
18629         This works around a compilation failure on OpenBSD 4.7:
18630         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
18631
18632 2010-10-07  Eric Blake  <eblake@redhat.com>
18633
18634         docs: update cygwin progress
18635         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
18636         1.7.6.
18637         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18638         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
18639         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
18640         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
18641         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
18642         Likewise.
18643         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
18644         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
18645         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
18646         Likewise.
18647         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
18648         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
18649         Likewise.
18650         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
18651         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
18652         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
18653         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
18654         Likewise.
18655         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
18656         Likewise.
18657         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
18658
18659         docs: update parse-datetime history
18660         * doc/parse-datetime.texi (Authors of parse_datetime): Better
18661         documentation of this function's history and alternatives.
18662
18663         cygwin: use more robust version check
18664         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
18665         exclude an eventual cygwin 1.9.1.
18666         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18667         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18668         (gl_FUNC_STRCASESTR): Likewise.
18669         Reported by Bruno Haible.
18670
18671 2010-10-06  Bruno Haible  <bruno@clisp.org>
18672
18673         string, sys_select: Avoid #including large headers unless necessary.
18674         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
18675         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
18676         OSF/1, BeOS, Haiku.
18677         Reported by Jim Meyering.
18678
18679 2010-10-05  Eric Blake  <eblake@redhat.com>
18680
18681         memmem, strstr, strcasestr: fix bug with long periodic needle
18682         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
18683         periodic needle having false positive.
18684         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
18685         and cygwin 1.7.7.
18686         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
18687         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18688         (gl_FUNC_STRCASESTR): Likewise.
18689         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18690         * tests/test-memmem.c (main): Expose the bug.
18691         * tests/test-strcasestr.c (main): Likewise.
18692         * tests/test-strstr.c (main): Likewise.
18693         * tests/test-c-strcasestr.c (main): Likewise.
18694         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
18695         * doc/posix-functions/strstr.texi (strstr): Likewise.
18696         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18697         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
18698
18699 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18700
18701         parse-datetime: do some more renaming
18702         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
18703         parse_datetime, not get_date.  Mention the renaming.
18704         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
18705         in comments.
18706         * m4/bison.m4: Likewise.
18707
18708 2010-10-05  Eric Blake  <eblake@redhat.com>
18709
18710         parse-datetime: better name than get_date
18711         * NEWS: Reword the deprecation notice.
18712         * modules/get_date: Rename to modules/parse-datetime.
18713         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
18714         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
18715         * lib/get_date.y: Rename to lib/parse-datetime.y.
18716         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
18717         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
18718         * doc/getdate.texi: Provide fallback wrapper.
18719         * lib/getdate.h: Move guts, and wrap...
18720         * lib/parse-datetime.h: ...new file.
18721         * lib/parse-datetime.y (get_date): Rename...
18722         (parse_datetime): ...to this.
18723         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
18724         (gl_PARSE_DATETIME): ...to this.
18725         * doc/posix-functions/getdate.texi (get_date): Provide fallback
18726         documentation.
18727         * modules/getdate (Files): Provide fallback docs and header.
18728         (Notice, Depends-on): Update references.
18729         * tests/test-parse-datetime.c: Likewise.
18730         * DEPENDENCIES: Likewise.
18731         * MODULES.html.sh (Date and time <time.h>): Likewise.
18732         * doc/parse-datetime.texi (Date input formats)
18733         (Authors of parse_datetime): Likewise.
18734         * modules/parse-datetime (Files, configure.ac, Makefile.am)
18735         (Include): Likewise.
18736         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
18737         * gnulib-tool: Likewise.
18738         * m4/bison.m4 (gl_BISON): Likewise.
18739         Suggested by Bruno Haible.
18740
18741 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18742
18743         more ports to Solaris tr, which needs [] around ranges
18744         * gnulib-tool: Solaris tr needs [] around ranges.
18745         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18746         * tests/test-pipe-filter-gi1.c (main): Likewise.
18747         * tests/test-pipe-filter-ii1.c (main): Likewise.
18748
18749 2010-10-05  Eric Blake  <eblake@redhat.com>
18750
18751         bootstrap: fix Solaris regression
18752         * build-aux/bootstrap (check_versions): Solaris tr still needs []
18753         around ranges.
18754         Reported by Pádraig Brady.
18755
18756         bootstrap: work with pkg-config
18757         * build-aux/bootstrap (check_versions): Also transliterate - in
18758         prerequisite name.
18759         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
18760         prerequisites that were already found, to avoid confusion.
18761         Reported by Justin Clift.
18762
18763         faccessat: remove unused wrappers
18764         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
18765         presence of these wrappers dragged in -lgen on Solaris.
18766         Reported by Clemens Brogi; fix suggested by Paul Eggert.
18767
18768 2010-10-05  Jim Meyering  <meyering@redhat.com>
18769
18770         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
18771         * Makefile (sc_pragma_columns): New syntax-check rule.
18772
18773 2010-10-04  Bruno Haible  <bruno@clisp.org>
18774
18775         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
18776         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
18777         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
18778         Reported by Bruce Korb and Eric Blake.
18779
18780 2010-10-04  Bruno Haible  <bruno@clisp.org>
18781
18782         threadlib: Make option --with-libpth-prefix work.
18783         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
18784         use $LIBPTH, not just -lpth.
18785
18786 2010-10-04  Bruno Haible  <bruno@clisp.org>
18787
18788         Avoid line length limitation from HP NonStop system header files.
18789         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
18790         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
18791         * lib/ctype.in.h: Likewise.
18792         * lib/dirent.in.h: Likewise.
18793         * lib/errno.in.h: Likewise.
18794         * lib/fcntl.in.h: Likewise.
18795         * lib/float.in.h: Likewise.
18796         * lib/getopt.in.h: Likewise.
18797         * lib/iconv.in.h: Likewise.
18798         * lib/inttypes.in.h: Likewise.
18799         * lib/langinfo.in.h: Likewise.
18800         * lib/locale.in.h: Likewise.
18801         * lib/math.in.h: Likewise.
18802         * lib/netdb.in.h: Likewise.
18803         * lib/netinet_in.in.h: Likewise.
18804         * lib/poll.in.h: Likewise.
18805         * lib/pthread.in.h: Likewise.
18806         * lib/pty.in.h: Likewise.
18807         * lib/sched.in.h: Likewise.
18808         * lib/se-selinux.in.h: Likewise.
18809         * lib/search.in.h: Likewise.
18810         * lib/signal.in.h: Likewise.
18811         * lib/spawn.in.h: Likewise.
18812         * lib/stdarg.in.h: Likewise.
18813         * lib/stddef.in.h: Likewise.
18814         * lib/stdint.in.h: Likewise.
18815         * lib/stdio.in.h: Likewise.
18816         * lib/stdlib.in.h: Likewise.
18817         * lib/string.in.h: Likewise.
18818         * lib/strings.in.h: Likewise.
18819         * lib/sys_file.in.h: Likewise.
18820         * lib/sys_ioctl.in.h: Likewise.
18821         * lib/sys_select.in.h: Likewise.
18822         * lib/sys_socket.in.h: Likewise.
18823         * lib/sys_stat.in.h: Likewise.
18824         * lib/sys_time.in.h: Likewise.
18825         * lib/sys_times.in.h: Likewise.
18826         * lib/sys_utsname.in.h: Likewise.
18827         * lib/sys_wait.in.h: Likewise.
18828         * lib/sysexits.in.h: Likewise.
18829         * lib/termios.in.h: Likewise.
18830         * lib/time.in.h: Likewise.
18831         * lib/unistd.in.h: Likewise.
18832         * lib/wchar.in.h: Likewise.
18833         * lib/wctype.in.h: Likewise.
18834         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
18835         * modules/ctype (Makefile.am): Likewise.
18836         * modules/dirent (Makefile.am): Likewise.
18837         * modules/errno (Makefile.am): Likewise.
18838         * modules/fcntl-h (Makefile.am): Likewise.
18839         * modules/float (Makefile.am): Likewise.
18840         * modules/getopt-posix (Makefile.am): Likewise.
18841         * modules/iconv-h (Makefile.am): Likewise.
18842         * modules/inttypes (Makefile.am): Likewise.
18843         * modules/langinfo (Makefile.am): Likewise.
18844         * modules/locale (Makefile.am): Likewise.
18845         * modules/math (Makefile.am): Likewise.
18846         * modules/netdb (Makefile.am): Likewise.
18847         * modules/netinet_in (Makefile.am): Likewise.
18848         * modules/poll-h (Makefile.am): Likewise.
18849         * modules/pthread (Makefile.am): Likewise.
18850         * modules/pty (Makefile.am): Likewise.
18851         * modules/sched (Makefile.am): Likewise.
18852         * modules/search (Makefile.am): Likewise.
18853         * modules/selinux-h (Makefile.am): Likewise.
18854         * modules/signal (Makefile.am): Likewise.
18855         * modules/spawn (Makefile.am): Likewise.
18856         * modules/stdarg (Makefile.am): Likewise.
18857         * modules/stddef (Makefile.am): Likewise.
18858         * modules/stdint (Makefile.am): Likewise.
18859         * modules/stdio (Makefile.am): Likewise.
18860         * modules/stdlib (Makefile.am): Likewise.
18861         * modules/string (Makefile.am): Likewise.
18862         * modules/strings (Makefile.am): Likewise.
18863         * modules/sys_file (Makefile.am): Likewise.
18864         * modules/sys_ioctl (Makefile.am): Likewise.
18865         * modules/sys_select (Makefile.am): Likewise.
18866         * modules/sys_socket (Makefile.am): Likewise.
18867         * modules/sys_stat (Makefile.am): Likewise.
18868         * modules/sys_time (Makefile.am): Likewise.
18869         * modules/sys_times (Makefile.am): Likewise.
18870         * modules/sys_utsname (Makefile.am): Likewise.
18871         * modules/sys_wait (Makefile.am): Likewise.
18872         * modules/sysexits (Makefile.am): Likewise.
18873         * modules/termios (Makefile.am): Likewise.
18874         * modules/time (Makefile.am): Likewise.
18875         * modules/unistd (Makefile.am): Likewise.
18876         * modules/wchar (Makefile.am): Likewise.
18877         * modules/wctype (Makefile.am): Likewise.
18878
18879 2010-10-04  Bruno Haible  <bruno@clisp.org>
18880
18881         read-file tests: Avoid a test failure on NonStop Kernel.
18882         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
18883         a regular file.
18884         Reported by Joachim Schmitz <schmitz@hp.com>.
18885
18886 2010-10-03  Bruno Haible  <bruno@clisp.org>
18887
18888         gnulib-tool: Fixes for --create-testdir with --libtool.
18889         * gnulib-tool (func_get_automake_snippet): Don't augment
18890         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
18891         an executable.
18892         (func_create_testdir): Handle module 'alloca' like func_import.
18893         Reported by Bruce Korb <bruce.korb@gmail.com>.
18894
18895 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
18896
18897         Avoid some lines longer than 80 characters.
18898         * lib/stdint.in.h: Break long comment lines.
18899         * lib/math.in.h: Likewise.
18900         (_GL_NUM_UINT_WORDS): New macro, for readability.
18901         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
18902         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
18903         * lib/stdlib.in.h: Likewise.
18904         * lib/spawn.in.h: Likewise.
18905         * lib/sys_socket.in.h: Update an URL.
18906         * lib/sys_stat.in.h: Break long line.
18907
18908 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
18909
18910         Improve pmccabe2html.
18911         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
18912         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
18913         when the sources change. Remove the line in the HTML about "Used
18914         ranges" (which implied that there might be other unused ranges),
18915         rename "Resume" to "Summary" (easier to understand for more users).
18916         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
18917         styles, and some unnecessary blank lines.
18918
18919 2010-10-03  Bruno Haible  <bruno@clisp.org>
18920             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
18921
18922         acl: Add support for ACLs on NonStop Kernel.
18923         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
18924         Check whether the function aclsort() exists.
18925         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
18926         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
18927         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18928         (acl_nontrivial [HAVE_ACLSORT]: New function.
18929         (file_has_acl): Implement for NonStop Kernel.
18930         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18931         (qset_acl): Implement for NonStop Kernel.
18932         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
18933         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18934         (main): Implement for NonStop Kernel.
18935         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
18936         Kernel. Handle this flavor.
18937         * tests/test-set-mode-acl.sh: Likewise.
18938         * tests/test-copy-acl.sh: Likewise.
18939         * tests/test-copy-file.sh: Likewise.
18940
18941 2010-10-03  Bruno Haible  <bruno@clisp.org>
18942
18943         Info about ACLs on NonStop Kernel.
18944         * doc/acl-resources.txt: Add info about NonStop Kernel.
18945         References by Joachim Schmitz <schmitz@hp.com>.
18946
18947 2010-10-02  Bruno Haible  <bruno@clisp.org>
18948
18949         Define missing EDQUOT on NonStop Kernel.
18950         * lib/errno.in.h (EDQUOT): Assign a value if missing.
18951         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
18952         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
18953         missing.
18954         * doc/posix-headers/errno.texi: Mention the NSK bug.
18955         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
18956         Reported by Joachim Schmitz <schmitz@hp.com>.
18957
18958 2010-10-02  Bruno Haible  <bruno@clisp.org>
18959
18960         Update doc for POSIX:2008.
18961         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
18962         Update URL of POSIX specification.
18963
18964 2010-10-02  Bruno Haible  <bruno@clisp.org>
18965
18966         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
18967         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
18968         from gnulib, not from Automake.
18969
18970 2010-10-02  Bruno Haible  <bruno@clisp.org>
18971
18972         New module 'system-posix'.
18973         * modules/system-posix: New file.
18974         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
18975         module is present.
18976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18977         GNULIB_SYSTEM_POSIX.
18978         * modules/stdlib (Depends-on): Remove sys_wait.
18979         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
18980         * doc/posix-functions/system.texi: Mention the new module.
18981         * doc/posix-headers/stdlib.texi: Likewise.
18982         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
18983         define test_sys_wait_macros to a no-op.
18984         Reported by Sam Steingold <sds@gnu.org>.
18985
18986 2010-09-30  Bruno Haible  <bruno@clisp.org>
18987
18988         More renaming from 'getdate' to 'get_date'.
18989         * doc/get_date.texi: Renamed from doc/getdate.texi.
18990         * modules/get_date (Files): Update.
18991         * MODULES.html.sh (Date and time <time.h>): Update.
18992         * DEPENDENCIES: Update.
18993         * gnulib-tool: Update comment.
18994         * m4/bison.m4 (gl_BISON): Likewise.
18995         * m4/get_date.m4 (gl_GET_DATE): Likewise.
18996
18997 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
18998
18999         bootstrap: support ACLOCAL_FLAGS during aclocal
19000         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19001         can add additional -I dir for third-party .m4 files.
19002
19003 2010-09-30  Eric Blake  <eblake@redhat.com>
19004
19005         bootstrap: use glibtoolize on MacOS
19006         * build-aux/bootstrap (check_versions): Convert libtool into
19007         libtoolize.
19008         (tool search): Move libtool check earlier, and look for
19009         glibtoolize for MacOS.
19010         (gnulib_tool_options): Auto-add --libtool when appropriate.
19011         Reported by Justin Clift.
19012
19013         poll: fix typo that broke test on MacOS
19014         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19015         Reported by Justin Clift.
19016
19017         getdate: rename to get_date
19018         Note: getdate.h is not renamed, to minimize client impact.
19019         * modules/getdate: Mark obsolete.  Move old contents...
19020         * modules/get_date: ...to new module name.
19021         * modules/getdate-tests: Move...
19022         * modules/get_date-tests: ...here.
19023         * m4/getdate.m4: Move...
19024         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19025         * lib/getdate.y: Move...
19026         * lib/get_date.y: ...here.
19027         * tests/test-getdate.c: Move...
19028         * tests/test-get_date.c: ...here.
19029         * doc/posix-functions/getdate.texi (getdate): Update name.
19030         * NEWS: Mention the change.
19031
19032 2010-09-29  Bruno Haible  <bruno@clisp.org>
19033
19034         Separate the module 'waitpid' from the module 'sys_wait'.
19035         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19036         present.
19037         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19038         gl_MODULE_INDICATOR_FOR_TESTS.
19039         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19040         * modules/sys_wait (Depends-on): Remove waitpid.
19041         (Makefile.am): Substitute GNULIB_WAITPID.
19042         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19043         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19044         signature only if the 'waitpid' module is present.
19045         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19046         * NEWS: Mention the change.
19047         * modules/grantpt (Depends-on): Add waitpid.
19048         * modules/wait-process (Depends-on): Likewise.
19049
19050 2010-09-29  Bruno Haible  <bruno@clisp.org>
19051
19052         More tests for module 'sys_wait'.
19053         * modules/sys_wait-c++-tests: New file.
19054         * tests/test-sys_wait-c++.cc: New file.
19055         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19056         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19057
19058 2010-09-29  Bruno Haible  <bruno@clisp.org>
19059
19060         New module 'waitpid'.
19061         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19062         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19063         Don't include <process.h>.
19064         (waitpid): Declare only, using modern idiom.
19065         * m4/waitpid.m4: New file.
19066         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19067         * modules/waitpid: New file.
19068         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19069         (Makefile.am): Update.
19070         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19071
19072 2010-09-28  Bruno Haible  <bruno@clisp.org>
19073
19074         poll: Assume ANSI C.
19075         * lib/poll.c (poll): Use an ANSI C declaration.
19076
19077 2010-09-28  Bruno Haible  <bruno@clisp.org>
19078
19079         poll-h: Create poll.h on all platforms.
19080         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19081         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19082         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19083         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19084         (gl_REPLACE_POLL_H): Don't set POLL_H.
19085         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19086         * modules/poll-h (Depends-on): Add include_next.
19087         (Makefile.am): Create poll.h unconditionally. Substitute also
19088         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19089
19090 2010-09-28  Bruno Haible  <bruno@clisp.org>
19091
19092         Tests for module 'poll-h'.
19093         * modules/poll-h-c++-tests: New file.
19094         * tests/test-poll-h-c++.cc: New file.
19095
19096         Tests for module 'poll-h'.
19097         * modules/poll-h-tests: New file.
19098         * tests/test-poll-h.c: New file.
19099
19100 2010-09-28  Bruno Haible  <bruno@clisp.org>
19101
19102         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19103         * modules/poll-h (Depends-on): Add 'extensions'.
19104
19105 2010-09-28  Bruno Haible  <bruno@clisp.org>
19106
19107         New module 'poll-h'.
19108         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19109         (poll): Use modern idiom.
19110         * modules/poll-h: New file.
19111         * modules/poll (Files): Remove lib/poll.in.h.
19112         (Depends-on): Add poll-h.
19113         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19114         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19115         * m4/poll_h.m4: New file.
19116         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19117         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19118         and invoke gl_REPLACE_POLL_H.
19119         * lib/poll.c: Use common idiom.
19120         * tests/test-poll.c: Likewise.
19121         * doc/posix-headers/poll.texi: Mention the poll-h module.
19122         Suggested by Eric Blake.
19123
19124 2010-09-26  Bruno Haible  <bruno@clisp.org>
19125
19126         sys_wait: Implement WSTOPSIG.
19127         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19128         Reported by Simon Josefsson.
19129
19130 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19131
19132         stdlib, sys_wait: Avoid compilation error on mingw.
19133         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19134
19135 2010-09-26  Bruno Haible  <bruno@clisp.org>
19136
19137         stdlib tests: Avoid code duplication.
19138         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19139         * modules/sys_wait-tests (Files): Likewise.
19140         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19141         * tests/test-stdlib.c: Include test-sys_wait.h.
19142         (main): Invoke test_sys_wait_macros.
19143         * tests/test-sys_wait.c: Include test-sys_wait.h.
19144         (main): Invoke test_sys_wait_macros.
19145
19146 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19147
19148         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19149         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19150         sure Windows sockets are working before calling getaddrinfo.
19151         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19152         * doc/gnulib.texi (Windows sockets): Fix typo.
19153
19154 2010-09-25  Bruno Haible  <bruno@clisp.org>
19155
19156         Tests for module 'regex-quote'.
19157         * modules/regex-quote-tests: New file.
19158         * tests/test-regex-quote.c: New file.
19159
19160         New module 'regex-quote'.
19161         * lib/regex-quote.h: New file.
19162         * lib/regex-quote.c: New file.
19163         * modules/regex-quote: New file.
19164         Suggested by Reuben Thomas <rrt@sc3d.org>.
19165
19166 2010-09-24  Bruno Haible  <bruno@clisp.org>
19167
19168         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19169         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19170
19171 2010-09-23  Bruno Haible  <bruno@clisp.org>
19172
19173         setenv: Relax license.
19174         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19175         Blake.
19176         Requested by Eric Blake.
19177
19178 2010-09-22  Bruno Haible  <bruno@clisp.org>
19179
19180         termios: Relax license.
19181         * modules/termios (License): Change to LGPLv2+.
19182         Requested by Eric Blake.
19183
19184 2010-09-22  Bruno Haible  <bruno@clisp.org>
19185
19186         threadlib: Allow the package to change the default to 'no'.
19187         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19188         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19189         Reported by Paul Eggert.
19190
19191 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19192             Bruno Haible  <bruno@clisp.org>
19193
19194         Fix endless loop in mbmemcasecoll.
19195         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19196         byte.
19197         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19198
19199 2010-09-22  Bruno Haible  <bruno@clisp.org>
19200
19201         Tests for module 'memcoll'.
19202         * modules/memcoll-tests: New file.
19203         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19204
19205         memcoll, xmemcoll: Clarify size vs. length.
19206         * modules/memcoll.c (memcoll0): Clarify specification.
19207         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19208         passed to collate_error.
19209
19210 2010-09-22  Bruno Haible  <bruno@clisp.org>
19211
19212         Tests for module 'memcasecmp'.
19213         * modules/memcasecmp-tests: New file.
19214         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19215
19216 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19217
19218         * lib/pthread.in.h: Add split double-inclusion guard, and include
19219         system <pthread.h> if there is one.  Use @@-style as in other
19220         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19221         pthread.h doesn't.
19222         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19223         (pthread_mutexattr_settype, pthread_mutex_trylock):
19224         New static inline functions, if there's no system <pthread.h>.
19225         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19226         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19227         Approximate with mutexes if the system lacks spinlocks, as in
19228         MacOS.
19229         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19230         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19231         @@-style.  Check for spinlocks separately.
19232         (gl_PTHREAD_DEFAULTS): New macro.
19233         * modules/pthread: Redo to use a more typical style for in.h files.
19234
19235 2010-09-21  Eric Blake  <eblake@redhat.com>
19236
19237         net_if: enhance tests
19238         * tests/test-net_if.c (main): Move signature checks earlier.
19239         Print failures to stderr.
19240         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19241         Document the bug that we do not yet fix.
19242
19243 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19244
19245         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19246         about gnulib, not GSS.
19247
19248 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19249
19250         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19251         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19252         for Emacs.
19253         * build-aux/pmccabe2html: Make Makefile.am example code more
19254         cut-and-paste friendly.
19255
19256 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19257
19258         * tests/test-net_if.c: New file.
19259         * modules/net_if-tests: New file.
19260
19261 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19262
19263         pthread: add pthread_spin_destroy
19264         * lib/pthread.in.h (pthread_spin_destroy): New function.
19265
19266 2010-09-19  Bruno Haible  <bruno@clisp.org>
19267
19268         gnulib-tool: Fix --help output.
19269         * gnulib-tool (func_usage): Fix help message.
19270         Reported by Reuben Thomas <rrt@sc3d.org>.
19271
19272 2010-09-18  Jim Meyering  <meyering@redhat.com>
19273
19274         maint.mk: avoid unexpanded \n in two diagnostics
19275         * top/maint.mk (sc_prohibit_always_true_header_tests):
19276         Don't use a literal \n in a halt=... assignment.  It would not be
19277         expanded, and the two \n bytes would appear in the diagnostic output
19278         rather than the desired newline.  Use halt=$$(printf ... instead.
19279         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19280
19281 2010-09-18  Bruno Haible  <bruno@clisp.org>
19282
19283         netinet_in: Doc tweak.
19284         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19285         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19286
19287 2010-09-18  Jim Meyering  <meyering@redhat.com>
19288
19289         init.sh: correct an outdated comment
19290         * tests/init.sh (create_exe_shims_):  s/function/alias/
19291
19292         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19293         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19294         a file named "*.exe" is removed between the glob expansion and the
19295         processing of that oddly named file.
19296
19297 2010-09-17  Eric Blake  <eblake@redhat.com>
19298
19299         mirbsd: add some more support
19300         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19301         in BSD family.
19302         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19303         devices as OpenBSD.
19304         * m4/host-os.m4 (mirbsd): Add MirBSD.
19305
19306         tests: fix unportable assumption on sys/wait.h
19307         * tests/test-sys_wait.c (main): Relax test.
19308         * tests/test-stdlib.c (main): Likewise.
19309
19310         init.sh: accomodate directory with no .exes
19311         * tests/init.sh: Accomodate directory containing only scripts.
19312
19313         tests: avoid compiler warning
19314         * tests/test-stdlib.c (main): Use the variable.
19315
19316         fdutimens, fdutimensat: update signature, again
19317         * lib/utimens.h (gl_futimens): Delete, and move signature...
19318         (fdutimens): ...here.
19319         (fdutimensat): Rearrange signature.
19320         (lutimensat): Rename variable for clarity.
19321         * lib/fdutimensat.c (fdutimensat): Update signature.
19322         * lib/utimens.c (fdutimens): Likewise.
19323         (gl_futimens): Delete.
19324         (utimens, lutimens): Update callers.
19325         * lib/futimens.c (futimens): Likewise.
19326         * tests/test-fdutimensat.c: Likewise.
19327         * tests/test-utimens.c: Likewise.
19328         * tests/test-futimens.h: Update comment.
19329         * NEWS: Mention this.
19330         Suggested by Paul Eggert.
19331
19332 2010-09-17  Bruno Haible  <bruno@clisp.org>
19333
19334         Take over the maintenance of some older macros from Autoconf.
19335         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19336         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19337         GNU Autoconf.
19338         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19339         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19340
19341 2010-09-17  Eric Blake  <eblake@redhat.com>
19342
19343         fdutimensat: drop atflag validation
19344         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19345         with valid fd, to close a race scenario where futimens is
19346         unsupported and FILE was replaced by a symlink.
19347         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19348         accordingly.
19349         Suggested by Paul Eggert.
19350
19351 2010-09-16  Bruno Haible  <bruno@clisp.org>
19352
19353         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
19354         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
19355
19356 2010-09-16  Bruno Haible  <bruno@clisp.org>
19357
19358         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19359         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
19360         login_tty exists.
19361         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19362
19363 2010-09-16  Bruno Haible  <bruno@clisp.org>
19364
19365         login_tty: Make the replacement code work on BSD systems.
19366         * lib/login_tty.c: Include <sys/ioctl.h>.
19367         (login_tty): Use ioctl TIOCSCTTY when available.
19368         * modules/login_tty (Depends-on): Add sys_ioctl.
19369         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19370
19371 2010-09-16  Bruno Haible  <bruno@clisp.org>
19372
19373         login_tty: Stricter unit test.
19374         * modules/login_tty-tests (Depends-on): Add tcgetsid.
19375         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
19376         and tcgetsid() after login_tty.
19377         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19378
19379 2010-09-16  Bruno Haible  <bruno@clisp.org>
19380
19381         New module 'tcgetsid'.
19382         * lib/tcgetsid.c: New file.
19383         * m4/tcgetsid.m4: New file.
19384         * modules/tcgetsid: New file.
19385         * modules/termios (Depends-on): Add c++defs, warn-on-use.
19386         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
19387         GNULIB_TCGETSID, HAVE_TCGETSID.
19388         * lib/termios.in.h: Include <sys/types.h>.
19389         (tcgetsid): New declaration.
19390         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
19391         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
19392         * doc/posix-functions/tcgetsid.texi: Mention the new module.
19393         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
19394
19395 2010-09-16  Bruno Haible  <bruno@clisp.org>
19396
19397         Tests for module 'termios'.
19398         * modules/termios-c++-tests: New file.
19399         * modules/termios-tests: New file.
19400         * tests/test-termios-c++.cc: New file.
19401         * tests/test-termios.c: New file.
19402
19403         New module 'termios'.
19404         * modules/termios: New file.
19405         * lib/termios.in.h: New file.
19406         * m4/termios_h.m4: New file.
19407         * doc/posix-headers/termios.texi: Mention the new module.
19408
19409 2010-09-16  Eric Blake  <eblake@redhat.com>
19410
19411         fdutimensat: add an atflag parameter
19412         * lib/fdutimensat.c (fdutimensat): Add new parameter.
19413         * lib/utimens.h (fdutimensat): Update prototype.
19414         * tests/test-fdutimensat.c: Adjust test to match.
19415         * NEWS: Document the change.
19416         Suggested by Paul Eggert.
19417
19418 2010-09-16  Bruno Haible  <bruno@clisp.org>
19419
19420         Fix typos in comments.
19421         * lib/striconveh.h: Fix typo in comment.
19422         * lib/login_tty.c (login_tty): Likewise.
19423
19424 2010-09-15  Bruno Haible  <bruno@clisp.org>
19425
19426         stdlib: clarify MirBSD WEXITSTATUS bug
19427         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
19428         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19429
19430 2010-09-15  Eric Blake  <eblake@redhat.com>
19431
19432         stdlib: work around MirBSD WEXITSTATUS bug
19433         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
19434         * modules/stdlib (Depends-on): Add sys_wait.
19435         * tests/test-sys_wait.c (main): Enhance test.
19436         * tests/test-stdlib.c (main): Likewise.
19437         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
19438
19439         docs: mention MacOS issue with WEXITSTATUS(constant)
19440         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
19441         issue.
19442         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19443
19444         strnlen: add tests
19445         * modules/strnlen-tests: New file.
19446         * tests/test-strnlen.c: Likewise.
19447
19448 2010-09-14  Bruno Haible  <bruno@clisp.org>
19449
19450         unistr/base: Avoid link errors when module 'libunistring' is also used.
19451         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
19452         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19453         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19454         Declare also when HAVE_LIBUNISTRING is set.
19455         Reported by Pádraig Brady <P@draigbrady.com>.
19456
19457 2010-09-14  Eric Blake  <eblake@redhat.com>
19458
19459         test-rawmemchr: make more robust
19460         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19461         (Depends-on, configure.ac): Add needed prerequisites to use it.
19462         * modules/memchr-tests (Files, Depends-on, configure.ac):
19463         Likewise, to avoid implicit reliance on memchr module prereqs.
19464         * tests/test-memchr.c (main): Ensure proper masking.
19465         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19466         reads.
19467
19468         memchr: detect glibc Alpha bug
19469         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19470         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19471         Alpha.
19472         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19473         * tests/test-memchr.c (main): Enhance test.
19474         Reported by Nelson H. F. Beebe.
19475
19476 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19477
19478         fts, getcwd, glob: audit for dirfd returning -1
19479         * lib/fts.c (opendir): Remove #define; no longer used.
19480         (opendirat): New arg PDIR_FD.  All callers changed.
19481         (fts_build, _opendir2): Use new opendirat to avoid the need for
19482         dirfd, or for checking whether dirfd returns a negative value.
19483         Don't use opendir; always use openat followed by fdopendir.
19484         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
19485         it.
19486         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
19487         returns -1 here.
19488         * modules/fts (Depends-on): Remove dirfd.
19489         * modules/getcwd (Depends-on): Likewise.
19490
19491 2010-09-13  Eric Blake  <eblake@redhat.com>
19492
19493         float: fix broken MirBSD header
19494         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
19495         * doc/posix-headers/float.texi (float.h): Document it.
19496
19497 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19498
19499         fts: use O_NOFOLLOW to avoid race condition when opening a directory
19500         * lib/fts.c (opendirat): New arg extra_flags.
19501         (__opendir2): Use it to avoid following symlinks when opening
19502         a directory, if symlinks are not supposed to be followed.  See
19503         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
19504
19505         fdopendir: preserve argument fd before returning
19506         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
19507         (fdopendir_with_dup, fd_clone_opendir): New static functions.
19508         (fdopendir): Use them, arranging for FD to be open to the same
19509         directory that it was when it started.  (It might be temporarily
19510         closed while fdopendir is running, so this not thread- or
19511         signal-safe.)  Be careful to do the right thing even when file
19512         descriptors are scarce and dup fails with errno == EMFILE.  See
19513         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
19514
19515 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
19516
19517         regex: Pass the system regex if its only problem is 32-bit regoff_t.
19518         * NEWS: Document change.
19519         * m4/regex.m4: Disable test for regoff_t size.
19520
19521 2010-09-13  Jim Meyering  <meyering@redhat.com>
19522
19523         fts: don't operate on an invalid file descriptor after failed dup
19524         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19525         negative file descriptor.
19526
19527 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19528
19529         savedir: add streamsavedir, deprecate fdsavedir
19530         * NEWS: Mention deprecation of fdsavedir.
19531         * lib/savedir.c (streamsavedir): New extern function, whose name
19532         ends in "savedir" to be consistent with the others.  This differs
19533         from savedirstream in that it doesn't close its argument.  The
19534         next version of GNU tar will use this instead of fdsavedir, to
19535         avoid some race conditions and conserve file descriptors.
19536         (savedirstream): Reimplement as a wrapper around streamsavedir.
19537         (fdsavedir): Add a comment deprecating this function.  As far as
19538         I know, only GNU tar used it, and GNU tar doesn't need it any more.
19539         * lib/savedir.h (streamsavedir): New decl.
19540         (fdsavedir): Add a comment deprecating this.
19541
19542 2010-09-10  Bruno Haible  <bruno@clisp.org>
19543
19544         langinfo: Fix last commit.
19545         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
19546         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
19547         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19548
19549 2010-09-10  Bruno Haible  <bruno@clisp.org>
19550
19551         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
19552         * lib/progreloc.c (O_EXEC): Define fallback.
19553
19554 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19555
19556         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
19557         * NEWS: Document recent changes to fcntl-h.
19558         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
19559         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
19560         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
19561         Similarly for O_SEARCH; this last was already true, but not documented.
19562         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
19563         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
19564         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
19565         Likewise.
19566         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
19567         is zero, not whether it is defined.
19568         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
19569         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
19570         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
19571
19572 2010-09-10  Bruno Haible  <bruno@clisp.org>
19573
19574         langinfo, nl_langinfo: Fix for IRIX 5.3.
19575         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
19576         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
19577         HAVE_LANGINFO_YESEXPR.
19578         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
19579         HAVE_LANGINFO_YESEXPR.
19580         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
19581         HAVE_LANGINFO_T_FMT_AMPM is 0.
19582         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
19583         HAVE_LANGINFO_YESEXPR is 0.
19584         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
19585         NOEXPR.
19586         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
19587         * doc/posix-functions/nl_langinfo.texi: Likewise.
19588         Reported by Eric Blake.
19589
19590 2010-09-10  Bruno Haible  <bruno@clisp.org>
19591
19592         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
19593         * doc/glibc-functions/login_tty.texi: Mention the include file problem
19594         on FreeBSD 8.0 and OpenBSD 4.6.
19595         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
19596         * m4/pty_h.m4 (gl_PTY_H): Likewise.
19597         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
19598         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
19599         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
19600         ac_includes_default.
19601         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19602
19603 2010-09-09  Eric Blake  <eblake@redhat.com>
19604
19605         strsignal: work around NetBSD bug
19606         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
19607         * lib/string.in.h (includes): Likewise.
19608         * doc/posix-functions/strsignal.texi (strsignal): Document the
19609         bug.
19610         Reported by Nelson H. F. Beebe.
19611
19612         gnulib-tool: work with NetBSD /bin/sh
19613         * gnulib-tool (func_cache_var, func_cache_lookup_module)
19614         (func_get_description, func_get_comment, func_get_status)
19615         (func_get_notice, func_get_applicability, func_get_filelist)
19616         (func_get_dependencies, func_get_autoconf_early_snippet)
19617         (func_get_autoconf_snippet, func_get_automake_snippet)
19618         (func_get_include_directive, func_get_link_directive)
19619         (func_get_license, func_get_maintainer, func_import): Avoid
19620         shell syntax errors from parsing syntax extensions.
19621
19622 2010-09-09  Bruno Haible  <bruno@clisp.org>
19623
19624         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19625         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
19626         a reliable way to determine whether the 'alias' command works.
19627
19628 2010-09-08  Jim Meyering  <meyering@redhat.com>
19629
19630         init.sh: penalize a set-x-impaired shell; don't disqualify it
19631         * tests/init.sh: Too many shells corrupt application stderr when
19632         you set -x, so we can't afford to disqualify them, since at least
19633         on Irix-6.5, that would disqualify all bourne shells.
19634         Instead, use a two-pass approach.
19635         On the first pass, try to find a shell that meets the stricter
19636         condition that set -x does not corrupt stderr.
19637         If no shell meets the stricter condition, retest each candidate
19638         shell, but without that extra condition.  Finally, when
19639         VERBOSE=yes is requested and set -x might cause trouble, simply
19640         issue a warning and refrain from enabling debug output.
19641
19642 2010-09-08  Eric Blake  <eblake@redhat.com>
19643
19644         unsetenv: fix OpenBSD bug
19645         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
19646         * doc/posix-functions/unsetenv.texi (unsetenv): Update
19647         documentation.
19648         Reported by Jim Meyering.
19649
19650         strtod: work around IRIX 6.5 bug
19651         * lib/strtod.c (strtod): Reparse number on shorter string if
19652         exponent parse was invalid.
19653         * tests/test-strtod.c (main): Add check for "0x1p 2".
19654         Reported by Tom G. Christensen.
19655
19656         getopt: optimize previous patch
19657         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
19658         empty variable.  Speed up awk script.
19659         Reported by Paolo Bonzini.
19660
19661 2010-09-08  Jim Meyering  <meyering@redhat.com>
19662
19663         test.sh: disqualify shells for which set -x corrupts stderr
19664         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
19665         and OpenBSD 4.7.  They make it so with "set -x", environment settings
19666         appear in stderr output.  For example, this command:
19667             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
19668         prints "P=1" on those two systems:
19669
19670 2010-09-08  Bruno Haible  <bruno@clisp.org>
19671
19672         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19673         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
19674         commands, because some shells ignore redirections when there is an
19675         error in the command lookup.
19676         Reported by Eric Blake.
19677
19678 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
19679
19680         * lib/regex.h: Fix a mention of `regex_compile' (should be
19681         `re_compile_pattern').
19682         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
19683         (re_set_registers): Correct name of parameter in comment.
19684
19685         * doc/regex.texi: Add documentation for missing syntax flags.
19686         Remove commented-out documentation of defunct syntax option
19687         RE_NO_EMPTY_ALTS.
19688         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
19689         Add documentation of re_set_registers.
19690         Document trick to re-use a pattern buffer by setting fastmap manually.
19691         Update documentation of struct re_pattern_buffer per public members.
19692         Uncomment documentation of equivalence class operators and
19693         collating symbol operators, since they are now implemented,
19694         Explain leftmost-longest matching in relation to alternatives.
19695         Tidy documentation of substring matching.
19696         Remove POSIX documentation, which is done better in
19697         glibc, and refer the reader there. Keep BSD API documentation, as
19698         that is not readily available elsewhere.
19699
19700 2010-09-07  Eric Blake  <eblake@redhat.com>
19701
19702         getopt: handle POSIXLY_CORRECT set but not exported
19703         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
19704         export state of POSIXLY_CORRECT, due to bash set -o posix.
19705         Reported by Dustin J. Mitchell.
19706
19707 2010-09-05  Bruno Haible  <bruno@clisp.org>
19708
19709         gnulib-tool: Highlight the changed options.
19710         * gnulib-tool (func_usage): Display the --import, --add-import,
19711         --remove-import explanations in bold font.
19712
19713 2010-09-06  Karl Berry  <karl@gnu.org>
19714
19715         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
19716
19717 2010-09-05  Bruno Haible  <bruno@clisp.org>
19718
19719         uniwidth/width: Update comment.
19720         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
19721         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
19722
19723 2010-09-05  Bruno Haible  <bruno@clisp.org>
19724
19725         isinf, isnan: Relax license.
19726         * modules/isinf (License): Change from GPL to LGPL, with consent from
19727         Ben Pfaff.
19728         * modules/isnan (License): Likewise.
19729         Requested by Ludovic Courtès.
19730
19731 2010-09-04  Bruno Haible  <bruno@clisp.org>
19732
19733         gnulib-tool: Help migration from --import to --add-import or --update.
19734         * gnulib-tool: Emit a verbose error message when --import is used
19735         without any module name.
19736
19737 2010-09-04  Bruno Haible  <bruno@clisp.org>
19738
19739         Update doc about gnulib-tool.
19740         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
19741         'gnulib-tool --update' in more detail.
19742         Reported by Eric Blake.
19743
19744 2010-09-04  Bruno Haible  <bruno@clisp.org>
19745
19746         gnulib-tool: Change --import. New options --add/remove-import.
19747         * gnulib-tool: New options --add-import, --remove-import.
19748         (func_usage): Document them.
19749         (have_associative): Define always.
19750         (func_import): In import mode, don't merge the specified settings with
19751         the cached settings. Implement remove-import mode.
19752         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
19753         Explain when to use them versus --import.
19754         (Simple update): Use --add-import instead of --import.
19755         * NEWS: Mention the change.
19756
19757 2010-09-04  Bruno Haible  <bruno@clisp.org>
19758
19759         * doc/gnulib-tool.texi (Initial import): Update paragraph about
19760         separate gnulib.mk.
19761
19762 2010-09-04  Bruno Haible  <bruno@clisp.org>
19763
19764         gnulib-tool: Don't talk about CVS any more.
19765         * gnulib-tool (func_usage, func_import): Write "version control"
19766         instead of CVS.
19767
19768 2010-09-04  Jim Meyering  <meyering@redhat.com>
19769
19770         maint.mk: avoid obscure sc_copyright_check failure in coreutils
19771         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
19772         false positives (whose names may be ill-chosen) when searching
19773         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
19774         would cause a false-positive.
19775
19776         avoid coreutils "make distcheck" failure
19777         Coreutils tests with an absolute build directory name that contains
19778         a space.  Not quoting this directory name caused a failure.
19779         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
19780         * tests/test-vc-list-files-cvs.sh: Likewise.
19781
19782 2010-09-04  Bruno Haible  <bruno@clisp.org>
19783
19784         gnulib-tool: Avoid error when run in a package without Makefile.am.
19785         * gnulib-tool: When collecting the m4dirs in a package that does not
19786         have a Makefile.am, eliminate those directories that contain no
19787         gnulib-cache.m4. Fix expression that counts these directories.
19788
19789 2010-09-04  Bruno Haible  <bruno@clisp.org>
19790
19791         update-copyright test: Improve output when perl is missing or too old.
19792         * tests/test-update-copyright.sh: Move test of Perl version down after
19793         the test whether Perl exists. Provide an explanation relating Perl's
19794         error message to Automake's SKIP: message.
19795
19796 2010-09-04  Bruno Haible  <bruno@clisp.org>
19797
19798         Don't augment PATH in TESTS_ENVIRONMENT.
19799         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
19800         set abs_aux_dir instead of augmenting PATH.
19801         * modules/vc-list-files-tests (Makefile.am): Likewise.
19802         * tests/test-update-copyright.sh: Augment PATH here.
19803         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
19804         path_prepend_.
19805         * tests/test-vc-list-files-git.sh: Likewise.
19806
19807 2010-09-04  Jim Meyering  <meyering@redhat.com>
19808
19809         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
19810         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
19811
19812 2010-09-04  Bruno Haible  <bruno@clisp.org>
19813
19814         strdup: Fix compilation error in C++ mode.
19815         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
19816         the macro.
19817
19818 2010-09-04  Bruno Haible  <bruno@clisp.org>
19819
19820         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
19821         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
19822         macro into a function.
19823         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19824
19825 2010-09-04  Bruno Haible  <bruno@clisp.org>
19826
19827         Set PATH_SEPARATOR the same way autoconf does.
19828         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
19829         the value of PATH_SEPARATOR the same way autoconf-generated configure
19830         scripts do.
19831         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
19832         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19833
19834 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19835
19836         Set PATH_SEPARATOR the same way autoconf does.
19837         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
19838         the same way autoconf-generated configure scripts do.
19839         * posix-modules: Likewise.
19840
19841 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19842
19843         hash: fix safe_hasher const typo
19844         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
19845         const; otherwise, there is a type error later.
19846
19847 2010-09-02  Jim Meyering  <meyering@redhat.com>
19848
19849         test-update-copyright.sh: require perl 5.8.0
19850         * tests/test-update-copyright.sh: Require 5.8.0,
19851         which Tom G. Christensen has confirmed is adequate,
19852         while 5.6.1 is not.
19853
19854 2010-09-02  Eric Blake  <eblake@redhat.com>
19855
19856         tests: init.sh improvements for re-exec'ing with zsh
19857         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
19858         -vx through shell re-exec.
19859         Reported by Tom G. Christensen.
19860
19861         wctype: fix typo in previous commit
19862         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
19863         Reported by Ludovic Courtès.
19864
19865 2010-09-02  Jim Meyering  <meyering@redhat.com>
19866
19867         test-update-copyright.sh: skip test if Perl is too old
19868         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
19869         Reported by Tom G. Christensen.
19870
19871 2010-09-02  Bruno Haible  <bruno@clisp.org>
19872
19873         wctype: Avoid compilation error on IRIX 6.5.30.
19874         * lib/wctype.in.h (iswblank): Declare with a replacement if
19875         REPLACE_ISWBLANK is set.
19876         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
19877         declared. Set REPLACE_ISWBLANK.
19878         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
19879         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
19880         * doc/posix-headers/wctype.texi: Likewise.
19881         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19882
19883 2010-09-01  Bruno Haible  <bruno@clisp.org>
19884
19885         New module 'socketlib'.
19886         * modules/socketlib: New file.
19887         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
19888         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
19889         * modules/sockets (Depends-on): Add socketlib.
19890         Suggested by Sam Steingold <sds@gnu.org>.
19891
19892 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19893
19894         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
19895
19896         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
19897         when one needs search access to a directory but not read access.
19898         On systems where it is available, it works in some cases where
19899         O_RDONLY does not, namely on directories that are searchable but
19900         not readable, and which need only to be searchable.  If O_SEARCH
19901         is not available, fall back to the traditional method of using
19902         O_RDONLY.
19903
19904         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
19905         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
19906         when opening a directory that needs only to be searchable.
19907         * lib/chdir-safer.c (chdir_no_follow): Likewise.
19908         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
19909         * lib/openat-proc.c (openat_proc_name): Likewise.
19910         * lib/openat.c (openat_needs_fchdir): Likewise.
19911         * lib/save-cwd.c (save_cwd): Likewise.
19912         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
19913
19914 2010-08-28  Bruno Haible  <bruno@clisp.org>
19915
19916         New module 'host-cpu-c-abi'.
19917         * modules/host-cpu-c-abi: New file.
19918         * m4/host-cpu-c-abi.m4: New file, based on part of
19919         clisp/src/m4/general.m4.
19920         Requested by Sam Steingold <sds@gnu.org>.
19921
19922 2010-08-31  Eric Blake  <eblake@redhat.com>
19923         and Jim Meyering  <meyering@redhat.com>
19924
19925         hash: factor, and guard against misbehaving hasher function
19926         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
19927         of table->hasher's return value.  Also protect against a hash value
19928         so large that adding it to table->bucket results in a NULL pointer.
19929         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
19930         Use it in place of open-coded check-and-abort.
19931
19932 2010-08-30  Bruno Haible  <bruno@clisp.org>
19933
19934         hash: silence spurious clang warning
19935         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
19936         Reported by Eric Blake.
19937
19938 2010-08-30  Eric Blake  <eblake@redhat.com>
19939
19940         strstr, memmem, strcasestr: avoid leaked shell message
19941         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
19942         FreeBSD.
19943         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19944         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19945
19946         tests: silence clang warning
19947         * tests/test-malloca.c (do_allocation): Avoid dead store.
19948
19949 2010-08-29  Bruno Haible  <bruno@clisp.org>
19950
19951         gettext: Fix recent mistake.
19952         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
19953
19954 2010-08-29  Bruno Haible  <bruno@clisp.org>
19955
19956         selinux-h: Offer a --without-selinux option.
19957         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
19958         --without-selinux was specified, skip all tests and define
19959         HAVE_SELINUX_SELINUX_H to 0.
19960         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
19961         set LIB_SELINUX to empty.
19962         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
19963         gl_LIBSELINUX. If --without-selinux was specified, replace
19964         selinux/context.h.
19965         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
19966
19967 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19968             Bruno Haible  <bruno@clisp.org>
19969
19970         Make the module 'realloc-gnu' work again on AIX and OSF/1.
19971         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
19972         of HAVE_REALLOC.
19973         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
19974         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
19975         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
19976         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19977
19978 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19979             Bruno Haible  <bruno@clisp.org>
19980
19981         Make the module 'calloc-gnu' work again on AIX and OSF/1.
19982         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
19983         HAVE_CALLOC.
19984         * lib/xmalloc.c: Update accordingly.
19985         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
19986         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
19987         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
19988
19989 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19990             Bruno Haible  <bruno@clisp.org>
19991
19992         Make the module 'malloc-gnu' work again on AIX and OSF/1.
19993         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
19994         HAVE_MALLOC.
19995         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
19996         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
19997         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19998
19999 2010-08-29  Bruno Haible  <bruno@clisp.org>
20000
20001         Update modules list.
20002         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20003         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20004         (String handling <string.h>): Add astrxfrm.
20005         (File system functions): Add readlinkat.
20006
20007 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20008
20009         Tests for module 'realloc-gnu'.
20010         * modules/realloc-gnu-tests: New file.
20011         * tests/test-realloc-gnu.c: New file.
20012
20013         Tests for module 'calloc-gnu'.
20014         * modules/calloc-gnu-tests: New file.
20015         * tests/test-calloc-gnu.c: New file.
20016
20017         Tests for module 'malloc-gnu'.
20018         * modules/malloc-gnu-tests: New file.
20019         * tests/test-malloc-gnu.c: New file.
20020
20021 2010-08-28  Bruno Haible  <bruno@clisp.org>
20022
20023         Rename module 'realloc' -> 'realloc-gnu'.
20024         * modules/realloc-gnu: New file, copied from modules/realloc.
20025         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20026         obsolete.
20027         * modules/mgetgroups (Depends-on): Update.
20028         * doc/posix-functions/realloc.texi: Update.
20029         * NEWS: Mention the change.
20030
20031         Rename module 'calloc' -> 'calloc-gnu'.
20032         * modules/calloc-gnu: New file, copied from modules/calloc.
20033         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20034         obsolete.
20035         * doc/posix-functions/calloc.texi: Update.
20036         * NEWS: Mention the change.
20037
20038         Rename module 'malloc' -> 'malloc-gnu'.
20039         * modules/malloc-gnu: New file, copied from modules/malloc.
20040         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20041         obsolete.
20042         * modules/argp (Depends-on): Update.
20043         * modules/regex (Depends-on): Update.
20044         * doc/posix-functions/malloc.texi: Update.
20045         * NEWS: Mention the change.
20046
20047 2010-08-28  Eric Blake  <eblake@redhat.com>
20048
20049         pread, pwrite: add missing dependency
20050         * modules/pread (Depends-on): Add extensions.
20051         * modules/pwrite (Depends-on): Likewise.
20052
20053 2010-08-28  Bruno Haible  <bruno@clisp.org>
20054
20055         unistr/u*-strchr: Fix tests dependencies.
20056         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20057         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20058         Reported by Ian Beckwith <ianb@erislabs.net>.
20059
20060 2010-08-28  Bruno Haible  <bruno@clisp.org>
20061
20062         read-file: Don't occupy too much unused memory.
20063         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20064
20065 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20066             Eric Blake  <eblake@redhat.com>
20067             Bruno Haible  <bruno@clisp.org>
20068
20069         read-file: Avoid memory reallocations with regular files.
20070         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20071         (fread_file): With regular files, use the remaining length as the
20072         initial buffer size.  Check against overflow.
20073         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20074         sys_stat.
20075
20076 2010-08-28  Bruno Haible  <bruno@clisp.org>
20077
20078         ftello: Relax license.
20079         * modules/ftello (License): Relax to LGPLv2+.
20080         Reported by Eric Blake.
20081
20082 2010-08-28  Bruno Haible  <bruno@clisp.org>
20083
20084         Avoid relocwrapper link errors due to gnulib replacement functions.
20085         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20086         function.
20087         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20088
20089 2010-08-28  Bruno Haible  <bruno@clisp.org>
20090
20091         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20092         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20093         defined.
20094         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20095         Suggested by Eric Blake.
20096
20097 2010-08-28  Bruno Haible  <bruno@clisp.org>
20098
20099         sys_socket, netdb: Ensure socklen_t gets defined.
20100         * modules/sys_socket (Depends-on): Add socklen.
20101         * modules/netdb (Depends-on): Likewise.
20102         * modules/getaddrinfo (Depends-on): Remove socklen.
20103         * modules/getsockopt (Depends-on): Likewise.
20104         * modules/setsockopt (Depends-on): Likewise.
20105         * tests/test-sys_socket.c: Check that socklen_t is defined.
20106         * tests/test-netdb.c: Likewise.
20107         * m4/socklen.m4: Update comments.
20108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20109
20110 2010-08-27  Eric Blake  <eblake@redhat.com>
20111
20112         login_tty: add missing dependency
20113         * modules/login_tty (Depends-on): Add pty.
20114
20115 2010-08-26  Eric Blake  <eblake@redhat.com>
20116
20117         lib-symbol-versions: fix m4 quoting
20118         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20119         format for AC_LINK_IFELSE.
20120
20121         glob: fix compile test
20122         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20123
20124         btowc: fix missing file
20125         * modules/btowc (Files): Also ship locale-fr.m4.
20126
20127         lseek: fix link test
20128         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20129         AC_LINK_IFELSE.
20130
20131         include_next: silence autoconf 2.68 warning
20132         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20133         AC_COMPILE_IFELSE as special.
20134         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20135         autoconf < 2.68.
20136
20137         acl: fix compilation test
20138         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20139         AC_COMPILE_IFELSE.
20140
20141 2010-08-26  Bruno Haible  <bruno@clisp.org>
20142
20143         Modernize AC_TRY_RUN invocations.
20144         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20145         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20146         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20147         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20148         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20149         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20150         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20151         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20152         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20153         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20154         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20155         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20156         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20157         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20158         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20159         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20160         gl_MBRLEN_NUL_RETVAL): Likewise.
20161         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20162         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20163         Likewise.
20164         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20165         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20166         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20167         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20168         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20169         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20170         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20171         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20172         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20173         Likewise.
20174         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20175         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20176         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20177         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20178         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20179         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20180         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20181         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20182         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20183         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20184
20185 2010-08-26  Bruno Haible  <bruno@clisp.org>
20186
20187         Modernize AC_TRY_LINK invocations.
20188         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20189         AC_TRY_LINK.
20190         * m4/argp.m4 (gl_ARGP): Likewise.
20191         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20192         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20193         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20194         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20195         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20196         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20197         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20198         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20199         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20200         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20201         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20202         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20203         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20204         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20205         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20206         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20207         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20208         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20209         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20210         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20211         Likewise.
20212         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20213         Likewise.
20214         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20215         Likewise.
20216         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20217         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20218         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20219         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20220         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20221         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20222         * m4/servent.m4 (gl_SERVENT): Likewise.
20223         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20224         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20225         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20226         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20227         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20228         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20229         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20230         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20231         * modules/tsearch-tests (configure.ac): Likewise.
20232
20233 2010-08-26  Bruno Haible  <bruno@clisp.org>
20234
20235         Modernize AC_TRY_COMPILE invocations.
20236         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20237         AC_TRY_COMPILE.
20238         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20239         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20240         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20241         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20242         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20243         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20244         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20245         * m4/lock.m4 (gl_LOCK): Likewise.
20246         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20247         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20248         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20249         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20250         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20251         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20252         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20253         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20254         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20255         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20256         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20257         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20258         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20259         extraneous semicolon.
20260
20261 2010-08-26  Jim Meyering  <meyering@redhat.com>
20262
20263         stat-time: relax license LGPL
20264         * modules/stat-time (License): Change from GPL to LGPL,
20265         with consent from all contributors, for use in libguile.
20266         Requested by Ludovic Courtès.
20267
20268 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20269
20270         poll: return immediately on POLLHUP.
20271         * lib/poll.c (poll): Always set timeout before wait_timeout is
20272         computed.
20273
20274 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20275
20276         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20277         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20278         rmdir ("dir/.//"), unlinkat.
20279
20280 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20281
20282         stdbool: avoid spurious failure with modern xlc
20283         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20284
20285 2010-08-24  Bruno Haible  <bruno@clisp.org>
20286
20287         getloadavg: simplify code
20288         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20289         gl_have_func. Update comments.
20290
20291 2010-08-24  Eric Blake  <eblake@redhat.com>
20292
20293         getloadavg: don't define SVR4 on cygwin
20294         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20295         only define SVR4 when -lkvm is required.
20296         Reported by Yaakov Selkowitz.
20297
20298 2010-08-24  Bruno Haible  <bruno@clisp.org>
20299
20300         priv-set: fix comment
20301         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20302
20303 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20304
20305         priv-set: fix comments
20306         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20307         to match code, as suggested by David Bartley in:
20308         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20309
20310 2010-08-23  Eric Blake  <eblake@redhat.com>
20311
20312         stdbool: avoid rejecting clang
20313         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20314         * tests/test-stdbool.c: Enable more tests if using the system
20315         <stdbool.h> instead of the gnulib replacement.
20316         (main): Move xlc bug test to a runtime test for all compilers.
20317         Reported by Anders Kaseorg.
20318
20319         argz: fix shell quoting issue
20320         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20321         Reported by Charles Wilson.
20322
20323 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20324             Erik Faye-Lund <kusmabite@gmail.com>
20325
20326         poll, select: handle ERROR_BROKEN_PIPE.
20327         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20328         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20329         * lib/select.c (win32_compute_revents): Do not mark a pipe
20330         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20331
20332 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20333
20334         fts: allow compilation with C++
20335         * lib/fts_.h: Specify extern "C" linkage with C++.
20336
20337 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20338
20339         Fix gnulib-tool sed script de-commentation for AIX sed.
20340         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20341         sed.
20342
20343 2010-08-17  Eric Blake  <eblake@redhat.com>
20344
20345         test-stddef: test for (some) offsetof bugs
20346         * tests/test-stddef.c: Enhance test to ensure correct type of
20347         offsetof.
20348         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20349         that we are not fixing at this time.
20350
20351 2010-08-15  Bruno Haible  <bruno@clisp.org>
20352
20353         stpncpy: Allow stpncpy to be defined as a macro.
20354         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
20355         if it's already correctly declared.
20356         * lib/string.in.h (stpncpy): Undefine before redefining.
20357         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
20358
20359 2010-08-14  Bruno Haible  <bruno@clisp.org>
20360
20361         Rename module 'memxfrm' to 'amemxfrm'.
20362         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
20363         (amemxfrm): Renamed from memxfrm.
20364         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
20365         (amemxfrm): Renamed from memxfrm.
20366         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
20367         * NEWS: Mention the change.
20368         * MODULES.html.sh (String handling <string.h>): Update.
20369         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
20370         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
20371         * lib/unicase/u16-casexfrm.c: Likewise.
20372         * lib/unicase/u32-casexfrm.c: Likewise.
20373         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
20374         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
20375         * lib/uninorm/u16-normxfrm.c: Likewise.
20376         * lib/uninorm/u32-normxfrm.c: Likewise.
20377         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
20378         memxfrm.
20379         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
20380         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
20381         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
20382         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
20383         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
20384         Suggested by Paul Eggert.
20385
20386 2010-08-14  Bruno Haible  <bruno@clisp.org>
20387
20388         Tests for module 'astrxfrm'.
20389         * modules/astrxfrm-tests: New file.
20390         * tests/test-astrxfrm.c: New file.
20391
20392         New module 'astrxfrm'.
20393         * lib/astrxfrm.h: New file.
20394         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
20395         * modules/astrxfrm: New file.
20396
20397 2010-08-14  Reuben Thomas <rrt@sc3d.org>
20398
20399         regex: Tweak doc.
20400         * doc/regex.texi (Overview): Don't mention regex.c.
20401         (GNU Regular Expression Compiling): Likewise.
20402         (Match-end-of-line Operator): Mention 'not_eol'.
20403
20404 2010-08-14  Brian Gough  <bjg@gnu.org>
20405             Bruno Haible  <bruno@clisp.org>
20406
20407         git-merge-changelog: add doc relating to use with bzr and hg.
20408         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
20409
20410 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
20411
20412         pthread: fix pthread.h creation for srcdir != builddir
20413         * modules/pthread (Makefile.am): Fix the rule to work also in a
20414         non-srcdir build.
20415
20416 2010-08-13  Karl Berry  <karl@gnu.org>
20417
20418         * doc/regex.texi (Predefined Syntaxes): @smallexample.
20419         * doc/posix-*/*: force line break before @url of POSIX
20420         specifications.
20421         Suggested by Werner Lemberg.
20422
20423 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20424
20425         strtod: fix const diagnostic
20426         * lib/strtod.c (strtod): Don't assign const char * to char *,
20427         as this elicits a warning from GCC when warnings are enabled.
20428
20429 2010-08-10  Pádraig Brady <P@draigbrady.com>
20430         and Eric Blake  <eblake@redhat.com>
20431
20432         copy-acl: ignore ENOTSUP on HP-UX
20433         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
20434         so that it is available for HP-UX.
20435         * lib/copy-acl.c (qcopy_acl): Use it.
20436         Reported by Patrick M. Callahan.
20437
20438 2010-08-10  Eric Blake  <eblake@redhat.com>
20439
20440         open, chown: relax license
20441         * modules/open (License): Change to LGPLv2+, with consent by all
20442         authors, for use in augeas.
20443         * modules/chown (License): Likewise.
20444         * modules/lchown (Likewise): Likewise.
20445         Requested by Adam Stokes.
20446
20447 2010-08-09  Karl Berry  <karl@gnu.org>
20448
20449         * build-aux/ar-lib: new file, import from Automake.
20450         * config/srclist.txt: autocheck for updates.
20451
20452 2010-08-09  Eric Blake  <eblake@redhat.com>
20453
20454         readlinkat: adjust client modules
20455         * modules/areadlinkat (Depends-on): Use readlinkat, not
20456         symlinkat.
20457         * modules/areadlinkat-with-size (Depends-on): Likewise.
20458
20459         mknod: be more vocal about danger of running tests as root
20460         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20461         root, since that is just asking for problems.
20462         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20463
20464         readlinkat: split into its own module
20465         * modules/symlinkat: Split readlinkat...
20466         * modules/readlinkat: ...into separate module.
20467         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20468         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20469         * lib/symlinkat.c (readlinkat): Move...
20470         * lib/readlinkat.c: ...into new file.
20471         * modules/symlinkat-tests: Split readlinkat test...
20472         * modules/readlinkat-tests: ...into separate module.
20473         * tests/test-symlinkat.c: Split...
20474         * tests/test-readlinkat.c: ...into new file.
20475         * NEWS: Document the split.
20476         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20477         * lib/unistd.in.h (readlinkat): Likewise.
20478         Suggested by Bruno Haible.
20479
20480 2010-08-08  Bruno Haible  <bruno@clisp.org>
20481
20482         memxfrm: Speed up.
20483         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
20484         that usually only one call to strxfrm is necessary for each string
20485         part.
20486         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20487
20488 2010-08-07  Karl Berry  <karl@gnu.org>
20489
20490         * doc/posix-headers/limits.texi,
20491         * doc/posix-functions/malloc.texi,
20492         * doc/posix-functions/strsignal.texi: missing @item.
20493         * doc/ld-version-script.texi: spurious leading i.
20494         * doc/regex.texi (Interval Operators): no commas inside @var.
20495
20496 2010-08-01  Bruno Haible  <bruno@clisp.org>
20497
20498         Integrate the regex documentation.
20499         * doc/gnulib.texi: Define 'cn' index.
20500         (Regular expressions): New a chapter that includes regex.texi and
20501         regexprops-generic.texi.
20502         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
20503         syntax.
20504
20505         Whitespace cleanup.
20506         * doc/regex.texi: Remove trailing spaces.
20507
20508         Add regex documentation.
20509         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
20510         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
20511         Written by Kathy A. Hargreaves and Karl Berry.
20512
20513 2010-08-01  Bruno Haible  <bruno@clisp.org>
20514
20515         link: Update documentation.
20516         * doc/posix-functions/link.texi: Update regarding Solaris.
20517
20518 2010-07-31  Bruno Haible  <bruno@clisp.org>
20519
20520         Update modules list.
20521         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
20522         (String handling <string.h>): Add memcmp2, memxfrm.
20523         (Container data structures): Add xlist, xsublist, xoset.
20524         (Core language properties): Add alignof, unused-parameter.
20525         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20526         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
20527         (Unibyte characters <ctype.h>): New section.
20528         (String handling <string.h>): New section.
20529         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
20530         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
20531         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
20532         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
20533         tan, tanh, tanl, y0, y1, yn.
20534         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
20535         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
20536         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
20537         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
20538         unlockpt, vdprintf, vdprintf-posix.
20539         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
20540         (File system functions): Add concat-filename, sys_file, sys_ioctl,
20541         xconcat-filename.
20542         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
20543         getdtablesize, pipe2, pipe2-safer.
20544         (Security): New section.
20545         (Networking functions): Add accept4.
20546         (Signal handling): Add sigpipe.
20547         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
20548         mbmemcasecoll.
20549         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
20550         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
20551         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
20552         pipe-filter-ii.
20553         (Misc): Add argp-version-etc, login_tty, parse-duration.
20554
20555 2010-07-31  Bruno Haible  <bruno@clisp.org>
20556
20557         Improve doc in MODULES.html.
20558         * modules/linkat (Description): Add the word "function".
20559         * modules/mkfifo (Description): Likewise.
20560         * modules/mknod (Description): Likewise.
20561         * modules/remove (Description): Likewise.
20562         * modules/renameat (Description): Likewise.
20563         * modules/stat (Description): Likewise.
20564         * modules/symlink (Description): Likewise.
20565         * modules/unlink (Description): Likewise.
20566
20567 2010-07-31  Bruno Haible  <bruno@clisp.org>
20568
20569         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
20570         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
20571         option --enable/disable-c++ instead of --enable/disable-cxx.
20572         * NEWS: Mention the change.
20573
20574 2010-07-31  Bruno Haible  <bruno@clisp.org>
20575
20576         readlink, areadlink: Relax test a bit.
20577         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
20578         alternative to ENOTDIR.
20579         * tests/test-areadlink.h (test_areadlink): Likewise.
20580         Reported by Rainer Tammer.
20581
20582 2010-07-31  Bruno Haible  <bruno@clisp.org>
20583
20584         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
20585         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
20586         character, perform the search using U_STRCHR.
20587         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
20588         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
20589         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
20590         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
20591         Suggested by Paolo Bonzini.
20592
20593 2010-07-31  Bruno Haible  <bruno@clisp.org>
20594
20595         unistr/u*-strstr: Fix dependencies.
20596         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
20597         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
20598         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
20599
20600 2010-07-31  Bruno Haible  <bruno@clisp.org>
20601
20602         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
20603         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
20604         the beginning of the loop.
20605         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
20606         cases in 'switch' statement.
20607
20608         unistr/u8-strchr: Fix several bugs.
20609         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
20610         the string. When not found, return NULL, not a pointer near the end.
20611
20612         More tests for unistr/u8-strchr.
20613         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
20614         that the function does not read past the first occurrence of the byte
20615         being searched.
20616         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
20617         * tests/unistr/test-u16-strchr.c (main): New function.
20618         * tests/unistr/test-u32-strchr.c (main): New function.
20619
20620 2010-07-31  Bruno Haible  <bruno@clisp.org>
20621
20622         posix-modules: Ignore backup files of documentation files.
20623         * posix-modules: grep only through files named *.texi.
20624
20625 2010-07-31  Bruno Haible  <bruno@clisp.org>
20626
20627         symlinkat: Fix documentation.
20628         * doc/posix-functions/readlinkat.texi: Fix module name.
20629
20630 2010-07-31  Bruno Haible  <bruno@clisp.org>
20631
20632         fchownat: Replace also when chown has the trailing slash bug.
20633         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
20634         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
20635         introduced on 2010-04-10.
20636         Reported by Rainer Tammer.
20637
20638 2010-07-31  Bruno Haible  <bruno@clisp.org>
20639
20640         linkat: Work around AIX 7.1 bug.
20641         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
20642         whether linkat handles trailing slash correctly. If not, replace linkat
20643         and define LINKAT_TRAILING_SLASH_BUG.
20644         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
20645         check whether (fd1,file1) points to a directory if file1 or file2 ends
20646         in a slash. Code taken from lib/link.c.
20647         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
20648         Reported by Rainer Tammer.
20649
20650 2010-07-31  Bruno Haible  <bruno@clisp.org>
20651
20652         Correctly determine whether pow is available in libc on AIX 7 with xlc.
20653         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
20654         This disables an xlc optimization that was causing wrong test results.
20655         Reported by Rainer Tammer.
20656
20657 2010-07-31  Bruno Haible  <bruno@clisp.org>
20658
20659         iconv: Work around AIX 6.1..7.1 bug.
20660         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
20661         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
20662         cross-compiling, guess no on all versions of AIX.
20663         Reported by Rainer Tammer.
20664
20665 2010-07-31  Bruno Haible  <bruno@clisp.org>
20666
20667         readlink: Relax test a bit.
20668         * tests/test-readlink.h (test_readlink): Allow different errno value
20669         when readlink is called with a file name that ends in / and refers to
20670         a file.
20671         Suggested by Eric Blake.
20672         Reported by Rainer Tammer.
20673
20674 2010-07-31  Bruno Haible  <bruno@clisp.org>
20675
20676         copysign: Does not require -lm on glibc systems.
20677         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
20678         gl_COMMON_DOUBLE_MATHFUNC.
20679         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
20680
20681 2010-07-31  Bruno Haible  <bruno@clisp.org>
20682
20683         duplocale: Work around AIX 7.1 bug.
20684         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
20685         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
20686         * lib/duplocale.c (rpl_duplocale): Update comment.
20687         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
20688         Reported by Rainer Tammer.
20689
20690 2010-07-30  Bruno Haible  <bruno@clisp.org>
20691
20692         dirfd: Avoid link error on AIX 7.1.
20693         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
20694         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
20695         exist, set REPLACE_DIRFD.
20696         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
20697         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
20698         * doc/posix-functions/dirfd.texi: Update.
20699         Reported by Rainer Tammer.
20700
20701 2010-07-30  Eric Blake  <eblake@redhat.com>
20702
20703         strtod: next round of AIX fixes
20704         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
20705         exponent.
20706         * tests/test-strtod.c (main): Enhance tests.
20707         * doc/posix-functions/strtod.texi (strtod): Document next bug.
20708         Reported by Rainer Tammer.
20709
20710         futimens: fix configure check
20711         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
20712         Reported by Bruno Haible.
20713
20714 2010-07-30  Bruno Haible  <bruno@clisp.org>
20715
20716         getline: Update regarding AIX.
20717         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
20718         Reported by Rainer Tammer.
20719
20720 2010-07-30  Bruno Haible  <bruno@clisp.org>
20721
20722         wcwidth: Drop replacement on AIX 7.
20723         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
20724         AIX 7.
20725         Reported by Rainer Tammer.
20726
20727 2010-07-30  Bruno Haible  <bruno@clisp.org>
20728
20729         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
20730         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
20731         a 'char *'.
20732         Reported by Rainer Tammer.
20733
20734 2010-07-30  Bruno Haible  <bruno@clisp.org>
20735
20736         unlink: Update regarding AIX.
20737         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
20738         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
20739         Reported by Rainer Tammer.
20740
20741 2010-07-30  Bruno Haible  <bruno@clisp.org>
20742
20743         symlink: Update regarding AIX.
20744         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
20745         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
20746         Reported by Rainer Tammer.
20747
20748 2010-07-30  Bruno Haible  <bruno@clisp.org>
20749
20750         strndup: Update regarding AIX.
20751         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
20752         AIX 7.
20753         Reported by Rainer Tammer.
20754
20755 2010-07-30  Bruno Haible  <bruno@clisp.org>
20756
20757         stat: Update regarding AIX.
20758         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
20759         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
20760         Reported by Rainer Tammer.
20761
20762 2010-07-30  Bruno Haible  <bruno@clisp.org>
20763
20764         truncl: Fix autoconf test.
20765         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
20766         whether truncl works.
20767         Reported by Rainer Tammer.
20768
20769 2010-07-30  Bruno Haible  <bruno@clisp.org>
20770
20771         round: Update regarding AIX.
20772         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
20773         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
20774         Reported by Rainer Tammer.
20775
20776 2010-07-30  Bruno Haible  <bruno@clisp.org>
20777
20778         rename: Update regarding AIX.
20779         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
20780         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
20781         Reported by Rainer Tammer.
20782
20783 2010-07-30  Bruno Haible  <bruno@clisp.org>
20784
20785         printf.m4: Update regarding AIX.
20786         * m4/printf.m4: Update comments regarding AIX.
20787         Reported by Rainer Tammer.
20788
20789 2010-07-30  Bruno Haible  <bruno@clisp.org>
20790
20791         iconv: Update regarding AIX.
20792         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
20793         AIX 7.
20794         Reported by Rainer Tammer.
20795
20796 2010-07-30  Bruno Haible  <bruno@clisp.org>
20797
20798         getopt: Update regarding AIX.
20799         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
20800         no on AIX.
20801         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
20802         Reported by Rainer Tammer.
20803
20804 2010-07-30  Bruno Haible  <bruno@clisp.org>
20805
20806         ldexpl; Update regarding AIX.
20807         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
20808         on AIX 7.
20809         Reported by Rainer Tammer.
20810
20811 2010-07-30  Bruno Haible  <bruno@clisp.org>
20812
20813         frexpl: Update regarding AIX.
20814         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
20815         on AIX 7.
20816         Reported by Rainer Tammer.
20817
20818 2010-07-30  Bruno Haible  <bruno@clisp.org>
20819
20820         open, fopen: Update regarding AIX.
20821         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
20822         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20823         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
20824         * doc/posix-functions/fopen.texi: Likewise.
20825         Reported by Rainer Tammer.
20826
20827 2010-07-30  Bruno Haible  <bruno@clisp.org>
20828
20829         chown: Update doc regarding AIX.
20830         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
20831         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
20832         Reported by Rainer Tammer.
20833
20834 2010-07-30  Eric Blake  <eblake@redhat.com>
20835
20836         strtod: fix bug in replacement function on AIX
20837         * lib/strtod.c (strtod): Special case broken "0x" parse in
20838         underlying strtod.
20839         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
20840         * doc/posix-functions/strtod.texi (strtod): Likewise.
20841         Reported by Rainer Tammer.
20842
20843 2010-07-30  Bruno Haible  <bruno@clisp.org>
20844
20845         mbrlen: Fix cross-compilation guess for AIX.
20846         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
20847         guess. Leftover from 2008-12-22.
20848
20849 2010-07-30  Bruno Haible  <bruno@clisp.org>
20850
20851         mbrtowc: Fix cross-compilation guess for AIX.
20852         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
20853         guess. Leftover from 2008-12-21.
20854
20855 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
20856
20857         init.sh: work around trap limitation of some shells
20858         * tests/init.sh (setup_): Move exit trap outside of shell function.
20859
20860 2010-07-29  Eric Blake  <eblake@redhat.com>
20861
20862         strtod: aid debugging
20863         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
20864         understanding why strtod is rejected.
20865
20866 2010-07-28  Bruno Haible  <bruno@clisp.org>
20867
20868         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
20869         * lib/unistr/u8-chr.c: Include <string.h>.
20870         * tests/unistr/test-u8-chr.c: Likewise.
20871         * tests/unistr/test-u16-chr.c: Likewise.
20872         * tests/unistr/test-u32-chr.c: Likewise.
20873         * tests/unistr/test-u8-strchr.c: Likewise.
20874         * tests/unistr/test-u16-strchr.c: Likewise.
20875         * tests/unistr/test-u32-strchr.c: Likewise.
20876         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
20877         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
20878         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
20879         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
20880
20881 2010-07-28  Bruno Haible  <bruno@clisp.org>
20882
20883         Use spaces for indentation, not tabs.
20884         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20885
20886 2010-07-27  Bruno Haible  <bruno@clisp.org>
20887
20888         mbspcasecmp: Fix function specification.
20889         * lib/string.in.h (mbspcasecmp): Fix specification comment.
20890         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
20891         Reported by Eric Blake <eblake@redhat.com>.
20892
20893 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
20894
20895         timespec: use cast and not conditional, as truncation isn't possible
20896         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
20897         instead of a conditional.  Comment about the situation in more detail.
20898         This undoes most of the 2009-10-29 patch.
20899
20900 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
20901
20902         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
20903         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
20904         * lib/unistr/u8-strchr.c: Likewise.
20905         * modules/unistr/u8-chr: Depend on memchr.
20906
20907         unistr/u*-strchr: add tests
20908         * modules/unistr/u8-strchr-tests: New file.
20909         * modules/unistr/u16-strchr-tests: New file.
20910         * modules/unistr/u32-strchr-tests: New file.
20911         * tests/unistr/test-strchr.h: New file.
20912         * tests/unistr/test-u8-strchr.c: New file.
20913         * tests/unistr/test-u16-strchr.c: New file.
20914         * tests/unistr/test-u32-strchr.c: New file.
20915
20916         unistr/u*-chr: test multibyte sequences more
20917         * tests/unistr/test-chr.h: Do complete testing of the characters in the
20918         test vector.
20919         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
20920         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
20921         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
20922
20923         unistr/u*-chr: test multibyte sequences
20924         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
20925
20926         unistr/u*-chr: prepare for multibyte tests
20927         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
20928         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
20929         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
20930         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
20931         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
20932         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
20933
20934 2010-07-18  Bruno Haible  <bruno@clisp.org>
20935
20936         unistr/u8-strchr: Optimize non-ASCII argument case.
20937         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
20938         because the first byte often matches anyway.
20939         Reported by Pádraig Brady <P@draigbrady.com>.
20940
20941 2010-07-15  Karl Berry  <karl@gnu.org>
20942
20943         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
20944
20945 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
20946
20947         getcwd: on Solaris, work better if ancestors are inaccessible
20948         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
20949         buffer and size, try again with a large buffer.  This works better
20950         on Solaris, since its getcwd succeeds even if the path to the root
20951         is inaccessible, and this is helpful in common cases such as .zfs
20952         hidden directories.  Problem reported by J Chapman Flack in
20953         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
20954         Use system getcwd if it's declared, not merely if it's partly
20955         working; use the partly-working test only to avoid needless effort
20956         if the system getcwd fails.
20957         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
20958         comment that was already obsolete and is now even more obsolete.
20959         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
20960         now might call strdup.
20961
20962 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
20963
20964         pthread: Add enough so that coreutils/src/sort.c compiles.
20965         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
20966         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
20967         gnulib. Include <sched.h> and <time.h>, as per POSIX.
20968         Include <sys/types.h>, in case it defines pthread_t.
20969         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
20970         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
20971         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
20972         (pthread_rwlockattr_t, pthread_spinlock_t):
20973         New typedefs, if HAVE_PTHREAD_T is not defined.
20974         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
20975         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
20976         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
20977         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
20978         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
20979         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
20980         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
20981         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
20982         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
20983         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
20984         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
20985         New macros.
20986         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
20987         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
20988         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
20989         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
20990         (pthread_spin_unlock): New dummy functions.
20991         (pthread_create): Return EAGAIN; don't set errno.
20992         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
20993         require AC_C_INLINE.
20994         * modules/pthread (Depends-on): Add sched, time.
20995         (pthread.h): Use AM_V_GEN.
20996
20997 2010-07-13  Bruno Haible  <bruno@clisp.org>
20998
20999         striconveh: Don't malloc memory if the result buffer is sufficient.
21000         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21001         buffer if its size is sufficient.
21002         Reported by Ludovic Courtès <ludo@gnu.org>.
21003
21004 2010-07-13  Bruno Haible  <bruno@clisp.org>
21005
21006         strtod: Add safety check.
21007         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21008
21009 2010-07-12  Bruno Haible  <bruno@clisp.org>
21010
21011         Unify tests that set gl_cv_func_ldexpl_no_libm.
21012         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21013         gl_FUNC_LDEXPL.
21014         (gl_FUNC_LDEXPL): Invoke it.
21015         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21016
21017 2010-07-12  Bruno Haible  <bruno@clisp.org>
21018
21019         Unify tests that set gl_cv_func_ldexp_no_libm.
21020         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21021         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21022         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21023         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21024         * modules/strtod (Files): Add m4/ldexp.m4.
21025
21026 2010-07-12  Bruno Haible  <bruno@clisp.org>
21027
21028         Unify tests that set gl_cv_func_frexpl_no_libm.
21029         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21030         gl_FUNC_FREXPL_NO_LIBM.
21031         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21032         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21033
21034 2010-07-12  Bruno Haible  <bruno@clisp.org>
21035
21036         Unify tests that set gl_cv_func_frexp_no_libm.
21037         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21038         gl_FUNC_FREXP_NO_LIBM.
21039         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21040         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21041
21042 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21043
21044         memcoll: clarify sizes versus lengths, document better, and tweak perf
21045         * lib/memcoll.c (strcoll_loop, memcoll0):
21046         Improve quality of descriptive comments.  Name variables
21047         consistently as to whether they are lengths (which do not include
21048         terminating null) versus sizes (which do).
21049         * lib/xmemcoll.c (xmemcoll0): Likewise.
21050         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21051         returned when s1size == 0; this is easier to compile and saves
21052         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21053
21054 2010-07-12  Bruno Haible  <bruno@clisp.org>
21055
21056         Tests for module '_Exit'.
21057         * modules/_Exit-tests: New file.
21058         * tests/test-_Exit.sh: New file.
21059         * tests/test-_Exit.c: New file.
21060
21061         New module '_Exit'.
21062         * lib/stdlib.in.h (__attribute__): New macro.
21063         (_Exit): New declaration.
21064         * lib/_Exit.c: New file.
21065         * m4/_Exit.m4: New file.
21066         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21067         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21068         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21069         * modules/_Exit: New file.
21070         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21071         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21072
21073 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21074
21075         strtod: make it more-accurate typically, and don't require libm
21076         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21077         Include limits.h.  Don't include string.h.
21078         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21079         (locale_isspace): New function, so that no casts are needed to
21080         check whether *s is a space.
21081         (ldexp): Provide an unused dummy if not available.
21082         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21083         (strtod): Use them.  This implementation prefers to use the
21084         underlying strtod if available, falling back on our own code
21085         only to fix known bugs.  This is more likely to produce an
21086         accurate result.  Also, it avoids the use of libm functions.
21087         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21088         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21089         was absent, but it caused a test failure with coreutils.
21090         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21091         with libm.
21092         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21093         * modules/strtod-tests (Makefile.am): Likewise.
21094
21095 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21096             Bruno Haible  <bruno@clisp.org>
21097
21098         unistr/u8-strchr: Optimize ASCII argument case.
21099         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21100
21101 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21102
21103         (x)memcoll: minor tweaks
21104         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21105         is after the type that it qualifies.
21106         (memcoll0): Likewise.
21107         * lib/memcoll.h (memcoll0): Likewise.
21108         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21109         * lib/xmemcoll.h (xmemcoll0): Likewise.
21110         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21111         differs from memcoll in that the NUL byte is part of the argument.
21112         Omit the abort-checks, as performance is a real issue here.  Plus,
21113         the checks were wrong anyway (an off-by-one error).  Omit local
21114         variable 'diff', as it's a bit clearer that way.
21115         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21116         no longer needed.
21117
21118 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21119
21120         (x)memcoll: speedup when input is known to be NUL delimited
21121         * lib/memcoll.c: Include stdlib.
21122         (memcoll0): New function.
21123         (strcoll_loop): New function, refactored for use in both memcoll
21124         and memcoll0.
21125         * lib/memcoll.h (memcoll0): Add prototype.
21126         * lib/xmemcoll.c (xmemcoll0): New function.
21127         (collate_error): New function, refactored for use in both xmemcoll
21128         and xmemcoll0.
21129         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21130         * m4/memcoll.m4: add inline invocation.
21131
21132 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21133
21134         * build-aux/bootstrap: Remove any local translations
21135         from the translation project synchronization directory,
21136         so that local only translations are not distributed.
21137
21138 2010-07-04  Bruno Haible  <bruno@clisp.org>
21139
21140         fsusage: Clarify which code applies to which platforms.
21141         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21142         platform.
21143         * lib/fsusage.c (get_fs_usage): Likewise.
21144
21145 2010-07-04  Bruno Haible  <bruno@clisp.org>
21146
21147         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21148         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21149         Reported by Martin Lambers <marlam@marlam.de>.
21150
21151 2010-07-04  Jim Meyering  <meyering@redhat.com>
21152
21153         hash: once again explicitly disallow insertion of NULL
21154         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21155         inserting a NULL pointer cannot work with these functions.
21156         Add a comment with details.
21157         This reverts part of the 2010-07-01 commit, 5bef1a35
21158         "hash: extend module to deal with non-pointer keys".
21159
21160 2010-07-01  Bruno Haible  <bruno@clisp.org>
21161
21162         stdbool: Update doc.
21163         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21164         Info from Christian Weisgerber <naddy@mips.inka.de>.
21165
21166 2010-07-01  Jim Meyering  <meyering@redhat.com>
21167
21168         hash: extend module to deal with non-pointer keys
21169         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21170         but that allows insertion of non-pointer entries.
21171         Do not disallow an ENTRY value of NULL.
21172         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21173         * lib/hash.h (hash_insert0): Declare.
21174
21175 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21176
21177         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21178         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21179         not present (i.e. with autoconf 2.59 and when using gettextize, not
21180         gnulib), require AC_GNU_SOURCE instead.
21181
21182 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21183
21184         idpriv-drop: Fix tests.
21185         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21186         not to the test-idpriv-droptemp program.
21187
21188 2010-06-29  Bruno Haible  <bruno@clisp.org>
21189
21190         string: Fix syntax error with g++ 2.96.
21191         * lib/string.in.h (__pure__): Remove definition.
21192         (_GL_ATTRIBUTE_PURE): New macro.
21193         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21194         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21195         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21196
21197 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21198
21199         unitypes: Fix bug introduced on 2010-05-18.
21200         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21201
21202 2010-06-22  Eric Blake  <eblake@redhat.com>
21203
21204         memmem: slight optimization
21205         * lib/str-two-way.h (critical_factorization): Update comments.
21206         Reduce work during factorization phase.
21207         Reported by Carlos Bueno <carlos@bueno.org>.
21208
21209 2010-06-21  Bruno Haible  <bruno@clisp.org>
21210
21211         Fix HAVE_CALLOC_POSIX misnomer.
21212         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21213         !HAVE_CALLOC_POSIX.
21214         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21215         HAVE_CALLOC_POSIX.
21216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21217         instead of HAVE_CALLOC_POSIX.
21218         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21219         HAVE_CALLOC_POSIX.
21220
21221         Use modern idiom for calloc() replacement.
21222         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21223         AC_FUNC_CALLOC.
21224         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21225         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21226         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21227         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21228         (gl_REPLACE_CALLOC): New macro.
21229
21230 2010-06-21  Bruno Haible  <bruno@clisp.org>
21231
21232         Fix HAVE_REALLOC_POSIX misnomer.
21233         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21234         !HAVE_REALLOC_POSIX.
21235         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21236         HAVE_REALLOC_POSIX.
21237         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21238         instead of HAVE_REALLOC_POSIX.
21239         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21240         HAVE_REALLOC_POSIX.
21241
21242         Use modern idiom for realloc() replacement.
21243         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21244         AC_FUNC_REALLOC.
21245         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21246         Autoconf's AC_FUNC_REALLOC.
21247         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21248         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21249         (gl_REPLACE_REALLOC): New macro.
21250         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21251
21252 2010-06-21  Bruno Haible  <bruno@clisp.org>
21253
21254         Fix HAVE_MALLOC_POSIX misnomer.
21255         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21256         !HAVE_MALLOC_POSIX.
21257         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21258         HAVE_MALLOC_POSIX.
21259         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21260         instead of HAVE_MALLOC_POSIX.
21261         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21262         HAVE_MALLOC_POSIX.
21263
21264         Use modern idiom for malloc() replacement.
21265         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21266         AC_FUNC_MALLOC.
21267         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21268         Autoconf's AC_FUNC_MALLOC.
21269         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21270         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21271         (gl_REPLACE_MALLOC): New macro.
21272         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21273
21274 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21275
21276         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21277         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21278         This macro takes 3 arguments, not 4.
21279
21280 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21281
21282         ipv6: fix detection under mingw
21283         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21284         in6_addr.
21285
21286 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21287
21288         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21289         that strtod() works when cross-compiling to a glibc version known
21290         to work.
21291
21292 2010-06-15  Bruno Haible  <bruno@clisp.org>
21293
21294         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21295
21296 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21297
21298         select: Correct timeout.
21299         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21300
21301 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21302
21303         git-version-gen: init shell var to avoid env var influence
21304         * build-aux/git-version-gen (v): Init shell var to empty.
21305
21306 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21307
21308         priv-set: Don't assume that priv.h exists merely because getppriv does.
21309         See Jan Andersen's bug report about AIX 5L in
21310         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21311         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21312         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21313         * lib/priv-set.h: Likewise.
21314         * tests/test-priv-set.c: Likewise.
21315
21316 2010-06-13  Bruno Haible  <bruno@clisp.org>
21317
21318         relocatable: Make it easier to test whether to install wrappers.
21319         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21320         RELOCATABLE_VIA_WRAPPER.
21321
21322 2010-06-13  Bruno Haible  <bruno@clisp.org>
21323
21324         gnulib-tool: Display specified modules and dependencies differently.
21325         * gnulib-tool (func_show_module_list): New function.
21326         (func_import, func_create_testdir): Invoke it.
21327         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21328
21329 2010-06-13  Bruno Haible  <bruno@clisp.org>
21330
21331         gnulib-tool: Align code of func_import and func_create_testdir.
21332         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21333         specified_modules.
21334
21335 2010-06-12  Jim Meyering  <meyering@redhat.com>
21336
21337         test-inttostr: avoid spurious failure on Solaris 9
21338         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21339         to accept "%ju".  Reported by Bruno Haible.
21340
21341 2010-06-11  Jim Meyering  <meyering@redhat.com>
21342
21343         test-sys_socket: mark variables as used more readably
21344         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21345         as "used" explicitly via (void) statement casts.  This is more
21346         readable than using them in an artificial return expression.
21347         Suggestion from Bruno Haible.
21348
21349 2010-06-11  Bruno Haible  <bruno@clisp.org>
21350
21351         Avoid some more warnings from "gcc -Wwrite-strings".
21352         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21353         to 'const char *'.
21354         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
21355         * tests/test-c-strcasestr.c (main): Likewise.
21356         * tests/test-mbscasestr1.c (main): Likewise.
21357         * tests/test-mbscasestr2.c (main): Likewise.
21358         * tests/test-memmem.c (main): Likewise.
21359         * tests/test-strstr.c (main): Likewise.
21360         * tests/test-strcasestr.c (main): Likewise.
21361
21362 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21363
21364         init.sh: change framework_failure_ to fail with status 99, not 1
21365         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
21366         automake's parallel-tests rule that this is an unexpected failure,
21367         even if the test is listed in XFAIL_TESTS.
21368
21369 2010-06-11  Jim Meyering  <meyering@redhat.com>
21370
21371         test-inttostr: avoid warnings about 4-6KB literal strings
21372         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
21373         Include "macros.h", for its definition of ASSERT.
21374         (CK): s/assert/ASSERT/
21375         * modules/inttostr-tests (Files): Add macros.h.
21376
21377         init.sh: don't use $ME_ or skip_ before they are defined
21378         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
21379         their first uses.  Also hoist their companions: warn_, fail_,
21380         framework_failure_, $stderr_fileno.  Prompted by a patch from
21381         Stefano Lattarini.
21382
21383         test-sys_socket: avoid set-but-not-used warnings from gcc
21384         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
21385         avoid warning about set-but-not-used variables.
21386
21387         test-xvasprintf: avoid 'const' discard warnings
21388         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
21389         "const" when assigning from literal strings.
21390         (test_xasprintf): Add "void" in function argument list to placate
21391         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
21392
21393         tests: avoid compilation warnings in argmatch and exclude tests...
21394         in packages that define ARGMATCH_DIE_DECL, like coreutils.
21395         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
21396         Since it always exits, declare with the "noreturn" attribute.
21397         * tests/test-argmatch.c: Likewise.
21398
21399         tests: avoid 'const' discard warnings in mbsstr tests
21400         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
21401         * tests/test-mbsstr2.c (main): Likewise.
21402
21403         test-verify: avoid warning from gcc's -Wmissing-declarations
21404         * tests/test-verify.c (function): Declare to be static.
21405
21406         test-inttostr.c: include <string.h> for use of strcmp
21407         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
21408
21409         test-linkat: avoid failed assertion on "other" architectures
21410         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
21411         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
21412         sparc: https://bugs.launchpad.net/bugs/591968
21413
21414 2010-06-11  Jim Meyering  <meyering@redhat.com>
21415
21416         printf.m4: avoid autoconf's "Expanded Before Required" warning
21417         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
21418         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
21419         autoconf warning.
21420
21421 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
21422
21423         Replacement header templates are now named with ".in", not "_".
21424         * doc/gnulib-intro.texi: Correct.
21425
21426 2010-06-10  Jim Meyering  <meyering@redhat.com>
21427
21428         inttostr-tests: depend on snprintf, not snprintf-posix
21429         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
21430         snprintf-posix, to avoid this aclocal failure:
21431           missing file gnulib-tests/vasnprintf.c
21432           configure.ac:45: error: expected source file, required through \
21433           AC_LIBSOURCES, not found
21434
21435 2010-06-10  Jim Meyering  <meyering@redhat.com>
21436
21437         inttostr: add a new function, inttostr, and tests
21438         The namesake function was not available.  The existence of the
21439         template file, inttostr.c makes its addition nontrivial.
21440         * lib/anytostr.c: Rename from inttostr.c.
21441         (anytostr): Rename from inttostr.
21442         * lib/inttostr.c: New file.
21443         * modules/inttostr (Files): Add anytostr.c.
21444         (Makefile.am): Set lib_SOURCES instead of ...
21445         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
21446         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
21447         * lib/offtostr.c: Likewise.
21448         * lib/uinttostr.c: Likewise.
21449         * lib/umaxtostr.c: Likewise.
21450         * modules/inttostr-tests: New file.
21451         * tests/test-inttostr.c: New file.  Test these functions.
21452
21453 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21454             Bruno Haible  <bruno@clisp.org>
21455
21456         Add "Extending Gnulib" chapter to manual.
21457         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21458         chapter.
21459         (Extending Gnulib): New chapter.
21460         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21461         chapter.
21462
21463 2010-06-09  Bruno Haible  <bruno@clisp.org>
21464
21465         Avoid relocwrapper link errors due to gnulib replacement functions.
21466         * lib/areadlink.c: Use the system's malloc, realloc functions.
21467         (areadlink): Set errno to ENOMEM explicitly.
21468         * modules/areadlink (Depends-on): Remove malloc-posix.
21469         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21470
21471 2010-06-09  Bruno Haible  <bruno@clisp.org>
21472
21473         Avoid relocwrapper link errors due to gnulib replacement functions.
21474         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21475         * lib/malloca.c: Likewise.
21476         * lib/relocatable.c: Likewise.
21477         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21478         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21479         * lib/setenv.c: Use the system's malloc, realloc functions.
21480         * lib/strerror.c: Use the system's sprintf function.
21481         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21482
21483 2010-06-04  Bruno Haible  <bruno@clisp.org>
21484
21485         Prefer documented low-level autoconf macro names.
21486         * m4/lib-link.m4: Use m4_translit instead of translit.
21487         * m4/environ.m4: Likewise.
21488         * m4/mathfunc.m4: Likewise.
21489         * m4/onceonly.m4: Likewise.
21490         * m4/stdint.m4: Likewise.
21491         Suggested by Eric Blake.
21492
21493 2010-06-04  Martin Lambers  <marlam@marlam.de>
21494             Bruno Haible  <bruno@clisp.org>
21495
21496         havelib: Allow library names with '+' characters.
21497         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21498         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
21499
21500 2010-06-09  Bruno Haible  <bruno@clisp.org>
21501
21502         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
21503         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
21504         realloc failed.
21505
21506 2010-06-08  Peter Simons  <simons@cryp.to>
21507
21508         maint.mk: make the news-check rule more configurable
21509         * top/maint.mk (news-check-lines-spec): New variable.
21510         (news-check): Use "sed -n 1,10p" in place of "head".
21511
21512 2010-06-07  Jim Meyering  <meyering@redhat.com>
21513
21514         do-release-commit-and-tag: fix typo in --help
21515         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
21516
21517         regex: avoid new dead-code warning with gcc-4.6.0
21518         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
21519         if-block containing a while-loop.  It's been unused for at least
21520         5 years.
21521
21522 2010-06-05  Bruno Haible  <bruno@clisp.org>
21523
21524         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21525         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21526
21527 2010-06-04  Bruno Haible  <bruno@clisp.org>
21528
21529         Update to GNU gettext 0.18.1.
21530         * modules/gettext (configure.ac): Require gettext infrastructure from
21531         version 0.18.1.
21532
21533 2010-06-03  Bruno Haible  <bruno@clisp.org>
21534
21535         Don't use AC_LIBOBJ with file names in subdirectories.
21536         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
21537         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
21538         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
21539         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
21540         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
21541         gl_LIBUNISTRING_LIBSOURCE.
21542         (Makefile.am): Augment lib_SOURCES here, conditionally.
21543         * NEWS: Drop requirement for Automake option 'subdir-objects'.
21544
21545 2010-06-03  Bruno Haible  <bruno@clisp.org>
21546
21547         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
21548         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
21549         expansion does not end with a newline.
21550         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
21551         unnecessary newline.
21552
21553 2010-06-03  Bruno Haible  <bruno@clisp.org>
21554
21555         Reduce dependencies.
21556         * tests/test-quotearg.h: New file, extracted from
21557         tests/test-quotearg.c.
21558         * tests/test-quotearg-simple.c: New file, extracted from
21559         tests/test-quotearg.c.
21560         * tests/test-quotearg.c: Don't include <ctype.h>.
21561         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
21562         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
21563         use_quote_double_quotes, use_quotearg_colon): Moved to
21564         tests/test-quotearg.h.
21565         (results_g, flag_results, custom_quotes, custom_results): Moved
21566         to tests/test-quotearg-simple.c.
21567         (main): Moved the part that does not depend on gettext to
21568         tests/test-quotearg-simple.c. Return 77 if the test cannot be
21569         performed.
21570         * modules/quotearg-simple: New file.
21571         * modules/quotearg-simple-tests: New file.
21572         * modules/quotearg (Depends-on): Add quotearg-simple.
21573         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
21574         (Files): Add tests/test-quotearg.h.
21575         Reported by Paolo Bonzini.
21576
21577 2010-06-03  Bruno Haible  <bruno@clisp.org>
21578
21579         Reduce dependencies.
21580         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
21581
21582 2010-06-03  Bruno Haible  <bruno@clisp.org>
21583
21584         time: Undefine more broken macros.
21585         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
21586         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
21587         Reported by Eric Blake.
21588
21589 2010-06-03  Bruno Haible  <bruno@clisp.org>
21590
21591         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
21592         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
21593         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
21594         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
21595         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
21596         Reported by Ludovic Courtès <ludo@gnu.org>.
21597
21598 2010-06-02  Eric Blake  <eblake@redhat.com>
21599
21600         time: work with mingw + pthreads-win32 library
21601         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
21602         if timespec is defined only in pthread.h.
21603         * modules/time (Makefile.am): Substitute it.
21604         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
21605         <pthread.h>, when needed.
21606         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
21607         from the library.
21608
21609 2010-05-31  Bruno Haible  <bruno@clisp.org>
21610
21611         Avoid expanding two macros in the wrong order.
21612         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
21613         gl_LIBUNISTRING if it is defined.
21614         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
21615         autoconf >= 2.64.
21616         Reported by Ludovic Courtès <ludo@gnu.org>.
21617
21618 2010-05-27  Jim Meyering  <meyering@redhat.com>
21619
21620         maint.mk: also prohibit "#undef" of always-defined symbols
21621         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
21622         Allow more than one space before the symbol name.
21623         (sc_prohibit_always-defined_macros): Use grep's -E, now that
21624         the regexp uses alternation.
21625
21626 2010-05-26  Eric Blake  <eblake@redhat.com>
21627
21628         maint.mk: avoid echo -e
21629         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
21630         Convert all uses of echo -* to printf.
21631         Reported by Matthias Bolte.
21632
21633 2010-05-25  Bruno Haible  <bruno@clisp.org>
21634
21635         Update to GNU gettext 0.18, part 2.
21636         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
21637         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
21638
21639 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21640
21641         Add missing include in test-pwrite.c.
21642         * tests/test-pwrite.c: Include string.h, for strcmp.
21643
21644 2010-05-24  Bruno Haible  <bruno@clisp.org>
21645
21646         * NEWS: Mention requirement for Automake option 'subdir-objects'.
21647
21648 2010-05-24  Bruno Haible  <bruno@clisp.org>
21649
21650         Don't use conversion with transliteration in u{8,16,32}_strcoll.
21651         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
21652         iconveh_error argument.
21653         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
21654         U_STRCONV_TO_LOCALE.
21655         * lib/unistr/u16-strcoll.c: Likewise.
21656         * lib/unistr/u32-strcoll.c: Likewise.
21657         * modules/unistr/u8-strcoll (Depends-on): Add
21658         uniconv/u8-strconv-to-enc, localcharset. Remove
21659         uniconv/u8-strconv-to-locale.
21660         (configure.ac): Bump version number.
21661         * modules/unistr/u16-strcoll (Depends-on): Add
21662         uniconv/u16-strconv-to-enc, localcharset. Remove
21663         uniconv/u16-strconv-to-locale.
21664         (configure.ac): Bump version number.
21665         * modules/unistr/u32-strcoll (Depends-on): Add
21666         uniconv/u32-strconv-to-enc, localcharset. Remove
21667         uniconv/u32-strconv-to-locale.
21668         (configure.ac): Bump version number.
21669
21670 2010-05-24  Bruno Haible  <bruno@clisp.org>
21671
21672         Avoid a test failure on NetBSD 5.0.
21673         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
21674         an iconv() bug.
21675
21676 2010-05-24  Bruno Haible  <bruno@clisp.org>
21677
21678         Adjust #include directive style.
21679         * modules/regex (Includes): Recommend to write <regex.h>.
21680
21681 2010-05-24  Bruno Haible  <bruno@clisp.org>
21682
21683         regex: Don't require alloca.
21684         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
21685         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
21686         only inside if (0).
21687
21688 2010-05-23  Jim Meyering  <meyering@redhat.com>
21689
21690         test-renameat.c: include <sys/stat.h>
21691         * tests/test-renameat.c: Include <sys/stat.h>; required for
21692         definition of S_IS* macros.
21693
21694 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
21695
21696         Update maintainer documentation for 'relocatable-prog' module.
21697         * doc/relocatable-maint.texi: Update.
21698         Comments by Bruno Haible.
21699
21700 2010-05-23  Bruno Haible  <bruno@clisp.org>
21701
21702         git-merge-changelog: Enable --split-merged-entry by default.
21703         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
21704         (usage): Don't mention this option any more.
21705         Reported by Ralf Wildenhues.
21706
21707 2010-05-23  Jim Meyering  <meyering@redhat.com>
21708
21709         test-pwrite: do not leave behind a test file named "out"
21710         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
21711         The trivial-looking use of init.sh is really necessary.
21712         It ensures that the temporary file, "out", is created in
21713         a temporary directory, and removed upon termination.
21714         * tests/test-pwrite.sh: Re-add file.
21715         * modules/pwrite-tests: Reference it.
21716
21717 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21718
21719         Fix output redirection buglet in init.sh.
21720         * tests/init.sh: Fix redirection of stderr.
21721
21722 2010-05-20  Simon Josefsson  <simon@josefsson.org>
21723
21724         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
21725
21726 2010-05-17  Simon Josefsson  <simon@josefsson.org>
21727
21728         * modules/valgrind-tests: New file.
21729         * m4/valgrind-tests.m4: New file.
21730         * doc/valgrind-tests.texi: New file.
21731         * doc/gnulib.texi (Running self-tests under valgrind): New
21732         section.
21733
21734 2010-05-19  Bruno Haible  <bruno@clisp.org>
21735
21736         Clean up dead code in recent commit.
21737         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
21738         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
21739         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
21740         Suggested by Paolo Bonzini.
21741
21742 2010-05-19  Bruno Haible  <bruno@clisp.org>
21743
21744         Avoid valgrind error reports from libunistring.
21745         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
21746         * modules/libunistring (Files): Add it.
21747         * modules/libunistring-optional (Files): Likewise.
21748
21749 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
21750             Bruno Haible  <bruno@clisp.org>
21751
21752         New module 'libunistring-optional'.
21753         * modules/libunistring-optional: New file.
21754         * m4/libunistring-base.m4: New file.
21755         * m4/libunistring-optional.m4: New file.
21756         * lib/unicase.in.h: Renamed from lib/unicase.h.
21757         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
21758         * lib/unictype.in.h: Renamed from lib/unictype.h.
21759         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
21760         * lib/uniname.in.h: Renamed from lib/uniname.h.
21761         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
21762         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
21763         * lib/unistr.in.h: Renamed from lib/unistr.h.
21764         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
21765         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
21766         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
21767         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
21768         gl_LIBUNISTRING. If the library was found, determine the installed
21769         version and set LIBUNISTRING_VERSION.
21770         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
21771         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
21772         handle a configuration option --with-included-libunistring.
21773         * modules/libunistring (Files): Add m4/absolute-header.m4.
21774         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
21775         Add m4/libunistring-base.m4.
21776         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21777         (Makefile.am): Build unicase.h from unicase.in.h.
21778         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
21779         Add m4/libunistring-base.m4.
21780         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21781         (Makefile.am): Build uniconv.h from uniconv.in.h.
21782         * modules/unictype/base (Files): Use unictype.in.h instead of
21783         unictype.h. Add m4/libunistring-base.m4.
21784         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21785         (Makefile.am): Build unictype.h from unictype.in.h.
21786         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
21787         Add m4/libunistring-base.m4.
21788         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21789         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
21790         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
21791         Add m4/libunistring-base.m4.
21792         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21793         (Makefile.am): Build uniname.h from uniname.in.h.
21794         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
21795         Add m4/libunistring-base.m4.
21796         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21797         (Makefile.am): Build uninorm.h from uninorm.in.h.
21798         * modules/unistdio/base (Files): Use unistdio.in.h instead of
21799         unistdio.h. Add m4/libunistring-base.m4.
21800         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21801         (Makefile.am): Build unistdio.h from unistdio.in.h.
21802         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
21803         Add m4/libunistring-base.m4.
21804         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21805         (Makefile.am): Build unistr.h from unistr.in.h.
21806         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
21807         Add m4/libunistring-base.m4.
21808         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21809         (Makefile.am): Build unitypes.h from unitypes.in.h.
21810         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
21811         Add m4/libunistring-base.m4.
21812         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21813         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
21814         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
21815         uniwidth.h. Add m4/libunistring-base.m4.
21816         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21817         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
21818         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
21819         instead of augmenting lib_SOURCES.
21820         * modules/unicase/empty-suffix-context: Likewise.
21821         * modules/unicase/locale-language: Likewise.
21822         * modules/unicase/tolower: Likewise.
21823         * modules/unicase/totitle: Likewise.
21824         * modules/unicase/toupper: Likewise.
21825         * modules/unicase/u8-casecmp: Likewise.
21826         * modules/unicase/u8-casecoll: Likewise.
21827         * modules/unicase/u8-casefold: Likewise.
21828         * modules/unicase/u8-casexfrm: Likewise.
21829         * modules/unicase/u8-ct-casefold: Likewise.
21830         * modules/unicase/u8-ct-tolower: Likewise.
21831         * modules/unicase/u8-ct-totitle: Likewise.
21832         * modules/unicase/u8-ct-toupper: Likewise.
21833         * modules/unicase/u8-is-cased: Likewise.
21834         * modules/unicase/u8-is-casefolded: Likewise.
21835         * modules/unicase/u8-is-lowercase: Likewise.
21836         * modules/unicase/u8-is-titlecase: Likewise.
21837         * modules/unicase/u8-is-uppercase: Likewise.
21838         * modules/unicase/u8-prefix-context: Likewise.
21839         * modules/unicase/u8-suffix-context: Likewise.
21840         * modules/unicase/u8-tolower: Likewise.
21841         * modules/unicase/u8-totitle: Likewise.
21842         * modules/unicase/u8-toupper: Likewise.
21843         * modules/unicase/u16-casecmp: Likewise.
21844         * modules/unicase/u16-casecoll: Likewise.
21845         * modules/unicase/u16-casefold: Likewise.
21846         * modules/unicase/u16-casexfrm: Likewise.
21847         * modules/unicase/u16-ct-casefold: Likewise.
21848         * modules/unicase/u16-ct-tolower: Likewise.
21849         * modules/unicase/u16-ct-totitle: Likewise.
21850         * modules/unicase/u16-ct-toupper: Likewise.
21851         * modules/unicase/u16-is-cased: Likewise.
21852         * modules/unicase/u16-is-casefolded: Likewise.
21853         * modules/unicase/u16-is-lowercase: Likewise.
21854         * modules/unicase/u16-is-titlecase: Likewise.
21855         * modules/unicase/u16-is-uppercase: Likewise.
21856         * modules/unicase/u16-prefix-context: Likewise.
21857         * modules/unicase/u16-suffix-context: Likewise.
21858         * modules/unicase/u16-tolower: Likewise.
21859         * modules/unicase/u16-totitle: Likewise.
21860         * modules/unicase/u16-toupper: Likewise.
21861         * modules/unicase/u32-casecmp: Likewise.
21862         * modules/unicase/u32-casecoll: Likewise.
21863         * modules/unicase/u32-casefold: Likewise.
21864         * modules/unicase/u32-casexfrm: Likewise.
21865         * modules/unicase/u32-ct-casefold: Likewise.
21866         * modules/unicase/u32-ct-tolower: Likewise.
21867         * modules/unicase/u32-ct-totitle: Likewise.
21868         * modules/unicase/u32-ct-toupper: Likewise.
21869         * modules/unicase/u32-is-cased: Likewise.
21870         * modules/unicase/u32-is-casefolded: Likewise.
21871         * modules/unicase/u32-is-lowercase: Likewise.
21872         * modules/unicase/u32-is-titlecase: Likewise.
21873         * modules/unicase/u32-is-uppercase: Likewise.
21874         * modules/unicase/u32-prefix-context: Likewise.
21875         * modules/unicase/u32-suffix-context: Likewise.
21876         * modules/unicase/u32-tolower: Likewise.
21877         * modules/unicase/u32-totitle: Likewise.
21878         * modules/unicase/u32-toupper: Likewise.
21879         * modules/unicase/ulc-casecmp: Likewise.
21880         * modules/unicase/ulc-casecoll: Likewise.
21881         * modules/unicase/ulc-casexfrm: Likewise.
21882         * modules/uniconv/u8-conv-from-enc: Likewise.
21883         * modules/uniconv/u8-conv-to-enc: Likewise.
21884         * modules/uniconv/u8-strconv-from-enc: Likewise.
21885         * modules/uniconv/u8-strconv-from-locale: Likewise.
21886         * modules/uniconv/u8-strconv-to-enc: Likewise.
21887         * modules/uniconv/u8-strconv-to-locale: Likewise.
21888         * modules/uniconv/u16-conv-from-enc: Likewise.
21889         * modules/uniconv/u16-conv-to-enc: Likewise.
21890         * modules/uniconv/u16-strconv-from-enc: Likewise.
21891         * modules/uniconv/u16-strconv-from-locale: Likewise.
21892         * modules/uniconv/u16-strconv-to-enc: Likewise.
21893         * modules/uniconv/u16-strconv-to-locale: Likewise.
21894         * modules/uniconv/u32-conv-from-enc: Likewise.
21895         * modules/uniconv/u32-conv-to-enc: Likewise.
21896         * modules/uniconv/u32-strconv-from-enc: Likewise.
21897         * modules/uniconv/u32-strconv-from-locale: Likewise.
21898         * modules/uniconv/u32-strconv-to-enc: Likewise.
21899         * modules/uniconv/u32-strconv-to-locale: Likewise.
21900         * modules/unictype/bidicategory-byname: Likewise.
21901         * modules/unictype/bidicategory-name: Likewise.
21902         * modules/unictype/bidicategory-of: Likewise.
21903         * modules/unictype/bidicategory-test: Likewise.
21904         * modules/unictype/block-list: Likewise.
21905         * modules/unictype/block-test: Likewise.
21906         * modules/unictype/category-C: Likewise.
21907         * modules/unictype/category-Cc: Likewise.
21908         * modules/unictype/category-Cf: Likewise.
21909         * modules/unictype/category-Cn: Likewise.
21910         * modules/unictype/category-Co: Likewise.
21911         * modules/unictype/category-Cs: Likewise.
21912         * modules/unictype/category-L: Likewise.
21913         * modules/unictype/category-Ll: Likewise.
21914         * modules/unictype/category-Lm: Likewise.
21915         * modules/unictype/category-Lo: Likewise.
21916         * modules/unictype/category-Lt: Likewise.
21917         * modules/unictype/category-Lu: Likewise.
21918         * modules/unictype/category-M: Likewise.
21919         * modules/unictype/category-Mc: Likewise.
21920         * modules/unictype/category-Me: Likewise.
21921         * modules/unictype/category-Mn: Likewise.
21922         * modules/unictype/category-N: Likewise.
21923         * modules/unictype/category-Nd: Likewise.
21924         * modules/unictype/category-Nl: Likewise.
21925         * modules/unictype/category-No: Likewise.
21926         * modules/unictype/category-P: Likewise.
21927         * modules/unictype/category-Pc: Likewise.
21928         * modules/unictype/category-Pd: Likewise.
21929         * modules/unictype/category-Pe: Likewise.
21930         * modules/unictype/category-Pf: Likewise.
21931         * modules/unictype/category-Pi: Likewise.
21932         * modules/unictype/category-Po: Likewise.
21933         * modules/unictype/category-Ps: Likewise.
21934         * modules/unictype/category-S: Likewise.
21935         * modules/unictype/category-Sc: Likewise.
21936         * modules/unictype/category-Sk: Likewise.
21937         * modules/unictype/category-Sm: Likewise.
21938         * modules/unictype/category-So: Likewise.
21939         * modules/unictype/category-Z: Likewise.
21940         * modules/unictype/category-Zl: Likewise.
21941         * modules/unictype/category-Zp: Likewise.
21942         * modules/unictype/category-Zs: Likewise.
21943         * modules/unictype/category-and: Likewise.
21944         * modules/unictype/category-and-not: Likewise.
21945         * modules/unictype/category-byname: Likewise.
21946         * modules/unictype/category-name: Likewise.
21947         * modules/unictype/category-none: Likewise.
21948         * modules/unictype/category-of: Likewise.
21949         * modules/unictype/category-or: Likewise.
21950         * modules/unictype/category-test: Likewise.
21951         * modules/unictype/combining-class: Likewise.
21952         * modules/unictype/ctype-alnum: Likewise.
21953         * modules/unictype/ctype-alpha: Likewise.
21954         * modules/unictype/ctype-blank: Likewise.
21955         * modules/unictype/ctype-cntrl: Likewise.
21956         * modules/unictype/ctype-digit: Likewise.
21957         * modules/unictype/ctype-graph: Likewise.
21958         * modules/unictype/ctype-lower: Likewise.
21959         * modules/unictype/ctype-print: Likewise.
21960         * modules/unictype/ctype-punct: Likewise.
21961         * modules/unictype/ctype-space: Likewise.
21962         * modules/unictype/ctype-upper: Likewise.
21963         * modules/unictype/ctype-xdigit: Likewise.
21964         * modules/unictype/decimal-digit: Likewise.
21965         * modules/unictype/digit: Likewise.
21966         * modules/unictype/mirror: Likewise.
21967         * modules/unictype/numeric: Likewise.
21968         * modules/unictype/property-alphabetic: Likewise.
21969         * modules/unictype/property-ascii-hex-digit: Likewise.
21970         * modules/unictype/property-bidi-arabic-digit: Likewise.
21971         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
21972         * modules/unictype/property-bidi-block-separator: Likewise.
21973         * modules/unictype/property-bidi-boundary-neutral: Likewise.
21974         * modules/unictype/property-bidi-common-separator: Likewise.
21975         * modules/unictype/property-bidi-control: Likewise.
21976         * modules/unictype/property-bidi-embedding-or-override: Likewise.
21977         * modules/unictype/property-bidi-eur-num-separator: Likewise.
21978         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
21979         * modules/unictype/property-bidi-european-digit: Likewise.
21980         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
21981         * modules/unictype/property-bidi-left-to-right: Likewise.
21982         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
21983         * modules/unictype/property-bidi-other-neutral: Likewise.
21984         * modules/unictype/property-bidi-pdf: Likewise.
21985         * modules/unictype/property-bidi-segment-separator: Likewise.
21986         * modules/unictype/property-bidi-whitespace: Likewise.
21987         * modules/unictype/property-byname: Likewise.
21988         * modules/unictype/property-combining: Likewise.
21989         * modules/unictype/property-composite: Likewise.
21990         * modules/unictype/property-currency-symbol: Likewise.
21991         * modules/unictype/property-dash: Likewise.
21992         * modules/unictype/property-decimal-digit: Likewise.
21993         * modules/unictype/property-default-ignorable-code-point: Likewise.
21994         * modules/unictype/property-deprecated: Likewise.
21995         * modules/unictype/property-diacritic: Likewise.
21996         * modules/unictype/property-extender: Likewise.
21997         * modules/unictype/property-format-control: Likewise.
21998         * modules/unictype/property-grapheme-base: Likewise.
21999         * modules/unictype/property-grapheme-extend: Likewise.
22000         * modules/unictype/property-grapheme-link: Likewise.
22001         * modules/unictype/property-hex-digit: Likewise.
22002         * modules/unictype/property-hyphen: Likewise.
22003         * modules/unictype/property-id-continue: Likewise.
22004         * modules/unictype/property-id-start: Likewise.
22005         * modules/unictype/property-ideographic: Likewise.
22006         * modules/unictype/property-ids-binary-operator: Likewise.
22007         * modules/unictype/property-ids-trinary-operator: Likewise.
22008         * modules/unictype/property-ignorable-control: Likewise.
22009         * modules/unictype/property-iso-control: Likewise.
22010         * modules/unictype/property-join-control: Likewise.
22011         * modules/unictype/property-left-of-pair: Likewise.
22012         * modules/unictype/property-line-separator: Likewise.
22013         * modules/unictype/property-logical-order-exception: Likewise.
22014         * modules/unictype/property-lowercase: Likewise.
22015         * modules/unictype/property-math: Likewise.
22016         * modules/unictype/property-non-break: Likewise.
22017         * modules/unictype/property-not-a-character: Likewise.
22018         * modules/unictype/property-numeric: Likewise.
22019         * modules/unictype/property-other-alphabetic: Likewise.
22020         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22021         * modules/unictype/property-other-grapheme-extend: Likewise.
22022         * modules/unictype/property-other-id-continue: Likewise.
22023         * modules/unictype/property-other-id-start: Likewise.
22024         * modules/unictype/property-other-lowercase: Likewise.
22025         * modules/unictype/property-other-math: Likewise.
22026         * modules/unictype/property-other-uppercase: Likewise.
22027         * modules/unictype/property-paired-punctuation: Likewise.
22028         * modules/unictype/property-paragraph-separator: Likewise.
22029         * modules/unictype/property-pattern-syntax: Likewise.
22030         * modules/unictype/property-pattern-white-space: Likewise.
22031         * modules/unictype/property-private-use: Likewise.
22032         * modules/unictype/property-punctuation: Likewise.
22033         * modules/unictype/property-quotation-mark: Likewise.
22034         * modules/unictype/property-radical: Likewise.
22035         * modules/unictype/property-sentence-terminal: Likewise.
22036         * modules/unictype/property-soft-dotted: Likewise.
22037         * modules/unictype/property-space: Likewise.
22038         * modules/unictype/property-terminal-punctuation: Likewise.
22039         * modules/unictype/property-test: Likewise.
22040         * modules/unictype/property-titlecase: Likewise.
22041         * modules/unictype/property-unassigned-code-value: Likewise.
22042         * modules/unictype/property-unified-ideograph: Likewise.
22043         * modules/unictype/property-uppercase: Likewise.
22044         * modules/unictype/property-variation-selector: Likewise.
22045         * modules/unictype/property-white-space: Likewise.
22046         * modules/unictype/property-xid-continue: Likewise.
22047         * modules/unictype/property-xid-start: Likewise.
22048         * modules/unictype/property-zero-width: Likewise.
22049         * modules/unictype/scripts: Likewise.
22050         * modules/unictype/syntax-c-ident: Likewise.
22051         * modules/unictype/syntax-c-whitespace: Likewise.
22052         * modules/unictype/syntax-java-ident: Likewise.
22053         * modules/unictype/syntax-java-whitespace: Likewise.
22054         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22055         * modules/unilbrk/u8-width-linebreaks: Likewise.
22056         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22057         * modules/unilbrk/u16-width-linebreaks: Likewise.
22058         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22059         * modules/unilbrk/u32-width-linebreaks: Likewise.
22060         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22061         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22062         * modules/uniname/uniname: Likewise.
22063         * modules/uninorm/canonical-decomposition: Likewise.
22064         * modules/uninorm/composition: Likewise.
22065         * modules/uninorm/decomposing-form: Likewise.
22066         * modules/uninorm/decomposition: Likewise.
22067         * modules/uninorm/filter: Likewise.
22068         * modules/uninorm/nfc: Likewise.
22069         * modules/uninorm/nfd: Likewise.
22070         * modules/uninorm/nfkc: Likewise.
22071         * modules/uninorm/nfkd: Likewise.
22072         * modules/uninorm/u8-normalize: Likewise.
22073         * modules/uninorm/u8-normcmp: Likewise.
22074         * modules/uninorm/u8-normcoll: Likewise.
22075         * modules/uninorm/u8-normxfrm: Likewise.
22076         * modules/uninorm/u16-normalize: Likewise.
22077         * modules/uninorm/u16-normcmp: Likewise.
22078         * modules/uninorm/u16-normcoll: Likewise.
22079         * modules/uninorm/u16-normxfrm: Likewise.
22080         * modules/uninorm/u32-normalize: Likewise.
22081         * modules/uninorm/u32-normcmp: Likewise.
22082         * modules/uninorm/u32-normcoll: Likewise.
22083         * modules/uninorm/u32-normxfrm: Likewise.
22084         * modules/unistdio/u8-asnprintf: Likewise.
22085         * modules/unistdio/u8-asprintf: Likewise.
22086         * modules/unistdio/u8-snprintf: Likewise.
22087         * modules/unistdio/u8-sprintf: Likewise.
22088         * modules/unistdio/u8-u8-asnprintf: Likewise.
22089         * modules/unistdio/u8-u8-asprintf: Likewise.
22090         * modules/unistdio/u8-u8-snprintf: Likewise.
22091         * modules/unistdio/u8-u8-sprintf: Likewise.
22092         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22093         * modules/unistdio/u8-u8-vasprintf: Likewise.
22094         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22095         * modules/unistdio/u8-u8-vsprintf: Likewise.
22096         * modules/unistdio/u8-vasnprintf: Likewise.
22097         * modules/unistdio/u8-vasprintf: Likewise.
22098         * modules/unistdio/u8-vsnprintf: Likewise.
22099         * modules/unistdio/u8-vsprintf: Likewise.
22100         * modules/unistdio/u16-asnprintf: Likewise.
22101         * modules/unistdio/u16-asprintf: Likewise.
22102         * modules/unistdio/u16-snprintf: Likewise.
22103         * modules/unistdio/u16-sprintf: Likewise.
22104         * modules/unistdio/u16-u16-asnprintf: Likewise.
22105         * modules/unistdio/u16-u16-asprintf: Likewise.
22106         * modules/unistdio/u16-u16-snprintf: Likewise.
22107         * modules/unistdio/u16-u16-sprintf: Likewise.
22108         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22109         * modules/unistdio/u16-u16-vasprintf: Likewise.
22110         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22111         * modules/unistdio/u16-u16-vsprintf: Likewise.
22112         * modules/unistdio/u16-vasnprintf: Likewise.
22113         * modules/unistdio/u16-vasprintf: Likewise.
22114         * modules/unistdio/u16-vsnprintf: Likewise.
22115         * modules/unistdio/u16-vsprintf: Likewise.
22116         * modules/unistdio/u32-asnprintf: Likewise.
22117         * modules/unistdio/u32-asprintf: Likewise.
22118         * modules/unistdio/u32-snprintf: Likewise.
22119         * modules/unistdio/u32-sprintf: Likewise.
22120         * modules/unistdio/u32-u32-asnprintf: Likewise.
22121         * modules/unistdio/u32-u32-asprintf: Likewise.
22122         * modules/unistdio/u32-u32-snprintf: Likewise.
22123         * modules/unistdio/u32-u32-sprintf: Likewise.
22124         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22125         * modules/unistdio/u32-u32-vasprintf: Likewise.
22126         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22127         * modules/unistdio/u32-u32-vsprintf: Likewise.
22128         * modules/unistdio/u32-vasnprintf: Likewise.
22129         * modules/unistdio/u32-vasprintf: Likewise.
22130         * modules/unistdio/u32-vsnprintf: Likewise.
22131         * modules/unistdio/u32-vsprintf: Likewise.
22132         * modules/unistdio/ulc-asnprintf: Likewise.
22133         * modules/unistdio/ulc-asprintf: Likewise.
22134         * modules/unistdio/ulc-fprintf: Likewise.
22135         * modules/unistdio/ulc-snprintf: Likewise.
22136         * modules/unistdio/ulc-sprintf: Likewise.
22137         * modules/unistdio/ulc-vasnprintf: Likewise.
22138         * modules/unistdio/ulc-vasprintf: Likewise.
22139         * modules/unistdio/ulc-vfprintf: Likewise.
22140         * modules/unistdio/ulc-vsnprintf: Likewise.
22141         * modules/unistdio/ulc-vsprintf: Likewise.
22142         * modules/unistr/u8-check: Likewise.
22143         * modules/unistr/u8-chr: Likewise.
22144         * modules/unistr/u8-cmp: Likewise.
22145         * modules/unistr/u8-cmp2: Likewise.
22146         * modules/unistr/u8-cpy: Likewise.
22147         * modules/unistr/u8-cpy-alloc: Likewise.
22148         * modules/unistr/u8-endswith: Likewise.
22149         * modules/unistr/u8-mblen: Likewise.
22150         * modules/unistr/u8-mbsnlen: Likewise.
22151         * modules/unistr/u8-mbtouc: Likewise.
22152         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22153         * modules/unistr/u8-mbtoucr: Likewise.
22154         * modules/unistr/u8-move: Likewise.
22155         * modules/unistr/u8-next: Likewise.
22156         * modules/unistr/u8-prev: Likewise.
22157         * modules/unistr/u8-set: Likewise.
22158         * modules/unistr/u8-startswith: Likewise.
22159         * modules/unistr/u8-stpcpy: Likewise.
22160         * modules/unistr/u8-stpncpy: Likewise.
22161         * modules/unistr/u8-strcat: Likewise.
22162         * modules/unistr/u8-strchr: Likewise.
22163         * modules/unistr/u8-strcmp: Likewise.
22164         * modules/unistr/u8-strcoll: Likewise.
22165         * modules/unistr/u8-strcpy: Likewise.
22166         * modules/unistr/u8-strcspn: Likewise.
22167         * modules/unistr/u8-strdup: Likewise.
22168         * modules/unistr/u8-strlen: Likewise.
22169         * modules/unistr/u8-strmblen: Likewise.
22170         * modules/unistr/u8-strmbtouc: Likewise.
22171         * modules/unistr/u8-strncat: Likewise.
22172         * modules/unistr/u8-strncmp: Likewise.
22173         * modules/unistr/u8-strncpy: Likewise.
22174         * modules/unistr/u8-strnlen: Likewise.
22175         * modules/unistr/u8-strpbrk: Likewise.
22176         * modules/unistr/u8-strrchr: Likewise.
22177         * modules/unistr/u8-strspn: Likewise.
22178         * modules/unistr/u8-strstr: Likewise.
22179         * modules/unistr/u8-strtok: Likewise.
22180         * modules/unistr/u8-to-u16: Likewise.
22181         * modules/unistr/u8-to-u32: Likewise.
22182         * modules/unistr/u8-uctomb: Likewise.
22183         * modules/unistr/u16-check: Likewise.
22184         * modules/unistr/u16-chr: Likewise.
22185         * modules/unistr/u16-cmp: Likewise.
22186         * modules/unistr/u16-cmp2: Likewise.
22187         * modules/unistr/u16-cpy: Likewise.
22188         * modules/unistr/u16-cpy-alloc: Likewise.
22189         * modules/unistr/u16-endswith: Likewise.
22190         * modules/unistr/u16-mblen: Likewise.
22191         * modules/unistr/u16-mbsnlen: Likewise.
22192         * modules/unistr/u16-mbtouc: Likewise.
22193         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22194         * modules/unistr/u16-mbtoucr: Likewise.
22195         * modules/unistr/u16-move: Likewise.
22196         * modules/unistr/u16-next: Likewise.
22197         * modules/unistr/u16-prev: Likewise.
22198         * modules/unistr/u16-set: Likewise.
22199         * modules/unistr/u16-startswith: Likewise.
22200         * modules/unistr/u16-stpcpy: Likewise.
22201         * modules/unistr/u16-stpncpy: Likewise.
22202         * modules/unistr/u16-strcat: Likewise.
22203         * modules/unistr/u16-strchr: Likewise.
22204         * modules/unistr/u16-strcmp: Likewise.
22205         * modules/unistr/u16-strcoll: Likewise.
22206         * modules/unistr/u16-strcpy: Likewise.
22207         * modules/unistr/u16-strcspn: Likewise.
22208         * modules/unistr/u16-strdup: Likewise.
22209         * modules/unistr/u16-strlen: Likewise.
22210         * modules/unistr/u16-strmblen: Likewise.
22211         * modules/unistr/u16-strmbtouc: Likewise.
22212         * modules/unistr/u16-strncat: Likewise.
22213         * modules/unistr/u16-strncmp: Likewise.
22214         * modules/unistr/u16-strncpy: Likewise.
22215         * modules/unistr/u16-strnlen: Likewise.
22216         * modules/unistr/u16-strpbrk: Likewise.
22217         * modules/unistr/u16-strrchr: Likewise.
22218         * modules/unistr/u16-strspn: Likewise.
22219         * modules/unistr/u16-strstr: Likewise.
22220         * modules/unistr/u16-strtok: Likewise.
22221         * modules/unistr/u16-to-u32: Likewise.
22222         * modules/unistr/u16-to-u8: Likewise.
22223         * modules/unistr/u16-uctomb: Likewise.
22224         * modules/unistr/u32-check: Likewise.
22225         * modules/unistr/u32-chr: Likewise.
22226         * modules/unistr/u32-cmp: Likewise.
22227         * modules/unistr/u32-cmp2: Likewise.
22228         * modules/unistr/u32-cpy: Likewise.
22229         * modules/unistr/u32-cpy-alloc: Likewise.
22230         * modules/unistr/u32-endswith: Likewise.
22231         * modules/unistr/u32-mblen: Likewise.
22232         * modules/unistr/u32-mbsnlen: Likewise.
22233         * modules/unistr/u32-mbtouc: Likewise.
22234         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22235         * modules/unistr/u32-mbtoucr: Likewise.
22236         * modules/unistr/u32-move: Likewise.
22237         * modules/unistr/u32-next: Likewise.
22238         * modules/unistr/u32-prev: Likewise.
22239         * modules/unistr/u32-set: Likewise.
22240         * modules/unistr/u32-startswith: Likewise.
22241         * modules/unistr/u32-stpcpy: Likewise.
22242         * modules/unistr/u32-stpncpy: Likewise.
22243         * modules/unistr/u32-strcat: Likewise.
22244         * modules/unistr/u32-strchr: Likewise.
22245         * modules/unistr/u32-strcmp: Likewise.
22246         * modules/unistr/u32-strcoll: Likewise.
22247         * modules/unistr/u32-strcpy: Likewise.
22248         * modules/unistr/u32-strcspn: Likewise.
22249         * modules/unistr/u32-strdup: Likewise.
22250         * modules/unistr/u32-strlen: Likewise.
22251         * modules/unistr/u32-strmblen: Likewise.
22252         * modules/unistr/u32-strmbtouc: Likewise.
22253         * modules/unistr/u32-strncat: Likewise.
22254         * modules/unistr/u32-strncmp: Likewise.
22255         * modules/unistr/u32-strncpy: Likewise.
22256         * modules/unistr/u32-strnlen: Likewise.
22257         * modules/unistr/u32-strpbrk: Likewise.
22258         * modules/unistr/u32-strrchr: Likewise.
22259         * modules/unistr/u32-strspn: Likewise.
22260         * modules/unistr/u32-strstr: Likewise.
22261         * modules/unistr/u32-strtok: Likewise.
22262         * modules/unistr/u32-to-u16: Likewise.
22263         * modules/unistr/u32-to-u8: Likewise.
22264         * modules/unistr/u32-uctomb: Likewise.
22265         * modules/uniwbrk/u8-wordbreaks: Likewise.
22266         * modules/uniwbrk/u16-wordbreaks: Likewise.
22267         * modules/uniwbrk/u32-wordbreaks: Likewise.
22268         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22269         * modules/uniwbrk/wordbreak-property: Likewise.
22270         * modules/uniwidth/u8-strwidth: Likewise.
22271         * modules/uniwidth/u8-width: Likewise.
22272         * modules/uniwidth/u16-strwidth: Likewise.
22273         * modules/uniwidth/u16-width: Likewise.
22274         * modules/uniwidth/u32-strwidth: Likewise.
22275         * modules/uniwidth/u32-width: Likewise.
22276         * modules/uniwidth/width: Likewise.
22277         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22278         with $(LIBUNISTRING).
22279         * modules/unicase/ignorable-tests: Likewise.
22280         * modules/unicase/locale-language-tests: Likewise.
22281         * modules/unicase/tolower-tests: Likewise.
22282         * modules/unicase/totitle-tests: Likewise.
22283         * modules/unicase/toupper-tests: Likewise.
22284         * modules/unicase/u8-casecmp-tests: Likewise.
22285         * modules/unicase/u8-casecoll-tests: Likewise.
22286         * modules/unicase/u8-casefold-tests: Likewise.
22287         * modules/unicase/u8-is-cased-tests: Likewise.
22288         * modules/unicase/u8-is-casefolded-tests: Likewise.
22289         * modules/unicase/u8-is-lowercase-tests: Likewise.
22290         * modules/unicase/u8-is-titlecase-tests: Likewise.
22291         * modules/unicase/u8-is-uppercase-tests: Likewise.
22292         * modules/unicase/u8-tolower-tests: Likewise.
22293         * modules/unicase/u8-totitle-tests: Likewise.
22294         * modules/unicase/u8-toupper-tests: Likewise.
22295         * modules/unicase/u16-casecmp-tests: Likewise.
22296         * modules/unicase/u16-casecoll-tests: Likewise.
22297         * modules/unicase/u16-casefold-tests: Likewise.
22298         * modules/unicase/u16-is-cased-tests: Likewise.
22299         * modules/unicase/u16-is-casefolded-tests: Likewise.
22300         * modules/unicase/u16-is-lowercase-tests: Likewise.
22301         * modules/unicase/u16-is-titlecase-tests: Likewise.
22302         * modules/unicase/u16-is-uppercase-tests: Likewise.
22303         * modules/unicase/u16-tolower-tests: Likewise.
22304         * modules/unicase/u16-totitle-tests: Likewise.
22305         * modules/unicase/u16-toupper-tests: Likewise.
22306         * modules/unicase/u32-casecmp-tests: Likewise.
22307         * modules/unicase/u32-casecoll-tests: Likewise.
22308         * modules/unicase/u32-casefold-tests: Likewise.
22309         * modules/unicase/u32-is-cased-tests: Likewise.
22310         * modules/unicase/u32-is-casefolded-tests: Likewise.
22311         * modules/unicase/u32-is-lowercase-tests: Likewise.
22312         * modules/unicase/u32-is-titlecase-tests: Likewise.
22313         * modules/unicase/u32-is-uppercase-tests: Likewise.
22314         * modules/unicase/u32-tolower-tests: Likewise.
22315         * modules/unicase/u32-totitle-tests: Likewise.
22316         * modules/unicase/u32-toupper-tests: Likewise.
22317         * modules/unicase/ulc-casecmp-tests: Likewise.
22318         * modules/unicase/ulc-casecoll-tests: Likewise.
22319         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22320         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22321         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22322         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22323         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22324         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22325         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22326         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22327         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22328         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22329         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22330         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22331         * modules/unictype/bidicategory-byname-tests: Likewise.
22332         * modules/unictype/bidicategory-name-tests: Likewise.
22333         * modules/unictype/bidicategory-of-tests: Likewise.
22334         * modules/unictype/bidicategory-test-tests: Likewise.
22335         * modules/unictype/block-list-tests: Likewise.
22336         * modules/unictype/block-of-tests: Likewise.
22337         * modules/unictype/block-test-tests: Likewise.
22338         * modules/unictype/category-C-tests: Likewise.
22339         * modules/unictype/category-Cc-tests: Likewise.
22340         * modules/unictype/category-Cf-tests: Likewise.
22341         * modules/unictype/category-Cn-tests: Likewise.
22342         * modules/unictype/category-Co-tests: Likewise.
22343         * modules/unictype/category-Cs-tests: Likewise.
22344         * modules/unictype/category-L-tests: Likewise.
22345         * modules/unictype/category-Ll-tests: Likewise.
22346         * modules/unictype/category-Lm-tests: Likewise.
22347         * modules/unictype/category-Lo-tests: Likewise.
22348         * modules/unictype/category-Lt-tests: Likewise.
22349         * modules/unictype/category-Lu-tests: Likewise.
22350         * modules/unictype/category-M-tests: Likewise.
22351         * modules/unictype/category-Mc-tests: Likewise.
22352         * modules/unictype/category-Me-tests: Likewise.
22353         * modules/unictype/category-Mn-tests: Likewise.
22354         * modules/unictype/category-N-tests: Likewise.
22355         * modules/unictype/category-Nd-tests: Likewise.
22356         * modules/unictype/category-Nl-tests: Likewise.
22357         * modules/unictype/category-No-tests: Likewise.
22358         * modules/unictype/category-P-tests: Likewise.
22359         * modules/unictype/category-Pc-tests: Likewise.
22360         * modules/unictype/category-Pd-tests: Likewise.
22361         * modules/unictype/category-Pe-tests: Likewise.
22362         * modules/unictype/category-Pf-tests: Likewise.
22363         * modules/unictype/category-Pi-tests: Likewise.
22364         * modules/unictype/category-Po-tests: Likewise.
22365         * modules/unictype/category-Ps-tests: Likewise.
22366         * modules/unictype/category-S-tests: Likewise.
22367         * modules/unictype/category-Sc-tests: Likewise.
22368         * modules/unictype/category-Sk-tests: Likewise.
22369         * modules/unictype/category-Sm-tests: Likewise.
22370         * modules/unictype/category-So-tests: Likewise.
22371         * modules/unictype/category-Z-tests: Likewise.
22372         * modules/unictype/category-Zl-tests: Likewise.
22373         * modules/unictype/category-Zp-tests: Likewise.
22374         * modules/unictype/category-Zs-tests: Likewise.
22375         * modules/unictype/category-and-not-tests: Likewise.
22376         * modules/unictype/category-and-tests: Likewise.
22377         * modules/unictype/category-byname-tests: Likewise.
22378         * modules/unictype/category-name-tests: Likewise.
22379         * modules/unictype/category-none-tests: Likewise.
22380         * modules/unictype/category-of-tests: Likewise.
22381         * modules/unictype/category-or-tests: Likewise.
22382         * modules/unictype/category-test-withtable-tests: Likewise.
22383         * modules/unictype/combining-class-tests: Likewise.
22384         * modules/unictype/ctype-alnum-tests: Likewise.
22385         * modules/unictype/ctype-alpha-tests: Likewise.
22386         * modules/unictype/ctype-blank-tests: Likewise.
22387         * modules/unictype/ctype-cntrl-tests: Likewise.
22388         * modules/unictype/ctype-digit-tests: Likewise.
22389         * modules/unictype/ctype-graph-tests: Likewise.
22390         * modules/unictype/ctype-lower-tests: Likewise.
22391         * modules/unictype/ctype-print-tests: Likewise.
22392         * modules/unictype/ctype-punct-tests: Likewise.
22393         * modules/unictype/ctype-space-tests: Likewise.
22394         * modules/unictype/ctype-upper-tests: Likewise.
22395         * modules/unictype/ctype-xdigit-tests: Likewise.
22396         * modules/unictype/decimal-digit-tests: Likewise.
22397         * modules/unictype/digit-tests: Likewise.
22398         * modules/unictype/mirror-tests: Likewise.
22399         * modules/unictype/numeric-tests: Likewise.
22400         * modules/unictype/property-alphabetic-tests: Likewise.
22401         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
22402         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
22403         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
22404         * modules/unictype/property-bidi-block-separator-tests: Likewise.
22405         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
22406         * modules/unictype/property-bidi-common-separator-tests: Likewise.
22407         * modules/unictype/property-bidi-control-tests: Likewise.
22408         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
22409         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
22410         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
22411         * modules/unictype/property-bidi-european-digit-tests: Likewise.
22412         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
22413         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
22414         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
22415         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
22416         * modules/unictype/property-bidi-pdf-tests: Likewise.
22417         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
22418         * modules/unictype/property-bidi-whitespace-tests: Likewise.
22419         * modules/unictype/property-byname-tests: Likewise.
22420         * modules/unictype/property-combining-tests: Likewise.
22421         * modules/unictype/property-composite-tests: Likewise.
22422         * modules/unictype/property-currency-symbol-tests: Likewise.
22423         * modules/unictype/property-dash-tests: Likewise.
22424         * modules/unictype/property-decimal-digit-tests: Likewise.
22425         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
22426         * modules/unictype/property-deprecated-tests: Likewise.
22427         * modules/unictype/property-diacritic-tests: Likewise.
22428         * modules/unictype/property-extender-tests: Likewise.
22429         * modules/unictype/property-format-control-tests: Likewise.
22430         * modules/unictype/property-grapheme-base-tests: Likewise.
22431         * modules/unictype/property-grapheme-extend-tests: Likewise.
22432         * modules/unictype/property-grapheme-link-tests: Likewise.
22433         * modules/unictype/property-hex-digit-tests: Likewise.
22434         * modules/unictype/property-hyphen-tests: Likewise.
22435         * modules/unictype/property-id-continue-tests: Likewise.
22436         * modules/unictype/property-id-start-tests: Likewise.
22437         * modules/unictype/property-ideographic-tests: Likewise.
22438         * modules/unictype/property-ids-binary-operator-tests: Likewise.
22439         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
22440         * modules/unictype/property-ignorable-control-tests: Likewise.
22441         * modules/unictype/property-iso-control-tests: Likewise.
22442         * modules/unictype/property-join-control-tests: Likewise.
22443         * modules/unictype/property-left-of-pair-tests: Likewise.
22444         * modules/unictype/property-line-separator-tests: Likewise.
22445         * modules/unictype/property-logical-order-exception-tests: Likewise.
22446         * modules/unictype/property-lowercase-tests: Likewise.
22447         * modules/unictype/property-math-tests: Likewise.
22448         * modules/unictype/property-non-break-tests: Likewise.
22449         * modules/unictype/property-not-a-character-tests: Likewise.
22450         * modules/unictype/property-numeric-tests: Likewise.
22451         * modules/unictype/property-other-alphabetic-tests: Likewise.
22452         * modules/unictype/property-other-default-ignorable-code-point-tests:
22453         Likewise.
22454         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22455         * modules/unictype/property-other-id-continue-tests: Likewise.
22456         * modules/unictype/property-other-id-start-tests: Likewise.
22457         * modules/unictype/property-other-lowercase-tests: Likewise.
22458         * modules/unictype/property-other-math-tests: Likewise.
22459         * modules/unictype/property-other-uppercase-tests: Likewise.
22460         * modules/unictype/property-paired-punctuation-tests: Likewise.
22461         * modules/unictype/property-paragraph-separator-tests: Likewise.
22462         * modules/unictype/property-pattern-syntax-tests: Likewise.
22463         * modules/unictype/property-pattern-white-space-tests: Likewise.
22464         * modules/unictype/property-private-use-tests: Likewise.
22465         * modules/unictype/property-punctuation-tests: Likewise.
22466         * modules/unictype/property-quotation-mark-tests: Likewise.
22467         * modules/unictype/property-radical-tests: Likewise.
22468         * modules/unictype/property-sentence-terminal-tests: Likewise.
22469         * modules/unictype/property-soft-dotted-tests: Likewise.
22470         * modules/unictype/property-space-tests: Likewise.
22471         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22472         * modules/unictype/property-test-tests: Likewise.
22473         * modules/unictype/property-titlecase-tests: Likewise.
22474         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22475         * modules/unictype/property-unified-ideograph-tests: Likewise.
22476         * modules/unictype/property-uppercase-tests: Likewise.
22477         * modules/unictype/property-variation-selector-tests: Likewise.
22478         * modules/unictype/property-white-space-tests: Likewise.
22479         * modules/unictype/property-xid-continue-tests: Likewise.
22480         * modules/unictype/property-xid-start-tests: Likewise.
22481         * modules/unictype/property-zero-width-tests: Likewise.
22482         * modules/unictype/scripts-tests: Likewise.
22483         * modules/unictype/syntax-c-ident-tests: Likewise.
22484         * modules/unictype/syntax-c-whitespace-tests: Likewise.
22485         * modules/unictype/syntax-java-ident-tests: Likewise.
22486         * modules/unictype/syntax-java-whitespace-tests: Likewise.
22487         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
22488         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
22489         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
22490         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
22491         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
22492         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
22493         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
22494         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
22495         * modules/uniname/uniname-tests: Likewise.
22496         * modules/uninorm/canonical-decomposition-tests: Likewise.
22497         * modules/uninorm/compat-decomposition-tests: Likewise.
22498         * modules/uninorm/composition-tests: Likewise.
22499         * modules/uninorm/decomposing-form-tests: Likewise.
22500         * modules/uninorm/decomposition-tests: Likewise.
22501         * modules/uninorm/filter-tests: Likewise.
22502         * modules/uninorm/nfc-tests: Likewise.
22503         * modules/uninorm/nfd-tests: Likewise.
22504         * modules/uninorm/nfkc-tests: Likewise.
22505         * modules/uninorm/nfkd-tests: Likewise.
22506         * modules/uninorm/u8-normcmp-tests: Likewise.
22507         * modules/uninorm/u8-normcoll-tests: Likewise.
22508         * modules/uninorm/u16-normcmp-tests: Likewise.
22509         * modules/uninorm/u16-normcoll-tests: Likewise.
22510         * modules/uninorm/u32-normcmp-tests: Likewise.
22511         * modules/uninorm/u32-normcoll-tests: Likewise.
22512         * modules/unistdio/u8-asnprintf-tests: Likewise.
22513         * modules/unistdio/u8-vasnprintf-tests: Likewise.
22514         * modules/unistdio/u8-vasprintf-tests: Likewise.
22515         * modules/unistdio/u8-vsnprintf-tests: Likewise.
22516         * modules/unistdio/u8-vsprintf-tests: Likewise.
22517         * modules/unistdio/u16-asnprintf-tests: Likewise.
22518         * modules/unistdio/u16-vasnprintf-tests: Likewise.
22519         * modules/unistdio/u16-vasprintf-tests: Likewise.
22520         * modules/unistdio/u16-vsnprintf-tests: Likewise.
22521         * modules/unistdio/u16-vsprintf-tests: Likewise.
22522         * modules/unistdio/u32-asnprintf-tests: Likewise.
22523         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22524         * modules/unistdio/u32-vasprintf-tests: Likewise.
22525         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22526         * modules/unistdio/u32-vsprintf-tests: Likewise.
22527         * modules/unistdio/ulc-asnprintf-tests: Likewise.
22528         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
22529         * modules/unistdio/ulc-vasprintf-tests: Likewise.
22530         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
22531         * modules/unistdio/ulc-vsprintf-tests: Likewise.
22532         * modules/unistr/u8-check-tests: Likewise.
22533         * modules/unistr/u8-chr-tests: Likewise.
22534         * modules/unistr/u8-cmp-tests: Likewise.
22535         * modules/unistr/u8-cmp2-tests: Likewise.
22536         * modules/unistr/u8-cpy-alloc-tests: Likewise.
22537         * modules/unistr/u8-cpy-tests: Likewise.
22538         * modules/unistr/u8-mblen-tests: Likewise.
22539         * modules/unistr/u8-mbsnlen-tests: Likewise.
22540         * modules/unistr/u8-mbtouc-tests: Likewise.
22541         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
22542         * modules/unistr/u8-mbtoucr-tests: Likewise.
22543         * modules/unistr/u8-move-tests: Likewise.
22544         * modules/unistr/u8-next-tests: Likewise.
22545         * modules/unistr/u8-prev-tests: Likewise.
22546         * modules/unistr/u8-set-tests: Likewise.
22547         * modules/unistr/u8-stpcpy-tests: Likewise.
22548         * modules/unistr/u8-stpncpy-tests: Likewise.
22549         * modules/unistr/u8-strcat-tests: Likewise.
22550         * modules/unistr/u8-strcmp-tests: Likewise.
22551         * modules/unistr/u8-strcoll-tests: Likewise.
22552         * modules/unistr/u8-strcpy-tests: Likewise.
22553         * modules/unistr/u8-strdup-tests: Likewise.
22554         * modules/unistr/u8-strlen-tests: Likewise.
22555         * modules/unistr/u8-strmblen-tests: Likewise.
22556         * modules/unistr/u8-strmbtouc-tests: Likewise.
22557         * modules/unistr/u8-strncat-tests: Likewise.
22558         * modules/unistr/u8-strncmp-tests: Likewise.
22559         * modules/unistr/u8-strncpy-tests: Likewise.
22560         * modules/unistr/u8-strnlen-tests: Likewise.
22561         * modules/unistr/u8-to-u16-tests: Likewise.
22562         * modules/unistr/u8-to-u32-tests: Likewise.
22563         * modules/unistr/u8-uctomb-tests: Likewise.
22564         * modules/unistr/u16-check-tests: Likewise.
22565         * modules/unistr/u16-chr-tests: Likewise.
22566         * modules/unistr/u16-cmp-tests: Likewise.
22567         * modules/unistr/u16-cmp2-tests: Likewise.
22568         * modules/unistr/u16-cpy-alloc-tests: Likewise.
22569         * modules/unistr/u16-cpy-tests: Likewise.
22570         * modules/unistr/u16-mblen-tests: Likewise.
22571         * modules/unistr/u16-mbsnlen-tests: Likewise.
22572         * modules/unistr/u16-mbtouc-tests: Likewise.
22573         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
22574         * modules/unistr/u16-mbtoucr-tests: Likewise.
22575         * modules/unistr/u16-move-tests: Likewise.
22576         * modules/unistr/u16-next-tests: Likewise.
22577         * modules/unistr/u16-prev-tests: Likewise.
22578         * modules/unistr/u16-set-tests: Likewise.
22579         * modules/unistr/u16-stpcpy-tests: Likewise.
22580         * modules/unistr/u16-stpncpy-tests: Likewise.
22581         * modules/unistr/u16-strcat-tests: Likewise.
22582         * modules/unistr/u16-strcmp-tests: Likewise.
22583         * modules/unistr/u16-strcoll-tests: Likewise.
22584         * modules/unistr/u16-strcpy-tests: Likewise.
22585         * modules/unistr/u16-strdup-tests: Likewise.
22586         * modules/unistr/u16-strlen-tests: Likewise.
22587         * modules/unistr/u16-strmblen-tests: Likewise.
22588         * modules/unistr/u16-strmbtouc-tests: Likewise.
22589         * modules/unistr/u16-strncat-tests: Likewise.
22590         * modules/unistr/u16-strncmp-tests: Likewise.
22591         * modules/unistr/u16-strncpy-tests: Likewise.
22592         * modules/unistr/u16-strnlen-tests: Likewise.
22593         * modules/unistr/u16-to-u32-tests: Likewise.
22594         * modules/unistr/u16-to-u8-tests: Likewise.
22595         * modules/unistr/u16-uctomb-tests: Likewise.
22596         * modules/unistr/u32-check-tests: Likewise.
22597         * modules/unistr/u32-chr-tests: Likewise.
22598         * modules/unistr/u32-cmp-tests: Likewise.
22599         * modules/unistr/u32-cmp2-tests: Likewise.
22600         * modules/unistr/u32-cpy-alloc-tests: Likewise.
22601         * modules/unistr/u32-cpy-tests: Likewise.
22602         * modules/unistr/u32-mblen-tests: Likewise.
22603         * modules/unistr/u32-mbsnlen-tests: Likewise.
22604         * modules/unistr/u32-mbtouc-tests: Likewise.
22605         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
22606         * modules/unistr/u32-mbtoucr-tests: Likewise.
22607         * modules/unistr/u32-move-tests: Likewise.
22608         * modules/unistr/u32-next-tests: Likewise.
22609         * modules/unistr/u32-prev-tests: Likewise.
22610         * modules/unistr/u32-set-tests: Likewise.
22611         * modules/unistr/u32-stpcpy-tests: Likewise.
22612         * modules/unistr/u32-stpncpy-tests: Likewise.
22613         * modules/unistr/u32-strcat-tests: Likewise.
22614         * modules/unistr/u32-strcmp-tests: Likewise.
22615         * modules/unistr/u32-strcoll-tests: Likewise.
22616         * modules/unistr/u32-strcpy-tests: Likewise.
22617         * modules/unistr/u32-strdup-tests: Likewise.
22618         * modules/unistr/u32-strlen-tests: Likewise.
22619         * modules/unistr/u32-strmblen-tests: Likewise.
22620         * modules/unistr/u32-strmbtouc-tests: Likewise.
22621         * modules/unistr/u32-strncat-tests: Likewise.
22622         * modules/unistr/u32-strncmp-tests: Likewise.
22623         * modules/unistr/u32-strncpy-tests: Likewise.
22624         * modules/unistr/u32-strnlen-tests: Likewise.
22625         * modules/unistr/u32-to-u16-tests: Likewise.
22626         * modules/unistr/u32-to-u8-tests: Likewise.
22627         * modules/unistr/u32-uctomb-tests: Likewise.
22628         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
22629         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
22630         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
22631         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
22632         * modules/uniwidth/u8-strwidth-tests: Likewise.
22633         * modules/uniwidth/u8-width-tests: Likewise.
22634         * modules/uniwidth/u16-strwidth-tests: Likewise.
22635         * modules/uniwidth/u16-width-tests: Likewise.
22636         * modules/uniwidth/u32-strwidth-tests: Likewise.
22637         * modules/uniwidth/u32-width-tests: Likewise.
22638         * modules/uniwidth/width-tests: Likewise.
22639
22640 2010-05-18  Richard Jones  <rjones@redhat.com>
22641
22642         doc: users.txt: list hivex
22643         * users.txt: Add hivex.
22644
22645 2010-05-18  Richard Jones  <rjones@redhat.com>
22646
22647         doc: users.txt: list febootstrap
22648         * users.txt: Add febootstrap.
22649
22650 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
22651
22652         bootstrap: fix an error when gnulib is not used as a git submodule
22653         * build-aux/bootstrap (gnulib_path): If its length is zero then
22654         assign "gnulib" to it.
22655         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
22656
22657 2010-05-16  Bruno Haible  <bruno@clisp.org>
22658
22659         Avoid autoconf warnings about AM_ICONV.
22660         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
22661         2.64.
22662
22663 2010-05-16  Bruno Haible  <bruno@clisp.org>
22664
22665         absolute-header: Make the macro usable in more situations.
22666         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
22667         from gl_ABSOLUTE_HEADER.
22668         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
22669
22670 2010-05-16  James Youngman  <jay@gnu.org>
22671
22672         doc: update users.txt
22673         * users.txt: Add CSSC.
22674
22675 2010-05-16  Jim Meyering  <meyering@redhat.com>
22676
22677         init.sh: fix an error in the previous change; add more comments
22678         * tests/init.sh: Compare exit code in loop against 9, not 2.
22679         Patch by Bruno Haible.
22680         Make the two tests more similar by adding an empty "then" clause.
22681         Add comments.
22682
22683         init.sh: avoid unnecessary shell re-exec
22684         * tests/init.sh: Improve the re-exec-required check to first test the
22685         current shell.  If it passes the test, do not search for a shell that
22686         does pass, and do not re-exec.  This test is particularly contorted to
22687         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
22688         of $(...) evokes a syntax error and causes immediate shell exit with
22689         status 2.  Bruno Haible reported that the re-exec made it impossible
22690         to single-step through any init.sh-using script.
22691
22692 2010-05-16  Bruno Haible  <bruno@clisp.org>
22693
22694         Fix collision between gnulib's and libintl's printf replacements.
22695         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
22696         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
22697         (printf): When using GNU C, map the __printf__ function to rpl_printf
22698         via __asm__. When not using GNU C, define rpl_printf instead of
22699         __printf__.
22700         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
22701         commit.
22702         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
22703         commit.
22704         * m4/asm-underscore.m4: New file.
22705         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
22706         * modules/stdio (Files): Add m4/asm-underscore.m4.
22707         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
22708         Reported by Ben Pfaff.
22709
22710 2010-05-16  Bruno Haible  <bruno@clisp.org>
22711
22712         verify: Avoid skipping the test on openSUSE 11.0.
22713         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
22714
22715 2010-05-13  Bruno Haible  <bruno@clisp.org>
22716
22717         Avoid useless warnings from G++.
22718         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
22719         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
22720         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22721
22722 2010-05-11  Jim Meyering  <meyering@redhat.com>
22723
22724         maint.mk: tweak preceding change
22725         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
22726         regexps tighter by anchoring at EOL, and make the new group "shy"
22727         for slightly decreased overhead.
22728
22729 2010-05-11  Eric Blake  <eblake@redhat.com>
22730
22731         maint.mk: gnulib doesn't guarantee NSIG
22732         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
22733
22734 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22735
22736         test-pwrite.c: Remove unused variable declaration.
22737         * tests/test-pwrite.c (main): Remove read_buf declaration.
22738
22739         Remove useless test-pwrite.sh file.
22740         * tests/test-pwrite.sh: Delete file.
22741         * modules/pwrite-tests: Remove references.
22742         Reported by Bruno Haible.
22743
22744 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22745
22746         init.sh: fix a typo
22747         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
22748
22749 2010-05-10  Jim Meyering  <meyering@redhat.com>
22750
22751         maint.mk: avoid using a temporary file in the always-defined-macros check
22752         * top/maint.mk (.re-defmac): Remove rule.
22753         (gl_trap_): Remove definition.
22754         (sc_prohibit_always-defined_macros): Rewrite not to create and
22755         depend on a temporary file.  Instead, depend on GNU grep's ability
22756         to read a list of regular expressions from stdin when given "-f -".
22757
22758 2010-05-09  Bruno Haible  <bruno@clisp.org>
22759
22760         Update to GNU gettext 0.18, part 1.
22761         * m4/gettext.m4: Update to GNU gettext 0.18.
22762         * m4/intl.m4: Likewise.
22763         * m4/po.m4: Likewise.
22764         * modules/gettext (Files): Add m4/fcntl-o.m4.
22765         (configure.ac): Require gettext infrastructure from version 0.18.
22766
22767 2010-05-09  Jim Meyering  <meyering@redhat.com>
22768
22769         init.sh: enable MALLOC_PERTURB_
22770         * tests/init.sh: Enable glibc's malloc-perturbing option.
22771
22772         maint.mk: improve sc_cross_check_PATH_usage_in_tests
22773         With my recent change in init.sh from the two-line form:
22774             -#   : ${srcdir=.}
22775             -#   . "$srcdir/init.sh"; path_prepend_ .
22776             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
22777         I noticed that using the one-line form would cause this test
22778         to fail with a false-positive, or to stop working altogether,
22779         depending on whether help-version changed or all the tests did.
22780         * top/maint.mk (_hv_regex): Remove this definition.
22781         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
22782         (_hv_regex_strong): Use a stronger regex to check for conformance.
22783         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
22784         Give a separate diagnostic for lack of conforming use.
22785
22786         maint.mk: prohibit definition of symbols defined by gnulib
22787         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
22788         definition of symbols defined by gnulib.
22789
22790 2010-05-09  Bruno Haible  <bruno@clisp.org>
22791
22792         acl: Avoid test failure on Cygwin-hosted mingw.
22793         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
22794
22795 2010-05-09  Bruno Haible  <bruno@clisp.org>
22796
22797         error: Use system's fcntl function.
22798         * lib/error.c (fcntl): Undefine.
22799
22800 2010-05-09  Jim Meyering  <meyering@redhat.com>
22801
22802         verify: adjust formatting to be more consistent
22803         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
22804         argument-list '('s, and after one comma.
22805
22806 2010-05-09  Bruno Haible  <bruno@clisp.org>
22807
22808         error: More reliable output on mingw.
22809         * lib/error.c: Include <windows.h>.
22810         (is_open): New function.
22811         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
22812         defined.
22813
22814 2010-05-09  Bruno Haible  <bruno@clisp.org>
22815
22816         vasnprintf: Fix syntax errors in libintl build on mingw.
22817         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
22818         pad_ourselves and prec_ourselves after use.
22819
22820 2010-05-08  Bruno Haible  <bruno@clisp.org>
22821
22822         * lib/config.charset: Update comments for Cygwin 1.7.
22823         * lib/localcharset.c: Likewise.
22824
22825 2010-05-07  Jim Meyering  <meyering@redhat.com>
22826
22827         init.sh: improve comments
22828         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
22829         . "${srcdir=.}/init.sh"; path_prepend_ .
22830         Add a note about path_prepend_ and the alternative of using
22831         TESTS_ENVIRONMENT.
22832
22833 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22834
22835         exclude: Unescape hashed patterns in wildcard mode.
22836         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
22837         to the hash list.
22838         * tests/test-exclude8.sh: New test case.
22839         * modules/exclude-tests: Add new test.
22840
22841 2010-05-05  Eric Blake  <eblake@redhat.com>
22842
22843         verify: automate tests
22844         * modules/verify-tests: New module.
22845         * tests/test-verify.sh: New file.
22846         * tests/test-verify.c: Guard each negative test with a unique id.
22847         Also avoid warning about unused left hand of comma expressions.
22848
22849 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22850
22851         Further improvements to verify.h, suggested by Eric Blake.
22852         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
22853         the GL_* versions, to avoid collision with OpenGL.
22854         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
22855         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
22856         than testing merely whether it's defined.
22857
22858         Modify verify.h to pacify gcc -Wredundant_decls.
22859         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
22860         These use the prefix "GL_" since they're likely to be useful elsewhere.
22861         We may need to break them out into a different .h file.
22862         (__COUNTER__): Define to 0 if the compiler doesn't support it.
22863         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
22864         of verify_function__.
22865
22866 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22867
22868         Tests for module pwrite.
22869         * modules/pwrite-tests: New file.
22870         * tests/test-pwrite.sh: New file.
22871         * tests/test-pwrite.c: New file.
22872
22873         New module pwrite.
22874         * lib/unistd.in.h (pwrite): New declaration.
22875         * lib/pwrite.c: New file, from glibc with modifications.
22876         * m4/pwrite.m4: New file.
22877         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
22878         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
22879         REPLACE_PWRITE.
22880         * modules/pwrite: New file.
22881         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
22882         REPLACE_PWRITE.
22883         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
22884         * doc/posix-functions/pwrite.texi: Mention the new module.
22885
22886 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22887
22888         pread: Update documentation.
22889         * doc/posix-functions/pread.texi: Mention the 'pread' module.
22890
22891 2010-05-04  Eric Blake  <eblake@redhat.com>
22892
22893         docs: update cygwin progress
22894         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
22895         this bug.
22896         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
22897         Added in cygwin 1.7.2.
22898         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
22899         Likewise.
22900         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
22901         Likewise.
22902         * doc/glibc-functions/dup3.texi (dup3): Likewise.
22903         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
22904         * doc/glibc-functions/accept4.texi (accept4): Likewise.
22905         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
22906         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
22907         Mention nproc module.
22908         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
22909         bug in cygwin 1.7.5 addition.
22910         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
22911         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
22912         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
22913         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
22914         1.7.5.
22915         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
22916         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
22917         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
22918         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
22919         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
22920         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
22921         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
22922         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
22923         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
22924         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
22925         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
22926         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
22927         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
22928         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
22929         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
22930         Likewise.
22931         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
22932         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
22933         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
22934         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
22935         Likewise.
22936         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
22937         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
22938         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
22939         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
22940         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
22941         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
22942         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
22943         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
22944         Likewise.
22945         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
22946         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
22947         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
22948         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
22949         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
22950         Likewise.
22951         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
22952         Likewise.
22953         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
22954         Likewise.
22955         * doc/glibc-functions/xdrrec_endofrecord.texi
22956         (xdrrec_endofrecord): Likewise.
22957         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
22958         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
22959         Likewise.
22960         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
22961         Likewise.
22962
22963 2010-05-04  Jim Meyering  <meyering@redhat.com>
22964
22965         gendocs.sh: make its "-s FILE" option more useful
22966         * build-aux/gendocs.sh: When honoring the -s FILE option, update
22967         $PACKAGE to reflect the probably-different basename of "FILE".
22968
22969 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
22970
22971         bootstrap: don't ignore download_po_files failure
22972         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
22973         failure.
22974
22975 2010-05-03  Jim Meyering  <meyering@redhat.com>
22976
22977         maint.mk: allow to pass options to gendocs.sh
22978         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
22979         (gendocs_options_): New overridable variable.
22980
22981         gnu-web-doc-update: don't ignore configure or build failure
22982         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
22983
22984         announce-gen: backslash-escape '@'s in --help output
22985         * build-aux/announce-gen: Fix syntax errors.
22986
22987         maint.mk, announce-gen: allow project-specific announcement mail headers
22988         * top/maint.mk (translation_project_): Define default.
22989         (announcement_Cc_, announcement_mail_headers_): Likewise.
22990         (announcement): Invoke announce-gen with new --mail-headers option.
22991         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
22992
22993         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
22994         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
22995         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
22996         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
22997         line in the "err2" output file when running "make check" in verbose
22998         mode (i.e., with set -x enabled).
22999
23000 2010-05-03  Bruno Haible  <bruno@clisp.org>
23001
23002         wctob: Fix for weird platforms.
23003         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23004         argument value.
23005
23006 2010-05-03  Jim Meyering  <meyering@redhat.com>
23007
23008         maint.mk: prohibit unwarranted use of <strings.h>
23009         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23010         strings.h in a file that does not also use strcasecmp, strncasecmp,
23011         ffs or ffsll.
23012
23013         maint.mk: remove obsolete comments
23014         * top/maint.mk: Remove stale, commented-out rules.
23015
23016 2010-05-02  Bruno Haible  <bruno@clisp.org>
23017
23018         wcwidth: Declare also when it's aliased.
23019         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23020         macro.
23021
23022 2010-05-02  Bruno Haible  <bruno@clisp.org>
23023
23024         Fix regression from 2010-04-25.
23025         * gnulib-tool (func_modules_transitive_closure): Check the status of
23026         all modules, not only of the tests that are of the form foo-tests where
23027         foo is a module.
23028
23029 2010-05-02  Bruno Haible  <bruno@clisp.org>
23030
23031         wctob: Work around nasty Cygwin 1.7.2 bug.
23032         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23033         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23034
23035 2010-05-01  Bruno Haible  <bruno@clisp.org>
23036
23037         fpurge: Sharper test.
23038         * tests/test-fpurge.c (main): Add one more ftell check.
23039         * modules/fpurge-tests (Depends-on): Add ftell.
23040         Suggested by Eric Blake.
23041
23042 2010-05-01  Bruno Haible  <bruno@clisp.org>
23043
23044         ftello: Another test.
23045         * tests/test-ftello3.c: New file.
23046         * modules/ftello-tests (Files): Add it.
23047         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23048         MOSTLYCLEANFILES.
23049
23050         ftell: Another test.
23051         * tests/test-ftell3.c: New file.
23052         * modules/ftell-tests (Files): Add it.
23053         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23054         MOSTLYCLEANFILES.
23055
23056 2010-05-01  Bruno Haible  <bruno@clisp.org>
23057
23058         ftell, ftello: Work around Solaris bug.
23059         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23060         * lib/ftello.c: Include stdio-impl.h.
23061         (ftello): On Solaris, when _IOWRT is set, compute the result without
23062         looking at _IOREAD.
23063         * modules/ftello (Files): Add lib/stdio-impl.h.
23064         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23065         * doc/posix-functions/ftello.texi: Likewise.
23066         Reported by Eric Blake.
23067
23068 2010-05-01  Bruno Haible  <bruno@clisp.org>
23069
23070         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23071         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23072         the _IOWRT flag is also set.
23073
23074 2010-05-01  Bruno Haible  <bruno@clisp.org>
23075
23076         Fix doc about a HP-UX stdio bug.
23077         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23078         * doc/posix-functions/ftello.texi: Likewise.
23079
23080 2010-05-01  Bruno Haible  <bruno@clisp.org>
23081
23082         lseek test: Fix failure on Solaris.
23083         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23084         output.
23085
23086 2010-04-30  Jim Meyering  <meyering@redhat.com>
23087
23088         bootstrap: don't ignore failure to generate po*/Makevars
23089         * build-aux/bootstrap (with_gettext): Don't ignore failure
23090         to create po/Makevars or runtime-po/Makevars.
23091
23092 2010-04-29  Eric Blake  <eblake@redhat.com>
23093
23094         headers: relax license to LGPLv2+
23095         * modules/fcntl-h (License): Relax license.
23096         * modules/getopt-posix (License): Likewise.
23097         * modules/locale (License): Likewise.
23098         * modules/math (License): Likewise.
23099         * modules/pty (License): Likewise.
23100         * modules/sched (License): Likewise.
23101         * modules/search (License): Likewise.
23102         * modules/spawn (License): Likewise.
23103         * modules/stdarg (License): Likewise.
23104         * modules/sysexits (License): Likewise.
23105
23106 2010-04-29  Jim Meyering  <meyering@redhat.com>
23107
23108         inttypes: relax license to LGPLv2+
23109         * modules/inttypes (License): Relax license.
23110
23111 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23112
23113         * top/maint.mk (indent): Run twice to produce idempotent results.
23114
23115 2010-04-28  Bruno Haible  <bruno@clisp.org>
23116
23117         getdate: Generate getdate.c in the source directory.
23118         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23119         MOSTLYCLEANFILES.
23120         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23121
23122 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23123
23124         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23125         is not declared as a const *; avoid warnings in that case.
23126
23127 2010-04-28  Eric Blake  <eblake@redhat.com>
23128
23129         canonicalize-lgpl: avoid compiler warning
23130         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23131         declaration' / 'extraneous semicolon' warning with some compilers.
23132         Reported by Andreas Gruenbacher.
23133
23134 2010-04-28  Jim Meyering  <meyering@redhat.com>
23135
23136         init.sh: ensure a more reliable exit status when exiting via trap
23137         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23138         Inspired by patches from Dmitry V. Levin.
23139         Also trap on signal 3 (SIGQUIT).
23140
23141 2010-04-27  Bruno Haible  <bruno@clisp.org>
23142
23143         Update doc about utimes().
23144         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23145         'utimens' module.
23146         Reported by Andreas Gruenbacher <agruen@suse.de>.
23147
23148 2010-04-27  Eric Blake  <eblake@redhat.com>
23149
23150         full-read, full-write: relax license
23151         * modules/full-read (License): Drop to LGPLv2+.
23152         * modules/full-write (License): Likewise.
23153         * modules/safe-read (License): Likewise.
23154         * modules/safe-write (License): Likewise.
23155
23156         pthread: mention library for linking
23157         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23158
23159 2010-04-27  Jim Meyering  <meyering@redhat.com>
23160
23161         maint.mk: fix a bug introduced in last change
23162         * top/maint.mk (gl_assured_headers_): Now that all names are on
23163         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23164         is not anchored to end of word, it should be adequate.
23165
23166         maint.mk: avoid side-effect in latest syntax-check
23167         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23168         to run commands via $(shell...), and hence to incur cost only when
23169         the new rule is actually run.
23170
23171         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23172         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23173         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23174         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23175         (gl_assured_headers_, az_, AZ_): Define.
23176         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23177
23178 2010-04-26  Jim Meyering  <jim@meyering.net>
23179             Bruno Haible  <bruno@clisp.org>
23180
23181         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23182         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23183         Prompted by an exchange with Gilles Espinasse.
23184
23185 2010-04-26  Jim Meyering  <meyering@redhat.com>
23186
23187         git-version-gen: aesthetic tweak
23188         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23189         so that the command remains on a single line.
23190
23191 2010-04-26  Eric Blake  <eblake@redhat.com>
23192
23193         git-version-gen: allow use on EBCDIC hosts
23194         * build-aux/git-version-gen (dirty): Use literal rather than tying
23195         ourselves to ascii.
23196         Reported by Steve Goetze.
23197
23198 2010-04-25  Bruno Haible  <bruno@clisp.org>
23199
23200         netdb: Add support for GNULIB_POSIXCHECK.
23201         * lib/netdb.in.h: Include warn-on-use.h.
23202         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23203         functions are used when GNULIB_POSIXCHECK is defined and the
23204         getaddrinfo module is not in use.
23205         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23206         freeaddrinfo, gai_strerror, getnameinfo are declared.
23207         * modules/netdb (Depends-on): Add warn-on-use.
23208         (Makefile.am): Include warn-on-use.h in netdb.h.
23209
23210 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23211
23212         build: avoid "make check" failure without .git/ directory
23213         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23214         there is no .git/ directory.
23215
23216 2010-04-25  Bruno Haible  <bruno@clisp.org>
23217
23218         ptsname: Fix misuse of ttyname_r.
23219         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23220         of errno.
23221
23222 2010-04-25  Bruno Haible  <bruno@clisp.org>
23223
23224         ttyname_r: Make it work on Solaris 10.
23225         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23226         if the system function has the POSIX declaration. Test whether the
23227         function fails if the buffer is less than 128 bytes large.
23228         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23229         system's ttyname_r function. Provide a reasonably large buffer.
23230         * modules/ttyname_r (Depends-on): Add extensions.
23231         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23232
23233 2010-04-25  Bruno Haible  <bruno@clisp.org>
23234
23235         Use the 'extensions' module for some more functions on Solaris.
23236         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23237         module.
23238         * doc/posix-functions/ctime_r.texi: Likewise.
23239         * doc/posix-functions/getgrgid_r.texi: Likewise.
23240         * doc/posix-functions/getgrnam_r.texi: Likewise.
23241         * doc/posix-functions/getpwnam_r.texi: Likewise.
23242         * doc/posix-functions/getpwuid_r.texi: Likewise.
23243         * doc/posix-functions/readdir_r.texi: Likewise.
23244         * doc/posix-functions/sigwait.texi: Likewise.
23245         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23246         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23247
23248 2010-04-25  Bruno Haible  <bruno@clisp.org>
23249
23250         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23251         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23252         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23253         * lib/ttyname_r.c: Include <limits.h>.
23254         (ttyname_r): Define using the system's ttyname_r function, if it exists
23255         and not on Solaris.
23256         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23257         set.
23258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23259         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23260         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23261         Reported by Simon Josefsson.
23262
23263 2010-04-25  Bruno Haible  <bruno@clisp.org>
23264
23265         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23266         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23267         * doc/posix-functions/ctime_r.texi: Likewise.
23268         * doc/posix-functions/getgrgid_r.texi: Likewise.
23269         * doc/posix-functions/getgrnam_r.texi: Likewise.
23270         * doc/posix-functions/getlogin_r.texi: Likewise.
23271         * doc/posix-functions/getpwnam_r.texi: Likewise.
23272         * doc/posix-functions/getpwuid_r.texi: Likewise.
23273         * doc/posix-functions/readdir_r.texi: Likewise.
23274         * doc/posix-functions/sigwait.texi: Likewise.
23275         * doc/posix-functions/ttyname_r.texi: Likewise.
23276         Reported by Simon Josefsson.
23277
23278 2010-04-25  Bruno Haible  <bruno@clisp.org>
23279
23280         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23281         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23282         also to --create-testdir.
23283         (func_acceptable): Don't consider the status of *-tests modules here.
23284         (func_modules_transitive_closure): Consider it here, before including a
23285         test module.
23286         (func_import, func_create_testdir): Set inc_all_direct_tests,
23287         inc_all_indirect_tests.
23288         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23289         --create-testdir and --create-megatestdir.
23290
23291 2010-04-25  Bruno Haible  <bruno@clisp.org>
23292
23293         gnulib-tool: Add --without-*-tests options.
23294         * gnulib-tool (func_usage): Document the --without-*-tests options.
23295         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23296         excl_unportable_tests): New variables.
23297         Fail if they are specified with --import or --update.
23298         (func_acceptable): Respect the excl_*_tests variables.
23299         (func_import): Set the excl_*_tests variables to empty.
23300
23301 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23302             Bruno Haible  <bruno@clisp.org>
23303
23304         Work around a MacOS X 10.4 bug with openpty.
23305         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23306         * tests/test-openpty.c (main): Close the master side explicitly.
23307
23308 2010-04-25  Bruno Haible  <bruno@clisp.org>
23309
23310         strnlen: Fix a C++ test error on MacOS X and Solaris.
23311         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23312         the function is not declared.
23313         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23314         Simon Josefsson.
23315
23316 2010-04-24  Bruno Haible  <bruno@clisp.org>
23317
23318         Avoid a gcc warning.
23319         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23320         of correct type for %08lx directive.
23321         Reported by Eric Blake.
23322
23323 2010-04-24  Bruno Haible  <bruno@clisp.org>
23324
23325         vasnprintf: Correct errno value in case of out-of-memory.
23326         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23327         or sprintf. Use the errno value from SNPRINTF or sprintf.
23328         Reported by Ian Beckwith <ianb@erislabs.net>.
23329
23330 2010-04-24  Bruno Haible  <bruno@clisp.org>
23331
23332         ansi-c++-opt: Find correct compiler when cross-compiling.
23333         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23334         AC_CHECK_PROGS.
23335         Reported by Simon Josefsson.
23336
23337 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23338
23339         vc-list-files: Add support for subversion
23340         * build-aux/vc-list-files: Use "svn list" to generate the list of
23341         files controlled by subversion.
23342
23343 2010-04-23  Jim Meyering  <meyering@redhat.com>
23344
23345         vc-list-files tests: convert to use init.sh
23346         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23347         path_prepend_.
23348         Use Exit, not exit.
23349         Use skip_ rather than open coding it.
23350         Remove trap set-up and compare definitions.
23351         * tests/test-vc-list-files-git.sh: Likewise.
23352         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23353
23354 2010-04-22  Simon Josefsson  <simon@josefsson.org>
23355
23356         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
23357         backup files.
23358
23359 2010-04-21  Simon Josefsson  <simon@josefsson.org>
23360
23361         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
23362
23363 2010-04-20  Eric Blake  <eblake@redhat.com>
23364
23365         tests: be robust to ignored SIGPIPE
23366         * tests/test-select-in.sh: Consume all output.
23367         * tests/test-lseek.sh: Check correct exit status, while avoiding
23368         EPIPE.
23369
23370 2010-04-20  Simon Josefsson  <simon@josefsson.org>
23371             Bruno Haible  <bruno@clisp.org>
23372
23373         visibility: Don't use -fvisibility if it leads to a warning.
23374         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
23375         yes, don't pretend that visibility works if it leads to a warning.
23376         Reported by Mike Gran <spk121@yahoo.com>.
23377
23378 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
23379
23380         * build-aux/bootstrap: Use "git -h" for testing for supported options
23381         instead of "git --help".  The short-form option only shows a summary,
23382         and doesn't layout the full man page.  Grep for the full option name
23383         in the summary, too.
23384
23385 2010-04-19  Bruno Haible  <bruno@clisp.org>
23386
23387         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
23388         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
23389         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
23390         mention of RELOCATABLE_STRIP.
23391         Reported by Sylvain Beucler <beuc@beuc.net>.
23392
23393 2010-04-19  Bruno Haible  <bruno@clisp.org>
23394
23395         * lib/diffseq.h: Fix typo in comment.
23396         Reported by Eric Blake.
23397
23398 2010-04-19  Bruno Haible  <bruno@clisp.org>
23399
23400         ioctl: Move autoconf macro to a .m4 file.
23401         * m4/ioctl.m4: New file, extracted from modules/ioctl.
23402         * modules/ioctl (Files): Add it.
23403         (configure.ac): Simply invoke gl_FUNC_IOCTL.
23404         Reported by Ian Beckwith <ianb@erislabs.net>.
23405
23406 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
23407             Bruno Haible  <bruno@clisp.org>
23408
23409         diffseq: Accommodate use-case with abstract arrays.
23410         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
23411         is not defined.
23412         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
23413         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
23414
23415 2010-04-18  Bruno Haible  <bruno@clisp.org>
23416
23417         * doc/posix-headers/stdbool.texi: More precise wording.
23418
23419 2010-04-17  Jim Meyering  <meyering@redhat.com>
23420
23421         maint.mk: use gnu-style indentation in an embedded perl script
23422         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
23423         Rename variable: s/two/last_two_bytes/
23424
23425 2010-04-16  Eric Blake  <eblake@redhat.com>
23426
23427         test-stdbool: skip test that fails with Solaris CC
23428         * tests/test-stdbool.c (f): Skip test that causes compilation
23429         error under buggy C++ compiler.
23430         * lib/stdbool.in.h: Document the limitation.
23431         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
23432
23433         setenv: allow compilation with C++
23434         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
23435         register keyword.
23436
23437         stdint: allow test to pass with C++
23438         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
23439
23440         getopt: allow compilation with C++
23441         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
23442         struct.
23443         * lib/getopt.c (_getopt_internal_r): Use correct type.
23444         Reported by Dagobert Michelson, via Joel E. Denny.
23445
23446 2010-04-16  Bruno Haible  <bruno@clisp.org>
23447
23448         Override netdb.h always.
23449         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
23450         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
23451         Reported by Ludovic Courtès <ludo@gnu.org>.
23452
23453 2010-04-15  Bruno Haible  <bruno@clisp.org>
23454
23455         openpty: Fix mistake from 2010-03-21.
23456         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23457         Reported by Simon Josefsson.
23458
23459 2010-04-15  Eric Blake  <eblake@redhat.com>
23460
23461         test-forkpty: fix expected signature
23462         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23463         Reported by Simon Josefsson.
23464
23465 2010-04-15  Jim Meyering  <meyering@redhat.com>
23466
23467         maint.mk: texinfo_suffix_re_: correct the default regexp
23468         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23469
23470         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23471         make it configurable via texinfo_suffix_re_.
23472
23473 2010-04-14  Eric Blake  <eblake@redhat.com>
23474
23475         strtok_r: relax license to LGPLv2+
23476         * modules/strtok_r (License): Relax license.
23477         Reported by Matthias Bolte.
23478
23479 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23480
23481         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23482         version 1.4.4 by default instead of requiring the libgcrypt
23483         version used during build.  This makes it possible to use the
23484         application with older but still binary compatible libgcrypt
23485         versions.
23486
23487 2010-04-13  Eric Blake  <eblake@redhat.com>
23488
23489         getopt-gnu: match recent glibc fixes and posix ruling
23490         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
23491         '+' handling, when requesting extensions.
23492         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
23493         'W;' handling.
23494         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
23495         * doc/posix-functions/getopt.texi (getopt): Document this.
23496         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23497         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23498         Likewise.
23499
23500         getopt: merge bug fixes from glibc
23501         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
23502         diagnostics.  Honor '+:' correctly.  Reject ';'.
23503
23504         getopt-posix: detect MacOS bug
23505         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
23506         optind when missing a required argument.
23507         * doc/posix-functions/getopt.texi (getopt): Document the bug.
23508         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23509         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23510         Likewise.
23511
23512         getopt-posix: avoid spurious failure on Solaris
23513         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
23514         an indicator that setting optind=1 is sufficient for reset.
23515
23516         getopt-posix: avoid spurious failure on FreeBSD
23517         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
23518         in POSIX mode, since the m4 test uses it.
23519
23520         gnulib-tool: silence warning on BSD sh
23521         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
23522
23523 2010-04-13  Jim Meyering  <meyering@redhat.com>
23524
23525         doc: users.txt: GNU patch now uses gnulib
23526         * users.txt: Add patch.
23527
23528 2010-04-12  Jim Meyering  <meyering@redhat.com>
23529
23530         maint.mk: generate more concise timing data for syntax-check rules
23531         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
23532         " done" from each line that reports a syntax-check test duration.
23533
23534 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
23535
23536         git-version-gen: use "git update-index..." rather than "git status"
23537         * build-aux/git-version-gen: Use git update-index --refresh, not
23538         "git status".  With some versions of git, "git status" would fail
23539         to update the index and result in an unwarranted "-dirty" suffix.
23540
23541 2010-04-11  Jim Meyering  <meyering@redhat.com>
23542
23543         openat: correct formatting (no semantic change)
23544         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
23545         Suggested by Bruno Haible.
23546
23547 2010-04-11  Bruno Haible  <bruno@clisp.org>
23548
23549         Stricter declaration checking in testdirs.
23550         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23551         If for_tests is true, augment AM_CPPFLAGS to define
23552         GNULIB_STRICT_CHECKING.
23553         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
23554         GNULIB_STRICT_CHECKING is defined, verify that the function is
23555         declared.
23556
23557 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
23558             Bruno Haible  <bruno@clisp.org>
23559
23560         libunistring: Improve configure output.
23561         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
23562         Don't say "consider installing GNU libunistring" when checking again
23563         with libiconv.
23564
23565 2010-04-11  Bruno Haible  <bruno@clisp.org>
23566
23567         libunistring: Correct value of $LTLIBUNISTRING.
23568         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
23569         correct the value of $LTLIBUNISTRING.
23570
23571 2010-04-11  Bruno Haible  <bruno@clisp.org>
23572
23573         havelib: Add static libraries to LIBS in the right order.
23574         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
23575         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
23576
23577 2010-04-11  Bruno Haible  <bruno@clisp.org>
23578
23579         libunistring: Detect libunistring also when it depends on libiconv.
23580         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
23581         the second AC_LIB_HAVE_LINKFLAGS invocation.
23582
23583 2010-04-11  James Youngman  <jay@gnu.org>
23584
23585         close-stream: declare local scalars to be "const"
23586         * lib/close-stream.c (close_stream): Make boolean variables const
23587         to document the fact that we set but do not change them.
23588
23589 2010-04-11  Bruno Haible  <bruno@clisp.org>
23590
23591         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
23592
23593 2010-04-11  Jim Meyering  <meyering@redhat.com>
23594
23595         maint.mk: don't include dist-check.mk
23596         * top/maint.mk: Remove bogus include directive.
23597
23598         maint.mk: improve empty-line-at-EOF check
23599         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
23600         solution, rather than tail+Perl-based one.  The latter would read
23601         a few kilobytes from the end of each file, and did not handle empty
23602         files properly.
23603
23604         maint.mk: print the elapsed time for each syntax-check rule
23605         * top/maint.mk (sc_m_rules_): Save start time in a file.
23606         (sc_z_rules_): New rules: remove temp file and print elapsed time.
23607         (local-check): Interpose the .z rules
23608
23609 2010-04-11  Jim Meyering  <meyering@redhat.com>
23610
23611         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
23612         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
23613         empty file with one that ends in an empty line.
23614
23615 2010-04-10  Bruno Haible  <bruno@clisp.org>
23616
23617         mkdir: Make it work on mingw64.
23618         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
23619         * lib/mkdir.c: Update comment.
23620         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
23621
23622 2010-04-10  Bruno Haible  <bruno@clisp.org>
23623
23624         Don't override improved macro from newer autoconf.
23625         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
23626         autoconf >= 2.62.
23627         Reported by Joel E. Denny <jdenny@clemson.edu>.
23628
23629 2010-04-10  Jim Meyering  <meyering@redhat.com>
23630
23631         maint.mk: new syntax-check rule: prohibit empty lines at end of file
23632         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
23633
23634         maint.mk: correct a diagnostic
23635         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
23636         in diagnostic; now use $prohibit.
23637
23638 2010-04-10  Bruno Haible  <address@hidden>
23639
23640         fchownat: Fix a C++ test error on Solaris 8.
23641         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
23642         the function does not exist.
23643
23644 2010-04-10  Bruno Haible  <bruno@clisp.org>
23645
23646         vasnprintf: Add more tests.
23647         * tests/test-vasnprintf-posix.c: Include <errno.h>.
23648         (test_function): Test converting an invalid wide string.
23649
23650         vasnprintf: Correct handling of unconvertible wide string arguments.
23651         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
23652         VASNPRINTF.
23653         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
23654         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
23655         smaller than the expected maximum need for the directive. Set errno to
23656         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
23657         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
23658         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
23659         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
23660         * modules/vasnprintf (Files): Add m4/printf.m4.
23661         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23662
23663 2010-04-10  Bruno Haible  <bruno@clisp.org>
23664
23665         vasnprintf: Fix crash in %ls directive.
23666         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
23667         string is passed as argument to %ls, with no precision and no width.
23668         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23669
23670 2010-04-10  Bruno Haible  <bruno@clisp.org>
23671
23672         vasnprintf: Fix multiple test failures on mingw.
23673         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
23674         _snprintf, or snwprintf, not _snwprintf.
23675
23676 2010-04-10  Bruno Haible  <bruno@clisp.org>
23677
23678         write: Fix a C++ test error on mingw.
23679         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
23680
23681 2010-04-10  Bruno Haible  <bruno@clisp.org>
23682
23683         vasnprintf test: Reduce code duplication.
23684         * tests/test-vasnprintf.c (test_function): New function, extracted from
23685         test_vasnprintf.
23686         (test_vasnprintf, test_asnprintf): Invoke it.
23687
23688 2010-04-10  Bruno Haible  <bruno@clisp.org>
23689
23690         strnlen: Fix warning in C++ mode on MacOS X.
23691         * lib/string.in.h (strnlen): Use the modern idiom.
23692         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
23693         defining strnlen as a macro already in <config.h>.
23694         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23695         REPLACE_STRNLEN.
23696         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
23697         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23698
23699 2010-04-08  James Youngman  <jay@gnu.org>
23700
23701         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
23702         the example.
23703
23704 2010-04-09  Jim Meyering  <meyering@redhat.com>
23705
23706         maint.mk: print better diagnostic when there is no $(_hv_file)
23707         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
23708         announce that when $(_hv_file) (aka help-version) does not exist.
23709
23710         init.sh: run tr in the "C" locale to avoid multibyte interpretation
23711         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
23712         not try to interpret its random input bytes.  Jarno Rajahalme reported
23713         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
23714         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
23715         (mktempd_): Likewise, just in case.
23716
23717         ftruncate: add two years to projected module removal date: 2012
23718         * m4/ftruncate.m4: Adjust comments.
23719
23720         ftruncate: mark module as obsolete; even MinGW provides it, now
23721         * modules/ftruncate (Status): Obsolete.
23722         (Notice): Say that.
23723         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
23724         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
23725
23726 2010-04-08  Bruno Haible  <bruno@clisp.org>
23727
23728         Fix side effects from tests-related modules.
23729         * modules/dprintf-posix (Comment): New section.
23730         * modules/fprintf-posix (Comment): Likewise.
23731         * modules/obstack-printf-posix (Comment): Likewise.
23732         * modules/printf-posix (Comment): Likewise.
23733         * modules/snprintf-posix (Comment): Likewise.
23734         * modules/sprintf-posix (Comment): Likewise.
23735         * modules/vasnprintf-posix (Comment): Likewise.
23736         * modules/vasprintf-posix (Comment): Likewise.
23737         * modules/vdprintf-posix (Comment): Likewise.
23738         * modules/vfprintf-posix (Comment): Likewise.
23739         * modules/vprintf-posix (Comment): Likewise.
23740         * modules/vsnprintf-posix (Comment): Likewise.
23741         * modules/vsprintf-posix (Comment): Likewise.
23742         * modules/xprintf-posix (Comment): Likewise.
23743         * modules/xvasprintf-posix (Comment): Likewise.
23744         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
23745         * modules/floorf-tests (Depends-on): Likewise.
23746         * modules/round-tests (Depends-on): Likewise.
23747         * modules/roundf-tests (Depends-on): Likewise.
23748         * modules/trunc-tests (Depends-on): Likewise.
23749         * modules/truncf-tests (Depends-on): Likewise.
23750         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
23751         'fprintf-posix' module is not present.
23752         * tests/test-floorf2.c (check): Likewise.
23753         * tests/test-trunc2.c (check): Likewise.
23754         * tests/test-truncf2.c (check): Likewise.
23755         * tests/test-round2.c (equal): Likewise.
23756         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23757
23758 2010-04-07  Karl Berry  <karl@gnu.org>
23759
23760         * config/srclist.txt,
23761         * config/srclistvars.sh,
23762         * config/srclist-update: doc fixes.
23763
23764 2010-04-07  Jim Meyering  <meyering@redhat.com>
23765
23766         maint.mk: add a PATH crosschecking syntax-check rule
23767         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
23768         Useful if you use a test like the one in help-version (coreutils,
23769         diffutils, grep, gzip) that ensures $(VERSION) matches what is
23770         printed by prog --version.
23771
23772 2010-04-06  Bruno Haible  <bruno@clisp.org>
23773
23774         Fix link error on mingw.
23775         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
23776         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
23777
23778 2010-04-06  Bruno Haible  <bruno@clisp.org>
23779
23780         Assume rmdir exists.
23781         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
23782
23783 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
23784
23785         doc: update users.txt
23786         * users.txt: Add gcal.
23787
23788 2010-04-06  Jim Meyering  <meyering@redhat.com>
23789
23790         init.sh: simply unset TMPDIR rather than risking env -i
23791         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
23792         although it probably works fine on all Unix-based systems, some
23793         systems (Cygwin?) cannot tolerate a totally cleared environment.
23794         Suggestion from Eric Blake.
23795
23796 2010-04-06  Jim Meyering  <meyering@redhat.com>
23797
23798         init.sh: portability fix: use env's POSIX-specified -i option not -u
23799         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
23800         than unportable env -u.  Solaris 5.11's env lacks support for -u.
23801
23802 2010-04-05  Bruno Haible  <bruno@clisp.org>
23803
23804         btowc: Work around Cygwin 1.7.2 bug.
23805         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
23806         does not map NUL to 0.
23807         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
23808
23809 2010-04-05  Bruno Haible  <bruno@clisp.org>
23810
23811         Make the multithread modules work on Cygwin 1.7.2.
23812         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
23813         imported symbols can be declared weak, so that it returns "no" on
23814         Cygwin 1.7.2.
23815
23816 2010-04-05  Bruno Haible  <bruno@clisp.org>
23817
23818         Use the module 'strncat'.
23819         * modules/unistr/u8-strncat (Depends-on): Add strncat.
23820
23821         Tests for module 'strncat'.
23822         * modules/strncat-tests: New file.
23823         * tests/test-strncat.c: New file.
23824
23825         New module 'strncat'.
23826         * lib/string.in.h (strncat): New declaration.
23827         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
23828         * m4/strncat.m4: New file, based on m4/memchr.m4.
23829         * modules/strncat: New file.
23830         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
23831         is declared.
23832         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
23833         REPLACE_STRNCAT.
23834         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
23835         REPLACE_STRNCAT.
23836         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
23837         module.
23838         * tests/test-string-c++.cc: Check signature of strncat.
23839
23840 2010-04-05  Jim Meyering  <meyering@redhat.com>
23841
23842         xstrtoumax-tests: convert to use init.sh
23843         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
23844         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23845         Use Exit, not exit.
23846         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23847
23848         xstrtoimax-tests: convert to use init.sh
23849         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
23850         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23851         Use Exit, not exit.
23852         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23853
23854 2010-04-05  Bruno Haible  <bruno@clisp.org>
23855
23856         sys_socket: Avoid #define replacements in C++ mode.
23857         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
23858         warning to the function if possible, rather than #defining the symbol
23859         to a dysfunctional alias.
23860
23861 2010-04-05  Bruno Haible  <bruno@clisp.org>
23862
23863         fseeko: Fix C++ test error on mingw.
23864         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
23865         gl_FUNC_FSEEKO.
23866         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
23867         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
23868         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
23869         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
23870
23871 2010-04-05  Bruno Haible  <bruno@clisp.org>
23872
23873         duplocale: Improve test output.
23874         * tests/test-duplocale.c (main): Print reason for skipped test.
23875
23876 2010-04-05  Bruno Haible  <bruno@clisp.org>
23877
23878         Assume rmdir exists.
23879         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
23880         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
23881
23882 2010-04-05  Bruno Haible  <bruno@clisp.org>
23883
23884         Fix link error on Solaris 8 with cc.
23885         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
23886
23887 2010-04-05  Bruno Haible  <bruno@clisp.org>
23888
23889         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23890         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
23891
23892 2010-04-05  Bruno Haible  <bruno@clisp.org>
23893
23894         vasprintf: Update documentation.
23895         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
23896
23897 2010-04-05  Bruno Haible  <bruno@clisp.org>
23898
23899         ptsname: Improve test.
23900         * tests/test-ptsname.c (main): Also try the various master names of BSD
23901         systems.
23902
23903 2010-04-05  Bruno Haible  <bruno@clisp.org>
23904
23905         memchr: Avoid a possible C++ test error.
23906         * lib/string.in.h (memchr): Provide declaration if function is missing.
23907         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
23908         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
23909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
23910         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
23911
23912 2010-04-05  Bruno Haible  <bruno@clisp.org>
23913
23914         strtok_r: Improve idiom.
23915         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
23916         AC_LIBOBJ is used.
23917
23918 2010-04-05  Bruno Haible  <bruno@clisp.org>
23919
23920         strdup: Improve idiom.
23921         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
23922         AC_LIBOBJ is used.
23923         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
23924         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
23925         when AC_LIBOBJ is used.
23926
23927 2010-04-05  Bruno Haible  <bruno@clisp.org>
23928
23929         mbsinit, mbrtowc, wcrtomb: Improve idioms.
23930         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
23931         don't set REPLACE_MBSINIT to 1.
23932         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
23933         don't set REPLACE_MBRTOWC to 1.
23934         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
23935         exist, don't set REPLACE_MBSRTOWCS to 1.
23936         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
23937         exist, don't set REPLACE_MBSNRTOWCS to 1.
23938         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
23939         don't set REPLACE_WCRTOMB to 1.
23940         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
23941         exist, don't set REPLACE_WCSRTOMBS to 1.
23942         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
23943         exist, don't set REPLACE_WCSNRTOMBS to 1.
23944
23945 2010-04-05  Bruno Haible  <bruno@clisp.org>
23946
23947         ldexpl: Improve idiom.
23948         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
23949         make sure to set HAVE_DECL_LDEXPL to 0.
23950
23951 2010-04-05  Jim Meyering  <meyering@redhat.com>
23952
23953         xstrtol-tests: convert to use init.sh
23954         * modules/xstrtol-tests (Files): Add tests/init.sh.
23955         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23956         Use Exit, not exit.
23957         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23958
23959         atexit-tests: convert to use init.sh
23960         * modules/atexit-tests (Files): Add tests/init.sh.
23961         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23962         Use Exit, not exit.
23963         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23964
23965         init.sh: fix typo
23966         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
23967
23968         init.sh: make it easier for a test script to write to the tty, ...
23969         when using automake's parallel-tests mode.
23970         * tests/init.sh (stderr_fileno_): Define overridable variable.
23971         (warn_): New function, to use it.
23972         (fail_, skip_, framework_failure_): Use warn_.
23973
23974 2010-04-04  Bruno Haible  <bruno@clisp.org>
23975
23976         btowc: Avoid warning.
23977         * lib/btowc.c: Include <stdlib.h>.
23978         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
23979
23980 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23981             Bruno Haible  <bruno@clisp.org>
23982
23983         wchar: Port to NetBSD 1.5.
23984         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
23985         * lib/wctype.in.h (WEOF): Likewise.
23986
23987 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23988             Bruno Haible  <bruno@clisp.org>
23989
23990         Port extended stdio to NetBSD 1.5.
23991         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
23992         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
23993         older.
23994
23995 2010-04-04  Bruno Haible  <bruno@clisp.org>
23996
23997         string: Remove unused substitution.
23998         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
23999         HAVE_DECL_STRERROR.
24000         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24001
24002 2010-04-04  Bruno Haible  <bruno@clisp.org>
24003
24004         strtod: Avoid a possible C++ test error.
24005         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24006         set REPLACE_STRTOD.
24007
24008 2010-04-04  Bruno Haible  <bruno@clisp.org>
24009
24010         strerror: Update documentation.
24011         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24012
24013 2010-04-04  Bruno Haible  <bruno@clisp.org>
24014
24015         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24016         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24017         _GL_CXXALIAS_SYS_CAST.
24018
24019 2010-04-04  Bruno Haible  <bruno@clisp.org>
24020
24021         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24022         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24023         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24024         REPLACE_FREXPL to 1.
24025         * doc/posix-functions/frexpl.texi: Update documentation.
24026
24027 2010-04-04  Bruno Haible  <bruno@clisp.org>
24028
24029         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24030         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24031
24032 2010-04-04  Bruno Haible  <bruno@clisp.org>
24033
24034         Implement nanosleep for native Windows.
24035         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24036
24037 2010-04-04  Bruno Haible  <bruno@clisp.org>
24038
24039         math: Fix some C++ test errors on Solaris 8.
24040         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24041
24042 2010-04-04  Bruno Haible  <bruno@clisp.org>
24043
24044         math: Fix some C++ test errors on Cygwin.
24045         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24046         truncl): Provide declaration if the system does not have it.
24047         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24048         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24049         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24050         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24051         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24052         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24053         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24054         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24055         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24056         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24057         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24058         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24059         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24060         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24061         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24062         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24064         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24065         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24066         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24067         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24068         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24069
24070 2010-04-04  Bruno Haible  <bruno@clisp.org>
24071
24072         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24073         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24074         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24075         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24076         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24077         * m4/isinf.m4 (gl_ISINF): Likewise.
24078         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24079
24080 2010-04-04  Bruno Haible  <bruno@clisp.org>
24081
24082         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24083         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24084
24085 2010-04-04  Bruno Haible  <bruno@clisp.org>
24086
24087         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24088         * modules/tmpfile (configure.ac): Update.
24089
24090         tmpfile: Fix C++ test error on mingw.
24091         * lib/stdio.in.h (tmpfile): New declaration.
24092         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24093         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24094         * modules/tmpfile (Depends-on): Add stdio.
24095         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24096         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24097         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24098         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24099         REPLACE_TMPFILE.
24100         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24101
24102 2010-04-04  Bruno Haible  <bruno@clisp.org>
24103
24104         ioctl: Fix C++ test error on mingw.
24105         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24106         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24107         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24108
24109 2010-04-03  Bruno Haible  <bruno@clisp.org>
24110
24111         wcwidth: Fix C++ test error on mingw.
24112         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24113         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24114         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24115
24116 2010-04-03  Bruno Haible  <bruno@clisp.org>
24117
24118         nanosleep: Fix C++ test error on mingw.
24119         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24120         * lib/time.in.h (nanosleep): Use modern idiom.
24121         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24122         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24123         REPLACE_NANOSLEEP to 1.
24124         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24125         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24126
24127 2010-04-03  Bruno Haible  <bruno@clisp.org>
24128
24129         strptime: Fix C++ test error on mingw.
24130         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24131         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24132         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24133         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24134         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24135         not REPLACE_STRPTIME.
24136         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24137         REPLACE_STRPTIME.
24138
24139 2010-04-03  Bruno Haible  <bruno@clisp.org>
24140
24141         timegm: Fix C++ test error on mingw.
24142         * lib/time.in.h (timegm): Use modern idiom.
24143         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24144         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24145         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24146         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24147
24148 2010-04-03  Bruno Haible  <bruno@clisp.org>
24149
24150         timegm: Assume declaration if function exists.
24151         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24152         if it exists. Don't clobber ac_cv_func_timegm.
24153
24154 2010-04-03  Bruno Haible  <bruno@clisp.org>
24155
24156         time_r: Fix C++ test error on mingw.
24157         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24158         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24159         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24160         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24161         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24162
24163 2010-04-03  Bruno Haible  <bruno@clisp.org>
24164
24165         time_r: Minor updates.
24166         * modules/time_r (Description): Mention the provided functions.
24167         * lib/time_r.c: Don't include <string.h>.
24168         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24169         * doc/posix-functions/localtime_r.texi: Likewise.
24170
24171 2010-04-03  Bruno Haible  <bruno@clisp.org>
24172
24173         time: Fix regression introduced on 2010-03-08.
24174         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24175         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24176
24177 2010-04-03  Jim Meyering  <meyering@redhat.com>
24178
24179         maint.mk: don't silently disable project-specific syntax-check rules
24180         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24181         that they need to convert their project-specific syntax-check rules
24182         to use the new _sc_search_regexp.
24183
24184 2010-04-03  Bruno Haible  <bruno@clisp.org>
24185
24186         fchdir: Fix regression introduced on 2010-03-08.
24187         * lib/unistd.in.h (fchdir): Fix declaration.
24188         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24190         REPLACE_FCHDIR.
24191         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24192         REPLACE_FCHDIR.
24193
24194 2010-04-03  Bruno Haible  <bruno@clisp.org>
24195
24196         getpagesize: Fix C++ test error on mingw.
24197         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24198         system does not declare the function.
24199         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24200         declared.
24201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24202         HAVE_DECL_GETPAGESIZE.
24203         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24204
24205 2010-04-03  Bruno Haible  <bruno@clisp.org>
24206
24207         stdio: Make C++ tests work on mingw.
24208         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24209         does not declare the function.
24210
24211 2010-04-03  Bruno Haible  <bruno@clisp.org>
24212
24213         ftello: Fix C++ test error on mingw.
24214         * lib/stdio.in.h (ftello): Use modern idiom.
24215         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24216         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24217         is missing and that it needs to be replaced.
24218         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24220         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24221
24222 2010-04-03  Bruno Haible  <bruno@clisp.org>
24223
24224         fseeko: Fix C++ test error on mingw.
24225         * lib/stdio.in.h (fseeko): Use modern idiom.
24226         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24227         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24228         is missing and that it needs to be replaced.
24229         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24231         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24232
24233 2010-04-03  Bruno Haible  <bruno@clisp.org>
24234
24235         mkstemp: Fix C++ test error on mingw.
24236         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24237         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24238         function is missing and that it needs to be replaced.
24239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24240         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24241
24242 2010-04-03  Bruno Haible  <bruno@clisp.org>
24243
24244         stpncpy: Fix C++ test error on mingw.
24245         * lib/string.in.h (stpncpy): Use modern idiom.
24246         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24247         function is missing and that it needs to be replaced.
24248         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24249         REPLACE_STPNCPY.
24250         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24251
24252 2010-04-03  Bruno Haible  <bruno@clisp.org>
24253
24254         sys_stat: Fix C++ test error on mingw.
24255         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24256         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24257
24258 2010-04-03  Bruno Haible  <bruno@clisp.org>
24259
24260         pty: Update doc.
24261         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24262
24263 2010-04-03  Bruno Haible  <bruno@clisp.org>
24264
24265         unistd: Fix C++ test error on mingw.
24266         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24267
24268 2010-04-03  Bruno Haible  <bruno@clisp.org>
24269
24270         Update doc regarding mingw.
24271         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24272         * doc/glibc-functions/login_tty.texi: Likewise.
24273         * doc/glibc-functions/forkpty.texi: Likewise.
24274
24275 2010-04-03  Bruno Haible  <bruno@clisp.org>
24276
24277         stdlib: Avoid compilation failure of c-strtold on mingw.
24278         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24279
24280 2010-04-03  Bruno Haible  <bruno@clisp.org>
24281
24282         locale: Make C++ tests work on Cygwin and mingw.
24283         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24284         cannot provide the function.
24285         Reported by Simon Josefsson.
24286
24287 2010-04-03  Bruno Haible  <bruno@clisp.org>
24288
24289         localename: Port to MacOS X 10.6.
24290         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24291         memory layout of the locales in MacOS X 10.6 as well.
24292         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24293
24294 2010-04-02  Bruno Haible  <bruno@clisp.org>
24295
24296         gnulib-tool: Ensure that long-running tests are executed last.
24297         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24298         running tests after the one for the other tests.
24299
24300 2010-04-02  Bruno Haible  <bruno@clisp.org>
24301
24302         gnulib-tool: Ensure the tests in the main directory are executed first.
24303         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24304         start with the current directory.
24305
24306 2010-04-02  Bruno Haible  <bruno@clisp.org>
24307
24308         Tests for module 'havelib', moved here from GNU gettext.
24309         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24310         modifications.
24311         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24312         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24313         with modifications.
24314         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24315         modifications.
24316         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24317         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24318         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24319         with modifications.
24320         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24321         with modifications.
24322         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24323         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24324         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24325         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24326         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24327         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24328         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24329         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24330         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24331         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24332         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24333         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24334         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24335         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24336         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24337         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24338         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24339         with modifications.
24340         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24341         with modifications.
24342         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24343         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24344         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24345         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24346         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24347         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24348         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24349         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24350         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24351         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24352         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24353         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
24354         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
24355         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
24356         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
24357         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
24358         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
24359         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
24360         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
24361         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
24362         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
24363         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
24364         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
24365         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
24366         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
24367         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
24368         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
24369         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
24370         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
24371         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
24372         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
24373         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
24374         * tests/havelib/rpathx/rpathx.c: New file, from
24375         gettext/autoconf-lib-link.
24376         * tests/havelib/rpathx/Makefile.am: New file, from
24377         gettext/autoconf-lib-link.
24378         * tests/havelib/rpathx/configure.ac: New file, from
24379         gettext/autoconf-lib-link with modifications.
24380         * tests/havelib/rpathy/rpathy.c: New file, from
24381         gettext/autoconf-lib-link.
24382         * tests/havelib/rpathy/Makefile.am: New file, from
24383         gettext/autoconf-lib-link.
24384         * tests/havelib/rpathy/configure.ac: New file, from
24385         gettext/autoconf-lib-link with modifications.
24386         * tests/havelib/rpathz/rpathz.c: New file, from
24387         gettext/autoconf-lib-link.
24388         * tests/havelib/rpathz/Makefile.am: New file, from
24389         gettext/autoconf-lib-link.
24390         * tests/havelib/rpathz/configure.ac: New file, from
24391         gettext/autoconf-lib-link with modifications.
24392         * tests/havelib/rpathlx/usex.c: New file, from
24393         gettext/autoconf-lib-link.
24394         * tests/havelib/rpathlx/Makefile.am: New file, from
24395         gettext/autoconf-lib-link.
24396         * tests/havelib/rpathlx/configure.ac: New file, from
24397         gettext/autoconf-lib-link with modifications.
24398         * tests/havelib/rpathly/usey.c: New file, from
24399         gettext/autoconf-lib-link.
24400         * tests/havelib/rpathly/Makefile.am: New file, from
24401         gettext/autoconf-lib-link.
24402         * tests/havelib/rpathly/configure.ac: New file, from
24403         gettext/autoconf-lib-link with modifications.
24404         * tests/havelib/rpathlz/usez.c: New file, from
24405         gettext/autoconf-lib-link.
24406         * tests/havelib/rpathlz/Makefile.am: New file, from
24407         gettext/autoconf-lib-link.
24408         * tests/havelib/rpathlz/configure.ac: New file, from
24409         gettext/autoconf-lib-link with modifications.
24410         * tests/havelib/rpathlyx/usey.c: New file, from
24411         gettext/autoconf-lib-link.
24412         * tests/havelib/rpathlyx/Makefile.am: New file, from
24413         gettext/autoconf-lib-link.
24414         * tests/havelib/rpathlyx/configure.ac: New file, from
24415         gettext/autoconf-lib-link with modifications.
24416         * tests/havelib/rpathlzyx/usez.c: New file, from
24417         gettext/autoconf-lib-link.
24418         * tests/havelib/rpathlzyx/Makefile.am: New file, from
24419         gettext/autoconf-lib-link.
24420         * tests/havelib/rpathlzyx/configure.ac: New file, from
24421         gettext/autoconf-lib-link with modifications.
24422         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
24423         with modifications.
24424
24425 2010-04-02  Bruno Haible  <bruno@clisp.org>
24426
24427         gnulib-tool: Create distributed built sources also for the tests.
24428         * gnulib-tool (func_create_testdir): Also generate distributed built
24429         sources in the tests directory.
24430
24431 2010-04-02  Bruno Haible  <bruno@clisp.org>
24432
24433         gnulib-tool: Obey user's environment variables.
24434         * gnulib-tool (func_create_testdir): When creating built sources,
24435         respect the environment variables for autoconf, automake, etc. given by
24436         the user.
24437
24438 2010-04-02  Bruno Haible  <bruno@clisp.org>
24439
24440         gnulib-tool: Provide the value of --m4-base to modules.
24441         * gnulib-tool (func_import, func_create_testdir): Emit a definition
24442         of gl_m4_base.
24443
24444 2010-04-02  Eric Blake  <eblake@redhat.com>
24445
24446         maint.mk: fix some fallout
24447         * NEWS: Document the incompatible change, and its effect on cfg.mk.
24448         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
24449
24450 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24451
24452         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24453         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24454         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24455         (sc_cast_of_x_alloc_return_value): Likewise.
24456         (sc_cast_of_alloca_return_value): Likewise.
24457         (sc_space_tab): Likewise.
24458         (sc_prohibit_atoi_atof): Likewise.
24459         (sc_prohibit_magic_number_exit): Likewise.
24460         (sc_error_exit_success): Likewise.
24461         (sc_file_system): Likewise.
24462         (sc_prohibit_have_config_h): Likewise.
24463         (sc_require_config_h): Likewise.
24464         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24465         (sc_obsolete_symbols): Likewise.
24466         (sc_changelog): Likewise.
24467         (sc_program_name): Likewise.
24468         (sc_the_the): Likewise.
24469         (sc_trailing_blank): Likewise.
24470         (sc_two_space_separator_in_usage): Likewise.
24471         (sc_useless_cpp_parens): Likewise.
24472         (sc_GPL_version): Likewise.
24473         (sc_GFDL_version): Likewise.
24474         (sc_texinfo_acronym): Likewise.
24475         (sc_prohibit_cvs_keyword): Likewise.
24476         (sc_prohibit_stat_st_blocks): Likewise.
24477         (sc_prohibit_S_IS_definition): Likewise.
24478         (sc_redundant_const): Likewise.
24479         (sc_makefile_TAB_only_indentation): Likewise.
24480         (sc_m4_quote_check): Likewise.
24481         (sc_makefile_path_separator_check): Likewise.
24482         (sc_copyright_check): Likewise.
24483         (sc_Wundef_boolean): Likewise.
24484         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24485
24486         maint.mk: match 0 or more whitespace-before-function-call '('
24487         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
24488         that have zero or two-and-more spaces between the function name
24489         and the open parenthesis.
24490         (sc_error_message_warn_fatal): Likewise.
24491         (sc_error_message_uppercase): Likewise.
24492         (sc_error_message_period): Likewise.
24493
24494 2010-03-31  Eric Blake  <eblake@redhat.com>
24495
24496         maint.mk: check for [ as well as test
24497         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
24498         Based on a libvirt report by Matthias Bolte.
24499
24500         gnumakefile: don't squelch _version output
24501         * top/GNUmakefile (_version): Create one-shot dependency rather
24502         than using $(shell) when version must be regenerated.
24503         (_autoreconf): Run verbosely, by default.
24504
24505         sys_time: avoid compiler warnings
24506         * lib/sys_time.in.h (includes): Ensure gcc pragma is
24507         unconditional, fixing regression from 2010-03-29.
24508         Reported by Simon Josefsson.
24509
24510 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24511
24512         maint.mk: s/_header_without_use/_sc_header_without_use/
24513         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
24514         (sc_prohibit_assert_without_use): Use the new name.
24515         (sc_prohibit_close_stream_without_use): Likewise.
24516         (sc_prohibit_getopt_without_use): Likewise.
24517         (sc_prohibit_quotearg_without_use): Likewise.
24518         (sc_prohibit_quote_without_use): Likewise.
24519         (sc_prohibit_long_options_without_use): Likewise.
24520         (sc_prohibit_inttostr_without_use): Likewise.
24521         (sc_prohibit_ignore_value_without_use): Likewise.
24522         (sc_prohibit_error_without_use): Likewise.
24523         (sc_prohibit_xalloc_without_use): Likewise.
24524         (sc_prohibit_hash_without_use): Likewise.
24525         (sc_prohibit_hash_pjw_without_use): Likewise.
24526         (sc_prohibit_safe_read_without_use): Likewise.
24527         (sc_prohibit_argmatch_without_use): Likewise.
24528         (sc_prohibit_canonicalize_without_use): Likewise.
24529         (sc_prohibit_root_dev_ino_without_use): Likewise.
24530         (sc_prohibit_openat_without_use): Likewise.
24531         (sc_prohibit_c_ctype_without_use): Likewise.
24532         (sc_prohibit_signal_without_use): Likewise.
24533         (sc_prohibit_intprops_without_use): Likewise.
24534
24535 2010-03-30  Eric Blake  <eblake@redhat.com>
24536
24537         maint: improve module indicators
24538         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
24539         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
24540         columns, and avoid extra macro expansion.
24541
24542         fdopendir: work around FreeBSD bug
24543         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24544         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
24545         * modules/dirent (Makefile.am): Substitute it.
24546         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
24547         declaration.
24548         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
24549         fix.
24550         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24551
24552 2010-03-29  Bruno Haible  <bruno@clisp.org>
24553
24554         Emit #pragma system_header after the inclusion guard, not before.
24555         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
24556         guard that spans the entire file, not before. This enables an
24557         optimization in GCC's preprocessor.
24558         * lib/ctype.in.h: Likewise.
24559         * lib/dirent.in.h: Likewise.
24560         * lib/errno.in.h: Likewise.
24561         * lib/float.in.h: Likewise.
24562         * lib/getopt.in.h: Likewise.
24563         * lib/iconv.in.h: Likewise.
24564         * lib/langinfo.in.h: Likewise.
24565         * lib/locale.in.h: Likewise.
24566         * lib/math.in.h: Likewise.
24567         * lib/netdb.in.h: Likewise.
24568         * lib/netinet_in.in.h: Likewise.
24569         * lib/pty.in.h: Likewise.
24570         * lib/sched.in.h: Likewise.
24571         * lib/se-selinux.in.h: Likewise.
24572         * lib/search.in.h: Likewise.
24573         * lib/spawn.in.h: Likewise.
24574         * lib/stdarg.in.h: Likewise.
24575         * lib/stdint.in.h: Likewise.
24576         * lib/string.in.h: Likewise.
24577         * lib/strings.in.h: Likewise.
24578         * lib/sys_file.in.h: Likewise.
24579         * lib/sys_ioctl.in.h: Likewise.
24580         * lib/sys_time.in.h: Likewise.
24581         * lib/sys_times.in.h: Likewise.
24582         * lib/sys_utsname.in.h: Likewise.
24583         * lib/sys_wait.in.h: Likewise.
24584         * lib/sysexits.in.h: Likewise.
24585         * lib/wctype.in.h: Likewise.
24586
24587 2010-03-28  James Youngman  <jay@gnu.org>
24588
24589         save-cwd: don't leak a file descriptor when the caller execs.
24590         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
24591         saved file descriptor.
24592         * modules/save-cwd (Depends-on): Depend on cloexec.
24593
24594 2010-03-29  Bruno Haible  <bruno@clisp.org>
24595
24596         Remove vestiges of fts-lgpl module.
24597         * lib/fts_.h: Assume GNULIB_FTS is 1.
24598         * lib/fts.c: Likewise.
24599         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24600
24601 2010-03-28  Bruno Haible  <bruno@clisp.org>
24602
24603         Fix definition of tests witness macro.
24604         * gnulib-tool (func_import): Fix definition of witness macro.
24605
24606 2010-03-28  Bruno Haible  <bruno@clisp.org>
24607
24608         Fix ioctl's protoype on glibc systems.
24609         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
24610         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
24611         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
24612         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
24613         signature. If not, arrange to replace the ioctl function.
24614         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24615         REPLACE_IOCTL.
24616         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
24617         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
24618         Reported by Ludovic Courtès <ludo@gnu.org>.
24619
24620 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
24621
24622         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
24623         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
24624         made it so grep -r --include=GLOB* ... did not work.
24625
24626 2010-03-26  Jim Meyering  <meyering@redhat.com>
24627             Eric Blake  <eblake@redhat.com>
24628
24629         maint.mk: prohibit use of test's -o and -a operators
24630         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
24631
24632 2010-03-28  Bruno Haible  <bruno@clisp.org>
24633
24634         Remove unused GNULIB_XYZ macro definitions.
24635         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
24636         invocation.
24637
24638 2010-03-28  Bruno Haible  <bruno@clisp.org>
24639
24640         Mark privileged tests modules.
24641         * modules/idpriv-drop-tests (Status): New section.
24642         * modules/idpriv-droptemp-tests (Status): New section.
24643
24644 2010-03-28  Bruno Haible  <bruno@clisp.org>
24645
24646         Split C++ tests into separate tests modules.
24647         * modules/dirent-c++-tests: New file, extracted from
24648         modules/dirent-tests.
24649         * modules/dirent-tests: Depend on it.
24650         * modules/fcntl-h-c++-tests: New file, extracted from
24651         modules/fcntl-h-tests.
24652         * modules/fcntl-h-tests: Depend on it.
24653         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
24654         * modules/glob-tests: Depend on it.
24655         * modules/iconv-h-c++-tests: New file, extracted from
24656         modules/iconv-h-tests.
24657         * modules/iconv-h-tests: Depend on it.
24658         * modules/langinfo-c++-tests: New file, extracted from
24659         modules/langinfo-tests.
24660         * modules/langinfo-tests: Depend on it.
24661         * modules/locale-c++-tests: New file, extracted from
24662         modules/locale-tests.
24663         * modules/locale-tests: Depend on it.
24664         * modules/math-c++-tests: New file, extracted from modules/math-tests.
24665         * modules/math-tests: Depend on it.
24666         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
24667         * modules/pty-tests: Depend on it.
24668         * modules/search-c++-tests: New file, extracted from
24669         modules/search-tests.
24670         * modules/search-tests: Depend on it.
24671         * modules/signal-c++-tests: New file, extracted from
24672         modules/signal-tests.
24673         * modules/signal-tests: Depend on it.
24674         * modules/spawn-c++-tests: New file, extracted from
24675         modules/spawn-tests.
24676         * modules/spawn-tests: Depend on it.
24677         * modules/stdio-c++-tests: New file, extracted from
24678         modules/stdio-tests.
24679         * modules/stdio-tests: Depend on it.
24680         * modules/stdlib-c++-tests: New file, extracted from
24681         modules/stdlib-tests.
24682         * modules/stdlib-tests: Depend on it.
24683         * modules/string-c++-tests: New file, extracted from
24684         modules/string-tests.
24685         * modules/string-tests: Depend on it.
24686         * modules/sys_ioctl-c++-tests: New file, extracted from
24687         modules/sys_ioctl-tests.
24688         * modules/sys_ioctl-tests: Depend on it.
24689         * modules/sys_select-c++-tests: New file, extracted from
24690         modules/sys_select-tests.
24691         * modules/sys_select-tests: Depend on it.
24692         * modules/sys_socket-c++-tests: New file, extracted from
24693         modules/sys_socket-tests.
24694         * modules/sys_socket-tests: Depend on it.
24695         * modules/sys_stat-c++-tests: New file, extracted from
24696         modules/sys_stat-tests.
24697         * modules/sys_stat-tests: Depend on it.
24698         * modules/sys_time-c++-tests: New file, extracted from
24699         modules/sys_time-tests.
24700         * modules/sys_time-tests: Depend on it.
24701         * modules/time-c++-tests: New file, extracted from modules/time-tests.
24702         * modules/time-tests: Depend on it.
24703         * modules/unistd-c++-tests: New file, extracted from
24704         modules/unistd-tests.
24705         * modules/unistd-tests: Depend on it.
24706         * modules/wchar-c++-tests: New file, extracted from
24707         modules/wchar-tests.
24708         * modules/wchar-tests: Depend on it.
24709         * modules/wctype-c++-tests: New file, extracted from
24710         modules/wctype-tests.
24711         * modules/wctype-tests: Depend on it.
24712         Reported by Simon Josefsson.
24713
24714 2010-03-28  Bruno Haible  <bruno@clisp.org>
24715
24716         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
24717         * gnulib-tool (func_exists_module): New function, extracted from
24718         func_verify_module.
24719         (func_verify_module): Use it.
24720         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
24721         'foo' only if 'foo' exists.
24722         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
24723         module.
24724
24725 2010-03-28  Bruno Haible  <bruno@clisp.org>
24726
24727         gnulib-tool: Add support for special categories of tests.
24728         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
24729         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
24730         (func_usage): Document them.
24731         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
24732         inc_unportable_tests, inc_all_tests): New variables.
24733         (func_acceptable): Consider these variables.
24734         (func_modules_transitive_closure): Make it work when the 'Status' field
24735         consists of multiple words.
24736         (func_import): Store and restore the values of inc_cxx_tests,
24737         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
24738         inc_all_tests in gnulib-comp.m4.
24739         (func_create_testdir): Set inc_all_tests to true.
24740         * doc/gnulib.texi (Extra tests modules): New section.
24741         Suggested by Jim Meyering.
24742
24743 2010-03-28  Bruno Haible  <bruno@clisp.org>
24744
24745         ansi-c++-opt: Allow turning off the C++ build by default.
24746         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
24747         gl_CXX_CHOICE_DEFAULT_NO is defined.
24748         Requested by Eric Blake.
24749
24750 2010-03-28  Bruno Haible  <bruno@clisp.org>
24751
24752         unistd: Avoid #define replacements in C++ mode.
24753         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
24754         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
24755         setsockopt, shutdown, select): In C++, attach a warning to the function
24756         if possible, rather than #defining the symbol to a dysfunctional alias.
24757         Reported by John W. Eaton <jwe@gnu.org>.
24758
24759 2010-03-28  Bruno Haible  <bruno@clisp.org>
24760
24761         Fix link errors on mingw.
24762         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
24763         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
24764         $(LIBSOCKET).
24765         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
24766         $(LIBSOCKET).
24767
24768 2010-03-28  Bruno Haible  <bruno@clisp.org>
24769             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24770
24771         lib-ignore: Determine different options for different compilers.
24772         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
24773         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
24774         Add comments.
24775         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
24776         * NEWS: Mention the change.
24777
24778 2010-03-27  Bruno Haible  <bruno@clisp.org>
24779
24780         Remove unused GNULIB_XYZ macro definitions.
24781         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24782         * modules/fseek (configure.ac): Likewise.
24783         * modules/ioctl (configure.ac): Likewise.
24784         * modules/open (configure.ac): Likewise.
24785         * modules/stdlib-safer (configure.ac): Likewise.
24786
24787 2010-03-27  Bruno Haible  <bruno@clisp.org>
24788
24789         Add a remark about certain modules.
24790         * modules/malloc (Comment): New section.
24791         * modules/realloc (Comment): Likewise.
24792         * modules/sigpipe (Comment): Likewise.
24793
24794 2010-03-27  Bruno Haible  <bruno@clisp.org>
24795
24796         Resolve conflict between the two kinds of module indicators.
24797         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
24798         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
24799         * modules/canonicalize (configure.ac): Invoke
24800         gl_MODULE_INDICATOR_FOR_TESTS.
24801         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
24802         GNULIB_XYZ.
24803         * tests/test-dirent-c++.cc: Likewise.
24804         * tests/test-dirent-safer.c: Likewise.
24805         * tests/test-dup2.c: Likewise.
24806         * tests/test-fchdir.c: Likewise.
24807         * tests/test-fcntl-h-c++.cc: Likewise.
24808         * tests/test-getopt.c: Likewise.
24809         * tests/test-getopt.h: Likewise.
24810         * tests/test-langinfo-c++.cc: Likewise.
24811         * tests/test-locale-c++.cc: Likewise.
24812         * tests/test-math-c++.cc: Likewise.
24813         * tests/test-pty-c++.cc: Likewise.
24814         * tests/test-search-c++.cc: Likewise.
24815         * tests/test-signal-c++.cc: Likewise.
24816         * tests/test-spawn-c++.cc: Likewise.
24817         * tests/test-stdio-c++.cc: Likewise.
24818         * tests/test-stdlib-c++.cc: Likewise.
24819         * tests/test-string-c++.cc: Likewise.
24820         * tests/test-sys_ioctl-c++.cc: Likewise.
24821         * tests/test-sys_select-c++.cc: Likewise.
24822         * tests/test-sys_socket-c++.cc: Likewise.
24823         * tests/test-sys_stat-c++.cc: Likewise.
24824         * tests/test-sys_time-c++.cc: Likewise.
24825         * tests/test-time-c++.cc: Likewise.
24826         * tests/test-unistd-c++.cc: Likewise.
24827         * tests/test-wchar-c++.cc: Likewise.
24828         * tests/uninorm/test-u8-nfc.c: Likewise.
24829         * tests/uninorm/test-u8-nfd.c: Likewise.
24830         * tests/uninorm/test-u8-nfkc.c: Likewise.
24831         * tests/uninorm/test-u8-nfkd.c: Likewise.
24832         * tests/uninorm/test-u16-nfc.c: Likewise.
24833         * tests/uninorm/test-u16-nfd.c: Likewise.
24834         * tests/uninorm/test-u16-nfkc.c: Likewise.
24835         * tests/uninorm/test-u16-nfkd.c: Likewise.
24836         * tests/uninorm/test-u32-nfc.c: Likewise.
24837         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24838         * tests/uninorm/test-u32-nfd.c: Likewise.
24839         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24840         * tests/uninorm/test-u32-nfkc.c: Likewise.
24841         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24842         * tests/uninorm/test-u32-nfkd.c: Likewise.
24843         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24844         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24845
24846 2010-03-27  Bruno Haible  <bruno@clisp.org>
24847
24848         Distinguish two kinds of module indicators.
24849         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
24850         gl_MODULE_INDICATOR.
24851         (gl_MODULE_INDICATOR): New macro.
24852         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24853         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
24854         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24855         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24856         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24857         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24858         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24859         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24860         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24861         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24862         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24863         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24864         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24865         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24866         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24867         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24868         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24869         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24870         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24871         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24872         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24873         * modules/cloexec (configure.ac): Likewise.
24874         * modules/getopt-gnu (configure.ac): Likewise.
24875         * modules/uninorm/u8-normalize (configure.ac): Likewise.
24876         * modules/uninorm/u16-normalize (configure.ac): Likewise.
24877         * modules/uninorm/u32-normalize (configure.ac): Likewise.
24878         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
24879
24880 2010-03-27  Bruno Haible  <bruno@clisp.org>
24881
24882         New module description field 'Comment'.
24883         * gnulib-tool: New option --extract-comment.
24884         (func_usage): Document it.
24885         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
24886         (func_get_comment): New function.
24887         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
24888
24889 2010-03-27  Bruno Haible  <bruno@clisp.org>
24890
24891         Addendum to 2010-02-07 commit.
24892         * gnulib-tool (func_usage): Document --extract-applicability option.
24893
24894 2010-03-27  Bruno Haible  <bruno@clisp.org>
24895
24896         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
24897         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
24898         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
24899         rather than link errors.
24900
24901 2010-03-27  Bruno Haible  <bruno@clisp.org>
24902
24903         Avoid side effects from tests-related modules on the compilation of lib.
24904         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
24905         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
24906         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
24907         parameter. Emit into AM_CPPFLAGS a definition of the designated C
24908         macro.
24909         (func_import): Define a witness macro. Assign it a value that depends
24910         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
24911         tests-related modules.
24912         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
24913         Reported by Jim Meyering.
24914
24915 2010-03-27  Bruno Haible  <bruno@clisp.org>
24916
24917         Factorize common .m4 code.
24918         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
24919         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
24920         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
24921         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
24922         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24923         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
24924         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
24925         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24926         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24927         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24928         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
24929         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24930         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24931         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24932         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24933         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
24934         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24935         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24936         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24937         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
24938         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
24939         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24940         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24941         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24942         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24943         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24944         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
24945         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
24946         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
24947         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24948         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24949         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24950
24951 2010-03-27  Bruno Haible  <bruno@clisp.org>
24952
24953         Fix a compilation error on Cygwin with g++ >= 4.3.
24954         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
24955         if it is undefined or if we alias it to chmod.
24956         (lstat): Don't warn about the use of this function if it is undefined
24957         or if we alias it to stat.
24958         Reported by Simon Josefsson.
24959
24960 2010-03-27  Bruno Haible  <bruno@clisp.org>
24961
24962         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
24963         * modules/getlogin (configure.ac): Update.
24964
24965         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
24966         * modules/getlogin_r (configure.ac): Update.
24967
24968         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
24969         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
24970         * modules/inet_ntop (configure.ac): Update.
24971
24972         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
24973         * modules/inet_pton (configure.ac): Update.
24974
24975         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
24976         * modules/mbslen (configure.ac): Update.
24977
24978         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
24979         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
24980         * modules/forkpty (configure.ac): Update.
24981         * modules/openpty (configure.ac): Update.
24982
24983 2010-03-26  Simon Josefsson  <simon@josefsson.org>
24984
24985         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
24986         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
24987
24988 2010-03-25  Eric Blake  <eblake@redhat.com>
24989
24990         maint: use pragma consistently across replacement headers
24991         * lib/ctype.in.h (system_header): Hoist for consistent placement.
24992         * lib/dirent.in.h (system_header): Likewise.
24993         * lib/errno.in.h (system_header): Likewise.
24994         * lib/float.in.h (system_header): Likewise.
24995         * lib/getopt.in.h (system_header): Likewise.
24996         * lib/iconv.in.h (system_header): Likewise.
24997         * lib/inttypes.in.h (system_header): Likewise.
24998         * lib/langinfo.in.h (system_header): Likewise.
24999         * lib/locale.in.h (system_header): Likewise.
25000         * lib/math.in.h (system_header): Likewise.
25001         * lib/netdb.in.h (system_header): Likewise.
25002         * lib/netinet_in.in.h (system_header): Likewise.
25003         * lib/pty.in.h (system_header): Likewise.
25004         * lib/sched.in.h (system_header): Likewise.
25005         * lib/se-selinux.in.h (system_header): Likewise.
25006         * lib/search.in.h (system_header): Likewise.
25007         * lib/spawn.in.h (system_header): Likewise.
25008         * lib/stdarg.in.h (system_header): Likewise.
25009         * lib/stdint.in.h (system_header): Likewise.
25010         * lib/string.in.h (system_header): Likewise.
25011         * lib/strings.in.h (system_header): Likewise.
25012         * lib/sys_file.in.h (system_header): Likewise.
25013         * lib/sys_ioctl.in.h (system_header): Likewise.
25014         * lib/sys_socket.in.h (system_header): Likewise.
25015         * lib/sys_times.in.h (system_header): Likewise.
25016         * lib/sys_utsname.in.h (system_header): Likewise.
25017         * lib/sys_wait.in.h (system_header): Likewise.
25018         * lib/sysexits.in.h (system_header): Likewise.
25019         * lib/unistd.in.h (system_header): Likewise.
25020         * lib/wctype.in.h (system_header): Likewise.
25021
25022         arpa/inet: fix mingw compilation warning
25023         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25024         Reported by Matthew Bolte.
25025
25026 2010-03-25  Bruno Haible  <bruno@clisp.org>
25027
25028         Avoid collision between gnulib wrapper and libintl wrapper.
25029         * lib/printf.c (printf): Don't define if a printf wrapper is already
25030         defined in intl/printf.c.
25031         Reported by Michel Boaventura <michel@michelboaventura.com>.
25032
25033 2010-03-25  Bruno Haible  <bruno@clisp.org>
25034
25035         Use ANSI C.
25036         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25037
25038 2010-03-25  Bruno Haible  <bruno@clisp.org>
25039
25040         Minor formatting changes.
25041         * lib/acosl.c: Insert space before function argument list.
25042         * lib/argz.c: Likewise.
25043         * lib/asinl.c: Likewise.
25044         * lib/expl.c: Likewise.
25045         * lib/gen-uni-tables.c: Likewise.
25046         * lib/gettext.h: Likewise.
25047         * lib/glthread/lock.h: Likewise.
25048         * lib/tanl.c: Likewise.
25049         * lib/uniname/uniname.c: Likewise.
25050         * tests/test-idpriv-drop.c: Likewise.
25051         * tests/test-idpriv-droptemp.c: Likewise.
25052         * tests/test-lock.c: Likewise.
25053         * tests/test-tls.c: Likewise.
25054         * lib/argp-help.c: Insert space before function-like macro argument
25055         list.
25056         * lib/memcmp.c: Likewise.
25057         * tests/test-base64.c: Likewise.
25058         * lib/localename.c: Insert space before sizeof's argument list.
25059         * lib/safe-alloc.h: Likewise.
25060         * lib/file-set.h: Insert space before macro argument list.
25061         * tests/test-argp.c: Likewise.
25062         * lib/argp-namefrob.h: Insert space before function parameter list.
25063         * lib/getaddrinfo.c: Likewise.
25064         * lib/netdb.in.h: Likewise.
25065         * lib/parse-duration.h: Likewise.
25066         * lib/parse-duration.c: Likewise.
25067         * lib/poll.c: Likewise.
25068         * lib/select.c: Likewise.
25069         * lib/trim.h: Likewise.
25070         * tests/test-usleep.c: Likewise.
25071         * lib/ldexpl.c: Insert space before function parameter list and before
25072         function argument list.
25073         * lib/logl.c: Likewise.
25074         * lib/sqrtl.c: Likewise.
25075         * lib/trim.c: Likewise.
25076         * lib/cosl.c: Use GNU style indentation. Insert space before function
25077         argument list.
25078         * lib/sinl.c: Likewise.
25079         * lib/tsearch.c: Insert space after 'for'.
25080         Reported by Jim Meyering.
25081
25082 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25083
25084         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25085         config header before grepping, as it's not present before
25086         autoreconf/configure are run.  Reported by Simon Josefsson.
25087
25088 2010-03-23  Bruno Haible  <bruno@clisp.org>
25089
25090         pt_chown: Make it work with automake < 1.11.
25091         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25092         Reported by Simon Josefsson.
25093
25094 2010-03-23  Bruno Haible  <bruno@clisp.org>
25095
25096         pt_chown: Don't depend on GPLed modules.
25097         * lib/pt_chown.c: Don't include idpriv.h.
25098         (main): Don't drop privileges.
25099         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25100         Reported by Simon Josefsson.
25101
25102 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25103
25104         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25105         suggestions from karl@freefriends.org (Karl Berry).
25106
25107 2010-03-22  Eric Blake  <eblake@redhat.com>
25108
25109         gethostname: further tweaks
25110         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25111         are overriding gethostname.
25112         Suggested by Bruno Haible.
25113
25114 2010-03-21  Bruno Haible  <bruno@clisp.org>
25115
25116         Fix comments.
25117         * lib/forkpty.c (rpl_forkpty): Fix comment.
25118         * lib/openpty.c (rpl_openpty): Likewise.
25119         Reported by Eric Blake.
25120
25121 2010-03-22  Eric Blake  <eblake@redhat.com>
25122
25123         gethostname: fix build on mingw
25124         * lib/unistd.in.h (includes): Work around fact that mingw
25125         <winsock2.h> re-includes <unistd.h>, by avoiding any
25126         redeclarations if we are being included by <winsock2.h>.
25127         Reported by Matthias Bolte.
25128
25129 2010-03-21  Bruno Haible  <bruno@clisp.org>
25130
25131         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25132         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25133         modifications.
25134         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25135         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25136         provide the replacement.
25137         * modules/forkpty (Depends-on): Add openpty, login_tty.
25138         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25139         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25140         * doc/glibc-functions/forkpty.texi: More supported platforms.
25141         * config/srclist.txt: Add forkpty.c (commented).
25142
25143 2010-03-21  Bruno Haible  <bruno@clisp.org>
25144
25145         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25146         (Makefile.am): Verify that PTY_LIB is defined.
25147
25148         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25149
25150 2010-03-21  Bruno Haible  <bruno@clisp.org>
25151
25152         Tests for module 'login_tty'.
25153         * modules/login_tty-tests: New file.
25154         * tests/test-login_tty.c: New file.
25155
25156         New module 'login_tty'.
25157         * lib/login_tty.c: New file.
25158         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25159         * modules/login_tty: New file.
25160         * doc/glibc-functions/login_tty.texi: Mention the new module.
25161
25162 2010-03-21  Bruno Haible  <bruno@clisp.org>
25163
25164         login_tty: Documentation.
25165         * doc/glibc-functions/login_tty.texi: New file.
25166         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25167
25168 2010-03-21  Bruno Haible  <bruno@clisp.org>
25169
25170         pty: Consistent macro naming.
25171         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25172         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25173         * modules/pty (configure.ac): Update.
25174
25175 2010-03-21  Bruno Haible  <bruno@clisp.org>
25176
25177         Tests for openpty: Make stricter.
25178         * tests/test-openpty.c (main): Add test of canonical processing and
25179         erase.
25180         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25181
25182         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25183         * lib/openpty.c (openpty): New replacement function.
25184         * lib/pty.in.h: Include <termios.h>.
25185         (openpty): Update declaration. Add comments.
25186         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25187         is not declared, arrange to provide the replacement. Check for _getpty
25188         and posix_openpt.
25189         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25190         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25191         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25192         * modules/pty-tests (test_pty_c___LDADD): New variable.
25193         * doc/glibc-functions/openpty.texi: More supported platforms.
25194
25195 2010-03-21  Bruno Haible  <bruno@clisp.org>
25196
25197         setenv: Tweaks.
25198         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25199         the test program.
25200         * doc/posix-functions/setenv.texi: Update platforms list.
25201
25202 2010-03-21  Bruno Haible  <bruno@clisp.org>
25203
25204         New module 'unlockpt'.
25205         * lib/unlockpt.c: New file, from glibc with modifications.
25206         * m4/unlockpt.m4: New file.
25207         * modules/unlockpt: New file.
25208         * lib/stdlib.in.h (unlockpt): New declaration.
25209         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25210         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25211         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25212         HAVE_UNLOCKPT.
25213         * doc/posix-functions/unlockpt.texi: Mention the new module.
25214         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25215         * config/srclist.txt: Add unlockpt.c (commented).
25216
25217 2010-03-21  Jim Meyering  <meyering@redhat.com>
25218
25219         maint.mk: prohibit inclusion of "intprops.h" without use
25220         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25221
25222 2010-03-21  Bruno Haible  <bruno@clisp.org>
25223
25224         New module 'grantpt'.
25225         * lib/grantpt.c: New file, from glibc with modifications.
25226         * m4/grantpt.m4: New file.
25227         * modules/grantpt: New file.
25228         * lib/stdlib.in.h (grantpt): New declaration.
25229         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25230         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25231         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25232         HAVE_GRANTPT.
25233         * doc/posix-functions/grantpt.texi: Mention the new module.
25234         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25235         * config/srclist.txt: Add grantpt.c (commented).
25236
25237 2010-03-21  Bruno Haible  <bruno@clisp.org>
25238
25239         New module 'pt_chown'.
25240         * lib/pt_chown.c: New file, from glibc with modifications.
25241         * lib/pty-private.h: New file, from glibc with modifications.
25242         * modules/pt_chown: New file.
25243         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25244
25245 2010-03-21  Bruno Haible  <bruno@clisp.org>
25246
25247         Tests for module 'ptsname'.
25248         * modules/ptsname-tests: New file.
25249         * tests/test-ptsname.c: New file.
25250
25251         New module 'ptsname'.
25252         * lib/ptsname.c: New file, from glibc with modifications.
25253         * m4/ptsname.m4: New file.
25254         * modules/ptsname: New file.
25255         * lib/stdlib.in.h (ptsname): New declaration.
25256         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25257         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25258         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25259         HAVE_PTSNAME.
25260         * doc/posix-functions/ptsname.texi: Mention the new module.
25261         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25262         * config/srclist.txt: Add ptsname.c (commented).
25263
25264 2010-03-21  Bruno Haible  <bruno@clisp.org>
25265
25266         Tests for module 'ttyname_r'.
25267         * modules/ttyname_r-tests: New file.
25268         * tests/test-ttyname_r.c: New file.
25269
25270         New module 'ttyname_r'.
25271         * lib/ttyname_r.c: New file.
25272         * m4/ttyname_r.m4: New file.
25273         * modules/ttyname_r: New file.
25274         * lib/unistd.in.h (ttyname_r): New declaration.
25275         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25276         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25277         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25278         HAVE_TTYNAME_R.
25279         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25280         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25281
25282 2010-03-20  Bruno Haible  <bruno@clisp.org>
25283
25284         signal: Undefine macro definitions in C++ mode.
25285         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25286         sigfillset): Undefine macro definitions from the system header in C++
25287         mode.
25288         Reported by John W. Eaton <jwe@gnu.org>.
25289
25290 2010-03-20  Bruno Haible  <bruno@clisp.org>
25291
25292         Ensure no #include statements inside extern "C" { ... }.
25293         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25294         contain #include statements.
25295         * lib/time.in.h: Likewise.
25296
25297 2010-03-20  Bruno Haible  <bruno@clisp.org>
25298
25299         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25300         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25301         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25302         Reported by John W. Eaton <jwe@gnu.org>.
25303
25304 2010-03-20  Bruno Haible  <bruno@clisp.org>
25305
25306         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25307         Reported by Jim Meyering.
25308
25309 2010-03-20  Bruno Haible  <bruno@clisp.org>
25310
25311         pipe: Set errno upon failure.
25312         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25313         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25314         errno value in error message.
25315
25316 2010-03-20  Bruno Haible  <bruno@clisp.org>
25317             Jim Meyering  <meyering@redhat.com>
25318
25319         lchown: Avoid "unused variable" warning.
25320         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25321
25322 2010-03-20  Bruno Haible  <bruno@clisp.org>
25323
25324         Work around unlink() bug on MacOS X 10.5.6.
25325         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25326         attempting to unlink a parent directory.
25327         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25328         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25329         activate for the replacement function.
25330         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25331
25332 2010-03-20  Bruno Haible  <bruno@clisp.org>
25333
25334         Fix link errors on Solaris 8.
25335         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25336         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25337
25338 2010-03-19  Jim Meyering  <meyering@redhat.com>
25339
25340         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25341         The _LIBC implementation of build_range_exp correctly honors the
25342         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25343         However, the non-_LIBC implementation would ignore that syntax-bit
25344         flag and return REG_ERANGE unconditionally.
25345         This change makes it honor that flag.
25346         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25347         Make two pointer parameters "const".
25348         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25349         (parse_bracket_exp): Update caller.
25350
25351         regex.m4: correct the reversed range endpoint ([b-a]) test
25352         * m4/regex.m4: When requiring that [b-a] evoke failure,
25353         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
25354         test pass once again for x86-based systems.
25355
25356 2010-03-19  Bruno Haible  <bruno@clisp.org>
25357
25358         scandir: Fix link error on Solaris 8.
25359         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
25360         macros.
25361
25362 2010-03-19  Bruno Haible  <bruno@clisp.org>
25363
25364         getusershell: Fix documentation.
25365         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
25366         module.
25367         * doc/glibc-functions/setusershell.texi: Likewise.
25368
25369         getusershell: Provide declaration, missing on Solaris 9.
25370         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
25371         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
25372         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
25373         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
25374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25375         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
25376         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
25377         HAVE_GETUSERSHELL.
25378         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
25379
25380 2010-03-19  Bruno Haible  <bruno@clisp.org>
25381
25382         wctype: Provide iswblank function.
25383         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
25384         exists and is fine.
25385         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
25386         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
25387         * tests/test-wctype.c (main): Re-enable the iswblank tests.
25388         * doc/posix-functions/iswblank.texi: Update.
25389
25390 2010-03-19  Bruno Haible  <bruno@clisp.org>
25391
25392         Tests of module 'pty' in C++ mode.
25393         * modules/pty-tests: New file.
25394         * tests/test-pty-c++.cc: New file.
25395         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25396
25397 2010-03-19  Eric Blake  <eblake@redhat.com>
25398
25399         logb: fix documentation
25400         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
25401         1.5 declaration bug.
25402
25403         forkpty, openpty: prefer glibc's const-safe prototype
25404         * lib/forkpty.c (rpl_forkpty): New file.
25405         * lib/openpty.c (rpl_openpty): Likewise.
25406         * modules/forkpty (Files): Distribute it.
25407         * modules/openpty (Files): Likewise.
25408         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
25409         check...
25410         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
25411         replacement for for non-const BSD signature.
25412         * modules/pty (Makefile.am): Substitute witnesses.
25413         * lib/pty.in.h (forkpty, openpty): Declare replacements.
25414         * tests/test-forkpty.c: Update signature check.
25415         * tests/test-openpty.c: Likewise.
25416         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
25417         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25418
25419         forkpty, openpty: split functions into new modules
25420         * modules/pty (Makefile.am): Substitute new witnesses.
25421         (Libraries): Move library detection...
25422         * modules/forkpty: ...into new module.
25423         * modules/openpty: Another new module.
25424         * modules/pty-tests: Rename and split...
25425         * modules/forkpty-tests: ...to this...
25426         * modules/openpty-tests: ...and this.
25427         * tests/test-pty.c: Rename and split...
25428         * tests/test-forkpty.c: ...to this...
25429         * tests/test-openpty.c: ...and this.
25430         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
25431         (gl_PTY): Split library searching...
25432         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
25433         (gl_FORKPTY, gl_OPENPTY): New macros.
25434         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
25435         * NEWS: Mention the split.
25436         * MODULES.html.sh (Misc): Document the modules.
25437         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
25438         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25439
25440         pty: improve replacement header
25441         * lib/pty.in.h: New file.
25442         * modules/pty (Files): Ship it.
25443         (Makefile.am): Always build replacement.
25444         * m4/pty.m4: Rename...
25445         * m4/pty_h.m4: ...to this.
25446         (gl_PTY): Modernize setting of witness macros; update check of
25447         forkpty to take proper advantage of cache.
25448         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
25449
25450         getopt: avoid compiler warning
25451         * lib/getopt.c (attribute_hidden): Remove unused macro.
25452
25453 2010-03-18  Bruno Haible  <bruno@clisp.org>
25454
25455         Fix link errors on Solaris 8.
25456         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25457         * modules/search-tests (test_search_c___LDADD): Likewise.
25458         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25459         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25460         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25461         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25462         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25463         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25464         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25465
25466 2010-03-18  Bruno Haible  <bruno@clisp.org>
25467
25468         Fix bug introduced on 2010-03-14.
25469         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25470         (gl_SPAWN_H): Require it.
25471         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25472         Reported by Simon Josefsson.
25473
25474 2010-03-18  Bruno Haible  <bruno@clisp.org>
25475
25476         Fix typo introduced on 2009-12-31.
25477         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25478         posix_spawn_file_actions_adddup2.
25479
25480 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25481         and Eric Blake  <eblake@redhat.com>
25482
25483         test-vc-list-files-git: make more robust
25484         * tests/test-vc-list-files-git.sh: Unset problematic environment
25485         variables.  Chain commands together.
25486
25487 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
25488
25489         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
25490         `AC_CHECK_DECL' invocation.
25491
25492 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
25493
25494         * lib/inttostr.c (inttostr): Make sure the invocation of verify
25495         appears before executable statements. Suggested by Petr Sumbera
25496         <Petr.Sumbera@Sun.COM>.
25497
25498 2010-03-14  Bruno Haible  <bruno@clisp.org>
25499
25500         * tests/test-flock.c (test_exclusive): Comment out a test that causes
25501         portability problems. Instead use a simpler test.
25502         (main): Check that invalid arguments are rejected only on Linux.
25503
25504 2010-03-14  Bruno Haible  <bruno@clisp.org>
25505
25506         Fix bug introduced on 2009-12-31.
25507         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25508         gl_PREREQ_SYS_H_WINSOCK2 always.
25509         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
25510         SYS_SOCKET_H variable.
25511         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
25512         Update comments.
25513         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
25514         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25515         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25516         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25517         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25518
25519 2010-03-14  Bruno Haible  <bruno@clisp.org>
25520
25521         Fix values returned by sinl, cosl.
25522         * lib/trigl.h: Add specification comments.
25523         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25524         that combines the values from the precomputed table with the values of
25525         the Chebyshev polynomials.
25526
25527 2010-03-14  Bruno Haible  <bruno@clisp.org>
25528
25529         Fix compilation error when modules 'posix_spawn[p]' are not used.
25530         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
25531         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
25532
25533 2010-03-14  Bruno Haible  <bruno@clisp.org>
25534
25535         Fix compilation error on mingw when module 'time_r' is not used.
25536         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
25537         is 1.
25538         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
25539         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25540         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
25541         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
25542
25543 2010-03-14  Bruno Haible  <bruno@clisp.org>
25544
25545         Fix compilation error with Sun C.
25546         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
25547         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
25548         instead of GCC specific ULONG_LONG_MAX.
25549         * lib/xstrtoll.c: Likewise.
25550         * lib/xstrtoull.c: Likewise.
25551
25552 2010-03-13  Bruno Haible  <bruno@clisp.org>
25553
25554         Allow the user to disable C++ code and tests.
25555         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
25556         (gl_PROG_ANSI_CXX): Require it.
25557
25558 2010-03-13  Bruno Haible  <bruno@clisp.org>
25559
25560         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
25561         cases.
25562
25563 2010-03-13  Bruno Haible  <bruno@clisp.org>
25564
25565         Test that gnulib does not break the standard C++ headers.
25566         * tests/test-locale-c++2.cc: New file.
25567         * modules/locale-tests (Files): Add it.
25568         (Makefile.am): Compile it for test-locale-c++.
25569         * tests/test-math-c++2.cc: New file.
25570         * modules/math-tests (Files): Add it.
25571         (Makefile.am): Compile it for test-math-c++.
25572         * tests/test-signal-c++2.cc: New file.
25573         * modules/signal-tests (Files): Add it.
25574         (Makefile.am): Compile it for test-signal-c++.
25575         * tests/test-stdio-c++2.cc: New file.
25576         * modules/stdio-tests (Files): Add it.
25577         (Makefile.am): Compile it for test-stdio-c++.
25578         * tests/test-stdlib-c++2.cc: New file.
25579         * modules/stdlib-tests (Files): Add it.
25580         (Makefile.am): Compile it for test-stdlib-c++.
25581         * tests/test-string-c++2.cc: New file.
25582         * modules/string-tests (Files): Add it.
25583         (Makefile.am): Compile it for test-string-c++.
25584         * tests/test-time-c++2.cc: New file.
25585         * modules/time-tests (Files): Add it.
25586         (Makefile.am): Compile it for test-time-c++.
25587         Reported by John W. Eaton <jwe@gnu.org>.
25588
25589 2010-03-13  Bruno Haible  <bruno@clisp.org>
25590
25591         * gnulib-tool (func_usage): Clarify which options are available for
25592         --create-testdir and --create-megatestdir.
25593
25594 2010-03-13  Bruno Haible  <bruno@clisp.org>
25595
25596         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
25597         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
25598         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
25599         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25600         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
25601         when appropriate.
25602         Reported by Jim Meyering.
25603
25604 2010-03-12  Simon Josefsson  <simon@josefsson.org>
25605
25606         * gnulib-tool (func_import): Explain origin of code.
25607
25608 2010-03-12  Bruno Haible  <bruno@clisp.org>
25609
25610         Fix problem with automake's definition of CXXLINK.
25611         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
25612         Reported by Simon Josefsson and Ludovic Courtès.
25613
25614 2010-03-12  Bruno Haible  <bruno@clisp.org>
25615
25616         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
25617         stable releases.
25618
25619 2010-03-11  Bruno Haible  <bruno@clisp.org>
25620
25621         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
25622         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
25623         whether the system provides one variant or multiple variants of the
25624         function.
25625         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
25626         C++ compilers.
25627         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
25628         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
25629         Reported by Jim Meyering.
25630
25631 2010-03-09  Simon Josefsson  <simon@josefsson.org>
25632
25633         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
25634
25635 2010-03-08  Bruno Haible  <bruno@clisp.org>
25636
25637         gnulib-tool: Add support for --libtool in --create-testdir.
25638         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
25639         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
25640
25641 2010-03-08  Eric Blake  <eblake@redhat.com>
25642
25643         gnulib-tool.texi: mention possibility of git submodule
25644         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
25645         submodules.
25646         * doc/.gitignore: Ignore another generated file.
25647
25648 2010-03-08  Karl Berry  <karl@gnu.org>
25649
25650         * doc/gnulib-tool.texi (VCS Issues): Mention third option
25651         of committing gnulib files while skipping others.
25652
25653 2010-03-07  Bruno Haible  <bruno@clisp.org>
25654
25655         Tests of module 'wctype' in C++ mode.
25656         * tests/test-wctype-c++.cc: New file.
25657         * modules/wctype-tests (Files): Add it and tests/signature.h.
25658         (Depends-on): Add ansi-c++-opt.
25659         (Makefile.am): Arrange to compile and run test-wctype-c++.
25660
25661         Tests of module 'wchar' in C++ mode.
25662         * tests/test-wchar-c++.cc: New file.
25663         * modules/wchar-tests (Files): Add it and tests/signature.h.
25664         (Depends-on): Add ansi-c++-opt.
25665         (Makefile.am): Arrange to compile and run test-wchar-c++.
25666         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
25667         gl_MODULE_INDICATOR.
25668
25669         Tests of module 'unistd' in C++ mode.
25670         * tests/test-unistd-c++.cc: New file.
25671         * modules/unistd-tests (Files): Add it and tests/signature.h.
25672         (Depends-on): Add ansi-c++-opt.
25673         (Makefile.am): Arrange to compile and run test-unistd-c++.
25674         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
25675         gl_MODULE_INDICATOR.
25676
25677         Tests of module 'time' in C++ mode.
25678         * tests/test-time-c++.cc: New file.
25679         * modules/time-tests (Files): Add it and tests/signature.h.
25680         (Depends-on): Add ansi-c++-opt.
25681         (Makefile.am): Arrange to compile and run test-time-c++.
25682         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25683
25684         Tests of module 'sys_time' in C++ mode.
25685         * tests/test-sys_time-c++.cc: New file.
25686         * modules/sys_time-tests (Files): Add it and tests/signature.h.
25687         (Depends-on): Add ansi-c++-opt.
25688         (Makefile.am): Arrange to compile and run test-sys_time-c++.
25689         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
25690         gl_MODULE_INDICATOR.
25691
25692         Tests of module 'sys_stat' in C++ mode.
25693         * tests/test-sys_stat-c++.cc: New file.
25694         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
25695         (Depends-on): Add ansi-c++-opt.
25696         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
25697         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
25698         gl_MODULE_INDICATOR.
25699
25700         Tests of module 'sys_socket' in C++ mode.
25701         * tests/test-sys_socket-c++.cc: New file.
25702         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
25703         (Depends-on): Add ansi-c++-opt.
25704         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
25705         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
25706         gl_MODULE_INDICATOR.
25707
25708         Tests of module 'sys_select' in C++ mode.
25709         * tests/test-sys_select-c++.cc: New file.
25710         * modules/sys_select-tests (Files): Add it and tests/signature.h.
25711         (Depends-on): Add ansi-c++-opt.
25712         (Makefile.am): Arrange to compile and run test-sys_select-c++.
25713         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
25714         gl_MODULE_INDICATOR.
25715
25716         Tests of module 'sys_ioctl' in C++ mode.
25717         * tests/test-sys_ioctl-c++.cc: New file.
25718         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
25719         (Depends-on): Add ansi-c++-opt.
25720         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
25721         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
25722         gl_MODULE_INDICATOR.
25723
25724         Tests of module 'string' in C++ mode.
25725         * tests/test-string-c++.cc: New file.
25726         * modules/string-tests (Files): Add it and tests/signature.h.
25727         (Depends-on): Add ansi-c++-opt.
25728         (Makefile.am): Arrange to compile and run test-string-c++.
25729         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
25730         gl_MODULE_INDICATOR.
25731
25732         Tests of module 'stdlib' in C++ mode.
25733         * tests/test-stdlib-c++.cc: New file.
25734         * modules/stdlib-tests (Files): Add it and tests/signature.h.
25735         (Depends-on): Add ansi-c++-opt.
25736         (Makefile.am): Arrange to compile and run test-stdlib-c++.
25737         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
25738         gl_MODULE_INDICATOR.
25739
25740         Tests of module 'stdio' in C++ mode.
25741         * tests/test-stdio-c++.cc: New file.
25742         * modules/stdio-tests (Files): Add it and tests/signature.h.
25743         (Depends-on): Add ansi-c++-opt.
25744         (Makefile.am): Arrange to compile and run test-stdio-c++.
25745         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
25746         gl_MODULE_INDICATOR.
25747
25748         Tests of module 'spawn' in C++ mode.
25749         * tests/test-spawn-c++.cc: New file.
25750         * modules/spawn-tests (Files): Add it and tests/signature.h.
25751         (Depends-on): Add ansi-c++-opt.
25752         (Makefile.am): Arrange to compile and run test-spawn-c++.
25753         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
25754         gl_MODULE_INDICATOR.
25755
25756         Tests of module 'signal' in C++ mode.
25757         * tests/test-signal-c++.cc: New file.
25758         * modules/signal-tests (Files): Add it and tests/signature.h.
25759         (Depends-on): Add ansi-c++-opt.
25760         (Makefile.am): Arrange to compile and run test-signal-c++.
25761         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
25762         gl_MODULE_INDICATOR.
25763
25764         Tests of module 'search' in C++ mode.
25765         * tests/test-search-c++.cc: New file.
25766         * modules/search-tests (Files): Add it and tests/signature.h.
25767         (Depends-on): Add ansi-c++-opt.
25768         (Makefile.am): Arrange to compile and run test-search-c++.
25769         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
25770         gl_MODULE_INDICATOR.
25771
25772         Tests of module 'math' in C++ mode.
25773         * tests/test-math-c++.cc: New file.
25774         * modules/math-tests (Files): Add it and tests/signature.h.
25775         (Depends-on): Add ansi-c++-opt.
25776         (Makefile.am): Arrange to compile and run test-math-c++.
25777         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25778
25779         Tests of module 'locale' in C++ mode.
25780         * tests/test-locale-c++.cc: New file.
25781         * modules/locale-tests (Files): Add it and tests/signature.h.
25782         (Depends-on): Add ansi-c++-opt.
25783         (Makefile.am): Arrange to compile and run test-locale-c++.
25784         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
25785         gl_MODULE_INDICATOR.
25786
25787         Tests of module 'langinfo' in C++ mode.
25788         * tests/test-langinfo-c++.cc: New file.
25789         * modules/langinfo-tests (Files): Add it and tests/signature.h.
25790         (Depends-on): Add ansi-c++-opt.
25791         (Makefile.am): Arrange to compile and run test-langinfo-c++.
25792         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
25793         gl_MODULE_INDICATOR.
25794
25795         Tests of module 'iconv-h' in C++ mode.
25796         * tests/test-iconv-h-c++.cc: New file.
25797         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
25798         (Depends-on): Add ansi-c++-opt.
25799         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
25800
25801         Tests of module 'glob' in C++ mode.
25802         * tests/test-glob-c++.cc: New file.
25803         * modules/glob-tests (Files): Add it.
25804         (Depends-on): Add ansi-c++-opt.
25805         (Makefile.am): Arrange to compile and run test-glob-c++.
25806
25807         Tests of module 'fcntl-h' in C++ mode.
25808         * tests/test-fcntl-h-c++.cc: New file.
25809         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
25810         (Depends-on): Add ansi-c++-opt.
25811         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
25812         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
25813         gl_MODULE_INDICATOR.
25814
25815         Tests of module 'dirent' in C++ mode.
25816         * tests/test-dirent-c++.cc: New file.
25817         * modules/dirent-tests (Files): Add it and tests/signature.h.
25818         (Depends-on): Add ansi-c++-opt.
25819         (Makefile.am): Arrange to compile and run test-dirent-c++.
25820         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25821         gl_MODULE_INDICATOR.
25822
25823         New module 'ansi-c++-opt'.
25824         * modules/ansi-c++-opt: New file.
25825         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
25826
25827         Document C++ namespace mode.
25828         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
25829
25830         wctype: Avoid #define replacements in C++ mode.
25831         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
25832         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
25833         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
25834         In C++, define a namespaced alias symbol.
25835         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
25836         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
25837         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
25838         rule.
25839
25840         wchar: Avoid #define replacements in C++ mode.
25841         * lib/wchar.in.h: Include c++defs.h.
25842         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
25843         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
25844         symbol.
25845         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
25846         * modules/wchar (Depends-on): Add c++defs.
25847         (Makefile.am): Update wchar.h rule.
25848
25849         unistd: Avoid #define replacements in C++ mode.
25850         * lib/unistd.in.h: Include c++defs.h.
25851         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
25852         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
25853         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
25854         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
25855         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
25856         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
25857         symbol.
25858         (environ): Update.
25859         * modules/unistd (Depends-on): Add c++defs.
25860         (Makefile.am): Update unistd.h rule.
25861
25862         time: Avoid #define replacements in C++ mode.
25863         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
25864         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
25865         define a namespaced alias symbol.
25866         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
25867         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
25868         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
25869         * modules/time (Depends-on): Add c++defs, warn-on-use.
25870         (Makefile.am): Update time.h rule.
25871         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25872         * modules/nanosleep (configure.ac): Likewise.
25873         * modules/strptime (configure.ac): Likewise.
25874         * modules/timegm (configure.ac): Likewise.
25875
25876         sys_time: Avoid #define replacements in C++ mode.
25877         * lib/sys_time.in.h: Include c++defs.h.
25878         (gettimeofday): In C++, define a namespaced alias symbol.
25879         * modules/sys_time (Depends-on): Add c++defs.
25880         (Makefile.am): Update sys/time.h rule.
25881
25882         sys_stat: Avoid #define replacements in C++ mode.
25883         * lib/sys_stat.in.h: Include c++defs.h.
25884         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
25885         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
25886         namespaced alias symbol.
25887         In C++, define a namespaced alias symbol.
25888         * modules/sys_stat (Depends-on): Add c++defs.
25889         (Makefile.am): Update sys/stat.h rule.
25890
25891         sys_socket: Avoid #define replacements in C++ mode.
25892         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
25893         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
25894         definitions also when the system has a <sys/socket.h>.
25895         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25896         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
25897         In C++, define a namespaced alias symbol.
25898         * modules/sys_socket (Depends-on): Add c++defs.
25899         (Makefile.am): Update sys/socket.h rule.
25900
25901         sys_select: Avoid #define replacements in C++ mode.
25902         * lib/sys_select.in.h: Include c++defs.h. Enable the function
25903         definitions also when the system has a <sys/select.h>.
25904         (select): In C++, define a namespaced alias symbol.
25905         * modules/sys_select (Depends-on): Add c++defs.
25906         (Makefile.am): Update sys/select.h rule.
25907
25908         sys_ioctl: Avoid #define replacements in C++ mode.
25909         * lib/sys_ioctl.in.h: Include c++defs.h.
25910         (ioctl): In C++, define a namespaced alias symbol.
25911         * modules/sys_ioctl (Depends-on): Add c++defs.
25912         (Makefile.am): Update sys/ioctl.h rule.
25913
25914         string: Avoid #define replacements in C++ mode.
25915         * lib/string.in.h: Include c++defs.h.
25916         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
25917         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25918         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25919         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
25920         strsignal, strverscmp): In C++, define a namespaced alias symbol.
25921         * modules/string (Depends-on): Add c++defs.
25922         (Makefile.am): Update string.h rule.
25923
25924         stdlib: Avoid #define replacements in C++ mode.
25925         * lib/stdlib.in.h: Include c++defs.h.
25926         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
25927         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
25928         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
25929         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
25930         symbol.
25931         * modules/stdlib (Depends-on): Add c++defs.
25932         (Makefile.am): Update stdlib.h rule.
25933
25934         stdio: Avoid #define replacements in C++ mode.
25935         * lib/stdio.in.h: Include c++defs.h.
25936         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
25937         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
25938         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
25939         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
25940         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
25941         namespaced alias symbol.
25942         * modules/stdio (Depends-on): Add c++defs.
25943         (Makefile.am): Update stdio.h rule.
25944
25945         spawn: Avoid #define replacements in C++ mode.
25946         * lib/spawn.in.h: Include c++defs.h.
25947         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25948         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25949         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25950         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25951         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25952         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25953         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25954         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25955         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25956         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25957         In C++, define a namespaced alias symbol.
25958         * modules/spawn (Depends-on): Add c++defs.
25959         (Makefile.am): Update spawn.h rule.
25960
25961         signal: Avoid #define replacements in C++ mode.
25962         * lib/signal.in.h: Include c++defs.h.
25963         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25964         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
25965         namespaced alias symbol.
25966         * modules/signal (Depends-on): Add c++defs.
25967         (Makefile.am): Update signal.h rule.
25968
25969         search: Avoid #define replacements in C++ mode.
25970         * lib/search.in.h: Include c++defs.h.
25971         (_gl_search_compar_fn, _gl_search_action_fn): New types.
25972         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
25973         symbol.
25974         * modules/search (Depends-on): Add c++defs.
25975         (Makefile.am): Update search.h rule.
25976
25977         math: Avoid #define replacements in C++ mode.
25978         * lib/math.in.h: Include c++defs.h.
25979         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
25980         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
25981         trunc, truncl): In C++, define a namespaced alias symbol.
25982         * modules/math (Depends-on): Add c++defs.
25983         (Makefile.am): Update math.h rule.
25984
25985         locale: Avoid #define replacements in C++ mode.
25986         * lib/locale.in.h: Include c++defs.h.
25987         (duplocale): In C++, define a namespaced alias symbol.
25988         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
25989         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
25990         * modules/locale (Depends-on): Add c++defs.
25991         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
25992
25993         langinfo: Avoid #define replacements in C++ mode.
25994         * lib/langinfo.in.h: Include c++defs.h.
25995         (nl_langinfo): In C++, define a namespaced alias symbol.
25996         * modules/langinfo (Depends-on): Add c++defs.
25997         (Makefile.am): Update langinfo.h rule.
25998
25999         iconv-h: Avoid #define replacements in C++ mode.
26000         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26001         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26002         symbol.
26003         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26004         whenever iconv is present.
26005         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26006         (Makefile.am): Update iconv.h rule.
26007
26008         glob: Avoid #define replacements in C++ mode.
26009         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26010         (_gl_glob_errfunc_fn): New type.
26011         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26012         symbol.
26013         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26014         (Makefile.am): Update glob.h rule.
26015
26016         fcntl-h: Avoid #define replacements in C++ mode.
26017         * lib/fcntl.in.h: Include c++defs.h.
26018         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26019         * modules/fcntl-h (Depends-on): Add c++defs.
26020         (Makefile.am): Update fcntl.h rule.
26021
26022         dirent: Avoid #define replacements in C++ mode.
26023         * lib/dirent.in.h: Include c++defs.h.
26024         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26025         namespaced alias symbol.
26026         (dirfd): Update declaration.
26027         * modules/dirent (Depends-on): Add c++defs.
26028         (Makefile.am): Update dirent.h rule.
26029
26030         ctype: Make it usable in C++ code.
26031         * lib/ctype.in.h: Include c++defs.h.
26032         (isblank): Declare as extern "C".
26033         * modules/ctype (Depends-on): Add c++defs.
26034         (Makefile.am): Update ctype.h rule.
26035
26036         New module 'c++defs'.
26037         * modules/c++defs: New file.
26038         * build-aux/c++defs.h: New file.
26039         Reported by John W. Eaton <jwe@gnu.org>.
26040
26041 2010-03-07  Bruno Haible  <bruno@clisp.org>
26042
26043         logb: Provide missing declaration for Cygwin.
26044         * lib/math.in.h (logb): New declaration.
26045         * m4/logb.m4: New file.
26046         * modules/logb (Files): Add m4/logb.m4.
26047         (Depends-on): Add math.
26048         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26049         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26051         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26052         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26053
26054 2010-03-07  Bruno Haible  <bruno@clisp.org>
26055
26056         Fix test-cond link error.
26057         * tests/test-cond.c: Include <stdio.h>.
26058
26059 2010-03-07  Bruno Haible  <bruno@clisp.org>
26060
26061         Fix test-dirent-safer link error.
26062         * modules/dirent-safer-tests (Makefile.am): Define
26063         test_dirent_safer_LDADD.
26064
26065 2010-03-07  Bruno Haible  <bruno@clisp.org>
26066
26067         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26068         among default module list.
26069
26070 2010-03-07  Bruno Haible  <bruno@clisp.org>
26071
26072         Fix link error on platforms with GNU libiconv.
26073         * modules/unistr/u8-strcoll-tests (Makefile): Define
26074         test_u8_strcoll_LDADD.
26075         * modules/unistr/u16-strcoll-tests (Makefile): Define
26076         test_u16_strcoll_LDADD.
26077         * modules/unistr/u32-strcoll-tests (Makefile): Define
26078         test_u32_strcoll_LDADD.
26079
26080 2010-03-07  Bruno Haible  <bruno@clisp.org>
26081
26082         Use POSIX declarations for socket functions.
26083         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26084         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26085         rpl_sendto): Change declaration to match POSIX.
26086         * lib/connect.c (rpl_connect): Likewise.
26087         * lib/accept.c (rpl_accept): Likewise.
26088         * lib/bind.c (rpl_bind): Likewise.
26089         * lib/getpeername.c (rpl_getpeername): Likewise.
26090         * lib/getsockname.c (rpl_getsockname): Likewise.
26091         * lib/recv.c (rpl_recv): Likewise.
26092         * lib/send.c (rpl_send): Likewise.
26093         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26094         * lib/sendto.c (rpl_sendto): Likewise.
26095
26096 2010-03-06  Bruno Haible  <bruno@clisp.org>
26097
26098         Clarify access, euidaccess, faccessat.
26099         * doc/posix-functions/faccessat.texi: Mention security problem under
26100         "Other problems", not "Portability problems".
26101         * doc/posix-functions/access.texi: Likewise. Mention a related security
26102         problem.
26103         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26104         * lib/euidaccess.c: Add comments about platforms.
26105         * lib/unistd.in.h (access, euidaccess): Add warnings.
26106
26107 2010-03-07  Bruno Haible  <bruno@clisp.org>
26108
26109         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26110         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26111         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26112         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26113         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26114         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26115         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26116         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26117         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26118         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26119         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26120         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26121         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26122         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26123         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26124         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26125         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26126         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26127         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26128         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26129         Likewise.
26130         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26131         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26132         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26133         Likewise.
26134         * tests/test-spawn.c (main): Make it work when
26135         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26136
26137 2010-03-07  Bruno Haible  <bruno@clisp.org>
26138
26139         Fix incorrect Makefile.am generation in German locale.
26140         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26141         Execute sed command with character range in C locale.
26142
26143 2010-03-06  Bruno Haible  <bruno@clisp.org>
26144
26145         Tests for module 'iconv-h'.
26146         * modules/iconv-h-tests: New file.
26147         * tests/test-iconv-h.c: New file.
26148
26149         New module 'iconv-h'.
26150         * modules/iconv-h: New file.
26151         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26152         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26153         (configure.ac): Remove gl_ICONV_H.
26154         (Makefile.am): Remove rule for iconv.h.
26155
26156 2010-03-06  Bruno Haible  <bruno@clisp.org>
26157
26158         More consistent naming of *.m4 files.
26159         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26160         * modules/wctype (Files): Update.
26161
26162         More consistent naming of *.m4 files.
26163         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26164         * modules/wchar (Files): Update.
26165
26166 2010-03-06  Jim Meyering  <meyering@redhat.com>
26167
26168         euidaccess: relax license to LGPLv2+
26169         * modules/euidaccess (License): Relax to LGPLv2+.
26170
26171 2010-03-06  Bruno Haible  <bruno@clisp.org>
26172
26173         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26174         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26175         (Makefile.am): Augment lib_SOURCES instead.
26176
26177 2010-03-04  Jim Meyering  <meyering@redhat.com>
26178
26179         utime: remove obsolete module
26180         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26181         unnecessary for years, and has been marked as obsolete for 10 months.
26182         * modules/utime: Remove file.
26183         * lib/utime.c: Remove file.
26184         * m4/utime.m4: Remove file.
26185         * m4/utimes-null.m4: Remove file.
26186         * doc/posix-functions/utime.texi (utime): Remove reference to
26187         the module.  Move the sole "fixed by gnulib" item into the
26188         "problems not fixed by Gnulib" list.
26189         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26190
26191 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26192
26193         * modules/exit (License): Relax license to LGPLv2+.
26194         (Status): Mark as obsolete.
26195         * NEWS: Mention deprecated 'exit' module.
26196         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26197         of now obsolete 'exit'.
26198
26199 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26200
26201         fts-lgpl: remove unused module
26202         * modules/fts-lgpl: Remove.
26203         * MODULES.html.sh (func_all_modules): Adjust.
26204         * check-module (find_included_lib_files): Adjust.
26205         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26206
26207 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26208
26209         copy-acl: enhance Solaris ACL error handling
26210         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26211         * lib/set-mode-acl.c (qset_acl): Likewise.
26212
26213 2010-03-02  Bruno Haible  <bruno@clisp.org>
26214
26215         spawn: Don't override the system defined values on FreeBSD 8.
26216         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26217         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26218         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26219         if HAVE_POSIX_SPAWN is 1.
26220         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26221
26222 2010-03-01  Bruno Haible  <bruno@clisp.org>
26223
26224         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26225         regarding Automake.
26226
26227 2010-02-25  Bruno Haible  <bruno@clisp.org>
26228
26229         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26230         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26231         setting, not afterwards.
26232         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26233
26234 2010-02-24  Eric Blake  <eblake@redhat.com>
26235
26236         bootstrap, git-version-gen: use timestamp
26237         * build-aux/git-version-gen (scriptversion): Force UTC.
26238         * build-aux/bootstrap (scriptversion): New variable.
26239
26240         bootstrap: allow older git
26241         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26242         older than 1.6.4.  Requested by the libvirt project.
26243
26244 2010-02-23  Eric Blake  <eblake@redhat.com>
26245
26246         warn-on-use: work with old autoconf
26247         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26248         AS_VAR semantics of autoconf 2.60.
26249         Reported by Bruno Haible.
26250
26251         bootstrap: improve some comments
26252         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26253         clarification comments.
26254
26255         gettimeofday: provide correct function
26256         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26257         when replacement is declared, otherwise provide gettimeofday.
26258         Reported by Michael Goffioul.
26259
26260 2010-02-23  Jim Meyering  <meyering@redhat.com>
26261
26262         lib-ignore: relax license to "unlimited", not LGPLv2+
26263         * modules/lib-ignore (License): Relax to "unlimited".
26264
26265 2010-02-23  Jim Meyering  <meyering@redhat.com>
26266
26267         lib-ignore: relax license to LGPLv2+
26268         * modules/lib-ignore (License): Relax to LGPLv2+.
26269
26270 2010-02-22  Eric Blake  <eblake@redhat.com>
26271
26272         lseek: avoid bash 3.2 broken pipe bug
26273         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26274         warning from bash 3.2.
26275         Reported by Ben Pfaff, with analysis from Bruno Haible.
26276
26277         bootstrap: support non-FSF copyright holder
26278         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26279         bootstrap.conf override of COPYRIGHT_HOLDER.
26280         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26281
26282         bootstrap: interoperate with gettext 0.14.1
26283         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26284
26285         bootstrap: allow for alternate submodule location
26286         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26287         hardcoding submodule location.
26288         (gnulib_mk): Allow direct use of Makefile.am.
26289
26290         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26291         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26292         rather than reconfiguring where the submodule points.
26293
26294         gettimeofday: restore support for platforms that lack function
26295         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26296         replacement if function is missing.
26297         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26298         * modules/sys_time (Makefile.am): Substitute it.
26299         * lib/sys_time.in.h (gettimeofday): Check it.
26300         Reported by Michael Goffioul.
26301
26302 2010-02-21  Bruno Haible  <bruno@clisp.org>
26303
26304         * lib/stdio.in.h (obstack_printf): Fix typo.
26305
26306 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26307
26308         vc-list-files: use bzr ls's -R option
26309         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26310         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26311
26312 2010-02-21  Jim Meyering  <meyering@redhat.com>
26313
26314         init.sh: fix EXEEXT shims to work also for names like test-prog
26315         * tests/init.sh: Re-exec a better shell, when needed.
26316         If the current shell lacks support for posix $(...), an init.sh-using
26317         test will now try to find a shell that supports that.  If EXEEXT is
26318         nonempty, we also require support for hyphen-in-alias-name and shell
26319         substitutions like ${var#glob}.  Failure to find such a shell results
26320         in a skipped test.
26321
26322 2010-02-21  Bruno Haible  <bruno@clisp.org>
26323
26324         Really work around around "broken pipe" error message from bash 3.2.
26325         * gnulib-tool (func_reset_sigpipe): Remove function.
26326         (echo): In bash 3.2, define to a function that uses printf.
26327         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26328
26329 2010-02-20  Bruno Haible  <bruno@clisp.org>
26330
26331         Restore support for automake 1.9.6 with autoconf 2.61.
26332         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26333         Reported by James Youngman <jay@gnu.org>.
26334
26335 2010-02-20  Bruno Haible  <bruno@clisp.org>
26336
26337         Improve *printf warning condition.
26338         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26339         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26340         and the function is overridden due to SIGPIPE emulation.
26341
26342 2010-02-20  Bruno Haible  <bruno@clisp.org>
26343
26344         * lib/stdio.in.h: Tweak comments.
26345
26346 2010-02-19  Bruno Haible  <bruno@clisp.org>
26347
26348         Make it easier to find modules. New gnulib-tool option '--find'.
26349         * gnulib-tool: New option --find.
26350         (func_usage): Document it.
26351         (func_sanitize_modulelist): New function, extracted from
26352         func_all_modules.
26353         (func_all_modules): Invoke it.
26354         * doc/gnulib-tool.texi (Which modules?): New node.
26355
26356 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
26357
26358         * lib/sys_select.in.h: Provide select replacement even if
26359         sys/select.h exists on a system, for Interix.
26360
26361 2010-02-18  Jim Meyering  <meyering@redhat.com>
26362
26363         init.sh: don't use $(...) just yet
26364         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
26365         to accommodate e.g., Solaris' /bin/sh.
26366
26367 2010-02-17  Bruno Haible  <bruno@clisp.org>
26368
26369         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
26370         Reported by Ludovic Courtès <ludo@gnu.org>.
26371
26372 2010-02-16  Simon Josefsson  <simon@josefsson.org>
26373
26374         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
26375         linking with -lintl.
26376
26377 2010-02-17  Simon Josefsson  <simon@josefsson.org>
26378
26379         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
26380         if not provided by the system's netdb.h.  Reported by
26381         ludo@gnu.org (Ludovic Courtès).
26382
26383 2010-02-15  Jim Meyering  <meyering@redhat.com>
26384
26385         init.sh: improve portability and efficiency
26386         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
26387         "dummy" in a for loop.
26388         Use '!', not '^' to select the complement of a character set used
26389         in a "case" statement.
26390         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
26391         Suggestions from Eric Blake.
26392
26393         init.sh: automatically accommodate programs with the .exe suffix
26394         Automatically arrange for an invocation of "prog" to execute the
26395         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
26396         may use the simpler "prog", yet still work when built on a system
26397         that requires specifying the added suffix.
26398         Do this by constructing a function named "prog" that invokes
26399         "prog.exe" for each .exe file in selected directories.
26400         * tests/init.sh (find_exe_basenames_): New function.
26401         (create_exe_shim_functions_): New function.
26402         (path_prepend_): Use it.
26403
26404         maint.mk: mark syntax-check sc_*.m rules as .PHONY
26405         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
26406         "make -t syntax-check" doesn't create a ton of sc_*.m files.
26407
26408 2010-02-14  Jim Meyering  <meyering@redhat.com>
26409
26410         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
26411         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
26412         (sc_prohibit_hash_pjw_without_use): New rule.
26413
26414         maint.mk: allow the default upload destination dir to be overridden
26415         * top/maint.mk (upload_dest_dir_): Define with a default that
26416         preserves the status quo.
26417         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
26418         Reported by Peter Simons.
26419
26420         maint.mk: prohibit inclusion of "hash.h" without_use
26421         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
26422
26423 2010-02-10  Jim Meyering  <meyering@redhat.com>
26424
26425         maint.mk: prohibit inclusion of "ignore-value.h" without_use
26426         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
26427
26428 2010-02-09  Eric Blake  <ebb9@byu.net>
26429         and Bruno Haible  <bruno@clisp.org>
26430
26431         obstack-printf-posix: ensure declaration
26432         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
26433         extracted from gl_FUNC_OBSTACK_PRINTF.
26434         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
26435         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26436         Likewise.
26437         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
26438         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
26439         0.
26440
26441 2010-02-08  Bruno Haible  <bruno@clisp.org>
26442
26443         gnulib-tool: Fix typo in 2010-02-07 commit.
26444         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
26445         Reported by Eric Blake.
26446
26447 2010-02-07  Bruno Haible  <bruno@clisp.org>
26448
26449         gnulib-tool: Fix up caching patches.
26450         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
26451         option --no-cache. Use associative arrays when supported by the shell.
26452         (sed_comments): New variable.
26453         (modcache): Renamed from do_cache.
26454         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26455         abbreviate unnecessarily.
26456         (have_associative): New variable.
26457         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26458         way also for ksh and zsh.
26459         (func_init_sed_convert_to_cache_statements): New function, extracted
26460         from func_cache_lookup_module. Add support for associative arrays.
26461         Don't set the c_MODULE_cached variable here. Ignore all lines before
26462         the first field header. Remove only the final newline, not all trailing
26463         newlines. Support empty fields correctly. Limit the use of 'eval' to
26464         assignments.
26465         (func_get_description, func_get_status, func_get_notice,
26466         func_get_applicability, func_get_filelist, func_get_dependencies,
26467         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26468         func_get_automake_snippet, func_get_include_directive,
26469         func_get_link_directive, func_get_license, func_get_maintainer):
26470         Update documentation. List the unoptimized code first. Add support for
26471         associative arrays. Limit the use of 'eval' to assignments.
26472         (func_get_applicability): Undo stylistic pessimisations.
26473         (func_get_automake_snippet, func_get_include_directive): Reduce code
26474         duplication.
26475         (func_modules_transitive_closure, func_modules_add_dummy,
26476         func_modules_notice, func_modules_to_filelist, func_add_file,
26477         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26478         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26479         func_create_testdir, func_create_megatestdir): Update documentation.
26480
26481 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26482
26483         * gnulib-tool (func_cache_lookup_module): Store the module name
26484         belonging to the cache variable; error out if two different
26485         module names map to the same cache variable name.
26486
26487 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26488
26489         gnulib-tool: Make caching optional.
26490         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
26491         Update matching short versions of --no-changelog.
26492         (func_usage): Update.
26493         (sed_extract_cache_prog): Renamed from ...
26494         (sed_extract_prog): ... this; revert to old extraction script.
26495         (func_get_description, func_get_status)
26496         (func_get_notice, func_get_applicability, func_get_filelist)
26497         (func_get_dependencies, func_get_autoconf_early_snippet)
26498         (func_get_autoconf_snippet, func_get_automake_snippet)
26499         (func_get_include_directive, func_get_link_directive)
26500         (func_get_license, func_get_maintainer): If $do_cache is false,
26501         use old, non-caching extraction scripts.
26502         Suggestion by Bruno Haible.
26503
26504 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26505
26506         gnulib-tool: cache module metainformation.
26507         * gnulib-tool (sed_extract_prog): Match newline before each
26508         header, and rewrite header to a shell variable suffix.
26509         (func_cache_var, func_cache_lookup_module): New functions,
26510         to turn a module name into a cache variable prefix, and to
26511         look up and cache module metainformation.
26512         (func_get_description, func_get_status)
26513         (func_get_notice, func_get_applicability, func_get_filelist)
26514         (func_get_dependencies, func_get_autoconf_early_snippet)
26515         (func_get_autoconf_snippet, func_get_automake_snippet)
26516         (func_get_include_directive, func_get_link_directive)
26517         (func_get_license, func_get_maintainer): Use
26518         func_cache_lookup_module.
26519
26520 2010-02-07  Bruno Haible  <bruno@clisp.org>
26521
26522         fnctl: Fix missing dependency.
26523         * modules/fcntl (Depends-on): Add getdtablesize.
26524         Reported by John W. Eaton <jwe@gnu.org>.
26525
26526 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26527
26528         Argp: fix recognition of short alias options.
26529
26530         * lib/argp-parse.c (convert_options): Fix improper use of
26531         `|' between character values.
26532         * tests/test-argp.c (group1_option): New alias option
26533         --read (-r).
26534         (group1_parser): Special handling for 'r'.
26535         (test15): New test case.
26536         (test_fun): Add test15.
26537         * tests/test-argp-2.sh: Update expected --help and --usage
26538         outputs.
26539
26540 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26541
26542         * tests/test-argp.c: Fix indentation.
26543
26544 2010-02-04  Eric Blake  <ebb9@byu.net>
26545
26546         gettimeofday: expose type of second argument
26547         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
26548         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
26549         * tests/test-gettimeofday.c: Use it to silence warning.
26550         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
26551         the issue.
26552
26553 2010-02-03  Jim Meyering  <meyering@redhat.com>
26554
26555         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
26556         * lib/regcomp.c (TYPE_SIGNED): Define.
26557         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
26558
26559         regcomp.c: avoid a new -Wshadow warning
26560         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
26561
26562 2010-02-01  Jim Meyering  <meyering@redhat.com>
26563
26564         removing useless parentheses in cpp #define directives
26565         For motivation, see commit c0221df4, "define STREQ(a,b)
26566         consistently, removing useless parentheses"
26567         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
26568         * lib/mountlist.c (MNT_IGNORE): Likewise.
26569         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
26570
26571 2010-02-01  Eric Blake  <ebb9@byu.net>
26572
26573         sys_time: use link-warning
26574         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
26575         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
26576         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
26577         * modules/sys_time (Depends-on): Add warn-on-use.
26578         (Makefile.am): Always build replacement.
26579         (configure.ac): Update substitutions.
26580         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
26581         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
26582         bother with SYS_TIME_H.
26583         * modules/gettimeofday (configure.ac): Declare indicator.
26584         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
26585         in use.
26586
26587         closein-tests: silence compiler warning
26588         * tests/test-closein.c (main): Ignore fread result.
26589         * modules/closein-tests (Depends-on): Add ignore-value.
26590
26591         tests: silence warning about system return
26592         * tests/test-areadlink-with-size.c (main): Ignore system result.
26593         * tests/test-areadlink.c (main): Likewise.
26594         * tests/test-areadlinkat-with-size.c (main): Likewise.
26595         * tests/test-areadlinkat.c (main): Likewise.
26596         * tests/test-canonicalize-lgpl.c (main): Likewise.
26597         * tests/test-canonicalize.c (main): Likewise.
26598         * tests/test-chown.c (main): Likewise.
26599         * tests/test-fchownat.c (main): Likewise.
26600         * tests/test-fdutimensat.c (main): Likewise.
26601         * tests/test-fstatat.c (main): Likewise.
26602         * tests/test-futimens.c (main): Likewise.
26603         * tests/test-lchown.c (main): Likewise.
26604         * tests/test-link.c (main): Likewise.
26605         * tests/test-linkat.c (main): Likewise.
26606         * tests/test-lstat.c (main): Likewise.
26607         * tests/test-mkdir.c (main): Likewise.
26608         * tests/test-mkdirat.c (main): Likewise.
26609         * tests/test-mkfifo.c (main): Likewise.
26610         * tests/test-mkfifoat.c (main): Likewise.
26611         * tests/test-mknod.c (main): Likewise.
26612         * tests/test-readlink.c (main): Likewise.
26613         * tests/test-remove.c (main): Likewise.
26614         * tests/test-rename.c (main): Likewise.
26615         * tests/test-renameat.c (main): Likewise.
26616         * tests/test-rmdir.c (main): Likewise.
26617         * tests/test-symlink.c (main): Likewise.
26618         * tests/test-symlinkat.c (main): Likewise.
26619         * tests/test-unlink.c (main): Likewise.
26620         * tests/test-unlinkat.c (main): Likewise.
26621         * tests/test-utimens.c (main): Likewise.
26622         * tests/test-utimensat.c (main): Likewise.
26623         * modules/areadlink-tests (Depends-on): Add ignore-value.
26624         * modules/areadlink-with-size-tests (Depends-on): Likewise.
26625         * modules/areadlinkat-tests (Depends-on): Likewise.
26626         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
26627         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26628         * modules/canonicalize-tests (Depends-on): Likewise.
26629         * modules/chown-tests (Depends-on): Likewise.
26630         * modules/fdutimensat-tests (Depends-on): Likewise.
26631         * modules/futimens-tests (Depends-on): Likewise.
26632         * modules/lchown-tests (Depends-on): Likewise.
26633         * modules/link-tests (Depends-on): Likewise.
26634         * modules/linkat-tests (Depends-on): Likewise.
26635         * modules/lstat-tests (Depends-on): Likewise.
26636         * modules/mkdir-tests (Depends-on): Likewise.
26637         * modules/mkfifo-tests (Depends-on): Likewise.
26638         * modules/mkfifoat-tests (Depends-on): Likewise.
26639         * modules/mknod-tests (Depends-on): Likewise.
26640         * modules/openat-tests (Depends-on): Likewise.
26641         * modules/readlink-tests (Depends-on): Likewise.
26642         * modules/remove-tests (Depends-on): Likewise.
26643         * modules/rename-tests (Depends-on): Likewise.
26644         * modules/renameat-tests (Depends-on): Likewise.
26645         * modules/rmdir-tests (Depends-on): Likewise.
26646         * modules/symlink-tests (Depends-on): Likewise.
26647         * modules/symlinkat-tests (Depends-on): Likewise.
26648         * modules/unlink-tests (Depends-on): Likewise.
26649         * modules/utimens-tests (Depends-on): Likewise.
26650         * modules/utimensat-tests (Depends-on): Likewise.
26651
26652 2010-01-31  Bruno Haible  <bruno@clisp.org>
26653
26654         Perform the same test for many <math.h> functions.
26655         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
26656         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
26657         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
26658         of gl_MATHFUNC.
26659         * modules/acos (configure.ac): Likewise.
26660         * modules/asin (configure.ac): Likewise.
26661         * modules/atan (configure.ac): Likewise.
26662         * modules/atan2 (configure.ac): Likewise.
26663         * modules/cbrt (configure.ac): Likewise.
26664         * modules/copysign (configure.ac): Likewise.
26665         * modules/cos (configure.ac): Likewise.
26666         * modules/cosh (configure.ac): Likewise.
26667         * modules/erf (configure.ac): Likewise.
26668         * modules/erfc (configure.ac): Likewise.
26669         * modules/exp (configure.ac): Likewise.
26670         * modules/fmod (configure.ac): Likewise.
26671         * modules/hypot (configure.ac): Likewise.
26672         * modules/j0 (configure.ac): Likewise.
26673         * modules/j1 (configure.ac): Likewise.
26674         * modules/jn (configure.ac): Likewise.
26675         * modules/lgamma (configure.ac): Likewise.
26676         * modules/log (configure.ac): Likewise.
26677         * modules/log10 (configure.ac): Likewise.
26678         * modules/log1p (configure.ac): Likewise.
26679         * modules/pow (configure.ac): Likewise.
26680         * modules/remainder (configure.ac): Likewise.
26681         * modules/sin (configure.ac): Likewise.
26682         * modules/sinh (configure.ac): Likewise.
26683         * modules/tan (configure.ac): Likewise.
26684         * modules/tanh (configure.ac): Likewise.
26685         * modules/y0 (configure.ac): Likewise.
26686         * modules/y1 (configure.ac): Likewise.
26687         * modules/yn (configure.ac): Likewise.
26688         Suggested by Paolo Bonzini.
26689
26690 2010-01-31  Bruno Haible  <bruno@clisp.org>
26691
26692         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
26693
26694 2010-01-31  Bruno Haible  <bruno@clisp.org>
26695
26696         Work around getdelim() bug on FreeBSD 8.0.
26697         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
26698         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
26699         not work.
26700         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
26701         is 1.
26702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
26703         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
26704         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
26705         a non-zero size.
26706         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
26707
26708 2010-01-31  Bruno Haible  <bruno@clisp.org>
26709
26710         Work around getline() bug on FreeBSD 8.0.
26711         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
26712         and a non-zero size.
26713         * tests/test-getline.c (main): Likewise.
26714         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
26715         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
26716
26717 2010-01-28  Eric Blake  <ebb9@byu.net>
26718
26719         regex: fix build failure
26720         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
26721         platforms.
26722
26723 2010-01-28  Jim Meyering  <meyering@redhat.com>
26724
26725         regex: do not ignore memory allocation failure
26726         * lib/regex_internal.c (create_cd_newstate): Detect
26727         re_node_set_init_copy failure.   Extracted from glibc commit
26728         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26729
26730         regex: sync more white-space changes from libc
26731         * lib/regex_internal.c: White-space only changes.
26732         * lib/regexec.c: Likewise.
26733
26734         regex: add many uses of __attribute_warn_unused_result__
26735         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
26736         * lib/regexec.c: Likewise.
26737         Extracted from a messy glibc commit.
26738
26739         regcomp.c: spelling and merge-artifact from glibc
26740         * lib/regcomp.c: Merge remainder of glibc's
26741         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26742
26743         regcomp.c: sync white-space changes from glibc
26744         * lib/regcomp.c: Merge to accommodate white space
26745         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26746
26747         regcomp.c: do not ignore internal return values
26748         * lib/regcomp.c: Do not ignore internal return values.
26749         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
26750         but without its white-space changes and spelling fixes.
26751
26752         regex_internal.h: define __attribute_warn_unused_result__
26753         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
26754
26755         maint: add a syntax-check rule to check for vulnerable Makefile.in
26756         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
26757
26758 2010-01-27  Jim Meyering  <meyering@redhat.com>
26759
26760         ncftpput-ftp: clean up spaces
26761         * build-aux/ncftpput-ftp: Make Copyright line consistent.
26762         Remove trailing blanks.
26763
26764 2010-01-27  Simon Josefsson  <simon@josefsson.org>
26765
26766         * build-aux/git-version-gen: Fix copyright statement.
26767         * build-aux/gnupload: Likewise.
26768         * tests/test-arcfour.c: Likewise.
26769         * tests/test-arctwo.c: Likewise.
26770         * tests/test-count-one-bits.c: Likewise.
26771         * tests/test-crc.c: Likewise.
26772         * tests/test-des.c: Likewise.
26773         * tests/test-gc-arcfour.c: Likewise.
26774         * tests/test-gc-arctwo.c: Likewise.
26775         * tests/test-gc-des.c: Likewise.
26776         * tests/test-gc-hmac-md5.c: Likewise.
26777         * tests/test-gc-hmac-sha1.c: Likewise.
26778         * tests/test-gc-md2.c: Likewise.
26779         * tests/test-gc-md4.c: Likewise.
26780         * tests/test-gc-md5.c: Likewise.
26781         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26782         * tests/test-gc-rijndael.c: Likewise.
26783         * tests/test-gc-sha1.c: Likewise.
26784         * tests/test-gc.c: Likewise.
26785         * tests/test-gethostname.c: Likewise.
26786         * tests/test-gettimeofday.c: Likewise.
26787         * tests/test-hash.c: Likewise.
26788         * tests/test-hmac-md5.c: Likewise.
26789         * tests/test-hmac-sha1.c: Likewise.
26790         * tests/test-md2.c: Likewise.
26791         * tests/test-md4.c: Likewise.
26792         * tests/test-md5.c: Likewise.
26793         * tests/test-memchr.c: Likewise.
26794         * tests/test-memchr2.c: Likewise.
26795         * tests/test-memcmp.c: Likewise.
26796         * tests/test-memmem.c: Likewise.
26797         * tests/test-memrchr.c: Likewise.
26798         * tests/test-rawmemchr.c: Likewise.
26799         * tests/test-read-file.c: Likewise.
26800         * tests/test-rijndael.c: Likewise.
26801         * tests/test-sockets.c: Likewise.
26802         * tests/test-strchrnul.c: Likewise.
26803         * tests/test-strstr.c: Likewise.
26804         * tests/test-strtod.c: Likewise.
26805         * build-aux/ncftpput-ftp: Likewise.
26806
26807 2010-01-26  Eric Blake  <ebb9@byu.net>
26808
26809         ignore-value: update recommended header name
26810         * modules/ignore-value (Include): Only use <> for headers that
26811         exist in glibc.
26812
26813 2010-01-26  Jim Meyering  <meyering@redhat.com>
26814
26815         test-userspec.c: avoid compiler warnings
26816         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
26817         and "initialization discards qualifiers..." warnings.
26818         Put the first "uid" in its own scope, and make char* members "const".
26819
26820 2010-01-25  Bruno Haible  <bruno@clisp.org>
26821
26822         gnulib-tool: Make warning diagnostics consistent.
26823         * gnulib-tool (func_warning): New function.
26824         Use it everywhere where gnulib-tool produces output to stderr and it is
26825         not a fatal error.
26826
26827 2010-01-25  Bruno Haible  <bruno@clisp.org>
26828
26829         Fix test dependencies.
26830         * modules/xstrtol-tests (Depends-on): Add inttypes.
26831         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
26832
26833 2010-01-25 Pádraig Brady <P@draigBrady.com>
26834
26835         syntax-check: detect incorrect boolean macro values in config.h
26836         * modules/maintainer-makefile (configure.ac): Parameterize the location
26837         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
26838         The logic is from Eric Blake and the location indicated by Jim Meyering.
26839         Note the more natural CONFIG_HEADER name is prohibited by automake
26840         for backwards compatibility reasons.
26841         * top/maint.mk (sc_Wundef_boolean): New rule.
26842
26843 2010-01-25  Jim Meyering  <meyering@redhat.com>
26844
26845         bootstrap: detect MacOS 10.6's shasum, too
26846         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
26847         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
26848
26849 2010-01-23  Jim Meyering  <meyering@redhat.com>
26850
26851         xstrtoll: new module
26852         * modules/xstrtoll: New file.
26853         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
26854         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
26855         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
26856         ./configure fails if you use this module and lack "long long".
26857         * modules/xstrtoll-tests: New module.
26858         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
26859         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
26860         new init.sh-based test framework.
26861
26862 2010-01-24  Bruno Haible  <bruno@clisp.org>
26863
26864         Tests for module 'yn'.
26865         * modules/yn-tests: New file.
26866         * tests/test-yn.c: New file.
26867
26868         Tests for module 'y1'.
26869         * modules/y1-tests: New file.
26870         * tests/test-y1.c: New file.
26871
26872         Tests for module 'y0'.
26873         * modules/y0-tests: New file.
26874         * tests/test-y0.c: New file.
26875
26876         Tests for module 'tanh'.
26877         * modules/tanh-tests: New file.
26878         * tests/test-tanh.c: New file.
26879
26880         Tests for module 'tan'.
26881         * modules/tan-tests: New file.
26882         * tests/test-tan.c: New file.
26883
26884         Tests for module 'sqrt'.
26885         * modules/sqrt-tests: New file.
26886         * tests/test-sqrt.c: New file.
26887
26888         Tests for module 'sinh'.
26889         * modules/sinh-tests: New file.
26890         * tests/test-sinh.c: New file.
26891
26892         Tests for module 'sin'.
26893         * modules/sin-tests: New file.
26894         * tests/test-sin.c: New file.
26895
26896         Tests for module 'rint'.
26897         * modules/rint-tests: New file.
26898         * tests/test-rint.c: New file.
26899
26900         Tests for module 'remainder'.
26901         * modules/remainder-tests: New file.
26902         * tests/test-remainder.c: New file.
26903
26904         Tests for module 'pow'.
26905         * modules/pow-tests: New file.
26906         * tests/test-pow.c: New file.
26907
26908         Tests for module 'nextafter'.
26909         * modules/nextafter-tests: New file.
26910         * tests/test-nextafter.c: New file.
26911
26912         Tests for module 'modf'.
26913         * modules/modf-tests: New file.
26914         * tests/test-modf.c: New file.
26915
26916         Tests for module 'logb'.
26917         * modules/logb-tests: New file.
26918         * tests/test-logb.c: New file.
26919
26920         Tests for module 'log1p'.
26921         * modules/log1p-tests: New file.
26922         * tests/test-log1p.c: New file.
26923
26924         Tests for module 'log10'.
26925         * modules/log10-tests: New file.
26926         * tests/test-log10.c: New file.
26927
26928         Tests for module 'log'.
26929         * modules/log-tests: New file.
26930         * tests/test-log.c: New file.
26931
26932         Tests for module 'lgamma'.
26933         * modules/lgamma-tests: New file.
26934         * tests/test-lgamma.c: New file.
26935
26936         Tests for module 'ldexp'.
26937         * modules/ldexp-tests: New file.
26938         * tests/test-ldexp.c: New file.
26939
26940         Tests for module 'jn'.
26941         * modules/jn-tests: New file.
26942         * tests/test-jn.c: New file.
26943
26944         Tests for module 'j1'.
26945         * modules/j1-tests: New file.
26946         * tests/test-j1.c: New file.
26947
26948         Tests for module 'j0'.
26949         * modules/j0-tests: New file.
26950         * tests/test-j0.c: New file.
26951
26952         Tests for module 'hypot'.
26953         * modules/hypot-tests: New file.
26954         * tests/test-hypot.c: New file.
26955
26956         Tests for module 'fmod'.
26957         * modules/fmod-tests: New file.
26958         * tests/test-fmod.c: New file.
26959
26960         Tests for module 'fabs'.
26961         * modules/fabs-tests: New file.
26962         * tests/test-fabs.c: New file.
26963
26964         Tests for module 'exp'.
26965         * modules/exp-tests: New file.
26966         * tests/test-exp.c: New file.
26967
26968         Tests for module 'erfc'.
26969         * modules/erfc-tests: New file.
26970         * tests/test-erfc.c: New file.
26971
26972         Tests for module 'erf'.
26973         * modules/erf-tests: New file.
26974         * tests/test-erf.c: New file.
26975
26976         Tests for module 'cosh'.
26977         * modules/cosh-tests: New file.
26978         * tests/test-cosh.c: New file.
26979
26980         Tests for module 'cos'.
26981         * modules/cos-tests: New file.
26982         * tests/test-cos.c: New file.
26983
26984         Tests for module 'copysign'.
26985         * modules/copysign-tests: New file.
26986         * tests/test-copysign.c: New file.
26987
26988         Tests for module 'cbrt'.
26989         * modules/cbrt-tests: New file.
26990         * tests/test-cbrt.c: New file.
26991
26992         Tests for module 'atan2'.
26993         * modules/atan2-tests: New file.
26994         * tests/test-atan2.c: New file.
26995
26996         Tests for module 'atan'.
26997         * modules/atan-tests: New file.
26998         * tests/test-atan.c: New file.
26999
27000         Tests for module 'asin'.
27001         * modules/asin-tests: New file.
27002         * tests/test-asin.c: New file.
27003
27004         Tests for module 'acos'.
27005         * modules/acos-tests: New file.
27006         * tests/test-acos.c: New file.
27007
27008 2010-01-24  Bruno Haible  <bruno@clisp.org>
27009
27010         Fix tests for common <math.h> functions.
27011         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27012         code snippet that references the function pointer, rather than merely
27013         calling the function. Substitute the FUNC_LIBM variable.
27014         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27015         * modules/acos (configure.ac): Likewise.
27016         * modules/asin (configure.ac): Likewise.
27017         * modules/atan (configure.ac): Likewise.
27018         * modules/atan2 (configure.ac): Likewise.
27019         * modules/cbrt (configure.ac): Likewise.
27020         * modules/copysign (configure.ac): Likewise.
27021         * modules/cos (configure.ac): Likewise.
27022         * modules/cosh (configure.ac): Likewise.
27023         * modules/erf (configure.ac): Likewise.
27024         * modules/erfc (configure.ac): Likewise.
27025         * modules/exp (configure.ac): Likewise.
27026         * modules/fabs (configure.ac): Likewise.
27027         * modules/fmod (configure.ac): Likewise.
27028         * modules/hypot (configure.ac): Likewise.
27029         * modules/j0 (configure.ac): Likewise.
27030         * modules/j1 (configure.ac): Likewise.
27031         * modules/jn (configure.ac): Likewise.
27032         * modules/ldexp (configure.ac): Likewise.
27033         * modules/lgamma (configure.ac): Likewise.
27034         * modules/log (configure.ac): Likewise.
27035         * modules/log10 (configure.ac): Likewise.
27036         * modules/log1p (configure.ac): Likewise.
27037         * modules/logb (configure.ac): Likewise.
27038         * modules/modf (configure.ac): Likewise.
27039         * modules/nextafter (configure.ac): Likewise.
27040         * modules/pow (configure.ac): Likewise.
27041         * modules/remainder (configure.ac): Likewise.
27042         * modules/rint (configure.ac): Likewise.
27043         * modules/sin (configure.ac): Likewise.
27044         * modules/sinh (configure.ac): Likewise.
27045         * modules/tan (configure.ac): Likewise.
27046         * modules/tanh (configure.ac): Likewise.
27047         * modules/y0 (configure.ac): Likewise.
27048         * modules/y1 (configure.ac): Likewise.
27049         * modules/yn (configure.ac): Likewise.
27050
27051 2010-01-24  Bruno Haible  <bruno@clisp.org>
27052
27053         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27054         * tests/test-acosl.c (x): New variable.
27055         (main): Store argument in x and fetch it from x.
27056         * tests/test-asinl.c (x): New variable.
27057         (main): Store argument in x and fetch it from x.
27058         * tests/test-atanl.c (x): New variable.
27059         (main): Store argument in x and fetch it from x.
27060         * tests/test-cosl.c (x): New variable.
27061         (main): Store argument in x and fetch it from x.
27062         * tests/test-expl.c (x): New variable.
27063         (main): Store argument in x and fetch it from x.
27064         * tests/test-logl.c (x): New variable.
27065         (main): Store argument in x and fetch it from x.
27066         * tests/test-sinl.c (x): New variable.
27067         (main): Store argument in x and fetch it from x.
27068         * tests/test-sqrtl.c (x): New variable.
27069         (main): Store argument in x and fetch it from x.
27070         * tests/test-tanl.c (x): New variable.
27071         (main): Store argument in x and fetch it from x.
27072
27073 2010-01-24  Bruno Haible  <bruno@clisp.org>
27074
27075         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27076         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27077         assignments to the initial TESTS_ENVIRONMENT.
27078         * doc/gnulib.texi (Unit test modules): Document it.
27079         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27080         TESTS_ENVIRONMENT.
27081         * modules/btowc-tests (Makefile.am): Likewise.
27082         * modules/c-stack-tests (Makefile.am): Likewise.
27083         * modules/c-strcase-tests (Makefile.am): Likewise.
27084         * modules/copy-file-tests (Makefile.am): Likewise.
27085         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27086         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27087         * modules/mbrtowc-tests (Makefile.am): Likewise.
27088         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27089         * modules/mbscasestr-tests (Makefile.am): Likewise.
27090         * modules/mbschr-tests (Makefile.am): Likewise.
27091         * modules/mbscspn-tests (Makefile.am): Likewise.
27092         * modules/mbsinit-tests (Makefile.am): Likewise.
27093         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27094         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27095         * modules/mbspbrk-tests (Makefile.am): Likewise.
27096         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27097         * modules/mbsrchr-tests (Makefile.am): Likewise.
27098         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27099         * modules/mbsspn-tests (Makefile.am): Likewise.
27100         * modules/mbsstr-tests (Makefile.am): Likewise.
27101         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27102         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27103         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27104         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27105         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27106         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27107         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27108         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27109         * modules/wcrtomb-tests (Makefile.am): Likewise.
27110         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27111         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27112         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27113         assignments from TESTS_ENVIRONMENT.
27114         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27115         augmentation.
27116         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27117         * modules/atexit-tests (Makefile.am): Likewise.
27118         * modules/binary-io-tests (Makefile.am): Likewise.
27119         * modules/closein-tests (Makefile.am): Likewise.
27120         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27121         * modules/exclude-tests (Makefile.am): Likewise.
27122         * modules/fflush-tests (Makefile.am): Likewise.
27123         * modules/fpending-tests (Makefile.am): Likewise.
27124         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27125         * modules/freadahead-tests (Makefile.am): Likewise.
27126         * modules/freadptr-tests (Makefile.am): Likewise.
27127         * modules/freadseek-tests (Makefile.am): Likewise.
27128         * modules/fseek-tests (Makefile.am): Likewise.
27129         * modules/fseeko-tests (Makefile.am): Likewise.
27130         * modules/ftell-tests (Makefile.am): Likewise.
27131         * modules/ftello-tests (Makefile.am): Likewise.
27132         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27133         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27134         * modules/lseek-tests (Makefile.am): Likewise.
27135         * modules/parse-duration-tests (Makefile.am): Likewise.
27136         * modules/perror-tests (Makefile.am): Likewise.
27137         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27138         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27139         * modules/pipe-tests (Makefile.am): Likewise.
27140         * modules/pread-tests (Makefile.am): Likewise.
27141         * modules/printf-posix-tests (Makefile.am): Likewise.
27142         * modules/select-tests (Makefile.am): Likewise.
27143         * modules/sigpipe-tests (Makefile.am): Likewise.
27144         * modules/tsearch-tests (Makefile.am): Likewise.
27145         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27146         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27147         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27148         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27149         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27150         * modules/version-etc-tests (Makefile.am): Likewise.
27151         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27152         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27153         * modules/xalloc-die-tests (Makefile.am): Likewise.
27154         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27155         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27156         * modules/xstrtol-tests (Makefile.am): Likewise.
27157         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27158         * modules/yesno-tests (Makefile.am): Likewise.
27159         Suggested by Jim Meyering.
27160
27161 2010-01-24  Bruno Haible  <bruno@clisp.org>
27162
27163         More documentation.
27164         * doc/gnulib.texi (Writing modules): New chapter.
27165         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27166         the new chapter.
27167
27168 2010-01-24  Jim Meyering  <meyering@redhat.com>
27169
27170         maint.mk: do not prepend "./" after filtering
27171         * top/maint.mk (_prepend_srcdir_prefix): New variable
27172         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27173         "./" when $(srcdir) is ".".
27174
27175         define STREQ(a,b) consistently, removing useless parentheses
27176         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27177         since the only risk is that "a" or "b" contains an unparenthesized
27178         comma, but if either did that, STREQ would have 3 or more arguments.
27179         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27180         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27181         * lib/hash-triple.c (STREQ): Likewise.
27182         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27183         * lib/getugroups.c (STREQ): Likewise.
27184
27185 2010-01-23  Jim Meyering  <meyering@redhat.com>
27186
27187         maint.mk: fix syntax-check in a non-srcdir build directory
27188         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27189         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27190
27191 2010-01-22  Jim Meyering  <meyering@redhat.com>
27192
27193         userspec: add unit tests
27194         * tests/test-userspec.c: New file.
27195         * modules/userspec-tests: Likewise.
27196
27197 2010-01-21  Jim Meyering  <meyering@redhat.com>
27198
27199         maint.mk: handle source file names containing "." robustly
27200         * top/maint.mk (_dot_escaped_srcdir): Define.
27201         (VC_LIST): Use it in LHS of sed substitution.
27202
27203 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27204
27205         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27206         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27207         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27208         from a non-srcdir build.
27209
27210 2010-01-20  Eric Blake  <ebb9@byu.net>
27211
27212         warn-on-use: use instead of link-warning
27213         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27214         * modules/unistd (Depends-on, Makefile.am): Likewise.
27215         * modules/arpa_inet (Depends-on): Replace link-warning with
27216         warn-on-use.
27217         (Makefile.am): Update rules accordingly.
27218         * modules/ctype (Depends-on, Makefile.am): Likewise.
27219         * modules/dirent (Depends-on, Makefile.am): Likewise.
27220         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27221         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27222         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27223         * modules/locale (Depends-on, Makefile.am): Likewise.
27224         * modules/math (Depends-on, Makefile.am): Likewise.
27225         * modules/search (Depends-on, Makefile.am): Likewise.
27226         * modules/signal (Depends-on, Makefile.am): Likewise.
27227         * modules/spawn (Depends-on, Makefile.am): Likewise.
27228         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27229         * modules/string (Depends-on, Makefile.am): Likewise.
27230         * modules/strings (Depends-on, Makefile.am): Likewise.
27231         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27232         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27233         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27234         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27235         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27236         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27237         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27238         * modules/wchar (Depends-on, Makefile.am): Likewise.
27239         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27240         should be poisoned.
27241         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27242         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27243         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27244         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27245         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27246         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27247         * m4/math_h.m4 (gl_MATH_H): Likewise.
27248         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27249         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27250         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27251         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27252         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27253         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27254         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27255         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27256         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27257         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27258         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27259         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27260         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27261         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27262         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27263         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27264         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27265         GL_LINK_WARNING.
27266         * lib/ctype.in.h: Likewise.
27267         * lib/dirent.in.h: Likewise.
27268         * lib/fcntl.in.h: Likewise.
27269         * lib/inttypes.in.h: Likewise.
27270         * lib/langinfo.in.h: Likewise.
27271         * lib/locale.in.h: Likewise.
27272         * lib/math.in.h: Likewise.
27273         * lib/search.in.h: Likewise.
27274         * lib/signal.in.h: Likewise.
27275         * lib/spawn.in.h: Likewise.
27276         * lib/stdio.in.h: Likewise.
27277         * lib/stdlib.in.h: Likewise.
27278         * lib/string.in.h: Likewise.
27279         * lib/strings.in.h: Likewise.
27280         * lib/sys_file.in.h: Likewise.
27281         * lib/sys_ioctl.in.h: Likewise.
27282         * lib/sys_select.in.h: Likewise.
27283         * lib/sys_socket.in.h: Likewise.
27284         * lib/sys_stat.in.h: Likewise.
27285         * lib/sys_times.in.h: Likewise.
27286         * lib/sys_utsname.in.h: Likewise.
27287         * lib/unistd.in.h: Likewise.
27288         * lib/wchar.in.h: Likewise.
27289
27290 2010-01-20  Bruno Haible  <bruno@clisp.org>
27291
27292         Avoid duplicate -lm.
27293         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27294         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27295         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27296         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27297         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27298         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27299         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27300         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27301         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27302         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27303         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27304         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27305         Reported by Paolo Bonzini.
27306
27307 2010-01-19  Bruno Haible  <bruno@clisp.org>
27308
27309         langinfo, nl_langinfo: Relicense under LGPLv2+.
27310         * modules/langinfo (License): Change to LGPLv2+.
27311         * modules/nl_langinfo (License): Likewise.
27312         Patch by David Lutterkort <lutter@redhat.com>.
27313
27314 2010-01-19  Bruno Haible  <bruno@clisp.org>
27315
27316         Avoid compilation error with cc on OSF/1 5.1.
27317         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27318         statement, not before.
27319         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27320
27321 2010-01-18  Bruno Haible  <bruno@clisp.org>
27322
27323         Avoid a link error due to the __printf__ symbol.
27324         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27325         and 2.6.x.
27326         (__format__, __printf__): Remove definitions.
27327         * lib/argp-fmtstream.h: Likewise.
27328         * lib/argp.h: Likewise.
27329         * lib/error.h: Likewise.
27330         * lib/vasnprintf.h: Likewise.
27331         * lib/xprintf.h: Likewise.
27332         * lib/xvasprintf.h: Likewise.
27333         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27334
27335 2010-01-18  Bruno Haible  <bruno@clisp.org>
27336
27337         Tests for module 'tanl'.
27338         * modules/tanl-tests: New file.
27339         * tests/test-tanl.c: New file.
27340
27341         Tests for module 'sqrtl'.
27342         * modules/sqrtl-tests: New file.
27343         * tests/test-sqrtl.c: New file.
27344
27345         Tests for module 'sinl'.
27346         * modules/sinl-tests: New file.
27347         * tests/test-sinl.c: New file.
27348
27349         Tests for module 'logl'.
27350         * modules/logl-tests: New file.
27351         * tests/test-logl.c: New file.
27352
27353         Tests for module 'expl'.
27354         * modules/expl-tests: New file.
27355         * tests/test-expl.c: New file.
27356
27357         Tests for module 'cosl'.
27358         * modules/cosl-tests: New file.
27359         * tests/test-cosl.c: New file.
27360
27361         Tests for module 'atanl'.
27362         * modules/atanl-tests: New file.
27363         * tests/test-atanl.c: New file.
27364
27365         Tests for module 'asinl'.
27366         * modules/asinl-tests: New file.
27367         * tests/test-asinl.c: New file.
27368
27369         Tests for module 'acosl'.
27370         * modules/acosl-tests: New file.
27371         * tests/test-acosl.c: New file.
27372
27373         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27374         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
27375         tanl): Use the standard gnulib idiom.
27376         * lib/cosl.c: Don't include trigl.c and sincosl.c.
27377         * lib/sinl.c: Likewise.
27378         * lib/tanl.c: Don't include trigl.c.
27379         (kernel_tanl): Make static.
27380         * lib/sincosl.c: Include trigl.h first.
27381         * lib/trigl.c: Likewise.
27382         * m4/acosl.m4: New file.
27383         * m4/asinl.m4: New file.
27384         * m4/atanl.m4: New file.
27385         * m4/cosl.m4: New file.
27386         * m4/expl.m4: New file.
27387         * m4/logl.m4: New file.
27388         * m4/sinl.m4: New file.
27389         * m4/sqrtl.m4: New file.
27390         * m4/tanl.m4: New file.
27391         * m4/mathl.m4: Remove file.
27392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
27393         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27394         Don't initialize GNULIB_MATHL.
27395         * modules/acosl: New file.
27396         * modules/asinl: New file.
27397         * modules/atanl: New file.
27398         * modules/cosl: New file.
27399         * modules/expl: New file.
27400         * modules/logl: New file.
27401         * modules/sinl: New file.
27402         * modules/sqrtl: New file.
27403         * modules/tanl: New file.
27404         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
27405         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
27406         substitute GNULIB_MATHL.
27407         * modules/mathl: Rewritten.
27408         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
27409         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
27410         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
27411         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
27412         * doc/posix-functions/expl.texi: Mention the 'expl' module.
27413         * doc/posix-functions/logl.texi: Mention the 'logl' module.
27414         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
27415         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
27416         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
27417
27418 2010-01-18  Bruno Haible  <bruno@clisp.org>
27419
27420         sqrt: Make gl_FUNC_SQRT requirable.
27421         * m4/sqrt.m4: New file.
27422         * modules/sqrt (Files): Add it.
27423         (configure.ac): Invoke gl_FUNC_SQRT.
27424
27425 2010-01-18  Bruno Haible  <bruno@clisp.org>
27426
27427         New modules for common <math.h> functions.
27428         * m4/mathfunc.m4: New file.
27429         * modules/acos: New file.
27430         * modules/asin: New file.
27431         * modules/atan: New file.
27432         * modules/atan2: New file.
27433         * modules/cbrt: New file.
27434         * modules/copysign: New file.
27435         * modules/cos: New file.
27436         * modules/cosh: New file.
27437         * modules/erf: New file.
27438         * modules/erfc: New file.
27439         * modules/exp: New file.
27440         * modules/fabs: New file.
27441         * modules/fmod: New file.
27442         * modules/hypot: New file.
27443         * modules/j0: New file.
27444         * modules/j1: New file.
27445         * modules/jn: New file.
27446         * modules/ldexp: New file.
27447         * modules/lgamma: New file.
27448         * modules/log: New file.
27449         * modules/log10: New file.
27450         * modules/log1p: New file.
27451         * modules/logb: New file.
27452         * modules/modf: New file.
27453         * modules/nextafter: New file.
27454         * modules/pow: New file.
27455         * modules/remainder: New file.
27456         * modules/rint: New file.
27457         * modules/sin: New file.
27458         * modules/sinh: New file.
27459         * modules/sqrt: New file.
27460         * modules/tan: New file.
27461         * modules/tanh: New file.
27462         * modules/y0: New file.
27463         * modules/y1: New file.
27464         * modules/yn: New file.
27465         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27466         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27467         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27468         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27469         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27470         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27471         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27472         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27473         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27474         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27475         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27476         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27477         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27478         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27479         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27480         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27481         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27482         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27483         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
27484         * doc/posix-functions/log.texi: Mention the 'log' module.
27485         * doc/posix-functions/log10.texi: Mention the 'log10' module.
27486         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
27487         * doc/posix-functions/logb.texi: Mention the 'logb' module.
27488         * doc/posix-functions/modf.texi: Mention the 'modf' module.
27489         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
27490         * doc/posix-functions/pow.texi: Mention the 'pow' module.
27491         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
27492         * doc/posix-functions/rint.texi: Mention the 'rint' module.
27493         * doc/posix-functions/sin.texi: Mention the 'sin' module.
27494         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
27495         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
27496         * doc/posix-functions/tan.texi: Mention the 'tan' module.
27497         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
27498         * doc/posix-functions/y0.texi: Mention the 'y0' module.
27499         * doc/posix-functions/y1.texi: Mention the 'y1' module.
27500         * doc/posix-functions/yn.texi: Mention the 'yn' module.
27501
27502 2010-01-18  Jim Meyering  <meyering@redhat.com>
27503
27504         ignore-value: relax license to LGPLv2+
27505         * modules/ignore-value (License): Relax to LGPLv2+.
27506
27507         getdate: don't leak when TZ contains two or more '"'s
27508         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
27509         double quote in TZ after the first one.
27510
27511         readtokens: do not leak internal token_lengths buffer
27512         * lib/readtokens.c (readtokens): Free the local, lengths,
27513         when the supplied "token_lengths" parameter is NULL.
27514
27515 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27516
27517         Fix a couple of missing LIBTHREAD link failures on AIX.
27518         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
27519         $(LIBTHREAD).
27520         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
27521
27522         Link test-poll against INET_PTON_LIB.
27523         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27524         for inet_pton on Solaris 10.
27525
27526 2010-01-17  Bruno Haible  <bruno@clisp.org>
27527
27528         unistdio/*-sprintf: Fix typo in module description.
27529         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
27530         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
27531         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
27532         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
27533         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
27534         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
27535         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
27536         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27537
27538 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27539
27540         gnulib-tool: fix filelist for AIX, HP-UX ksh.
27541         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
27542         variables in shell case patterns, for AIX and HP-UX ksh.
27543
27544         Split large sed scripts, for HP-UX sed.
27545         * modules/stdio: Split sed scripts around 50 sed commands,
27546         to avoid HP-UX limit of 99 commands, in the near future.
27547         * modules/string: Likewise.
27548         * modules/unistd: Likewise.
27549
27550         gnulib-tool: avoid writing in the current directory.
27551         * gnulib-tool (func_emit_lib_Makefile_am)
27552         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
27553         not in the current directory, so concurrent gnulib-tool
27554         instances do not interfere.
27555
27556 2010-01-16  Jim Meyering  <meyering@redhat.com>
27557
27558         doc: update users.txt
27559         * users.txt: Add grep.
27560         (diffutils, gzip): Update URLs.
27561
27562 2010-01-12  Bruno Haible  <bruno@clisp.org>
27563
27564         posix_spawn: Avoid test failure on Cygwin.
27565         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
27566         characters.
27567         Reported by Simon Josefsson.
27568
27569 2010-01-12  Bruno Haible  <bruno@clisp.org>
27570
27571         * tests/test-cond.c (main): When skipping the test, show the reason.
27572
27573 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27574
27575         * lib/striconv.c (str_cd_iconv): Avoid if before free.
27576
27577 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27578
27579         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
27580         VC_LIST_ALWAYS_EXCLUDE_REGEX.
27581
27582 2010-01-12  Eric Blake  <ebb9@byu.net>
27583
27584         build: guarantee AS_VAR_IF
27585         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
27586         (gl_AS_VAR_IF): Move...
27587         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
27588         Reported by Simon Josefsson.
27589
27590 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27591
27592         * lib/stdio.in.h: Fix typo.
27593
27594 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27595
27596         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
27597         libgpg-error.
27598
27599 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27600
27601         * tests/test-xalloc-die.sh: Use $EXEEXT.
27602
27603 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27604             Bruno Haible  <bruno@clisp.org>
27605
27606         getlogin, getlogin_r: Avoid test failure.
27607         * tests/test-getlogin.c: Include <stdio.h>.
27608         (main): Skip the test when the function fails because stdin is not a
27609         tty.
27610         * tests/test-getlogin_r.c: Include <stdio.h>.
27611         (main): Skip the test when the function fails because stdin is not a
27612         tty.
27613
27614 2010-01-11  Eric Blake  <ebb9@byu.net>
27615
27616         tests: avoid more large file warnings
27617         * tests/test-fflush.c: Avoid warning about ftell use.
27618         * tests/test-fseek.c: Avoid warning about fseek use.
27619
27620 2010-01-10  Bruno Haible  <bruno@clisp.org>
27621
27622         nproc: Work better on Linux when /proc and /sys are not mounted.
27623         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
27624         as lower bound when, on glibc/Linux systems,
27625         sysconf (_SC_NPROCESSORS_CONF) returns 1.
27626         Suggested by Pádraig Brady <P@draigbrady.com>.
27627         Reported by Dmitry V. Levin <ldv@altlinux.org>.
27628
27629         nproc: Refactor.
27630         * lib/nproc.c (num_processors_via_affinity_mask): New function,
27631         extracted from num_processors.
27632         (num_processors): Call it.
27633
27634 2010-01-11  Jim Meyering  <meyering@redhat.com>
27635
27636         utimecmp: avoid new warning from upcoming gcc-4.5.0
27637         * lib/utimecmp.c (BILLION): Define using #define rather than an
27638         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
27639
27640 2010-01-11  Eric Blake  <ebb9@byu.net>
27641
27642         math: add portability warnings for classification macros
27643         * modules/math (Depends-on): Add warn-on-use.
27644         (Makefile.am): Provide new substitutions.
27645         * m4/math_h.m4 (gl_MATH_H): Require inline.
27646         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
27647         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
27648         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
27649         implement warnings.
27650
27651         unistd: warn on use of environ without module
27652         * modules/unistd (Depends-on): Add warn-on-use.
27653         (Makefile.am): Provide new substitutions.
27654         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
27655         * lib/unistd.in.h (environ): Wrap with a warning helper function.
27656
27657         stdio: warn on suspicious uses
27658         * modules/stdio (Depends-on): Add warn-on-use.
27659         (Makefile.am): Provide new substitutions.
27660         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
27661         fseeko.
27662         * lib/stdio.in.h (gets): Always warn on use.
27663         (fseek, ftell): Adjust when warnings are issued, and honor
27664         _GL_NO_LARGE_FILES as a way to silence the warning.
27665         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
27666         any warning about large file offsets.
27667         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
27668         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
27669         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
27670         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
27671         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
27672         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
27673         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
27674         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
27675
27676         warn-on-use: new module
27677         * modules/warn-on-use: New file.
27678         * build-aux/warn-on-use.h: Likewise.
27679         * m4/warn-on-use.m4: Likewise.
27680         * MODULES.html.sh (Support for building): Mention it.
27681
27682 2010-01-10  Bruno Haible  <bruno@clisp.org>
27683
27684         Tests for module 'unistr/u32-strdup'.
27685         * modules/unistr/u32-strdup-tests: New file.
27686         * tests/unistr/test-u32-strdup.c: New file.
27687
27688         Tests for module 'unistr/u16-strdup'.
27689         * modules/unistr/u16-strdup-tests: New file.
27690         * tests/unistr/test-u16-strdup.c: New file.
27691
27692         Tests for module 'unistr/u8-strdup'.
27693         * modules/unistr/u8-strdup-tests: New file.
27694         * tests/unistr/test-u8-strdup.c: New file.
27695         * tests/unistr/test-strdup.h: New file.
27696
27697         Tests for module 'unistr/u32-strncmp'.
27698         * modules/unistr/u32-strncmp-tests: New file.
27699         * tests/unistr/test-u32-strncmp.c: New file.
27700
27701         Tests for module 'unistr/u16-strncmp'.
27702         * modules/unistr/u16-strncmp-tests: New file.
27703         * tests/unistr/test-u16-strncmp.c: New file.
27704
27705         Tests for module 'unistr/u8-strncmp'.
27706         * modules/unistr/u8-strncmp-tests: New file.
27707         * tests/unistr/test-u8-strncmp.c: New file.
27708         * tests/unistr/test-strncmp.h: New file.
27709
27710         Tests for module 'unistr/u32-strcoll'.
27711         * modules/unistr/u32-strcoll-tests: New file.
27712         * tests/unistr/test-u32-strcoll.c: New file.
27713
27714         Tests for module 'unistr/u16-strcoll'.
27715         * modules/unistr/u16-strcoll-tests: New file.
27716         * tests/unistr/test-u16-strcoll.c: New file.
27717
27718         Tests for module 'unistr/u8-strcoll'.
27719         * modules/unistr/u8-strcoll-tests: New file.
27720         * tests/unistr/test-u8-strcoll.c: New file.
27721
27722         Tests for module 'unistr/u32-strcmp'.
27723         * modules/unistr/u32-strcmp-tests: New file.
27724         * tests/unistr/test-u32-strcmp.c: New file.
27725         * tests/unistr/test-u32-strcmp.h: New file.
27726
27727         Tests for module 'unistr/u16-strcmp'.
27728         * modules/unistr/u16-strcmp-tests: New file.
27729         * tests/unistr/test-u16-strcmp.c: New file.
27730         * tests/unistr/test-u16-strcmp.h: New file.
27731
27732         Tests for module 'unistr/u8-strcmp'.
27733         * modules/unistr/u8-strcmp-tests: New file.
27734         * tests/unistr/test-u8-strcmp.c: New file.
27735         * tests/unistr/test-u8-strcmp.h: New file.
27736         * tests/unistr/test-strcmp.h: New file.
27737
27738         Tests for module 'unistr/u32-strncat'.
27739         * modules/unistr/u32-strncat-tests: New file.
27740         * tests/unistr/test-u32-strncat.c: New file.
27741
27742         Tests for module 'unistr/u16-strncat'.
27743         * modules/unistr/u16-strncat-tests: New file.
27744         * tests/unistr/test-u16-strncat.c: New file.
27745
27746         Tests for module 'unistr/u8-strncat'.
27747         * modules/unistr/u8-strncat-tests: New file.
27748         * tests/unistr/test-u8-strncat.c: New file.
27749         * tests/unistr/test-strncat.h: New file.
27750
27751         Tests for module 'unistr/u32-strcat'.
27752         * modules/unistr/u32-strcat-tests: New file.
27753         * tests/unistr/test-u32-strcat.c: New file.
27754
27755         Tests for module 'unistr/u16-strcat'.
27756         * modules/unistr/u16-strcat-tests: New file.
27757         * tests/unistr/test-u16-strcat.c: New file.
27758
27759         Tests for module 'unistr/u8-strcat'.
27760         * modules/unistr/u8-strcat-tests: New file.
27761         * tests/unistr/test-u8-strcat.c: New file.
27762         * tests/unistr/test-strcat.h: New file.
27763
27764         Tests for module 'unistr/u32-stpncpy'.
27765         * modules/unistr/u32-stpncpy-tests: New file.
27766         * tests/unistr/test-u32-stpncpy.c: New file.
27767
27768         Tests for module 'unistr/u16-stpncpy'.
27769         * modules/unistr/u16-stpncpy-tests: New file.
27770         * tests/unistr/test-u16-stpncpy.c: New file.
27771
27772         Tests for module 'unistr/u8-stpncpy'.
27773         * modules/unistr/u8-stpncpy-tests: New file.
27774         * tests/unistr/test-u8-stpncpy.c: New file.
27775         * tests/unistr/test-stpncpy.h: New file.
27776
27777         Tests for module 'unistr/u32-strncpy'.
27778         * modules/unistr/u32-strncpy-tests: New file.
27779         * tests/unistr/test-u32-strncpy.c: New file.
27780
27781         Tests for module 'unistr/u16-strncpy'.
27782         * modules/unistr/u16-strncpy-tests: New file.
27783         * tests/unistr/test-u16-strncpy.c: New file.
27784
27785         Tests for module 'unistr/u8-strncpy'.
27786         * modules/unistr/u8-strncpy-tests: New file.
27787         * tests/unistr/test-u8-strncpy.c: New file.
27788         * tests/unistr/test-strncpy.h: New file.
27789
27790         Tests for module 'unistr/u32-stpcpy'.
27791         * modules/unistr/u32-stpcpy-tests: New file.
27792         * tests/unistr/test-u32-stpcpy.c: New file.
27793
27794         Tests for module 'unistr/u16-stpcpy'.
27795         * modules/unistr/u16-stpcpy-tests: New file.
27796         * tests/unistr/test-u16-stpcpy.c: New file.
27797
27798         Tests for module 'unistr/u8-stpcpy'.
27799         * modules/unistr/u8-stpcpy-tests: New file.
27800         * tests/unistr/test-u8-stpcpy.c: New file.
27801         * tests/unistr/test-stpcpy.h: New file.
27802
27803         Tests for module 'unistr/u32-strcpy'.
27804         * modules/unistr/u32-strcpy-tests: New file.
27805         * tests/unistr/test-u32-strcpy.c: New file.
27806
27807         Tests for module 'unistr/u16-strcpy'.
27808         * modules/unistr/u16-strcpy-tests: New file.
27809         * tests/unistr/test-u16-strcpy.c: New file.
27810
27811         Tests for module 'unistr/u8-strcpy'.
27812         * modules/unistr/u8-strcpy-tests: New file.
27813         * tests/unistr/test-u8-strcpy.c: New file.
27814         * tests/unistr/test-strcpy.h: New file.
27815
27816         Tests for module 'unistr/u32-strnlen'.
27817         * modules/unistr/u32-strnlen-tests: New file.
27818         * tests/unistr/test-u32-strnlen.c: New file.
27819
27820         Tests for module 'unistr/u16-strnlen'.
27821         * modules/unistr/u16-strnlen-tests: New file.
27822         * tests/unistr/test-u16-strnlen.c: New file.
27823
27824         Tests for module 'unistr/u8-strnlen'.
27825         * modules/unistr/u8-strnlen-tests: New file.
27826         * tests/unistr/test-u8-strnlen.c: New file.
27827         * tests/unistr/test-strnlen.h: New file.
27828
27829         Tests for module 'unistr/u32-strlen'.
27830         * modules/unistr/u32-strlen-tests: New file.
27831         * tests/unistr/test-u32-strlen.c: New file.
27832
27833         Tests for module 'unistr/u16-strlen'.
27834         * modules/unistr/u16-strlen-tests: New file.
27835         * tests/unistr/test-u16-strlen.c: New file.
27836
27837         Tests for module 'unistr/u8-strlen'.
27838         * modules/unistr/u8-strlen-tests: New file.
27839         * tests/unistr/test-u8-strlen.c: New file.
27840
27841         Tests for module 'unistr/u32-prev'.
27842         * modules/unistr/u32-prev-tests: New file.
27843         * tests/unistr/test-u32-prev.c: New file.
27844
27845         Tests for module 'unistr/u16-prev'.
27846         * modules/unistr/u16-prev-tests: New file.
27847         * tests/unistr/test-u16-prev.c: New file.
27848
27849         Tests for module 'unistr/u8-prev'.
27850         * modules/unistr/u8-prev-tests: New file.
27851         * tests/unistr/test-u8-prev.c: New file.
27852
27853         Tests for module 'unistr/u32-next'.
27854         * modules/unistr/u32-next-tests: New file.
27855         * tests/unistr/test-u32-next.c: New file.
27856
27857         Tests for module 'unistr/u16-next'.
27858         * modules/unistr/u16-next-tests: New file.
27859         * tests/unistr/test-u16-next.c: New file.
27860
27861         Tests for module 'unistr/u8-next'.
27862         * modules/unistr/u8-next-tests: New file.
27863         * tests/unistr/test-u8-next.c: New file.
27864
27865         Tests for module 'unistr/u32-strmbtouc'.
27866         * modules/unistr/u32-strmbtouc-tests: New file.
27867         * tests/unistr/test-u32-strmbtouc.c: New file.
27868
27869         Tests for module 'unistr/u16-strmbtouc'.
27870         * modules/unistr/u16-strmbtouc-tests: New file.
27871         * tests/unistr/test-u16-strmbtouc.c: New file.
27872
27873         Tests for module 'unistr/u8-strmbtouc'.
27874         * modules/unistr/u8-strmbtouc-tests: New file.
27875         * tests/unistr/test-u8-strmbtouc.c: New file.
27876
27877         Tests for module 'unistr/u32-strmblen'.
27878         * modules/unistr/u32-strmblen-tests: New file.
27879         * tests/unistr/test-u32-strmblen.c: New file.
27880
27881         Tests for module 'unistr/u16-strmblen'.
27882         * modules/unistr/u16-strmblen-tests: New file.
27883         * tests/unistr/test-u16-strmblen.c: New file.
27884
27885         Tests for module 'unistr/u8-strmblen'.
27886         * modules/unistr/u8-strmblen-tests: New file.
27887         * tests/unistr/test-u8-strmblen.c: New file.
27888
27889         Tests for module 'unistr/u32-cpy-alloc'.
27890         * modules/unistr/u32-cpy-alloc-tests: New file.
27891         * tests/unistr/test-u32-cpy-alloc.c: New file.
27892
27893         Tests for module 'unistr/u16-cpy-alloc'.
27894         * modules/unistr/u16-cpy-alloc-tests: New file.
27895         * tests/unistr/test-u16-cpy-alloc.c: New file.
27896
27897         Tests for module 'unistr/u8-cpy-alloc'.
27898         * modules/unistr/u8-cpy-alloc-tests: New file.
27899         * tests/unistr/test-u8-cpy-alloc.c: New file.
27900         * tests/unistr/test-cpy-alloc.h: New file.
27901
27902         Tests for module 'unistr/u32-mbsnlen'.
27903         * modules/unistr/u32-mbsnlen-tests: New file.
27904         * tests/unistr/test-u32-mbsnlen.c: New file.
27905
27906         Tests for module 'unistr/u16-mbsnlen'.
27907         * modules/unistr/u16-mbsnlen-tests: New file.
27908         * tests/unistr/test-u16-mbsnlen.c: New file.
27909
27910         Tests for module 'unistr/u8-mbsnlen'.
27911         * modules/unistr/u8-mbsnlen-tests: New file.
27912         * tests/unistr/test-u8-mbsnlen.c: New file.
27913
27914         Tests for module 'unistr/u32-chr'.
27915         * modules/unistr/u32-chr-tests: New file.
27916         * tests/unistr/test-u32-chr.c: New file.
27917
27918         Tests for module 'unistr/u16-chr'.
27919         * modules/unistr/u16-chr-tests: New file.
27920         * tests/unistr/test-u16-chr.c: New file.
27921
27922         Tests for module 'unistr/u8-chr'.
27923         * modules/unistr/u8-chr-tests: New file.
27924         * tests/unistr/test-u8-chr.c: New file.
27925         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
27926
27927         Tests for module 'unistr/u32-cmp2'.
27928         * modules/unistr/u32-cmp2-tests: New file.
27929         * tests/unistr/test-u32-cmp2.c: New file.
27930
27931         Tests for module 'unistr/u16-cmp2'.
27932         * modules/unistr/u16-cmp2-tests: New file.
27933         * tests/unistr/test-u16-cmp2.c: New file.
27934
27935         Tests for module 'unistr/u8-cmp2'.
27936         * modules/unistr/u8-cmp2-tests: New file.
27937         * tests/unistr/test-u8-cmp2.c: New file.
27938         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
27939
27940         Tests for module 'unistr/u32-cmp'.
27941         * modules/unistr/u32-cmp-tests: New file.
27942         * tests/unistr/test-u32-cmp.c: New file.
27943
27944         Tests for module 'unistr/u16-cmp'.
27945         * modules/unistr/u16-cmp-tests: New file.
27946         * tests/unistr/test-u16-cmp.c: New file.
27947
27948         Tests for module 'unistr/u8-cmp'.
27949         * modules/unistr/u8-cmp-tests: New file.
27950         * tests/unistr/test-u8-cmp.c: New file.
27951         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
27952
27953         Tests for module 'unistr/u32-set'.
27954         * modules/unistr/u32-set-tests: New file.
27955         * tests/unistr/test-u32-set.c: New file.
27956
27957         Tests for module 'unistr/u16-set'.
27958         * modules/unistr/u16-set-tests: New file.
27959         * tests/unistr/test-u16-set.c: New file.
27960
27961         Tests for module 'unistr/u8-set'.
27962         * modules/unistr/u8-set-tests: New file.
27963         * tests/unistr/test-u8-set.c: New file.
27964         * tests/unistr/test-set.h: New file.
27965
27966         Tests for module 'unistr/u32-move'.
27967         * modules/unistr/u32-move-tests: New file.
27968         * tests/unistr/test-u32-move.c: New file.
27969
27970         Tests for module 'unistr/u16-move'.
27971         * modules/unistr/u16-move-tests: New file.
27972         * tests/unistr/test-u16-move.c: New file.
27973
27974         Tests for module 'unistr/u8-move'.
27975         * modules/unistr/u8-move-tests: New file.
27976         * tests/unistr/test-u8-move.c: New file.
27977         * tests/unistr/test-move.h: New file.
27978
27979         Tests for module 'unistr/u32-cpy'.
27980         * modules/unistr/u32-cpy-tests: New file.
27981         * tests/unistr/test-u32-cpy.c: New file.
27982
27983         Tests for module 'unistr/u16-cpy'.
27984         * modules/unistr/u16-cpy-tests: New file.
27985         * tests/unistr/test-u16-cpy.c: New file.
27986
27987         Tests for module 'unistr/u8-cpy'.
27988         * modules/unistr/u8-cpy-tests: New file.
27989         * tests/unistr/test-u8-cpy.c: New file.
27990         * tests/unistr/test-cpy.h: New file.
27991
27992 2010-01-09  Bruno Haible  <bruno@clisp.org>
27993
27994         Tests for module 'unistr/u32-uctomb'.
27995         * modules/unistr/u32-uctomb-tests: New file.
27996         * tests/unistr/test-u32-uctomb.c: New file.
27997
27998         Tests for module 'unistr/u16-uctomb'.
27999         * modules/unistr/u16-uctomb-tests: New file.
28000         * tests/unistr/test-u16-uctomb.c: New file.
28001
28002         Tests for module 'unistr/u8-uctomb'.
28003         * modules/unistr/u8-uctomb-tests: New file.
28004         * tests/unistr/test-u8-uctomb.c: New file.
28005
28006         Tests for module 'unistr/u32-mbtoucr'.
28007         * modules/unistr/u32-mbtoucr-tests: New file.
28008         * tests/unistr/test-u32-mbtoucr.c: New file.
28009
28010         Tests for module 'unistr/u16-mbtoucr'.
28011         * modules/unistr/u16-mbtoucr-tests: New file.
28012         * tests/unistr/test-u16-mbtoucr.c: New file.
28013
28014         Tests for module 'unistr/u8-mbtoucr'.
28015         * modules/unistr/u8-mbtoucr-tests: New file.
28016         * tests/unistr/test-u8-mbtoucr.c: New file.
28017
28018         Tests for module 'unistr/u32-mbtouc'.
28019         * modules/unistr/u32-mbtouc-tests: New file.
28020         * tests/unistr/test-u32-mbtouc.c: New file.
28021
28022         Tests for module 'unistr/u16-mbtouc'.
28023         * modules/unistr/u16-mbtouc-tests: New file.
28024         * tests/unistr/test-u16-mbtouc.c: New file.
28025
28026         Tests for module 'unistr/u8-mbtouc'.
28027         * modules/unistr/u8-mbtouc-tests: New file.
28028         * tests/unistr/test-u8-mbtouc.c: New file.
28029
28030         Tests for module 'unistr/u32-mbtouc-unsafe'.
28031         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28032         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28033         * tests/unistr/test-u32-mbtouc.h: New file.
28034
28035         Tests for module 'unistr/u16-mbtouc-unsafe'.
28036         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28037         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28038         * tests/unistr/test-u16-mbtouc.h: New file.
28039
28040         Tests for module 'unistr/u8-mbtouc-unsafe'.
28041         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28042         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28043         * tests/unistr/test-u8-mbtouc.h: New file.
28044
28045         Tests for module 'unistr/u32-mblen'.
28046         * modules/unistr/u32-mblen-tests: New file.
28047         * tests/unistr/test-u32-mblen.c: New file.
28048
28049         Tests for module 'unistr/u16-mblen'.
28050         * modules/unistr/u16-mblen-tests: New file.
28051         * tests/unistr/test-u16-mblen.c: New file.
28052
28053         Tests for module 'unistr/u8-mblen'.
28054         * modules/unistr/u8-mblen-tests: New file.
28055         * tests/unistr/test-u8-mblen.c: New file.
28056
28057         Tests for module 'unistr/u32-to-u16'.
28058         * modules/unistr/u32-to-u16-tests: New file.
28059         * tests/unistr/test-u32-to-u16.c: New file.
28060
28061         Tests for module 'unistr/u32-to-u8'.
28062         * modules/unistr/u32-to-u8-tests: New file.
28063         * tests/unistr/test-u32-to-u8.c: New file.
28064
28065         Tests for module 'unistr/u16-to-u32'.
28066         * modules/unistr/u16-to-u32-tests: New file.
28067         * tests/unistr/test-u16-to-u32.c: New file.
28068
28069         Tests for module 'unistr/u16-to-u8'.
28070         * modules/unistr/u16-to-u8-tests: New file.
28071         * tests/unistr/test-u16-to-u8.c: New file.
28072
28073         Tests for module 'unistr/u8-to-u32'.
28074         * modules/unistr/u8-to-u32-tests: New file.
28075         * tests/unistr/test-u8-to-u32.c: New file.
28076
28077         Tests for module 'unistr/u8-to-u16'.
28078         * modules/unistr/u8-to-u16-tests: New file.
28079         * tests/unistr/test-u8-to-u16.c: New file.
28080
28081         Tests for module 'unistr/u32-check'.
28082         * modules/unistr/u32-check-tests: New file.
28083         * tests/unistr/test-u32-check.c: New file.
28084
28085         Tests for module 'unistr/u16-check'.
28086         * modules/unistr/u16-check-tests: New file.
28087         * tests/unistr/test-u16-check.c: New file.
28088
28089         Tests for module 'unistr/u8-check'.
28090         * modules/unistr/u8-check-tests: New file.
28091         * tests/unistr/test-u8-check.c: New file.
28092
28093         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28094         (category_equals): New function.
28095         (main): Add more tests.
28096         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28097
28098         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28099
28100 2010-01-10  Bruno Haible  <bruno@clisp.org>
28101
28102         unistr/u*-strcoll: Try harder to distinguish different strings.
28103         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28104         compare s1 and s2 to see if they are different.
28105
28106 2010-01-10  Bruno Haible  <bruno@clisp.org>
28107
28108         unistr/u*-stpncpy: Fix the return value.
28109         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28110         description of the return value consistent with stpncpy in glibc.
28111         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28112         written non-NUL unit.
28113
28114 2010-01-10  Bruno Haible  <bruno@clisp.org>
28115
28116         unistr/u*-next: Add missing dependencies.
28117         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28118         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28119         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28120
28121 2010-01-10  Bruno Haible  <bruno@clisp.org>
28122
28123         unistr/u8-mbsnlen: Fix return value for incomplete character.
28124         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28125         u8_mblen.
28126         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28127         Remove unistr/u8-mblen.
28128         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28129         u16_mblen.
28130         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28131         Remove unistr/u16-mblen.
28132
28133 2010-01-10  Bruno Haible  <bruno@clisp.org>
28134
28135         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28136         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28137         Reported by Brian Gough <bjg@gnu.org> and
28138         Chris Clayton <chris2553@googlemail.com> via
28139         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28140
28141 2010-01-09  Bruno Haible  <bruno@clisp.org>
28142
28143         unistr/u16-to-u32: Reject invalid input.
28144         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28145         u16_mbtouc.
28146         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28147         Remove unistr/u16-mbtouc.
28148
28149         unistr/u16-to-u8: Reject invalid input.
28150         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28151         u16_mbtouc.
28152         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28153         Remove unistr/u16-mbtouc.
28154
28155         unistr/u8-to-u32: Reject invalid input.
28156         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28157         u8_mbtouc.
28158         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28159         Remove unistr/u8-mbtouc.
28160
28161         unistr/u8-to-u16: Reject invalid input.
28162         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28163         u8_mbtouc.
28164         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28165         Remove unistr/u8-mbtouc.
28166
28167 2010-01-09  Bruno Haible  <bruno@clisp.org>
28168
28169         Tests for module 'getlogin'.
28170         * modules/getlogin-tests: New file.
28171         * tests/test-getlogin.c: New file.
28172
28173         New module 'getlogin'.
28174         * lib/unistd.in.h (getlogin): New declaration.
28175         * lib/getlogin.c: New file.
28176         * m4/getlogin.m4: New file.
28177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28178         HAVE_GETLOGIN.
28179         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28180         HAVE_GETLOGIN.
28181         * modules/getlogin: New file.
28182         * doc/posix-functions/getlogin.texi: Mention the new module.
28183         Reported by John W. Eaton <jwe@gnu.org>.
28184
28185 2010-01-09  Bruno Haible  <bruno@clisp.org>
28186
28187         getlogin_r: Support for native Windows.
28188         * lib/getlogin_r.c: Include <windows.h>
28189         (getlogin_r): Implement for native Windows.
28190         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28191         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28192         via John W. Eaton <jwe@gnu.org>.
28193
28194 2010-01-09  Bruno Haible  <bruno@clisp.org>
28195
28196         getlogin_r: Small fixes.
28197         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28198         succeeds.
28199         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28200         before testing whether getlogin_r is declared. No need to set
28201         HAVE_DECL_GETLOGIN_R to 1.
28202         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28203
28204 2010-01-09  Bruno Haible  <bruno@clisp.org>
28205
28206         * lib/unistd.in.h (getlogin_r): Add comment.
28207
28208 2010-01-09  Bruno Haible  <bruno@clisp.org>
28209
28210         Tests for module 'getlogin_r'.
28211         * modules/getlogin_r-tests: New file.
28212         * tests/test-getlogin_r.c: New file.
28213
28214 2010-01-09  Jim Meyering  <meyering@redhat.com>
28215
28216         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28217         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28218         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28219
28220 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28221
28222         * lib/dup2.c (rpl_dup2): Improve comment.
28223
28224 2010-01-08  Eric Blake  <ebb9@byu.net>
28225
28226         maint.mk: allow packages to add makefile @@ exceptions
28227         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28228         (sc_makefile_check): Rename...
28229         (sc_makefile_at_at_check): ...to this, and use hook.
28230
28231         dup2: work around mingw bug
28232         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28233         Reported by Simon Josefsson.
28234
28235 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28236
28237         glob: Fix C++ compilation.
28238         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28239         C++.
28240
28241 2010-01-07  Bruno Haible  <bruno@clisp.org>
28242
28243         Fix indentation of wctype.in.h, broken since 2007-01-06.
28244         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28245
28246 2010-01-07  Bruno Haible  <bruno@clisp.org>
28247
28248         mbslen: Avoid collision with system function.
28249         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28250         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28251         * m4/mbslen.m4: New file.
28252         * modules/mbslen (Files): Add it.
28253         (configure.ac): Invoke gl_MBSLEN.
28254         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28255         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28256         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28257         via Ian Beckwith <ianb@erislabs.net>.
28258
28259 2010-01-07  Bruno Haible  <bruno@clisp.org>
28260
28261         dirent: Document the last fix.
28262         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28263
28264 2010-01-07  Bruno Haible  <bruno@clisp.org>
28265
28266         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28267         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28268         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28269         va_list are defined.
28270         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28271         Reported by Eric Blake.
28272
28273 2010-01-07  Bruno Haible  <bruno@clisp.org>
28274
28275         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28276         * modules/xlist (Depends-on): Add 'list',
28277         * modules/xoset (Depends-on): Add 'oset'.
28278         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28279
28280 2010-01-07  Bruno Haible  <bruno@clisp.org>
28281
28282         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28283         * doc/posix-functions/strncasecmp.texi: Likewise.
28284
28285 2010-01-07  Bruno Haible  <bruno@clisp.org>
28286
28287         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28288
28289 2010-01-07  John W. Eaton  <jwe@octave.org>
28290
28291         wctype: allow C++ use
28292         * lib/wctype.in.h: Add extern "C" block for C++.
28293
28294 2010-01-06  Eric Blake  <ebb9@byu.net>
28295
28296         maint.mk: detect incorrect GFDL usage
28297         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28298
28299 2010-01-06  Jim Meyering  <meyering@redhat.com>
28300         and Eric Blake  <ebb9@byu.net>
28301
28302         maint.mk: ignore multi-line copyright in NEWS
28303         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28304
28305 2010-01-06  Eric Blake  <ebb9@byu.net>
28306
28307         select: add missing dependency
28308         * modules/select-tests (Depends-on): Move sockets dependency...
28309         * modules/select (Depends-on): ...here.
28310         Reported by Ian Beckwith.
28311
28312         doc: regenerate INSTALL
28313         * doc/INSTALL: Reflect recent autoconf update.
28314         * doc/INSTALL.ISO: Likewise.
28315         * doc/INSTALL.UTF-8: Likewise.
28316
28317         pread: fix compilation on glibc
28318         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28319         Reported by Ralf Wildenhues.
28320
28321         dirent: fix test failure
28322         * lib/dirent.in.h (includes): Guarantee ino_t.
28323         Reported by Ralf Wildenhues.
28324
28325 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28326
28327         linkat, renameat: avoid bad free
28328         * lib/at-func2.c (at_func2): Fix typo.
28329         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28330
28331 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28332
28333         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28334         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28335         to avoid failure of symlink test later.
28336
28337 2010-01-06  Eric Blake  <ebb9@byu.net>
28338
28339         stdio, unistd: guarantee ssize_t
28340         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28341         2008 are exposed when needed.
28342         * lib/stdio.in.h (includes): Likewise.
28343         Reported by Ralf Wildenhues.
28344
28345 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28346
28347         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28348         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28349         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28350
28351 2010-01-06  Jim Meyering  <meyering@redhat.com>
28352
28353         readtokens: this module *does* require xalloc.h
28354         It uses only functions that were omitted by the old syntax-check rule.
28355         * lib/readtokens.c: Include "xalloc.h" once again.
28356         * modules/readtokens (Depends-on): Add xalloc.
28357         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
28358
28359 2010-01-05  Eric Blake  <ebb9@byu.net>
28360
28361         maint: support 'make announcement' from a VPATH build
28362         * top/maint.mk (announcement): Look for correct NEWS file.
28363
28364 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
28365
28366         utimens (fdutimens): ignore a negative FD, per contract
28367         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
28368         when we have a valid file descriptor.  Otherwise, using a brand
28369         new glibc (with just-patched futimens that now fails with EBADF)
28370         would cause this function to fail with ENOSYS.
28371         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
28372         See also http://bugzilla.redhat.com/552320.
28373
28374 2010-01-05  Eric Blake  <ebb9@byu.net>
28375
28376         strcase: document what it provides
28377         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
28378         gnulib module.
28379         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
28380         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
28381
28382 2010-01-05  Jim Meyering  <meyering@redhat.com>
28383
28384         maint: remove useless inclusions of "xalloc.h"
28385         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
28386         * lib/readtokens.c: Likewise.
28387         * lib/same.c: Likewise.
28388         * modules/getloadavg (Depends-on): Remove xalloc.
28389         * modules/readtokens: Likewise.
28390         * modules/same: Likewise.
28391
28392         maint.mk: include 4 more function names in alloca.h-checking regexp
28393         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
28394         regexp.  Before, we would give a false-positive (saying alloca.h
28395         is included unnecessarily) when the only uses involved omitted symbols.
28396
28397         xalloc.h: use consistent formatting
28398         * lib/xalloc.h: Move declarations to start in the first column.
28399
28400 2010-01-05  Eric Blake  <ebb9@byu.net>
28401
28402         mkdir: avoid xalloc
28403         * lib/mkdir.c (includes): Drop unused header.
28404         Reported by John W. Eaton.
28405
28406 2010-01-04  Jim Meyering  <meyering@redhat.com>
28407
28408         nl_langinfo: avoid configure-time syntax error
28409         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
28410         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
28411         the empty string.  Don't let that provoke a shell syntax error.
28412
28413         regcomp, regexec, fnmatch: avoid array bounds read error
28414         * lib/regcomp.c (build_equiv_class): From glibc:
28415         Use only the low 24 bits of a findidx return value as an index
28416         into the weights array.  Patch by Ulrich Drepper:
28417         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
28418         * lib/regexec.c (check_node_accept_bytes): Likewise.
28419         * lib/fnmatch_loop.c (FCT): Likewise.
28420
28421         regcomp: skip collseq lookup when there are no rules
28422         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
28423         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
28424
28425         regcomp: recognize ill-formed { } expressions
28426         * lib/regcomp.c (parse_dup_op): From glibc:
28427         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
28428
28429         regcomp: fix typo in comment
28430         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
28431         s/satisfy/satisfies/.
28432
28433         regcomp: sync from glibc: remove dead store
28434         * lib/regcomp.c (duplicate_node_closure): Remove useless
28435         search_duplicated_node call and dead store.
28436
28437         regcomp: sync from glibc; always use nl_langinfo
28438         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
28439         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
28440         * modules/regex (Depends-on): Add nl_langinfo.
28441
28442 2010-01-04  Eric Blake  <ebb9@byu.net>
28443
28444         fdopendir: fix configure test
28445         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
28446
28447 2010-01-01  Bruno Haible  <bruno@clisp.org>
28448
28449         wchar: Remove unused configure check.
28450         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
28451
28452 2010-01-01  Eric Blake  <ebb9@byu.net>
28453
28454         headers: make check of system header explicit
28455         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28456         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28457         ourselves.
28458         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28459         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28460         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28461         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28462         internals.
28463         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28464         missing.
28465         Suggested by Bruno Haible.
28466
28467 2010-01-01  Jim Meyering  <meyering@redhat.com>
28468
28469         ChangeLog: tweak to eliminate unnecessary copyright line
28470         * ChangeLog: Remove a copyright line that was mistakenly updated
28471         by today's update-copyright run.  Reported by Eric Blake.
28472
28473         test-update-copyright: don't let envvar setting cause test failure
28474         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28475
28476 2010-01-01  Bruno Haible  <bruno@clisp.org>
28477
28478         localename: Avoid gcc warning.
28479         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28480         function if it is not used.
28481
28482 2010-01-01  Jim Meyering  <meyering@redhat.com>
28483
28484         update nearly all FSF copyright year lists to include 2010
28485         Use the same procedure as for 2009, outlined in
28486         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
28487
28488         version-etc: set COPYRIGHT_YEAR to 2010
28489         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
28490
28491 2009-12-31  Eric Blake  <ebb9@byu.net>
28492
28493         doc: correct availability of cygwin 1.5.x getopt
28494         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
28495         variables.
28496         * doc/posix-functions/opterr.texi (opterr): Likewise.
28497         * doc/posix-functions/optind.texi (optind): Likewise.
28498         * doc/posix-functions/optopt.texi (optopt): Likewise.
28499         * doc/posix-functions/tzname.texi (tzname): Likewise.
28500
28501         openat: update maintainer
28502         * modules/openat (Maintainer): Add myself.
28503
28504         utimens: avoid shadowing warning
28505         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
28506         buffers into one, to avoid shadowing, as well as avoiding a
28507         redundant stat.
28508         Reported by Jim Meyering.
28509
28510         test-dup2: avoid compiler warning
28511         * tests/test-dup2.c (is_inheritable): Only define if used.
28512
28513 2010-01-01  Bruno Haible  <bruno@clisp.org>
28514
28515         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
28516         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
28517         defined, use wctomb instead of wcrtomb.
28518
28519 2010-01-01  Bruno Haible  <bruno@clisp.org>
28520
28521         iconv: Reject native Solaris iconv.
28522         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28523         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28524
28525 2009-12-31  Bruno Haible  <bruno@clisp.org>
28526
28527         * tests/test-signal.c (main): Remove test of 'SIG'.
28528
28529 2009-12-31  Bruno Haible  <bruno@clisp.org>
28530
28531         spawn: Fix incomplete fix.
28532         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28533         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28534         warnings for GNULIB_POSIXCHECK again.
28535         Reported by Eric Blake.
28536
28537 2009-12-31  Bruno Haible  <bruno@clisp.org>
28538
28539         Avoid namespace pollution on glibc systems.
28540         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
28541         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
28542         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
28543         glibc systems.
28544
28545 2009-12-31  Bruno Haible  <bruno@clisp.org>
28546
28547         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
28548         (gl_REPLACE_WCHAR_H): Turn into a no-op.
28549         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
28550         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
28551         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
28552         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
28553         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
28554
28555 2009-12-31  Bruno Haible  <bruno@clisp.org>
28556
28557         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28558         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
28559         afterwards.
28560
28561 2009-12-31  Bruno Haible  <bruno@clisp.org>
28562
28563         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
28564         SYS_UTSNAME_H.
28565
28566 2009-12-31  Bruno Haible  <bruno@clisp.org>
28567
28568         spawn: Fix misapplied patch.
28569         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28570         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28571         warnings for GNULIB_POSIXCHECK.
28572
28573 2009-12-31  Bruno Haible  <bruno@clisp.org>
28574
28575         times: Update after sys_times changed.
28576         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
28577         * modules/times (Files): Add it.
28578         (configure.ac): Invoke gl_FUNC_TIMES.
28579
28580 2009-12-31  Bruno Haible  <bruno@clisp.org>
28581
28582         Use AC_C_INLINE where necessary.
28583         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
28584         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28585         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
28586         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28587         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28588         * m4/mbiter.m4 (gl_MBITER): Likewise.
28589         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28590         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28591         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
28592         * modules/u64 (configure.ac): Likewise.
28593
28594 2009-12-31  Bruno Haible  <bruno@clisp.org>
28595
28596         Use AC_C_INLINE instead of module 'inline' where possible.
28597         * modules/inline (Description): Clarify purpose.
28598         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
28599         * modules/count-one-bits (Depends-on): Remove inline.
28600         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
28601         * modules/openat (Depends-on): Remove inline.
28602         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
28603         instead of depending on module 'inline'.
28604         * modules/filevercmp (Depends-on, configure.ac): Likewise.
28605         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
28606         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
28607         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
28608         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
28609         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
28610         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
28611         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
28612         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
28613         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
28614         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
28615         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
28616         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
28617         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
28618         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
28619         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
28620         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
28621         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
28622         Likewise.
28623         * modules/unictype/property-ascii-hex-digit (Depends-on,
28624         configure.ac): Likewise.
28625         * modules/unictype/property-bidi-arabic-digit (Depends-on,
28626         configure.ac): Likewise.
28627         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
28628         configure.ac): Likewise.
28629         * modules/unictype/property-bidi-block-separator (Depends-on,
28630         configure.ac): Likewise.
28631         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
28632         configure.ac): Likewise.
28633         * modules/unictype/property-bidi-common-separator (Depends-on,
28634         configure.ac): Likewise.
28635         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
28636         Likewise.
28637         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
28638         configure.ac): Likewise.
28639         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
28640         configure.ac): Likewise.
28641         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
28642         configure.ac): Likewise.
28643         * modules/unictype/property-bidi-european-digit (Depends-on,
28644         configure.ac): Likewise.
28645         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
28646         configure.ac): Likewise.
28647         * modules/unictype/property-bidi-left-to-right (Depends-on,
28648         configure.ac): Likewise.
28649         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
28650         configure.ac): Likewise.
28651         * modules/unictype/property-bidi-other-neutral (Depends-on,
28652         configure.ac): Likewise.
28653         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
28654         Likewise.
28655         * modules/unictype/property-bidi-segment-separator (Depends-on,
28656         configure.ac): Likewise.
28657         * modules/unictype/property-bidi-whitespace (Depends-on,
28658         configure.ac): Likewise.
28659         * modules/unictype/property-combining (Depends-on, configure.ac):
28660         Likewise.
28661         * modules/unictype/property-composite (Depends-on, configure.ac):
28662         Likewise.
28663         * modules/unictype/property-currency-symbol (Depends-on,
28664         configure.ac): Likewise.
28665         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
28666         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
28667         Likewise.
28668         * modules/unictype/property-default-ignorable-code-point (Depends-on,
28669         configure.ac): Likewise.
28670         * modules/unictype/property-deprecated (Depends-on, configure.ac):
28671         Likewise.
28672         * modules/unictype/property-diacritic (Depends-on, configure.ac):
28673         Likewise.
28674         * modules/unictype/property-extender (Depends-on, configure.ac):
28675         Likewise.
28676         * modules/unictype/property-format-control (Depends-on, configure.ac):
28677         Likewise.
28678         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
28679         Likewise.
28680         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
28681         Likewise.
28682         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
28683         Likewise.
28684         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
28685         Likewise.
28686         * modules/unictype/property-hyphen (Depends-on, configure.ac):
28687         Likewise.
28688         * modules/unictype/property-id-continue (Depends-on, configure.ac):
28689         Likewise.
28690         * modules/unictype/property-id-start (Depends-on, configure.ac):
28691         Likewise.
28692         * modules/unictype/property-ideographic (Depends-on, configure.ac):
28693         Likewise.
28694         * modules/unictype/property-ids-binary-operator (Depends-on,
28695         configure.ac): Likewise.
28696         * modules/unictype/property-ids-trinary-operator (Depends-on,
28697         configure.ac): Likewise.
28698         * modules/unictype/property-ignorable-control (Depends-on,
28699         configure.ac): Likewise.
28700         * modules/unictype/property-iso-control (Depends-on, configure.ac):
28701         Likewise.
28702         * modules/unictype/property-join-control (Depends-on, configure.ac):
28703         Likewise.
28704         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
28705         Likewise.
28706         * modules/unictype/property-line-separator (Depends-on, configure.ac):
28707         Likewise.
28708         * modules/unictype/property-logical-order-exception (Depends-on,
28709         configure.ac): Likewise.
28710         * modules/unictype/property-lowercase (Depends-on, configure.ac):
28711         Likewise.
28712         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
28713         * modules/unictype/property-non-break (Depends-on, configure.ac):
28714         Likewise.
28715         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
28716         Likewise.
28717         * modules/unictype/property-numeric (Depends-on, configure.ac):
28718         Likewise.
28719         * modules/unictype/property-other-alphabetic (Depends-on,
28720         configure.ac): Likewise.
28721         * modules/unictype/property-other-default-ignorable-code-point
28722         (Depends-on, configure.ac): Likewise.
28723         * modules/unictype/property-other-grapheme-extend (Depends-on,
28724         configure.ac): Likewise.
28725         * modules/unictype/property-other-id-continue (Depends-on,
28726         configure.ac): Likewise.
28727         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
28728         Likewise.
28729         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
28730         Likewise.
28731         * modules/unictype/property-other-math (Depends-on, configure.ac):
28732         Likewise.
28733         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
28734         Likewise.
28735         * modules/unictype/property-paired-punctuation (Depends-on,
28736         configure.ac): Likewise.
28737         * modules/unictype/property-paragraph-separator (Depends-on,
28738         configure.ac): Likewise.
28739         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
28740         Likewise.
28741         * modules/unictype/property-pattern-white-space (Depends-on,
28742         configure.ac): Likewise.
28743         * modules/unictype/property-private-use (Depends-on, configure.ac):
28744         Likewise.
28745         * modules/unictype/property-punctuation (Depends-on, configure.ac):
28746         Likewise.
28747         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
28748         Likewise.
28749         * modules/unictype/property-radical (Depends-on, configure.ac):
28750         Likewise.
28751         * modules/unictype/property-sentence-terminal (Depends-on,
28752         configure.ac): Likewise.
28753         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
28754         Likewise.
28755         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
28756         * modules/unictype/property-terminal-punctuation (Depends-on,
28757         configure.ac): Likewise.
28758         * modules/unictype/property-titlecase (Depends-on, configure.ac):
28759         Likewise.
28760         * modules/unictype/property-unassigned-code-value (Depends-on,
28761         configure.ac): Likewise.
28762         * modules/unictype/property-unified-ideograph (Depends-on,
28763         configure.ac): Likewise.
28764         * modules/unictype/property-uppercase (Depends-on, configure.ac):
28765         Likewise.
28766         * modules/unictype/property-variation-selector (Depends-on,
28767         configure.ac): Likewise.
28768         * modules/unictype/property-white-space (Depends-on, configure.ac):
28769         Likewise.
28770         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
28771         Likewise.
28772         * modules/unictype/property-xid-start (Depends-on, configure.ac):
28773         Likewise.
28774         * modules/unictype/property-zero-width (Depends-on, configure.ac):
28775         Likewise.
28776         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
28777         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
28778         Likewise.
28779
28780 2009-12-31  Bruno Haible  <bruno@clisp.org>
28781
28782         Remove unnecessary AC_C_INLINE invocation.
28783         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
28784         since 2009-08-21.
28785
28786 2009-12-31  Jim Meyering  <meyering@redhat.com>
28787
28788         maint.mk: don't require explicit gpg_key_ID in cfg.mk
28789         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
28790         With this change, we can all remove the gpg_key_ID = ... definition
28791         from our respective cfg.mk files.
28792
28793         maint.mk: create announcement template in ~/, not in /tmp
28794         * top/maint.mk (emit_upload_commands): Adjust.
28795         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
28796         Remove temporary file, .ci-msg.
28797
28798 2009-12-31  Eric Blake  <ebb9@byu.net>
28799
28800         link-warning: always build headers with link warnings
28801         * modules/arpa_inet (Makefile.am): Always build replacement
28802         header.
28803         * modules/ctype (Makefile.am): Likewise.
28804         * modules/dirent (Makefile.am): Likewise.
28805         * modules/inttypes (Makefile.am): Likewise.
28806         * modules/langinfo (Makefile.am): Likewise.
28807         * modules/locale (Makefile.am): Likewise.
28808         * modules/spawn (Makefile.am): Likewise.
28809         * modules/sys_file (Makefile.am): Likewise.
28810         * modules/sys_ioctl (Makefile.am): Likewise.
28811         * modules/sys_select (Makefile.am): Likewise.
28812         * modules/sys_socket (Makefile.am): Likewise.
28813         * modules/sys_times (Makefile.am): Likewise.
28814         * modules/sys_utsname (Makefile.am): Likewise.
28815         * modules/sys_wait (Makefile.am): Likewise.
28816         * modules/wchar (Makefile.am): Likewise.
28817         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
28818         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
28819         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
28820         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
28821         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
28822         Likewise.
28823         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28824         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28825         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
28826         Likewise.
28827         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
28828         Likewise.
28829         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
28830         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
28831         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
28832         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28833         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28834         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28835         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28836         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
28837         (gl_WCHAR_H_DEFAULTS): Likewise.
28838
28839 2009-12-31  Eric Blake  <ebb9@byu.net>
28840
28841         signal, spawn: use link warnings
28842         * lib/signal.in.h (sigset_t): Make unconditional.
28843         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
28844         (sigpending, sigprocmask, sigaction): Add link warnings.
28845         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
28846         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
28847         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
28848         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
28849         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
28850         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
28851         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
28852         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
28853         (posix_spawn_file_actions_destroy)
28854         (posix_spawn_file_actions_addopen)
28855         (posix_spawn_file_actions_addclose)
28856         (posix_spawn_file_actions_adddup2): Likewise.
28857         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
28858         * tests/test-signal.c (main): Enhance test.
28859
28860         spawn: improve wrapper support
28861         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
28862         (gl_SPAWN_H_DEFAULTS): New defaults.
28863         * modules/spawn (Makefile.am): Substitute them.
28864         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
28865         Only declare if missing or broken.
28866
28867         sys_times, sys_utsname: use include_next
28868         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
28869         header.
28870         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
28871         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28872         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28873         * modules/sys_times (Depends-on): Add include_next.
28874         (Makefile.am): Substitute additional values.
28875         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28876         * lib/sys_times.in.h (includes): Include native header, if
28877         available.
28878         * lib/sys_utsname.in.h (includes): Likewise.
28879         * tests/test-sys_times.c (main): Enhance test.
28880
28881         fdutimensat: revert prior patch
28882         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
28883         utimens.h.
28884         Reported by Bruno Haible.
28885
28886 2009-12-30  Eric Blake  <ebb9@byu.net>
28887
28888         sys_wait: drop link-warning dependency
28889         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
28890         link-warning efforts.
28891         * lib/sys_wait.in.h: Likewise.
28892
28893         fdutimensat: remove bogus dependency
28894         * modules/fdutimensat (Depends-on): Drop inline.
28895
28896         unistd: fix typo
28897         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
28898
28899 2009-12-30  Bruno Haible  <bruno@clisp.org>
28900
28901         Fix compilation error with Solaris cc.
28902         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
28903         * lib/unicase/u16-is-invariant.c: Likewise.
28904         * lib/unicase/u32-is-invariant.c: Likewise.
28905         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28906
28907 2009-12-30  Bruno Haible  <bruno@clisp.org>
28908
28909         Fix test crash.
28910         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
28911         locales.
28912         Reported by Simon Josefsson <simon@josefsson.org>.
28913
28914 2009-12-30  Bruno Haible  <bruno@clisp.org>
28915
28916         Fix compilation error on most platforms.
28917         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
28918         Reported by Simon Josefsson <simon@josefsson.org>
28919         and Nelson H. F. Beebe <beebe@math.utah.edu>.
28920
28921 2009-12-30  Eric Blake  <ebb9@byu.net>
28922
28923         futimens, utimensat: work around ntfs-3g bug
28924         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
28925         a ctime bug is present, and expand workaround to cover ntfs-3g.
28926         * lib/utimens.c (fdutimens, lutimens): Likewise.
28927         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
28928         (validate_timespec): Adjust return value.
28929         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
28930         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28931         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
28932
28933 2009-12-29  Eric Blake  <ebb9@byu.net>
28934
28935         link-warning: make usage consistent
28936         * modules/ctype (Depends-on): Add link-warning.
28937         (Makefile.am): Update rules accordingly.
28938         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28939         * modules/locale (Depends-on, Makefile.am): Likewise.
28940         * modules/sys_file (Makefile.am): Likewise.
28941         * modules/getopt-posix (Makefile.am): Delete unused link warning
28942         efforts.
28943         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
28944         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
28945         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
28946         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
28947
28948         stdio: remove unused variables
28949         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
28950         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
28951         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28952
28953         tests: test more substitute headers
28954         * modules/ctype-tests: New file.
28955         * modules/dirent-tests: Likewise.
28956         * modules/spawn-tests: Likewise.
28957         * modules/sys_file-tests: Likewise.
28958         * modules/sys_ioctl-tests: Likewise.
28959         * modules/sys_wait-tests: Likewise.
28960         * tests/test-ctype.c: Likewise.
28961         * tests/test-dirent.c: Likewise.
28962         * tests/test-spawn.c: Likewise.
28963         * tests/test-sys_file.c: Likewise.
28964         * tests/test-sys_ioctl.c: Likewise.
28965         * tests/test-sys_wait.c: Likewise.
28966         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
28967         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
28968         whether or not flock is in use.
28969
28970         tests: remove License section from module
28971         * modules/arpa_inet-tests: Remove unneeded section.
28972         * modules/byteswap-tests: Likewise.
28973         * modules/ceilf-tests: Likewise.
28974         * modules/ceill-tests: Likewise.
28975         * modules/crypto/des-tests: Likewise.
28976         * modules/crypto/gc-arcfour-tests: Likewise.
28977         * modules/crypto/gc-arctwo-tests: Likewise.
28978         * modules/crypto/gc-des-tests: Likewise.
28979         * modules/crypto/gc-hmac-md5-tests: Likewise.
28980         * modules/crypto/gc-hmac-sha1-tests: Likewise.
28981         * modules/crypto/gc-md2-tests: Likewise.
28982         * modules/crypto/gc-md4-tests: Likewise.
28983         * modules/crypto/gc-md5-tests: Likewise.
28984         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
28985         * modules/crypto/gc-rijndael-tests: Likewise.
28986         * modules/crypto/gc-sha1-tests: Likewise.
28987         * modules/crypto/gc-tests: Likewise.
28988         * modules/crypto/md2-tests: Likewise.
28989         * modules/crypto/md4-tests: Likewise.
28990         * modules/fcntl-h-tests: Likewise.
28991         * modules/floorf-tests: Likewise.
28992         * modules/floorl-tests: Likewise.
28993         * modules/frexp-nolibm-tests: Likewise.
28994         * modules/frexp-tests: Likewise.
28995         * modules/frexpl-nolibm-tests: Likewise.
28996         * modules/frexpl-tests: Likewise.
28997         * modules/getaddrinfo-tests: Likewise.
28998         * modules/inttypes-tests: Likewise.
28999         * modules/isfinite-tests: Likewise.
29000         * modules/isinf-tests: Likewise.
29001         * modules/ldexpl-tests: Likewise.
29002         * modules/locale-tests: Likewise.
29003         * modules/math-tests: Likewise.
29004         * modules/netdb-tests: Likewise.
29005         * modules/netinet_in-tests: Likewise.
29006         * modules/printf-frexp-tests: Likewise.
29007         * modules/printf-frexpl-tests: Likewise.
29008         * modules/priv-set-tests: Likewise.
29009         * modules/random_r-tests: Likewise.
29010         * modules/round-tests: Likewise.
29011         * modules/roundf-tests: Likewise.
29012         * modules/roundl-tests: Likewise.
29013         * modules/search-tests: Likewise.
29014         * modules/select-tests: Likewise.
29015         * modules/signal-tests: Likewise.
29016         * modules/stdbool-tests: Likewise.
29017         * modules/stddef-tests: Likewise.
29018         * modules/stdint-tests: Likewise.
29019         * modules/stdio-tests: Likewise.
29020         * modules/stdlib-tests: Likewise.
29021         * modules/string-tests: Likewise.
29022         * modules/strings-tests: Likewise.
29023         * modules/sys_select-tests: Likewise.
29024         * modules/sys_socket-tests: Likewise.
29025         * modules/sys_stat-tests: Likewise.
29026         * modules/sys_time-tests: Likewise.
29027         * modules/sys_utsname-tests: Likewise.
29028         * modules/sysexits-tests: Likewise.
29029         * modules/time-tests: Likewise.
29030         * modules/trunc-tests: Likewise.
29031         * modules/truncf-tests: Likewise.
29032         * modules/truncl-tests: Likewise.
29033         * modules/tsearch-tests: Likewise.
29034         * modules/unistd-tests: Likewise.
29035         * modules/wchar-tests: Likewise.
29036         * modules/wctype-tests: Likewise.
29037
29038         tests: fix license on several tests
29039         * tests/test-des.c: Update to GPLv3+.
29040         * tests/test-flock.c: Likewise.
29041         * tests/test-fsync.c: Likewise.
29042         * tests/test-futimens.h: Likewise.
29043         * tests/test-gc-arcfour.c: Likewise.
29044         * tests/test-gc-arctwo.c: Likewise.
29045         * tests/test-gc-des.c: Likewise.
29046         * tests/test-gc-hmac-md5.c: Likewise.
29047         * tests/test-gc-hmac-sha1.c: Likewise.
29048         * tests/test-gc-md2.c: Likewise.
29049         * tests/test-gc-md4.c: Likewise.
29050         * tests/test-gc-md5.c: Likewise.
29051         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29052         * tests/test-gc-rijndael.c: Likewise.
29053         * tests/test-gc-sha1.c: Likewise.
29054         * tests/test-gc.c: Likewise.
29055         * tests/test-getcwd.c: Likewise.
29056         * tests/test-link.c: Likewise.
29057         * tests/test-link.h: Likewise.
29058         * tests/test-lutimens.h: Likewise.
29059         * tests/test-md2.c: Likewise.
29060         * tests/test-md4.c: Likewise.
29061         * tests/test-mkdir.h: Likewise.
29062         * tests/test-rename.c: Likewise.
29063         * tests/test-rename.h: Likewise.
29064         * tests/test-safe-alloc.c: Likewise.
29065         * tests/test-utimens-common.h: Likewise.
29066         * tests/test-utimens.h: Likewise.
29067
29068         maint: sync license texts
29069         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29070         * doc/gpl-3.0.texi: Revert copyright year update.
29071         * doc/lgpl-3.0.texi: Likewise.
29072
29073 2009-12-29  Jim Meyering  <meyering@redhat.com>
29074
29075         update nearly all FSF copyright year lists to include 2009
29076         The files named by the following are exempted:
29077             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29078               test -f "$dst" && { echo "$dst"; continue; }
29079               test -d "$dst" || continue
29080               echo "$dst"/$(basename "$src")
29081             done > exempt
29082             git ls-files tests/unictype >> exempt
29083         In the remaining files, convert to all-interval notation if
29084         - there is already at least one year interval like 2000-2003
29085         - the file is maintained by me
29086         - the file is in lib/uni*/, where that style already prevails
29087         Otherwise, use update-copyright's default.
29088
29089 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29090         and Eric Blake  <ebb9@byu.net>
29091
29092         tests: don't require debug system() to pass
29093         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29094         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29095         * tests/test-unlink.h (test_unlink_func): Likewise.
29096         * tests/test-fstatat.c (main): ...into callers.
29097         * tests/test-lstat.c (main): Likewise.
29098         * tests/test-rmdir.c (main): Likewise.
29099         * tests/test-unlink.c (main): Likewise.
29100         * tests/test-unlinkat.c (main): Likewise.
29101         * tests/test-areadlink-with-size.c (main): Don't require a
29102         debug-only system call to pass, aiding cross-testing to mingw.
29103         * tests/test-areadlink.c (main): Likewise.
29104         * tests/test-areadlinkat-with-size.c (main): Likewise.
29105         * tests/test-areadlinkat.c (main): Likewise.
29106         * tests/test-canonicalize-lgpl.c (main): Likewise.
29107         * tests/test-canonicalize.c (main): Likewise.
29108         * tests/test-chown.c (main): Likewise.
29109         * tests/test-fchownat.c (main): Likewise.
29110         * tests/test-lchown.c (main): Likewise.
29111         * tests/test-fdutimensat.c (main): Likewise.
29112         * tests/test-futimens.c (main): Likewise.
29113         * tests/test-link.c (main): Likewise.
29114         * tests/test-linkat.c (main): Likewise.
29115         * tests/test-mkdir.c (main): Likewise.
29116         * tests/test-mkdirat.c (main): Likewise.
29117         * tests/test-mkfifo.c (main): Likewise.
29118         * tests/test-mkfifoat.c (main): Likewise.
29119         * tests/test-mknod.c (main): Likewise.
29120         * tests/test-readlink.c (main): Likewise.
29121         * tests/test-remove.c (main): Likewise.
29122         * tests/test-rename.c (main): Likewise.
29123         * tests/test-renameat.c (main): Likewise.
29124         * tests/test-symlink.c (main): Likewise.
29125         * tests/test-symlinkat.c (main): Likewise.
29126         * tests/test-utimens.c (main): Likewise.
29127         * tests/test-utimensat.c (main): Likewise.
29128
29129 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29130
29131         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29132         on $(UNUSED_PARAMETER_H) to avoid build failure.
29133
29134 2009-12-28  Jim Meyering  <meyering@redhat.com>
29135
29136         update-copyright: you may specify a max. line length other than 72
29137         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29138
29139         maint: use consistent FSF copyright line syntax
29140         * lib/posixtm.c: Add missing comma in FSF copyright line.
29141         * lib/posixtm.h: Likewise.
29142         * lib/getugroups.c: Add missing ", Inc.".
29143
29144         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29145         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29146         FSF copyright line.  Remove trailing blanks.
29147
29148 2009-12-28  Eric Blake  <ebb9@byu.net>
29149
29150         test-dup2: reduce dependencies
29151         * modules/cloexec (Configure.ac): Set witness.
29152         * modules/dup2-tests (Depends-on): Drop cloexec.
29153         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29154         not present.
29155         Suggested by Bruno Haible.
29156
29157 2009-12-26  Bruno Haible  <bruno@clisp.org>
29158
29159         Remove an unneeded dependency.
29160         * modules/fseterr (Depends-on): Remove dup2.
29161
29162 2009-12-26  Eric Blake  <ebb9@byu.net>
29163
29164         tests: use macros.h in more places
29165         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29166         (ASSERT_STREAM): Provide default of stderr.
29167         * tests/test-dirent-safer.c: Include macros.h, using alternate
29168         stream for assertions.
29169         * tests/test-dup-safer.c: Likewise.
29170         * tests/test-freopen-safer.c: Likewise.
29171         * tests/test-getopt.c: Likewise.
29172         * tests/test-openat-safer.c: Likewise.
29173         * tests/test-pipe.c: Likewise.
29174         * tests/test-popen-safer.c: Likewise.
29175         * modules/dirent-safer-tests (Files): Include macros.h.
29176         * modules/unistd-safer-tests (Files): Likewise.
29177         * modules/freopen-safer-tests (Files): Likewise.
29178         * modules/getopt-posix-tests (Files): Likewise.
29179         * modules/openat-safer-tests (Files): Likewise.
29180         * modules/pipe-tests (Files): Likewise.
29181
29182 2009-12-26  Bruno Haible  <bruno@clisp.org>
29183
29184         javacomp: Portability fix.
29185         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29186         that it also works on Solaris.
29187
29188 2009-12-26  Bruno Haible  <bruno@clisp.org>
29189
29190         localename: Fix storage allocation of gl_locale_name_thread's result.
29191         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29192         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29193         all platforms that have 'uselocale'.
29194         (gl_locale_name_thread_unsafe): New function, extracted from
29195         gl_locale_name_thread.
29196         (gl_locale_name_thread): Call struniq on all platforms that have
29197         'uselocale'.
29198         * tests/test-localename.c (test_locale_name_thread): Check that the
29199         resulting strings are permanently allocated.
29200         * modules/localename-tests (Depends-on): Add strdup.
29201
29202 2009-12-26  Bruno Haible  <bruno@clisp.org>
29203
29204         * tests/test-localename.c (categories): Fill in the strings.
29205
29206 2009-12-26  Jim Meyering  <meyering@redhat.com>
29207
29208         isdir: complete the removal of m4/isdir.m4
29209         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29210
29211         isdir: clean up, since at least grep still uses it
29212         * lib/isdir.c: Include "isdir.h".
29213         (S_ISDIR): Remove now-unneeded definition.
29214         * modules/isdir (Files): Add lib/isdir.h.
29215         * lib/isdir.h: New file, with declaration.
29216         * m4/isdir.m4: Remove file -- unneeded.
29217
29218 2009-12-25  Bruno Haible  <bruno@clisp.org>
29219
29220         selinux-h: Make generated .h files standalone.
29221         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29222         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29223         * lib/se-selinux.in.h: Likewise.
29224         * modules/selinux-h (Depends-on): Add unused-parameter.
29225         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29226         selinux/selinux.h and selinux/context.h.
29227         Suggested by Eric Blake.
29228
29229 2009-12-25  Bruno Haible  <bruno@clisp.org>
29230
29231         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29232         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29233         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29234         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29235         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29236
29237 2009-12-24  Bruno Haible  <bruno@clisp.org>
29238
29239         openat: Fix warning.
29240         * lib/openat-proc.c: Include <unistd.h>.
29241
29242 2009-12-24  Bruno Haible  <bruno@clisp.org>
29243
29244         New module 'unused-parameter'.
29245         * build-aux/unused-parameter.h: New file, extracted from earlier
29246         gnulib-common.m4.
29247         * modules/unused-parameter: New file.
29248         * lib/unistr.h: Include unused-parameter.h.
29249         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29250         _GL_UNUSED.
29251         * modules/unistr/base (Depends-on): Add unused-parameter.
29252
29253 2009-12-24  Bruno Haible  <bruno@clisp.org>
29254
29255         Add missing dependencies to 'extensions' module.
29256         * m4/extensions.m4: Add comment.
29257         * modules/accept4 (Depends-on): Add extensions.
29258         * modules/dup3 (Depends-on): Likewise.
29259         * modules/fcntl (Depends-on): Likewise.
29260         * modules/futimens (Depends-on): Likewise.
29261         * modules/mknod (Depends-on): Likewise.
29262         * modules/pipe2 (Depends-on): Likewise.
29263         * modules/stat-time (Depends-on): Likewise.
29264         * modules/strcasestr-simple (Depends-on): Likewise.
29265         * modules/strsignal (Depends-on): Likewise.
29266         * modules/utimensat (Depends-on): Likewise.
29267         * modules/localcharset (Depends-on): Likewise. Needed because of
29268         gl_FCNTL_O_FLAGS.
29269         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29270         AC_TYPE_MBSTATE_T.
29271         * modules/wcsnrtombs (Depends-on): Likewise.
29272         * modules/wcsrtombs (Depends-on): Likewise.
29273
29274 2009-12-24  Bruno Haible  <bruno@clisp.org>
29275
29276         binary-io: Avoid gcc warning due to SET_BINARY.
29277         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29278         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29279
29280 2009-12-24  Bruno Haible  <bruno@clisp.org>
29281
29282         Avoid future namespace pollution on glibc systems.
29283         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29284         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29285         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29286         glibc systems.
29287
29288 2009-12-24  Bruno Haible  <bruno@clisp.org>
29289
29290         Refactor common macros used in tests.
29291         * tests/macros.h: New file.
29292         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29293         and/or <stdlib.h>, if appropriate.
29294         (ASSERT, SIZEOF): Remove macros.
29295         * tests/test-areadlink-with-size.c: Likewise.
29296         * tests/test-areadlinkat.c: Likewise.
29297         * tests/test-areadlinkat-with-size.c: Likewise.
29298         * tests/test-argmatch.c: Likewise.
29299         * tests/test-argv-iter.c: Likewise.
29300         * tests/test-array-mergesort.c: Likewise.
29301         * tests/test-array_list.c: Likewise.
29302         * tests/test-array_oset.c: Likewise.
29303         * tests/test-avltree_list.c: Likewise.
29304         * tests/test-avltree_oset.c: Likewise.
29305         * tests/test-avltreehash_list.c: Likewise.
29306         * tests/test-base64.c: Likewise.
29307         * tests/test-binary-io.c: Likewise.
29308         * tests/test-bitrotate.c: Likewise.
29309         * tests/test-btowc.c: Likewise.
29310         * tests/test-byteswap.c: Likewise.
29311         * tests/test-c-ctype.c: Likewise.
29312         * tests/test-c-stack.c: Likewise.
29313         * tests/test-c-strcasecmp.c: Likewise.
29314         * tests/test-c-strcasestr.c: Likewise.
29315         * tests/test-c-strncasecmp.c: Likewise.
29316         * tests/test-c-strstr.c: Likewise.
29317         * tests/test-canonicalize-lgpl.c: Likewise.
29318         * tests/test-canonicalize.c: Likewise.
29319         * tests/test-carray_list.c: Likewise.
29320         * tests/test-ceilf1.c: Likewise.
29321         * tests/test-ceilf2.c: Likewise.
29322         * tests/test-ceill.c: Likewise.
29323         * tests/test-chown.c: Likewise.
29324         * tests/test-cloexec.c: Likewise.
29325         * tests/test-copy-acl.c: Likewise.
29326         * tests/test-copy-file.c: Likewise.
29327         * tests/test-count-one-bits.c: Likewise.
29328         * tests/test-dprintf-posix.c: Likewise.
29329         * tests/test-dup2.c: Likewise.
29330         * tests/test-dup3.c: Likewise.
29331         * tests/test-duplocale.c: Likewise.
29332         * tests/test-fbufmode.c: Likewise.
29333         * tests/test-fchdir.c: Likewise.
29334         * tests/test-fchownat.c: Likewise.
29335         * tests/test-fcntl-safer.c: Likewise.
29336         * tests/test-fcntl.c: Likewise.
29337         * tests/test-fdopendir.c: Likewise.
29338         * tests/test-fdutimensat.c: Likewise.
29339         * tests/test-fflush2.c: Likewise.
29340         * tests/test-file-has-acl.c: Likewise.
29341         * tests/test-filevercmp.c: Likewise.
29342         * tests/test-flock.c: Likewise.
29343         * tests/test-floorf1.c: Likewise.
29344         * tests/test-floorf2.c: Likewise.
29345         * tests/test-floorl.c: Likewise.
29346         * tests/test-fnmatch.c: Likewise.
29347         * tests/test-fopen.h: Likewise.
29348         * tests/test-fpending.c: Likewise.
29349         * tests/test-fprintf-posix.c: Likewise.
29350         * tests/test-fpurge.c: Likewise.
29351         * tests/test-freadable.c: Likewise.
29352         * tests/test-freadahead.c: Likewise.
29353         * tests/test-freading.c: Likewise.
29354         * tests/test-freadptr.c: Likewise.
29355         * tests/test-freadptr2.c: Likewise.
29356         * tests/test-freadseek.c: Likewise.
29357         * tests/test-freopen.c: Likewise.
29358         * tests/test-frexp.c: Likewise.
29359         * tests/test-frexpl.c: Likewise.
29360         * tests/test-fseek.c: Likewise.
29361         * tests/test-fseeko.c: Likewise.
29362         * tests/test-fstatat.c: Likewise.
29363         * tests/test-fstrcmp.c: Likewise.
29364         * tests/test-fsync.c: Likewise.
29365         * tests/test-ftell.c: Likewise.
29366         * tests/test-ftello.c: Likewise.
29367         * tests/test-func.c: Likewise.
29368         * tests/test-futimens.c: Likewise.
29369         * tests/test-fwritable.c: Likewise.
29370         * tests/test-fwriting.c: Likewise.
29371         * tests/test-getcwd.c: Likewise.
29372         * tests/test-getdate.c: Likewise.
29373         * tests/test-getdelim.c: Likewise.
29374         * tests/test-getdtablesize.c: Likewise.
29375         * tests/test-getgroups.c: Likewise.
29376         * tests/test-getline.c: Likewise.
29377         * tests/test-getndelim2.c: Likewise.
29378         * tests/test-glob.c: Likewise.
29379         * tests/test-hash.c: Likewise.
29380         * tests/test-i-ring.c: Likewise.
29381         * tests/test-iconv-utf.c: Likewise.
29382         * tests/test-iconv.c: Likewise.
29383         * tests/test-idpriv-drop.c: Likewise.
29384         * tests/test-idpriv-droptemp.c: Likewise.
29385         * tests/test-inet_ntop.c: Likewise.
29386         * tests/test-inet_pton.c: Likewise.
29387         * tests/test-isblank.c: Likewise.
29388         * tests/test-isfinite.c: Likewise.
29389         * tests/test-isinf.c: Likewise.
29390         * tests/test-isnan.c: Likewise.
29391         * tests/test-isnand.h: Likewise.
29392         * tests/test-isnanf.h: Likewise.
29393         * tests/test-isnanl.h: Likewise.
29394         * tests/test-lchown.c: Likewise.
29395         * tests/test-ldexpl.c: Likewise.
29396         * tests/test-link.c: Likewise.
29397         * tests/test-linkat.c: Likewise.
29398         * tests/test-linked_list.c: Likewise.
29399         * tests/test-linkedhash_list.c: Likewise.
29400         * tests/test-localename.c: Likewise.
29401         * tests/test-lseek.c: Likewise.
29402         * tests/test-lstat.c: Likewise.
29403         * tests/test-mbmemcasecmp.c: Likewise.
29404         * tests/test-mbmemcasecoll.c: Likewise.
29405         * tests/test-mbrtowc.c: Likewise.
29406         * tests/test-mbscasecmp.c: Likewise.
29407         * tests/test-mbscasestr1.c: Likewise.
29408         * tests/test-mbscasestr2.c: Likewise.
29409         * tests/test-mbscasestr3.c: Likewise.
29410         * tests/test-mbscasestr4.c: Likewise.
29411         * tests/test-mbschr.c: Likewise.
29412         * tests/test-mbscspn.c: Likewise.
29413         * tests/test-mbsinit.c: Likewise.
29414         * tests/test-mbsncasecmp.c: Likewise.
29415         * tests/test-mbsnrtowcs.c: Likewise.
29416         * tests/test-mbspbrk.c: Likewise.
29417         * tests/test-mbspcasecmp.c: Likewise.
29418         * tests/test-mbsrchr.c: Likewise.
29419         * tests/test-mbsrtowcs.c: Likewise.
29420         * tests/test-mbsspn.c: Likewise.
29421         * tests/test-mbsstr1.c: Likewise.
29422         * tests/test-mbsstr2.c: Likewise.
29423         * tests/test-mbsstr3.c: Likewise.
29424         * tests/test-memchr.c: Likewise.
29425         * tests/test-memchr2.c: Likewise.
29426         * tests/test-memcmp.c: Likewise.
29427         * tests/test-memmem.c: Likewise.
29428         * tests/test-memrchr.c: Likewise.
29429         * tests/test-mkdir.c: Likewise.
29430         * tests/test-mkdirat.c: Likewise.
29431         * tests/test-mkfifo.c: Likewise.
29432         * tests/test-mkfifoat.c: Likewise.
29433         * tests/test-mknod.c: Likewise.
29434         * tests/test-nanosleep.c: Likewise.
29435         * tests/test-nl_langinfo.c: Likewise.
29436         * tests/test-obstack-printf.c: Likewise.
29437         * tests/test-open.c: Likewise.
29438         * tests/test-openat.c: Likewise.
29439         * tests/test-pipe-filter-gi1.c: Likewise.
29440         * tests/test-pipe-filter-gi2-main.c: Likewise.
29441         * tests/test-pipe-filter-ii1.c: Likewise.
29442         * tests/test-pipe-filter-ii2-main.c: Likewise.
29443         * tests/test-pipe2.c: Likewise.
29444         * tests/test-popen.h: Likewise.
29445         * tests/test-posixtm.c: Likewise.
29446         * tests/test-pread.c: Likewise.
29447         * tests/test-printf-frexp.c: Likewise.
29448         * tests/test-printf-frexpl.c: Likewise.
29449         * tests/test-printf-posix.c: Likewise.
29450         * tests/test-priv-set.c: Likewise.
29451         * tests/test-quotearg.c: Likewise.
29452         * tests/test-random_r.c: Likewise.
29453         * tests/test-rawmemchr.c: Likewise.
29454         * tests/test-rbtree_list.c: Likewise.
29455         * tests/test-rbtree_oset.c: Likewise.
29456         * tests/test-rbtreehash_list.c: Likewise.
29457         * tests/test-readlink.c: Likewise.
29458         * tests/test-remove.c: Likewise.
29459         * tests/test-rename.c: Likewise.
29460         * tests/test-renameat.c: Likewise.
29461         * tests/test-rmdir.c: Likewise.
29462         * tests/test-round1.c: Likewise.
29463         * tests/test-roundf1.c: Likewise.
29464         * tests/test-roundl.c: Likewise.
29465         * tests/test-safe-alloc.c: Likewise.
29466         * tests/test-sameacls.c: Likewise.
29467         * tests/test-set-mode-acl.c: Likewise.
29468         * tests/test-setenv.c: Likewise.
29469         * tests/test-sigaction.c: Likewise.
29470         * tests/test-signbit.c: Likewise.
29471         * tests/test-sleep.c: Likewise.
29472         * tests/test-snprintf-posix.c: Likewise.
29473         * tests/test-snprintf.c: Likewise.
29474         * tests/test-sprintf-posix.c: Likewise.
29475         * tests/test-stat-time.c: Likewise.
29476         * tests/test-stat.c: Likewise.
29477         * tests/test-strcasestr.c: Likewise.
29478         * tests/test-strchrnul.c: Likewise.
29479         * tests/test-strerror.c: Likewise.
29480         * tests/test-striconv.c: Likewise.
29481         * tests/test-striconveh.c: Likewise.
29482         * tests/test-striconveha.c: Likewise.
29483         * tests/test-strsignal.c: Likewise.
29484         * tests/test-strstr.c: Likewise.
29485         * tests/test-strtod.c: Likewise.
29486         * tests/test-strverscmp.c: Likewise.
29487         * tests/test-symlink.c: Likewise.
29488         * tests/test-symlinkat.c: Likewise.
29489         * tests/test-trunc1.c: Likewise.
29490         * tests/test-trunc2.c: Likewise.
29491         * tests/test-truncf1.c: Likewise.
29492         * tests/test-truncf2.c: Likewise.
29493         * tests/test-truncl.c: Likewise.
29494         * tests/test-uname.c: Likewise.
29495         * tests/test-unlink.c: Likewise.
29496         * tests/test-unlinkat.c: Likewise.
29497         * tests/test-unsetenv.c: Likewise.
29498         * tests/test-usleep.c: Likewise.
29499         * tests/test-utimens.c: Likewise.
29500         * tests/test-utimensat.c: Likewise.
29501         * tests/test-vasnprintf-posix.c: Likewise.
29502         * tests/test-vasnprintf-posix2.c: Likewise.
29503         * tests/test-vasnprintf.c: Likewise.
29504         * tests/test-vasprintf-posix.c: Likewise.
29505         * tests/test-vasprintf.c: Likewise.
29506         * tests/test-vdprintf-posix.c: Likewise.
29507         * tests/test-vfprintf-posix.c: Likewise.
29508         * tests/test-vprintf-posix.c: Likewise.
29509         * tests/test-vsnprintf-posix.c: Likewise.
29510         * tests/test-vsnprintf.c: Likewise.
29511         * tests/test-vsprintf-posix.c: Likewise.
29512         * tests/test-wcrtomb.c: Likewise.
29513         * tests/test-wcsnrtombs.c: Likewise.
29514         * tests/test-wcsrtombs.c: Likewise.
29515         * tests/test-wctype.c: Likewise.
29516         * tests/test-wcwidth.c: Likewise.
29517         * tests/test-xfprintf-posix.c: Likewise.
29518         * tests/test-xmemdup0.c: Likewise.
29519         * tests/test-xprintf-posix.c: Likewise.
29520         * tests/test-xvasprintf.c: Likewise.
29521         * tests/unicase/test-locale-language.c: Likewise.
29522         * tests/unicase/test-mapping-part1.h: Likewise.
29523         * tests/unicase/test-predicate-part1.h: Likewise.
29524         * tests/unicase/test-u8-casecmp.c: Likewise.
29525         * tests/unicase/test-u8-casecoll.c: Likewise.
29526         * tests/unicase/test-u8-casefold.c: Likewise.
29527         * tests/unicase/test-u8-is-cased.c: Likewise.
29528         * tests/unicase/test-u8-is-casefolded.c: Likewise.
29529         * tests/unicase/test-u8-is-lowercase.c: Likewise.
29530         * tests/unicase/test-u8-is-titlecase.c: Likewise.
29531         * tests/unicase/test-u8-is-uppercase.c: Likewise.
29532         * tests/unicase/test-u8-tolower.c: Likewise.
29533         * tests/unicase/test-u8-totitle.c: Likewise.
29534         * tests/unicase/test-u8-toupper.c: Likewise.
29535         * tests/unicase/test-u16-casecmp.c: Likewise.
29536         * tests/unicase/test-u16-casecoll.c: Likewise.
29537         * tests/unicase/test-u16-casefold.c: Likewise.
29538         * tests/unicase/test-u16-is-cased.c: Likewise.
29539         * tests/unicase/test-u16-is-casefolded.c: Likewise.
29540         * tests/unicase/test-u16-is-lowercase.c: Likewise.
29541         * tests/unicase/test-u16-is-titlecase.c: Likewise.
29542         * tests/unicase/test-u16-is-uppercase.c: Likewise.
29543         * tests/unicase/test-u16-tolower.c: Likewise.
29544         * tests/unicase/test-u16-totitle.c: Likewise.
29545         * tests/unicase/test-u16-toupper.c: Likewise.
29546         * tests/unicase/test-u32-casecmp.c: Likewise.
29547         * tests/unicase/test-u32-casecoll.c: Likewise.
29548         * tests/unicase/test-u32-casefold.c: Likewise.
29549         * tests/unicase/test-u32-is-cased.c: Likewise.
29550         * tests/unicase/test-u32-is-casefolded.c: Likewise.
29551         * tests/unicase/test-u32-is-lowercase.c: Likewise.
29552         * tests/unicase/test-u32-is-titlecase.c: Likewise.
29553         * tests/unicase/test-u32-is-uppercase.c: Likewise.
29554         * tests/unicase/test-u32-tolower.c: Likewise.
29555         * tests/unicase/test-u32-totitle.c: Likewise.
29556         * tests/unicase/test-u32-toupper.c: Likewise.
29557         * tests/unicase/test-ulc-casecmp.c: Likewise.
29558         * tests/unicase/test-ulc-casecoll.c: Likewise.
29559         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29560         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29561         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29562         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29563         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29564         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29565         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29566         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29567         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29568         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29569         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29570         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29571         * tests/unictype/test-bidi_byname.c: Likewise.
29572         * tests/unictype/test-bidi_name.c: Likewise.
29573         * tests/unictype/test-bidi_of.c: Likewise.
29574         * tests/unictype/test-bidi_test.c: Likewise.
29575         * tests/unictype/test-block_list.c: Likewise.
29576         * tests/unictype/test-block_of.c: Likewise.
29577         * tests/unictype/test-block_test.c: Likewise.
29578         * tests/unictype/test-categ_and.c: Likewise.
29579         * tests/unictype/test-categ_and_not.c: Likewise.
29580         * tests/unictype/test-categ_byname.c: Likewise.
29581         * tests/unictype/test-categ_name.c: Likewise.
29582         * tests/unictype/test-categ_none.c: Likewise.
29583         * tests/unictype/test-categ_of.c: Likewise.
29584         * tests/unictype/test-categ_or.c: Likewise.
29585         * tests/unictype/test-categ_test_withtable.c: Likewise.
29586         * tests/unictype/test-combining.c: Likewise.
29587         * tests/unictype/test-decdigit.c: Likewise.
29588         * tests/unictype/test-digit.c: Likewise.
29589         * tests/unictype/test-mirror.c: Likewise.
29590         * tests/unictype/test-numeric.c: Likewise.
29591         * tests/unictype/test-pr_byname.c: Likewise.
29592         * tests/unictype/test-pr_test.c: Likewise.
29593         * tests/unictype/test-predicate-part1.h: Likewise.
29594         * tests/unictype/test-scripts.c: Likewise.
29595         * tests/unictype/test-sy_c_ident.c: Likewise.
29596         * tests/unictype/test-sy_java_ident.c: Likewise.
29597         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
29598         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
29599         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
29600         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
29601         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
29602         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
29603         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
29604         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
29605         * tests/uninorm/test-canonical-decomposition.c: Likewise.
29606         * tests/uninorm/test-compat-decomposition.c: Likewise.
29607         * tests/uninorm/test-composition.c: Likewise.
29608         * tests/uninorm/test-decomposing-form.c: Likewise.
29609         * tests/uninorm/test-decomposition.c: Likewise.
29610         * tests/uninorm/test-u8-nfc.c: Likewise.
29611         * tests/uninorm/test-u8-nfd.c: Likewise.
29612         * tests/uninorm/test-u8-nfkc.c: Likewise.
29613         * tests/uninorm/test-u8-nfkd.c: Likewise.
29614         * tests/uninorm/test-u8-normcmp.c: Likewise.
29615         * tests/uninorm/test-u8-normcoll.c: Likewise.
29616         * tests/uninorm/test-u16-nfc.c: Likewise.
29617         * tests/uninorm/test-u16-nfd.c: Likewise.
29618         * tests/uninorm/test-u16-nfkc.c: Likewise.
29619         * tests/uninorm/test-u16-nfkd.c: Likewise.
29620         * tests/uninorm/test-u16-normcmp.c: Likewise.
29621         * tests/uninorm/test-u16-normcoll.c: Likewise.
29622         * tests/uninorm/test-u32-nfc.c: Likewise.
29623         * tests/uninorm/test-u32-nfd.c: Likewise.
29624         * tests/uninorm/test-u32-nfkc.c: Likewise.
29625         * tests/uninorm/test-u32-nfkd.c: Likewise.
29626         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29627         * tests/uninorm/test-u32-normcmp.c: Likewise.
29628         * tests/uninorm/test-u32-normcoll.c: Likewise.
29629         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
29630         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29631         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29632         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29633         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29634         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29635         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29636         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29637         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29638         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29639         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29640         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29641         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29642         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29643         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29644         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29645         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29646         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29647         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29648         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29649         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29650         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29651         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29652         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29653         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29654         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29655         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29656         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29657         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29658         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
29659         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
29660         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
29661         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
29662         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29663         * tests/uniwidth/test-u8-width.c: Likewise.
29664         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29665         * tests/uniwidth/test-u16-width.c: Likewise.
29666         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29667         * tests/uniwidth/test-u32-width.c: Likewise.
29668         * tests/uniwidth/test-uc_width.c: Likewise.
29669         * tests/uniwidth/test-uc_width2.c: Likewise.
29670         * modules/acl-tests (Files): Add tests/macros.h.
29671         * modules/areadlink-tests (Files): Likewise.
29672         * modules/areadlink-with-size-tests (Files): Likewise.
29673         * modules/areadlinkat-tests (Files): Likewise.
29674         * modules/areadlinkat-with-size-tests (Files): Likewise.
29675         * modules/argmatch-tests (Files): Likewise.
29676         * modules/argv-iter-tests (Files): Likewise.
29677         * modules/array-list-tests (Files): Likewise.
29678         * modules/array-mergesort-tests (Files): Likewise.
29679         * modules/array-oset-tests (Files): Likewise.
29680         * modules/avltree-list-tests (Files): Likewise.
29681         * modules/avltree-oset-tests (Files): Likewise.
29682         * modules/avltreehash-list-tests (Files): Likewise.
29683         * modules/base64-tests (Files): Likewise.
29684         * modules/binary-io-tests (Files): Likewise.
29685         * modules/bitrotate-tests (Files): Likewise.
29686         * modules/btowc-tests (Files): Likewise.
29687         * modules/byteswap-tests (Files): Likewise.
29688         * modules/c-ctype-tests (Files): Likewise.
29689         * modules/c-stack-tests (Files): Likewise.
29690         * modules/c-strcase-tests (Files): Likewise.
29691         * modules/c-strcasestr-tests (Files): Likewise.
29692         * modules/c-strstr-tests (Files): Likewise.
29693         * modules/canonicalize-lgpl-tests (Files): Likewise.
29694         * modules/canonicalize-tests (Files): Likewise.
29695         * modules/carray-list-tests (Files): Likewise.
29696         * modules/ceilf-tests (Files): Likewise.
29697         * modules/ceill-tests (Files): Likewise.
29698         * modules/chown-tests (Files): Likewise.
29699         * modules/cloexec-tests (Files): Likewise.
29700         * modules/copy-file-tests (Files): Likewise.
29701         * modules/count-one-bits-tests (Files): Likewise.
29702         * modules/dprintf-posix-tests (Files): Likewise.
29703         * modules/dup2-tests (Files): Likewise.
29704         * modules/dup3-tests (Files): Likewise.
29705         * modules/duplocale-tests (Files): Likewise.
29706         * modules/fbufmode-tests (Files): Likewise.
29707         * modules/fchdir-tests (Files): Likewise.
29708         * modules/fcntl-safer-tests (Files): Likewise.
29709         * modules/fcntl-tests (Files): Likewise.
29710         * modules/fdopendir-tests (Files): Likewise.
29711         * modules/fdutimensat-tests (Files): Likewise.
29712         * modules/fflush-tests (Files): Likewise.
29713         * modules/filevercmp-tests (Files): Likewise.
29714         * modules/flock-tests (Files): Likewise.
29715         * modules/floorf-tests (Files): Likewise.
29716         * modules/floorl-tests (Files): Likewise.
29717         * modules/fnmatch-tests (Files): Likewise.
29718         * modules/fopen-safer-tests (Files): Likewise.
29719         * modules/fopen-tests (Files): Likewise.
29720         * modules/fpending-tests (Files): Likewise.
29721         * modules/fprintf-posix-tests (Files): Likewise.
29722         * modules/fpurge-tests (Files): Likewise.
29723         * modules/freadable-tests (Files): Likewise.
29724         * modules/freadahead-tests (Files): Likewise.
29725         * modules/freading-tests (Files): Likewise.
29726         * modules/freadptr-tests (Files): Likewise.
29727         * modules/freadseek-tests (Files): Likewise.
29728         * modules/freopen-tests (Files): Likewise.
29729         * modules/frexp-nolibm-tests (Files): Likewise.
29730         * modules/frexp-tests (Files): Likewise.
29731         * modules/frexpl-nolibm-tests (Files): Likewise.
29732         * modules/frexpl-tests (Files): Likewise.
29733         * modules/fseek-tests (Files): Likewise.
29734         * modules/fseeko-tests (Files): Likewise.
29735         * modules/fstrcmp-tests (Files): Likewise.
29736         * modules/fsync-tests (Files): Likewise.
29737         * modules/ftell-tests (Files): Likewise.
29738         * modules/ftello-tests (Files): Likewise.
29739         * modules/func-tests (Files): Likewise.
29740         * modules/futimens-tests (Files): Likewise.
29741         * modules/fwritable-tests (Files): Likewise.
29742         * modules/fwriting-tests (Files): Likewise.
29743         * modules/getcwd-tests (Files): Likewise.
29744         * modules/getdate-tests (Files): Likewise.
29745         * modules/getdelim-tests (Files): Likewise.
29746         * modules/getdtablesize-tests (Files): Likewise.
29747         * modules/getgroups-tests (Files): Likewise.
29748         * modules/getline-tests (Files): Likewise.
29749         * modules/getndelim2-tests (Files): Likewise.
29750         * modules/glob-tests (Files): Likewise.
29751         * modules/hash-tests (Files): Likewise.
29752         * modules/i-ring-tests (Files): Likewise.
29753         * modules/iconv-tests (Files): Likewise.
29754         * modules/iconv_open-utf-tests (Files): Likewise.
29755         * modules/idpriv-drop-tests (Files): Likewise.
29756         * modules/idpriv-droptemp-tests (Files): Likewise.
29757         * modules/inet_ntop-tests (Files): Likewise.
29758         * modules/inet_pton-tests (Files): Likewise.
29759         * modules/isblank-tests (Files): Likewise.
29760         * modules/isfinite-tests (Files): Likewise.
29761         * modules/isinf-tests (Files): Likewise.
29762         * modules/isnan-tests (Files): Likewise.
29763         * modules/isnand-nolibm-tests (Files): Likewise.
29764         * modules/isnand-tests (Files): Likewise.
29765         * modules/isnanf-nolibm-tests (Files): Likewise.
29766         * modules/isnanf-tests (Files): Likewise.
29767         * modules/isnanl-nolibm-tests (Files): Likewise.
29768         * modules/isnanl-tests (Files): Likewise.
29769         * modules/lchown-tests (Files): Likewise.
29770         * modules/ldexpl-tests (Files): Likewise.
29771         * modules/link-tests (Files): Likewise.
29772         * modules/linkat-tests (Files): Likewise.
29773         * modules/linked-list-tests (Files): Likewise.
29774         * modules/linkedhash-list-tests (Files): Likewise.
29775         * modules/localename-tests (Files): Likewise.
29776         * modules/lseek-tests (Files): Likewise.
29777         * modules/lstat-tests (Files): Likewise.
29778         * modules/mbmemcasecmp-tests (Files): Likewise.
29779         * modules/mbmemcasecoll-tests (Files): Likewise.
29780         * modules/mbrtowc-tests (Files): Likewise.
29781         * modules/mbscasecmp-tests (Files): Likewise.
29782         * modules/mbscasestr-tests (Files): Likewise.
29783         * modules/mbschr-tests (Files): Likewise.
29784         * modules/mbscspn-tests (Files): Likewise.
29785         * modules/mbsinit-tests (Files): Likewise.
29786         * modules/mbsncasecmp-tests (Files): Likewise.
29787         * modules/mbsnrtowcs-tests (Files): Likewise.
29788         * modules/mbspbrk-tests (Files): Likewise.
29789         * modules/mbspcasecmp-tests (Files): Likewise.
29790         * modules/mbsrchr-tests (Files): Likewise.
29791         * modules/mbsrtowcs-tests (Files): Likewise.
29792         * modules/mbsspn-tests (Files): Likewise.
29793         * modules/mbsstr-tests (Files): Likewise.
29794         * modules/memchr-tests (Files): Likewise.
29795         * modules/memchr2-tests (Files): Likewise.
29796         * modules/memcmp-tests (Files): Likewise.
29797         * modules/memmem-tests (Files): Likewise.
29798         * modules/memrchr-tests (Files): Likewise.
29799         * modules/mkdir-tests (Files): Likewise.
29800         * modules/mkfifo-tests (Files): Likewise.
29801         * modules/mkfifoat-tests (Files): Likewise.
29802         * modules/mknod-tests (Files): Likewise.
29803         * modules/nanosleep-tests (Files): Likewise.
29804         * modules/nl_langinfo-tests (Files): Likewise.
29805         * modules/obstack-printf-tests (Files): Likewise.
29806         * modules/open-tests (Files): Likewise.
29807         * modules/openat-tests (Files): Likewise.
29808         * modules/pipe-filter-gi-tests (Files): Likewise.
29809         * modules/pipe-filter-ii-tests (Files): Likewise.
29810         * modules/pipe2-tests (Files): Likewise.
29811         * modules/popen-safer-tests (Files): Likewise.
29812         * modules/popen-tests (Files): Likewise.
29813         * modules/posixtm-tests (Files): Likewise.
29814         * modules/pread-tests (Files): Likewise.
29815         * modules/printf-frexp-tests (Files): Likewise.
29816         * modules/printf-frexpl-tests (Files): Likewise.
29817         * modules/printf-posix-tests (Files): Likewise.
29818         * modules/priv-set-tests (Files): Likewise.
29819         * modules/quotearg-tests (Files): Likewise.
29820         * modules/random_r-tests (Files): Likewise.
29821         * modules/rawmemchr-tests (Files): Likewise.
29822         * modules/rbtree-list-tests (Files): Likewise.
29823         * modules/rbtree-oset-tests (Files): Likewise.
29824         * modules/rbtreehash-list-tests (Files): Likewise.
29825         * modules/readlink-tests (Files): Likewise.
29826         * modules/remove-tests (Files): Likewise.
29827         * modules/rename-tests (Files): Likewise.
29828         * modules/renameat-tests (Files): Likewise.
29829         * modules/rmdir-tests (Files): Likewise.
29830         * modules/round-tests (Files): Likewise.
29831         * modules/roundf-tests (Files): Likewise.
29832         * modules/roundl-tests (Files): Likewise.
29833         * modules/safe-alloc-tests (Files): Likewise.
29834         * modules/setenv-tests (Files): Likewise.
29835         * modules/sigaction-tests (Files): Likewise.
29836         * modules/signbit-tests (Files): Likewise.
29837         * modules/sleep-tests (Files): Likewise.
29838         * modules/snprintf-posix-tests (Files): Likewise.
29839         * modules/snprintf-tests (Files): Likewise.
29840         * modules/sprintf-posix-tests (Files): Likewise.
29841         * modules/stat-tests (Files): Likewise.
29842         * modules/stat-time-tests (Files): Likewise.
29843         * modules/strcasestr-tests (Files): Likewise.
29844         * modules/strchrnul-tests (Files): Likewise.
29845         * modules/strerror-tests (Files): Likewise.
29846         * modules/striconv-tests (Files): Likewise.
29847         * modules/striconveh-tests (Files): Likewise.
29848         * modules/striconveha-tests (Files): Likewise.
29849         * modules/strsignal-tests (Files): Likewise.
29850         * modules/strstr-tests (Files): Likewise.
29851         * modules/strtod-tests (Files): Likewise.
29852         * modules/strverscmp-tests (Files): Likewise.
29853         * modules/symlink-tests (Files): Likewise.
29854         * modules/symlinkat-tests (Files): Likewise.
29855         * modules/trunc-tests (Files): Likewise.
29856         * modules/truncf-tests (Files): Likewise.
29857         * modules/truncl-tests (Files): Likewise.
29858         * modules/uname-tests (Files): Likewise.
29859         * modules/unicase/cased-tests (Files): Likewise.
29860         * modules/unicase/ignorable-tests (Files): Likewise.
29861         * modules/unicase/locale-language-tests (Files): Likewise.
29862         * modules/unicase/tolower-tests (Files): Likewise.
29863         * modules/unicase/totitle-tests (Files): Likewise.
29864         * modules/unicase/toupper-tests (Files): Likewise.
29865         * modules/unicase/u8-casecmp-tests (Files): Likewise.
29866         * modules/unicase/u8-casecoll-tests (Files): Likewise.
29867         * modules/unicase/u8-casefold-tests (Files): Likewise.
29868         * modules/unicase/u8-is-cased-tests (Files): Likewise.
29869         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
29870         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
29871         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
29872         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
29873         * modules/unicase/u8-tolower-tests (Files): Likewise.
29874         * modules/unicase/u8-totitle-tests (Files): Likewise.
29875         * modules/unicase/u8-toupper-tests (Files): Likewise.
29876         * modules/unicase/u16-casecmp-tests (Files): Likewise.
29877         * modules/unicase/u16-casecoll-tests (Files): Likewise.
29878         * modules/unicase/u16-casefold-tests (Files): Likewise.
29879         * modules/unicase/u16-is-cased-tests (Files): Likewise.
29880         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
29881         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
29882         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
29883         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
29884         * modules/unicase/u16-tolower-tests (Files): Likewise.
29885         * modules/unicase/u16-totitle-tests (Files): Likewise.
29886         * modules/unicase/u16-toupper-tests (Files): Likewise.
29887         * modules/unicase/u32-casecmp-tests (Files): Likewise.
29888         * modules/unicase/u32-casecoll-tests (Files): Likewise.
29889         * modules/unicase/u32-casefold-tests (Files): Likewise.
29890         * modules/unicase/u32-is-cased-tests (Files): Likewise.
29891         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
29892         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
29893         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
29894         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
29895         * modules/unicase/u32-tolower-tests (Files): Likewise.
29896         * modules/unicase/u32-totitle-tests (Files): Likewise.
29897         * modules/unicase/u32-toupper-tests (Files): Likewise.
29898         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
29899         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
29900         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
29901         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
29902         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
29903         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
29904         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
29905         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
29906         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
29907         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
29908         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
29909         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
29910         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
29911         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
29912         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
29913         * modules/unictype/bidicategory-name-tests (Files): Likewise.
29914         * modules/unictype/bidicategory-of-tests (Files): Likewise.
29915         * modules/unictype/bidicategory-test-tests (Files): Likewise.
29916         * modules/unictype/block-list-tests (Files): Likewise.
29917         * modules/unictype/block-of-tests (Files): Likewise.
29918         * modules/unictype/block-test-tests (Files): Likewise.
29919         * modules/unictype/category-C-tests (Files): Likewise.
29920         * modules/unictype/category-Cc-tests (Files): Likewise.
29921         * modules/unictype/category-Cf-tests (Files): Likewise.
29922         * modules/unictype/category-Cn-tests (Files): Likewise.
29923         * modules/unictype/category-Co-tests (Files): Likewise.
29924         * modules/unictype/category-Cs-tests (Files): Likewise.
29925         * modules/unictype/category-L-tests (Files): Likewise.
29926         * modules/unictype/category-Ll-tests (Files): Likewise.
29927         * modules/unictype/category-Lm-tests (Files): Likewise.
29928         * modules/unictype/category-Lo-tests (Files): Likewise.
29929         * modules/unictype/category-Lt-tests (Files): Likewise.
29930         * modules/unictype/category-Lu-tests (Files): Likewise.
29931         * modules/unictype/category-M-tests (Files): Likewise.
29932         * modules/unictype/category-Mc-tests (Files): Likewise.
29933         * modules/unictype/category-Me-tests (Files): Likewise.
29934         * modules/unictype/category-Mn-tests (Files): Likewise.
29935         * modules/unictype/category-N-tests (Files): Likewise.
29936         * modules/unictype/category-Nd-tests (Files): Likewise.
29937         * modules/unictype/category-Nl-tests (Files): Likewise.
29938         * modules/unictype/category-No-tests (Files): Likewise.
29939         * modules/unictype/category-P-tests (Files): Likewise.
29940         * modules/unictype/category-Pc-tests (Files): Likewise.
29941         * modules/unictype/category-Pd-tests (Files): Likewise.
29942         * modules/unictype/category-Pe-tests (Files): Likewise.
29943         * modules/unictype/category-Pf-tests (Files): Likewise.
29944         * modules/unictype/category-Pi-tests (Files): Likewise.
29945         * modules/unictype/category-Po-tests (Files): Likewise.
29946         * modules/unictype/category-Ps-tests (Files): Likewise.
29947         * modules/unictype/category-S-tests (Files): Likewise.
29948         * modules/unictype/category-Sc-tests (Files): Likewise.
29949         * modules/unictype/category-Sk-tests (Files): Likewise.
29950         * modules/unictype/category-Sm-tests (Files): Likewise.
29951         * modules/unictype/category-So-tests (Files): Likewise.
29952         * modules/unictype/category-Z-tests (Files): Likewise.
29953         * modules/unictype/category-Zl-tests (Files): Likewise.
29954         * modules/unictype/category-Zp-tests (Files): Likewise.
29955         * modules/unictype/category-Zs-tests (Files): Likewise.
29956         * modules/unictype/category-and-not-tests (Files): Likewise.
29957         * modules/unictype/category-and-tests (Files): Likewise.
29958         * modules/unictype/category-byname-tests (Files): Likewise.
29959         * modules/unictype/category-name-tests (Files): Likewise.
29960         * modules/unictype/category-none-tests (Files): Likewise.
29961         * modules/unictype/category-of-tests (Files): Likewise.
29962         * modules/unictype/category-or-tests (Files): Likewise.
29963         * modules/unictype/category-test-withtable-tests (Files): Likewise.
29964         * modules/unictype/combining-class-tests (Files): Likewise.
29965         * modules/unictype/ctype-alnum-tests (Files): Likewise.
29966         * modules/unictype/ctype-alpha-tests (Files): Likewise.
29967         * modules/unictype/ctype-blank-tests (Files): Likewise.
29968         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
29969         * modules/unictype/ctype-digit-tests (Files): Likewise.
29970         * modules/unictype/ctype-graph-tests (Files): Likewise.
29971         * modules/unictype/ctype-lower-tests (Files): Likewise.
29972         * modules/unictype/ctype-print-tests (Files): Likewise.
29973         * modules/unictype/ctype-punct-tests (Files): Likewise.
29974         * modules/unictype/ctype-space-tests (Files): Likewise.
29975         * modules/unictype/ctype-upper-tests (Files): Likewise.
29976         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
29977         * modules/unictype/decimal-digit-tests (Files): Likewise.
29978         * modules/unictype/digit-tests (Files): Likewise.
29979         * modules/unictype/mirror-tests (Files): Likewise.
29980         * modules/unictype/numeric-tests (Files): Likewise.
29981         * modules/unictype/property-alphabetic-tests (Files): Likewise.
29982         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
29983         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
29984         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
29985         Likewise.
29986         * modules/unictype/property-bidi-block-separator-tests (Files):
29987         Likewise.
29988         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
29989         Likewise.
29990         * modules/unictype/property-bidi-common-separator-tests (Files):
29991         Likewise.
29992         * modules/unictype/property-bidi-control-tests (Files): Likewise.
29993         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
29994         Likewise.
29995         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
29996         Likewise.
29997         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
29998         Likewise.
29999         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30000         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30001         Likewise.
30002         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30003         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30004         Likewise.
30005         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30006         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30007         * modules/unictype/property-bidi-segment-separator-tests (Files):
30008         Likewise.
30009         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30010         * modules/unictype/property-byname-tests (Files): Likewise.
30011         * modules/unictype/property-combining-tests (Files): Likewise.
30012         * modules/unictype/property-composite-tests (Files): Likewise.
30013         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30014         * modules/unictype/property-dash-tests (Files): Likewise.
30015         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30016         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30017         Likewise.
30018         * modules/unictype/property-deprecated-tests (Files): Likewise.
30019         * modules/unictype/property-diacritic-tests (Files): Likewise.
30020         * modules/unictype/property-extender-tests (Files): Likewise.
30021         * modules/unictype/property-format-control-tests (Files): Likewise.
30022         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30023         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30024         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30025         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30026         * modules/unictype/property-hyphen-tests (Files): Likewise.
30027         * modules/unictype/property-id-continue-tests (Files): Likewise.
30028         * modules/unictype/property-id-start-tests (Files): Likewise.
30029         * modules/unictype/property-ideographic-tests (Files): Likewise.
30030         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30031         * modules/unictype/property-ids-trinary-operator-tests (Files):
30032         Likewise.
30033         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30034         * modules/unictype/property-iso-control-tests (Files): Likewise.
30035         * modules/unictype/property-join-control-tests (Files): Likewise.
30036         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30037         * modules/unictype/property-line-separator-tests (Files): Likewise.
30038         * modules/unictype/property-logical-order-exception-tests (Files):
30039         Likewise.
30040         * modules/unictype/property-lowercase-tests (Files): Likewise.
30041         * modules/unictype/property-math-tests (Files): Likewise.
30042         * modules/unictype/property-non-break-tests (Files): Likewise.
30043         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30044         * modules/unictype/property-numeric-tests (Files): Likewise.
30045         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30046         * modules/unictype/property-other-default-ignorable-code-point-tests
30047         (Files): Likewise.
30048         * modules/unictype/property-other-grapheme-extend-tests (Files):
30049         Likewise.
30050         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30051         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30052         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30053         * modules/unictype/property-other-math-tests (Files): Likewise.
30054         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30055         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30056         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30057         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30058         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30059         * modules/unictype/property-private-use-tests (Files): Likewise.
30060         * modules/unictype/property-punctuation-tests (Files): Likewise.
30061         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30062         * modules/unictype/property-radical-tests (Files): Likewise.
30063         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30064         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30065         * modules/unictype/property-space-tests (Files): Likewise.
30066         * modules/unictype/property-terminal-punctuation-tests (Files):
30067         Likewise.
30068         * modules/unictype/property-test-tests (Files): Likewise.
30069         * modules/unictype/property-titlecase-tests (Files): Likewise.
30070         * modules/unictype/property-unassigned-code-value-tests (Files):
30071         Likewise.
30072         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30073         * modules/unictype/property-uppercase-tests (Files): Likewise.
30074         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30075         * modules/unictype/property-white-space-tests (Files): Likewise.
30076         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30077         * modules/unictype/property-xid-start-tests (Files): Likewise.
30078         * modules/unictype/property-zero-width-tests (Files): Likewise.
30079         * modules/unictype/scripts-tests (Files): Likewise.
30080         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30081         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30082         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30083         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30084         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30085         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30086         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30087         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30088         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30089         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30090         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30091         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30092         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30093         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30094         * modules/uninorm/composition-tests (Files): Likewise.
30095         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30096         * modules/uninorm/decomposition-tests (Files): Likewise.
30097         * modules/uninorm/filter-tests (Files): Likewise.
30098         * modules/uninorm/nfc-tests (Files): Likewise.
30099         * modules/uninorm/nfd-tests (Files): Likewise.
30100         * modules/uninorm/nfkc-tests (Files): Likewise.
30101         * modules/uninorm/nfkd-tests (Files): Likewise.
30102         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30103         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30104         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30105         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30106         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30107         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30108         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30109         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30110         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30111         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30112         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30113         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30114         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30115         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30116         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30117         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30118         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30119         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30120         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30121         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30122         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30123         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30124         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30125         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30126         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30127         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30128         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30129         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30130         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30131         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30132         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30133         * modules/uniwidth/u8-width-tests (Files): Likewise.
30134         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30135         * modules/uniwidth/u16-width-tests (Files): Likewise.
30136         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30137         * modules/uniwidth/u32-width-tests (Files): Likewise.
30138         * modules/uniwidth/width-tests (Files): Likewise.
30139         * modules/unlink-tests (Files): Likewise.
30140         * modules/unsetenv-tests (Files): Likewise.
30141         * modules/usleep-tests (Files): Likewise.
30142         * modules/utimens-tests (Files): Likewise.
30143         * modules/utimensat-tests (Files): Likewise.
30144         * modules/vasnprintf-posix-tests (Files): Likewise.
30145         * modules/vasnprintf-tests (Files): Likewise.
30146         * modules/vasprintf-posix-tests (Files): Likewise.
30147         * modules/vasprintf-tests (Files): Likewise.
30148         * modules/vdprintf-posix-tests (Files): Likewise.
30149         * modules/vfprintf-posix-tests (Files): Likewise.
30150         * modules/vprintf-posix-tests (Files): Likewise.
30151         * modules/vsnprintf-posix-tests (Files): Likewise.
30152         * modules/vsnprintf-tests (Files): Likewise.
30153         * modules/vsprintf-posix-tests (Files): Likewise.
30154         * modules/wcrtomb-tests (Files): Likewise.
30155         * modules/wcsnrtombs-tests (Files): Likewise.
30156         * modules/wcsrtombs-tests (Files): Likewise.
30157         * modules/wctype-tests (Files): Likewise.
30158         * modules/wcwidth-tests (Files): Likewise.
30159         * modules/xmemdup0-tests (Files): Likewise.
30160         * modules/xprintf-posix-tests (Files): Likewise.
30161         * modules/xvasprintf-tests (Files): Likewise.
30162
30163 2009-12-24  Eric Blake  <ebb9@byu.net>
30164
30165         test-nanosleep: fix typo
30166         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30167         patch.
30168         Reported by Bruno Haible.
30169
30170 2009-12-24  Bruno Haible  <bruno@clisp.org>
30171
30172         Reduce namespace pollution on glibc systems.
30173         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30174         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30175         systems.
30176         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30177         <getopt.h> on glibc systems.
30178         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30179         systems.
30180         * lib/fcntl.c: Include <unistd.h> here instead.
30181
30182 2009-12-24  Bruno Haible  <bruno@clisp.org>
30183
30184         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30185
30186 2009-12-24  Eric Blake  <ebb9@byu.net>
30187
30188         tests: add signature checks
30189         * tests/signature.h (SIGNATURE_CHECK): New file.
30190         * modules/atexit-tests (Files): Use it.
30191         * modules/btowc-tests (Files): Likewise.
30192         * modules/canonicalize-lgpl-tests (Files): Likewise.
30193         * modules/ceilf-tests (Files): Likewise.
30194         * modules/ceill-tests (Files): Likewise.
30195         * modules/chown-tests (Files): Likewise.
30196         * modules/dprintf-posix-tests (Files): Likewise.
30197         * modules/dup2-tests (Files): Likewise.
30198         * modules/dup3-tests (Files): Likewise.
30199         * modules/duplocale-tests (Files): Likewise.
30200         * modules/fchdir-tests (Files): Likewise.
30201         * modules/fcntl-tests (Files): Likewise.
30202         * modules/fdopendir-tests (Files): Likewise.
30203         * modules/fflush-tests (Files): Likewise.
30204         * modules/flock-tests (Files): Likewise.
30205         * modules/floorf-tests (Files): Likewise.
30206         * modules/floorl-tests (Files): Likewise.
30207         * modules/fnmatch-tests (Files): Likewise.
30208         * modules/fopen-tests (Files): Likewise.
30209         * modules/fprintf-posix-tests (Files): Likewise.
30210         * modules/freopen-tests (Files): Likewise.
30211         * modules/frexp-nolibm-tests (Files): Likewise.
30212         * modules/frexp-tests (Files): Likewise.
30213         * modules/frexpl-nolibm-tests (Files): Likewise.
30214         * modules/frexpl-tests (Files): Likewise.
30215         * modules/fseek-tests (Files): Likewise.
30216         * modules/fseeko-tests (Files): Likewise.
30217         * modules/fsync-tests (Files): Likewise.
30218         * modules/ftell-tests (Files): Likewise.
30219         * modules/ftello-tests (Files): Likewise.
30220         * modules/futimens-tests (Files): Likewise.
30221         * modules/getaddrinfo-tests (Files): Likewise.
30222         * modules/getcwd-tests (Files): Likewise.
30223         * modules/getdelim-tests (Files): Likewise.
30224         * modules/getdtablesize-tests (Files): Likewise.
30225         * modules/getgroups-tests (Files): Likewise.
30226         * modules/gethostname-tests (Files): Likewise.
30227         * modules/getline-tests (Files): Likewise.
30228         * modules/getopt-posix-tests (Files): Likewise.
30229         * modules/gettimeofday-tests (Files): Likewise.
30230         * modules/glob-tests (Files): Likewise.
30231         * modules/iconv-tests (Files): Likewise.
30232         * modules/inet_ntop-tests (Files): Likewise.
30233         * modules/inet_pton-tests (Files): Likewise.
30234         * modules/isblank-tests (Files): Likewise.
30235         * modules/lchown-tests (Files): Likewise.
30236         * modules/ldexpl-tests (Files): Likewise.
30237         * modules/link-tests (Files): Likewise.
30238         * modules/linkat-tests (Files): Likewise.
30239         * modules/lseek-tests (Files): Likewise.
30240         * modules/lstat-tests (Files): Likewise.
30241         * modules/mbrtowc-tests (Files): Likewise.
30242         * modules/mbsinit-tests (Files): Likewise.
30243         * modules/mbsnrtowcs-tests (Files): Likewise.
30244         * modules/mbsrtowcs-tests (Files): Likewise.
30245         * modules/memchr-tests (Files): Likewise.
30246         * modules/memcmp-tests (Files): Likewise.
30247         * modules/memmem-tests (Files): Likewise.
30248         * modules/memrchr-tests (Files): Likewise.
30249         * modules/mkdir-tests (Files): Likewise.
30250         * modules/mkfifo-tests (Files): Likewise.
30251         * modules/mkfifoat-tests (Files): Likewise.
30252         * modules/mknod-tests (Files): Likewise.
30253         * modules/nanosleep-tests (Files): Likewise.
30254         * modules/nl_langinfo-tests (Files): Likewise.
30255         * modules/obstack-printf-tests (Files): Likewise.
30256         * modules/open-tests (Files): Likewise.
30257         * modules/openat-tests (Files): Likewise.
30258         * modules/perror-tests (Files): Likewise.
30259         * modules/pipe2-tests (Files): Likewise.
30260         * modules/poll-tests (Files): Likewise.
30261         * modules/popen-tests (Files): Likewise.
30262         * modules/posix_spawn-tests (Files): Likewise.
30263         * modules/posix_spawnp-tests (Files): Likewise.
30264         * modules/pread-tests (Files): Likewise.
30265         * modules/printf-posix-tests (Files): Likewise.
30266         * modules/pty-tests (Files): Likewise.
30267         * modules/random_r-tests (Files): Likewise.
30268         * modules/rawmemchr-tests (Files): Likewise.
30269         * modules/readlink-tests (Files): Likewise.
30270         * modules/remove-tests (Files): Likewise.
30271         * modules/rename-tests (Files): Likewise.
30272         * modules/renameat-tests (Files): Likewise.
30273         * modules/rmdir-tests (Files): Likewise.
30274         * modules/round-tests (Files): Likewise.
30275         * modules/roundf-tests (Files): Likewise.
30276         * modules/roundl-tests (Files): Likewise.
30277         * modules/select-tests (Files): Likewise.
30278         * modules/setenv-tests (Files): Likewise.
30279         * modules/sigaction-tests (Files): Likewise.
30280         * modules/sleep-tests (Files): Likewise.
30281         * modules/snprintf-posix-tests (Files): Likewise.
30282         * modules/snprintf-tests (Files): Likewise.
30283         * modules/sprintf-posix-tests (Files): Likewise.
30284         * modules/stat-tests (Files): Likewise.
30285         * modules/strcasestr-tests (Files): Likewise.
30286         * modules/strchrnul-tests (Files): Likewise.
30287         * modules/strerror-tests (Files): Likewise.
30288         * modules/strsignal-tests (Files): Likewise.
30289         * modules/strstr-tests (Files): Likewise.
30290         * modules/strtod-tests (Files): Likewise.
30291         * modules/strverscmp-tests (Files): Likewise.
30292         * modules/symlink-tests (Files): Likewise.
30293         * modules/symlinkat-tests (Files): Likewise.
30294         * modules/times-tests (Files): Likewise.
30295         * modules/trunc-tests (Files): Likewise.
30296         * modules/truncf-tests (Files): Likewise.
30297         * modules/truncl-tests (Files): Likewise.
30298         * modules/tsearch-tests (Files): Likewise.
30299         * modules/uname-tests (Files): Likewise.
30300         * modules/unlink-tests (Files): Likewise.
30301         * modules/unsetenv-tests (Files): Likewise.
30302         * modules/usleep-tests (Files): Likewise.
30303         * modules/utimensat-tests (Files): Likewise.
30304         * modules/vasprintf-tests (Files): Likewise.
30305         * modules/vdprintf-posix-tests (Files): Likewise.
30306         * modules/vfprintf-posix-tests (Files): Likewise.
30307         * modules/vprintf-posix-tests (Files): Likewise.
30308         * modules/vsnprintf-posix-tests (Files): Likewise.
30309         * modules/vsnprintf-tests (Files): Likewise.
30310         * modules/vsprintf-posix-tests (Files): Likewise.
30311         * modules/wcrtomb-tests (Files): Likewise.
30312         * modules/wcsnrtombs-tests (Files): Likewise.
30313         * modules/wcsrtombs-tests (Files): Likewise.
30314         * modules/wcwidth-tests (Files): Likewise.
30315         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30316         * tests/test-isinf.c (isinf): Likewise.
30317         * tests/test-isnan.c (isnan): Likewise.
30318         * tests/test-signbit.c (signbit): Likewise.
30319         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30320         declaration, either as macro or with correct signature.
30321         (select): Ensure function under test is declared with correct
30322         signature in correct header.
30323         * tests/test-atexit.c (atexit): Likewise.
30324         * tests/test-btowc.c (btowc): Likewise.
30325         * tests/test-canonicalize-lgpl.c (realpath)
30326         (canonicalize_file_name): Likewise.
30327         * tests/test-ceilf1.c (ceilf): Likewise.
30328         * tests/test-ceill.c (ceill): Likewise.
30329         * tests/test-chown.c (chown): Likewise.
30330         * tests/test-dprintf-posix.c (dprintf): Likewise.
30331         * tests/test-dup2.c (dup2): Likewise.
30332         * tests/test-dup3.c (dup3): Likewise.
30333         * tests/test-duplocale.c (duplocale): Likewise.
30334         * tests/test-fchdir.c (fchdir): Likewise.
30335         * tests/test-fchownat.c (fchownat): Likewise.
30336         * tests/test-fcntl.c (fcntl): Likewise.
30337         * tests/test-fdopendir.c (fdopendir): Likewise.
30338         * tests/test-fflush.c (fflush): Likewise.
30339         * tests/test-flock.c (flock): Likewise.
30340         * tests/test-floorf1.c (floorf): Likewise.
30341         * tests/test-floorl.c (floorl): Likewise.
30342         * tests/test-fnmatch.c (fnmatch): Likewise.
30343         * tests/test-fopen.c (fopen): Likewise.
30344         * tests/test-fprintf-posix.c (fprintf): Likewise.
30345         * tests/test-freopen.c (freopen): Likewise.
30346         * tests/test-frexp.c (frexp): Likewise.
30347         * tests/test-frexpl.c (frexpl): Likewise.
30348         * tests/test-fseek.c (fseek): Likewise.
30349         * tests/test-fseeko.c (fseeko): Likewise.
30350         * tests/test-fstatat.c (fstatat): Likewise.
30351         * tests/test-fsync.c (fsync): Likewise.
30352         * tests/test-ftell.c (ftell): Likewise.
30353         * tests/test-ftello.c (ftello): Likewise.
30354         * tests/test-futimens.c (futimens): Likewise.
30355         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
30356         (gai_strerror): Likewise.
30357         * tests/test-getcwd.c (getcwd): Likewise.
30358         * tests/test-getdelim.c (getdelim): Likewise.
30359         * tests/test-getdtablesize.c (getdtablesize): Likewise.
30360         * tests/test-getgroups.c (getgroups): Likewise.
30361         * tests/test-gethostname.c (gethostname): Likewise.
30362         * tests/test-getline.c (getline): Likewise.
30363         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
30364         Likewise.
30365         * tests/test-gettimeofday.c (gettimeofday): Likewise.
30366         * tests/test-glob.c (glob, globfree): Likewise.
30367         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
30368         * tests/test-inet_ntop.c (inet_ntop): Likewise.
30369         * tests/test-inet_pton.c (inet_pton): Likewise.
30370         * tests/test-isblank.c (isblank): Likewise.
30371         * tests/test-lchown.c (lchown): Likewise.
30372         * tests/test-ldexpl.c (ldexpl): Likewise.
30373         * tests/test-link.c (link): Likewise.
30374         * tests/test-linkat.c (linkat): Likewise.
30375         * tests/test-lseek.c (lseek): Likewise.
30376         * tests/test-lstat.c (lstat): Likewise.
30377         * tests/test-mbrtowc.c (mbrtowc): Likewise.
30378         * tests/test-mbsinit.c (mbsinit): Likewise.
30379         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
30380         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
30381         * tests/test-memchr.c (memchr): Likewise.
30382         * tests/test-memcmp.c (memcmp): Likewise.
30383         * tests/test-memmem.c (memmem): Likewise.
30384         * tests/test-memrchr.c (memrchr): Likewise.
30385         * tests/test-mkdir.c (mkdir): Likewise.
30386         * tests/test-mkdirat.c (mkdirat): Likewise.
30387         * tests/test-mkfifo.c (mkfifo): Likewise.
30388         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
30389         * tests/test-mknod.c (mknod): Likewise.
30390         * tests/test-nanosleep.c (nanosleep): Likewise.
30391         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
30392         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
30393         Likewise.
30394         * tests/test-open.c (open): Likewise.
30395         * tests/test-openat.c (openat): Likewise.
30396         * tests/test-perror.c (perror): Likewise.
30397         * tests/test-pipe2.c (pipe2): Likewise.
30398         * tests/test-poll.c (poll): Likewise.
30399         * tests/test-popen.c (popen, pclose): Likewise.
30400         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
30401         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
30402         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
30403         (posix_spawn_file_actions_destroy)
30404         (posix_spawn_file_actions_addclose)
30405         (posix_spawn_file_actions_addopen)
30406         (posix_spawn_file_actions_adddup2): Likewise.
30407         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
30408         * tests/test-pread.c (pread): Likewise.
30409         * tests/test-printf-posix.c (printf): Likewise.
30410         * tests/test-pty.c (openpty, forkpty): Likewise.
30411         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
30412         (random_r): Likewise.
30413         * tests/test-rawmemchr.c (rawmemchr): Likewise.
30414         * tests/test-readlink.c (readlink): Likewise.
30415         * tests/test-remove.c (remove): Likewise.
30416         * tests/test-rename.c (rename): Likewise.
30417         * tests/test-renameat.c (renameat): Likewise.
30418         * tests/test-rmdir.c (rmdir): Likewise.
30419         * tests/test-round1.c (round): Likewise.
30420         * tests/test-roundf1.c (roundf): Likewise.
30421         * tests/test-roundl.c (roundl): Likewise.
30422         * tests/test-setenv.c (setenv): Likewise.
30423         * tests/test-sigaction.c (sigaction): Likewise.
30424         * tests/test-sleep.c (sleep): Likewise.
30425         * tests/test-snprintf.c (snprintf): Likewise.
30426         * tests/test-sprintf-posix.c (sprintf): Likewise.
30427         * tests/test-stat.c (stat): Likewise.
30428         * tests/test-stpncpy.c (stpncpy): Likewise.
30429         * tests/test-strcasestr.c (strcasestr): Likewise.
30430         * tests/test-strchrnul.c (strchrnul): Likewise.
30431         * tests/test-strerror.c (strerror): Likewise.
30432         * tests/test-strsignal.c (strsignal): Likewise.
30433         * tests/test-strstr.c (strstr): Likewise.
30434         * tests/test-strtod.c (strtod): Likewise.
30435         * tests/test-strverscmp.c (strverscmp): Likewise.
30436         * tests/test-symlink.c (symlink): Likewise.
30437         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
30438         * tests/test-times.c (times): Likewise.
30439         * tests/test-trunc1.c (trunc): Likewise.
30440         * tests/test-truncf1.c (truncf): Likewise.
30441         * tests/test-truncl.c (truncl): Likewise.
30442         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
30443         Likewise.
30444         * tests/test-uname.c (uname): Likewise.
30445         * tests/test-unlink.c (unlink): Likewise.
30446         * tests/test-unlinkat.c (unlinkat): Likewise.
30447         * tests/test-unsetenv.c (unsetenv): Likewise.
30448         * tests/test-usleep.c (usleep): Likewise.
30449         * tests/test-utimensat.c (utimensat): Likewise.
30450         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
30451         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
30452         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30453         * tests/test-vprintf-posix.c (vprintf): Likewise.
30454         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30455         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30456         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30457         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30458         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30459         * tests/test-wcwidth.c (wcwidth): Likewise.
30460
30461         build: pull in conditional headers during GNULIB_POSIXCHECK
30462         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30463         definitions from any conditionally-included headers.
30464         * lib/stdlib.in.h (includes): Likewise.
30465         * lib/unistd.in.h (includes): Likewise.
30466
30467 2009-12-24  Bruno Haible  <bruno@clisp.org>
30468
30469         * tests/test-argv-iter.c: Include header file being tested immediately
30470         after config.h.
30471         * tests/test-base64.c: Likewise.
30472         * tests/test-flock.c: Likewise.
30473         * tests/test-fsync.c: Likewise.
30474         * tests/test-getdate.c: Likewise.
30475         * tests/test-getndelim2.c: Likewise.
30476         * tests/test-isfinite.c: Likewise.
30477         * tests/test-isinf.c: Likewise.
30478         * tests/test-strerror.c: Likewise.
30479         * tests/test-strsignal.c: Likewise.
30480
30481 2009-12-23  Eric Blake  <ebb9@byu.net>
30482
30483         unistd: work around cygwin bug
30484         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
30485         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
30486         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30487
30488 2009-12-23  Bruno Haible  <bruno@clisp.org>
30489
30490         localename: More tests.
30491         * tests/test-localename.c (SIZEOF): New macro.
30492         (categories): New variable.
30493         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
30494         test_locale_name_default): Add test w.r.t. thread locale.
30495         (test_locale_name_thread): New function.
30496         (main): Invoke it.
30497
30498         localename: Make aware of thread locale.
30499         * lib/localename.h (gl_locale_name_thread): New declaration.
30500         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
30501         behaviour with respect to thread locale.
30502         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
30503         <langinfo.h>, glthread/lock.h.
30504         (SIZE_BITS): New macro.
30505         (string_hash): New function.
30506         (struct hash_node): New type.
30507         (HASH_TABLE_SIZE): New macro.
30508         (struniq_hash_table, struniq_lock): New variables.
30509         (struniq): New function.
30510         (gl_locale_name_thread): New function.
30511         (gl_locale_name): Invoke it.
30512         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
30513         * modules/localename (Depends-on): Add lock.
30514         Reported by Mike Gran <spk121@yahoo.com>.
30515
30516 2009-12-23  Eric Blake  <ebb9@byu.net>
30517
30518         va-args: new module
30519         * modules/va-args: New file.
30520         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
30521         * MODULES.html.sh (Core language properties): Mention it.
30522
30523         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30524         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30525         named alias for __attribute__((__unused__)).
30526         * lib/chown.c: Update client.
30527         * lib/fchmodat.c: Likewise.
30528         * lib/fts.c: Likewise.
30529         * lib/getdate.y: Likewise.
30530         * lib/getgroups.c: Likewise.
30531         * lib/getopt.c: Likewise.
30532         * lib/getugroups.c: Likewise.
30533         * lib/mkdir.c: Likewise.
30534         * lib/mkfifo.c: Likewise.
30535         * lib/mkfifoat.c: Likewise.
30536         * lib/mknod.c: Likewise.
30537         * lib/mknodat.c: Likewise.
30538         * lib/readlink.c: Likewise.
30539         * lib/se-context.in.h: Likewise.
30540         * lib/se-selinux.in.h: Likewise.
30541         * lib/sockets.c: Likewise.
30542         * lib/symlink.c: Likewise.
30543         * lib/symlinkat.c: Likewise.
30544         * lib/unicodeio.c: Likewise.
30545         * lib/unistr.h: Likewise.
30546         * tests/test-areadlink.c: Likewise.
30547         * tests/test-areadlinkat.c: Likewise.
30548         * tests/test-filenamecat.c: Likewise.
30549         * tests/test-fseeko.c: Likewise.
30550         * tests/test-ftello.c: Likewise.
30551         * tests/test-getdate.c: Likewise.
30552         * tests/test-getgroups.c: Likewise.
30553         * tests/test-gethostname.c: Likewise.
30554         * tests/test-quotearg.c: Likewise.
30555         * tests/test-version-etc.c: Likewise.
30556         * tests/test-xalloc-die.c: Likewise.
30557         * tests/test-xfprintf-posix.c: Likewise.
30558         * tests/test-xprintf-posix.c: Likewise.
30559         * tests/test-xvasprintf.c: Likewise.
30560
30561         tests: avoid compiler warnings
30562         * tests/test-fcntl.c (main): Delete unused parameters.
30563         * tests/test-freopen-safer.c (main): Likewise.
30564         * tests/test-xalloc-die.c (main): Mark unused parameters.
30565         * tests/test-fseeko.c (main): Likewise.
30566         * tests/test-ftello.c (main): Likewise.
30567         * tests/test-nanosleep.c (main): Avoid declaration warning.
30568         * tests/test-sleep.c (main): Likewise.
30569         * tests/test-unsetenv.c (main): Silence warning about string
30570         literal.
30571         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30572
30573 2009-12-23  Bruno Haible  <bruno@clisp.org>
30574
30575         * tests/test-localename.c (test_locale_name): New function, extracted
30576         from main. Also test mixed situations.
30577         (test_locale_name_posix, test_locale_name_environ,
30578         test_locale_name_default): New functions.
30579         (main): Invoke them all.
30580         * modules/localename-tests (configure.ac): Test for newlocale.
30581
30582 2009-12-23  Bruno Haible  <bruno@clisp.org>
30583
30584         unistd: Ensure getcwd gets declared before being overridden.
30585         * lib/unistd.in.h: Conditionally include <io.h>.
30586
30587 2009-12-22  Bruno Haible  <bruno@clisp.org>
30588
30589         wchar: Diagnose broken combination of glibc and gcc versions and flags.
30590         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
30591         (gl_WCHAR_H): Invoke it.
30592         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
30593         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
30594         Reported by Karl Berry <karl@freefriends.org>.
30595
30596 2009-12-22  Eric Blake  <ebb9@byu.net>
30597
30598         math, unistd: avoid redundant includes
30599         * lib/math.in.h (isnan): No need to re-include <math.h>.
30600         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
30601
30602         getsubopt: work around cygwin bug
30603         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
30604         avoid conflicting with system getsubopt.
30605         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
30606         bug.
30607
30608         getopt: synchronize from glibc
30609         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
30610         parameter order.  Adjust all callers.
30611         (_getopt_internal_r, main): Adjust quoting in error messages.
30612         Drop considerations for outdated POSIX 1003.2 error message.
30613         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
30614         callers.
30615         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
30616
30617         test-getopt: test stderr behavior
30618         * modules/getopt-posix-tests (Depends-on): Add dup2.
30619         * tests/test-getopt.c (ASSERT): Avoid stderr.
30620         (main): Move stderr to a temporary file.
30621         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
30622         Instead, add parameter to inform caller if output occurred.
30623         (test_getopt): Adjust all existing tests to expect silence, and
30624         add new tests of leading ":".
30625         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30626         glibc shortcomings with leading "-:" or "+:" in optstring.
30627         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30628         Likewise.
30629         * doc/posix-functions/getopt.texi (getopt): Likewise.
30630
30631         test-getopt: enhance test
30632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
30633         supports optind=0.
30634         * tests/test-getopt.c (OPTIND_MIN): Move...
30635         * tests/test-getopt.h (OPTIND_MIN): ...here.
30636         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
30637         Require that optind=0 works, since modern BSD supports it in
30638         addition to optreset, and since coreutils expects it.
30639         (test_getopt_long_only): New test.
30640         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30641         glibc shortcomings with 'W;', and enforcement of optind=0.
30642         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30643         Likewise.
30644
30645 2009-12-21  Bruno Haible  <bruno@clisp.org>
30646
30647         localename: Improvements for MacOS X and Cygwin.
30648         * lib/localename.h (gl_locale_name_environ): New declaration.
30649         * lib/localename.c (gl_locale_name_environ): New function, extracted from
30650         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
30651         (gl_locale_name_posix): Invoke it.
30652         (gl_locale_name_default): Add comments. Use Windows native API also on
30653         Cygwin.
30654
30655 2009-12-21  Bruno Haible  <bruno@clisp.org>
30656
30657         Update list of Win32 locale ids.
30658         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
30659         (LANG_SAMI): Renamed from LANG_SAAMI.
30660         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
30661         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
30662         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
30663         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
30664         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
30665         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
30666         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
30667         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
30668         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
30669         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
30670         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
30671         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
30672         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
30673         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
30674         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
30675         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
30676         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
30677         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
30678         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
30679         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
30680         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
30681         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
30682         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
30683         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
30684         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
30685         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
30686         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
30687         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
30688         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
30689         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
30690         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
30691         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
30692         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
30693         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
30694         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
30695         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
30696         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
30697         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
30698         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
30699         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
30700         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
30701         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
30702         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
30703         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
30704         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
30705         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
30706         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
30707         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
30708         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
30709         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
30710         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
30711         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
30712         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
30713         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
30714         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
30715         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
30716         Add more languages and countries for Sami, Sorbian. Add more countries
30717         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
30718         for Pashto. Change country for Syriac, Tswana.
30719
30720 2009-12-21  Eric Blake  <ebb9@byu.net>
30721
30722         test-utimens: avoid spurious failure
30723         * tests/test-chown.h (nap): Factor...
30724         * tests/nap.h: ...into new file.
30725         * tests/test-lchown.h (nap): Avoid duplication.
30726         * tests/test-utimens-common.h (nap): Use shared implementation,
30727         necessary on file systems with 1-second resolution.
30728         * modules/chown-tests (Files): Include new file.
30729         * modules/fdutimensat-tests (Files): Likewise.
30730         * modules/futimens-tests (Files): Likewise.
30731         * modules/lchown-tests (Files): Likewise.
30732         * modules/openat-tests (Files): Likewise.
30733         * modules/utimens-tests (Files): Likewise.
30734         * modules/utimensat-tests (Files): Likewise.
30735
30736 2009-12-19  Eric Blake  <ebb9@byu.net>
30737
30738         futimens, utimensat: work around Linux bug
30739         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
30740         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30741         * lib/utimensat.c (rpl_utimensat): Work around it.
30742         * lib/futimens.c (rpl_futimens): Adjust comment.
30743
30744         utimens: work around Linux ctime bug
30745         * lib/utimens.c (detect_ctime_bug): New helper function.
30746         (update_timespec): Differentiate between workaround needed for
30747         this bug vs. what is needed for systems that lack utimensat.
30748         (fdutimens, lutimens): Work around bug.
30749
30750         utimens: check for ctime update
30751         * tests/test-utimens-common.h (check_ctime): Define.
30752         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
30753         * tests/test-futimens.h (test_futimens): Likewise.
30754         * tests/test-lutimens.h (test_lutimens): Likewise.
30755         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30756         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30757
30758 2009-12-19  Bruno Haible  <bruno@clisp.org>
30759
30760         dprintf-posix: Check against memory leak fixed on 2009-12-15.
30761         * tests/test-dprintf-posix2.sh: New file.
30762         * tests/test-dprintf-posix2.c: New file.
30763         * modules/dprintf-posix-tests (Files): Add them.
30764         (configure.ac): Check for getrlimit and setrlimit.
30765         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30766
30767 2009-12-19  Bruno Haible  <bruno@clisp.org>
30768
30769         fprintf-posix: Check against memory leak fixed on 2009-12-15.
30770         * tests/test-fprintf-posix3.sh: New file.
30771         * tests/test-fprintf-posix3.c: New file.
30772         * modules/fprintf-posix-tests (Files): Add them.
30773         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30774
30775 2009-12-19  Eric Blake  <ebb9@byu.net>
30776
30777         dirfd: fix prototype
30778         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
30779         * lib/dirfd.c (dirfd): Likewise.
30780
30781         canonicalize: reduce memory usage
30782         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
30783         allocation to size.
30784         Reported by Solar Designer <solar@openwall.com>.
30785
30786 2009-12-19  Bruno Haible  <bruno@clisp.org>
30787
30788         New module attribute 'Applicability'.
30789         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
30790         * gnulib-tool: New option --extract-applicability.
30791         (func_usage): Document it.
30792         (sed_extract_prog): Recognize it.
30793         (func_get_applicability): New function.
30794         (func_import): Generalize handling of 'link-warning' module.
30795         * modules/link-warning (Applicability): New section.
30796         * modules/arg-nonnull (Applicability): New section.
30797         Repoted by Simon Josefsson <simon@josefsson.org>.
30798
30799 2009-12-19  Bruno Haible  <bruno@clisp.org>
30800
30801         fflush: tweak
30802         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
30803         * lib/fseeko.c (rpl_fseeko): Likewise.
30804
30805 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
30806
30807         * lib/gl_list.h: Fix typo in comment.
30808
30809 2009-12-16  Eric Blake  <ebb9@byu.net>
30810
30811         fcntl: use to simplify other modules
30812         * modules/cloexec (Depends-on): Add fcntl.
30813         * modules/fchdir (Depends-on): Likewise.
30814         * modules/fd-safer-flag (Depends-on): Likewise.
30815         * modules/unistd-safer (Depends-on): Likewise.
30816         * modules/dup3 (configure.ac): Set module indicator.
30817         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
30818         missing.
30819         * lib/fchdir.c (_gl_register_dup): Fix comment.
30820         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
30821         * lib/dup-safer.c (dup_safer): Likewise.
30822         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
30823         * lib/dup3.c (dup3): Likewise.
30824         * tests/test-fchdir.c (main): Enhance test.
30825         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
30826
30827         fcntl: port portions of fcntl to mingw
30828         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
30829         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
30830         replacement for mingw.
30831         * modules/fcntl (Description): Update.
30832         (Depends-on): Add dup2.
30833         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
30834         * modules/fcntl-h (Makefile.am): Substitute it.
30835         * lib/fcntl.in.h (fcntl): Update declaration.
30836         (F_DUPFD, F_GETFD): New macros, when needed.
30837         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30838         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
30839         * tests/test-fcntl.c (check_flags, main): Enhance test for items
30840         we now guarantee.
30841
30842         fcntl: work around cygwin bug in F_DUPFD
30843         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
30844         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
30845         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
30846         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
30847         * doc/posix-functions/fcntl.texi (fcntl): Document it.
30848
30849         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
30850         * modules/fcntl (Files): List new files.
30851         (configure.ac): Run a test.
30852         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
30853         * lib/fcntl.c (rpl_fcntl): Likewise.
30854         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
30855         (gl_FCNTL_H): Always replace fcntl.h.
30856         * modules/fcntl-h (Makefile.am): Substitute witnesses.
30857         * lib/fcntl.in.h (fcntl): Declare replacement.
30858         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
30859         needed, plus a witness.
30860         * doc/posix-functions/fcntl.texi (fcntl): Document this.
30861         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30862         * tests/test-fcntl.c: New file.
30863         * modules/fcntl-tests: Likewise.
30864
30865         binary-io: avoid potential compilation warning
30866         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
30867         directives.
30868
30869         fflush: avoid compilation error on NetBSD
30870         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
30871         between off_t and fpos_t, since the latter is sometimes a struct.
30872         * lib/fseeko.c (rpl_fseeko): Likewise.
30873         Reported by Alexander Nasonov <alnsn@yandex.ru>.
30874
30875 2009-12-15  Eric Blake  <ebb9@byu.net>
30876
30877         fcntl-h, stdio, sys_ioctl: fix declarations
30878         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
30879         function must not take arguments.
30880         * lib/sys_ioctl.in.h (ioctl): Likewise.
30881         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
30882         (open): Add a link warning.
30883
30884 2009-12-15  Jim Meyering  <meyering@redhat.com>
30885
30886         areadlink, areadlink-with-size: relax license to LGPLv2+
30887         * modules/areadlink (License): Relax to LGPLv2+.
30888         * modules/areadlink-with-size (License): Likewise.
30889
30890 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
30891             Bruno Haible  <bruno@clisp.org>
30892
30893         *printf: Fix memory leak.
30894         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
30895         * lib/vfprintf.c (vfprintf): Likewise.
30896         * lib/dprintf.c (dprintf): Likewise.
30897         * lib/vdprintf.c (vdprintf): Likewise.
30898
30899 2009-12-14  Eric Blake  <ebb9@byu.net>
30900
30901         accept4: adjust module dependencies
30902         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
30903
30904         utimens: one more try at avoiding compiler warning
30905         * lib/utimens.c (lutimens): Lower scope of result.
30906
30907 2009-12-13  Bruno Haible  <bruno@clisp.org>
30908
30909         Move the malloc checking from module 'list' to new module 'xlist'.
30910         * modules/xlist: New file.
30911         * lib/gl_xlist.h: New file.
30912         * lib/gl_xlist.c: New file.
30913         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
30914         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
30915         gl_list_add_last, gl_list_add_before, gl_list_add_after,
30916         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
30917         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
30918         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
30919         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
30920         gl_sortedlist_nx_add): New declarations.
30921         (struct gl_list_implementation): Rename and change methods accordingly.
30922         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
30923         (gl_list_nx_create): Renamed from gl_list_create.
30924         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30925         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30926         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30927         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30928         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30929         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30930         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30931         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30932         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
30933         gl_list_create_empty.
30934         (gl_list_nx_create): Renamed from gl_list_create.
30935         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30936         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30937         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30938         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30939         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30940         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30941         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30942         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30943         * lib/gl_array_list.c: Don't include xalloc.h.
30944         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
30945         NULL upon out-of-memory.
30946         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
30947         out-of-memory.
30948         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
30949         Change return type to 'int'.
30950         (gl_array_nx_set_at): Renamed from gl_array_set_at.
30951         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30952         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
30953         upon out-of-memory.
30954         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
30955         upon out-of-memory.
30956         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
30957         upon out-of-memory.
30958         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
30959         upon out-of-memory.
30960         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
30961         out-of-memory.
30962         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
30963         Update.
30964         (gl_array_list_implementation): Update.
30965         * lib/gl_carray_list.c: Don't include xalloc.h.
30966         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
30967         Return NULL upon out-of-memory.
30968         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
30969         out-of-memory.
30970         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
30971         Change return type to 'int'.
30972         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
30973         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30974         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
30975         upon out-of-memory.
30976         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
30977         upon out-of-memory.
30978         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
30979         out-of-memory.
30980         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
30981         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
30982         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
30983         Update.
30984         (gl_carray_list_implementation): Update.
30985         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
30986         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
30987         gl_linked_create_empty. Return NULL upon out-of-memory.
30988         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
30989         out-of-memory.
30990         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
30991         Change return type to 'int'. Return -1 upon out-of-memory.
30992         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
30993         out-of-memory.
30994         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
30995         upon out-of-memory.
30996         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
30997         upon out-of-memory.
30998         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
30999         NULL upon out-of-memory.
31000         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31001         upon out-of-memory.
31002         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31003         out-of-memory.
31004         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31005         Update.
31006         * lib/gl_linked_list.c: Don't include xalloc.h.
31007         (gl_linked_list_implementation): Update.
31008         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31009         (add_to_bucket): Change return type to 'int'.
31010         (gl_linkedhash_list_implementation): Update.
31011         * lib/gl_anytree_list1.h (free_subtree): New function.
31012         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31013         gl_tree_create_empty. Return NULL upon out-of-memory.
31014         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31015         Change return type to 'int'. Return -1 upon out-of-memory.
31016         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31017         out-of-memory.
31018         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31019         (gl_tree_remove_node): New function, moved here from
31020         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31021         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31022         Update.
31023         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31024         malloc, not xmalloc. Return NULL upon out-of-memory.
31025         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31026         out-of-memory.
31027         (gl_tree_remove_node_from_tree): New function, extracted from
31028         gl_tree_remove_node.
31029         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31030         upon out-of-memory.
31031         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31032         out-of-memory.
31033         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31034         upon out-of-memory.
31035         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31036         upon out-of-memory.
31037         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31038         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31039         not xmalloc. Return NULL upon out-of-memory.
31040         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31041         out-of-memory.
31042         (gl_tree_remove_node_from_tree): New function, extracted from
31043         gl_tree_remove_node.
31044         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31045         upon out-of-memory.
31046         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31047         out-of-memory.
31048         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31049         upon out-of-memory.
31050         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31051         upon out-of-memory.
31052         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31053         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31054         gl_anytree_list1.h before gl_anyavltree_list2.h.
31055         (gl_avltree_list_implementation): Update.
31056         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31057         gl_anytree_list1.h before gl_anyavltree_list2.h.
31058         (gl_rbtree_list_implementation): Update.
31059         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31060         Change return type to 'int'. Return -1 upon out-of-memory. Use
31061         __builtin_expect.
31062         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31063         (gl_avltreehash_list_implementation): Update.
31064         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31065         (gl_rbtreehash_list_implementation): Update.
31066         * modules/array-list (Depends-on): Remove xalloc.
31067         * modules/carray-list (Depends-on): Likewise.
31068         * modules/linked-list (Depends-on): Likewise.
31069         * modules/linkedhash-list (Depends-on): Likewise.
31070         * modules/avltree-list (Depends-on): Likewise.
31071         * modules/rbtree-list (Depends-on): Likewise.
31072         * modules/avltreehash-list (Depends-on): Likewise.
31073         * modules/rbtreehash-list (Depends-on): Likewise.
31074
31075         * modules/xsublist: New file.
31076         * lib/gl_xsublist.h: New file.
31077         * lib/gl_xsublist.c: New file.
31078         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31079         (gl_sublist_nx_create): New declaration.
31080         * lib/gl_sublist.c: Don't include xalloc.h.
31081         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31082         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31083         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31084         Change return type to 'int'. Return -1 upon out-of-memory.
31085         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31086         upon out-of-memory.
31087         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31088         NULL upon out-of-memory.
31089         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31090         upon out-of-memory.
31091         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31092         NULL upon out-of-memory.
31093         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31094         NULL upon out-of-memory.
31095         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31096         upon out-of-memory.
31097         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31098         (gl_sublist_list_implementation): Update.
31099         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31100         upon out-of-memory.
31101         * modules/sublist (Depends-on): Remove xalloc.
31102
31103         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31104         * tests/test-carray_list.c: Likewise.
31105         * tests/test-linked_list.c: Likewise.
31106         * tests/test-linkedhash_list.c: Likewise.
31107         * tests/test-avltree_list.c: Likewise.
31108         * tests/test-rbtree_list.c: Likewise.
31109         * tests/test-avltreehash_list.c: Likewise.
31110         * tests/test-rbtreehash_list.c: Likewise.
31111         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31112         * modules/carray-list-tests (Makefile.am): Likewise.
31113         * modules/linked-list-tests (Makefile.am): Likewise.
31114         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31115         * modules/avltree-list-tests (Makefile.am): Likewise.
31116         * modules/rbtree-list-tests (Makefile.am): Likewise.
31117         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31118         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31119
31120         * NEWS: Mention the changes.
31121
31122         * lib/clean-temp.c: Include gl_xlist.h.
31123         * modules/clean-temp (Depends-on): Add xlist.
31124
31125         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31126         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31127
31128         * tests/test-array_oset.c: Include gl_xlist.h.
31129         * modules/array-oset-tests (Depends-on): Add xlist.
31130
31131         Reported by José E. Marchesi <jemarch@gnu.org>.
31132
31133 2009-12-13  Bruno Haible  <bruno@clisp.org>
31134
31135         Move the malloc checking from module 'oset' to new module 'xoset'.
31136         * modules/xoset: New file.
31137         * lib/gl_xoset.h: New file.
31138         * lib/gl_xoset.c: New file.
31139         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31140         declarations.
31141         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31142         (struct gl_oset_implementation): Rename and change methods accordingly.
31143         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31144         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31145         'int'. Mark as __warn_unused_result__.
31146         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31147         gl_oset_create_empty.
31148         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31149         'int'.
31150         * lib/gl_array_oset.c: Don't include xalloc.h.
31151         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31152         malloc, not xmalloc.
31153         (grow): Change return type to 'int'. Don't call xalloc_die.
31154         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31155         to 'int'.
31156         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31157         'int'.
31158         (gl_array_oset_implementation): Update.
31159         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31160         gl_tree_create_empty.
31161         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31162         'int'.
31163         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31164         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31165         xmalloc.
31166         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31167         not xmalloc.
31168         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31169         xmalloc.
31170         (gl_avltree_oset_implementation): Update.
31171         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31172         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31173         xmalloc.
31174         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31175         not xmalloc.
31176         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31177         xmalloc.
31178         (gl_rbtree_oset_implementation): Update.
31179         * modules/array-oset (Depends-on): Remove xalloc.
31180         * modules/avltree-oset (Depends-on): Likewise.
31181         * modules/rbtree-oset (Depends-on): Likewise.
31182         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31183         * tests/test-avltree_oset.c: Likewise.
31184         * tests/test-rbtree_oset.c: Likewise.
31185         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31186         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31187         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31188         * NEWS: Mention the change.
31189
31190 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31191
31192         maint.mk: allow a project to override release-prep commands
31193         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31194         commands into a new rule.
31195         (release-prep): New rule.
31196         (release-prep-hook): New overridable variable.
31197
31198 2009-12-13  Bruno Haible  <bruno@clisp.org>
31199
31200         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31201
31202 2009-12-13  Jim Meyering  <meyering@redhat.com>
31203
31204         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31205         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31206
31207 2009-12-12  Bruno Haible  <bruno@clisp.org>
31208
31209         duplocale: Tweak.
31210         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31211
31212 2009-12-12  Karl Berry  <karl@gnu.org>
31213
31214         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31215
31216 2009-12-12  Bruno Haible  <bruno@clisp.org>
31217
31218         * m4/po.m4: Undo incorrect untabification.
31219
31220 2009-12-12  Bruno Haible  <bruno@clisp.org>
31221
31222         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31223         * modules/c-strtod (Depends-on): Add locale.
31224         * modules/c-strtold (Depends-on): Likewise.
31225
31226 2009-12-12  Bruno Haible  <bruno@clisp.org>
31227
31228         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31229
31230 2009-12-11  Eric Blake  <ebb9@byu.net>
31231
31232         setenv: relax requirement in light of POSIX ruling
31233         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31234         not NULL.
31235         * tests/test-setenv.c (main): Relax test.
31236         * tests/test-unsetenv.c (main): Likewise.
31237         * doc/posix-functions/setenv.texi (setenv): Document this.
31238         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31239
31240 2009-12-11  Bruno Haible  <bruno@clisp.org>
31241
31242         New module 'fd-safer-flag'.
31243         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31244         * lib/dup-safer.c (dup_safer_flag): Remove function.
31245         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31246         * lib/fd-safer.c (fd_safer_flag): Remove function.
31247         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31248         * modules/cloexec (configure.ac): Drop indicator macro.
31249         * modules/fd-safer-flag: New file.
31250         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31251         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31252         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31253
31254 2009-12-11  Bruno Haible  <bruno@clisp.org>
31255
31256         Tests for module 'nl_langinfo'.
31257         * modules/nl_langinfo-tests: New file.
31258         * tests/test-nl_langinfo.sh: New file.
31259         * tests/test-nl_langinfo.c: New file.
31260
31261         New module 'nl_langinfo'.
31262         * lib/nl_langinfo.c: New file.
31263         * m4/nl_langinfo.m4: New file.
31264         * modules/nl_langinfo: New file.
31265         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31266
31267 2009-12-11  Bruno Haible  <bruno@clisp.org>
31268
31269         Tests for module 'langinfo'.
31270         * modules/langinfo-tests: New file.
31271         * tests/test-langinfo.c: New file.
31272
31273         New module 'langinfo'.
31274         * lib/langinfo.in.h: New file.
31275         * m4/langinfo_h.m4: New file.
31276         * modules/langinfo: New file.
31277         * doc/posix-headers/langinfo.texi: Mention the new module.
31278
31279 2009-12-11  Bruno Haible  <bruno@clisp.org>
31280
31281         * lib/config.charset: Untabify.
31282
31283 2009-12-11  Bruno Haible  <bruno@clisp.org>
31284
31285         * modules/unistd-safer (configure.ac): Drop indicator macro.
31286
31287 2009-12-11  Bruno Haible  <bruno@clisp.org>
31288
31289         Move pipe2-safer code to its own file.
31290         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31291         * lib/pipe-safer.c (pipe2_safer): Remove function.
31292         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31293         (Makefile.am): Add it to lib_SOURCES.
31294
31295 2009-12-10  Bruno Haible  <bruno@clisp.org>
31296
31297         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31298
31299 2009-12-10  Bruno Haible  <bruno@clisp.org>
31300
31301         Declare which arguments expect non-NULL values, for GCC and clang.
31302         * build-aux/arg-nonnull.h: New file.
31303         * modules/arg-nonnull: New file.
31304         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31305         (inet_ntop, inet_pton): Use it.
31306         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31307         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31308         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31309         (open, openat): Use it.
31310         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31311         (fnmatch): Use it.
31312         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31313         (getopt, getopt_long, getopt_long_only): Use it.
31314         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31315         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31316         Use it.
31317         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31318         (iconv_open): Use it.
31319         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31320         (strtoimax, strtoumax): Use it.
31321         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31322         (duplocale): Use it.
31323         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31324         (frexp, frexpl): Use it.
31325         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31326         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31327         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31328         (tsearch, tfind, tdelete, twalk): Use it.
31329         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31330         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31331         sigpending): Use it.
31332         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31333         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31334         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31335         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31336         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31337         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31338         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31339         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31340         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31341         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31342         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31343         Use it.
31344         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31345         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31346         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31347         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31348         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31349         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31350         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31351         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31352         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31353         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
31354         strtoull, unsetenv): Use it.
31355         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
31356         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31357         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31358         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31359         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31360         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
31361         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
31362         (strcasecmp, strncasecmp): Use it.
31363         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
31364         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
31365         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
31366         rpl_setsockopt): Use it.
31367         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
31368         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
31369         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
31370         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
31371         (gettimeofday): Use it.
31372         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
31373         (times): Use it.
31374         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
31375         (uname): Use it.
31376         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
31377         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
31378         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
31379         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
31380         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
31381         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
31382         unlinkat, write): Use it.
31383         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
31384         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
31385         * lib/argv-iter.h: Include arg-nonnull.h.
31386         (_ATTRIBUTE_NONNULL_): Remove macro.
31387         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
31388         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
31389         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
31390         optimization.
31391         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
31392         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
31393         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
31394         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
31395         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
31396         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
31397         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
31398         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
31399         * modules/arpa_inet (Depends-on): Add arg-nonnull.
31400         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
31401         * modules/dirent (Depends-on): Add arg-nonnull.
31402         (Makefile.am): Insert arg-nonnull.h into dirent.h.
31403         * modules/fcntl-h (Depends-on): Add arg-nonnull.
31404         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
31405         * modules/fnmatch (Depends-on): Add arg-nonnull.
31406         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
31407         * modules/getopt-posix (Depends-on): Add arg-nonnull.
31408         (Makefile.am): Insert arg-nonnull.h into getopt.h.
31409         * modules/glob (Depends-on): Add arg-nonnull.
31410         (Makefile.am): Insert arg-nonnull.h into glob.h.
31411         * modules/iconv_open (Depends-on): Add arg-nonnull.
31412         (Makefile.am): Insert arg-nonnull.h into iconv.h.
31413         * modules/inttypes (Depends-on): Add arg-nonnull.
31414         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
31415         * modules/locale (Depends-on): Add arg-nonnull.
31416         (Makefile.am): Insert arg-nonnull.h into locale.h.
31417         * modules/math (Depends-on): Add arg-nonnull.
31418         (Makefile.am): Insert arg-nonnull.h into math.h.
31419         * modules/netdb (Depends-on): Add arg-nonnull.
31420         (Makefile.am): Insert arg-nonnull.h into netdb.h.
31421         * modules/search (Depends-on): Add arg-nonnull.
31422         (Makefile.am): Insert arg-nonnull.h into search.h.
31423         * modules/signal (Depends-on): Add arg-nonnull.
31424         (Makefile.am): Insert arg-nonnull.h into signal.h.
31425         * modules/spawn (Depends-on): Add arg-nonnull.
31426         (Makefile.am): Insert arg-nonnull.h into spawn.h.
31427         * modules/stdio (Depends-on): Add arg-nonnull.
31428         (Makefile.am): Insert arg-nonnull.h into stdio.h.
31429         * modules/stdlib (Depends-on): Add arg-nonnull.
31430         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
31431         * modules/string (Depends-on): Add arg-nonnull.
31432         (Makefile.am): Insert arg-nonnull.h into string.h.
31433         * modules/strings (Depends-on): Add arg-nonnull.
31434         (Makefile.am): Insert arg-nonnull.h into strings.h.
31435         * modules/sys_socket (Depends-on): Add arg-nonnull.
31436         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
31437         * modules/sys_stat (Depends-on): Add arg-nonnull.
31438         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
31439         * modules/sys_time (Depends-on): Add arg-nonnull.
31440         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
31441         * modules/sys_times (Depends-on): Add arg-nonnull.
31442         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
31443         * modules/sys_utsname (Depends-on): Add arg-nonnull.
31444         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
31445         * modules/time (Depends-on): Add arg-nonnull.
31446         (Makefile.am): Insert arg-nonnull.h into time.h.
31447         * modules/unistd (Depends-on): Add arg-nonnull.
31448         (Makefile.am): Insert arg-nonnull.h into unistd.h.
31449         * modules/wchar (Depends-on): Add arg-nonnull.
31450         (Makefile.am): Insert arg-nonnull.h into wchar.h.
31451         * modules/argv-iter (Depends-on): Add arg-nonnull.
31452         * tests/test-canonicalize.c (null_ptr): New function.
31453         (main): Use it.
31454         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31455         (main): Use it.
31456         * tests/test-memmem.c (null_ptr): New function.
31457         (main): Use it.
31458         Reported by Jim Meyering.
31459
31460 2009-12-10  Bruno Haible  <bruno@clisp.org>
31461
31462         Use spaces for indentation, not tabs.
31463         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31464         * m4/*.m4: Untabify.
31465         * build-aux/*.h: Untabify.
31466         * tests/**/*.[hc]: Untabify.
31467         * README: New section "Indent with spaces, not TABs", based on
31468         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31469         * NEWS: Mention the change.
31470
31471 2009-12-10  Bruno Haible  <bruno@clisp.org>
31472
31473         pty test: Fix link error.
31474         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31475         test_pty_LDADD.
31476
31477 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31478
31479         * modules/pty: New file.
31480         * modules/pty-tests: New file.
31481         * m4/pty.m4: New file.
31482         * tests/test-pty.c: New file.
31483         * doc/glibc-headers/pty.texi: Modified.
31484         * doc/glibc-functions/forkpty.texi: Modified.
31485         * doc/glibc-functions/openpty.texi: Modified.
31486
31487 2009-12-10  Bruno Haible  <bruno@clisp.org>
31488
31489         Avoid syntax error in C++ mode.
31490         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
31491
31492 2009-12-10  Bruno Haible  <bruno@clisp.org>
31493
31494         Use sed with option -e.
31495         * gnulib-tool (func_version, func_emit_copyright_notice,
31496         func_emit_initmacro_end, func_import, func_create_testdir): Pass
31497         option -e to sed.
31498         * modules/link-warning (Makefile.am): Likewise.
31499
31500 2009-12-10  Jim Meyering  <meyering@redhat.com>
31501
31502         mgetgroups: do not write bytes beyond end of malloc'd buffer
31503         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
31504         username, we call getgroups with a one-element-shorter buffer,
31505         but still told it the length was original, max_n_groups.
31506
31507 2009-12-09  Eric Blake  <ebb9@byu.net>
31508
31509         cloexec: relax license
31510         * modules/cloexec (Maintainer): Add myself.
31511         (License): Use LGPL, not GPL.
31512
31513         link-warning: optimize generation
31514         * modules/link-warning (Makefile.am): Reduce process usage.
31515
31516 2009-12-09  Bruno Haible  <bruno@clisp.org>
31517
31518         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
31519         workaround was added on 2009-11-17.
31520
31521 2009-12-09  Jim Meyering  <meyering@redhat.com>
31522             Bruno Haible  <bruno@clisp.org>
31523
31524         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31525         * modules/link-warning (Makefile.am): Make the comment-removing sed
31526         command more robust in the face of bootstrap-prepended comment lines.
31527
31528 2009-12-09  Bruno Haible  <bruno@clisp.org>
31529
31530         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
31531         most one group.
31532
31533 2009-12-09  Simon Josefsson <simon@josefsson.org>
31534             Bruno Haible  <bruno@clisp.org>
31535
31536         * build-aux/link-warning.h: Add copyright notice.
31537         * modules/link-warning (Makefile.am): Generate link-warning.h from
31538         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
31539         * NEWS: Mention change in link-warning module.
31540         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
31541         * modules/dirent (Makefile.am): Add dependency to dirent.h.
31542         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
31543         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
31544         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
31545         * modules/math (Makefile.am): Add dependency to math.h.
31546         * modules/search (Makefile.am): Add dependency to search.h.
31547         * modules/signal (Makefile.am): Add dependency to signal.h.
31548         * modules/spawn (Makefile.am): Add dependency to spawn.h.
31549         * modules/stdio (Makefile.am): Add dependency to stdio.h.
31550         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
31551         * modules/string (Makefile.am): Add dependency to string.h.
31552         * modules/strings (Makefile.am): Add dependency to strings.h.
31553         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
31554         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
31555         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
31556         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
31557         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
31558         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
31559         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
31560         * modules/unistd (Makefile.am): Add dependency to unistd.h.
31561         * modules/wchar (Makefile.am): Add dependency to wchar.h.
31562
31563 2009-12-09  Bruno Haible  <bruno@clisp.org>
31564
31565         fchdir: Optimize away rpl_fstat when possible.
31566         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
31567         REPLACE_OPEN_DIRECTORY.
31568         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
31569
31570 2009-12-09  Bruno Haible  <bruno@clisp.org>
31571
31572         * lib/fchdir.c: Update comment.
31573
31574 2009-12-09  Bruno Haible  <bruno@clisp.org>
31575
31576         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
31577
31578 2009-12-08  Eric Blake  <ebb9@byu.net>
31579
31580         fchdir: avoid memory leak on re-registration.
31581         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
31582
31583 2009-12-08  Jim Meyering  <meyering@redhat.com>
31584
31585         init.sh: avoid Solaris 10 /bin/sh portability problem
31586         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
31587         sourced script:
31588           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
31589           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
31590           bar
31591         tests/init.sh relied on that, accepting a --set-path=DIR argument,
31592         and two tests used that idiom.
31593         * tests/init.sh: Update suggested usage comments.
31594         (path_prepend_): New function, to be used in place
31595         of the --src-path=DIR option.
31596         (setup_): Move PATH-prepending code into path_prepend_.
31597         * tests/test-pread.sh: Adapt to new usage.
31598         * tests/test-xalloc-die.sh: Likewise.
31599
31600 2009-12-08  Simon Josefsson  <simon@josefsson.org>
31601
31602         * doc/gnulib.texi (Glibc pty.h): Add.
31603         * doc/glibc-functions/forkpty.texi: Add.
31604         * doc/glibc-functions/openpty.texi: Add.
31605         Suggested by Bruno Haible.
31606
31607 2009-12-08  Eric Blake  <ebb9@byu.net>
31608
31609         fchdir: fix logic bugs
31610         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
31611         * tests/test-fchdir.c (main): Enhance test.
31612         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
31613         is in use.
31614
31615         dup2: fix logic bugs
31616         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
31617         REPLACE_DUP2 to decide when rpl_dup2 is needed.
31618         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
31619         exists.
31620         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
31621
31622 2009-12-07  Eric Blake  <ebb9@byu.net>
31623
31624         unlink: fix m4 detection
31625         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
31626
31627         unistd-safer: add unit test
31628         * modules/unistd-safer-tests: New file.
31629         * tests/test-dup-safer.c: Likewise.
31630         * tests/test-cloexec.c (setmode): Avoid compiler warning.
31631         * tests/test-dup2.c (setmode): Likewise.
31632         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
31633
31634         cloexec: preserve text vs. binary across dup_cloexec
31635         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
31636         mode.
31637         * modules/dup2-tests (Depends-on): Add binary-io.
31638         * modules/cloexec-tests (Depends-on): Likewise.
31639         * tests/test-dup2.c (setmode, is_mode): New helpers.
31640         (main): Add tests that translation mode is preserved.
31641         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
31642         Reported by Bruno Haible.
31643
31644         mgetgroups: reduce duplicate listings
31645         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
31646         resulting array.
31647         * tests/test-chown.h (test_chown): Simplify client.
31648         * tests/test-lchown.h (test_lchown): Likewise.
31649
31650 2009-12-06  Bruno Haible  <bruno@clisp.org>
31651
31652         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
31653         value.
31654
31655 2009-12-06  Bruno Haible  <bruno@clisp.org>
31656
31657         * lib/progname.c: Include stdio.h, stdlib.h.
31658         (set_program_name): Reject a NULL argument.
31659
31660 2009-12-05  Eric Blake  <ebb9@byu.net>
31661
31662         pipe2-safer: new module
31663         * modules/pipe2-safer: New file.
31664         * lib/unistd-safer.h (pipe2_safer): New prototype.
31665         * lib/unistd--.h (pipe2): New wrapper.
31666         * lib/pipe-safer.c (pipe2_safer): New function.
31667         * modules/pipe (Depends-on): Add pipe2-safer.
31668         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
31669
31670         stdlib-safer: preserve cloexec flag for mkostemp[s]
31671         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
31672         fd_safer_flag.
31673
31674         unistd-safer: allow preservation of cloexec status via flag
31675         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
31676         prototypes.
31677         * lib/dup-safer.c (dup_safer_flag): New function.
31678         * lib/fd-safer.c (fd_safer_flag): Likewise.
31679         * modules/cloexec (configure.ac): Set witness.
31680
31681         test-dup2: enhance test
31682         * modules/dup2-tests (Depends-on): Add cloexec.
31683         * tests/test-dup2.c (main): Enhance test.
31684
31685         cloexec: add dup_cloexec
31686         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
31687         header and comments.
31688         * lib/cloexec.c (set_cloexec_flag): Add comments.
31689         (dup_cloexec): New function, with mingw implementation borrowed
31690         from...
31691         * lib/w32spawn.h (dup_noinherit): ...here.
31692         * modules/execute (Depends-on): Add cloexec.
31693         * modules/pipe (Depends-on): Likewise.
31694         * modules/cloexec (Depends-on): Add dup2.
31695         * modules/cloexec-tests (Files): New file.
31696         * tests/test-cloexec.c: Likewise.
31697
31698         test-xalloc-die: fix test for mingw
31699         * modules/xalloc-die-tests (Files): Add tests/init.sh.
31700         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
31701         directory and .exe suffix off argv[0] output.
31702
31703         test-fseeko: fix test for mingw
31704         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
31705         than undefining fseek, so test will pass on mingw.
31706
31707 2009-12-05  Bruno Haible  <bruno@clisp.org>
31708
31709         * lib/progname.h (set_program_name): Clarify specification.
31710         * lib/progname.c (set_program_name): Likewise.
31711         Reported by Jim Meyering.
31712
31713 2009-12-05  Jim Meyering  <meyering@redhat.com>
31714
31715         maint.mk: backslash-escape parens in default regexp
31716         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
31717         backslash-escape the literal parentheses.
31718
31719         maint.mk: news-date-check: use grep -E
31720         * top/maint.mk (today): Define a Make variable, not a...
31721         (news-date-check): ...shell variable.
31722         (news-date-regexp): Use the Make variable.
31723         Use grep's -E option.  Change the failing diagnostic to mention
31724         the variable, $(news-date-regexp).
31725
31726 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
31727
31728         maintainer-makefile: allow customization of NEWS entry format
31729         * top/maint.mk (news-date-regexp): New overridable variable.
31730         (news-date-check): Use it.
31731
31732 2009-12-04  Eric Blake  <ebb9@byu.net>
31733
31734         mgetgroups: add xgetgroups, and avoid ENOSYS failures
31735         * lib/mgetgroups.h (xgetgroups): New prototype.
31736         * lib/mgetgroups.c (xgetgroups): New wrapper.
31737         (mgetgroups): Handle ENOSYS.
31738         * modules/mgetgroups (Depends-on): Add realloc.
31739         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
31740
31741         mgetgroups: avoid argument promotion issues with -1
31742         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
31743         for invalid gid_t.
31744         * tests/test-chown.h (getegid, test_chown): Likewise.
31745         * tests/test-lchown.h (getegid, test_lchown): Likewise.
31746
31747 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
31748
31749         exclude: Fix header file problems.
31750         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
31751
31752 2009-12-01  Jim Meyering  <meyering@redhat.com>
31753
31754         fts: fts_open: do not let an empty string cause immediate failure
31755         This is required in support of GNU rm, for which the command
31756         "rm A '' B" must process and remove both A and B, in spite of
31757         the empty string argument.
31758         * lib/fts.c (fts_open): Do not let the presence of an empty string
31759         cause fts_open to fail immediately.  Most fts-using tools must be
31760         able to process all arguments, in order, and can be expected to
31761         diagnose such arguments themselves.
31762
31763 2009-11-30  Eric Blake  <ebb9@byu.net>
31764
31765         utimens: fix compilation error
31766         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
31767         Declare variable at right scope.
31768
31769 2009-11-29  Jim Meyering  <meyering@redhat.com>
31770
31771         bootstrap: handle perl-5.11's changed --version output
31772         * build-aux/bootstrap (get_version): Handle perl separately,
31773         since perl-5.11's --version output is different.
31774
31775 2009-11-28  Jim Meyering  <meyering@redhat.com>
31776
31777         userspec: depend on the inttostr module, too
31778         * modules/userspec (Depends-on): Add inttostr.
31779
31780         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
31781         * lib/userspec.c (parse_with_separator): Do not accept a user ID
31782         number of MAXUID when it evaluates to (uid_t) -1.
31783         Likewise for group ID.  Reported by Matt McCutchen in
31784         <http://savannah.gnu.org/bugs/?28113>
31785
31786         userspec: reformat to use spaces, not TABs
31787         * lib/userspec.c: Expand TABs to spaces.
31788         Add Emacs' "indent-tabs-mode: nil" hint.
31789
31790 2009-11-27  Eric Blake  <ebb9@byu.net>
31791
31792         getopt-gnu: flush out another BSD bug
31793         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
31794         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
31795         flush out BSD bug.
31796         * tests/test-getopt.h (test_getopt): End lists with NULL.
31797         * tests/test-getopt_long.h (test_getopt_long): Likewise.
31798         (test_getopt_long_posix): Enhance test.
31799         * modules/getopt-posix-tests (Depends-on): Add stdbool.
31800         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
31801         getopt-gnu.
31802         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31803         Likewise.
31804
31805 2009-11-27  Simon Josefsson  <simon@josefsson.org>
31806
31807         * modules/idpriv-droptemp-tests (Notice): Fix text.
31808
31809 2009-11-27  Jim Meyering  <meyering@redhat.com>
31810
31811         test-xalloc-die: avoid spurious failure due to libtool argv difference
31812         In a libtool-enabled project, this test would fail due to a difference
31813         in the emitted program name, e.g.,
31814         -test-xalloc-die: memory exhausted
31815         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
31816         Use program to avoid that.
31817         * modules/xalloc-die-tests (Depends-on): Add progname.
31818         * tests/test-xalloc-die.c: Include progname.h".
31819         (program_name): Remove decl.
31820         (main): Call set_program_name.
31821         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
31822
31823 2009-11-26  Richard Jones  <rjones@redhat.com>
31824
31825         w32sock: leave win32 error in place.
31826         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
31827
31828 2009-11-26  Eric Blake  <ebb9@byu.net>
31829
31830         init.sh: suggest to use skip_ and fail_ functions in comments
31831         * tests/init.sh: Add a sentence.
31832
31833 2009-11-25  Bruno Haible  <bruno@clisp.org>
31834
31835         init.sh: add documentation in comments
31836         * tests/init.sh: Add some developer and user documentation.
31837
31838 2009-11-26  Jim Meyering  <meyering@redhat.com>
31839
31840         init.sh: accommodate even those who specify bogus srcdir manually
31841         * tests/init.sh: Normally, srcdir is guaranteed by automake and
31842         configure-time tests to be sanitized, so that there is no need to
31843         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
31844         (with no double quotes) suffices.  However, since tests may be
31845         invoked manually, and since you may explicitly set srcdir to the
31846         name of a directory containing spaces, do quote its uses here.
31847         * tests/test-pread.sh: Likewise.
31848         Suggested by Bruno Haible.
31849
31850         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
31851         * tests/test-pread.sh: Write no data into the pipe, because
31852         test-pread actually reads none.  This avoids a diagnostic,
31853         "bash: echo: write error: Broken pipe", that arises in the unusual
31854         event something is ignoring SIGPIPE, and might be interpreted
31855         as some sort of failure.  Reported by Bruno Haible.
31856
31857 2009-11-25  Jim Meyering  <meyering@redhat.com>
31858
31859         test-pread: cover failure with ESPIPE and EINVAL
31860         * tests/test-pread.c (main): Test for failure, too.
31861         * tests/test-pread.sh: Invoke with stdin on a pipe.
31862         Suggested by Eric Blake.
31863
31864         pread: improvement and fix
31865         * modules/pread (Depends-on): Depend on lseek, for portability to
31866         e.g., mingw.  Suggested by Eric Blake.
31867         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
31868
31869         unistd.in.h: correct declaration of pread
31870         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
31871         Reported by Richard W.M. Jones.
31872
31873         test-pread.sh: distribute the test script
31874         * modules/pread-tests (Files): Include test-pread.sh.
31875
31876         test-pread.sh: clean up
31877         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
31878         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
31879         That is unnecessary, since it's always ".".
31880         Suggestion from Eric Blake.
31881
31882         test-pread.sh: make executable
31883         * tests/test-pread.sh: Set executable bit.
31884         Reported by Eric Blake.
31885
31886         correct typo in test-pread.sh
31887         * tests/test-pread.sh: Add #! line.
31888
31889         test pread
31890         * tests/test-pread.c: New file.
31891         * tests/test-pread.sh: Likewise.
31892         * modules/pread-tests: Likewise.
31893
31894         pread: new module
31895         * modules/pread: New file.
31896         * lib/unistd.in.h (pread): Define/declare.
31897         * lib/pread.c (pread): New file.
31898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
31899         * modules/unistd (Makefile.am): Substitute witnesses.
31900         * doc/posix-functions/pread.texi (pread): Update.
31901         * MODULES.html.sh: Add pread.
31902
31903 2009-11-25  Jim Meyering  <meyering@redhat.com>
31904
31905         tests/init.sh: new file to be used via most *.sh tests
31906         * tests/init.sh: New file.
31907
31908 2009-11-25  Eric Blake  <ebb9@byu.net>
31909
31910         utimens: work around older Linux failure with symlinks
31911         * lib/utimens.c (lutimensat_works_really): New variable.
31912         (fdutimens, lutimens): Use it to manage kernels that support
31913         nanosecond times on files, but not on symlinks.
31914         Reported by OndÅ™ej Vašík.
31915
31916         utimes: fix configure grammar
31917         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
31918
31919 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
31920
31921         regex: Fix fastmap for multibyte character ranges.
31922         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
31923         characters when a multibyte character range is included.
31924
31925 2009-11-22  Andy Wingo  <wingo@pobox.com>
31926
31927         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
31928         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
31929
31930 2009-11-24  Bruno Haible  <bruno@clisp.org>
31931
31932         doc: Most *_l functions exist in MacOS X 10.5.
31933         * doc/posix-functions/duplocale.texi: Update platforms list.
31934         * doc/posix-functions/freelocale.texi: Likewise.
31935         * doc/posix-functions/newlocale.texi: Likewise.
31936         * doc/posix-functions/uselocale.texi: Likewise.
31937         * doc/posix-functions/isalnum_l.texi: Likewise.
31938         * doc/posix-functions/isalpha_l.texi: Likewise.
31939         * doc/posix-functions/isblank_l.texi: Likewise.
31940         * doc/posix-functions/iscntrl_l.texi: Likewise.
31941         * doc/posix-functions/isdigit_l.texi: Likewise.
31942         * doc/posix-functions/isgraph_l.texi: Likewise.
31943         * doc/posix-functions/islower_l.texi: Likewise.
31944         * doc/posix-functions/isprint_l.texi: Likewise.
31945         * doc/posix-functions/ispunct_l.texi: Likewise.
31946         * doc/posix-functions/isspace_l.texi: Likewise.
31947         * doc/posix-functions/isupper_l.texi: Likewise.
31948         * doc/posix-functions/iswalnum_l.texi: Likewise.
31949         * doc/posix-functions/iswalpha_l.texi: Likewise.
31950         * doc/posix-functions/iswblank_l.texi: Likewise.
31951         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31952         * doc/posix-functions/iswctype_l.texi: Likewise.
31953         * doc/posix-functions/iswdigit_l.texi: Likewise.
31954         * doc/posix-functions/iswgraph_l.texi: Likewise.
31955         * doc/posix-functions/iswlower_l.texi: Likewise.
31956         * doc/posix-functions/iswprint_l.texi: Likewise.
31957         * doc/posix-functions/iswpunct_l.texi: Likewise.
31958         * doc/posix-functions/iswspace_l.texi: Likewise.
31959         * doc/posix-functions/iswupper_l.texi: Likewise.
31960         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31961         * doc/posix-functions/isxdigit_l.texi: Likewise.
31962         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
31963         * doc/posix-functions/strcasecmp_l.texi: Likewise.
31964         * doc/posix-functions/strcoll_l.texi: Likewise.
31965         * doc/posix-functions/strfmon_l.texi: Likewise.
31966         * doc/posix-functions/strftime_l.texi: Likewise.
31967         * doc/posix-functions/strncasecmp_l.texi: Likewise.
31968         * doc/posix-functions/strxfrm_l.texi: Likewise.
31969         * doc/posix-functions/tolower_l.texi: Likewise.
31970         * doc/posix-functions/toupper_l.texi: Likewise.
31971         * doc/posix-functions/towctrans_l.texi: Likewise.
31972         * doc/posix-functions/towlower_l.texi: Likewise.
31973         * doc/posix-functions/towupper_l.texi: Likewise.
31974         * doc/posix-functions/wcscoll_l.texi: Likewise.
31975         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31976         * doc/posix-functions/wctrans_l.texi: Likewise.
31977         * doc/posix-functions/wctype_l.texi: Likewise.
31978         * doc/glibc-functions/strptime_l.texi: Likewise.
31979         * doc/glibc-functions/strtod_l.texi: Likewise.
31980         * doc/glibc-functions/strtof_l.texi: Likewise.
31981         * doc/glibc-functions/strtol_l.texi: Likewise.
31982         * doc/glibc-functions/strtold_l.texi: Likewise.
31983         * doc/glibc-functions/strtoll_l.texi: Likewise.
31984         * doc/glibc-functions/strtoul_l.texi: Likewise.
31985         * doc/glibc-functions/strtoull_l.texi: Likewise.
31986         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31987         * doc/glibc-functions/wcstod_l.texi: Likewise.
31988         * doc/glibc-functions/wcstof_l.texi: Likewise.
31989         * doc/glibc-functions/wcstol_l.texi: Likewise.
31990         * doc/glibc-functions/wcstold_l.texi: Likewise.
31991         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31992         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31993         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31994
31995 2009-11-24  Bruno Haible  <bruno@clisp.org>
31996
31997         duplocale: Fix logic bug.
31998         * lib/duplocale.c: Don't include <langinfo.h>.
31999         (_NL_LOCALE_NAME): Remove macro.
32000         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32001         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32002
32003 2009-11-23  Jim Meyering  <meyering@redhat.com>
32004
32005         test-update-copyright: don't hard-code /usr/bin/perl
32006         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32007         perl to print the current year.  Gilles Espinasse reported that
32008         the replaced use of perl was hard-coded as /usr/bin/perl.
32009
32010 2009-11-23  Bruno Haible  <bruno@clisp.org>
32011
32012         duplocale: Add support for glibc 2.3.x.
32013         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32014
32015 2009-11-22  Bruno Haible  <bruno@clisp.org>
32016
32017         vasnprintf: Tiny optimization.
32018         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32019         MacOS X.
32020
32021 2009-11-22  Bruno Haible  <bruno@clisp.org>
32022
32023         Tests for module 'duplocale'.
32024         * modules/duplocale-tests: New file.
32025         * tests/test-duplocale.c: New file.
32026
32027         New module 'duplocale'.
32028         * m4/duplocale.m4: New file.
32029         * lib/locale.in.h (duplocale): New declaration.
32030         * lib/duplocale.c: New file.
32031         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32032         gl_LOCALE_H_DEFAULTS): New macros.
32033         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32034         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32035         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32036         REPLACE_DUPLOCALE.
32037         * modules/duplocale: New file.
32038         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32039
32040 2009-11-22  Bruno Haible  <bruno@clisp.org>
32041
32042         * modules/locale-tests (configure.ac): Test for newlocale function.
32043         * tests/test-locale.c: When the system has extended locale functions,
32044         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32045
32046         locale: Make locale_t available when possible.
32047         * lib/locale.in.h: Include <xlocale.h> when it exists.
32048         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32049         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32050         * modules/locale (Depends-on): Add extensions.
32051         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32052         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32053
32054 2009-11-22  Bruno Haible  <bruno@clisp.org>
32055
32056         Add comments.
32057         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32058         invocation.
32059         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32060         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32061         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32062
32063 2009-11-22  Bruno Haible  <bruno@clisp.org>
32064
32065         error: account for the possibility of freopen (stdout).
32066         * lib/error.c: Include <unistd.h>.
32067         (flush_stdout): New function, extracted from error and error_at_line.
32068         Determine stdout's fd dynamically.
32069         (error, error_at_line): Invoke flush_stdout.
32070         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32071         * modules/error (Depends-on): Add unistd.
32072
32073 2009-11-22  Bruno Haible  <bruno@clisp.org>
32074
32075         diffseq: Add comment.
32076         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32077
32078 2009-11-22  Jim Meyering  <meyering@redhat.com>
32079
32080         c-stack: avoid defining an unused static function
32081         * lib/c-stack.c (find_stack_direction): Do not define this function
32082         when it will not be used.
32083
32084         diffseq: avoid spurious gcc warnings
32085         * lib/diffseq.h (IF_LINT2): Define.
32086         (compareseq): Use it to initialize two members of "part".
32087         This avoids two used-uninitialized warnings.
32088
32089 2009-11-21  Jim Meyering  <meyering@redhat.com>
32090
32091         c-stack: avoid "ignoring return value of `write'" warning
32092         * lib/c-stack.c: Include "ignore-value.h".
32093         (die): Explicitly ignore each write return value.
32094         * modules/c-stack (Depends-on): Add ignore-value.
32095
32096 2009-11-21  Bruno Haible  <bruno@clisp.org>
32097
32098         diffseq: reduce scope of variable 'best'.
32099         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32100         variable, earlier used for two different purposes.
32101
32102 2009-11-21  Jim Meyering  <meyering@redhat.com>
32103
32104         diffseq: remove useless assignment to "best"
32105         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32106         assignment.  At that point "best" is already guaranteed to be zero.
32107
32108 2009-11-20  Eric Blake  <ebb9@byu.net>
32109
32110         build: mention ftp redirector in release announcements
32111         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32112         values that used to come from cfg.mk; mention FTP redirect URL.
32113         * build-aux/announce-gen: Mention the mirror list.
32114         Suggested by Karl Berry.
32115
32116         nanosleep: improve port to mingw
32117         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32118         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32119         LIB_NANOSLEEP, but only when needed.
32120         * modules/select (Link): Document LIBSOCKET.
32121         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32122         enough.
32123
32124         nanosleep: work around cygwin bug
32125         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32126         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32127         bug.
32128         (getnow): Delete, not needed.
32129         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32130         LIB_CLOCK_GETTIME.
32131         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32132         clock-time, gettime.
32133         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32134         bug.
32135         * modules/nanosleep-tests: New test.
32136         * tests/test-nanosleep.c: New file.
32137
32138         sleep: work around cygwin bug
32139         * lib/sleep.c (rpl_sleep): Work around the bug.
32140         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32141         (gl_PREREQ_SLEEP): Delete unused macro.
32142         * modules/sleep (Depends-on): Add verify.
32143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32144         * modules/unistd (Makefile.am): Substitute witness.
32145         * lib/unistd.in.h (sleep): Update prototype.
32146         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32147         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32148         * modules/sleep-tests (Depends-on): Check for alarm.
32149
32150 2009-11-20  Jim Meyering  <meyering@redhat.com>
32151
32152         maint.mk: improve sc_prohibit_magic_number_exit
32153         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32154         so it does not match uses like System.exit(1).
32155         Add comments showing how to correct all offenders.
32156
32157 2009-11-19  Eric Blake  <ebb9@byu.net>
32158
32159         xalloc-die-tests: add missing library
32160         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32161
32162         test-xvasprintf: silence compiler warnings
32163         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32164         empty string from gcc.
32165
32166 2009-11-19  Jim Meyering  <meyering@redhat.com>
32167
32168         xfreopen: new module, from coreutils
32169         * modules/xfreopen: New module.
32170         * lib/xfreopen.c: New file.
32171         * lib/xfreopen.h: New file.
32172         * MODULES.html.sh (File stream based Input/Output"): Add it.
32173
32174 2009-11-19  Eric Blake  <ebb9@byu.net>
32175
32176         manywarnings: depend on warnings
32177         * modules/manywarnings (Depends-on): Add warnings.
32178
32179         build: avoid compiler warnings
32180         * lib/select.c (rpl_select): Delete unused variable.
32181         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32182
32183 2009-11-18  Eric Blake  <ebb9@byu.net>
32184
32185         tests: avoid false negative with --with-packager
32186         * tests/test-version-etc.sh: Discard packager information.
32187         * tests/test-argp-version-etc-1.sh: Likewise.
32188         Reported by Mike Frysinger.
32189
32190         utimens: fix regression on Solaris
32191         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32192         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32193         can only change fd timestamps via futimesat.  Instead, use an
32194         additional witness macro to avoid BSD bug.
32195         Reported by Jim Meyering.
32196
32197 2009-11-17  Eric Blake  <ebb9@byu.net>
32198
32199         usleep: use it to simplify tests
32200         * modules/stat-time-tests (Depends-on): Add usleep.
32201         (configure.ac): Drop usleep check.
32202         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32203         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32204         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32205         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32206         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32207         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32208         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32209         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32210         Likewise.
32211         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32212         * tests/test-lchown.h (nap): Likewise.
32213         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32214         * tests/test-stat-time.c (nap): Likewise.
32215         * tests/test-utimens-common.h (nap): Update comments.
32216
32217         usleep: new module
32218         * modules/usleep: New file.
32219         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32220         * lib/usleep.c (usleep): Likewise.
32221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32222         * modules/unistd (Makefile.am): Substitute witnesses.
32223         * lib/unistd.in.h (usleep): Add declaration.
32224         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32225         * MODULES.html.sh (Date and time): Likewise.
32226         * modules/usleep-tests (Depends-on): New test.
32227         * tests/test-usleep.c: New file.
32228
32229         chown: work around OpenBSD bug
32230         * lib/chown.c (rpl_chown): Work around the bug.
32231         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32232         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32233         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32234         * modules/chown (Depends-on): Add stdbool.
32235         * modules/lchown (Depends-on): Likewise.
32236         * doc/posix-functions/chown.texi (chown): Document the bug.
32237         * doc/posix-functions/lchown.texi (lchown): Likewise.
32238         * tests/test-lchown.h (test_chown): Relax test.
32239
32240         mkstemp: avoid conflict with C++ keyword template
32241         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32242         * lib/mkostemp.c (mkostemp): Likewise.
32243         * lib/mkostemps.c (mkostemps): Likewise.
32244         * lib/mkstemp.c (mkstemp): Likewise.
32245         * lib/mkstemps.c (mkstemps): Likewise.
32246
32247         xalloc-die-tests: optimize
32248         * tests/test-xalloc-die.sh: Reduce number of processes.
32249
32250 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32251
32252         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32253         patch from ludo@gnu.org (Ludovic Courtès).
32254
32255 2009-11-17  Jim Meyering  <meyering@redhat.com>
32256
32257         version-etc: use proper license string
32258         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32259         * modules/version-etc-fsf: Likewise.
32260
32261 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32262
32263         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32264         printed to stdout.  Deal with EOL differences.
32265
32266 2009-11-17  Eric Blake  <ebb9@byu.net>
32267
32268         unsetenv: work around Solaris bug
32269         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32270         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32271         Reported by Jim Meyering.
32272
32273         vasnprintf: avoid compiler warnings
32274         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32275         variables.
32276         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32277
32278 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32279
32280         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32281         settings since xalloc-die is no longer the self test,
32282         xalloc-die.sh is.
32283
32284 2009-11-17  Jim Meyering  <meyering@redhat.com>
32285
32286         test-xalloc-die.sh: make the code agree with the commit log
32287         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32288         at the end, just in case you happen to have a test-xalloc-die
32289         program in some other PATH directory.
32290
32291         test-xalloc-die.sh: fix a portability bug
32292         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32293         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32294         Otherwise, argv[0] (as often seen in diagnostics) would be too
32295         system-dependent, sometimes with, and sometimes without the leading "./".
32296
32297         version-etc-fsf: relax license to LGPLv3+
32298         * modules/version-etc-fsf (License): Relax license.
32299
32300 2009-11-16  Eric Blake  <ebb9@byu.net>
32301
32302         xalloc-die-tests: avoid printing null pointer
32303         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32304         shell script.
32305         * tests/test-xalloc-die.c (program_name): Declare.
32306         * tests/test-xalloc-die.sh (tmpfiles): New file.
32307
32308         setenv, unsetenv: work around various bugs
32309         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32310         (setenv) [HAVE_SETENV]: Work around bugs.
32311         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32312         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32313         for bugs.
32314         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32315         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32317         * modules/stdlib (Makefile.am): Update substitutions.
32318         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32319         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32320         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32321         * modules/setenv-tests: New test.
32322         * modules/unsetenv-tests: Likewise.
32323         * tests/test-setenv.c: New file.
32324         * tests/test-unsetenv.c: Likewise.
32325
32326 2009-11-16  Jim Meyering  <meyering@redhat.com>
32327
32328         version-etc: relax license to LGPLv3+
32329         * modules/version-etc (License): Relax license.
32330
32331         better AC_REQUIRE expanded-before-required-warning avoidance
32332         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32333         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32334         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32335         which is no longer needed.
32336
32337 2009-11-16  Eric Blake  <ebb9@byu.net>
32338
32339         test-freading: clean up temporary file
32340         * tests/test-freading.c (main): Remove file on success, and use
32341         ASSERT more liberally.
32342         Reported by Jim Meyering.
32343
32344 2009-11-16  Jim Meyering  <meyering@redhat.com>
32345
32346         avoid new AC_REQUIRE expanded-before-required warnings
32347         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32348         merely using it.
32349         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32350         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32351
32352 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32353
32354         * tests/test-xalloc-die.c: New file.
32355         * modules/xalloc-die-tests: New file.
32356         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
32357         XFAIL_TESTS so it can be appended by modules.
32358
32359 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32360
32361         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
32362         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
32363
32364 2009-11-14  Eric Blake  <ebb9@byu.net>
32365
32366         fnmatch: avoid compiler warning
32367         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
32368         to silence compiler warning about mismatch signedness in ?:.
32369         Reported by Robert Millan.
32370
32371         intprops: add double-inclusion guard
32372         * lib/intprops.h: Allow idempotent includes.
32373         Suggested by Bruce Korb.
32374
32375         openat: detect Solaris fchownat bug
32376         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
32377         penalizing glibc chownat when only lchownat is broken.
32378         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
32379         trailing slash bugs.
32380         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
32381         * modules/openat-tests (Files): Include more files.
32382         (Depends-on): Add mgetgroups, sleep, stat-time.
32383         (configure.ac): Add additional checks.
32384         (Makefile.am): Build new test.
32385         * tests/test-fchownat.c: New file.
32386
32387         lchown: detect Solaris and FreeBSD bug
32388         * lib/lchown.c (rpl_lchown): Work around bug.
32389         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
32390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32391         * modules/unistd (Makefile.am): Populate it.
32392         * lib/unistd.in.h (lchown): Update declaration.
32393         * doc/posix-functions/lchown.texi (lchown): Document the bug.
32394         * modules/lchown-tests: New file.
32395         * tests/test-lchown.h (test_lchown): Likewise.
32396         * tests/test-lchown.c (main): Likewise.
32397
32398         chown: detect Solaris and FreeBSD bug
32399         * lib/chown.c (rpl_chown): Work around bug.
32400         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
32401         (gl_PREREQ_CHOWN): Delete.
32402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32403         * modules/unistd (Makefile.am): Populate it.
32404         * lib/unistd.in.h (chown): Update declaration.
32405         * lib/lchown.c (chown): Update client.
32406         * modules/lchown (Depends-on): Add lstat.
32407         * doc/posix-functions/chown.texi (chown): Document the bug.
32408         * doc/posix-functions/getgroups.texi (getgroups): Document
32409         getgroups pitfall.
32410         * modules/chown-tests: New file.
32411         * tests/test-chown.h (test_chown): Likewise.
32412         * tests/test-chown.c (main): Likewise.
32413
32414 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
32415
32416         gnulib-tool: correctly detect absence of m4 directories
32417         * gnulib-tool: Avoid extra newline on data passed to wc -l.
32418
32419 2009-11-14  Jim Meyering  <meyering@redhat.com>
32420
32421         maint.mk: Prohibit inclusion of "xalloc.h" without use.
32422         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32423
32424 2009-11-14  John W. Eaton  <jwe@gnu.org>
32425
32426         strftime.h: wrap funtion declaration in extern "C" block
32427         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
32428
32429 2009-11-13  Eric Blake  <ebb9@byu.net>
32430
32431         getgroups: avoid compiler warning
32432         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
32433
32434         getgroups: work around FreeBSD bug
32435         * lib/getgroups.c (rpl_getgroups): Work around the bug.
32436         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
32437         * doc/posix-functions/getgroups.texi (getgroups): Document it.
32438         * tests/test-getgroups.c (main): Fix buffer overrun.
32439
32440         getgroups: avoid compilation failure
32441         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
32442         * modules/getgroups (Depends-on): Add stdint.
32443
32444 2009-11-13  Jim Meyering  <meyering@redhat.com>
32445
32446         test-getgroups: avoid compilation failure
32447         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
32448
32449 2009-11-13  Eric Blake  <ebb9@byu.net>
32450
32451         mgetgroups: new module, taken from coreutils
32452         * modules/mgetgroups: New file.
32453         * lib/mgetgroups.h: Likewise.
32454         * lib/mgetgroups.c (mgetgroups): Likewise.
32455         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32456         * MODULES.html.sh (Users and groups): Mention it.
32457
32458         getgroups: don't expose GETGROUPS_T to user
32459         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32460         an element at a time if GETGROUPS_T is wrong size.
32461         * lib/getugroups.h (getugroups): Change signature.
32462         * lib/unistd.in.h (getgroups): Likewise.
32463         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32464         signature needs fixing.
32465         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32466         AC_TYPE_GETGROUPS.
32467         * modules/group-member (Depends-on): Add getgroups.
32468         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32469         (group_member): Rely on getgroups replacement.
32470         * lib/getugroups.c (getugroups): Use gid_t.
32471         * tests/test-getgroups.c (main): Likewise.
32472         * NEWS: Mention the signature change.
32473         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32474         problem with signature.
32475         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32476         GETGROUPS_T is still useful for setgroups.
32477
32478         getgroups, getugroups: provide stubs for mingw
32479         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32480         * lib/getugroups.c (getugroups): Likewise.
32481         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32482         function.  Modernize replacement scheme.
32483         (gl_PREREQ_GETGROUPS): Delete.
32484         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
32485         * modules/getgroups (configure.ac): Declare witness.
32486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32487         * modules/unistd (Depends-on): Substitute witness.
32488         * lib/unistd.in.h (getgroups): Declare replacement.
32489
32490         getgroups: avoid calling exit
32491         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
32492         drop xalloc.
32493         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
32494         dependencies.
32495         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
32496         exiting, in the rare case of malloc failure.
32497
32498         getgroups: fix logic error
32499         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
32500         has more than 20 groups.
32501         * modules/getgroups-tests: New test.
32502         * tests/test-getgroups.c: New file.
32503
32504 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32505
32506         * tests/test-base64.c: Improve.
32507
32508 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32509
32510         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
32511         Blake <ebb9@byu.net>.
32512
32513 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32514
32515         * tests/test-xvasprintf.c: Add %s%s related checks.
32516
32517 2009-11-12  Eric Blake  <ebb9@byu.net>
32518
32519         version-etc: match standards.texi style
32520         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
32521         and use <> only for URLs.
32522
32523 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32524
32525         fts: do not fail on a submount during traversal
32526         * lib/fts.c (fts_build): Read the stat info again after opening
32527         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
32528         Original report at http://bugzilla.redhat.com/501848.
32529
32530 2009-11-12  Jim Meyering  <meyering@redhat.com>
32531
32532         bootstrap: sync from coreutils
32533         * build-aux/bootstrap (bootstrap_epilogue): New function.
32534         Use git_modules_config in one more place.  This make bootstrap's
32535         --gnulib-srcdir option more useful for testing.
32536
32537         bootstrap: generalize autoheader check
32538         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
32539         AC_CONFIG_HEADERS.
32540
32541 2009-11-11  Eric Blake  <ebb9@byu.net>
32542
32543         mkfifoat: use new modules for Solaris and BSD bugs
32544         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
32545         * lib/mkfifoat.c (mknodat): Split...
32546         * lib/mknodat.c (mknodat): ...into new file.
32547         * modules/mkfifoat (Files): Ship new file.
32548         (Depends-on): Add mkfifo, mknod.
32549         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
32550         (Depends-on): Add symlink.
32551         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
32552         redundant with test_mkfifo.h.
32553         (do_mkfifoat, do_mknodat): New helpers.
32554
32555         mknod: new module
32556         * modules/mknod: New file.
32557         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
32558         * lib/mknod.c (mknod): Likewise.
32559         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32560         defaults.
32561         * modules/sys_stat (Makefile.am): Substitute them.
32562         * lib/sys_stat.in.h (mknod): Declare replacement.
32563         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32564         Document it.
32565         * doc/posix-functions/mknod.texi (mknod): Likewise.
32566         * modules/mknod-tests: New test.
32567         * tests/test-mknod.c: Likewise.
32568
32569         mkfifo: new module
32570         * modules/mkfifo: New file.
32571         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
32572         * lib/mkfifo.c (mkfifo): Likewise.
32573         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32574         defaults.
32575         * modules/sys_stat (Makefile.am): Substitute them.
32576         * lib/sys_stat.in.h (mkfifo): Declare replacement.
32577         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32578         Document it.
32579         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
32580         * modules/mkfifo-tests: New test.
32581         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
32582         from test-mkfifoat.c.
32583         * tests/test-mkfifo.c: New file.
32584
32585         readlink: detect FreeBSD bug
32586         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
32587         slash on symlink.
32588         * doc/posix-functions/readlink.texi (readlink): Document the bug.
32589         * tests/test-readlink.h (test_readlink): Enhance test.
32590
32591         symlink: detect FreeBSD bug
32592         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
32593         slash on symlink.
32594         * doc/posix-functions/symlink.texi (symlink): Document the bug.
32595         * tests/test-symlink.h (test_symlink): Enhance test.
32596
32597 2009-11-10  Eric Blake  <ebb9@byu.net>
32598
32599         link: detect FreeBSD bug
32600         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
32601         symlink.
32602         * doc/posix-functions/link.texi (link): Document the bug.
32603         * tests/test-link.h (test_link): Enhance test.
32604         * tests/test-linkat.c (main): Update caller.
32605
32606         unlink, remove: detect FreeBSD bug
32607         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
32608         slash on symlink.
32609         * doc/posix-functions/unlink.texi (unlink): Document the bug.
32610         * doc/posix-functions/remove.texi (remove): Likewise.
32611         * tests/test-unlink.h (test_unlink): Enhance test.
32612         * tests/test-remove.c (main): Likewise.
32613
32614 2009-11-09  Eric Blake  <ebb9@byu.net>
32615
32616         rename: detect FreeBSD bug
32617         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
32618         slash on symlink.
32619         * modules/renameat-tests (Depends-on): Add filenamecat.
32620         * tests/test-rename.h (test_rename): Allow one more errno.
32621         * tests/test-renameat.c (main): Likewise.
32622         * doc/posix-functions/rename.texi (rename): Document the bug.
32623
32624         open: detect FreeBSD bug
32625         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
32626         symlink.
32627         * doc/posix-functions/open.texi (open): Document the bug.
32628         * doc/posix-functions/utimes.texi (utimes): Likewise.
32629         * tests/test-open.h (test_open): Add parameters, and test symlink
32630         handling.
32631         * tests/test-open.c (main): Adjust caller.
32632         * tests/test-fcntl-safer.c (main): Likewise.
32633         * modules/open-tests (Depends-on): Add stdbool, symlink.
32634         * modules/fcntl-safer-tests (Depends-on): Likewise.
32635         * tests/test-openat.c (main): Add test-open tests.
32636
32637         stat: detect FreeBSD bug
32638         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
32639         symlink.
32640         * doc/posix-functions/stat.texi (stat): Document the bug.
32641         * tests/test-stat.h (test_stat_func): Add argument.
32642         * tests/test-stat.c (main): Adjust caller.
32643         * tests/test-fstatat.c (main): Likewise.
32644         * modules/stat-tests (Depends-on): Add stdbool, symlink.
32645         Reported by Jim Meyering.
32646
32647 2009-11-09  James Youngman  <jay@gnu.org>
32648
32649         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
32650         * lib/strftime.c: Correct placement of #include "ignore-value.h".
32651
32652 2009-11-08  Jim Meyering  <meyering@redhat.com>
32653
32654         utimens: remove invalid futimesat call
32655         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
32656         It used the file descriptor of the target file as the DIR_FD
32657         parameter and NULL as the file name.  That caused failure with
32658         errno == EFAULT on FreeBSD-8.0-rc2
32659
32660 2009-11-07  Eric Blake  <ebb9@byu.net>
32661
32662         fflush, freadseek: use fseeko, not fseek
32663         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32664         (clear_ungetc_buffer): Avoid potential problems on large files.
32665         * lib/freadseek.c (freadseek): Likewise.
32666         * modules/freadseek (Depends-on): Add fseeko.
32667         * modules/fseek (configure.ac): Set a witness.
32668         * tests/test-fflush.c (main): Use fseeko.
32669         * tests/test-fpurge.c (fseek): Disable link warning.
32670         * tests/test-freadable.c (fseek): Likewise.
32671         * tests/test-freading.c (fseek): Likewise.
32672         * tests/test-fseeko.c (fseek): Likewise.
32673         * tests/test-ftell.c (fseek): Likewise.
32674         * tests/test-ftello.c (fseek): Likewise.
32675         * tests/test-fwritable.c (fseek): Likewise.
32676         * tests/test-fwriting.c (fseek): Likewise.
32677
32678 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32679
32680         * modules/memchr (Depends-on): Drop getpagesize dependency.
32681
32682 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32683
32684         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
32685         Reported by Ludovic Courtès.
32686         * build-aux/pmccabe2html: Improve example usage.
32687         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
32688
32689 2009-11-06  Jim Meyering  <meyering@redhat.com>
32690
32691         do-release-commit-and-tag: New module.
32692         Automate the release-commit and tag process.
32693         * build-aux/do-release-commit-and-tag: New script, from coreutils.
32694         * modules/do-release-commit-and-tag: New file.
32695         * MODULES.html.sh (Support for maintaining and releasing): Add it.
32696
32697 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32698
32699         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
32700         because test-select.c uses inet_pton.
32701
32702 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32703
32704         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
32705         GETADDRINFO_LIB.  Bump serial number.
32706         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
32707         Suggested by Eric Blake <ebb9@byu.net>.
32708
32709 2009-11-05  Eric Blake  <ebb9@byu.net>
32710
32711         strtod: detect darwin bug
32712         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
32713         Reported by Leo Davis.
32714
32715         freopen-safer: new module
32716         * modules/freopen-safer: New module.
32717         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
32718         * lib/freopen-safer.c (freopen_safer): New file.
32719         * lib/stdio-safer.h (freopen_safer): New declaration.
32720         * lib/stdio--.h (freopen): New override.
32721         * MODULES.html.sh (File stream based Input/Output): Mention it.
32722         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
32723         freopen-safer module.
32724         * doc/posix-functions/stderr.texi (stderr): Likewise.
32725         * doc/posix-functions/stdin.texi (stdin): Likewise.
32726         * doc/posix-functions/stdout.texi (stdout): Likewise.
32727         * modules/freopen-safer-tests: New test.
32728         * tests/test-reopen-safer.c: New file.
32729
32730 2009-11-05  Jim Meyering  <meyering@redhat.com>
32731
32732         maint.mk: Prohibit inclusion of "close-stream.h" without use.
32733         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32734
32735 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32736
32737         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
32738
32739 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32740
32741         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
32742
32743 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32744
32745         Fix link error.
32746         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32747         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32748
32749 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32750
32751         * tests/test-func.c: Also test value of __func__.
32752
32753 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32754
32755         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
32756         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
32757
32758 2009-11-05  Bruno Haible  <bruno@clisp.org>
32759
32760         Fix link error.
32761         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32762         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32763         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
32764
32765 2009-11-05  Bruno Haible  <bruno@clisp.org>
32766
32767         Tests for module 'inet_pton'.
32768         * modules/inet_pton-tests: New file.
32769         * tests/test-inet_pton.c: New file.
32770
32771 2009-11-05  Bruno Haible  <bruno@clisp.org>
32772
32773         Tests for module 'inet_ntop'.
32774         * modules/inet_ntop-tests: New file.
32775         * tests/test-inet_ntop.c: New file.
32776
32777 2009-11-04  Eric Blake  <ebb9@byu.net>
32778
32779         stdlib-safer: wrap all mkstemp variants
32780         * modules/mkostemp (configure.ac): Set witness.
32781         * modules/mkostemps (configure.ac): Likewise.
32782         * modules/mkstemps (configure.ac): Likewise.
32783         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
32784         (mkstemps_safer): Wrap more functions.
32785         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
32786         wrapping.
32787         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
32788         (mkstemps_safer): Implement the wrappers.
32789
32790         mkstemps, mkostemps: new modules
32791         * modules/mkostemps: New module.
32792         * modules/mkstemps: Likewise.
32793         * lib/mkostemps.c (mkostemps): New file.
32794         * lib/mkstemps.c (mkstemps): Likewise.
32795         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
32796         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
32797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
32798         * modules/stdlib (Makefile.am): Substitute them.
32799         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
32800         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
32801         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
32802         * doc/gnulib.texi (Glibc stdlib.h): Include them.
32803         * MODULES.html.sh (File system functions): Mention them.
32804
32805         tempname: resync from glibc
32806         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
32807         same values for __GT_FILE as glibc.  Abort even when assertions
32808         are disabled.
32809         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
32810         match its value otherwise.  Allow idempotent inclusion.
32811         * lib/mkdtemp.c (mkdtemp): Adjust caller.
32812         * lib/mkostemp.c (mkostemp): Likewise.
32813         * lib/mkstemp.c (mkstemp): Likewise.
32814         * lib/tmpfile.c (tmpfile): Likewise.
32815         * NEWS: Document this.
32816
32817         utimens: fix use of futimens on older Linux
32818         * lib/utimens.c (fdutimens): Use updated, rather than original,
32819         timespec to avoid bug in older Linux kernel.
32820         Reported by Simon Josefsson.
32821
32822 2009-11-04  Bruno Haible  <bruno@clisp.org>
32823
32824         Make num_processors more flexible and consistent.
32825         * lib/nproc.h (enum nproc_query): New type.
32826         (num_processors): Add a 'query' argument.
32827         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
32828         (num_processors): Add a 'query' argument. Test the value of the
32829         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
32830         mingw, count the number of CPUs available for the current process.
32831         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
32832         Check for sched_getaffinity and sched_getaffinity_np.
32833         * modules/nproc (Depends-on): Add c-ctype, extensions.
32834         * NEWS: Mention the change.
32835
32836 2009-11-03  Bruno Haible  <bruno@clisp.org>
32837
32838         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
32839
32840 2009-11-03  Jim Meyering  <meyering@redhat.com>
32841
32842         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
32843         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
32844         if it is defined.
32845
32846 2009-11-02  Eric Blake  <ebb9@byu.net>
32847
32848         mktime, timegm: share common declaration
32849         * lib/mktime-internal.h: New file.
32850         * lib/mktime.c: Use it rather than open-coding a declaration.
32851         * lib/timegm.c: Likewise.
32852         * modules/mktime (Files): Ship it.
32853         * modules/timegm (Files): Likewise.
32854         Suggested by Bruno Haible.
32855
32856         test-update-copyright: update test to match script changes
32857         * tests/test-update-copyright.sh: Avoid hard-coding perl
32858         location.  Don't update *.bak created by earlier runs.
32859
32860 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32861             Simon Josefsson  <simon@josefsson.org>
32862             Bruno Haible  <bruno@clisp.org>
32863
32864         Fix link error on Solaris 8.
32865         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
32866         also in libnsl. Define also INET_PTON_LIB.
32867         * modules/inet_pton (Link): New section.
32868
32869 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32870             Bruno Haible  <bruno@clisp.org>
32871
32872         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
32873         * modules/inet_ntop (Link): New section.
32874         Reported by Boyan Kasarov <bkasarov@gmail.com>.
32875
32876 2009-11-02  Eric Blake  <ebb9@byu.net>
32877
32878         maint: avoid compiler warnings in m4 macros
32879         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
32880         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
32881
32882 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32883
32884         * m4/pmccabe2html.m4: Remove file.
32885         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
32886         function.  Change maintainer.
32887         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
32888         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
32889         Courtès).
32890
32891 2009-10-31  Eric Blake  <ebb9@byu.net>
32892
32893         fseeko: fix m4 regression
32894         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
32895         regression from 2009-10-27.
32896         Reported by Ralf Wildenhues.
32897
32898 2009-10-31  Jim Meyering  <meyering@redhat.com>
32899
32900         inttostr: aesthetics and improved (compile-time) safety
32901         Define inttype_is_signed rather than inttype_is_unsigned,
32902         since the sole use is via "#if inttype_is_signed".
32903         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
32904         inttype_is_unsigned.
32905         * lib/offtostr.c (inttype_is_signed): Likewise.
32906         * lib/uinttostr.c (inttype_is_signed): Likewise.
32907         * lib/umaxtostr.c (inttype_is_signed): Likewise.
32908         * lib/inttostr.c (inttostr): Use verify to cross-check the
32909         inttype_is_signed value and the signedness of the actual type.
32910         * modules/inttostr (Depends-on): Add verify.
32911
32912 2009-10-30  Eric Blake  <ebb9@byu.net>
32913
32914         build: avoid compiler warnings
32915         * lib/fchmodat.c (lchmod): Mark unused variables.
32916         * lib/getopt.c (_getopt_initialize): Likewise.
32917         * lib/mktime.c (__mktime_internal): Provide prototype.
32918         * lib/inttostr.c (inttostr): Avoid compiler warning even with
32919         older gcc that do not understand #pragma GCC diagnostic.
32920         * lib/uinttostr.c (inttype_is_unsigned): Define.
32921         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
32922
32923 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32924
32925         stat: fix compilation on AIX
32926         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
32927         only see struct stat64.
32928
32929 2009-10-30  Eric Blake  <ebb9@byu.net>
32930
32931         exclude: make more robust
32932         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
32933         rather than masking a coding bug.
32934         Suggested by Bruno Haible.
32935
32936 2009-10-30  Jim Meyering  <meyering@redhat.com>
32937
32938         perl scripts: remove #!/usr/bin/perl in favor of more portable...
32939         Rather than putting #!/usr/bin/perl on the first line,
32940         start with a variant of what's recommended by "man perlrun" that
32941         invokes the first "perl" program from your shell's search path.
32942         * build-aux/gitlog-to-changelog: Replace #!... as above.
32943         Add a "Local Variables" perl mode setting.
32944         Prompted by a patch from Ludovic Courtès.
32945         Improved by Eric Blake.
32946         * build-aux/useless-if-before-free: Likewise.
32947         * build-aux/announce-gen: Likewise.
32948         * build-aux/update-copyright: Likewise.
32949
32950 2009-10-29  Eric Blake  <ebb9@byu.net>
32951
32952         filenamecat-lgpl: adjust clients
32953         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
32954         filenamecat.
32955         * modules/renameat (Depends-on): Likewise.
32956
32957         filenamecat: split into filenamecat-lgpl
32958         * modules/filenamecat-lgpl: New module.
32959         * modules/filenamecat (Files): Move library-safe files into
32960         filenamecat-lgpl.
32961         (Depends-on): Add filenamecat-lgpl.
32962         (configure.ac): Declare witness.
32963         * lib/filenamecat.h (file_name_concat): Only declare when using
32964         GPL module.
32965         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
32966         Move...
32967         * lib/filenamecat-lgpl.c: ...into new file.
32968         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
32969         (gl_FILE_NAME_CONCAT): Use it.
32970         * MODULES.html.sh (File system functions): Mention new module.
32971
32972         argp: avoid memory leak
32973         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
32974         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
32975         base_name, since the latter malloc()s and can call exit().
32976         Leak introduced 2006-07-03.
32977
32978         dirname-lgpl: adjust clients that don't need full dirname
32979         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
32980         * modules/filenamecat (Depends-on): Likewise.
32981         * modules/linkat (Depends-on): Likewise.
32982         * modules/mkancesdirs (Depends-on): Likewise.
32983         * modules/mkdir (Depends-on): Likewise.
32984         * modules/openat (Depends-on): Likewise.
32985         * modules/savewd (Depends-on): Likewise.
32986         * modules/rename (Depends-on): Likewise.
32987         (License): Relax license.
32988         * modules/mkdir-tests (Depends-on): Drop progname.
32989         (Makefile.am): Delete unneeded LDADD.
32990         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
32991
32992         dirname: split into dirname-lgpl
32993         * modules/dirname-lgpl: New module.
32994         * modules/dirname (Files): Move library-safe files into
32995         dirname-lgpl.
32996         (Depends-on): Add dirname-lgpl.
32997         (configure.ac): Declare witness.
32998         * modules/double-slash-root (License): Relax license.
32999         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33000         module.
33001         * lib/dirname.c (dir_len, mdir_name): Move...
33002         * lib/dirname-lgpl.c: ...into new file.
33003         * lib/basename.c (last_component, base_len): Move...
33004         * lib/basename-lgpl.c: ...into new file.
33005         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33006         (gl_DIRNAME): Use it.
33007         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33008         Mention new module.
33009         * modules/dirname-tests (Depends-on): Add progname.
33010         * tests/test-dirname.c (program_name): Delete.
33011
33012         mkdir: make safe for libraries
33013         * modules/mkdir (Depends-on): Drop xalloc.
33014         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33015         exit.
33016
33017         tests: avoid some compiler warnings
33018         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33019         literals.
33020         * tests/test-memchr.c (main): Avoid type mismatch.
33021         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33022         * tests/test-base64.c (main): Likewise.
33023         * tests/test-getdelim.c (main): Likewise.
33024         * tests/test-gethostname.c (main): Likewise.
33025         * tests/test-getline.c (main): Likewise.
33026         * tests/test-netinet_in.c (main): Likewise.
33027         * tests/test-select.c (open_server_socket, main): Likewise.
33028         * tests/test-select-stdin.c (main): Likewise.
33029         * tests/test-sockets.c (main): Likewise.
33030         * tests/test-strsignal.c (main): Likewise.
33031         * tests/test-sys_select.c (main): Likewise.
33032         * tests/test-sys_socket.c (main): Likewise.
33033         * tests/test-u64.c (main): Likewise.
33034         * tests/test-xfprintf-posix.c (main): Likewise.
33035         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33036
33037         sockets: avoid compiler warning
33038         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33039
33040         maint: detect usage(1) and other suspicious exits
33041         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33042
33043 2009-10-29  Jim Meyering  <meyering@redhat.com>
33044
33045         timespec: long-to-int truncation could make timespec_cmp malfunction
33046         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33047         a multiple of 2^32 nanoseconds as no difference.
33048
33049 2009-10-28  Jim Meyering  <meyering@redhat.com>
33050
33051         fprintftime: wrap macro code argument in "do {...} while(0)"
33052         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33053         cpy macro must be a statement that can be followed by a semicolon.
33054         Now that the else clause contains a comment and is hence longer
33055         than one line, I require curly braces.  That in turn requires
33056         that we wrap this code block in the standard do...while(0).
33057
33058         fprintftime: remove stray semicolon from previous change
33059         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33060
33061         fprintftime: avoid a warning about ignored fwrite return value
33062         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33063         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33064         that is unsafe.
33065         * modules/fprintftime (Depends-on): Add ignore-value.
33066
33067         exclude: avoid an unwarranted warning
33068         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33069
33070 2009-10-27  Eric Blake  <ebb9@byu.net>
33071
33072         fseek: avoid compilation failure when fflush is replaced
33073         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33074         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33075         module is in use.
33076         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33077         module is not in use; since REPLACE_FSEEK worked otherwise.
33078         (GNULIB_FTELLO): Likewise for ftell.
33079         Reported by Ian Beckwith and others.
33080
33081 2009-10-27  Bruno Haible  <bruno@clisp.org>
33082
33083         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33084         Reported by Jim Meyering.
33085
33086 2009-10-27  Jim Meyering  <jim@meyering.net>
33087             Bruno Haible  <bruno@clisp.org>
33088
33089         Avoid warning despite dropping the return value of fwrite.
33090         * lib/unicodeio.c: Include ignore-value.h.
33091         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33092         * modules/unicodeio (Depends-on): Add ignore-value.
33093
33094 2009-10-26  Eric Blake  <ebb9@byu.net>
33095
33096         areadlinkat: fix fallback path
33097         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33098         pointer and zero.
33099
33100 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33101
33102         Use a better IO block size for modern systems
33103         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33104         * lib/md2.c: Likewise.
33105         * lib/md4.c: Likewise.
33106         * lib/md5.c: Likewise.
33107         * lib/sha1.c: Likewise.
33108         * lib/sha256.c: Likewise.
33109         * lib/sha512.c: Likewise.
33110
33111 2009-10-22  Eric Blake  <ebb9@byu.net>
33112
33113         tests: avoid several compiler warnings
33114         * tests/test-getcwd.c (main): Avoid buffer underflow.
33115         * tests/test-getdate.c (main): String literals are not safe with
33116         putenv, so use setenv.  Declare unused argument.
33117         * modules/getdate-tests (Depends-on): Add setenv.
33118         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33119         problems with string literals in char *.
33120         * tests/test-hash.c (main): Avoid shadowing declaration.
33121         (insert_new): Treat string literals as char const *.
33122         * tests/test-getopt.h (test_getopt): Likewise.
33123         (getopt_loop): Alter types to minimize casting elsewhere.
33124         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33125         (test_getopt_long_posix): Likewise.
33126         (do_getopt_long): Add wrapper to minimize casting.
33127         * tests/test-atexit.c (clear_temp_file): Use void.
33128         * tests/test-areadlink-with-size.c (main): Declare unused
33129         arguments.
33130         * tests/test-areadlink.c (main): Likewise.
33131         * tests/test-areadlinkat-with-size.c (main): Likewise.
33132         * tests/test-areadlinkat.c (main): Likewise.
33133         * tests/test-canonicalize-lgpl.c (main): Likewise.
33134         * tests/test-canonicalize.c (main): Likewise.
33135         * tests/test-dirent-safer.c (main): Likewise.
33136         * tests/test-dirname.c (main): Likewise.
33137         * tests/test-dup2.c (main): Likewise.
33138         * tests/test-fchdir.c (main): Likewise.
33139         * tests/test-fcntl-h.c (main): Likewise.
33140         * tests/test-fcntl-safer.c (main): Likewise.
33141         * tests/test-fdopendir.c (main): Likewise.
33142         * tests/test-fdutimensat.c (main): Likewise.
33143         * tests/test-fflush.c (main): Likewise.
33144         * tests/test-filenamecat.c (main): Likewise.
33145         * tests/test-filevercmp.c (main): Likewise.
33146         * tests/test-fopen-safer.c (main): Likewise.
33147         * tests/test-fopen.c (main): Likewise.
33148         * tests/test-fpending.c (main): Likewise.
33149         * tests/test-fpurge.c (main): Likewise.
33150         * tests/test-freading.c (main): Likewise.
33151         * tests/test-fstatat.c (main): Likewise.
33152         * tests/test-fsync.c (main): Likewise.
33153         * tests/test-futimens.c (main): Likewise.
33154         * tests/test-getndelim2.c (main): Likewise.
33155         * tests/test-gettimeofday.c (main): Likewise.
33156         * tests/test-getopt.c (main): Likewise.
33157         * tests/test-i-ring.c (main): Likewise.
33158         * tests/test-inttypes.c (main): Likewise.
33159         * tests/test-link.c (main): Likewise.
33160         * tests/test-lstat.c (main): Likewise.
33161         * tests/test-math.c (main): Likewise.
33162         * tests/test-md5.c (main): Likewise.
33163         * tests/test-memchr2.c (main): Likewise.
33164         * tests/test-memrchr.c (main): Likewise.
33165         * tests/test-mkdir.c (main): Likewise.
33166         * tests/test-mkdirat.c (main): Likewise.
33167         * tests/test-mkfifoat.c (main): Likewise.
33168         * tests/test-open.c (main): Likewise.
33169         * tests/test-openat-safer.c (main): Likewise.
33170         * tests/test-openat.c (main): Likewise.
33171         * tests/test-quotearg.c (main): Likewise.
33172         * tests/test-rawmemchr.c (main): Likewise.
33173         * tests/test-readlink.c (main): Likewise.
33174         * tests/test-remove.c (main): Likewise.
33175         * tests/test-rename.c (main): Likewise.
33176         * tests/test-renameat.c (main): Likewise.
33177         * tests/test-rmdir.c (main): Likewise.
33178         * tests/test-sha1.c (main): Likewise.
33179         * tests/test-signal.c (main): Likewise.
33180         * tests/test-sigaction.c (main): Likewise.
33181         * tests/test-stat.c (main): Likewise.
33182         * tests/test-stat-time.c (main): Likewise.
33183         * tests/test-stddef.c (main): Likewise.
33184         * tests/test-stdint.c (main): Likewise.
33185         * tests/test-stdio.c (main): Likewise.
33186         * tests/test-stdlib.c (main): Likewise.
33187         * tests/test-strchrnul.c (main): Likewise.
33188         * tests/test-strerror.c (main): Likewise.
33189         * tests/test-string.c (main): Likewise.
33190         * tests/test-strtod.c (main): Likewise.
33191         * tests/test-strverscmp.c (main): Likewise.
33192         * tests/test-symlink.c (main): Likewise.
33193         * tests/test-symlinkat.c (main): Likewise.
33194         * tests/test-sys_stat.c (main): Likewise.
33195         * tests/test-sys_time.c (main): Likewise.
33196         * tests/test-time.c (main): Likewise.
33197         * tests/test-unistd.c (main): Likewise.
33198         * tests/test-unlink.c (main): Likewise.
33199         * tests/test-unlinkat.c (main): Likewise.
33200         * tests/test-utimens.c (main): Likewise.
33201         * tests/test-utimensat.c (main): Likewise.
33202         * tests/test-version-etc.c (main): Likewise.
33203         * tests/test-wchar.c (main): Likewise.
33204         * tests/test-wctype.c (main): Likewise.
33205         * tests/test-xprintf-posix.c (main): Likewise.
33206         * tests/test-posixtm.c (main): Likewise.
33207         (STREQ): Delete unused macro.
33208         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33209         shadowed variables.
33210         * tests/test-memchr.c (main): Likewise.
33211
33212 2009-10-21  Eric Blake  <ebb9@byu.net>
33213
33214         areadlinkat: avoid failure on older glibc
33215         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33216         rather than mis-comparing 0 against FUNC_RESULT of char*.
33217
33218 2009-10-21  Bruno Haible  <bruno@clisp.org>
33219
33220         * modules/stpncpy (License): Relicense under LGPLv2+.
33221         Reported by David Lutterkort <lutter@redhat.com>.
33222
33223 2009-10-20  Eric Blake  <ebb9@byu.net>
33224
33225         utimensat: work around Solaris 9 bug
33226         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33227         has trailing slash bugs.
33228         * tests/test-lutimens.h (test_lutimens): Enhance test.
33229         * tests/test-utimens.h (test_utimens): Likewise.
33230         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33231         * doc/posix-functions/utimes.texi (utimes): Likewise.
33232         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33233         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33234         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33235         * doc/posix-functions/futimens.texi (futimens): Likewise.
33236
33237         fdutimensat: new module
33238         * modules/fdutimensat: New file.
33239         * lib/fdutimensat.c (fdutimensat): Likewise.
33240         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33241         * MODULES.html.sh (File system functions): Mention module.
33242         * modules/fdutimensat-tests: New test.
33243         * tests/test-fdutimensat.c: Likewise.
33244
33245         doc: regenerate INSTALL
33246         * doc/INSTALL: Reflect recent autoconf update.
33247         * doc/INSTALL.ISO: Likewise.
33248         * doc/INSTALL.UTF-8: Likewise.
33249
33250 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33251
33252         acl: warn if ACL support is not detected
33253         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33254
33255 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33256
33257         * lib/nproc.h: Add extern "C" block for C++.
33258
33259 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33260             Bruno Haible  <bruno@clisp.org>
33261
33262         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33263         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33264         * doc/posix-functions/isalpha.texi: Likewise.
33265         * doc/posix-functions/isblank.texi: Likewise.
33266         * doc/posix-functions/iscntrl.texi: Likewise.
33267         * doc/posix-functions/isdigit.texi: Likewise.
33268         * doc/posix-functions/isgraph.texi: Likewise.
33269         * doc/posix-functions/islower.texi: Likewise.
33270         * doc/posix-functions/isprint.texi: Likewise.
33271         * doc/posix-functions/ispunct.texi: Likewise.
33272         * doc/posix-functions/isspace.texi: Likewise.
33273         * doc/posix-functions/isupper.texi: Likewise.
33274         * doc/posix-functions/isxdigit.texi: Likewise.
33275
33276 2009-10-18  Bruno Haible  <bruno@clisp.org>
33277
33278         Tests for module 'isblank'.
33279         * modules/isblank-tests: New file.
33280         * tests/test-isblank.c: New file.
33281
33282         New module 'isblank'.
33283         * lib/isblank.c: New file.
33284         * m4/isblank.m4: New file.
33285         * modules/isblank: New file.
33286         * doc/posix-functions/isblank.texi: Mention the new module.
33287
33288 2009-10-18  Bruno Haible  <bruno@clisp.org>
33289
33290         New module 'ctype'.
33291         * lib/ctype.in.h: New file.
33292         * m4/ctype.m4: New file.
33293         * modules/ctype: New file.
33294         * doc/posix-headers/ctype.texi: Mention the new module.
33295
33296 2009-10-18  Jim Meyering  <meyering@redhat.com>
33297
33298         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33299         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33300         right after its initialization, rather than farther down.
33301         Keeping these in close proximity makes it easier to ensure
33302         that each such variable is initialized.  E.g.,
33303
33304             LIB_CLOCK_GETTIME=
33305             AC_SUBST([LIB_CLOCK_GETTIME])
33306
33307         This change also increments these serial numbers.
33308         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33309         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33311
33312 2009-10-18  Bruno Haible  <bruno@clisp.org>
33313
33314         Don't let environment variables perturb build.
33315         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33316         (gl_PREREQ_GETHRXTIME): ... not here.
33317
33318 2009-10-18  Bruno Haible  <bruno@clisp.org>
33319
33320         Avoid symlink attack in localcharset module.
33321         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33322         (O_NOFOLLOW): Define fallback.
33323         (get_charset_aliases): Don't open the file if it is a symbolic link.
33324         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33325         gl_FCNTL_H.
33326         (gl_FCNTL_H): Require it.
33327         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33328         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33329         Reported by Fergal Glynn <fglynn@veracode.com>.
33330
33331 2009-10-18  Bruno Haible  <bruno@clisp.org>
33332
33333         Implement nproc for mingw.
33334         * lib/nproc.c: Include <windows.h>
33335         (num_processors): On native Windows platforms, try GetSystemInfo.
33336
33337 2009-10-18  Bruno Haible  <bruno@clisp.org>
33338
33339         Implement nproc for IRIX.
33340         * lib/nproc.c: Include <sys/sysmp.h>.
33341         (num_processors): On IRIX systems, try sysmp.
33342         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33343
33344 2009-10-18  Bruno Haible  <bruno@clisp.org>
33345
33346         Implement nproc for HP-UX.
33347         * lib/nproc.c: Include <sys/pstat.h>
33348         (num_processors): On HP-UX systems, try pstat_getdynamic.
33349         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33350         pstat_getdynamic.
33351
33352 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33353             Bruno Haible  <bruno@clisp.org>
33354
33355         Implement nproc for NetBSD, OpenBSD.
33356         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
33357         (ARRAY_SIZE): New macro.
33358         (num_processors): On BSD systems, try sysctl of HW_NCPU.
33359         * m4/nproc.m4: New file.
33360         * modules/nproc (Files): Add m4/nproc.m4.
33361         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
33362         (Makefile.am): Instead, augment lib_SOURCES.
33363
33364 2009-10-18  Bruno Haible  <bruno@clisp.org>
33365
33366         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
33367         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
33368         sys/param.h.
33369
33370 2009-10-16  Eric Blake  <ebb9@byu.net>
33371
33372         utimensat: new module
33373         * modules/utimensat: New file.
33374         * lib/utimensat.c (utimensat): Likewise.
33375         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33376         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
33377         so we can work around Linux bugs.
33378         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33379         * modules/sys_stat (Makefile.am): Substitute them.
33380         * lib/sys_stat.in.h (utimensat): Declare it.
33381         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33382         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33383         * modules/utimensat-tests: New test.
33384         * tests/test-utimensat.c: Likewise.
33385
33386         utimens: let lutimens work on non-symlinks
33387         * lib/utimens.c (lutimens): Fall back to utimens rather than
33388         failing with ENOSYS, when file is not a symlink.
33389         (utimens): Reduce redirection.
33390         * tests/test-lutimens.h (test_lutimens): Update test to cover
33391         non-symlinks.
33392         * tests/test-utimens.h (test_utimens): Update test to cover
33393         symlinks.
33394         * tests/test-utimens.c (main): Update caller.
33395
33396         utimens: cache whether utimensat syscall works
33397         * lib/utimens.c (utimensat_works_really): New cache variable.
33398         (fdutimens, lutimens): Use it to avoid failing syscall.
33399
33400         test-stat-time, test-utimens: improve portability
33401         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
33402         ext4 on alpha, and for cygwin.
33403         * tests/test-utimens-common.h: New file.
33404         (nap): Factor delays into single function.
33405         * tests/test-lutimens.h (test_lutimens): Use new header.
33406         * tests/test-futimens.h (test_futimens): Likewise.
33407         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
33408         timestamps to occur from same machine, as was done previously for
33409         test_utimens.
33410         * modules/utimens-tests (Files): Ship new file.
33411         * modules/futimens-tests (Files): Likewise.
33412         Reported in part by Jim Meyering.
33413
33414         sys_stat: sort replacement declarations
33415         * lib/sys_stat.in.h: Sort declarations.
33416         * lib/futimens.c (futimens): Fix typo.
33417
33418 2009-10-15  Jim Meyering  <meyering@redhat.com>
33419
33420         don't let environment settings perturb build
33421         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
33422         could cause a configure-time and/or build-time malfunction.
33423         Typically, a configure-time function-in-library test is performed
33424         via code like this:
33425
33426           LIB_VAR=
33427           AC_SUBST([LIB_VAR])
33428           prefix_saved_LIBS=$LIBS
33429             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
33430                        [test "$ac_cv_search_FUNC" = "none required" ||
33431                         LIB_VAR=$ac_cv_search_FUNC])
33432           LIBS=$prefix_saved_LIBS
33433
33434         However, in each of the files affected by this change, the LIB_VAR=
33435         initialization was omitted.  Thus, when set in the environment, its
33436         value would propagate into generated Makefiles when FUNC is not found
33437         in LIB_NAME.
33438         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
33439         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33440         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33441
33442 2009-10-14  Eric Blake  <ebb9@byu.net>
33443
33444         fchdir: avoid infinite recursion in mingw
33445         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
33446         recursing.
33447
33448         test-stat-time: port to mingw
33449         * tests/test-stat-time.c (force_unlink): Return a value.
33450         (test_ctime) [W32]: Fix compilation error.
33451         (nap): Don't call usleep with too large an argument.  Use
33452         force_unlink.
33453         * doc/pastposix-functions/usleep.texi (usleep): Document the
33454         portability issue.
33455
33456 2009-10-13  Jim Meyering  <meyering@redhat.com>
33457
33458         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33459         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33460         * modules/pipe-filter-ii: Likewise.
33461         * modules/sys_socket-tests: Likewise.
33462         * modules/tsearch-tests: Likewise.
33463         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33464         (check): Depend on it.
33465
33466 2009-10-12  Eric Blake  <ebb9@byu.net>
33467
33468         utimens-tests: port to NFS file systems
33469         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33470         comparisons to avoid spurious failures from timestamp drift
33471         between NFS machines.
33472
33473 2009-10-12  Eric Blake  <ebb9@byu.net>
33474
33475         stat-time-tests: minor cleanups
33476         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33477         * tests/test-stat-time.c (nap): Separate assignment from call.
33478         Suggested by Paolo Bonzini and Bruno Haible.
33479
33480         sys_stat: guarantee struct timespec
33481         * lib/sys_stat.in.h (includes): Always include <time.h>
33482         * modules/sys_stat (Depends-on): Add time.
33483         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
33484         mode_t permission values.
33485         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
33486         get at subsecond timestamps.
33487
33488 2009-10-10  Eric Blake  <ebb9@byu.net>
33489
33490         futimens: new module
33491         * modules/futimens: New file.
33492         * lib/futimens.c (futimens): Likewise.
33493         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
33494         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
33495         we can work around Linux bugs.
33496         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33497         * modules/sys_stat (Makefile.am): Substitute them.
33498         * lib/sys_stat.in.h (futimens): Declare it.
33499         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33500         * doc/posix-functions/futimens.texi (futimens): Likewise.
33501         * modules/futimens-tests: New test.
33502         * tests/test-futimens.c: Likewise.
33503
33504         utimens: introduce fdutimens
33505         * lib/utimens.h (fdutimens): New prototype.
33506         * lib/utimens.c (gl_futimens): Move guts...
33507         (fdutimens): ...to new interface.
33508         * tests/test-utimens.c (do_fdutimens): Use it.
33509
33510         utimens: add UTIME_NOW and UTIME_OMIT support
33511         * lib/utimens.c (validate_timespec, update_timespec): New helper
33512         functions.
33513         (gl_futimens, lutimens): Use them.
33514         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
33515         stdbool, sys_stat.
33516         (Link): Mention resulting library dependency.
33517         * modules/utimecmp (Link): Likewise.
33518         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
33519         (Makefile.am): Pick up library dependency.
33520         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
33521         definition.
33522         * tests/test-sys_stat.c: Test the definitions.
33523         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33524         * NEWS: Document library dependency.
33525
33526         utimecmp: support symlink timestamps
33527         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
33528         hashing when possible.  Use pathconf when available.
33529         (SYSCALL_RESOLUTION): Recognize tighter resolution.
33530         * modules/utimecmp (Depends-on): Add lstat.
33531
33532         utimens: add lutimens interface
33533         * lib/utimens.c (lutimens): New function.
33534         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
33535         * lib/utimens.h (lutimens): Declare new interface.
33536         * tests/test-utimens.c (main): Enhance test.
33537         * tests/test-lutimens.h (test_lutimens): New file.
33538         * modules/utimens-tests (Files): Distribute it.
33539         (Depends-on): Add symlink.
33540         (configure.ac): Check for usleep.
33541
33542         utimens: validate futimens usage
33543         * lib/utimens.c (gl_futimens): Require valid fd up front, using
33544         fewer syscalls on failure later on.  Avoid compiler warning on
33545         mingw.
33546         * modules/utimens (Depends-on): Add dup2.
33547
33548         utimens: add test
33549         * modules/utimens-tests: New test.
33550         * tests/test-utimens.h: New file.
33551         * tests/test-futimens.h: Likewise.
33552         * tests/test-utimens.c: Likewise.
33553
33554         doc: mention timestamp portability issues
33555         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
33556         instead.
33557         * doc/posix-functions/utime.texi (utime): Likewise.
33558         * doc/posix-functions/utimes.texi (utimes): Likewise.
33559         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
33560         instead.
33561         * doc/posix-functions/futimens.texi (futimens): Mention utimens
33562         module.
33563         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33564         Mention weakness with symlink timestamps.
33565         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
33566         to utimensat/futimens instead.
33567         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
33568
33569         test-dup2: enhance test
33570         * tests/test-dup2.c (main): Also check AT_FDCWD.
33571
33572         test-stat-time: avoid more spurious failures
33573         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
33574         xfs; and avoid race if the two timestamps cross quantization edge.
33575
33576         relocatable: prefer 'file system' over 'filesystem'
33577         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
33578         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
33579         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
33580         * doc/relocatable.texi (Enabling Relocatability): Likewise.
33581         * lib/relocatable.c (compute_curr_prefix): Likewise.
33582
33583 2009-10-10  Jim Meyering  <meyering@redhat.com>
33584
33585         stat-time-tests: check for the usleep function
33586         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
33587
33588 2009-10-10  Bruno Haible  <bruno@clisp.org>
33589
33590         * modules/xnanosleep: Put the Link section after the Include section.
33591
33592 2009-10-09  Eric Blake  <ebb9@byu.net>
33593
33594         dup2: work around FreeBSD 6.1 bug
33595         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
33596         * doc/posix-functions/dup2.texi (dup2): Document it.
33597         Reported by Nelson H. F. Beebe and Jim Meyering.
33598
33599         test-stat-time: port to buggy NFS clients
33600         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
33601         (test_ctime): Also skip test if mtime and ctime are skewed.
33602
33603         maint: prefer 'file system' over 'filesystem'
33604         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33605         * doc/posix-functions/lstat.texi (lstat): Likewise.
33606         * lib/file-has-acl.c (file_has_acl): Likewise.
33607         * lib/fwriteerror.c [TEST]: Likewise.
33608         * tests/test-areadlink.h (test_areadlink): Likewise.
33609         * tests/test-areadlinkat-with-size.c (main): Likewise.
33610         * tests/test-areadlinkat.c (main): Likewise.
33611         * tests/test-canonicalize-lgpl.c (main): Likewise.
33612         * tests/test-canonicalize.c (main): Likewise.
33613         * tests/test-fstatat.c (main): Likewise.
33614         * tests/test-linkat.c (main): Likewise.
33615         * tests/test-lstat.h (test_lstat_func): Likewise.
33616         * tests/test-mkdir.h (test_mkdir): Likewise.
33617         * tests/test-readlink.h (test_readlink): Likewise.
33618         * tests/test-remove.c (main): Likewise.
33619         * tests/test-rename.h (test_rename): Likewise.
33620         * tests/test-renameat.c (main): Likewise.
33621         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33622         * tests/test-symlink.h (test_symlink): Likewise.
33623         * tests/test-symlinkat.c (main): Likewise.
33624         * tests/test-unlink.h (test_unlink_func): Likewise.
33625         * tests/test-unlinkat.c (main): Likewise.
33626
33627         maint: make realtime library usage explicit
33628         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
33629         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
33630         * modules/settime (Link): Likewise.
33631         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
33632
33633         test-stat-time: speed up execution
33634         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
33635         warning on mingw.
33636         (nap): New helper function.
33637         (prepare_test): Use it to reduce sleep time.
33638         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
33639         execution.
33640         * modules/stat-time-tests (configure.ac): Check for usleep.
33641
33642 2009-10-09  Jim Meyering  <meyering@redhat.com>
33643
33644         selinux-h: always use getfilecon wrappers
33645         * lib/getfilecon.c: New file.
33646         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
33647         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
33648         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
33649         (fgetfilecon): Provide a stub.
33650         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
33651         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
33652         file unconditionally.
33653         When <selinux/selinux.h> is found, arrange to use wrappers.
33654         * modules/selinux-h (Files): Add getfilecon.c.
33655         (Makefile.am): Substitute include-next-related bits
33656         into the now-always-generated selinux/selinux.h file.
33657         * doc/glibc-functions/lgetfilecon.texi: New file.
33658         * doc/glibc-functions/fgetfilecon.texi: New file.
33659         * doc/glibc-functions/getfilecon.texi: New file.
33660         * doc/glibc-functions/getfilecon-desc.texi: New file.
33661         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
33662         which to pull in the new files.
33663         * MODULES.html.sh (Misc): Add selinux-h.
33664
33665 2009-10-08  Jim Meyering  <meyering@redhat.com>
33666
33667         unistd: fix comment typo
33668         * lib/unistd.in.h (euidaccess): Fix a comment typo.
33669
33670 2009-10-08  Eric Blake  <ebb9@byu.net>
33671
33672         areadlink: use SIZE_MAX consistently
33673         * modules/areadlink (Depends-on): Add stdint.
33674         * modules/areadlink-with-size (Depends-on): Likewise.
33675         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
33676         gives NULL; drop sys/types, since unistd gives size_t; and add
33677         stdint for SIZE_MAX.
33678         (SIZE_MAX): Rely on headers.
33679         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
33680         and add stdint.
33681         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
33682         (SIZE_MAX): Likewise.
33683         (INITIAL_BUF_SIZE): Turn into enum.
33684         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
33685
33686 2009-10-08  Jim Meyering  <meyering@redhat.com>
33687
33688         areadlinkat: avoid compilation failure
33689         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
33690         Fix typo in comment.
33691
33692 2009-10-07  Eric Blake  <ebb9@byu.net>
33693
33694         areadlinkat-with-size: new module
33695         * modules/areadlinkat-with-size: New module.
33696         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
33697         * lib/areadlink.h (areadlinkat): Declare it.
33698         * MODULES.html.sh (File system functions): Mention it.
33699         * modules/areadlinkat-with-size-tests: New test.
33700         * tests/test-areadlinkat-with-size.c: New file.
33701
33702         xreadlinkat: new module
33703         * modules/xreadlinkat: New module.
33704         * lib/xreadlinkat.c (xreadlinkat): New file.
33705         * lib/xreadlink.h (xreadlinkat): Declare it.
33706         * MODULES.html.sh (File system functions): Mention it.
33707
33708         areadlinkat: new module
33709         * lib/at-func.c (FUNC_FAIL): New define.
33710         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
33711         * modules/areadlinkat: New module.
33712         * lib/linkat.c (areadlinkat): Move...
33713         * lib/areadlinkat.c (areadlinkat): ...to new file.
33714         * lib/areadlink.h (areadlinkat): Declare it.
33715         * modules/linkat (Depends-on): Add areadlinkat.
33716         * MODULES.html.sh (File system functions): Mention it.
33717         * modules/areadlinkat-tests: New test.
33718         * tests/test-areadlinkat.c: New file.
33719
33720         areadlink, areadlink-with-size: add tests
33721         * modules/areadlink-tests: New test.
33722         * modules/areadlink-with-size-tests: Likewise.
33723         * tests/test-areadlink.h: New file.
33724         * tests/test-areadlink.c: Likewise.
33725         * tests/test-areadlink-with-size.c: Likewise.
33726
33727         maint: minor cleanups
33728         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
33729         _UNUSED_PARAMETER_ instead.
33730         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
33731         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
33732         * modules/linkat-tests (Files): Distribute test-link.h.
33733
33734         openat, utimens: whitespace cleanup
33735         * lib/openat.c: Prefer space throughout, rather than mix of 8
33736         spaces vs. tabs.
33737         * lib/at-func.c: Likewise.
33738         * lib/utimens.c: Likewise.
33739
33740         openat: avoid using wrong fd
33741         * lib/openat.c (openat_permissive): Reject user's fd if saving the
33742         working directory chooses same fd.
33743         * lib/at-func.c (AT_FUNC_NAME): Likewise.
33744
33745         mkdir, mkdirat: fix cygwin 1.5.x bug
33746         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
33747         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
33748         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
33749         bug.
33750         (gl_PREREQ_MKDIR): Delete unused macro.
33751         * modules/mkdir (Files): Track file rename.
33752         (configure.ac): Update macro name.
33753         * modules/openat (Depends-on): Add mkdir.
33754         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
33755
33756         mkdir, mkdirat: add tests
33757         * modules/mkdir-tests: New test.
33758         * tests/test-mkdir.h: New file.
33759         * tests/test-mkdir.c: Likewise.
33760         * tests/test-mkdirat.c: Likewise.
33761         * modules/openat-tests (Files): Add new files.
33762         (Makefile.am): Run new test.
33763
33764 2009-10-06  Eric Blake  <ebb9@byu.net>
33765
33766         doc: tweak *at function documentation
33767         * doc/posix-functions/faccessat.texi (faccessat): Mention
33768         known issue with replacement.
33769         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
33770         * doc/posix-functions/linkat.texi (linkat): Likewise.
33771         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33772         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33773         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33774         * doc/posix-functions/renameat.texi (renameat): Likewise.
33775         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33776
33777         openat: fix GNU/Hurd bug in unlinkat
33778         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
33779         broken.
33780         * doc/posix-functions/unlink.texi (unlink): Document this.
33781         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
33782
33783         fdopendir: fix GNU/Hurd bug
33784         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
33785         allowing non-directory fds.
33786         * lib/fdopendir.c (rpl_fdopendir): Work around it.
33787         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33788         * modules/dirent (Makefile.am): Substitute it.
33789         * lib/dirent.in.h (fdopendir): Declare replacement.
33790         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
33791         * tests/test-fdopendir.c (main): Test something other than
33792         /dev/null, since on Hurd that behaves like a directory.
33793
33794         test-symlink: port to GNU/Hurd
33795         * tests/test-symlink.h (test_symlink): Relax expected errno.
33796
33797         doc: tweak more cygwin information
33798         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
33799         now compatible with glibc.
33800         * doc/posix-functions/getopt.texi (getopt): Likewise.
33801
33802         getopt-gnu: add another test
33803         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
33804         guarantee behavior relied on by m4.
33805         * tests/test-getopt.c (main): Use it.
33806         * modules/getopt-posix-tests (Depends-on): Add setenv.
33807         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
33808
33809         getopt: fix compilation on darwin
33810         * lib/getopt.in.h (includes): Leave breadcrumbs during system
33811         include.
33812         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
33813         Reported by Ludovic Courtès.
33814
33815 2009-10-06  Bruno Haible  <bruno@clisp.org>
33816
33817         * modules/size_max (Description): Discourage its use.
33818         Reported by Simon Josefsson.
33819
33820 2009-10-06  Jim Meyering  <meyering@redhat.com>
33821
33822         linkat: avoid compilation failure
33823         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
33824
33825 2009-10-05  Eric Blake  <ebb9@byu.net>
33826
33827         linkat: support Linux 2.6.17
33828         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
33829         linkat on Linux, but allow cache variable override.
33830         * lib/linkat.c (rpl_linkat): Define override.
33831         * modules/linkat (Depends-on): Add symlinkat.
33832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
33833         * modules/unistd (Makefile.am): Substitute it.
33834         * lib/unistd.in.h (linkat): Declare replacement.
33835         Reported by Pádraig Brady.
33836
33837         quotearg: port test to systems with C.UTF-8 locale
33838         * tests/test-quotearg.c (struct result_strings): Add another
33839         member, differentiating between C.ASCII and C.UTF-8 handling.
33840         (compare_strings): Add parameter.
33841         (main): Adjust all callers.
33842
33843         getopt: avoid clash with FreeBSD _getopt_internal
33844         * lib/getopt.in.h (_getopt_internal): Override the name.
33845         * lib/getopt_int.h (includes): Pick up any overrides.
33846         Reported by Reuben Thomas.
33847
33848         hash: allow C89 compilation
33849         * lib/hash.c (check_tuning): Move declaration before statement.
33850         Reported by Reuben Thomas.
33851
33852 2009-10-05  Karl Berry  <karl@gnu.org>
33853
33854         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
33855
33856 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
33857             Bruno Haible  <bruno@clisp.org>
33858
33859         * lib/uname.c (uname): Use a table-driven algorithm to compute
33860         Windows NT versions.
33861
33862 2009-10-04  Bruno Haible  <bruno@clisp.org>
33863
33864         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
33865         program_invocation_short_name.
33866         * modules/progname (configure.ac): Test for presence of
33867         program_invocation_short_name.
33868         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33869
33870 2009-10-04  Bruno Haible  <bruno@clisp.org>
33871
33872         * lib/progname.c (set_program_name): Fix comment.
33873         Reported by Jim Meyering.
33874
33875 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33876             Bruno Haible  <bruno@clisp.org>
33877
33878         * lib/uname.c: Include <string.h>.
33879         (uname): Do only one call to GetVersionEx in the common case.
33880
33881 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33882             Bruno Haible  <bruno@clisp.org>
33883
33884         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
33885         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
33886         (uname): Add support for Windows CE and various non-x86 CPU types.
33887
33888 2009-10-03  Bruno Haible  <bruno@clisp.org>
33889
33890         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
33891         invocation to tests/configure.ac.
33892         Reported by Ian Beckwith <ianb@erislabs.net>.
33893
33894 2009-10-02  Eric Blake  <ebb9@byu.net>
33895
33896         fchdir: avoid compiler warning
33897         * lib/fchdir.c (canonicalize_file_name)
33898         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
33899
33900         test-open: support mingw errno values
33901         * tests/test-open.h (test_open): Relax test.
33902         * tests/test-fopen.h (test_fopen): Likewise.
33903         * tests/test-openat-safer.c (main): Likewise.
33904
33905         open: fix opening directory on mingw
33906         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
33907
33908         test-open: on GNU/Hurd, /dev/null is a directory
33909         * tests/test-fopen.h (main): Rename...
33910         (test_fopen): ...to this.  Use a guaranteed non-directory when
33911         confirming open behavior on trailing slash.
33912         * tests/test-openat-safer.c (main): Likewise.
33913         * tests/test-open.h (main): Likewise....
33914         (test_open): ...to this.
33915         * tests/test-fopen.c (main): Adjust caller.
33916         * tests/test-fopen-safer.c (main): Likewise.
33917         * tests/test-open.c (main): Likewise.
33918         * tests/test-fcntl-safer.c (main): Likewise.
33919         Reported by Samuel Thibault.
33920
33921         rename, fchdir: don't ignore chdir failure
33922         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
33923         * lib/rename.c (rpl_rename) [W32]: Likewise.
33924         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
33925         an empty destination directory if source cannot be renamed,
33926         although there is still possibility for failure.
33927         * doc/posix-functions/rename.texi (rename): Document the race.
33928         Reported by Jim Meyering.
33929
33930         maint: cleanup whitespace in recent commits
33931         * lib/rename.c (rpl_rename): Remove tabs.
33932         * tests/test-link.h (test_link): Likewise.
33933         * lib/fchdir.c (get_name): Likewise.
33934         Reported by Jim Meyering.
33935
33936 2009-10-02  Ben Pfaff  <blp@gnu.org>
33937
33938         relocatable-prog-wrapper: Add missing dependency on
33939         double-slash-root.
33940         * modules/relocatable-prog-wrapper: Add dependency.
33941         Reported by Ian Beckwith <ianb@erislabs.net>.
33942
33943 2009-10-02  Eric Blake  <ebb9@byu.net>
33944
33945         renameat: fix Solaris bugs
33946         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
33947         needed fixing.
33948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
33949         * modules/stdio (Makefile.am): Substitute it.
33950         * lib/stdio.in.h (renameat): Declare replacement.
33951         * lib/renameat.c (rpl_renameat): Implement fix.
33952
33953         renameat: new module
33954         * modules/renameat: New file.
33955         * lib/renameat.c (renameat): Likewise.
33956         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
33957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33958         * modules/stdio (Makefile.am): Substitute them.
33959         * lib/stdio.in.h (renameat): Declare it.
33960         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33961         * doc/posix-functions/renameat.texi (renameat): Likewise.
33962         * modules/renameat-tests: New test.
33963         * tests/test-renameat.c: Likewise.
33964
33965         rename: fix mingw bugs
33966         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
33967         directory overwrite bugs.
33968
33969         rename: fix another cygwin 1.5 bug
33970         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
33971         checks.
33972         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
33973         unnecessary cygwin workarounds.  Also work around bug with moving
33974         full directory onto an empty one.
33975         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
33976
33977         rename-dest-slash: merge into rename module
33978         * modules/rename-dest-slash (Status): Mark obsolete.
33979         (Depends-on): Add rename.
33980         (Files): Let rename do it all.
33981         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
33982         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
33983         * m4/rename-dest-slash.m4: ...so this file can be deleted.
33984         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
33985         * lib/rename.c (rpl_rename): Update comments.
33986
33987         rename: fix cygwin 1.5.x bugs
33988         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
33989         * lib/rename.c (rpl_rename): Work around them.
33990         * modules/rename (Depends-on): Add same-inode.
33991
33992         rename: fix Solaris 10 bug
33993         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33994         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
33995         was the only bug.
33996
33997         rename: fix Solaris 9 bug
33998         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
33999         on non-directory.  Avoid calling exit.
34000         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34001         strdup.
34002         * modules/rename-tests (Depends-on): Drop lstat.
34003         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34004         (gl_PREREQ_RENAME): Delete unused macro.
34005
34006         rename-dest-slash: fix NetBSD bug
34007         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34008         links.
34009         * modules/rename-dest-slash (Depends-on): Add same-inode.
34010
34011         rename-tests: new test, exposes several platform bugs
34012         * modules/rename-tests: New file.
34013         * tests/test-rename.h: Likewise.
34014         * tests/test-rename.c: Likewise.
34015         * doc/posix-functions/rename.texi (rename): Improve documentation,
34016         including bugs that will eventually be fixed in gnulib.
34017
34018 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34019
34020         * lib/uname.c: Include <stdlib.h>
34021         (uname): Assume version info is available.
34022
34023 2009-10-02  Jim Meyering  <meyering@redhat.com>
34024
34025         gnu-web-doc-update: correct --help output
34026         * build-aux/gnu-web-doc-update: Make --help output relevant.
34027
34028         gnu-web-doc-update: add standard options
34029         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34030
34031         gnu-web-doc-update: New module.
34032         Use this script to automatically update the on-line web documentation
34033         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34034         * modules/gnu-web-doc-update: New file, from coreutils.
34035         * build-aux/gnu-web-doc-update: New script.
34036
34037 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34038
34039         link: LoadLibrary is not needed.
34040         * lib/link.c: Use GetModuleHandle.
34041
34042 2009-10-01  Eric Blake  <ebb9@byu.net>
34043
34044         getopt: bump serial number
34045         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34046         change.
34047
34048         tests: tighten link, rmdir, and remove tests
34049         * tests/test-link.h (includes): No need to use <config.h> here.
34050         Clean up if directory hard link was created, otherwise test for
34051         trailing '.'.
34052         * tests/test-linkat.c (main): Simplify.
34053         * tests/test-remove.c (main): Enhance test for trailing '.'.
34054         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34055
34056 2009-10-01  Jim Meyering  <meyering@redhat.com>
34057
34058         maint.mk: requiring "make major" was annoying, for a "minor" release.
34059         What is intended is "stable", to contrast with alpha and beta,
34060         so require "make stable", not "make major".
34061         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34062         (get_tool_versions): Likewise.
34063         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34064
34065 2009-09-30  Ben Pfaff  <blp@gnu.org>
34066
34067         Fix broken build of replacement for Windows tmpfile().
34068         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34069         flags argument added along with the 'mkostemp' module.
34070
34071 2009-09-28  Bruno Haible  <bruno@clisp.org>
34072
34073         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34074         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34075         to 'remove_elt'.
34076         (gl_list_remove): Update.
34077         * lib/gl_list.c (gl_list_remove): Update.
34078         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34079         to 'remove_elt'.
34080         (gl_oset_remove): Update.
34081         * lib/gl_list.c (gl_oset_remove): Update.
34082         Reported by Eric Blake.
34083
34084 2009-09-28  Eric Blake  <ebb9@byu.net>
34085
34086         doc: mention yet more cygwin 1.7 status
34087         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34088         cygwin.
34089         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34090         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34091
34092         argp: fix test failure
34093         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34094         that are not upper-case.  Pass correct range to tolower.
34095
34096 2009-09-27  Jim Meyering  <meyering@redhat.com>
34097
34098         test-yesno: work around sparc-dash here-document infelicity
34099         Without this change, the literal \177 byte in a here document
34100         would make dash 0.5.5.1-3 access uninitialized memory.
34101         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34102         Instead, use a marker, "@", and filter through tr to create the desired
34103         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34104
34105 2009-09-27  Bruno Haible  <bruno@clisp.org>
34106
34107         Disable untested support for new flavours of ACLs on AIX.
34108         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34109         progress.
34110         * lib/set-mode-acl.c (qset_acl): Likewise.
34111
34112 2008-12-07  Bruno Haible  <bruno@clisp.org>
34113
34114         Add support for new flavours of ACLs on AIX. (Untested.)
34115         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34116         (file_has_acl): Add support for newer AIX.
34117         * lib/set-mode-acl.c (qset_acl): Likewise.
34118         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34119         Rainer Tammer <tammer@tammer.net>.
34120
34121 2009-09-26  Eric Blake  <ebb9@byu.net>
34122
34123         argp: fix compilation of getopt
34124         * lib/getopt.in.h (includes): Use different guard than glibc.
34125         Reported by Sergey Poznyakoff.
34126
34127         doc: mention more cygwin 1.7 status
34128         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34129         bug.
34130         * doc/posix-functions/execl.texi (execl): Likewise.
34131         * doc/posix-functions/execle.texi (execle): Likewise.
34132         * doc/posix-functions/execlp.texi (execlp): Likewise.
34133         * doc/posix-functions/execv.texi (execv): Likewise.
34134         * doc/posix-functions/execve.texi (execve): Likewise.
34135         * doc/posix-functions/execvp.texi (execvp): Likewise.
34136         * doc/glibc-functions/canonicalize_file_name.texi
34137         (canonicalize_file_name): Cygwin 1.7 now provides this.
34138         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34139         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34140         on AT_SYMLINK_NOFOLLOW.
34141
34142 2009-09-24  Eric Blake  <ebb9@byu.net>
34143
34144         test-linkat: make test more robust
34145         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34146
34147         getopt: fix inclusion guards for cygwin
34148         * modules/getopt-posix (Depends-on): Add include-next.
34149         (Makefile.am): Substitute more items in replacement header.
34150         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34151         <getopt.h>.
34152         * lib/getopt.in.h (includes): Use split inclusion guard, and
34153         prefer <getopt.h> over include <unistd.h> when one is present.
34154         (option): Also override name of 'struct option'.
34155
34156         same-inode: revert prior change; it is not yet ready
34157         * NEWS: Undo mention of this change.
34158         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34159         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34160         * lib/cycle-check.c (cycle_check): Likewise.
34161         * lib/same.c (same_name): Likewise.
34162         * lib/at-func2.c (at_func2): Likewise.
34163
34164 2009-09-23  Eric Blake  <ebb9@byu.net>
34165
34166         linkat: new module
34167         * modules/linkat: New file.
34168         * lib/at-func2.c (at_func2): Likewise.
34169         * lib/linkat.c (linkat): Likewise.
34170         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34171         * lib/openat-priv.h (at_func2): Add declaration.
34172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34173         * modules/unistd (Makefile.am): Substitute them.
34174         * lib/unistd.in.h (linkat): Declare it.
34175         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34176         * doc/posix-functions/linkat.texi (linkat): Likewise.
34177         * doc/posix-functions/link.texi (link): Tweak wording.
34178         * tests/test-link.c (main): Move guts...
34179         * tests/test-link.h (test_link): ...into new file.
34180         * modules/linkat-tests: New test.
34181         * tests/test-linkat.c: Likewise.
34182         * modules/link-tests (Files): Ship new file.
34183         (Depends-on): Add stdbool.
34184
34185         dirname: add library-safe mdir_name
34186         * lib/dirname.h (mdir_name): New prototype.
34187         * lib/dirname.c (dir_name): Move guts...
34188         (mdir_name): ...to new function that avoids xalloc_die.
34189
34190         fchdir: another mingw fix
34191         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34192         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34193         on mingw (where it has not yet been ported), and make it optional
34194         elsewhere.
34195         (_gl_register_fd): Use it.
34196
34197         same-inode: make SAME_INODE tri-state, to port to mingw
34198         * NEWS: Mention this change.
34199         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34200         st_ino always being 0.
34201         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34202         * lib/cycle-check.c (cycle_check): Likewise.
34203         * lib/same.c (same_name): Likewise.
34204
34205         lstat: avoid mingw compilation error
34206         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34207         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34208         lstat ourselves.
34209         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34210         was adequate.
34211         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34212         the checks for lstat.
34213         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34214
34215         link: fix test failure on Solaris 9
34216         * lib/link.c (rpl_link): Don't assume link will catch bogus
34217         trailing slash on source.
34218
34219         test-symlinkat: enhance test
34220         * tests/test-readlink.c (main): Move guts...
34221         * tests/test-readlink.h (test_readlink): ...into new file.
34222         * tests/test-symlink.c (main): Move guts...
34223         * tests/test-symlink.h (test_symlink): ...into new file.
34224         * tests/test-symlinkat.c (main): Use new files for further
34225         coverage.
34226         (do_symlink, do_readlink): New helper functions.
34227         * modules/symlink-tests (Files): Ship new file.
34228         (Depends-on): Add stdbool.
34229         * modules/readlink-tests (Files): Ship new file.
34230         (Depends-on): Add stdbool.
34231         * modules/symlinkat-tests (Files): Use new files.
34232
34233 2009-09-23  Eric Blake  <ebb9@byu.net>
34234
34235         readlink: document portability issue with symlink length
34236         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34237         systems have bogus st_size on symlinks, and mention the
34238         areadlink-with-size module.
34239         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34240         * doc/posix-functions/readlink.texi (readlink): Mention the
34241         areadlink module, and ERANGE failure.
34242         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34243         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34244
34245         readlink: fix Solaris 9 bug with trailing slash
34246         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34247         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34248         * doc/posix-functions/readlink.texi (readlink): Document this.
34249         * modules/readlink-tests: New test.
34250         * tests/test-readlink.c: Likewise.
34251
34252         readlink: fix cygwin 1.5.x bug with return type
34253         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34254         * lib/unistd.in.h (readlink): Use ssize_t.
34255         * lib/readlink.c (readlink): Likewise.
34256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34257         * modules/unistd (Makefile.am): Substitute it.
34258         * lib/unistd.in.h (readlink): Declare replacement.
34259         * doc/posix-functions/readlink.texi (readlink): Document this.
34260
34261         symlink: use throughout gnulib
34262         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34263         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34264         symlink is not used.
34265         * modules/symlinkat (Depends-on): Add symlink.
34266         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34267         * modules/canonicalize-tests (Depends-on): Likewise.
34268         * modules/lstat-tests (Depends-on): Likewise.
34269         * modules/openat-tests (Depends-on): Likewise.
34270         * modules/remove-tests (Depends-on): Likewise.
34271         * modules/rmdir-tests (Depends-on): Likewise.
34272         * modules/unlink-tests (Depends-on): Likewise.
34273         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34274         * tests/test-canonicalize.c (symlink): Likewise.
34275         * tests/test-fstatat.c (symlink): Likewise.
34276         * tests/test-lstat.c (symlink): Likewise.
34277         * tests/test-remove.c (symlink): Likewise.
34278         * tests/test-rmdir.c (symlink): Likewise.
34279         * tests/test-unlink.c (symlink): Likewise.
34280         * tests/test-unlinkat.c (symlink): Likewise.
34281
34282         symlink: new module, for Solaris 9 bug
34283         * modules/symlink: New file.
34284         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34285         * lib/symlink.c: Likewise.
34286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34287         * modules/unistd (Makefile.am): Substitute them.
34288         * lib/unistd.in.h (symlink): Declare replacement.
34289         * MODULES.html.sh (File system functions): Mention it.
34290         * doc/posix-functions/symlink.texi (symlink): Likewise.
34291         * modules/symlink-tests: New test.
34292         * tests/test-symlink.c: Likewise.
34293
34294 2009-09-23  Bruno Haible  <bruno@clisp.org>
34295
34296         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34297         when needed.
34298         Test case: gnulib-tool --import --with-tests atexit inttypes.
34299         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34300
34301 2009-09-23  Bruno Haible  <bruno@clisp.org>
34302
34303         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34304         subcommand, not in a subshell.
34305
34306 2009-09-22  Eric Blake  <ebb9@byu.net>
34307
34308         unistd: sort replacement declarations
34309         * lib/unistd.in.h: Sort declarations.
34310
34311         open, openat: minor optimization
34312         * lib/open.c (open): If open succeeded, len is non-zero.
34313         * lib/openat.c (rpl_openat): Likewise.
34314
34315         link-follow: ensure correct result
34316         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34317         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34318         distinguish between possible failures.
34319
34320 2009-09-21  Eric Blake  <ebb9@byu.net>
34321
34322         fts: avoid compiler warning
34323         * lib/fts.c (dirent_inode_sort_may_be_useful)
34324         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34325
34326 2009-09-19  Bruno Haible  <bruno@clisp.org>
34327
34328         * lib/progreloc.c (canonicalize_file_name): New declaration.
34329
34330 2009-09-19  Eric Blake  <ebb9@byu.net>
34331
34332         link: fix quoting
34333         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34334
34335         openat: fix openat bugs on Solaris 9
34336         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34337         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34338         * modules/openat (Depends-on): Add open.
34339         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34340         * modules/fcntl-h (Makefile.am): Substitute it.
34341         * lib/fcntl.in.h (openat): Declare replacement.
34342         * doc/posix-functions/openat.texi (openat): Document this.
34343
34344         openat: move fstatat and unlinkat into correct files
34345         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34346         compiled.
34347         * lib/openat.c (fstatat, unlinkat): Move...
34348         * lib/fstatat.c (fstatat): ...into correct files.
34349         * lib/unlinkat.c (unlinkat): Likewise.
34350
34351         openat: fix unlinkat bugs on Solaris 9
34352         * lib/unlinkat.c (unlinkat): New file.
34353         * modules/openat (Depends-on): Add unlink.
34354         (Files): Distribute it.
34355         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
34356         trailing slash behavior is broken.
34357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34358         * modules/unistd (Makefile.am): Substitute it.
34359         * lib/unistd.in.h (unlinkat): Declare replacement.
34360         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
34361
34362         openat: fix fstatat bugs on Solaris 9
34363         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
34364         stat.
34365         * doc/posix-functions/fstatat.texi (fstatat): Document this.
34366
34367         test-unlinkat: enhance test, to expose Solaris 9 bug
34368         * tests/test-unlink.c (main): Factor guts...
34369         * tests/test-unlink.h (test_rmdir_func): ...into new file.
34370         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
34371         * tests/test-rmdir.c (main): Adjust caller.
34372         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
34373         (unlinker): New helper function.
34374         (rmdirat): Enhance check.
34375         * modules/rmdir-tests (Depends-on): Add stdbool.
34376         * modules/unlink-tests (Depends-on): Likewise.
34377         (Files): Add test-unlink.h.
34378         * modules/openat-tests (Files): Likewise.
34379         (Depends-on): Add unlinkdir.
34380
34381         test-fstatat: new test, to expose Solaris 9 bugs
34382         * tests/test-stat.c (main): Factor guts...
34383         * tests/test-stat.h (test_stat_func): ...into new file.
34384         * tests/test-lstat.c (main): Factor guts...
34385         * tests/test-lstat.h (test_lstat_func): ...into new file.
34386         * tests/test-fstatat.c: New file.
34387         * modules/stat-tests (Files): Add test-stat.h.
34388         * modules/lstat-tests (Files): Add test-lstat.h.
34389         (Depends-on): Add stdbool.
34390         * modules/openat-tests (Depends-on): Add pathmax.
34391         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
34392         (Makefile.am): Run new test.
34393
34394         remove: new module, for mingw and Solaris 9 bugs
34395         * modules/remove: New file.
34396         * lib/remove.c: Likewise.
34397         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
34398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34399         * modules/stdio (Makefile.am): Use them.
34400         * lib/stdio.in.h (remove): Declare replacement.
34401         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34402         * doc/posix-functions/remove.texi (remove): Likewise.
34403         * modules/remove-tests: New test.
34404         * tests/test-remove.c: Likewise.
34405
34406         unlink: new module, for Solaris 9 bug
34407         * modules/unlink: New file.
34408         * lib/unlink.c: Likewise.
34409         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
34410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34411         * modules/unistd (Makefile.am): Use them.
34412         * lib/unistd.in.h (stat): Declare replacement.
34413         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34414         * doc/posix-functions/unlink.texi (unlink): Likewise.
34415         * modules/unlink-tests: New test.
34416         * tests/test-unlink.c: Likewise.
34417
34418         lstat: fix Solaris 9 bug
34419         * lib/lstat.c (lstat): Also check for trailing slash on
34420         non-symlink, non-directories.  Use stat module to simplify logic.
34421         * doc/posix-functions/lstat.texi (lstat): Document it.
34422         * modules/lstat-tests (Depends-on): Add errno, same-inode.
34423         (configure.ac): Check for symlink.
34424         * tests/test-lstat.c (main): Add more tests.
34425
34426         stat: add as dependency to other modules
34427         * modules/chown (Depends-on): Add stat.
34428         * modules/euidaccess (Depends-on): Likewise.
34429         * modules/fchdir (Depends-on): Likewise.
34430         * modules/isdir (Depends-on): Likewise.
34431         * modules/link (Depends-on): Likewise.
34432         * modules/lstat (Depends-on): Likewise.
34433         * modules/mkdir-p (Depends-on): Likewise.
34434         * modules/modechange (Depends-on): Likewise.
34435         * modules/open (Depends-on): Likewise.
34436         * modules/readlink (Depends-on): Likewise.
34437         * modules/same (Depends-on): Likewise.
34438
34439         stat: fix Solaris 9 bug
34440         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
34441         slash.
34442         * lib/stat.c (rpl_stat): Work around it.
34443         * doc/posix-functions/stat.texi (stat): Update documentation.
34444
34445         stat: new module, for mingw bug
34446         * modules/stat: New file.
34447         * lib/stat.c: Likewise.
34448         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34449         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34450         * modules/sys_stat (Makefile.am): Use them.
34451         * lib/sys_stat.in.h (stat): Declare replacement.
34452         * lib/openat.c (fstatat): Deal with lstat and stat being function
34453         macros.
34454         * modules/openat (Depends-on): Add inline.
34455         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34456         * doc/posix-functions/stat.texi (stat): Likewise.
34457         * modules/stat-tests: New test.
34458         * tests/test-stat.c: Likewise.
34459
34460 2009-09-19  Jim Meyering  <meyering@redhat.com>
34461
34462         syntax-check: detect unnecessary inclusion of canonicalize.h
34463         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34464
34465 2009-09-19  Eric Blake  <ebb9@byu.net>
34466
34467         canonicalize-lgpl: adjust clients to use correct header
34468         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34469         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34470         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34471         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34472         * lib/progreloc.c (includes): Likewise.
34473
34474 2009-09-19  Jim Meyering  <meyering@redhat.com>
34475
34476         test-posixtm.c: correct a comment
34477         * tests/test-posixtm.c: Correct first-line comment.
34478         Spotted by Eric Blake.
34479
34480 2009-09-16  Jim Meyering  <meyering@redhat.com>
34481
34482         posixtm-tests: make T const-correct; add a test case
34483         * tests/test-posixtm.c (T): Declare const.
34484         Add a test for -(2^31+1).
34485         Remove useless can-succeed-only-in-2002 test.
34486
34487         posixtm-tests: adjust the sole failing test
34488         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
34489         expected output matches what mktime now produces.  Cross-checked via
34490         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
34491
34492         posixtm: move #ifdef'd tests into a new module
34493         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
34494         * tests/test-posixtm.c: ... this new file.
34495         * modules/posixtm-tests: New module.
34496
34497 2009-09-19  Eric Blake  <ebb9@byu.net>
34498
34499         openat: simplify use of at-func.c
34500         * lib/at-func.c (includes): Include prerequisites here, to
34501         simplify requirements on client files.
34502         * lib/openat-priv.h: Add double-inclusion guard.
34503         * lib/faccessat.c (includes): Simplify.
34504         * lib/fchmodat.c (includes): Likewise.
34505         * lib/fchownat.c (includes): Likewise.
34506         * lib/mkdirat.c (includes): Likewise.
34507         * lib/mkfifoat.c (includes): Likewise.
34508         * lib/symlinkat.c (includes): Likewise.
34509
34510         openat: allow return of fd 0
34511         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
34512         * modules/save-cwd (Depends-on): Replace fcntl-safer with
34513         unistd-safer.
34514         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
34515         <fcntl.h>; this module does not leak fds.
34516         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
34517         must be allowed to return 0, leaving openat_safer to add the
34518         safety.
34519         (openat_permissive): Avoid writing to just-opened fd 2 if
34520         restoring the current directory fails.
34521         * lib/openat-die.c (openat_restore_fail): Add comment.
34522         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34523         (save_cwd): Guarantee safe fd, but without use of open_safer.
34524         * tests/test-openat.c: New test.
34525         * modules/openat-tests (Files, Makefile.am): Distribute and build
34526         new file.
34527
34528         relocatable-prog-wrapper: fix build
34529         * modules/relocatable-prog-wrapper (Files): Update name of
34530         canonicalize m4 file, broken on 2009-09-17.
34531         Reported by emad hajjar <aleppos@hotmail.com>.
34532
34533 2009-09-19  Bruno Haible  <bruno@clisp.org>
34534
34535         * lib/safe-alloc.h: Use the standard header with GPL copyright.
34536         * lib/safe-alloc.c: Likewise.
34537         Reported by Ian Beckwith <ianb@erislabs.net>.
34538
34539 2009-09-18  Bruno Haible  <bruno@clisp.org>
34540
34541         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
34542         Reported by <erobles@sensacd.com.mx>.
34543
34544 2009-09-17  Eric Blake  <ebb9@byu.net>
34545
34546         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
34547         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
34548         slashes when checking if last component is missing.
34549         * tests/test-canonicalize.c (main): Test this.
34550
34551         canonicalize, canonicalize-lgpl: honor // if distinct from /
34552         * modules/canonicalize (Files): Add double-slash-root.m4.
34553         * modules/canonicalize-lgpl (Files): Likewise.
34554         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34555         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
34556         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
34557         fallback definition.
34558         (canonicalize_filename_mode): Use it to protect //.
34559         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
34560         (__realpath): Likewise.
34561         * tests/test-canonicalize.c (main): Test this.
34562         * tests/test-canonicalize-lgpl.c (main): Likewise.
34563         * modules/canonicalize-tests (Depends-on): Add same-inode.
34564         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34565
34566         canonicalize-lgpl: fix glibc bug with trailing slash
34567         * m4/canonicalize-lgpl.m4: Move contents...
34568         * m4/canonicalize.m4: ...here.
34569         (gl_CANONICALIZE_LGPL): Factor realpath check...
34570         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
34571         glibc 2.3.5 bug, fixed 2005-04-27.
34572         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
34573         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
34574         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
34575         * modules/canonicalize-lgpl (Files): Manage file rename.
34576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34577         * modules/stdlib (Makefile.am): Substitute witness.
34578         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
34579         is needed.
34580         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
34581         replacement is required.
34582         * lib/canonicalize.c (canonicalize_file_name): Likewise.
34583         * doc/glibc-functions/canonicalize_file_name.texi
34584         (canonicalize_file_name): Document this.
34585         * doc/posix-functions/realpath.texi (realpath): Likewise.
34586
34587         canonicalize-lgpl: reject non-directory with trailing slash
34588         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
34589         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
34590         catches failures in glibc 2.3.5.
34591         * tests/test-canonicalize.c (main): Likewise.
34592
34593         canonicalize-lgpl: use native realpath if it works
34594         * lib/canonicalize-lgpl.c (realpath): Guard with
34595         FUNC_REALPATH_WORKS.
34596         * lib/stdlib.in.h (realpath): Make declaration optional based on
34597         HAVE_REALPATH.
34598         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
34599         native realpath works.
34600         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34601         * modules/stdlib (Makefile.am): Substitute witness.
34602
34603         canonicalize, canonicalize-lgpl: use <stdlib.h>
34604         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
34605         (Include): Mention <stdlib.h>.
34606         (configure.ac): Mention functions we provide.
34607         * modules/canonicalize (configure.ac): Likewise.
34608         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
34609         realpath if canonicalize_file_name is missing.
34610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
34611         * modules/stdlib (Makefile.am): Substitute witnesses.
34612         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
34613         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
34614         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
34615         * NEWS: Document this.
34616         * doc/glibc-functions/canonicalize_file_name.texi
34617         (canonicalize_file_name): Likewise.
34618         * doc/posix-functions/realpath.texi (realpath): Likewise.
34619         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
34620
34621         test-canonicalize: consolidate into single C program
34622         * tests/test-canonicalize.sh: Delete; move setup into...
34623         * tests/test-canonicalize.c (main): ...the program, making it
34624         easier to run in debugger.  Add some tests.
34625         * modules/canonicalize-tests (Files): Remove unused file.
34626         (Depends-on): Add progname.
34627         (configure.ac, Makefile.am): Simplify.
34628
34629         test-canonicalize-lgpl: consolidate into single C program
34630         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
34631         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
34632         easier to run in debugger.  Add some tests.
34633         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
34634         (configure.ac, Makefile.am): Simplify.
34635
34636         canonicalize: avoid resolvepath
34637         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
34638         unnecessary checks.
34639         * lib/canonicalize.c (includes): Simplify.
34640         (canonicalize_file_name): Drop resolvepath implementation.
34641         * modules/canonicalize (Depends-on): Drop filenamecat.
34642
34643         canonicalize: don't lose errno
34644         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
34645         over calls to free.
34646
34647         canonicalize: simplify errno handling
34648         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
34649         assignment.
34650
34651         canonicalize, canonicalize-lgpl: update module dependencies
34652         * modules/canonicalize (Depends-on): Add extensions, lstat,
34653         pathmax, stdlib.
34654         (Files): Drop pathmax.h.
34655         (configure.ac): Adjust macro name.
34656         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
34657         lstat, stdlib, sys_stat.
34658         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
34659         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
34660         extensions.
34661         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
34662         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
34663         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
34664         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
34665         declaration, if available.
34666         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
34667         we can rely on the readlink module.
34668         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
34669         (includes): Use <unistd.h> unconditionally.
34670
34671 2009-09-17  Eric Blake  <ebb9@byu.net>
34672
34673         maint: make Include sections of modules consistent
34674         * modules/alloca: Use only header name; no need to list #include.
34675         * modules/alloca-opt: Likewise.
34676         * modules/arpa_inet: Likewise.
34677         * modules/canon-host: Likewise.
34678         * modules/configmake: Likewise.
34679         * modules/dirent: Likewise.
34680         * modules/eealloc: Likewise.
34681         * modules/environ: Likewise.
34682         * modules/fchdir: Likewise.
34683         * modules/fcntl: Likewise.
34684         * modules/fcntl-h: Likewise.
34685         * modules/gethrxtime: Likewise.
34686         * modules/gettime: Likewise.
34687         * modules/ignore-value: Likewise.
34688         * modules/inet_ntop: Likewise.
34689         * modules/inet_pton: Likewise.
34690         * modules/inttypes: Likewise.
34691         * modules/isnand-nolibm: Likewise.
34692         * modules/isnanf-nolibm: Likewise.
34693         * modules/mbchar: Likewise.
34694         * modules/mbfile: Likewise.
34695         * modules/mbiter: Likewise.
34696         * modules/mbuiter: Likewise.
34697         * modules/netdb: Likewise.
34698         * modules/netinet_in: Likewise.
34699         * modules/nproc: Likewise.
34700         * modules/pagealign_alloc: Likewise.
34701         * modules/poll: Likewise.
34702         * modules/printf-frexp: Likewise.
34703         * modules/pthread: Likewise.
34704         * modules/putenv: Likewise.
34705         * modules/random_r: Likewise.
34706         * modules/relocatable-prog: Likewise.
34707         * modules/search: Likewise.
34708         * modules/select: Likewise.
34709         * modules/selinux-h: Likewise.
34710         * modules/settime: Likewise.
34711         * modules/signal: Likewise.
34712         * modules/size_max: Likewise.
34713         * modules/socklen: Likewise.
34714         * modules/ssize_t: Likewise.
34715         * modules/stdarg: Likewise.
34716         * modules/stdbool: Likewise.
34717         * modules/stddef: Likewise.
34718         * modules/stdint: Likewise.
34719         * modules/stdio: Likewise.
34720         * modules/stdlib: Likewise.
34721         * modules/string: Likewise.
34722         * modules/strings: Likewise.
34723         * modules/sys_file: Likewise.
34724         * modules/sys_ioctl: Likewise.
34725         * modules/sys_select: Likewise.
34726         * modules/sys_socket: Likewise.
34727         * modules/sys_stat: Likewise.
34728         * modules/sys_time: Likewise.
34729         * modules/sys_times: Likewise.
34730         * modules/sys_utsname: Likewise.
34731         * modules/sys_wait: Likewise.
34732         * modules/sysexits: Likewise.
34733         * modules/time: Likewise.
34734         * modules/times: Likewise.
34735         * modules/tmpfile: Likewise.
34736         * modules/trim: Likewise.
34737         * modules/unistd: Likewise.
34738         * modules/wchar: Likewise.
34739         * modules/wctype: Likewise.
34740
34741 2009-09-17  Bruno Haible  <bruno@clisp.org>
34742
34743         Make getdate.y compile on QNX and NetBSD 5 / i386.
34744         * m4/getdate.m4 (gl_GETDATE): Conditionally define
34745         TIME_T_FITS_IN_LONG_INT.
34746         * lib/getdate.y (long_time_t): New type.
34747         (relative_time): Change type of 'seconds' field to long_time_t.
34748         (get_date): Update types of local variables. Check against overflow
34749         during conversion from long_time_t to time_t.
34750         Reported by Matt Kraai <kraai@ftbfs.org>
34751         and Hasso Tepper <hasso@netbsd.org>.
34752
34753 2009-09-17  Bruno Haible  <bruno@clisp.org>
34754
34755         * modules/COPYING: Update copyright years.
34756         * modules/README: Likeiwse.
34757         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
34758         Reported by Ian Beckwith <ianb@erislabs.net>.
34759
34760 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34761
34762         * users.txt: Update references for gnuit package.
34763
34764 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34765
34766         * m4/getdelim.m4: Fix typo in copyright line.
34767
34768 2009-09-17  Bruno Haible  <bruno@clisp.org>
34769
34770         * lib/atoll.c: Use the standard header with GPL copyright.
34771         * lib/argz.in.h: Likewise.
34772         * lib/glob.c: Likewise.
34773         * lib/glob-libc.h: Likewise.
34774         * lib/random_r.c: Likewise.
34775         * lib/siglist.h: Likewise.
34776         * lib/strsignal.c: Likewise.
34777         Reported by Ian Beckwith <ianb@erislabs.net>.
34778
34779 2009-09-17  Eric Blake  <ebb9@byu.net>
34780
34781         rmdir: ensure correct dependency order
34782         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
34783
34784 2009-09-17  Bruno Haible  <bruno@clisp.org>
34785
34786         Disable assertion that fails on NetBSD 5 / i386.
34787         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
34788         Reported by Sam Steingold <sds@gnu.org>
34789         and Hasso Tepper <hasso@netbsd.org>.
34790
34791 2009-09-16  Eric Blake  <ebb9@byu.net>
34792
34793         unlinkdir: port to mingw
34794         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
34795         on which no one can unlink a directory.
34796
34797         stdlib: sort witness names
34798         * modules/stdlib (Makefile.am): Sort replacements.
34799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34800         * lib/stdlib.in.h: Likewise.
34801
34802         parse-duration-tests: avoid link failure
34803         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
34804         LIBINTL.
34805         Reported by Tom G. Christensen.
34806
34807         openat-tests: ensure unlinkat behaves like rmdir
34808         * tests/test-rmdir.c (main): Factor guts...
34809         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
34810         * modules/rmdir-tests (Files): Ship new file.
34811         * modules/openat-tests: New test.
34812         * tests/test-unlinkat.c: Likewise.
34813
34814         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
34815         * modules/rmdir-errno (Status, Notice): Now obsolete.
34816
34817         rmdir: work around cygwin 1.5.x and mingw bugs
34818         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
34819         * lib/rmdir.c (rmdir): Work around it.
34820         * modules/rmdir (Status, Notice): No longer obsolete.
34821         (Files): Add dos.m4.
34822         (Depends-on): Add unistd.
34823         (configure.ac): Set witnesses.
34824         (License): Relax to LGPLv2+.
34825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
34826         * modules/unistd (Makefile.am): Substitute witnesses.
34827         * lib/unistd.in.h (rmdir): Declare replacement.
34828         * doc/posix-functions/rmdir.texi (rmdir): Document this.
34829         * modules/rmdir-tests: New tests.
34830         * tests/test-rmdir.c: Likewise.
34831
34832 2009-09-15  Eric Blake  <ebb9@byu.net>
34833
34834         fchdir: improve use of replacement functions
34835         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
34836         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
34837         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
34838         REPLACE_CLOSEDIR.
34839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
34840         * modules/sys_stat (Makefile.am): Substitute correct witness.
34841         * modules/dirent (Makefile.am): Likewise.
34842         * modules/unistd (Makefile.am): Likewise.
34843         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
34844         * lib/unistd.in.h (dup): Likewise.
34845         * lib/sys_stat.in.h (fstat): Likewise.
34846
34847         maint: ignore gnulib-tool temp files
34848         * .gitignore: Ignore files created during gnulib-tool --test.
34849
34850 2009-09-13  Jim Meyering  <meyering@redhat.com>
34851
34852         posixtm: don't reject a time that specify "60" as the number of seconds
34853         * lib/posixtm.c (posixtime): The code to reject invalid dates
34854         would also reject a time specified with the .60 suffix.
34855         But POSIX allows that, in order to accommodate leap seconds.
34856         So don't reject it.
34857         (main): Adjust tests accordingly.
34858         * modules/posixtm (Depends-on): Add stpcpy.
34859
34860 2009-09-11  Jim Meyering  <meyering@redhat.com>
34861
34862         announce-gen: include [$release_type] in emitted Subject:
34863         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
34864         e.g., [stable] in the emitted Subject: line.
34865
34866 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34867
34868         Remove obsolete macros from several modules.
34869         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
34870         obsolete Autoconf macros with their modern counterparts.
34871         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
34872         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
34873         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
34874         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
34875         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
34876         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
34877         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34878         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34879         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
34880         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
34881         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
34882         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
34883         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
34884         * m4/sockets.m4 (gl_SOCKETS): Likewise.
34885         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
34886         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
34887         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34888         * m4/time_r.m4 (gl_TIME_R): Likewise.
34889         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
34890         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
34891         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34892
34893         Fix copyright header in build-aux scripts.
34894         * build-aux/git-version-gen: Fix copyright header to match GPLv3
34895         recommendation.
34896         * build-aux/ncftpput-ftp: Likewise.
34897         * build-aux/update-copyright: Likewise.
34898
34899 2009-09-09  Eric Blake  <ebb9@byu.net>
34900
34901         test-link: allow Linux choice of errno
34902         * tests/test-link.c (main): Relax test for alternate error.
34903
34904         strndup: fix improper m4 caching
34905         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
34906         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
34907         (gl_PREREQ_STRNDUP): Delete.
34908         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
34909         * modules/string (Makefile.am): Substitute it.
34910         * lib/string.in.h (strndup): Modernize prototype.
34911
34912         getcwd: port to mingw
34913         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
34914         different from the POSIX assumptions made throughout the getcwd
34915         module; fortunately, the mingw getcwd does not need replacement.
34916         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
34917         * modules/getcwd-tests: New test.
34918         * tests/test-getcwd.c: Likewise.
34919
34920         link: fix platform bugs
34921         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
34922         * lib/link.c (link): Work around them.  Fix related mingw bug.
34923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
34924         * modules/unistd (Makefile.am): Substitute it.
34925         * lib/unistd.in.h (link): Declare replacement.
34926         * doc/posix-functions/link.texi (link): Document this.
34927         * modules/link (Depends-on): Add strdup-posix, sys_stat.
34928
34929         test-link: consolidate into single C program, test more cases
34930         * tests/test-link.sh: Delete.
34931         * tests/test-link.c: Test more error conditions.  Exposes bugs on
34932         at least Cygwin and Solaris.
34933         * modules/link-tests (Files): Remove unused file.
34934         (Depends-on): Add errno, sys_stat.
34935         (Makefile.am): Simplify.
34936
34937 2009-09-08  Bruno Haible  <bruno@clisp.org>
34938
34939         Work around towlower, towupper bug on mingw.
34940         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
34941         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
34942         * doc/posix-functions/towlower.texi: Mention the mingw bug.
34943         * doc/posix-functions/towupper.texi: Likewise.
34944         Reported by Eric Blake.
34945
34946 2009-09-08  Jim Meyering  <meyering@redhat.com>
34947
34948         build: don't try to run autoheader if we don't use it
34949         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
34950         is not used in configure.ac.
34951
34952 2009-09-08  Eric Blake  <ebb9@byu.net>
34953
34954         euidaccess: fix compilation error
34955         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
34956
34957         rawmemchr: relax license
34958         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
34959         okay.
34960         Reported by Jim Meyering.
34961
34962         mkfifoat: new module
34963         * modules/mkfifoat: New file.
34964         * lib/mkfifoat.c: Likewise.
34965         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
34966         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34967         * modules/sys_stat (Makefile.am): Use them.
34968         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
34969         * MODULES.html.sh (File system functions): Mention module.
34970         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34971         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34972         * modules/mkfifoat-tests: New test.
34973         * tests/test-mkfifoat.c: Likewise.
34974
34975         strchrnul: relax license
34976         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
34977         okay.
34978         Reported by Jim Meyering.
34979
34980 2009-09-08  Eric Blake  <ebb9@byu.net>
34981
34982         fstatat: fix compilation on Solaris
34983         * lib/fstatat.c (includes): Add fcntl.h.
34984         Reported by Pádraig Brady.
34985
34986 2009-09-07  Eric Blake  <ebb9@byu.net>
34987
34988         rename: modernize replacement
34989         * modules/rename (Depends-on): Add stdio.
34990         (configure.ac): Declare witness.
34991         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
34992         stdio take care of replacement.
34993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
34994         * modules/stdio (Makefile.am): Substitute them.
34995         * lib/stdio.in.h (rename): Declare replacement.
34996         * lib/rename.c (includes): Allow cross-compilation to non-windows
34997         machines.
34998         * doc/posix-functions/rename.texi (rename): Improve
34999         documentation.
35000
35001         stdio: sort witness names
35002         * modules/stdio (Makefile.am): Sort replacements.
35003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35004         * lib/stdio.in.h: Likewise.
35005
35006         getcwd: minor cleanups
35007         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35008         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35009
35010         openat: provide more convenience names
35011         * modules/faccessat (configure.ac): Add C witness.
35012         * lib/unistd.in.h (readlinkat): Fix typo.
35013         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35014         convenience wrappers.
35015         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35016         wrappers in syntax checks.
35017
35018 2009-09-06  Eric Blake  <ebb9@byu.net>
35019
35020         doc: fix comments in recent patches
35021         * lib/faccessat.c: Mention correct function.
35022         * lib/fchmodat.c: Likewise.
35023         * lib/fchownat.c: Likewise.
35024         * lib/symlinkat.c: Likewise.
35025         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35026         constants.
35027
35028         faccessat, symlinkat: continue cleanup of previous patch
35029         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35030         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35031         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35033         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35034         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35035         set.
35036
35037 2009-09-06  Bruno Haible  <bruno@clisp.org>
35038
35039         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35040         (fstatat): Declare if GNULIB_FSTATAT is set.
35041         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35042         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35043         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35044         * modules/fcntl-h (Files): Remove m4/openat.m4.
35045         * modules/sys_stat (Files): Remove m4/openat.m4.
35046         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35047         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35048         * modules/unistd (Files): Remove m4/openat.m4.
35049         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35050         GNULIB_OPENAT.
35051         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35052         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35053         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35054         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35055         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35056         gl_OPENAT_DEFAULTS.
35057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35058         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35059         Don't require gl_OPENAT_DEFAULTS.
35060         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35061         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35062         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35063         (gl_OPENAT_DEFAULTS): Remove macro.
35064
35065 2009-09-06  Bruno Haible  <bruno@clisp.org>
35066
35067         * modules/openat (configure.ac): Remove unneeded witness.
35068
35069 2009-09-06  Bruno Haible  <bruno@clisp.org>
35070
35071         Set errno to ENOSYS when a function is entirely unsupported.
35072         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35073         EOPNOTSUPP.
35074         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35075         * modules/chown (Depends-on): Remove errno.
35076
35077 2009-09-06  Bruno Haible  <bruno@clisp.org>
35078
35079         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35080
35081 2009-09-06  Bruno Haible  <bruno@clisp.org>
35082
35083         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35084
35085 2009-09-06  Ben Pfaff  <blp@gnu.org>
35086             Bruno Haible  <bruno@clisp.org>
35087
35088         Work around a glibc bug in strtok_r.
35089         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35090         Undefine if UNDEFINE_STRTOK_R is set.
35091         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35092         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35093         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35094         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35095         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35096         UNDEFINE_STRTOK_R.
35097         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35098
35099 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35100
35101         exclude: minor fix
35102         * lib/exclude.c: Include wctype.h
35103
35104 2009-09-06  Akim Demaille  <demaille@gostai.com>
35105
35106         bootstrap: improve error message
35107         * build-aux/bootstrap (find_tool): Upon failure, report the list
35108         of candidates.
35109         Honor the initial value of the envvar.
35110
35111 2009-09-05  Eric Blake  <ebb9@byu.net>
35112
35113         symlinkat: new module
35114         * modules/symlinkat: New file.
35115         * lib/symlinkat.c: Likewise.
35116         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35118         * modules/unistd (Makefile.am): Use them.
35119         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35120         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35121         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35122         * MODULES.html.sh (File system functions): Mention module.
35123         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35124         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35125         * modules/symlinkat-tests: New test.
35126         * tests/test-symlinkat.c: Likewise.
35127
35128         test-openat-safer: add more checks
35129         * tests/test-openat-safer.c (main): Check more code paths.
35130
35131 2009-09-05  Jim Meyering  <meyering@redhat.com>
35132
35133         syntax-check: detect unnecessary inclusion of openat.h
35134         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35135
35136 2009-09-05  Bruno Haible  <bruno@clisp.org>
35137
35138         Support towlower, towupper.
35139         * doc/posix-functions/towlower.texi: Mention module wctype.
35140         * doc/posix-functions/towupper.texi: Likewise.
35141         * lib/wctype.in.h (towlower, towupper): New functions.
35142         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35143         (ASSERT): New macro.
35144         (e): New variable.
35145         (main): Test also towlower, towupper. Test WEOF argument.
35146         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35147
35148 2009-09-05  Bruno Haible  <bruno@clisp.org>
35149
35150         Fix conversion behaviour when the input is invalid.
35151         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35152         mark occurring in first pass of indirect conversion.
35153         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35154         input.
35155         Found by clang's static analyzer.
35156
35157 2009-09-05  Bruno Haible  <bruno@clisp.org>
35158
35159         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35160         where direct conversion is possible.
35161
35162 2009-09-04  Eric Blake  <ebb9@byu.net>
35163
35164         openat: fail with ENOENT on empty name
35165         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35166         buffer.
35167
35168         link-follow: fix logic bug in prior patch
35169         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35170         reversed sense of yes and no in prior patch.  Avoid confusing
35171         compilation failure with desired semantics.
35172
35173         link-follow: accomodate mingw and cross-compilation
35174         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35175         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35176         cross-compilation results to -1, to make linkat easier to
35177         implement when cross-compiling.  Trivially support mingw.
35178         * modules/link-follow (configure.ac): Call new name.
35179         * NEWS: Mention this.
35180
35181 2009-09-03  Eric Blake  <ebb9@byu.net>
35182
35183         faccessat: compile replacement
35184         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35185         needed.
35186
35187         fts: fix compilation error
35188         * lib/fts.c (includes): Re-add "openat.h", for
35189         openat_needs_fchdir.
35190
35191         faccessat: new module
35192         * modules/faccessat: New file.
35193         * lib/faccessat.c: Likewise.
35194         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35196         * modules/unistd (Makefile.am): Use it.
35197         * lib/unistd.in.h (faccessat): Declare it.
35198         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35199         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35200         * MODULES.html.sh (File system functions): Mention it.
35201         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35202         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35203
35204         euidaccess: prefer POSIX over non-standard implementation
35205         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35206         * lib/euidaccess.c (euidaccess): Use it if available.
35207
35208         openat: make template easier to use
35209         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35210         AT_FUNC_F2 to be undefined.
35211         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35212         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35213         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35214         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35215         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35216         Likewise.
35217         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35218         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35219         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35220         Likewise.
35221
35222         openat: declare in POSIX headers
35223         * NEWS: Mention this.
35224         * modules/openat (configure.ac): Declare witnesses.
35225         (Depends-on): Add fcntl-h, sys_stat, unistd.
35226         (Include): Mention correct headers.
35227         * modules/fcntl-h (Depends-on): Add link-warning.
35228         (Files): Add openat.m4.
35229         (Makefile.am): Substitute witnesses.
35230         * modules/sys_stat (Files, Makefile.am): Likewise.
35231         * modules/unistd (Files, Makefile.am): Likewise.
35232         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35233         (gl_OPENAT_DEFAULTS): New macro.
35234         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35236         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35237         (SYS_STAT_H): Remove unused variable.
35238         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35239         * lib/fcntl--.h (includes): Remove unneeded header.
35240         * lib/openat-safer.c (includes): Likewise.
35241         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35242         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35243         appropriate headers.
35244         (__OPENAT_PREFIX): Delete.
35245         * lib/fcntl.in.h (openat): Provide declaration.
35246         (AT_FDCWD): Fix Solaris bug.
35247         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35248         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35249         * lib/fchmodat.c (includes):  Adjust to find declaration.
35250         * lib/fchownat.c (includes): Likewise.
35251         * lib/mkdirat.c (includes): Likewise.
35252         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35253         still visible.
35254
35255 2009-09-02  Eric Blake  <ebb9@byu.net>
35256
35257         errno: use consistently
35258         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35259         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35260         * lib/canonicalize.c (ELOOP): Likewise.
35261         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35262         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35263         * lib/lchown.c (EOPNOTSUPP): Likewise.
35264         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35265         * lib/savewd.c (ESTALE): Likewise.
35266         * lib/settime.c (ENOSYS): Likewise.
35267         * lib/utimens.c (ENOSYS): Likewise.
35268         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35269         * lib/chdir-safer.c (ELOOP): Likewise.
35270         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35271         * modules/c-stack (Depends-on): Add errno.
35272         * modules/canonicalize (Depends-on): Likewise.
35273         * modules/chdir-safer (Depends-on): Likewise.
35274         * modules/fdopendir (Depends-on): Likewise.
35275         * modules/inet_ntop (Depends-on): Likewise.
35276         * modules/inet_pton (Depends-on): Likewise.
35277         * modules/lchown (Depends-on): Likewise.
35278         * modules/openat (Depends-on): Likewise.
35279         * modules/savewd (Depends-on): Likewise.
35280         * modules/settime (Depends-on): Likewise.
35281         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35282
35283         fts: avoid leaking fds
35284         * modules/fts (Depends-on): Add cloexec.
35285         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35286         flag.
35287
35288         fts: make directory fds more robust
35289         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35290         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35291
35292         backupfile, chdir-long, fts, savedir: make safer
35293         * lib/backupfile.c (includes): Use "dirent--.h", since
35294         numbered_backup can write to stderr during readdir.
35295         * lib/savedir.c (includes): Likewise.
35296         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35297         emulation can write to stderr on failure.
35298         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35299         * lib/getcwd.c: Document why opendir_safer is unused.
35300         * lib/glob.c: Likewise.
35301         * lib/scandir.c: Likewise.
35302         * lib/openat-proc.c: Likewise, for open_safer.
35303         * modules/backupfile (Depends-on): Add dirent-safer.
35304         * modules/savedir (Depends-on): Likewise.
35305         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35306         * modules/chdir-long (Depends-on): Add openat-safer.
35307
35308         openat-safer: new module
35309         * modules/openat-safer: New file.
35310         * lib/openat-safer.c: Likewise.
35311         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35312         * lib/fcntl-safer.h (openat_safer): Declare.
35313         * lib/fcntl--.h (openat): Override.
35314         * MODULES.html.sh (File descriptor based I/O): Mention it.
35315         * lib/openat.h: Add double-inclusion guards.
35316         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35317         "fcntl--.h", so we can implement openat.
35318         * modules/openat-safer-tests: New test.
35319         * tests/test-openat-safer.c: New file.
35320
35321         dirent-safer: new module
35322         * modules/dirent-safer: New file.
35323         * lib/dirent--.h: Likewise.
35324         * lib/dirent-safer.h: Likewise.
35325         * lib/opendir-safer.c: Likewise.
35326         * m4/dirent-safer.m4: Likewise.
35327         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35328         * modules/dirent-safer-tests: New test.
35329         * tests/test-dirent-safer.c: New file.
35330         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35331
35332         fdopendir: optimize on mingw
35333         * lib/unistd.in.h (_gl_directory_name): New prototype.
35334         * lib/fchdir.c (_gl_directory_name): Implement it.
35335         (fchdir): Use it to simplify implementation.
35336         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35337         fchdir, when available, to avoid calling [f]chdir().
35338
35339         fdopendir: split into its own module
35340         * lib/openat.c (fdopendir): Move...
35341         * lib/fdopendir.c: ...into new file.
35342         * modules/fdopendir: New module.
35343         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35344         * modules/openat (Depends-on): Add fdopendir.
35345         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35346         fdopendir here.
35347         * modules/savedir (Depends-on): Only need fdopendir, not full
35348         openat.
35349         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35350         * lib/openat.h (fdopendir): Drop prototype.
35351         * lib/dirent.in.h (fdopendir): Provide prototype.
35352         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35353         * modules/dirent (Makefile.am): Substitute them.
35354         * MODULES.html.sh (File system functions): Mention it.
35355         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
35356         * modules/fdopendir-tests: New file.
35357         * tests/test-fdopendir.c: Likewise.
35358
35359         fchdir: use more consistent macro convention
35360         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
35361         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
35362         REPLACE_FCHDIR, rather than relying on config.h macros.
35363         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
35364         inside a single make-time REPLACE_FCHDIR block, rather than using
35365         the config.h FCHDIR_REPLACEMENT.
35366         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
35367         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
35368         Manage fstat replacement.
35369         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
35370         REPLACE_FCHDIR.
35371         * modules/sys_stat (Files): Add m4/unistd_h.m4.
35372         (Makefile.am): Substitute REPLACE_FCHDIR.
35373         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
35374         FCHDIR_REPLACEMENT.
35375         * lib/dup-safer.c (dup_safer): Likewise.
35376         * lib/dup2.c (rpl_dup2): Likewise.
35377         * lib/dup3.c (rpl_dup3): Likewise.
35378         * lib/open.c (rpl_open): Likewise.
35379
35380         fchdir: simplify error handling, and support dup3
35381         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
35382         stdbool, malloc-posix, realloc-posix.
35383         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
35384         (ensure_dirs_slot): Return false on allocation failure.
35385         (rpl_dup2): Delete.
35386         (_gl_register_dup): New function.
35387         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
35388         (_gl_register_fd): Close fd on allocation failure.
35389         * lib/fcntl.in.h (_gl_register_fd): Update signature.
35390         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
35391         prototype.
35392         (rpl_dup2_fchdir): Delete prototype.
35393         * lib/open.c (open): Update caller.
35394         * lib/dup2.c (dup2): Track fchdir metadata.
35395         * lib/dup3.c (dup3): Likewise.
35396         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
35397         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
35398
35399 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35400
35401         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
35402         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
35403         don't pass arguments to AC_OUTPUT.
35404
35405 2009-09-02  Bruno Haible  <bruno@clisp.org>
35406
35407         * modules/mkdtemp (License): Relicense under LGPLv2+.
35408         Reported by Paolo Bonzini.
35409
35410 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35411
35412         Replace uses of obsolete autoconf macros in Jim's modules.
35413         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
35414         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
35415         can evoke a warning from autoconf when run with -Wobsolete
35416         enabled.  They were declared obsolete for good reasons (see
35417         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
35418         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
35419         should not continue using the deprecated macros.
35420         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
35421         obsolete Autoconf macros with modern counterparts.
35422         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35423         * m4/dos.m4 (gl_AC_DOS): Likewise.
35424         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
35425         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
35426         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
35427         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
35428         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
35429         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
35430         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
35431         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
35432         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35433         Likewise.
35434         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
35435         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35436         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
35437         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
35438         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35439         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35440
35441 2009-09-01  Eric Blake  <ebb9@byu.net>
35442
35443         fchdir: fix off-by-one bug in previous patch
35444         * lib/fchdir.c (rpl_fstat): Use correct bounds.
35445         (_gl_unregister_fd): Delete useless if.
35446
35447 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
35448
35449         maint.mk: sort the list of syntax-check rules
35450         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
35451         easier to get a sense of progress when the rules are run sequentially
35452         and take a long time.
35453
35454 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35455
35456         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35457         * modules/netinet_in: Likewise.
35458         * modules/sys_file: Likewise.
35459         * modules/sys_ioctl: Likewise.
35460         * modules/sys_select: Likewise.
35461         * modules/sys_socket: Likewise.
35462         * modules/sys_stat: Likewise.
35463         * modules/sys_time: Likewise.
35464         * modules/sys_times: Likewise.
35465         * modules/sys_utsname: Likewise.
35466         * modules/sys_wait: Likewise.
35467
35468 2009-09-01  Jim Meyering  <meyering@redhat.com>
35469
35470         fts: help ensure that return values are not ignored
35471         * lib/fts_.h (__GNUC_PREREQ): Define.
35472         (__attribute_warn_unused_result__): Define.
35473         (fts_children, fts_close, fts_open, fts_read): Declare with
35474         __attribute_warn_unused_result__.
35475
35476         fts: fts_close now fails also when closing a dir file descriptor fails
35477         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35478         and propagate to caller, along with errno.
35479
35480         announce-gen: correct formatting in --help output
35481         * build-aux/announce-gen (usage): Move the one-line description in
35482         --help output "up", to where it belongs, just after Usage:.
35483
35484 2009-08-31  Eric Blake  <ebb9@byu.net>
35485
35486         fchdir: port to mingw
35487         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
35488         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
35489         opened, then use a substitute.
35490         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
35491         replacement.
35492         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
35493         (_gl_register_fd): No need to check stat if open already filters
35494         all directories.
35495         (fchdir): Fix error condition to match POSIX.
35496         * modules/fchdir (Depends-on): Add sys_stat.
35497         * doc/posix-functions/open.texi (open): Document the limitation.
35498         * modules/fchdir-tests: New file.
35499         * tests/test-fchdir.c: Likewise.
35500
35501         canonicalize: allow cross-testing from cygwin to mingw
35502         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
35503         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
35504         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
35505         Likewise.
35506         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
35507         target does not support symlinks.
35508         * tests/test-canonicalize-lgpl.sh: Likewise.
35509
35510         chown: avoid compilation warning on mingw
35511         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
35512         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
35513         mingw.
35514         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35515         * modules/chown (Depends-on): Add errno.
35516
35517 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35518
35519         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
35520         command.
35521
35522 2009-08-31  Jim Meyering  <meyering@redhat.com>
35523
35524         canonicalize: remove useless initialization
35525         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35526         initialization of local, "end".
35527
35528 2009-08-30  Bruno Haible  <bruno@clisp.org>
35529
35530         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
35531         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
35532         ENOSYS.
35533
35534 2009-08-30  Bruno Haible  <bruno@clisp.org>
35535
35536         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
35537         /usr/xpg4/bin/tr when it exists.
35538         * tests/test-pipe-filter-gi1.sh: Likewise.
35539
35540 2009-08-30  Bruno Haible  <bruno@clisp.org>
35541
35542         Work around deficient /usr/bin/id program on Solaris.
35543         * tests/test-file-has-acl.sh (ID): New variable.
35544         * tests/test-set-mode-acl.sh (ID): Likewise.
35545         * tests/test-copy-acl.sh (ID): Likewise.
35546         * tests/test-copy-file.sh (ID): Likewise.
35547
35548 2009-08-30  Bruno Haible  <bruno@clisp.org>
35549
35550         New module 'xstriconveh'.
35551         * lib/xstriconveh.h: New file.
35552         * lib/xstriconveh.c: New file.
35553         * modules/xstriconveh: New file.
35554
35555 2009-08-30  Bruno Haible  <bruno@clisp.org>
35556
35557         Make it easier to use mem_cd_iconveh.
35558         * lib/striconveh.h (iconveh_t): New type.
35559         (iconveh_open, iconveh_close): New declarations.
35560         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35561         with a single 'const iconveh_t *' argument.
35562         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
35563         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35564         with a single 'const iconveh_t *' argument.
35565         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
35566         * tests/test-striconveh.c (main): Update.
35567         * NEWS: Mention the change.
35568
35569 2009-08-30  Bruno Haible  <bruno@clisp.org>
35570
35571         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
35572         problem.
35573
35574 2009-08-30  Bruno Haible  <bruno@clisp.org>
35575
35576         Work around iconv_open problem on Solaris.
35577         * lib/iconv_open-solaris.gperf: New file.
35578         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
35579         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
35580         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
35581         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
35582         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
35583         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
35584
35585 2009-08-29  Jim Meyering  <meyering@redhat.com>
35586
35587         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
35588         * top/maint.mk (cvs-check): Remove target; it was just an alias
35589         to the better-named vc-diff-check.
35590         (maintainer-distcheck): Remove rule.  It was used only from
35591         the (alpha/beta/major) target, and all of its commands but one
35592         were coreutils-specific.
35593         (vc-dist): Remove rule.
35594         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
35595         Run vc-diff-check, not vc-dist.
35596         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
35597
35598 2009-08-27  Bruno Haible  <bruno@clisp.org>
35599
35600         * tests/test-bitrotate.c (main): Remove test that uses a shift count
35601         of 0.
35602
35603 2009-08-27  Bruno Haible  <bruno@clisp.org>
35604
35605         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
35606         compilers.
35607         * doc/func.texi: Document the SunPRO C bug.
35608
35609 2009-08-27  Bruno Haible  <bruno@clisp.org>
35610
35611         Fix link error on Solaris.
35612         * tests/test-parse-duration.c (xstrdup): Remove function.
35613
35614 2009-08-26  Pádraig Brady  <P@draigbrady.com>
35615
35616         ignore-value: handle pointer types, too
35617         * lib/ignore-value.h (__attribute__): Remove definition.
35618         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
35619         of a more concise and more-often effective "(void) i" statement.
35620         (ignore_ptr): New function to suppress warnings from functions that
35621         return pointers, and to make it explicit that one function doesn't
35622         handle all cases.
35623
35624 2009-08-25  Bruno Haible  <bruno@clisp.org>
35625
35626         dup2: work around a Linux bug.
35627         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
35628         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
35629         * doc/posix-functions/dup2.texi: Mention the Linux bug.
35630         Reported by Simon Josefsson.
35631
35632 2009-08-25  Jim Meyering  <meyering@redhat.com>
35633
35634         libguestfs uses gnulib
35635         * users.txt: Add libguestfs.
35636
35637 2009-08-24  Eric Blake  <ebb9@byu.net>
35638
35639         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
35640         * lib/pipe2.c (includes): Add binary-io.h.
35641         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
35642
35643 2009-08-24  Bruno Haible  <bruno@clisp.org>
35644
35645         Tolerate declared but missing accept4 syscall.
35646         * lib/accept4.c (accept4): Invoke original accept4 function first, if
35647         available.
35648         * lib/sys_socket.in.h (accept4): If the function is already present,
35649         override it.
35650         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
35651         * modules/accept4 (Makefile.am): Compile accept4.c always.
35652         Reported by Paolo Bonzini and Eric Blake.
35653
35654 2009-08-23  Bruno Haible  <bruno@clisp.org>
35655
35656         New module 'accept4'.
35657         * lib/sys_socket.in.h (accept4): New declaration.
35658         * lib/accept4.c: New file.
35659         * m4/accept4.m4: New file.
35660         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35661         GNULIB_ACCEPT4, HAVE_ACCEPT4.
35662         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
35663         HAVE_ACCEPT4.
35664         * modules/accept4: New file.
35665         * doc/glibc-functions/accept4.texi: Mention the new module.
35666
35667 2009-08-24  Jim Meyering  <meyering@redhat.com>
35668
35669         progname: also set global program_invocation_name, when possible
35670         Before this change, a libtool-enabled program that calls glibc's
35671         error function would report the program name as
35672         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
35673         * modules/progname (configure.ac): Check for a declaration of
35674         program_invocation_name.
35675         * lib/progname.c:  Include <errno.h>.
35676         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
35677         Set program_invocation_name.
35678
35679 2009-08-23  Bruno Haible  <bruno@clisp.org>
35680
35681         * lib/dup3.c: Include <string.h>.
35682
35683 2009-08-23  Bruno Haible  <bruno@clisp.org>
35684
35685         * lib/dup3.c (dup3): Test only once whether the system actually exists.
35686         * lib/pipe2.c (pipe2): Likewise.
35687         Suggested by Eric Blake.
35688
35689 2009-08-23  Bruno Haible  <bruno@clisp.org>
35690
35691         Tolerate declared but missing dup3 syscall.
35692         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
35693         * lib/unistd.in.h (dup3): If the function is already present,
35694         override it.
35695         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
35696         * modules/dup3 (Makefile.am): Compile dup3.c always.
35697         Reported by Paolo Bonzini.
35698
35699 2009-08-23  Bruno Haible  <bruno@clisp.org>
35700
35701         Tolerate declared but missing pipe2 syscall.
35702         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
35703         available.
35704         * lib/unistd.in.h (pipe2): If the function is already present,
35705         override it.
35706         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
35707         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
35708         Reported by Paolo Bonzini.
35709
35710 2009-08-23  Bruno Haible  <bruno@clisp.org>
35711
35712         * lib/pipe2.c (pipe2): Move #ifs inside function.
35713
35714 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35715
35716         quotearg: document limitations of quote_these_too
35717         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
35718         those limitations are created.
35719         * lib/quotearg.h (set_char_quoting): Document that digits and
35720         letters that are special after backslash are not permitted.
35721         (quotearg_char): Cross-reference set_char_quoting documentation.
35722
35723 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
35724
35725         quotearg: implement custom_quoting_style
35726         * lib/quotearg.c: (struct quoting_options): Add left_quote and
35727         right_quote fields.
35728         (set_custom_quoting): New public function.
35729         (quotearg_buffer_restyled): Add left_quote and right_quote
35730         arguments, handle them very much like locale quoting, and update
35731         all uses.
35732         (quotearg_n_custom): New public function.
35733         (quotearg_n_custom_mem): New public function.
35734         (quotearg_custom): New public function.
35735         (quotearg_custom_mem): New public function.
35736         * lib/quotearg.h: Prototype and document new public functions.
35737         (enum quoting_style): For escape_quoting_style and
35738         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
35739         ignored even though they're otherwise like c_quoting_style.
35740         Add custom_quoting_style member and document with comparison to
35741         clocale_quoting_style.
35742         * tests/test-quotearg.c (custom_quotes): New array.
35743         (custom_results): New array.
35744         (main): Extend to test custom quoting.
35745
35746 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35747
35748         quotearg: fix right quote escaping when it's in quote_these_too
35749         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
35750         quote, be sure to prepend only one backslash.
35751         * tests/test-quotearg.c (use_quote_double_quotes): New function.
35752         (main): Test it.
35753
35754 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35755
35756         quotearg-tests: test escaping of embedded locale quotes
35757         * tests/test-quotearg.c (struct result_strings): Add member for
35758         new input.
35759         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
35760         (inputs): Add new input.
35761         (results_g): Add expected results.
35762         (flag_results): Likewise.
35763         (locale_results): Likewise.
35764         (compare_strings): Check those.
35765
35766 2009-08-23  Bruno Haible  <bruno@clisp.org>
35767
35768         Tests for module 'dup3'.
35769         * modules/dup3-tests: New file.
35770         * tests/test-dup3.c: New file.
35771
35772         New module 'dup3'.
35773         * lib/unistd.in.h (dup3): New declaration.
35774         * lib/dup3.c: New file.
35775         * m4/dup3.m4: New file.
35776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
35777         HAVE_DUP3.
35778         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
35779         * modules/dup3: New file.
35780         * doc/glibc-functions/dup3.texi: Mention the new module.
35781
35782 2009-08-23  Bruno Haible  <bruno@clisp.org>
35783
35784         Tweak the dup2 test.
35785         * tests/test-dup2.c (main): Create the test file empty. Verify that an
35786         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
35787         the test file is still empty. Fix argument order of lseek.
35788
35789 2009-08-23  Bruno Haible  <bruno@clisp.org>
35790
35791         Avoid test link errors when the modules getopt-gnu, gettext are used.
35792         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
35793         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35794
35795 2009-08-23  Bruno Haible  <bruno@clisp.org>
35796
35797         Fix getdtablesize() on mingw.
35798         * lib/getdtablesize.c (getdtablesize): Implement differently.
35799         * lib/unistd.in.h (getdtablesize): Improve comment.
35800
35801 2009-08-23  Bruno Haible  <bruno@clisp.org>
35802
35803         New module 'mkostemp'.
35804         Based on Ulrich Drepper's 2007-08-10 change in glibc.
35805         * lib/stdlib.in.h (mksotemp): New declaration.
35806         * lib/mkostemp.c: New file, from glibc with modifications.
35807         * lib/tempname.h (GT_FILE): Remove outdated comment.
35808         (gen_tempname): Add flags argument.
35809         * lib/tempname.c (__GT_BIGFILE): Remove macro.
35810         (__GT_FILE): Map to 1.
35811         (small_open, large_open): Remove macros.
35812         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
35813         * lib/mkstemp.c (mkstemp): Update.
35814         * lib/mkdtemp.c (mkdtemp): Likewise.
35815         * m4/mkostemp.m4: New file.
35816         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
35817         HAVE_MKOSTEMP.
35818         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
35819         HAVE_MKOSTEMP.
35820         * modules/mkostemp: New file, based on modules/mkstemp.
35821         * doc/glibc-functions/mkostemp.texi: Mention the new module.
35822         * NEWS: Mention the change.
35823
35824 2009-08-23  Bruno Haible  <bruno@clisp.org>
35825
35826         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
35827         Reported by Eric Blake.
35828
35829 2009-08-23  Bruno Haible  <bruno@clisp.org>
35830
35831         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
35832         Reported by Eric Blake.
35833
35834 2009-08-23  Bruno Haible  <bruno@clisp.org>
35835
35836         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
35837         * modules/pipe2 (Depends-on): Likewise.
35838
35839 2009-08-23  Eric Blake  <ebb9@byu.net>
35840
35841         fcntl-h: add O_TTY_INIT support
35842         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
35843         * tests/test-fcntl-h.c (o): Test it.
35844         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35845
35846         fcntl-h: rename from fcntl, in preparation for fcntl(2)
35847         * modules/fcntl: Move <fcntl.h> header replacement...
35848         * modules/fcntl-h: ...to new name, so as not to collide with
35849         like-named function.
35850         * tests/test-fcntl.c: Rename...
35851         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
35852         * modules/fcntl-tests: Rename...
35853         * modules/fcntl-h-tests: ...to this.  Update test file name.
35854         * modules/chdir-long (Depends-on): Update clients.
35855         * modules/chdir-safer (Depends-on): Likewise.
35856         * modules/fcntl-safer (Depends-on): Likewise.
35857         * modules/fts (Depends-on): Likewise.
35858         * modules/mkancesdirs (Depends-on): Likewise.
35859         * modules/mkdir-p (Depends-on): Likewise.
35860         * modules/open (Depends-on): Likewise.
35861         * modules/savewd (Depends-on): Likewise.
35862         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
35863         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35864
35865 2009-08-22  Bruno Haible  <bruno@clisp.org>
35866
35867         * modules/binary-io (License): Relicense under LGPL.
35868         * modules/pipe2 (License): Likewise.
35869
35870 2009-08-22  Bruno Haible  <bruno@clisp.org>
35871
35872         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
35873         return value.
35874         * lib/pipe-filter-gi.c (filter_init): Likewise.
35875         Reported by Eric Blake.
35876
35877 2009-08-22  Bruno Haible  <bruno@clisp.org>
35878
35879         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
35880         * modules/pipe (Depends-on): Add pipe2.
35881
35882 2009-08-22  Bruno Haible  <bruno@clisp.org>
35883
35884         Tests for module 'pipe2'.
35885         * modules/pipe2-tests: New file.
35886         * tests/test-pipe2.c: New file.
35887
35888         New module 'pipe2'.
35889         * lib/unistd.in.h (pipe2): New declaration.
35890         * lib/pipe2.c: New file.
35891         * m4/pipe2.m4: New file.
35892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
35893         HAVE_PIPE2.
35894         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
35895         * modules/pipe2: New file.
35896         * doc/glibc-functions/pipe2.texi: Mention the new module.
35897
35898 2009-08-22  Bruno Haible  <bruno@clisp.org>
35899
35900         Reference some new glibc functions.
35901         * doc/glibc-functions/accept4.texi: New file.
35902         * doc/glibc-functions/dup3.texi: New file.
35903         * doc/glibc-functions/mkostemp.texi: New file.
35904         * doc/glibc-functions/pipe2.texi: New file.
35905         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
35906         (Glibc sys/socket.h): Refer to accept4.
35907         (Glibc unistd.h): Refer to dup3, pipe2.
35908         Reported by Eric Blake.
35909
35910 2009-08-22  Jim Meyering  <meyering@redhat.com>
35911             Bruno Haible  <bruno@clisp.org>
35912
35913         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
35914         This makes it so packages using automake-1.11's silent-rules option
35915         can print e.g., a single "GEN    configmake.h" line, rather than
35916         the 30+ statements that perform the job.  If you want to see the
35917         actual commands, you can still run "make V=1".
35918         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
35919         so that make output is abbreviated when those variables are defined
35920         appropriately.
35921         * modules/argz: Likewise.
35922         * modules/arpa_inet: Likewise.
35923         * modules/byteswap: Likewise.
35924         * modules/configmake: Likewise.
35925         * modules/dirent: Likewise.
35926         * modules/errno: Likewise.
35927         * modules/fcntl: Likewise.
35928         * modules/float: Likewise.
35929         * modules/fnmatch: Likewise.
35930         * modules/getopt-posix: Likewise.
35931         * modules/glob: Likewise.
35932         * modules/iconv_open: Likewise.
35933         * modules/inttypes: Likewise.
35934         * modules/localcharset: Likewise.
35935         * modules/locale: Likewise.
35936         * modules/math: Likewise.
35937         * modules/netdb: Likewise.
35938         * modules/netinet_in: Likewise.
35939         * modules/poll: Likewise.
35940         * modules/posix_spawnp-tests: Likewise.
35941         * modules/sched: Likewise.
35942         * modules/search: Likewise.
35943         * modules/selinux-h: Likewise.
35944         * modules/signal: Likewise.
35945         * modules/spawn: Likewise.
35946         * modules/stdarg: Likewise.
35947         * modules/stdbool: Likewise.
35948         * modules/stddef: Likewise.
35949         * modules/stdint: Likewise.
35950         * modules/stdio: Likewise.
35951         * modules/stdlib: Likewise.
35952         * modules/string: Likewise.
35953         * modules/strings: Likewise.
35954         * modules/sys_file: Likewise.
35955         * modules/sys_ioctl: Likewise.
35956         * modules/sys_select: Likewise.
35957         * modules/sys_socket: Likewise.
35958         * modules/sys_stat: Likewise.
35959         * modules/sys_time: Likewise.
35960         * modules/sys_times: Likewise.
35961         * modules/sys_utsname: Likewise.
35962         * modules/sys_wait: Likewise.
35963         * modules/sysexits: Likewise.
35964         * modules/time: Likewise.
35965         * modules/unistd: Likewise.
35966         * modules/wchar: Likewise.
35967         * modules/wctype: Likewise.
35968
35969 2009-08-22  Jim Meyering  <meyering@redhat.com>
35970
35971         announce-gen: detect write failure
35972         * build-aux/announce-gen: Add Coda at end.
35973         Remove equivalent-but-more-verbose block at top.
35974
35975 2009-08-19  Akim Demaille  <demaille@gostai.com>
35976
35977         bootstrap: --help to stdout.
35978         * bootstrap (usage): Don't send --help to stderr.
35979         Use a here doc instead of a long string.
35980
35981 2009-08-21  Eric Blake  <ebb9@byu.net>
35982
35983         test-popen-safer: split from test-popen
35984         * tests/test-popen.c (main): Move...
35985         * tests/test-popen.h: ...into new file.
35986         * tests/test-popen-safer2.c: New file.
35987         * modules/popen-tests (Files): Add test-popen.h.
35988         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
35989         Suggested by Bruno Haible.
35990
35991         test-fcntl-safer: split from test-open
35992         * tests/test-open.c (main): Move...
35993         * tests/test-open.h: ...into new file.
35994         * tests/test-fcntl-safer.c: New file.
35995         * modules/open-tests (Files): Add test-open.h.
35996         * modules/fcntl-safer-tests: New file.
35997         Suggested by Bruno Haible.
35998
35999         test-fopen-safer: split from test-fopen
36000         * tests/test-fopen.c (main): Move...
36001         * tests/test-fopen.h: ...into new file.
36002         * tests/test-fopen-safer.c: New file.
36003         * modules/fopen-tests (Files): Add test-fopen.h.
36004         * modules/fopen-safer-tests: New file.
36005         Suggested by Bruno Haible.
36006
36007 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36008
36009         popen-safer: test O_CLOEXEC at run-time.
36010         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36011
36012 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36013
36014         fcntl: move more flags to the header
36015         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36016         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36017         * lib/fcntl.in.h: Do both things here.
36018
36019 2009-08-21  Jim Meyering  <meyering@redhat.com>
36020
36021         consistently remove $@-t before redirecting to it
36022         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36023         * modules/alloca-opt: Likewise.
36024         * modules/byteswap: Likewise.
36025         * modules/fnmatch: Likewise.
36026         * modules/getopt-posix: Likewise.
36027         * modules/glob: Likewise.
36028         * modules/poll: Likewise.
36029         * modules/posix_spawnp-tests: Likewise.
36030         * modules/sys_socket: Likewise.
36031         * modules/sysexits: Likewise.
36032
36033 2009-08-21  Eric Blake  <ebb9@byu.net>
36034
36035         popen: simplify access to original popen
36036         * lib/popen.c (rpl_popen): No need to worry about popen being a
36037         macro.
36038         Reported by Bruno Haible.
36039
36040 2009-08-20  Eric Blake  <ebb9@byu.net>
36041
36042         build: avoid some compiler warnings
36043         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36044         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36045         type.
36046         (new_exclude_segment, excluded_file_pattern_p)
36047         (excluded_file_name_p): Reduce scope.
36048         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36049         old-style declaration.
36050
36051 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36052
36053         * tests/test-exclude1.sh: Handle Windows EOL.
36054         * tests/test-exclude2.sh: Likewise.
36055         * tests/test-exclude3.sh: Likewise.
36056         * tests/test-exclude4.sh: Likewise.
36057         * tests/test-exclude5.sh: Likewise.
36058         * tests/test-exclude6.sh: Likewise.
36059         * tests/test-exclude7.sh: Likewise.
36060
36061 2009-08-19  Akim Demaille  <demaille@gostai.com>
36062
36063         bootstrap: find sha1sum when named gsha1sum.
36064         * bootstrap (find_tool): New.
36065         ($SHA1SUM): New.
36066         Use it.
36067
36068 2009-08-20  Jim Meyering  <meyering@redhat.com>
36069
36070         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36071         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36072         expression that converts "." in a file name to "\." in the resulting
36073         regexp.  Start with a dummy statement, so that prior shell variable
36074         definitions are expanded portably.  Reported by Simon Josefsson.
36075
36076 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36077
36078         Fix polling for writeability of a screen buffer.
36079         * lib/poll.c: Distinguish input and screen buffers for the
36080         Win32 implementation.
36081         * lib/select.c: Likewise.
36082
36083 2009-08-19  Eric Blake  <ebb9@byu.net>
36084
36085         popen-safer: prevent popen from clobbering std descriptors
36086         * modules/popen-safer: New file.
36087         * lib/popen-safer.c: Likewise.
36088         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36089         * lib/stdio--.h (popen): Provide override.
36090         * lib/stdio-safer.h (popen_safer): Provide declaration.
36091         * tests/test-popen.c (includes): Partially test this.
36092         * modules/popen-safer-tests: New file, for more tests.
36093         * tests/test-popen-safer.c: Likewise.
36094         * MODULES.html.sh (file stream based Input/Output): Mention it.
36095
36096         tests: test some of the *-safer modules
36097         * modules/fopen-safer (Depends-on): Add fopen.
36098         * modules/fcntl-safer (Depends-on): Add fcntl.
36099         * modules/stdlib-safer (Depends-on): Add stdlib.
36100         (configure.ac): Set indicator.
36101         * modules/unistd-safer (configure.ac): Likewise.
36102         * modules/tmpfile-safer (configure.ac): Likewise.
36103         (Depends-on): Add tmpfile.
36104         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36105         active.
36106         * tests/test-fopen.c (includes): Test safer versions when they are
36107         in use.
36108         * tests/test-open.c (includes): Likewise.
36109
36110         popen: fix cygwin 1.5 bug when stdin closed
36111         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36112         * modules/popen: New file.
36113         * modules/popen-tests: Likewise.
36114         * tests/test-popen.c: Likewise.
36115         * m4/popen.m4: Likewise.
36116         * lib/popen.c: Likewise.
36117         * lib/stdio.in.h (popen): New declaration.
36118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36119         * modules/stdio (Makefile.am): Likewise.
36120         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36121
36122 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36123
36124         maint.mk: give full control over update-copyright exclusions
36125         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36126         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36127         (update-copyright): Don't force inclusion of top-level
36128         ChangeLog.  Don't force exclusion of all COPYING files, but make
36129         them the default exclusion instead.
36130
36131 2009-08-16  Bruno Haible  <bruno@clisp.org>
36132
36133         Fix test failures on Solaris 10.
36134         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36135         tests when Solaris iconv() is used.
36136         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36137         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36138         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36139         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36140         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36141
36142 2009-08-16  Bruno Haible  <bruno@clisp.org>
36143
36144         Fix test failures on Solaris 10.
36145         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36146         'tr' program and pass it as first argument.
36147         * tests/test-pipe-filter-gi1.sh: Likewise.
36148         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36149         program as first argument.
36150         * tests/test-pipe-filter-gi1.c (main): Likewise.
36151
36152 2009-08-16  Eric Blake  <ebb9@byu.net>
36153
36154         fpurge: fix previous commits
36155         * modules/fpurge (Makefile.am): Make replacement conditional,
36156         partially reverting 2007-04-29 change; missed in previous
36157         attempt.
36158         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36159         is missing.
36160
36161 2009-08-16  Bruno Haible  <bruno@clisp.org>
36162
36163         Clarify fpurge's effect on the file position.
36164         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36165         * tests/test-fpurge.c (main): Make a second pass for checking the file
36166         position.
36167
36168 2009-08-16  Bruno Haible  <bruno@clisp.org>
36169
36170         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36171         declaration of fpurge is missing.
36172         * tests/test-fpurge.c (main): Check that the file has not more contents
36173         than expected. Close the file before removing it.
36174
36175 2009-08-15  Eric Blake  <ebb9@byu.net>
36176
36177         fpurge: don't wrap working cygwin implementation
36178         * lib/fpurge.c (fpurge): Fix comment typo.
36179         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36180         1.7 to avoid replacement.
36181         * tests/test-fpurge.c (main): Enhance test.
36182
36183 2009-08-15  Eric Blake  <ebb9@byu.net>
36184         and Jim Meyering  <meyering@redhat.com>
36185
36186         test-update-copyright: skip if perl is insufficient
36187         * tests/test-update-copyright.sh: Failure to run maintainer tool
36188         should not cause testsuite failure on cygwin 1.5.
36189
36190 2009-08-14  Eric Blake  <ebb9@byu.net>
36191
36192         doc: mention more functions added in cygwin 1.7.0
36193         * doc/posix-headers/limits.texi (limits.h): Update for recent
36194         cygwin additions.
36195         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36196         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36197         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36198         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36199         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36200
36201 2009-08-14  Eric Blake  <ebb9@byu.net>
36202
36203         maint.mk: simplify update-copyright rule
36204         * top/maint.mk (update-copyright-local): Delete, and document how
36205         to do it in cfg.mk instead.
36206         (update-copyright-exclude-regexp): Delete, and document how to do
36207         it in .x-update-copyright instead.
36208         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36209         exclude ChangeLog.
36210
36211 2009-08-14  Bruno Haible  <bruno@clisp.org>
36212
36213         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36214
36215 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36216
36217         maint.mk: support update-copyright-env
36218         * top/maint.mk (update-copyright-env): Define place-holder.
36219         (update-copyright): Expand $(update-copyright-env) before
36220         invoking update-copyright.
36221
36222 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36223
36224         update-copyright: implement forced reformatting
36225         * build-aux/update-copyright: Implement and document
36226         UPDATE_COPYRIGHT_FORCE.
36227         * tests/test-update-copyright.sh: Test it.
36228
36229 2009-08-14  Eric Blake  <ebb9@byu.net>
36230         and Bruno Haible  <bruno@clisp.org>
36231
36232         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36233         * tests/test-locale.c: Revert previous patch related to NULL.
36234         * tests/test-stdio.c: Likewise.
36235         * tests/test-stdlib.c: Likewise.
36236         * tests/test-string.c: Likewise.
36237         * tests/test-unistd.c: Likewise.
36238         * modules/time-tests (Depends-on): Add verify.
36239         * modules/wchar-tests (Depends-on): Likewise.
36240         * tests/test-time.c: Test for NULL compliance.
36241         * tests/test-wchar.c: Likewise.
36242         * modules/locale (Depends-on): Add stddef.
36243         * modules/stdio (Depends-on): Likewise.
36244         * modules/stdlib (Depends-on): Likewise.
36245         * modules/string (Depends-on): Likewise.
36246         * modules/time (Depends-on): Likewise.
36247         * modules/unistd (Depends-on): Likewise.
36248         * modules/wchar (Depends-on): Likewise.
36249         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36250         * lib/stdlib.in.h (includes): Likewise.
36251         * lib/string.in.h (includes): Likewise.
36252         * lib/time.in.h (includes): Likewise.
36253         * lib/unistd.in.h (includes): Likewise.
36254         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36255         replaced.
36256         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36257         * m4/stddef_h.m4: New file.
36258         * modules/stddef: Likewise.
36259         * lib/stddef.in.h: Likewise.
36260         * modules/stddef-tests: Likewise.
36261         * tests/test-stddef.c: Likewise.
36262         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36263         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36264         * doc/posix-headers/locale.texi (locale.h): Likewise.
36265         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36266         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36267         * doc/posix-headers/string.texi (string.h): Likewise.
36268         * doc/posix-headers/time.texi (time.h): Likewise.
36269         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36270         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36271
36272 2009-08-14  Eric Blake  <ebb9@byu.net>
36273
36274         doc: improve git diff of texinfo files
36275         * .gitattributes: Add rule for *.texi files, with hint on how to
36276         use it.
36277         Copied from m4, and based on a report by Bruno Haible.
36278
36279 2009-08-14  Bruno Haible  <bruno@clisp.org>
36280
36281         Disable multithread support by default on Cygwin 1.5.x for real.
36282         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36283
36284 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36285
36286         update-copyright: much ado about intervals
36287         * build-aux/update-copyright: Implement and document
36288         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36289         of copyright year intervals.
36290         Also, document UPDATE_COPYRIGHT_YEAR.
36291         * tests/test-update-copyright.sh: Test it.
36292
36293         update-copyright: convert 2-digit to 4-digit years
36294         * build-aux/update-copyright: Implement and document.
36295         * tests/test-update-copyright.sh: Update.
36296
36297 2009-08-14  Jim Meyering  <meyering@redhat.com>
36298
36299         test-exclude: avoid coreutils "make check" failure
36300         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36301         just as in test-argmatch.c.
36302
36303 2009-08-13  Eric Blake  <ebb9@byu.net>
36304
36305         test-dup2: fix bad assumption
36306         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36307         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36308
36309         test-version-etc: fix CRLF portability issue
36310         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36311         recognize \r.
36312         * tests/test-argp-version-etc-1.sh: Likewise.
36313
36314         getopt: update client modules
36315         * modules/argp (Depends-on): Use getopt-gnu.
36316         * modules/git-merge-changelog (Depends-on): Likewise.
36317         * modules/long-options (Depends-on): Likewise.
36318         * modules/xstrtol (Depends-on): Likewise.
36319
36320 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36321
36322         * tests/test-version-etc.sh: Don't fail on different
36323         project/version.  Don't fail on CRLF differences.  Rewrite to use
36324         multiple -e instead of multiple sed forks, suggested by Eric Blake
36325         <ebb9@byu.net>.
36326         * tests/test-argp-version-etc-1.sh: Likewise.
36327
36328 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36329
36330         * tests/test-version-etc.sh: Don't fail on different
36331         project/version.
36332
36333 2009-08-12  Bruno Haible  <bruno@clisp.org>
36334
36335         Tests for modules 'getopt-posix', 'getopt-gnu'.
36336         * modules/getopt-posix-tests: New file.
36337         * tests/test-getopt.c: New file.
36338         * tests/test-getopt.h: New file.
36339         * tests/test-getopt_long.h: New file.
36340
36341         New modules 'getopt-posix', 'getopt-gnu'.
36342         * modules/getopt-gnu: New file, renamed from modules/getopt.
36343         * modules/getopt-posix: New file.
36344         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36345         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36346         (gl_GETOPT): Remove macro.
36347         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36348         Disable the test against BSD systems that declare optreset. Test
36349         against mingw bug. Test against lack of support of optional arguments
36350         on many platforms.
36351         * doc/glibc-headers/getopt.texi: Update module name and list of
36352         relevant platforms.
36353         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
36354         'getopt-gnu' and more portability problems.
36355         * NEWS: Mention the changes.
36356
36357 2009-08-12  Bruno Haible  <bruno@clisp.org>
36358
36359         Ensure that optarg etc. get declared by <unistd.h>.
36360         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
36361         AC_USE_SYSTEM_EXTENSIONS.
36362         * modules/getopt (Depends-on): Add 'extensions'.
36363
36364 2009-08-12  Bruno Haible  <bruno@clisp.org>
36365
36366         Avoid test link errors.
36367         * modules/pipe-filter-ii-tests (Makefile.am): Define
36368         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
36369         * modules/pipe-filter-gi-tests (Makefile.am): Define
36370         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
36371         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36372
36373 2009-08-12  Bruno Haible  <bruno@clisp.org>
36374
36375         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
36376         gl_GETOPT_SUBSTITUTE before.
36377         (gl_GETOPT): Use it.
36378         * m4/argp.m4 (gl_ARGP): Update.
36379         Reported by Sergey Poznyakoff.
36380
36381         * m4/getopt.m4: Reorder macros.
36382         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
36383         (gl_GETOPT_SUBSTITUTE): Remove macro.
36384
36385 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36386
36387         Minor improvement in gitlog-to-changelog
36388
36389         * build-aux/gitlog-to-changelog: New option `--format' makes
36390         output format string configurable.
36391
36392 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36393
36394         Optimize exclude: use hash tables for non-wildcard patterns.
36395
36396         * lib/exclude.c: Include hash.h and mbuiter.h
36397         (struct exclude_pattern, exclude_segment): New data types.
36398         (struct exclude): Rewrite.
36399         (fnmatch_pattern_has_wildcards): New function.
36400         (new_exclude_segment, free_exclude_segment): New functions.
36401         (excluded_file_pattern_p, excluded_file_name_p): New functions.
36402         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
36403         * lib/exclude.h (is_fnmatch_pattern): New prototype.
36404         * modules/exclude: Depend on hash and mbuiter.
36405
36406         * modules/exclude-tests: New file.
36407         * tests/test-exclude.c: New file.
36408         * tests/test-exclude1.sh: New file.
36409         * tests/test-exclude2.sh: New file.
36410         * tests/test-exclude3.sh: New file.
36411         * tests/test-exclude4.sh: New file.
36412         * tests/test-exclude5.sh: New file.
36413         * tests/test-exclude6.sh: New file.
36414         * tests/test-exclude7.sh: New file.
36415
36416 2009-08-12  Bruno Haible  <bruno@clisp.org>
36417
36418         Ensure that getopt() gets declared by <unistd.h>.
36419         * lib/unistd.in.h: Conditionally include getopt.h.
36420         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
36421         Set GNULIB_UNISTD_H_GETOPT.
36422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36423         GNULIB_UNISTD_H_GETOPT.
36424         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
36425
36426 2009-08-12  Bruno Haible  <bruno@clisp.org>
36427
36428         Clarify logic.
36429         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
36430         gl_replace_getopt instead of GETOPT_H.
36431
36432 2009-08-12  Bruno Haible  <bruno@clisp.org>
36433
36434         * m4/getopt.m4: Add comments.
36435
36436 2009-08-12  Bruno Haible  <bruno@clisp.org>
36437
36438         Disable multithread support by default on Cygwin 1.5.x.
36439         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
36440         set gl_use_threads=no if not specified otherwise.
36441
36442 2009-08-11  Bruno Haible  <bruno@clisp.org>
36443
36444         Avoid compilation error on NetBSD 5.0.
36445         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
36446         * tests/test-stdio.c: Likewise.
36447         * tests/test-stdlib.c: Likewise.
36448         * tests/test-string.c: Likewise.
36449         * tests/test-unistd.c: Likewise.
36450         Reported by Greg Troxel <gdt@ir.bbn.com>
36451         at <https://savannah.gnu.org/support/?106973>.
36452
36453 2009-08-11  Bruno Haible  <bruno@clisp.org>
36454
36455         * modules/dup2-tests (Depends-on): Remove close.
36456
36457         Undo 2009-07-19 commit.
36458         * modules/acl-tests (Depends-on): Remove close.
36459         * modules/binary-io-tests (Depends-on): Likewise.
36460         * modules/closein-tests (Depends-on): Likewise.
36461         * modules/flock-tests (Depends-on): Likewise.
36462         * modules/fsync-tests (Depends-on): Likewise.
36463         * modules/lseek-tests (Depends-on): Likewise.
36464         * modules/pipe-tests (Depends-on): Likewise.
36465         * modules/posix_spawn-tests (Depends-on): Likewise.
36466         * modules/posix_spawnp-tests (Depends-on): Likewise.
36467         * modules/stat-time-tests (Depends-on): Likewise.
36468         * modules/yesno-tests (Depends-on): Likewise.
36469
36470 2009-08-10  Bruno Haible  <bruno@clisp.org>
36471
36472         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36473
36474 2009-08-10  Bruno Haible  <bruno@clisp.org>
36475
36476         Fix a gcc warning.
36477         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36478
36479 2009-08-10  Bruno Haible  <bruno@clisp.org>
36480
36481         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36482         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36483         not only the first time.
36484         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
36485         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
36486         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
36487         is 1, not only the the first time.
36488
36489 2009-08-10  Bruno Haible  <bruno@clisp.org>
36490
36491         Make it possible to use module 'gethostname' without module 'close'.
36492         * lib/unistd.in.h (close): Evoke a link error only if
36493         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36495         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36496         * modules/unistd (Makefile.am): Substitute
36497         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36498         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
36499         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36500         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36501         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36502         * modules/sys_ioctl (Makefile.am): Substitute
36503         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36504         * modules/socket (configure.ac): On native Windows, set
36505         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
36506         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36507         Reported by Sam Steingold <sds@gnu.org>.
36508
36509 2009-08-10  Bruno Haible  <bruno@clisp.org>
36510
36511         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
36512         * modules/ioctl (configure.ac): Likewise.
36513
36514 2009-08-10  Bruno Haible  <bruno@clisp.org>
36515
36516         Avoid collision between gnulib wrapper and libintl wrapper.
36517         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
36518         already defined in intl/printf.c.
36519         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
36520         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
36521
36522 2009-08-09  Bruno Haible  <bruno@clisp.org>
36523
36524         Make <sys/select.h> really self-contained, also on Solaris 10.
36525         * lib/sys_select.in.h: Include <string.h>.
36526         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
36527         Solaris 10 problem.
36528         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
36529         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
36530         Reported by Jim Meyering.
36531
36532 2009-08-09  Bruno Haible  <bruno@clisp.org>
36533
36534         Avoid warnings from 'aclocal' that are due to a use of macro name
36535         AM_XGETTEXT_OPTION that is not defined in automake.
36536         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
36537         automake.
36538         * modules/error (configure.ac): Likewise.
36539         * modules/propername (configure.ac): Likewise.
36540         * modules/vasprintf (configure.ac): Likewise.
36541         * modules/verror (configure.ac): Likewise.
36542         * modules/xprintf (configure.ac): Likewise.
36543         * modules/xvasprintf (configure.ac): Likewise.
36544
36545 2009-08-08  Bruno Haible  <bruno@clisp.org>
36546
36547         Avoid compilation error in C++ mode.
36548         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
36549         Reported by Sam Steingold <sds@gnu.org>.
36550
36551 2009-08-08  Bruno Haible  <bruno@clisp.org>
36552
36553         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
36554         for the various Unix platforms.
36555         * doc/posix-headers/limits.texi: Update platforms list regarding
36556         HOST_NAME_MAX.
36557         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36558
36559 2009-08-07  Jim Meyering  <meyering@redhat.com>
36560
36561         selinux-at: fix typo in a comment
36562         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
36563         Spotted by Paolo Bonzini.
36564
36565         selinux-at: remove redundant m4 code, add documentation
36566         * modules/selinux-at (configure.ac): Remove redundant code.
36567         LIB_SELINUX is already set via the dependent module, selinux-h.
36568         (Include): Add quotes around selinux-at.h.
36569         * lib/selinux-at.h: Add documentation.
36570         Reported by Bruno Haible in
36571         http://marc.info/?l=gnulib-bug&m=124958988300749
36572
36573 2009-08-07  Bruno Haible  <bruno@clisp.org>
36574
36575         Avoid link error on MacOS X 10.3 and 10.4.
36576         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
36577         on non-ELF systems.
36578         * lib/argp-pv.c (argp_program_version): Likewise.
36579         Reported by Simon Josefsson.
36580
36581 2009-08-07  Simon Josefsson  <simon@josefsson.org>
36582
36583         * tests/test-version-etc.sh: Use $EXEEXT.
36584
36585 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
36586
36587         update-copyright: update documentation to point to maint.mk
36588         * build-aux/update-copyright: Here.
36589
36590 2009-08-06  Jim Meyering  <meyering@redhat.com>
36591
36592         maint.mk: support update-copyright-local
36593         * top/maint.mk (update-copyright-local): Define place-holder.
36594         (update-copyright): Depend on $(update-copyright-local).
36595
36596 2009-08-06  Jim Meyering  <meyering@redhat.com>
36597
36598         selinux-at: new module
36599         Initially written for coreutils, this module will soon be
36600         used by findutils, too.
36601         * MODULES.html.sh [Misc]: Add selinux-at.
36602         * lib/selinux-at.h: New file, from coreutils.
36603         * lib/selinux-at.c: Likewise.
36604         * modules/selinux-at: Likewise.
36605         (License): Change from LGPL to GPL, since it depends
36606         on the GPL'd openat module.
36607
36608         doc: update README
36609         * README: Remove references to cogito.
36610         Remove cvs-repo-updating instructions from 2007.
36611         Don't imply that CVS is better if you have limited disk space.
36612
36613 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36614
36615         update-copyright: support C-style comments
36616         * build-aux/update-copyright: Implement and document.
36617         * tests/test-update-copyright.sh: Test.
36618
36619 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36620
36621         update-copyright: support omitted "(C)"
36622         * build-aux/update-copyright: Implement and document.  Also,
36623         allow variable whitespace before "(C)".
36624         * tests/test-update-copyright.sh: Test.
36625
36626 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36627
36628         update-copyright: don't trip on non-FSF copyright statements
36629         * build-aux/update-copyright: Fix so that the first correctly
36630         formatted FSF copyright statement is recognized no matter what
36631         appears before it.  Update documentation.
36632         * tests/test-update-copyright.sh: Test that.
36633
36634 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36635
36636         update-copyright: clean up code a little
36637         * build-aux/update-copyright: Append "_re" to the name of any
36638         variable holding a regular expression.
36639         Replace "old" and "new" with "stmt" in variable names.
36640         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
36641         handled correctly.
36642         Format code more consistently.
36643
36644 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36645
36646         update-copyright-tests: improve portability
36647         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
36648         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
36649
36650 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36651
36652         update-copyright: support @copyright{} and &copy;
36653         * build-aux/update-copyright: Implement and document.
36654         * tests/test-update-copyright.sh: Test.
36655
36656 2009-08-04  Jim Meyering  <meyering@redhat.com>
36657
36658         update-copyright-tests: correctly test EOL=\r\n handling
36659         * tests/test-update-copyright.sh: Put \r at the end of some lines
36660         for the dos-eol tests.  Based on a patch by Joel E. Denny.
36661
36662         maint.mk: make update-copyright exclusion list more configurable
36663         * top/maint.mk (update-copyright): Default to excluding COPYING,
36664         but allow an override, in case someone does want to update that file.
36665
36666         maint.mk: don't update copyright date in COPYING
36667         * top/maint.mk (update-copyright): Exclude COPYING.
36668
36669         maint.mk: add a copyright-updating rule
36670         * top/maint.mk (update-copyright): New rule.
36671         Derived from coreutils/Makefile.am.
36672
36673         update-copyright: rename some variables
36674         * build-aux/update-copyright: Rename a few variables for clarity.
36675         Tweak syntax.  List Joel E. Denny as coauthor.
36676
36677 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36678
36679         update-copyright: fix bug for 2-digit last year and add tests
36680         * build-aux/update-copyright: Fix bug.
36681         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
36682         specified.
36683         * modules/update-copyright-tests: New
36684         * tests/test-update-copyright.sh: New.
36685
36686 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36687
36688         update-copyright: handle leading tabs in line prefix
36689         * build-aux/update-copyright: Count leading tabs as 8 spaces
36690         when computing margin.  This helps with the formatting of
36691         ChangeLogs, for example.
36692         Fix documentation a little.
36693
36694 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36695
36696         update-copyright: support EOL=\r\n
36697         * build-aux/update-copyright: Implement that.
36698
36699 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36700
36701         update-copyright: automatically format copyright statements
36702         * build-aux/update-copyright: Implement that.
36703         Also, be a little more predictable and safer by always failing
36704         when the full copyright format is not perfectly recognized as an
36705         unbroken whole.  Discussed at
36706         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
36707         Rewrite documentation.
36708
36709 2009-08-03  Bruno Haible  <bruno@clisp.org>
36710
36711         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
36712
36713 2009-08-02  Bruno Haible  <bruno@clisp.org>
36714
36715         Tests for module 'uname'.
36716         * modules/uname-tests: New file.
36717         * tests/test-uname.c: New file.
36718
36719         New module 'uname'.
36720         * lib/uname.c: New file.
36721         * m4/uname.m4: New file.
36722         * modules/uname: New file.
36723         * doc/posix-functions/uname.texi: Mention the new module.
36724
36725 2009-08-02  Bruno Haible  <bruno@clisp.org>
36726
36727         Tests for module 'sys_utsname'.
36728         * modules/sys_utsname-tests: New file.
36729         * tests/test-sys_utsname.c: New file.
36730
36731         New module 'sys_utsname'.
36732         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
36733         * m4/sys_utsname_h.m4: New file.
36734         * modules/sys_utsname: New file.
36735         * doc/posix-headers/sys_utsname.texi: Mention the new module.
36736
36737 2009-08-02  Bruno Haible  <bruno@clisp.org>
36738
36739         Implicitly initialize the sockets library.
36740         * lib/gethostname.c: Include sockets.h.
36741         (rpl_gethostname): Invoke gl_sockets_startup.
36742         * lib/socket.c: Include sockets.h.
36743         (rpl_socket): Invoke gl_sockets_startup.
36744         * modules/gethostname (Depends-on): Add sockets.
36745         * modules/socket (Depends-on): Likewise.
36746         * tests/test-poll.c: Don't include sockets.h.
36747         (main): Don't invoke gl_sockets_startup.
36748         * tests/test-select.c: Don't include sockets.h.
36749         (main): Don't invoke gl_sockets_startup.
36750
36751 2009-08-02  Bruno Haible  <bruno@clisp.org>
36752
36753         Allow multiple calls to gl_sockets_startup.
36754         * lib/sockets.c (initialized_sockets_version): New variable.
36755         (gl_sockets_startup): Do nothing if already called for this or a higher
36756         version.
36757         (gl_sockets_cleanup): Reset initialized_sockets_version.
36758
36759 2009-08-03  Simon Josefsson  <simon@josefsson.org>
36760
36761         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
36762         different project/version.
36763
36764 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
36765             Bruno Haible  <bruno@clisp.org>
36766
36767         Tests for module 'pipe-filter-gi'.
36768         * modules/pipe-filter-gi-tests: New file.
36769         * tests/test-pipe-filter-gi1.sh: New file.
36770         * tests/test-pipe-filter-gi1.c: New file.
36771         * tests/test-pipe-filter-gi2.sh: New file.
36772         * tests/test-pipe-filter-gi2-main.c: New file.
36773         * tests/test-pipe-filter-gi2-child.c: New file.
36774
36775         New module 'pipe-filter-gi'.
36776         * lib/pipe-filter-gi.c: New file.
36777         * modules/pipe-filter-gi: New file.
36778
36779 2009-08-02  Bruno Haible  <bruno@clisp.org>
36780             Paolo Bonzini  <bonzini@gnu.org>
36781
36782         Tests for module 'pipe-filter-ii'.
36783         * modules/pipe-filter-ii-tests: New file.
36784         * tests/test-pipe-filter-ii1.sh: New file.
36785         * tests/test-pipe-filter-ii1.c: New file.
36786         * tests/test-pipe-filter-ii2.sh: New file.
36787         * tests/test-pipe-filter-ii2-main.c: New file.
36788         * tests/test-pipe-filter-ii2-child.c: New file.
36789
36790         New module 'pipe-filter-ii'.
36791         * lib/pipe-filter.h: New file.
36792         * lib/pipe-filter-ii.c: New file.
36793         * lib/pipe-filter-aux.h: New file.
36794         * modules/pipe-filter-ii: New file.
36795
36796 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36797
36798         * lib/gc-libgcrypt.c: Change copyright to FSF.
36799         * lib/gc-gnulib.c: Likewise.
36800
36801 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
36802
36803         * lib/gethostname.c: Include limits.h.
36804
36805 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36806             Bruno Haible  <bruno@clisp.org>
36807
36808         Ensure HOST_NAME_MAX as part of the gethostname module.
36809         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
36810         define also HOST_NAME_MAX.
36811         * tests/test-gethostname.c: Include <limits.h>.
36812         (main): Check also HOST_NAME_MAX.
36813         * doc/posix-headers/limits.texi: Document the mingw problem.
36814
36815 2009-08-02  Bruno Haible  <bruno@clisp.org>
36816
36817         * lib/gethostname.c (gethostname): Fix handling of large len argument.
36818         Add comments.
36819
36820 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36821
36822         * lib/gethostname.c: Add Windows wrapper.
36823         * m4/gethostname.m4: Look for gethostname in -lws2_32.
36824         * modules/gethostname: Depend on sys_socket & errno, for also
36825         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
36826         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
36827
36828 2009-07-31  Jim Meyering  <meyering@redhat.com>
36829
36830         getloadavg: fix symbol name in comment
36831         * lib/getloadavg.c: Correct a typo I introduced when adding
36832         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
36833         Matt Kraai spotted the problem.
36834
36835 2009-07-29  Matt Kraai  <mkraai@beckman.com>
36836
36837         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
36838         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
36839         code also if ! defined N_NAME_POINTER.
36840         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
36841         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
36842         but the n_name member is a 12-byte array.
36843
36844 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
36845
36846         update-copyright: generalize comment handling
36847         * build-aux/update-copyright: Handle copyright statements
36848         within more comment styles.
36849         Document usage.
36850         Report any file with an external copyright holder or parse failure.
36851
36852 2009-07-29  Jim Meyering  <meyering@redhat.com>
36853
36854         mktime: correct setting of REPLACE_MKTIME
36855         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
36856
36857         update-copyright: new module
36858         * modules/update-copyright: New file.
36859         * build-aux/update-copyright: New file.
36860         * MODULES.html.sh (maint+release support): Add update-copyright.
36861
36862 2009-07-27  Bruno Haible  <bruno@clisp.org>
36863
36864         Fix compilation error when <ctime> is used and mktime is replaced.
36865         * lib/time.in.h (mktime): New declaration.
36866         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
36867         REPLACE_MKTIME instead of defining mktime in config.h.
36868         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
36869         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
36870         Reported by Ross McFarland <rwmcfa1@neces.com>.
36871
36872 2009-07-27  Bruno Haible  <bruno@clisp.org>
36873
36874         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
36875         Reported by Matt Kraai <mkraai@beckman.com>.
36876
36877 2009-07-25  Jim Meyering  <meyering@redhat.com>
36878
36879         maint.mk: avoid warnings about missing files
36880         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
36881         diagnostic when .prev-version does not exist.
36882         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
36883         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
36884         nonexistent cfg.mk.
36885         Suggestions from Simon Josefsson.
36886
36887 2009-07-25  Bruno Haible  <bruno@clisp.org>
36888
36889         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
36890         defined as macros. Needed on QNX 6.4.1.
36891         Reported by Matt Kraai <mkraai@beckman.com>.
36892
36893 2009-07-23  Jim Meyering  <meyering@redhat.com>
36894
36895         maint.mk: invoke "make dist" with a working value of XZ_OPT
36896         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
36897
36898 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
36899
36900         Make fseeko.c compile on QNX.
36901         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
36902
36903 2009-07-22  Peter Simons  <simons@cryp.to>
36904
36905         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
36906         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
36907         * lib/md4.h: Likewise.
36908         * lib/md5.h: Likewise.
36909         * lib/sha1.h: Likewise.
36910         * lib/sha256.h: Likewise.
36911         * lib/sha512.h: Likewise.
36912
36913         tests-sha1: don't assign literal string to 'char *' variable
36914         * tests/test-sha1.c (main): Declare locals with "const" to match
36915         attributes of the right hand side.
36916
36917 2009-07-21  Eric Blake  <ebb9@byu.net>
36918
36919         dup2: fix more mingw problems
36920         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
36921         fd to itself.
36922         * doc/posix-functions/dup2.texi (dup2): Document the bug.
36923         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
36924         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
36925         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
36926         care of mingw bugs.
36927
36928 2009-07-21  Jim Meyering  <meyering@redhat.com>
36929
36930         vc-list-files: avoid failure when /bin/sh is dash
36931         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
36932         On some Debian based systems, /bin/sh is a symlink to dash, and running
36933         this command would omit the "/" following each 'tests' prefix:
36934           dash -x build-aux/vc-list-files -C . tests
36935         That is because bash and dash work differently:
36936           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
36937           bash ok
36938           dash odd
36939
36940 2009-07-21  Eric Blake  <ebb9@byu.net>
36941
36942         dup2-tests: test previous patch
36943         * modules/dup2-tests: New file.
36944         * tests/test-dup2.c: Likewise.
36945         * tests/test-open.c (main): Avoid unspecified behavior.
36946         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
36947         test.
36948
36949         dup2: work around mingw and cygwin 1.5 bug
36950         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
36951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36952         * modules/unistd (Makefile.am): Substitute it.
36953         * lib/unistd.in.h (dup2): Declare the replacement.
36954         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
36955         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
36956         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
36957         * modules/execute (Depends-on): Add dup2.
36958         * modules/fseterr (Depends-on): Likewise.
36959         * modules/pipe (Depends-on): Likewise.
36960         * modules/posix_spawn-internal (Depends-on): Likewise.
36961
36962 2009-07-21  Bruno Haible  <bruno@clisp.org>
36963
36964         * modules/.gitattributes: New file.
36965
36966 2009-07-20  Bruno Haible  <bruno@clisp.org>
36967
36968         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
36969         (main): Use it.
36970
36971 2009-07-20  Eric Blake  <ebb9@byu.net>
36972
36973         test-pipe: make a bit more robust.
36974         * tests/test-pipe.c (myerr): Allow error messages regardless of
36975         what we do to stderr.
36976         (test_pipe): Rearrange to avoid deadlock.
36977         (child_main): Try a larger read, to ensure we avoided deadlock.
36978         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
36979         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
36980         if misused.
36981
36982 2009-07-19  Jim Meyering  <meyering@redhat.com>
36983
36984         fts: avoid false-positive cycle-detection
36985         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
36986         for each new command line argument.
36987
36988 2009-07-19  Bruno Haible  <bruno@clisp.org>
36989
36990         Fix build error on mingw with the modules sys_select and unistd.
36991         * modules/acl-tests (Depends-on): Add close.
36992         * modules/binary-io-tests (Depends-on): Likewise.
36993         * modules/closein-tests (Depends-on): Likewise.
36994         * modules/flock-tests (Depends-on): Likewise.
36995         * modules/fsync-tests (Depends-on): Likewise.
36996         * modules/lseek-tests (Depends-on): Likewise.
36997         * modules/pipe-tests (Depends-on): Likewise.
36998         * modules/posix_spawn-tests (Depends-on): Likewise.
36999         * modules/posix_spawnp-tests (Depends-on): Likewise.
37000         * modules/stat-time-tests (Depends-on): Likewise.
37001         * modules/yesno-tests (Depends-on): Likewise.
37002
37003 2009-07-19  Bruno Haible  <bruno@clisp.org>
37004
37005         Unify conditionals.
37006         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37007         macros, not at the compiler macros.
37008         * lib/pipe.c: Likewise.
37009         * lib/execute.c: Likewise.
37010         * lib/spawni.c: Likewise.
37011
37012 2009-07-19  Bruno Haible  <bruno@clisp.org>
37013
37014         Fix handling of closed stdin/stdout/stderr on mingw.
37015         * lib/w32spawn.h: Include unistd.h.
37016         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37017         file descriptor with O_NOINHERIT flag.
37018         (fd_safer_noinherit): New function, based on fd-safer.c.
37019         (dup_safer_noinherit): New function, based on dup-safer.c.
37020         (undup_safer_noinherit): New function.
37021         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37022         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37023         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37024         instead of fd_safer.
37025         * tests/test-pipe.c: Include <windows.h>.
37026         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37027         result.
37028
37029         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37030         from main.
37031         (test_pipe): Pass an extra argument for disambiguation.
37032         (main): Invoke parent_main or child_main.
37033
37034         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37035         consistently.
37036
37037 2009-07-18  Eric Blake  <ebb9@byu.net>
37038
37039         test-pipe: fix mingw build
37040         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37041
37042 2009-07-18  Bruno Haible  <bruno@clisp.org>
37043
37044         * modules/pipe-tests (Makefile.am): Fix typo.
37045
37046 2009-07-18  Eric Blake  <ebb9@byu.net>
37047
37048         error: fix mingw build
37049         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37050         Reported by Bruno Haible.
37051
37052         error: avoid undefined use of stdout
37053         * lib/error.c (error, error_at_line): Check that fd 1 is open
37054         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37055         is handling faults and the close_stdout module wants to report the
37056         detection of closed stdout as an error.
37057
37058 2009-07-17  Eric Blake  <ebb9@byu.net>
37059
37060         pipe: be robust in face of closed fds
37061         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37062         should cause child to misbehave.
37063         * modules/pipe-tests: New module.
37064         * tests/test-pipe.c: New file.
37065         * tests/test-pipe.sh: New file.
37066         Reported by Akim Demaille.
37067
37068 2009-07-14  Bruno Haible  <bruno@clisp.org>
37069
37070         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37071         Reported by anonymous kc.
37072
37073 2009-07-07  Jim Meyering  <meyering@redhat.com>
37074
37075         maint.mk: don't look for translatable strings in *.m4 or *.mk
37076         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37077         when searching for translatable strings.
37078
37079 2009-07-05  Jim Meyering  <meyering@redhat.com>
37080
37081         remove superfluous parentheses in STREQ definition
37082         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37083         * lib/getugroups.c (STREQ): Likewise.
37084         * lib/fnmatch.c (STREQ): Likewise.
37085         Spotted by Bruno Haible.
37086
37087 2009-07-04  Jim Meyering  <meyering@redhat.com>
37088
37089         argv-iter: new module
37090         * MODULES.html.sh: Add argv-iter.
37091         * lib/argv-iter.c, lib/argv-iter.h: New files.
37092         * modules/argv-iter: New file.
37093         * modules/argv-iter-tests: New file.
37094         * tests/test-argv-iter.c: Test it.
37095
37096 2009-07-04  Bruno Haible  <bruno@clisp.org>
37097
37098         Fix assertion.
37099         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37100         contains more exact copies of a given entry than file2, leave the extra
37101         copies unpaired rather than aborting.
37102         Reported by Eric Blake.
37103
37104 2009-07-02  Bruno Haible  <bruno@clisp.org>
37105
37106         Speedup git-merge-changelog for git cherry-pick.
37107         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37108         (entries_mapping_get): New function, extracted from compute_mapping.
37109         (entries_mapping_reverse_get): New function.
37110         (compute_mapping): Add a 'full' argument. Return the result in a
37111         'struct entries_mapping'.
37112         (main): Update. Access the mappings through entries_mapping_get.
37113         Reported by Eric Blake.
37114
37115 2009-07-02  Bruno Haible  <bruno@clisp.org>
37116
37117         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37118         best_i.
37119
37120 2009-07-02  Bruno Haible  <bruno@clisp.org>
37121
37122         Speed up approximate search for matching ChangeLog entries.
37123         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37124         argument. Call fstrcmp_bounded instead of fstrcmp.
37125         (compute_mapping, try_split_merged_entry, main): Update callers.
37126
37127 2009-07-02  Bruno Haible  <bruno@clisp.org>
37128
37129         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37130
37131 2009-06-30  Bruno Haible  <bruno@clisp.org>
37132
37133         Reduce the number of uc_is_cased calls.
37134         * lib/unicase.h (casing_suffix_context_t): Add
37135         'first_char_except_ignorable' field.
37136         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37137         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37138         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37139         Update initializer.
37140         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37141         case-ignorable characters.
37142         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37143         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37144         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37145         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37146         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37147
37148 2009-06-30  Bruno Haible  <bruno@clisp.org>
37149
37150         Tests for module 'unicase/ignorable'.
37151         * modules/unicase/ignorable-tests: New file.
37152         * tests/unicase/test-ignorable.c: New file, generated by
37153         gen-uni-tables.
37154
37155         Tests for module 'unicase/cased'.
37156         * modules/unicase/cased-tests: New file.
37157         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37158         * tests/unicase/test-predicate-part1.h: New file, derived from
37159         tests/unictype/test-predicate-part1.h.
37160         * tests/unicase/test-predicate-part2.h: New file, same as
37161         tests/unictype/test-predicate-part2.h.
37162
37163         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37164         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37165         (output_casing_properties): New function.
37166         (main): Call it.
37167         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37168         * lib/unicase/cased.c: Include unictype/bitmap.h.
37169         (uc_is_cased): Define through a bitmap lookup.
37170         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37171         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37172         (uc_is_case_ignorable): Define through a bitmap lookup.
37173         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37174         lib/unictype/bitmap.h.
37175         (Depends-on): Add inline. Clean up.
37176         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37177         lib/unictype/bitmap.h.
37178         (Depends-on): Add inline. Clean up.
37179         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37180         recognition.
37181         * tests/unicase/test-u16-tolower.c (main): Likewise.
37182         * tests/unicase/test-u32-tolower.c (main): Likewise.
37183
37184 2009-06-30  Bruno Haible  <bruno@clisp.org>
37185
37186         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37187         * lib/unicase/u16-casemap.c: Likewise.
37188         * lib/unicase/u32-casemap.c: Likewise.
37189
37190 2009-06-29  Bruno Haible  <bruno@clisp.org>
37191
37192         Define u32_casefold as a wrapper around u32_ct_casefold.
37193         * lib/unicase/u32-casefold.c: Update.
37194         * modules/unicase/u32-casefold (Depends-on): Add
37195         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37196         unicase/empty-suffix-context. Clean up.
37197
37198         Define u16_casefold as a wrapper around u16_ct_casefold.
37199         * lib/unicase/u16-casefold.c: Update.
37200         * modules/unicase/u16-casefold (Depends-on): Add
37201         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37202         unicase/empty-suffix-context. Clean up.
37203
37204         Define u8_casefold as a wrapper around u8_ct_casefold.
37205         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37206         * lib/unicase/u8-casefold.c: Update.
37207         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37208         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37209
37210         Define u32_totitle as a wrapper around u32_ct_totitle.
37211         * lib/unicase/u32-totitle.c: Update.
37212         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37213         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37214
37215         Define u16_totitle as a wrapper around u16_ct_totitle.
37216         * lib/unicase/u16-totitle.c: Update.
37217         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37218         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37219
37220         Define u8_totitle as a wrapper around u8_ct_totitle.
37221         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37222         functions.
37223         (FUNC): Delegate to U_CT_TOTITLE.
37224         * lib/unicase/u8-totitle.c: Update.
37225         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37226         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37227
37228         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37229         invocation.
37230         * modules/unicase/u32-tolower (Depends-on): Add
37231         unicase/empty-prefix-context, unicase/empty-suffix-context.
37232
37233         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37234         invocation.
37235         * modules/unicase/u16-tolower (Depends-on): Add
37236         unicase/empty-prefix-context, unicase/empty-suffix-context.
37237
37238         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37239         * modules/unicase/u8-tolower (Depends-on): Add
37240         unicase/empty-prefix-context, unicase/empty-suffix-context.
37241
37242         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37243         invocation.
37244         * modules/unicase/u32-toupper (Depends-on): Add
37245         unicase/empty-prefix-context, unicase/empty-suffix-context.
37246
37247         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37248         invocation.
37249         * modules/unicase/u16-toupper (Depends-on): Add
37250         unicase/empty-prefix-context, unicase/empty-suffix-context.
37251
37252         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37253         * modules/unicase/u8-toupper (Depends-on): Add
37254         unicase/empty-prefix-context, unicase/empty-suffix-context.
37255
37256         New module 'unicase/u32-ct-casefold'.
37257         * lib/unicase/u32-ct-casefold.c: New file.
37258         * modules/unicase/u32-ct-casefold: New file.
37259
37260         New module 'unicase/u16-ct-casefold'.
37261         * lib/unicase/u16-ct-casefold.c: New file.
37262         * modules/unicase/u16-ct-casefold: New file.
37263
37264         New module 'unicase/u8-ct-casefold'.
37265         * lib/unicase/u8-ct-casefold.c: New file.
37266         * lib/unicase/u-ct-casefold.h: New file, derived from
37267         lib/unicase/u-casefold.h.
37268         * modules/unicase/u8-ct-casefold: New file.
37269
37270         New module 'unicase/u32-ct-totitle'.
37271         * lib/unicase/u32-ct-totitle.c: New file.
37272         * modules/unicase/u32-ct-totitle: New file.
37273
37274         New module 'unicase/u16-ct-totitle'.
37275         * lib/unicase/u16-ct-totitle.c: New file.
37276         * modules/unicase/u16-ct-totitle: New file.
37277
37278         New module 'unicase/u8-ct-totitle'.
37279         * lib/unicase/u8-ct-totitle.c: New file.
37280         * lib/unicase/u-ct-totitle.h: New file, derived from
37281         lib/unicase/u-totitle.h.
37282         * modules/unicase/u8-ct-totitle: New file.
37283
37284         New module 'unicase/u32-ct-tolower'.
37285         * lib/unicase/u32-ct-tolower.c: New file.
37286         * modules/unicase/u32-ct-tolower: New file.
37287
37288         New module 'unicase/u16-ct-tolower'.
37289         * lib/unicase/u16-ct-tolower.c: New file.
37290         * modules/unicase/u16-ct-tolower: New file.
37291
37292         New module 'unicase/u8-ct-tolower'.
37293         * lib/unicase/u8-ct-tolower.c: New file.
37294         * modules/unicase/u8-ct-tolower: New file.
37295
37296         New module 'unicase/u32-ct-toupper'.
37297         * lib/unicase/u32-ct-toupper.c: New file.
37298         * modules/unicase/u32-ct-toupper: New file.
37299
37300         New module 'unicase/u16-ct-toupper'.
37301         * lib/unicase/u16-ct-toupper.c: New file.
37302         * modules/unicase/u16-ct-toupper: New file.
37303
37304         New module 'unicase/u8-ct-toupper'.
37305         * lib/unicase/u8-ct-toupper.c: New file.
37306         * modules/unicase/u8-ct-toupper: New file.
37307
37308         Add context arguments to u*_casemap functions.
37309         * lib/unicase/unicasemap.h: Include unicase.h.
37310         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37311         suffix_context arguments.
37312         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37313         functions.
37314         (FUNC): Add prefix_context and suffix_context arguments. Use
37315         uc_is_cased and uc_is_case_ignorable.
37316         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37317         * lib/unicase/u16-casemap.c: Likewise.
37318         * lib/unicase/u32-casemap.c: Likewise.
37319         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37320         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37321         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37322         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37323         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37324         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37325
37326         New module 'unicase/u32-suffix-context'.
37327         * lib/unicase/u32-suffix-context.c: New file.
37328         * modules/unicase/u32-suffix-context: New file.
37329
37330         New module 'unicase/u16-suffix-context'.
37331         * lib/unicase/u16-suffix-context.c: New file.
37332         * modules/unicase/u16-suffix-context: New file.
37333
37334         New module 'unicase/u8-suffix-context'.
37335         * lib/unicase/u8-suffix-context.c: New file.
37336         * lib/unicase/u-suffix-context.h: New file.
37337         * modules/unicase/u8-suffix-context: New file.
37338
37339         New module 'unicase/empty-suffix-context'.
37340         * lib/unicase/empty-suffix-context.c: New file.
37341         * modules/unicase/empty-suffix-context: New file.
37342
37343         New module 'unicase/u32-prefix-context'.
37344         * lib/unicase/u32-prefix-context.c: New file.
37345         * modules/unicase/u32-prefix-context: New file.
37346
37347         New module 'unicase/u16-prefix-context'.
37348         * lib/unicase/u16-prefix-context.c: New file.
37349         * modules/unicase/u16-prefix-context: New file.
37350
37351         New module 'unicase/u8-prefix-context'.
37352         * lib/unicase/u8-prefix-context.c: New file.
37353         * lib/unicase/u-prefix-context.h: New file.
37354         * lib/unicase/context.h: New file.
37355         * modules/unicase/u8-prefix-context: New file.
37356
37357         New module 'unicase/empty-prefix-context'.
37358         * lib/unicase/empty-prefix-context.c: New file.
37359         * modules/unicase/empty-prefix-context: New file.
37360
37361         New module 'unicase/ignorable'.
37362         * lib/unicase/ignorable.c: New file.
37363         * modules/unicase/ignorable: New file.
37364
37365         New module 'unicase/cased'.
37366         * lib/unicase/caseprop.h: New file.
37367         * lib/unicase/cased.c: New file.
37368         * modules/unicase/cased: New file.
37369
37370         New functions for case mapping of substrings.
37371         * lib/unicase.h (casing_prefix_context_t): New type.
37372         (unicase_empty_prefix_context): New variable.
37373         (u8_casing_prefix_context, u16_casing_prefix_context,
37374         u32_casing_prefix_context, u8_casing_prefixes_context,
37375         u16_casing_prefixes_context, u32_casing_prefixes_context): New
37376         declarations.
37377         (casing_suffix_context_t): New type.
37378         (unicase_empty_suffix_context): New variable.
37379         (u8_casing_suffix_context, u16_casing_suffix_context,
37380         u32_casing_suffix_context, u8_casing_suffixes_context,
37381         u16_casing_suffixes_context, u32_casing_suffixes_context,
37382         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
37383         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
37384         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
37385         declarations.
37386
37387 2009-06-28  Jim Meyering  <meyering@redhat.com>
37388
37389         boostrap: indent only with spaces
37390         * build-aux/bootstrap: Indent only with spaces, never TABs.
37391
37392         bootstrap: split long lines
37393         * build-aux/bootstrap: Keep line length < 80.
37394
37395         bootstrap: sync from coreutils
37396         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
37397         just as autoreconf does.  Verify a list of prerequisite
37398         package-name,version-number pairs if defined in bootstrap.conf.
37399         Refer to README-prereq, if prerequisites are not satisfied.
37400
37401 2009-06-27  Eric Blake  <ebb9@byu.net>
37402
37403         tests: add test for bogus NULL definition
37404         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
37405         * tests/test-stdlib.c: Likewise.
37406         * tests/test-string.c: Likewise.
37407         * tests/test-locale.c: Likewise.
37408         * tests/test-unistd.c: Likewise.
37409         * modules/stdio-tests (Depends-on): Add verify.
37410         * modules/stdlib-tests (Depends-on): Likewise.
37411         * modules/string-tests (Depends-on): Likewise.
37412         * modules/locale-tests (Depends-on): Likewise.
37413         * modules/unistd-tests (Depends-on): Likewise.
37414
37415 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
37416
37417         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
37418         self-explaining comment.
37419         * m4/selinux-selinux-h: Update serial.
37420         (gl_LIBSELINUX): New macro, adding a warning for missing development
37421         packages to code extracted from...
37422         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
37423         Add warning for missing development packages here, too.
37424
37425 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
37426
37427         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
37428
37429 2009-06-25  Eric Blake  <ebb9@byu.net>
37430
37431         version-etc: fix regression
37432         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
37433         gcc.
37434         (version_etc): Use it, to catch bugs with trailing NULL.
37435         * lib/version-etc.c (version_etc_arn): Delete unused argument.
37436         (version_etc_va): Fix logic bug.
37437         * modules/version-etc-tests: Add test.
37438         * tests/test-version-etc.c: New file.
37439         * tests/test-version-etc.sh: Likewise.
37440
37441 2009-06-25  Sam Steingold  <sds@gnu.org>
37442
37443         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
37444         mbtowc declaration.
37445
37446 2009-06-25  Eric Blake  <ebb9@byu.net>
37447
37448         fpurge: migrate into <stdio.h>
37449         * lib/fpurge.h: Delete...
37450         * lib/stdio.in.h (fpurge): ...and declare here, instead.
37451         * lib/fpurge.c (fpurge): Change declaring header.
37452         * modules/fpurge (Files): Drop deleted file.
37453         (Depends-on): Add stdio.
37454         (configure.ac): Set witness.
37455         * modules/stdio (Makefile.am): Support fpurge macros.
37456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37457         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37458         * lib/fflush.c: Update client.
37459         * tests/test-fpurge.c: Likewise.
37460         * NEWS: Mention the change.
37461
37462 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37463
37464         * lib/argp-version-etc.c (program_authors): Add const
37465         qualifier.
37466         * lib/version-etc.c: Fix typos in the comments.
37467         * modules/argp-version-etc: Depends on version-etc.
37468
37469 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37470
37471         argp-version-etc: new module.
37472
37473         * lib/argp-version-etc.c: New file.
37474         * lib/argp-version-etc.h: New file.
37475         * modules/argp-version-etc: New file.
37476         * modules/argp-version-etc-tests: New file.
37477         * tests/test-argp-version-etc.c: New test.
37478         * tests/test-argp-version-etc-1.sh: New test.
37479
37480 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37481
37482         Provide additional interfaces and documentation for version-etc
37483         module.
37484
37485         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
37486         interfaces.
37487         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
37488         prototypes.
37489
37490 2009-06-24  Bruno Haible  <bruno@clisp.org>
37491
37492         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
37493         HAVE_LIB${NAME} macro.
37494         Reported by Sam Steingold <sds@gnu.org>.
37495
37496 2009-06-23  Simon Josefsson  <simon@josefsson.org>
37497
37498         * modules/hash-tests (test_hash_LDADD): Link to libintl when
37499         needed.
37500
37501 2009-06-21  Bruno Haible  <bruno@clisp.org>
37502
37503         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
37504         work.
37505         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
37506         together with LIB${NAME}, LTLIB${NAME}.
37507         Reported by Sam Steingold <sds@gnu.org>.
37508
37509 2009-06-20  Jim Meyering  <meyering@redhat.com>
37510
37511         tests: make sc_require_test_exit_idiom more generic
37512         * top/maint.mk (Exit_witness_file): New overridable variable.
37513         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
37514         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
37515
37516 2009-06-19  Jim Meyering  <meyering@redhat.com>
37517
37518         hash: reverse order of src/dst parameters in an internal interface
37519         * lib/hash.c (transfer_entries): Reverse order of parameters to
37520         put DST before SRC.  Adjust callers.
37521
37522         tests: test-hash: avoid wholesale duplication
37523         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37524         Instead, use a loop and add a single conditional.
37525
37526         tests: test-hash: allow seed selection via a command line argument
37527         * tests/test-hash.c (get_seed): New function.
37528         (main): Use it.
37529
37530 2009-06-19  Eric Blake  <ebb9@byu.net>
37531
37532         hash: avoid memory leak on allocation failure
37533         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
37534         failure.  Factor repeated algorithm...
37535         (transfer_entries): ...into new helper routine.
37536         (hash_delete): React to hash_rehash return value.
37537
37538         hash: reduce memory pressure in hash_rehash no-op case
37539         * lib/hash.c (next_prime): Avoid overflow.
37540         (hash_initialize): Factor bucket size computation...
37541         (compute_bucket_size): ...into new helper function.
37542         (hash_rehash): Use new function and open coding to reduce memory
37543         pressure, and avoid a memory leak in USE_OBSTACK code.
37544         Reported by Jim Meyering.
37545
37546 2009-06-18  Eric Blake  <ebb9@byu.net>
37547
37548         hash: make rotation more obvious
37549         * modules/hash (Depends-on): Add bitrotate and stdint.
37550         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
37551         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
37552         (SIZE_MAX): Rely on headers for definition.
37553         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
37554         (raw_hasher): Use rotr_sz.
37555         Suggested by Jim Meyering.
37556
37557         hash: fix memory leak in last patch
37558         * lib/hash.c (hash_rehash): Avoid memory leak.
37559
37560         hash: avoid no-op rehashing
37561         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
37562
37563         hash: provide default callback functions
37564         * lib/hash.c (raw_hasher, raw_comparator): New functions.
37565         (hash_initialize): Use them as defaults.
37566         * tests/test-hash.c (main): Test this.
37567
37568         hash: minor optimization
37569         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
37570         when possible.
37571         (hash_initialize): Document this promise.
37572         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
37573         * tests/test-hash.c (hash_compare_strings): Test this.
37574
37575 2009-06-18  Bruno Haible  <bruno@clisp.org>
37576
37577         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
37578         going to be replaced anyway.
37579
37580 2009-06-18  Bruno Haible  <bruno@clisp.org>
37581
37582         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
37583         in one place.
37584         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
37585         be replaced anyway.
37586
37587 2009-06-18  Eric Blake  <ebb9@byu.net>
37588
37589         hash: check for resize before insertion
37590         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
37591         threshold before insertion, so that a pathological hash_rehash
37592         that fills every bucket can still trigger another rehash.
37593
37594 2009-06-18  Jim Meyering  <meyering@redhat.com>
37595
37596         hash-tests: add a loop around the small tests
37597         * tests/test-hash.c (main): Repeat small tests with selected
37598         small initial table sizes.
37599
37600 2009-06-17  Eric Blake  <ebb9@byu.net>
37601
37602         hash: minor cleanups
37603         * lib/hash.h (hash_entry): Make opaque, by moving...
37604         * lib/hash.c (hash_entry): ...here.
37605         (hash_insert): Clarify restrictions on what can be inserted.
37606         (hash_get_next): Clarify when it is safe to remove an element
37607         during traversal.
37608         (check_tuning): Skip verification when tuning is known safe.
37609         (hash_initialize): Clarify restrictions on tuning.
37610
37611 2009-06-17  Jim Meyering  <jim@meyering.net>
37612         and Eric Blake  <ebb9@byu.net>
37613
37614         hash-tests: new module
37615         * modules/hash-tests: New file.
37616         * tests/test-hash.c: New file.
37617
37618 2009-06-17  Eric Blake  <ebb9@byu.net>
37619
37620         strstr-simple: document new module
37621         * MODULES.html.sh: Document new module.
37622
37623         strstr, strcasestr: replace on platforms with broken memchr
37624         * modules/strstr: Split into...
37625         * modules/strstr-simple: ...new module that does not care about
37626         performance, but does care about glibc bug.
37627         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
37628         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
37629         if platform memchr is broken, per Debian bug 521737.
37630         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
37631         memchr.
37632         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
37633         * doc/posix-functions/strstr.texi (strstr): Document the fix.
37634         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37635         * modules/mountlist (Depends-on): Add strstr-simple.
37636         * modules/gen-uni-tables (Depends-on): Likewise.
37637         * modules/argz (Depends-on): Add strstr.
37638
37639 2009-06-17  Bruno Haible  <bruno@clisp.org>
37640
37641         * modules/posix_spawn-internal (Depends-on): Add errno.
37642
37643 2009-06-17  Bruno Haible  <bruno@clisp.org>
37644
37645         Define missing ESTALE on Interix 3.5.
37646         * lib/errno.in.h (ESTALE): Assign a value if missing.
37647         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
37648         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
37649         missing.
37650         * doc/posix-headers/errno.texi: Mention the Interix bug.
37651         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
37652
37653 2009-06-15  Eric Blake  <ebb9@byu.net>
37654
37655         memchr, memchr2: add valgrind exception
37656         * lib/memchr.valgrind: New file.
37657         * lib/memchr2.valgrind: New file.
37658         * modules/memchr (Files): Distribute valgrind file.
37659         * modules/memchr2 (Files): Likewise.
37660
37661         docs: memchr is no longer obsolete
37662         * MODULES.html.sh: Move memchr from obsolete to string.h section.
37663         * lib/string.in.h (memchr): Simplify logic.
37664
37665 2009-06-14  Jim Meyering  <meyering@redhat.com>
37666
37667         link-follow: fix the "checking..." message to not mention trailing slash
37668         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
37669         never considered trailing slashes.
37670
37671 2009-06-14  Bruno Haible  <bruno@clisp.org>
37672
37673         * m4/memchr.m4: Mention also the bug on IA-64.
37674         * doc/posix-functions/memchr.texi: Likewise.
37675
37676 2009-06-12  Eric Blake  <ebb9@byu.net>
37677
37678         memchr: detect broken x86_64 and alpha implementations
37679         * modules/memchr-tests (Depends-on): Move mmap detection...
37680         * modules/memchr (Depends-on): ...here.
37681         (configure.ac): Set indicator.
37682         * lib/string.in.h (memchr): Declare replacement.
37683         * modules/string (Makefile.am): Trigger replacement.
37684         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37685         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
37686         bugs.
37687         * doc/posix-functions/memchr.texi (memchr): Document the bug.
37688         * modules/getpagesize (License): Relax license.
37689
37690 2009-06-11  Bruno Haible  <bruno@clisp.org>
37691
37692         * lib/idpriv.h: Add more references.
37693
37694 2009-06-08  Bruno Haible  <bruno@clisp.org>
37695
37696         Tests for module 'idpriv-droptemp'.
37697         * modules/idpriv-droptemp-tests: New file.
37698         * tests/test-idpriv-droptemp.sh: New file.
37699         * tests/test-idpriv-droptemp.su.sh: New file.
37700         * tests/test-idpriv-droptemp.c: New file.
37701
37702         New module 'idpriv-droptemp'.
37703         * lib/idpriv-droptemp.c: New file.
37704         * modules/idpriv-droptemp: New file.
37705
37706 2009-06-08  Bruno Haible  <bruno@clisp.org>
37707
37708         Tests for module 'idpriv-drop'.
37709         * modules/idpriv-drop-tests: New file.
37710         * tests/test-idpriv-drop.sh: New file.
37711         * tests/test-idpriv-drop.su.sh: New file.
37712         * tests/test-idpriv-drop.c: New file.
37713
37714         New module 'idpriv-drop'.
37715         * lib/idpriv.h: New file.
37716         * lib-idpriv-drop.c: New file.
37717         * m4/idpriv.m4: New file.
37718         * modules/idpriv-drop: New file.
37719
37720 2009-06-08  Bruno Haible  <bruno@clisp.org>
37721
37722         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
37723         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37724         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37725         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37726         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37727         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37728         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37729
37730 2009-06-08  Eric Blake  <ebb9@byu.net>
37731
37732         test-strstr: use memory fence, when possible
37733         * tests/test-strstr.c (main): Use memory fence, in order to be
37734         more likely to trigger Debian bug 521737.
37735         * modules/strstr-tests (Files): Pull in additional files.
37736
37737         memchr: no longer obsolete, for wider field testing
37738         * modules/memchr (Status, Notice): Delete, this module is no
37739         longer obsolete.
37740         * modules/vasnprintf (Depends-on): Add memchr.
37741
37742 2009-06-07  Jim Meyering  <meyering@redhat.com>
37743
37744         hash: declare some functions with the warn_unused_result attribute
37745         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
37746
37747 2009-06-07  Bruno Haible  <bruno@clisp.org>
37748
37749         * tests/test-alignof.c: Don't test int64_t if it does not exist.
37750         Reported by Eric Blake.
37751
37752 2009-06-06  Eric Blake  <ebb9@byu.net>
37753
37754         test-alignof: fix typo with long double
37755         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
37756         compiler error.
37757
37758 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
37759
37760         Escape non-texinfo { and }s.
37761         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
37762         markup error.
37763
37764 2009-06-04  Jim Meyering  <meyering@redhat.com>
37765
37766         gitlog-to-changelog: don't infloop on an empty commit log
37767         * build-aux/gitlog-to-changelog: Warn about an empty log message.
37768         Reported by Boris Petersen <transacid@centerim.org>.
37769
37770 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
37771
37772         version-etc: extend for packagers
37773         Add three new configure options, intended for packagers:
37774           --with-packager="packager name"
37775           --with-packager-version="packager-specific version"
37776           --with-packager-bug-reports="packager bug reporting"
37777         An example with coreutils:
37778           $ ./configure \
37779             --with-packager=Gentoo \
37780             --with-packager-bug-report=http://bugs.gentoo.org/ \
37781             --with-packager-version="patchset 1.6"
37782           $ ./src/ls --version | head -n2
37783           ls (GNU coreutils) 7.1-dirty
37784           Packaged by Gentoo (patchset 1.6)
37785         Note that the bug reporting info via --help doesn't show up because
37786         coreutils uses its own custom emit_bug_reporting_address() implementation
37787         in src/system.h.  If it didn't, it'd look like:
37788           $ ./src/ls --help | tail -n4
37789           Report bugs to <bug-coreutils@gnu.org>.
37790           Report Gentoo bugs to <http://bugs.gentoo.org/>.
37791           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
37792           General help using GNU software: <http://www.gnu.org/gethelp/>.
37793         * lib/version-etc.c: Print new information, if provided.
37794         * m4/version-etc.m4: New file.
37795         * modules/version-etc (Files): Add m4/version-etc.m4.
37796         (configure.ac): Add gl_VERSION_ETC.
37797
37798 2009-05-31  Bruno Haible  <bruno@clisp.org>
37799
37800         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
37801         and 'int64_t'.
37802         * modules/alignof-tests (Dependencies): Add stdint.
37803         Reported by Eric Blake.
37804
37805 2009-05-31  Bruno Haible  <bruno@clisp.org>
37806
37807         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
37808         restriction due to compiler bugs.
37809         Reported by Eric Blake.
37810
37811 2009-05-31  Simon Josefsson  <simon@josefsson.org>
37812             Bruno Haible  <bruno@clisp.org>
37813
37814         Fix test-alignof failure.
37815         * lib/alignof.h (alignof_slot): New macro.
37816         (alignof_type): New macro, with the same semantics as the previous
37817         'alignof'.
37818         (alignof): Alias to alignof_slot.
37819         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
37820         check that the results are usable as constant expressions.
37821
37822 2009-05-31  Bruno Haible  <bruno@clisp.org>
37823
37824         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
37825         * tests/test-memchr.c (main): Check that memchr does not read past the
37826         first occurrence of the byte.
37827         * tests/test-strstr.c (main): Update comment.
37828         Suggested by Eric Blake.
37829
37830 2009-05-30  Bruno Haible  <bruno@clisp.org>
37831
37832         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
37833         detail how to use dumpbin.
37834         Reported by David Byron <dbyron@dbyron.com>.
37835
37836 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37837
37838         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
37839
37840 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37841
37842         * m4/manywarnings.m4: Add GCC 4.4 warnings.
37843
37844 2009-05-28  Bruno Haible  <bruno@clisp.org>
37845
37846         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
37847         build-aux/ files.
37848
37849 2009-05-28  Simon Josefsson  <simon@josefsson.org>
37850
37851         * gnulib-tool (func_import): Transform license on build-aux/ files too.
37852
37853 2009-05-27  Simon Josefsson  <simon@josefsson.org>
37854
37855         * gnulib-tool (sed_transform_main_lib_file)
37856         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
37857         regexps.
37858
37859 2009-05-26  Simon Josefsson  <simon@josefsson.org>
37860
37861         * tests/test-strstr.c: Add another self-test.
37862         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
37863         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
37864
37865 2009-05-23  Bruno Haible  <bruno@clisp.org>
37866
37867         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
37868         change.
37869
37870 2009-05-21  Bruno Haible  <bruno@clisp.org>
37871
37872         Simplify use of mode_t varargs.
37873         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
37874         uses 'mode_t' or 'int'.
37875         * lib/openat.c (openat): Likewise.
37876         * lib/open-safer.c (open_safer): Likewise.
37877         * m4/mode_t.m4: New file.
37878         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
37879         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
37880         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
37881         * modules/open (Files): Add m4/mode_t.m4.
37882         * modules/openat (Files): Likewise.
37883         * modules/fcntl-safer (Files): Likewise.
37884         Suggested by Eric Blake.
37885
37886 2009-05-21  Pádraig Brady  <P@draigbrady.com>
37887
37888         * doc/glibc-functions/fallocate.texi: New file.
37889         * doc/gnulib.texi: Include it.
37890
37891 2009-05-21  Eric Blake  <ebb9@byu.net>
37892             Bruno Haible  <bruno@clisp.org>
37893
37894         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
37895         invocations.
37896         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37897
37898 2009-05-21  Eric Blake  <ebb9@byu.net>
37899             Bruno Haible  <bruno@clisp.org>
37900
37901         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
37902         include_next. Fix of 2008-11-20 commit.
37903         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
37904         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
37905         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
37906         NEXT_MATH_H.
37907         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
37908         instead of NEXT_MATH_H.
37909
37910 2009-05-21  Bruno Haible  <bruno@clisp.org>
37911
37912         Avoid redefinition warnings for SIZE_MAX.
37913         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
37914         Reported by Simon Josefsson.
37915
37916 2009-05-21  Bruno Haible  <bruno@clisp.org>
37917
37918         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
37919         AC_CACHE_VAL.
37920
37921 2009-05-20  Bruno Haible  <bruno@clisp.org>
37922
37923         Make zeroptr.h work on mingw.
37924         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
37925         mprotect.
37926         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
37927         * modules/memchr2-tests (configure.ac): Likewise.
37928         * modules/memcmp-tests (configure.ac): Likewise.
37929         * modules/memmem-tests (configure.ac): Likewise.
37930         * modules/memrchr-tests (configure.ac): Likewise.
37931         Reported by Simon Josefsson.
37932
37933 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37934
37935         * tests/test-glob.c: Include string.h for strcmp prototype.
37936
37937 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37938
37939         * modules/getdelim (Depends-on): Add explicit stdint, although it
37940         was implicitly already pulled in via realloc-posix.
37941         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
37942
37943 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37944
37945         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
37946         G. Christensen" <tgc@jupiterrise.com>.
37947         * m4/sys_socket_h.m4: Check for sa_family_t.
37948         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
37949         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
37950         * tests/test-sys_socket.c: Check that sa_family_t works.
37951
37952 2009-05-18  Eric Blake  <ebb9@byu.net>
37953
37954         maint.mk: allow gnulib_dir in VPATH build
37955         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
37956
37957 2009-05-15  Jim Meyering  <meyering@redhat.com>
37958
37959         maint.mk: Give gnulib_dir a default definition.
37960         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
37961         Thus, most packages no longer need to specify this variable in cfg.mk
37962
37963 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
37964
37965         rename.m4: fix typos that would make non-mingw cross-configure fail
37966         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
37967
37968 2009-05-13  Eric Blake  <ebb9@byu.net>
37969
37970         mmap-anon: avoid out-of-order autoconf expansion
37971         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
37972         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
37973         * modules/memchr-tests (Depends-on): Add extensions.
37974         * modules/memchr2-tests (Depends-on): Add extensions.
37975         * modules/memcmp-tests (Depends-on): Add extensions.
37976         * modules/memmem-tests (Depends-on): Add extensions.
37977         * modules/memrchr-tests (Depends-on): Add extensions.
37978
37979 2009-05-13  Bruno Haible  <bruno@clisp.org>
37980
37981         Make some tests ISO C 99 compliant.
37982         * tests/zerosize-ptr.h: New file.
37983         * tests/test-memchr.c: Include zerosize-ptr.h.
37984         (main): Use a zero-size object pointer instead of NULL.
37985         * tests/test-memchr2.c: Include zerosize-ptr.h.
37986         (main): Use a zero-size object pointer instead of NULL.
37987         * tests/test-memcmp.c: Include zerosize-ptr.h.
37988         (main): Use a zero-size object pointer instead of NULL.
37989         * tests/test-memmem.c: Include zerosize-ptr.h.
37990         (main): Use a zero-size object pointer instead of NULL.
37991         * tests/test-memrchr.c: Include zerosize-ptr.h.
37992         (main): Use a zero-size object pointer instead of NULL.
37993         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
37994         m4/mmap-anon.m4.
37995         (Depends-on): Add getpagesize.
37996         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37997         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
37998         m4/mmap-anon.m4.
37999         (Depends-on): Add getpagesize.
38000         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38001         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38002         m4/mmap-anon.m4.
38003         (Depends-on): Add getpagesize.
38004         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38005         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38006         m4/mmap-anon.m4.
38007         (Depends-on): Add getpagesize.
38008         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38009         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38010         m4/mmap-anon.m4.
38011         (Depends-on): Add getpagesize.
38012         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38013
38014 2009-05-12  Bruno Haible  <bruno@clisp.org>
38015
38016         Tests for module 'alignof'.
38017         * modules/alignof-tests: New file.
38018         * tests/test-alignof.c: New file.
38019
38020 2009-05-12  Bruno Haible  <bruno@clisp.org>
38021
38022         Fix alignof macro.
38023         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38024         vendor compilers that are always correct.
38025
38026 2009-05-12  Bruno Haible  <bruno@clisp.org>
38027
38028         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38029         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38030         not whether its fully works.
38031
38032 2009-05-12  Bruno Haible  <bruno@clisp.org>
38033
38034         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38035
38036 2009-05-12  Jim Meyering  <meyering@redhat.com>
38037
38038         * top/maint.mk: Adjust backslash alignment.
38039
38040 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38041
38042         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38043
38044 2009-05-11  Eric Blake  <ebb9@byu.net>
38045
38046         argp: avoid undefined behavior
38047         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38048         macros.
38049
38050 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38051
38052         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38053         user.name to prevent git commit from complaining.
38054
38055 2009-05-10  Bruno Haible  <bruno@clisp.org>
38056
38057         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38058         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38059         it rewrites every file name only once.
38060         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38061
38062 2009-05-08  Bruno Haible  <bruno@clisp.org>
38063
38064         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38065         instead of 'max'.
38066
38067 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38068
38069         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38070         sockaddr_storage test.
38071
38072 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38073
38074         * modules/sys_socket (Makefile.am): Substitute
38075         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38076         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38077         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38078         * tests/test-sys_socket.c: Check sockaddr_storage.
38079
38080 2009-05-08  Bruno Haible  <bruno@clisp.org>
38081
38082         New module 'alignof'.
38083         * lib/alignof.h: New file.
38084         * modules/alignof: New file.
38085
38086 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38087             Bruno Haible  <bruno@clisp.org>
38088
38089         Fix test-file-has-acl on FreeBSD.
38090         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38091         mask is implicitly added.
38092         * tests/test-file-has-acl.c: Include <signal.h>.
38093         (main): Terminate the test after 5 seconds.
38094         * modules/acl-tests (configure.ac): Check for alarm function.
38095
38096 2009-05-04  Bruno Haible  <bruno@clisp.org>
38097
38098         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38099         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38100         * modules/errno (configure.ac): Drop AC_REQUIRE.
38101         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38102         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38103
38104 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38105
38106         * modules/glob-tests: New module.
38107         * tests/test-glob.c: Add.
38108
38109 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38110
38111         * modules/fnmatch-tests: New module.
38112         * tests/test-fnmatch.c: Add.
38113
38114 2009-05-04  Eric Blake  <ebb9@byu.net>
38115
38116         maint: make the new no-submodule-changes rule VPATH-safe
38117         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38118
38119 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38120             Bruno Haible  <bruno@clisp.org>
38121
38122         acl: Fix infinite loop on FreeBSD.
38123         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38124         of return value from acl_get_entry.
38125         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38126         Likewise.
38127
38128 2009-05-03  Bruno Haible  <bruno@clisp.org>
38129
38130         * lib/acl-internal.h (acl_entries): Clarify return value.
38131         * lib/acl_entries.c (acl_entries): Likewise.
38132
38133 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38134
38135         Bug fix in acl module.
38136         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38137
38138 2009-05-03  Bruno Haible  <bruno@clisp.org>
38139
38140         Create gperf-generated file in the source dir, not in the build dir.
38141         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38142         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38143         * modules/unicase/locale-language (unicase/locale-languages.h):
38144         Likewise.
38145         * modules/unicase/special-casing (unicase/special-casing-table.h):
38146         Likewise.
38147         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38148         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38149         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38150         Reported by Ralf Wildenhues.
38151
38152 2009-05-03  Bruno Haible  <bruno@clisp.org>
38153
38154         * modules/fnmatch (Description, configure.ac): Taken from
38155         fnmatch-posix.
38156         * modules/fnmatch-posix: Turn into a symbolic reference to the
38157         'fnmatch' module, and deprecate.
38158         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38159
38160 2009-05-03  Bruno Haible  <bruno@clisp.org>
38161
38162         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38163         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38164         Reported by Ralf Wildenhues.
38165
38166 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38167
38168         * m4/fnmatch.m4: Fix fnmatch re-define.
38169
38170 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38171
38172         priv-set: new module and tests; adapt write-any-file
38173         * lib/priv-set.c: New file.
38174         * lib/priv-set.h: New file.
38175         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38176         * lib/write-any-file.c: Simplify by using priv-set module.
38177         * m4/priv-set.m4: New file.
38178         * modules/priv-set: New file.
38179         * modules/unlinkdir: Add dependency on priv-set module.
38180         * modules/write-any-file: Likewise.
38181
38182         Tests for module 'priv-set'.
38183         * modules/priv-set-tests: New file.
38184         * tests/test-priv-set.c: New file.
38185
38186 2009-05-03  Jim Meyering  <meyering@redhat.com>
38187             Bruno Haible  <bruno@clisp.org>
38188
38189         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38190         use the converted UTF-8 variant of the name instead.
38191
38192 2009-05-03  Jim Meyering  <meyering@redhat.com>
38193
38194         tests: tighten some getdate tests
38195         * tests/test-getdate.c (main): Tighten tests: require equality,
38196         not just greater than.  Set TZ envvar to UTC0.
38197
38198 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38199
38200         getdate: correctly interpret "next monday" when run on a Monday
38201         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38202         that e.g., "next tues" (when run on a tuesday) results in a date
38203         that is one week in the future, and not today's date.
38204         I.e., add a week when the wday is the same as the current one.
38205         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38206         and earlier by Martin Bernreuther and Jan Minář.
38207         * tests/test-getdate.c (main): Check that "next DAY" is always in
38208         the future and that "last DAY" is always in the past.
38209
38210 2009-05-02  Jim Meyering  <meyering@redhat.com>
38211
38212         build: ensure that a release build fails when a submodule is unclean
38213         * top/maint.mk (no-submodule-changes): New rule.
38214         (alpha beta major): Depend on it.
38215
38216 2009-05-02  Bruno Haible  <bruno@clisp.org>
38217
38218         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38219         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38220         shell variable gl_fnmatch_required to detect which variant is
38221         requested.
38222         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38223         gl_FUNC_FNMATCH_POSIX.
38224         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38225         exclude fnmatch-posix.
38226
38227 2009-05-02  Bruno Haible  <bruno@clisp.org>
38228
38229         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38230         * modules/mbsrtowcs (License): Change to LGPLv2+.
38231         * modules/strnlen1 (License): Likewise.
38232         Reported by Simon Josefsson.
38233
38234 2009-05-02  Bruno Haible  <bruno@clisp.org>
38235
38236         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38237         "cross".
38238         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38239         gnulib-tool was called with option --source-base=lib.
38240
38241 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38242
38243         Use automake *-local hooks without commands, for extensibility.
38244         * modules/localcharset (Makefile.am): Rename install-exec-local
38245         rule to install-exec-localcharset, and make it a prerequisite of
38246         install-exec-local.  Likewise, rename the uninstall-local rule to
38247         uninstall-localcharset, and make it a prerequisite of the former.
38248
38249 2009-05-01  Bruno Haible  <bruno@clisp.org>
38250
38251         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38252         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38253         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38254         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38255         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38256         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38257         m4/locale-zh.m4, m4/codeset.m4.
38258
38259         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38260         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38261         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38262         m4/locale-zh.m4.
38263
38264         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38265         REPLACE_WCRTOMB if mbstate_t must be replaced.
38266         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38267         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38268
38269 2009-05-01  Bruno Haible  <bruno@clisp.org>
38270
38271         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38272         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38273         dngettext, dcngettext, textdomain, bindtextdomain,
38274         bind_textdomain_codeset): Undefine before redefining.
38275
38276 2009-04-30  Bruno Haible  <bruno@clisp.org>
38277
38278         Fix bug introduced on 2009-04-25.
38279         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38280         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38281         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38282         is defined.
38283         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38284         is defined.
38285         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38286         is defined.
38287         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38288
38289 2009-04-28  Bruno Haible  <bruno@clisp.org>
38290
38291         Comment tweaks.
38292         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38293         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38294         * lib/unicase.h (u*_casexfrm): Likewise.
38295         Reported by Paolo Bonzini.
38296
38297 2009-04-28  Bruno Haible  <bruno@clisp.org>
38298
38299         Fix a compilation error.
38300         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38301         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38302         Reported by Jim Meyering.
38303
38304 2009-04-27  Bruno Haible  <bruno@clisp.org>
38305
38306         New module 'libunistring'.
38307         * modules/libunistring: New file.
38308         * m4/libunistring.m4: New file.
38309         * MODULES.html.sh (Unicode string functions): Add it.
38310
38311 2009-04-27  Eric Blake  <ebb9@byu.net>
38312
38313         maint.mk: allow package-specific header to provide <config.h>
38314         * top/maint.mk (sc_require_config_h): New variable.
38315         (sc_require_config_h, sc_require_config_h_first): Use it.
38316
38317 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38318
38319         * top/maint.mk (sc_avoid_if_before_free): Except
38320         useless-if-before-free script.
38321
38322 2009-04-27  Eric Blake  <ebb9@byu.net>
38323
38324         maintainer-makefile: depend on all required helper scripts
38325         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38326         useless-if-before-free.
38327         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38328         version, rather than assuming gnulib checkout is available.
38329         Reported by Simen Josefsson.
38330
38331 2009-04-26  Bruno Haible  <bruno@clisp.org>
38332
38333         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38334         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38335         "../" or "..".
38336
38337 2009-04-26  Bruno Haible  <bruno@clisp.org>
38338
38339         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38340         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38341         AC_LIB_HAVE_LINKFLAGS.
38342
38343 2009-04-26  Bruno Haible  <bruno@clisp.org>
38344
38345         Simplify calling convention of u*_conv_from_encoding.
38346         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38347         u32_conv_from_encoding): Expect a resultbuf argument and return the
38348         result directly as a pointer.
38349         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38350         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38351         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38352         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38353         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
38354         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38355         Update.
38356         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
38357         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
38358         * lib/vasnprintf.c (VASNPRINTF): Update.
38359         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
38360         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
38361         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
38362         * NEWS: Mention the change.
38363
38364 2009-04-26  Bruno Haible  <bruno@clisp.org>
38365
38366         Simplify calling convention of u*_conv_to_encoding.
38367         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38368         u32_conv_to_encoding): Expect a resultbuf argument and return the
38369         result directly as a pointer.
38370         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38371         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
38372         freeing scaled_offsets if mem_iconveha failed.
38373         * lib/unicase/u-casexfrm.h (FUNC): Update.
38374         * lib/uninorm/u-normxfrm.h (FUNC): Update.
38375         * lib/vasnprintf.c (VASNPRINTF): Update.
38376         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
38377         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
38378         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
38379         * NEWS: Mention the change.
38380
38381 2009-04-26  Bruno Haible  <bruno@clisp.org>
38382
38383         Avoid test failures on AIX and OSF/1.
38384         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
38385         malloc(0).
38386         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38387         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38388         Likewise.
38389         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
38390         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
38391         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
38392         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
38393         * doc/posix-functions/malloc.texi: Document the portability problem
38394         related to malloc(0).
38395
38396 2009-04-26  Bruno Haible  <bruno@clisp.org>
38397
38398         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
38399         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
38400         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
38401
38402 2009-04-25  Bruno Haible  <bruno@clisp.org>
38403
38404         Avoid link error when creating a namespace clean library.
38405         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
38406         as macro with arguments if already defined as an alias.
38407         * lib/signbitf.c (gl_signbitf): Don't undefine.
38408         * lib/signbitd.c (gl_signbitd): Don't undefine.
38409         * lib/signbitl.c (gl_signbitl): Don't undefine.
38410
38411 2009-04-25  Jim Meyering  <meyering@redhat.com>
38412
38413         vc-list-files: fix another quoting bug
38414         * build-aux/vc-list-files: Avoid sed backslash expansion
38415         of pathological directory names.
38416
38417 2009-04-25  Eric Blake  <ebb9@byu.net>
38418
38419         vc-list-files: fix shell quoting error
38420         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
38421         timestamp.
38422
38423 2009-04-25  Jim Meyering  <meyering@redhat.com>
38424
38425         vc-list-files: restore lost functionality with subdir argument
38426         * build-aux/vc-list-files: When given a non-"." sub-directory
38427         argument, substitute the $dir/ prefix back onto each resulting name.
38428         Otherwise, coreutils' root_tests check would fail.
38429
38430 2009-04-24  Eric Blake  <ebb9@byu.net>
38431
38432         vc-list-files: ignore git symlinks
38433         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
38434         than ls-files, to ignore git symlinks.
38435
38436         maint.mk: import improvements from m4
38437         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
38438         (move_if_change): Delete unused macro.
38439         (news-date-check, vc-diff-check): Support VPATH builds.
38440         (announcement): Likewise.  Split --bootstrap-tools list...
38441         (boostrap-tools): ...into separate list, which can be overridden
38442         in cfg.mk.
38443         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
38444         requiring dependency on useless-if-before-free module.
38445         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
38446         Support VPATH builds.
38447
38448 2009-04-24  Jim Meyering  <meyering@redhat.com>
38449
38450         maint.mk: remove coreutils-specific rules and variables
38451         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
38452         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38453         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38454
38455         maint.mk: remove obsolete rule
38456         * top/maint.mk (rel-check): Remove rule.
38457         (WGET, WGETFLAGS): Remove now-unused variables.
38458
38459 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38460
38461         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38462         consistency.
38463
38464         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38465         '$(PATH_SEPARATOR)' instead of ':'.
38466
38467 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38468
38469         * lib/getopt1.c (main): Use 'const' for static array.
38470
38471 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38472
38473         * top/maint.mk: Sync with coreutils.
38474         * NEWS: Explain incompatibilities.
38475
38476 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38477             Bruno Haible  <bruno@clisp.org>
38478
38479         Fix cross-compilation results.
38480         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38481         statement, as third argument of AC_TRY_RUN.
38482         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38483         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
38484         Likewise.
38485         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38486         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38487         Likewise.
38488         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38489         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
38490         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
38491
38492 2009-04-20  Bruno Haible  <bruno@clisp.org>
38493
38494         Avoid test failure on mingw.
38495         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
38496
38497 2009-04-20  Bruno Haible  <bruno@clisp.org>
38498
38499         Avoid compilation error on mingw.
38500         * modules/localename-tests (Depends-on): Add locale.
38501
38502 2009-04-19  Bruno Haible  <bruno@clisp.org>
38503
38504         Support for building a shared library on Windows platforms.
38505         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
38506         (main): Test the presence of UNINORM_NFC here.
38507         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
38508         (main): Test the presence of UNINORM_NFD here.
38509         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
38510         (main): Test the presence of UNINORM_NFKC here.
38511         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
38512         (main): Test the presence of UNINORM_NFKD here.
38513
38514 2009-04-19  Bruno Haible  <bruno@clisp.org>
38515
38516         Avoid a compiler warning.
38517         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
38518         Change type of variable 'sequence'.
38519
38520 2009-04-19  Bruno Haible  <bruno@clisp.org>
38521
38522         * modules/configmake (Makefile.am): When the contents of configmake.h
38523         does not change, arrange to preserve its modification time.
38524
38525 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38526
38527         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
38528         gettext domain.
38529
38530 2009-04-16  Jim Meyering  <meyering@redhat.com>
38531
38532         useless-if-before-free: improve conversion code
38533         * build-aux/useless-if-before-free: Adjust code-in-comment to match
38534         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
38535
38536 2009-04-14  Bruno Haible  <bruno@clisp.org>
38537
38538         * modules/fcntl (Depends-on): Add extensions.
38539         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
38540
38541 2009-04-12  Ben Pfaff  <blp@gnu.org>
38542
38543         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
38544         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
38545
38546 2009-03-20  Ben Pfaff  <blp@gnu.org>
38547
38548         Make rename replace existing destinations on Windows.
38549         * m4/rename.m4: Add test for Mingw.
38550         * lib/rename.c: Add rename replacement that uses MoveFileEx with
38551         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
38552         * doc/posix-functions/rename.texi: Document.
38553
38554 2009-04-10  Bruno Haible  <bruno@clisp.org>
38555
38556         New include file "iconveh.h".
38557         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
38558         * lib/striconveh.h: Include it.
38559         (enum iconv_ilseq_handler): Remove definition.
38560         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
38561         striconveh.h.
38562         * lib/striconveha.c: Include striconveh.h.
38563         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
38564         * modules/striconveh (Files): Add lib/iconveh.h.
38565         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
38566         lib/striconveh.h.
38567
38568 2009-04-10  Bruno Haible  <bruno@clisp.org>
38569
38570         * lib/uniconv.h: Update comment.
38571
38572 2009-04-10  Bruno Haible  <bruno@clisp.org>
38573
38574         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
38575         always.
38576         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38577         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38578         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38579         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
38580         "unistring-notinline.h", so that the function gets defined always.
38581         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38582         * lib/unistr/u8-uctomb.c: Likewise.
38583         * lib/unistr/u16-mbtouc.c: Likewise.
38584         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38585         * lib/unistr/u16-uctomb.c: Likewise.
38586         * lib/unistr/u32-mbtouc.c: Likewise.
38587         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38588         * lib/unistr/u32-uctomb.c: Likewise.
38589
38590 2009-04-10  Bruno Haible  <bruno@clisp.org>
38591
38592         Mark 'utime' obsolete.
38593         * modules/utime (Status, Notice): New sections.
38594         Suggested by Jim Meyering.
38595
38596         Fix cross-compile guess for utime test.
38597         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
38598         autoconf.
38599         * doc/posix-functions/utime.texi: Give more precisions.
38600         Reported by Jan <ipif@ymail.com>.
38601
38602 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
38603
38604         filevercmp: correct today's change
38605         * lib/filevercmp.c: Also handle coreutils' test inputs.
38606         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
38607
38608         Fix regression in 'filevercmp' module. Thanks Sven Joachim
38609         for reporting it.
38610         * lib/filevercmp.c: Special handle for "", "." and "..".
38611         * tests/test-filevercmp.c: Enlarge the set suite.
38612
38613 2009-04-07  Jim Meyering  <meyering@redhat.com>
38614
38615         useless-if-before-free: show how to remove braced useless free, too
38616         * build-aux/useless-if-before-free: still only in a comment, though.
38617
38618 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
38619
38620         maint.mk: import changes to syntax-check macros from coreutils
38621         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
38622         Use them in the relevant macros.
38623
38624 2009-04-06  Bruno Haible  <bruno@clisp.org>
38625
38626         Fix unportable use of bit-fields.
38627         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
38628         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
38629         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
38630
38631 2009-04-06  Bruno Haible  <bruno@clisp.org>
38632
38633         Avoid test failures on AIX and OSF/1.
38634         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
38635         that malloc(0) = NULL.
38636         * tests/unicase/test-u8-tolower.c (check): Likewise.
38637         * tests/unicase/test-u8-totitle.c (check): Likewise.
38638         * tests/unicase/test-u8-toupper.c (check): Likewise.
38639         * tests/unicase/test-u16-casefold.c (check): Likewise.
38640         * tests/unicase/test-u16-tolower.c (check): Likewise.
38641         * tests/unicase/test-u16-totitle.c (check): Likewise.
38642         * tests/unicase/test-u16-toupper.c (check): Likewise.
38643         * tests/unicase/test-u32-casefold.c (check): Likewise.
38644         * tests/unicase/test-u32-tolower.c (check): Likewise.
38645         * tests/unicase/test-u32-totitle.c (check): Likewise.
38646         * tests/unicase/test-u32-toupper.c (check): Likewise.
38647         * tests/uninorm/test-u8-nfc.c (check): Likewise.
38648         * tests/uninorm/test-u8-nfd.c (check): Likewise.
38649         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
38650         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
38651         * tests/uninorm/test-u16-nfc.c (check): Likewise.
38652         * tests/uninorm/test-u16-nfd.c (check): Likewise.
38653         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
38654         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
38655         * tests/uninorm/test-u32-nfc.c (check): Likewise.
38656         * tests/uninorm/test-u32-nfd.c (check): Likewise.
38657         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
38658         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
38659
38660 2009-04-05  Bruno Haible  <bruno@clisp.org>
38661
38662         Work around an autoconf limitation.
38663         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
38664         comment line if it would be longer than 3 KB.
38665
38666 2009-04-05  Bruno Haible  <bruno@clisp.org>
38667
38668         Avoid test failure with libiconv-1.13.
38669         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
38670         of the expected test results.
38671
38672 2009-04-05  Bruno Haible  <bruno@clisp.org>
38673
38674         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
38675         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
38676         that it should be installed.
38677
38678 2009-04-05  Bruno Haible  <bruno@clisp.org>
38679
38680         * gnulib-tool: New option --copy-file.
38681         (func_usage): Document it.
38682         (func_dest_tmpfilename): Moved out of func_import.
38683         (func_add_file, func_update_file): New functions, extracted from
38684         func_import.
38685         (func_import): Update.
38686
38687 2009-04-05  Karl Berry  <karl@gnu.org>
38688
38689         * README: prominently mention gnulib-tool.
38690         Rearrange sections so getting the code is near the top.
38691
38692 2009-04-05  Bruno Haible  <bruno@clisp.org>
38693
38694         * lib/unicase.h: Mention u*_cmp2.
38695         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38696         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
38697         * lib/unicase/ulc-casecmp.c: Likewise.
38698         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
38699         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
38700         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
38701         unistr/u8-cmp.
38702         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
38703         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
38704         unistr/u16-cmp.
38705         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
38706         unistr/u32-cmp.
38707
38708         * lib/uninorm.h: Mention u*_cmp2.
38709         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38710         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
38711         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
38712         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
38713         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
38714         unistr/u8-cmp.
38715         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
38716         unistr/u16-cmp.
38717         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
38718         unistr/u32-cmp.
38719
38720         New module 'unistr/u32-cmp2'.
38721         * lib/unistr/u32-cmp2.c: New file.
38722         * modules/unistr/u32-cmp2: New file.
38723
38724         New module 'unistr/u16-cmp2'.
38725         * lib/unistr/u16-cmp2.c: New file.
38726         * modules/unistr/u16-cmp2: New file.
38727
38728         New module 'unistr/u8-cmp2'.
38729         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
38730         * lib/unistr/u8-cmp2.c: New file.
38731         * lib/unistr/u-cmp2.h: New file.
38732         * modules/unistr/u8-cmp2: New file.
38733
38734 2009-04-05  Bruno Haible  <bruno@clisp.org>
38735
38736         * lib/unictype.h (uc_property_is_valid): New macro.
38737         * tests/unictype/test-pr_byname.c (main): Use it.
38738
38739         * lib/unistr.h: Doc fixes.
38740         * lib/uniconv.h: Doc fixes.
38741         * lib/unictype.h: Doc fixes.
38742
38743 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
38744
38745         Port coreutils 7.2 to Solaris 8.
38746
38747         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
38748         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
38749         for Solaris 8.  This is a bit of a hack, as it means it's the
38750         caller's responsibility to add -lnsl if needed, but most likely it
38751         won't be needed since only getaddrinfo uses this and getaddrinfo
38752         isn't needed on Solaris 8.
38753
38754         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
38755         problem to Solaris 8 encountered with coreutils 7.2, which
38756         resulted in a message "fnmatch.c:292: warning: passing argument 4
38757         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
38758         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
38759
38760 2009-04-03  Simon Josefsson  <simon@josefsson.org>
38761
38762         * m4/ld-version-script.m4: Add FIXME comment.
38763
38764 2009-04-02  Simon Josefsson  <simon@josefsson.org>
38765
38766         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
38767         SOVERSION variable.
38768
38769 2009-04-02  Bruno Haible  <bruno@clisp.org>
38770
38771         * Makefile (info, html, dvi, pdf): Combine the rules.
38772         Suggested by Jim Meyering.
38773
38774 2009-04-01  Bruno Haible  <bruno@clisp.org>
38775
38776         * Makefile (info, html, dvi, pdf): New targets.
38777         Reported by Reuben Thomas <rrt@sc3d.org>.
38778
38779 2009-04-01  Bruno Haible  <bruno@clisp.org>
38780
38781         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
38782         can be put into PATH.
38783         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
38784
38785 2009-04-01  Bruno Haible  <bruno@clisp.org>
38786
38787         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
38788
38789 2009-04-01  Bruno Haible  <bruno@clisp.org>
38790
38791         Rename module 'visibility'.
38792         * modules/lib-symbol-visibility: Renamed from modules/visibility.
38793         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
38794         * doc/gnulib.texi: Update.
38795         * MODULES.html.sh (Misc): Update.
38796         * NEWS: Mention the change.
38797
38798 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38799
38800         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
38801         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
38802         Eric Blake <ebb9@byu.net> for review.
38803         * MODULES.html.sh: Add lib-msvc-compat.
38804         * doc/gnulib.texi: Link to new section.
38805         * m4/ld-output-def.m4: New file.
38806         * doc/ld-output-def.texi: New file.
38807
38808 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38809
38810         Rename ld-version-script to lib-symbol-versions.  Suggested by
38811         Bruno Haible <bruno@clisp.org>.
38812         * modules/ld-version-script: Renamed to lib-symbol-versions.
38813         * doc/ld-version-script.texi: Fix module name.
38814         * MODULES.html.sh: Add lib-symbol-versions.
38815
38816 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38817
38818         * modules/u64-tests: New file.
38819         * tests/test-u64.c: New file.
38820
38821 2009-03-04  Simon Josefsson  <simon@josefsson.org>
38822
38823         * MODULES.html.sh: Mention u64.
38824         * modules/u64: New module.
38825         * modules/crypto/sha512: Depend on u64 module instead of providing
38826         u64.h.
38827
38828 2009-03-27  Eric Blake  <ebb9@byu.net>
38829
38830         test-strerror: make debugging EAI_SYSTEM easier
38831         * modules/getaddrinfo-tests (Depends-on): Add strerror.
38832         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
38833         failure was EAI_SYSTEM.
38834
38835 2009-03-25  Bruno Haible  <bruno@clisp.org>
38836
38837         Fix a problem with --enable-relocatable on Solaris 7.
38838         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
38839         since 2008-02-24.
38840
38841 2009-03-25  Eric Blake  <ebb9@byu.net>
38842
38843         test-sockets: avoid gcc warning
38844         * tests/test-sockets.c (main): Silence compiler warning.
38845
38846 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
38847
38848         New modules nproc, pthread, contributed by Glen Lenker.
38849
38850         * MODULES.html.sh: Add pthread, nproc.
38851         * lib/nproc.c: New file.
38852         * lib/nproc.h: New file.
38853         * lib/pthread.in.h: New file.
38854         * m4/pthread.m4: New file.
38855         * modules/nproc: New file.
38856         * modules/pthread: New file.
38857
38858 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38859
38860         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
38861         New variable.
38862
38863 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
38864
38865         filevercmp: handle simple~ and numbered.~3~ backup suffixes
38866         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
38867         * tests/test-filevercmp.c: Add tests for backup suffixes.
38868
38869 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38870
38871         * modules/stdlib (Depends-on): Add stdint, needed when defining
38872         struct random_data on, for example, HP-UX 10.20.  Reported by
38873         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38874
38875 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38876
38877         * lib/readline.c (readline): Call fflush on stdout after printing
38878         prompt.
38879
38880 2009-03-20  Bruno Haible  <bruno@clisp.org>
38881
38882         Remove dependency from 'close' module to -lws2_32 on native Windows.
38883         * lib/close-hook.h: New file.
38884         * lib/close-hook.c: New file.
38885         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
38886         w32sock.h.
38887         (_gl_close_fd_maybe_socket): Remove function.
38888         (rpl_close): Invoke execute_all_close_hooks instead of
38889         _gl_close_fd_maybe_socket.
38890         * lib/sockets.c: Include close-hook.h, w32sock.h.
38891         (close_fd_maybe_socket): New function, essentially from lib/close.c.
38892         (close_sockets_hook): New variable.
38893         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
38894         (gl_sockets_cleanup): Unregister it.
38895         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
38896         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
38897         * modules/close-hook: New file.
38898         * modules/close (Files): Remove lib/w32sock.h.
38899         (Depends-on): Add close-hook.
38900         (Link): Remove section.
38901         * modules/sockets (Files): Add lib/w32sock.h.
38902         (Depends-on): Add close-hook.
38903         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
38904         invocation.
38905         * NEWS: Mention that LIB_CLOSE is gone.
38906
38907 2009-03-23  Eric Blake  <ebb9@byu.net>
38908
38909         signal-tests: test previous patch
38910         * tests/test-signal.c: New file.
38911         * modules/signal-tests: Likewise.
38912
38913         signal.h: always support 'volatile sig_atomic_t'
38914         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
38915         (gl_SIGNAL_H_DEFAULTS): Add a default.
38916         * modules/signal (Makefile.am): Substitute if needed.
38917         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
38918         users can blindly add volatile.
38919         * doc/posix-headers/signal.texi (signal.h): Document it.
38920         Reported by Matthew Woehlke.
38921
38922 2009-03-23  Jim Meyering  <meyering@redhat.com>
38923
38924         pathmax: PATH_MAX: use pathconf only when available
38925         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
38926         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
38927         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
38928         This avoids a link failure in a PSP cross-compilation environment
38929         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
38930
38931         * lib/vasnprintf.c (divide): Fix typo in comment.
38932
38933 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38934
38935         * gnulib-tool (func_filter_filelist): Fix comment.
38936
38937 2009-03-20  Bruno Haible  <bruno@clisp.org>
38938
38939         Make sockets.h self-contained.
38940         * lib/sockets.c: Include sockets.h first.
38941         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
38942
38943 2009-03-19  Eric Blake  <ebb9@byu.net>
38944
38945         doc: mention more functions added in cygwin 1.7.0
38946         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
38947         addition.
38948         * doc/posix-functions/log2f.texi: Likewise.
38949
38950 2009-03-19  Jim Meyering  <meyering@redhat.com>
38951
38952         fsusage: avoid syntax error due to statement-before-declaration
38953         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
38954         after all declarations.  Reported by Matthew Woehlke in
38955         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
38956
38957 2009-03-18  Eric Blake  <ebb9@byu.net>
38958
38959         build-aux/compile: sync from automake
38960         * build-aux/compile: New file, from automake.
38961         * config/srclist.txt: Mention build-aux/compile.
38962
38963 2009-03-17  Bruno Haible  <bruno@clisp.org>
38964
38965         * lib/git-merge-changelog.c: Fix typo in comment.
38966         Reported by Reuben Thomas <rrt@sc3d.org>.
38967
38968 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
38969
38970         * m4/regex.m4: update and improve help for
38971         --without-included-regex.
38972
38973 2009-03-17  Simon Josefsson  <simon@josefsson.org>
38974
38975         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
38976         failure on missing include files.
38977
38978 2009-03-17  Eric Blake  <ebb9@byu.net>
38979
38980         doc: mention more functions added in cygwin 1.7.0
38981         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
38982         addition.
38983         * doc/posix-functions/fwscanf.texi: Likewise.
38984         * doc/posix-functions/swprintf.texi: Likewise.
38985         * doc/posix-functions/swscanf.texi: Likewise.
38986         * doc/posix-functions/vfwprintf.texi: Likewise.
38987         * doc/posix-functions/vfwscanf.texi: Likewise.
38988         * doc/posix-functions/vswprintf.texi: Likewise.
38989         * doc/posix-functions/vswscanf.texi: Likewise.
38990         * doc/posix-functions/vwprintf.texi: Likewise.
38991         * doc/posix-functions/vwscanf.texi: Likewise.
38992         * doc/posix-functions/wcscasecmp.texi: Likewise.
38993         * doc/posix-functions/wcsdup.texi: Likewise.
38994         * doc/posix-functions/wcsftime.texi: Likewise.
38995         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38996         * doc/posix-functions/wprintf.texi: Likewise.
38997         * doc/posix-functions/wscanf.texi: Likewise.
38998         * doc/glibc-functions/gethostbyname2.texi: Likewise.
38999
39000 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39001
39002         maint.mk: really add $(AM_MAKEFLAGS)
39003         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39004         was inadvertently omitted in the last commit.
39005         Spotted by Bruno Haible.
39006
39007         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39008         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39009         $(AM_MAKEFLAGS)' rather than plain `make'.
39010
39011         gnulib-tool: execute $MAKE not make
39012         * gnulib-tool: Default $MAKE to 'make'.
39013         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39014         than make.  Initialize $MAKE in the do-autobuild script.
39015
39016         gnulib-tool: use $MAKE not make in generated files
39017         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39018         make, in generated files.  Initialize $MAKE in the do-autobuild
39019         script.
39020
39021         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39022
39023         GNUmakefile: disable parallelism only for multiple, recursive targets
39024         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39025         additions in the Makefile.
39026         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39027         by Automake.
39028         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39029         are listed on the command line and at least one of them is
39030         listed in $(ALL_RECURSIVE_TARGETS).
39031
39032 2009-03-14  Bruno Haible  <bruno@clisp.org>
39033
39034         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39035         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39036         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39037         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39038         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39039         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39040         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39041         unistr/u8-uctomb.
39042         * modules/unistr/u8-strchr (Depends-on): Likewise.
39043         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39044         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39045         unistr/u16-uctomb.
39046         * modules/unistr/u16-strchr (Depends-on): Likewise.
39047         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39048
39049 2009-03-12  Bruno Haible  <bruno@clisp.org>
39050
39051         Work around select() bug on Interix 3.5.
39052         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39053         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39054         * m4/select.m4: New file.
39055         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39056         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39057         * modules/select (Files): Add m4/select.m4.
39058         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39059         * modules/nanosleep (Depends-on): Add select.
39060         * modules/poll (Depends-on): Likewise.
39061         * doc/posix-functions/select.texi: Mention the Interix bug.
39062         Reported by Markus Duft <mduft@gentoo.org>.
39063
39064         * lib/select.c: Renamed from lib/winsock-select.c.
39065         * modules/select (Files): Add lib/select.c, remove
39066         lib/winsock-select.c.
39067         (configure.ac): Update.
39068
39069 2009-03-12  Jim Meyering  <meyering@redhat.com>
39070
39071         avoid gcc warnings about unused macro definitions
39072         * lib/readtokens.c (STREQ): Remove unused definition.
39073         * lib/xmalloc.c (SIZE_MAX): Likewise.
39074         * lib/openat-die.c (N_): Likewise.
39075         * lib/mountlist.c (SIZE_MAX): Remove definition.
39076         Instead, include <stdint.h>.
39077         * lib/readutmp.c: Likewise.
39078         * modules/readutmp (Depends-on): Add stdint.
39079         * modules/mountlist (Depends-on): Add stdint.
39080         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39081
39082 2009-03-10  Bruno Haible  <bruno@clisp.org>
39083
39084         Tests for module 'mbmemcasecoll'.
39085         * modules/mbmemcasecoll-tests: New file.
39086         * tests/test-mbmemcasecoll1.sh: New file.
39087         * tests/test-mbmemcasecoll2.sh: New file.
39088         * tests/test-mbmemcasecoll3.sh: New file.
39089         * tests/test-mbmemcasecoll.c: New file.
39090
39091         New module 'mbmemcasecoll'.
39092         * lib/mbmemcasecoll.h: New file.
39093         * lib/mbmemcasecoll.c: New file.
39094         * modules/mbmemcasecoll: New file.
39095
39096         * tests/test-mbmemcasecmp.h: New file, extracted from
39097         tests/test-mbmemcasecmp.c.
39098         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39099         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39100         (main): Update.
39101         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39102
39103 2009-03-09  Bruno Haible  <bruno@clisp.org>
39104
39105         Tests for module 'mbmemcasecmp'.
39106         * modules/mbmemcasecmp-tests: New file.
39107         * tests/test-mbmemcasecmp1.sh: New file.
39108         * tests/test-mbmemcasecmp2.sh: New file.
39109         * tests/test-mbmemcasecmp3.sh: New file.
39110         * tests/test-mbmemcasecmp.c: New file.
39111
39112         New module 'mbmemcasecmp'.
39113         * lib/mbmemcasecmp.h: New file.
39114         * lib/mbmemcasecmp.c: New file.
39115         * modules/mbmemcasecmp: New file.
39116
39117 2009-03-09  Bruno Haible  <bruno@clisp.org>
39118
39119         Tests for module 'unicase/ulc-casecoll'.
39120         * modules/unicase/ulc-casecoll-tests: New file.
39121         * tests/unicase/test-ulc-casecoll1.sh: New file.
39122         * tests/unicase/test-ulc-casecoll2.sh: New file.
39123         * tests/unicase/test-ulc-casecoll.c: New file.
39124
39125         New module 'unicase/ulc-casecoll'.
39126         * lib/unicase.h (ulc_casecoll): New declaration.
39127         * lib/unicase/ulc-casecoll.c: New file.
39128         * modules/unicase/ulc-casecoll: New file.
39129
39130         New module 'unicase/ulc-casexfrm'.
39131         * lib/unicase.h (ulc_casexfrm): New declaration.
39132         * lib/unicase/ulc-casexfrm.c: New file.
39133         * modules/unicase/ulc-casexfrm: New file.
39134
39135 2009-03-09  Bruno Haible  <bruno@clisp.org>
39136
39137         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39138         invocations.
39139
39140         * m4/mbscasecmp.m4: Remove file.
39141         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39142         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39143
39144         * m4/mbscasestr.m4: Remove file.
39145         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39146         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39147
39148         * m4/mbschr.m4: Remove file.
39149         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39150         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39151
39152         * m4/mbscspn.m4: Remove file.
39153         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39154         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39155
39156         * m4/mbslen.m4: Remove file.
39157         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39158         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39159
39160         * m4/mbsncasecmp.m4: Remove file.
39161         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39162         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39163
39164         * m4/mbsnlen.m4: Remove file.
39165         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39166         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39167
39168         * m4/mbspbrk.m4: Remove file.
39169         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39170         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39171
39172         * m4/mbspcasecmp.m4: Remove file.
39173         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39174         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39175
39176         * m4/mbsrchr.m4: Remove file.
39177         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39178         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39179
39180         * m4/mbssep.m4: Remove file.
39181         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39182         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39183
39184         * m4/mbsspn.m4: Remove file.
39185         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39186         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39187
39188         * m4/mbsstr.m4: Remove file.
39189         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39190         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39191
39192         * m4/mbstok_r.m4: Remove file.
39193         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39194         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39195
39196         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39197
39198         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39199         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39200
39201         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39202
39203 2009-03-08  Bruno Haible  <bruno@clisp.org>
39204
39205         Tests for module 'unicase/ulc-casecmp'.
39206         * modules/unicase/ulc-casecmp-tests: New file.
39207         * tests/unicase/test-ulc-casecmp1.sh: New file.
39208         * tests/unicase/test-ulc-casecmp2.sh: New file.
39209         * tests/unicase/test-ulc-casecmp.c: New file.
39210
39211         New module 'unicase/ulc-casecmp'.
39212         * lib/unicase.h (ulc_casecmp): New declaration.
39213         * lib/unicase/ulc-casecmp.c: New file.
39214         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39215         'const SRC_UNIT *'.
39216         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39217         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39218         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39219         * modules/unicase/ulc-casecmp: New file.
39220
39221         Tests for module 'unicase/u32-is-cased'.
39222         * modules/unicase/u32-is-cased-tests: New file.
39223         * tests/unicase/test-u32-is-cased.c: New file.
39224
39225         Tests for module 'unicase/u16-is-cased'.
39226         * modules/unicase/u16-is-cased-tests: New file.
39227         * tests/unicase/test-u16-is-cased.c: New file.
39228
39229         Tests for module 'unicase/u8-is-cased'.
39230         * modules/unicase/u8-is-cased-tests: New file.
39231         * tests/unicase/test-u8-is-cased.c: New file.
39232         * tests/unicase/test-is-cased.h: New file.
39233
39234         New module 'unicase/u32-is-cased'.
39235         * lib/unicase/u32-is-cased.c: New file.
39236         * modules/unicase/u32-is-cased: New file.
39237
39238         New module 'unicase/u16-is-cased'.
39239         * lib/unicase/u16-is-cased.c: New file.
39240         * modules/unicase/u16-is-cased: New file.
39241
39242         New module 'unicase/u8-is-cased'.
39243         * lib/unicase/u8-is-cased.c: New file.
39244         * lib/unicase/u-is-cased.h: New file.
39245         * modules/unicase/u8-is-cased: New file.
39246
39247         Tests for module 'unicase/u32-is-casefolded'.
39248         * modules/unicase/u32-is-casefolded-tests: New file.
39249         * tests/unicase/test-u32-is-casefolded.c: New file.
39250
39251         Tests for module 'unicase/u16-is-casefolded'.
39252         * modules/unicase/u16-is-casefolded-tests: New file.
39253         * tests/unicase/test-u16-is-casefolded.c: New file.
39254
39255         Tests for module 'unicase/u8-is-casefolded'.
39256         * modules/unicase/u8-is-casefolded-tests: New file.
39257         * tests/unicase/test-u8-is-casefolded.c: New file.
39258         * tests/unicase/test-is-casefolded.h: New file.
39259
39260         New module 'unicase/u32-is-casefolded'.
39261         * lib/unicase/u32-is-casefolded.c: New file.
39262         * modules/unicase/u32-is-casefolded: New file.
39263
39264         New module 'unicase/u16-is-casefolded'.
39265         * lib/unicase/u16-is-casefolded.c: New file.
39266         * modules/unicase/u16-is-casefolded: New file.
39267
39268         New module 'unicase/u8-is-casefolded'.
39269         * lib/unicase/u8-is-casefolded.c: New file.
39270         * modules/unicase/u8-is-casefolded: New file.
39271
39272         Tests for module 'unicase/u32-is-titlecase'.
39273         * modules/unicase/u32-is-titlecase-tests: New file.
39274         * tests/unicase/test-u32-is-titlecase.c: New file.
39275
39276         Tests for module 'unicase/u16-is-titlecase'.
39277         * modules/unicase/u16-is-titlecase-tests: New file.
39278         * tests/unicase/test-u16-is-titlecase.c: New file.
39279
39280         Tests for module 'unicase/u8-is-titlecase'.
39281         * modules/unicase/u8-is-titlecase-tests: New file.
39282         * tests/unicase/test-u8-is-titlecase.c: New file.
39283         * tests/unicase/test-is-titlecase.h: New file.
39284
39285         New module 'unicase/u32-is-titlecase'.
39286         * lib/unicase/u32-is-titlecase.c: New file.
39287         * modules/unicase/u32-is-titlecase: New file.
39288
39289         New module 'unicase/u16-is-titlecase'.
39290         * lib/unicase/u16-is-titlecase.c: New file.
39291         * modules/unicase/u16-is-titlecase: New file.
39292
39293         New module 'unicase/u8-is-titlecase'.
39294         * lib/unicase/u8-is-titlecase.c: New file.
39295         * modules/unicase/u8-is-titlecase: New file.
39296
39297         Tests for module 'unicase/u32-is-lowercase'.
39298         * modules/unicase/u32-is-lowercase-tests: New file.
39299         * tests/unicase/test-u32-is-lowercase.c: New file.
39300
39301         Tests for module 'unicase/u16-is-lowercase'.
39302         * modules/unicase/u16-is-lowercase-tests: New file.
39303         * tests/unicase/test-u16-is-lowercase.c: New file.
39304
39305         Tests for module 'unicase/u8-is-lowercase'.
39306         * modules/unicase/u8-is-lowercase-tests: New file.
39307         * tests/unicase/test-u8-is-lowercase.c: New file.
39308         * tests/unicase/test-is-lowercase.h: New file.
39309
39310         New module 'unicase/u32-is-lowercase'.
39311         * lib/unicase/u32-is-lowercase.c: New file.
39312         * modules/unicase/u32-is-lowercase: New file.
39313
39314         New module 'unicase/u16-is-lowercase'.
39315         * lib/unicase/u16-is-lowercase.c: New file.
39316         * modules/unicase/u16-is-lowercase: New file.
39317
39318         New module 'unicase/u8-is-lowercase'.
39319         * lib/unicase/u8-is-lowercase.c: New file.
39320         * modules/unicase/u8-is-lowercase: New file.
39321
39322         Tests for module 'unicase/u32-is-uppercase'.
39323         * modules/unicase/u32-is-uppercase-tests: New file.
39324         * tests/unicase/test-u32-is-uppercase.c: New file.
39325
39326         Tests for module 'unicase/u16-is-uppercase'.
39327         * modules/unicase/u16-is-uppercase-tests: New file.
39328         * tests/unicase/test-u16-is-uppercase.c: New file.
39329
39330         Tests for module 'unicase/u8-is-uppercase'.
39331         * modules/unicase/u8-is-uppercase-tests: New file.
39332         * tests/unicase/test-u8-is-uppercase.c: New file.
39333         * tests/unicase/test-is-uppercase.h: New file.
39334
39335         New module 'unicase/u32-is-uppercase'.
39336         * lib/unicase/u32-is-uppercase.c: New file.
39337         * modules/unicase/u32-is-uppercase: New file.
39338
39339         New module 'unicase/u16-is-uppercase'.
39340         * lib/unicase/u16-is-uppercase.c: New file.
39341         * modules/unicase/u16-is-uppercase: New file.
39342
39343         New module 'unicase/u8-is-uppercase'.
39344         * lib/unicase/u8-is-uppercase.c: New file.
39345         * modules/unicase/u8-is-uppercase: New file.
39346
39347         New module 'unicase/u32-is-invariant'.
39348         * lib/unicase/u32-is-invariant.c: New file.
39349         * modules/unicase/u32-is-invariant: New file.
39350
39351         New module 'unicase/u16-is-invariant'.
39352         * lib/unicase/u16-is-invariant.c: New file.
39353         * modules/unicase/u16-is-invariant: New file.
39354
39355         New module 'unicase/u8-is-invariant'.
39356         * lib/unicase/u8-is-invariant.c: New file.
39357         * lib/unicase/invariant.h: New file.
39358         * lib/unicase/u-is-invariant.h: New file.
39359         * modules/unicase/u8-is-invariant: New file.
39360
39361         Tests for module 'unicase/u32-casecoll'.
39362         * modules/unicase/u32-casecoll-tests: New file.
39363         * tests/unicase/test-u32-casecoll.c: New file.
39364
39365         Tests for module 'unicase/u16-casecoll'.
39366         * modules/unicase/u16-casecoll-tests: New file.
39367         * tests/unicase/test-u16-casecoll.c: New file.
39368
39369         Tests for module 'unicase/u8-casecoll'.
39370         * modules/unicase/u8-casecoll-tests: New file.
39371         * tests/unicase/test-u8-casecoll.c: New file.
39372
39373         New module 'unicase/u32-casecoll'.
39374         * lib/unicase/u32-casecoll.c: New file.
39375         * modules/unicase/u32-casecoll: New file.
39376
39377         New module 'unicase/u16-casecoll'.
39378         * lib/unicase/u16-casecoll.c: New file.
39379         * modules/unicase/u16-casecoll: New file.
39380
39381         New module 'unicase/u8-casecoll'.
39382         * lib/unicase/u8-casecoll.c: New file.
39383         * lib/unicase/u-casecoll.h: New file.
39384         * modules/unicase/u8-casecoll: New file.
39385
39386         New module 'unicase/u32-casexfrm'.
39387         * lib/unicase/u32-casexfrm.c: New file.
39388         * modules/unicase/u32-casexfrm: New file.
39389
39390         New module 'unicase/u16-casexfrm'.
39391         * lib/unicase/u16-casexfrm.c: New file.
39392         * modules/unicase/u16-casexfrm: New file.
39393
39394         New module 'unicase/u8-casexfrm'.
39395         * lib/unicase/u8-casexfrm.c: New file.
39396         * lib/unicase/u-casexfrm.h: New file.
39397         * modules/unicase/u8-casexfrm: New file.
39398
39399         Tests for module 'unicase/u32-casecmp'.
39400         * modules/unicase/u32-casecmp-tests: New file.
39401         * tests/unicase/test-u32-casecmp.c: New file.
39402
39403         Tests for module 'unicase/u16-casecmp'.
39404         * modules/unicase/u16-casecmp-tests: New file.
39405         * tests/unicase/test-u16-casecmp.c: New file.
39406
39407         Tests for module 'unicase/u8-casecmp'.
39408         * modules/unicase/u8-casecmp-tests: New file.
39409         * tests/unicase/test-u8-casecmp.c: New file.
39410         * tests/unicase/test-casecmp.h: New file.
39411
39412         New module 'unicase/u32-casecmp'.
39413         * lib/unicase/u32-casecmp.c: New file.
39414         * modules/unicase/u32-casecmp: New file.
39415
39416         New module 'unicase/u16-casecmp'.
39417         * lib/unicase/u16-casecmp.c: New file.
39418         * modules/unicase/u16-casecmp: New file.
39419
39420         New module 'unicase/u8-casecmp'.
39421         * lib/unicase/u8-casecmp.c: New file.
39422         * lib/unicase/u-casecmp.h: New file.
39423         * modules/unicase/u8-casecmp: New file.
39424
39425         Tests for module 'unicase/u32-casefold'.
39426         * modules/unicase/u32-casefold-tests: New file.
39427         * tests/unicase/test-u32-casefold.c: New file.
39428
39429         Tests for module 'unicase/u16-casefold'.
39430         * modules/unicase/u16-casefold-tests: New file.
39431         * tests/unicase/test-u16-casefold.c: New file.
39432
39433         Tests for module 'unicase/u8-casefold'.
39434         * modules/unicase/u8-casefold-tests: New file.
39435         * tests/unicase/test-u8-casefold.c: New file.
39436
39437         New module 'unicase/u32-casefold'.
39438         * lib/unicase/u32-casefold.c: New file.
39439         * modules/unicase/u32-casefold: New file.
39440
39441         New module 'unicase/u16-casefold'.
39442         * lib/unicase/u16-casefold.c: New file.
39443         * modules/unicase/u16-casefold: New file.
39444
39445         New module 'unicase/u8-casefold'.
39446         * lib/unicase/u8-casefold.c: New file.
39447         * lib/unicase/u-casefold.h: New file.
39448         * modules/unicase/u8-casefold: New file.
39449
39450         New module 'unicase/tocasefold'.
39451         * lib/unicase/casefold.h: New file.
39452         * lib/unicase/tocasefold.c: New file.
39453         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39454         * modules/unicase/tocasefold: New file.
39455
39456         Tests for module 'unicase/u32-totitle'.
39457         * modules/unicase/u32-totitle-tests: New file.
39458         * tests/unicase/test-u32-totitle.c: New file.
39459
39460         Tests for module 'unicase/u16-totitle'.
39461         * modules/unicase/u16-totitle-tests: New file.
39462         * tests/unicase/test-u16-totitle.c: New file.
39463
39464         Tests for module 'unicase/u8-totitle'.
39465         * modules/unicase/u8-totitle-tests: New file.
39466         * tests/unicase/test-u8-totitle.c: New file.
39467
39468         New module 'unicase/u32-totitle'.
39469         * lib/unicase/u32-totitle.c: New file.
39470         * modules/unicase/u32-totitle: New file.
39471
39472         New module 'unicase/u16-totitle'.
39473         * lib/unicase/u16-totitle.c: New file.
39474         * modules/unicase/u16-totitle: New file.
39475
39476         New module 'unicase/u8-totitle'.
39477         * lib/unicase/u8-totitle.c: New file.
39478         * lib/unicase/u-totitle.h: New file.
39479         * modules/unicase/u8-totitle: New file.
39480
39481         Tests for module 'unicase/u32-tolower'.
39482         * modules/unicase/u32-tolower-tests: New file.
39483         * tests/unicase/test-u32-tolower.c: New file.
39484
39485         Tests for module 'unicase/u16-tolower'.
39486         * modules/unicase/u16-tolower-tests: New file.
39487         * tests/unicase/test-u16-tolower.c: New file.
39488
39489         Tests for module 'unicase/u8-tolower'.
39490         * modules/unicase/u8-tolower-tests: New file.
39491         * tests/unicase/test-u8-tolower.c: New file.
39492
39493         New module 'unicase/u32-tolower'.
39494         * lib/unicase/u32-tolower.c: New file.
39495         * modules/unicase/u32-tolower: New file.
39496
39497         New module 'unicase/u16-tolower'.
39498         * lib/unicase/u16-tolower.c: New file.
39499         * modules/unicase/u16-tolower: New file.
39500
39501         New module 'unicase/u8-tolower'.
39502         * lib/unicase/u8-tolower.c: New file.
39503         * modules/unicase/u8-tolower: New file.
39504
39505         Tests for module 'unicase/u32-toupper'.
39506         * modules/unicase/u32-toupper-tests: New file.
39507         * tests/unicase/test-u32-toupper.c: New file.
39508
39509         Tests for module 'unicase/u16-toupper'.
39510         * modules/unicase/u16-toupper-tests: New file.
39511         * tests/unicase/test-u16-toupper.c: New file.
39512
39513         Tests for module 'unicase/u8-toupper'.
39514         * modules/unicase/u8-toupper-tests: New file.
39515         * tests/unicase/test-u8-toupper.c: New file.
39516
39517         New module 'unicase/u32-toupper'.
39518         * lib/unicase/u32-toupper.c: New file.
39519         * modules/unicase/u32-toupper: New file.
39520
39521         New module 'unicase/u16-toupper'.
39522         * lib/unicase/u16-toupper.c: New file.
39523         * modules/unicase/u16-toupper: New file.
39524
39525         New module 'unicase/u8-toupper'.
39526         * lib/unicase/u8-toupper.c: New file.
39527         * modules/unicase/u8-toupper: New file.
39528
39529         New module 'unicase/u32-casemap'.
39530         * lib/unicase/u32-casemap.c: New file.
39531         * modules/unicase/u32-casemap: New file.
39532
39533         New module 'unicase/u16-casemap'.
39534         * lib/unicase/u16-casemap.c: New file.
39535         * modules/unicase/u16-casemap: New file.
39536
39537         New module 'unicase/u8-casemap'.
39538         * lib/unicase/unicasemap.h: New file.
39539         * lib/unicase/u8-casemap.c: New file.
39540         * lib/unicase/u-casemap.h: New file.
39541         * modules/unicase/u8-casemap: New file.
39542
39543         New module 'unicase/special-casing'.
39544         * lib/unicase/special-casing.h: New file.
39545         * lib/unicase/special-casing.c: New file.
39546         * lib/unicase/special-casing-table.gperf: New file, generated by
39547         gen-uni-tables.c.
39548         * modules/unicase/special-casing: New file.
39549
39550         Tests for module 'unicase/locale-language'.
39551         * modules/unicase/locale-language-tests: New file.
39552         * tests/unicase/test-locale-language.sh: New file.
39553         * tests/unicase/test-locale-language.c: New file.
39554
39555         New module 'unicase/locale-language'.
39556         * lib/unicase/locale-language.c: New file.
39557         * lib/unicase/locale-languages.gperf: New file.
39558         * modules/unicase/locale-language: New file.
39559
39560         Generate more tables for case conversion and case folding.
39561         * lib/gen-uni-tables.c (SCC_*): New enum items.
39562         (struct special_casing_rule): New type.
39563         (casing_rules, num_casing_rules, allocated_casing_rules): New
39564         variables.
39565         (add_casing_rule, fill_casing_rules): New functions.
39566         (struct casefold_rule): New type.
39567         (casefolding_rules, num_casefolding_rules,
39568         allocated_casefolding_rules): New variables.
39569         (fill_casefolding_rules): New function.
39570         (unicode_casefold): New variable.
39571         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
39572         sort_casing_rules, output_casing_rules): New functions.
39573         (main): Accept to more arguments: SpecialCasing.txt and
39574         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
39575         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
39576         Output mapping for casefolding.
39577
39578         * lib/unicase.h: Include stdbool.h, uninorm.h.
39579         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
39580         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
39581         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
39582         arguments.
39583         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
39584         resultp arguments.
39585         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
39586         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
39587         resultp arguments.
39588         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
39589         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
39590         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
39591         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
39592         declarations.
39593         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
39594
39595 2009-03-08  Bruno Haible  <bruno@clisp.org>
39596
39597         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39598         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
39599         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
39600         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39601
39602 2009-03-07  Bruno Haible  <bruno@clisp.org>
39603
39604         Adjust u*_normcmp, u*_normcoll API.
39605         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39606         u16_normcoll, u32_normcoll): Change failure conventions.
39607         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
39608         errno and return -1.
39609         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39610
39611 2009-03-07  Bruno Haible  <bruno@clisp.org>
39612
39613         Tests for module 'uninorm/u32-normcoll'.
39614         * modules/uninorm/u32-normcoll-tests: New file.
39615         * tests/uninorm/test-u32-normcoll.c: New file.
39616
39617         Tests for module 'uninorm/u16-normcoll'.
39618         * modules/uninorm/u16-normcoll-tests: New file.
39619         * tests/uninorm/test-u16-normcoll.c: New file.
39620
39621         Tests for module 'uninorm/u8-normcoll'.
39622         * modules/uninorm/u8-normcoll-tests: New file.
39623         * tests/uninorm/test-u8-normcoll.c: New file.
39624
39625 2009-03-07  Bruno Haible  <bruno@clisp.org>
39626
39627         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
39628         tests/uninorm/test-u32-normcmp.c.
39629         * tests/uninorm/test-u32-normcmp.c: Include it.
39630         (test_nonascii): New function, extracted from main. Add some more
39631         tests.
39632         (main): Invoke test_ascii and test_nonascii.
39633         * modules/uninorm/u32-normcmp-tests (Files): Add
39634         tests/uninorm/test-u32-normcmp.h.
39635         (Depends-on): Remove uninorm/u32-normcmp.
39636
39637         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
39638         tests/uninorm/test-u16-normcmp.c.
39639         * tests/uninorm/test-u16-normcmp.c: Include it.
39640         (test_nonascii): New function, extracted from main. Add some more
39641         tests.
39642         (main): Invoke test_ascii and test_nonascii.
39643         * modules/uninorm/u16-normcmp-tests (Files): Add
39644         tests/uninorm/test-u16-normcmp.h.
39645         (Depends-on): Remove uninorm/u16-normcmp.
39646
39647         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
39648         tests/uninorm/test-u8-normcmp.c.
39649         * tests/uninorm/test-u8-normcmp.c: Include it.
39650         (test_nonascii): New function, extracted from main. Add some more
39651         tests.
39652         (main): Invoke test_ascii and test_nonascii.
39653         * modules/uninorm/u8-normcmp-tests (Files): Add
39654         tests/uninorm/test-u8-normcmp.h.
39655         (Depends-on): Remove uninorm/u8-normcmp.
39656
39657 2009-03-07  Bruno Haible  <bruno@clisp.org>
39658
39659         New module 'uninorm/u32-normcoll'.
39660         * lib/uninorm/u32-normcoll.c: New file.
39661         * modules/uninorm/u32-normcoll: New file.
39662
39663         New module 'uninorm/u16-normcoll'.
39664         * lib/uninorm/u16-normcoll.c: New file.
39665         * modules/uninorm/u16-normcoll: New file.
39666
39667         New module 'uninorm/u8-normcoll'.
39668         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
39669         declarations.
39670         * lib/uninorm/u8-normcoll.c: New file.
39671         * lib/uninorm/u-normcoll.h: New file.
39672         * modules/uninorm/u8-normcoll: New file.
39673
39674         New module 'uninorm/u32-normxfrm'.
39675         * lib/uninorm/u32-normxfrm.c: New file.
39676         * modules/uninorm/u32-normxfrm: New file.
39677
39678         New module 'uninorm/u16-normxfrm'.
39679         * lib/uninorm/u16-normxfrm.c: New file.
39680         * modules/uninorm/u16-normxfrm: New file.
39681
39682         New module 'uninorm/u8-normxfrm'.
39683         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
39684         declarations.
39685         * lib/uninorm/u8-normxfrm.c: New file.
39686         * lib/uninorm/u-normxfrm.h: New file.
39687         * modules/uninorm/u8-normxfrm: New file.
39688
39689 2009-03-07  Bruno Haible  <bruno@clisp.org>
39690
39691         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
39692         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
39693         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
39694
39695 2009-03-07  Bruno Haible  <bruno@clisp.org>
39696
39697         New module 'memxfrm'.
39698         * lib/memxfrm.h: New file.
39699         * lib/memxfrm.c: New file.
39700         * modules/memxfrm: New file.
39701
39702 2009-03-07  Bruno Haible  <bruno@clisp.org>
39703
39704         New module 'memcmp2'.
39705         * lib/memcmp2.h: New file.
39706         * lib/memcmp2.c: New file.
39707         * modules/memcmp2: New file.
39708
39709 2009-03-07  Bruno Haible  <bruno@clisp.org>
39710
39711         Tests for module 'uninorm/decomposing-form'.
39712         * modules/uninorm/decomposing-form-tests: New file.
39713         * tests/uninorm/test-decomposing-form.c: New file.
39714
39715         New module 'uninorm/decomposing-form'.
39716         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
39717         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
39718         Add 'decomposing_variant' field.
39719         * lib/uninorm/decomposing-form.c: New file.
39720         * lib/uninorm/nfc.c (uninorm_nfc): Update.
39721         * lib/uninorm/nfd.c (uninorm_nfd): Update.
39722         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
39723         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
39724         * modules/uninorm/decomposing-form: New file.
39725         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
39726         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
39727
39728 2009-03-07  Bruno Haible  <bruno@clisp.org>
39729
39730         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
39731         strings.
39732
39733 2009-03-06  Bruno Haible  <bruno@clisp.org>
39734
39735         Tests for module 'uninorm/u32-normcmp'.
39736         * tests/uninorm/test-u32-normcmp.c: New file.
39737         * modules/uninorm/u32-normcmp-tests: New file.
39738
39739         Tests for module 'uninorm/u16-normcmp'.
39740         * tests/uninorm/test-u16-normcmp.c: New file.
39741         * modules/uninorm/u16-normcmp-tests: New file.
39742
39743         Tests for module 'uninorm/u8-normcmp'.
39744         * tests/uninorm/test-u8-normcmp.c: New file.
39745         * modules/uninorm/u8-normcmp-tests: New file.
39746
39747         New module 'uninorm/u32-normcmp'.
39748         * lib/uninorm/u32-normcmp.c: New file.
39749         * modules/uninorm/u32-normcmp: New file.
39750
39751         New module 'uninorm/u16-normcmp'.
39752         * lib/uninorm/u16-normcmp.c: New file.
39753         * modules/uninorm/u16-normcmp: New file.
39754
39755         New module 'uninorm/u8-normcmp'.
39756         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
39757         declarations.
39758         * lib/uninorm/u8-normcmp.c: New file.
39759         * lib/uninorm/u-normcmp.h: New file.
39760         * modules/uninorm/u8-normcmp: New file.
39761
39762 2009-03-06  Bruno Haible  <bruno@clisp.org>
39763
39764         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
39765         Reported by Eric Blake.
39766
39767 2009-03-06  Eric Blake  <ebb9@byu.net>
39768             Bruno Haible  <bruno@clisp.org>
39769
39770         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
39771         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
39772         condition.
39773         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39774         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
39775         condition.
39776         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39777
39778 2009-03-06  Eric Blake  <ebb9@byu.net>
39779
39780         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
39781         to avoid compiler warnings.
39782         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
39783
39784 2009-03-05  Bruno Haible  <bruno@clisp.org>
39785
39786         * tests/test-ftell.c (main): Disable test beyond end of file on
39787         FreeMiNT.
39788         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39789
39790 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
39791
39792         * lib/filevercmp.c: Move hidden files up in ordering.
39793         * tests/test-filevercmp.c: Add tests for hidden files.
39794
39795 2009-03-04  Bruno Haible  <bruno@clisp.org>
39796
39797         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
39798         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
39799         AM_CFLAGS.
39800         Reported by Simon Josefsson.
39801
39802 2009-03-03  Bruno Haible  <bruno@clisp.org>
39803
39804         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
39805         Reported by Simon Josefsson.
39806
39807         * doc/ld-version-script.texi: Update node reference.
39808
39809 2009-03-03  Bruno Haible  <bruno@clisp.org>
39810
39811         * modules/visibility (License): Change to 'unlimited'.
39812         Suggested by Simon Josefsson.
39813
39814 2009-03-03  Jim Meyering  <meyering@redhat.com>
39815
39816         unlinkdir: cannot_unlink_dir may modify process state
39817         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
39818         it's neither thread-safe nor appropriate for use in a library.
39819
39820 2009-03-03  Eric Blake  <ebb9@byu.net>
39821
39822         test-closein: silence test under Darwin
39823         * tests/test-closein.sh: Ignore stderr from cat, since we don't
39824         care if it dies from EPIPE or EBADF.
39825
39826 2009-03-03  Bruno Haible  <bruno@clisp.org>
39827
39828         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
39829         earlier.
39830         * doc/visibility.texi: Fix @node and @section.
39831
39832 2009-03-03  Simon Josefsson  <simon@josefsson.org>
39833
39834         * doc/gnulib.texi: Link to sections for ld version script and
39835         visibility.
39836         * doc/visibility.texi: Add @node and @section.
39837         * modules/ld-version-script: New module.
39838         * m4/ld-version-script.m4: New file.
39839         * doc/ld-version-script.texi: New file.
39840
39841 2009-03-02  David Lutterkort  <lutter@redhat.com>
39842
39843         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
39844         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39845
39846 2009-03-02  Bruno Haible  <bruno@clisp.org>
39847
39848         * doc/visibility.texi: Mention libtool's -export-symbols option.
39849
39850 2009-03-02  Jim Meyering  <meyering@redhat.com>
39851
39852         announce-gen: new option: --no-print-checksums
39853         * build-aux/announce-gen (usage): Describe it.
39854         (print_checksums): Print a newline here, not in the [*] footnote.
39855         (main): Honor it.
39856
39857 2009-03-01  Bruno Haible  <bruno@clisp.org>
39858
39859         Use socklen_t in the native Windows replacements prototypes.
39860         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
39861         instead of 'int'.
39862         * lib/getsockopt.c (rpl_getsockopt): Likewise.
39863         * lib/setsockopt.c (rpl_setsockopt): Likewise.
39864         * modules/getsockopt (Depends-on): Add socklen.
39865         * modules/setsockopt (Depends-on): Add socklen.
39866
39867 2009-03-01  Bruno Haible  <bruno@clisp.org>
39868
39869         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
39870         least 4.2.
39871
39872 2009-03-01  Eric Blake  <ebb9@byu.net>
39873             Bruno Haible  <bruno@clisp.org>
39874
39875         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
39876         error messages.
39877         * lib/wait-process.c (wait_subprocess): Omit error message about
39878         deadly signal sent to the child of termsigp != NULL.
39879
39880 2009-03-01  Eric Blake  <ebb9@byu.net>
39881
39882         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
39883
39884 2009-03-01  Bruno Haible  <bruno@clisp.org>
39885
39886         Avoid a gcc warning.
39887         * tests/test-sched.c (b): Make global.
39888         Reported by Eric Blake.
39889
39890 2009-01-19  Martin Lambers  <marlam@marlam.de>
39891
39892         Provide POSIX semantics for socket timeout options on W32.
39893         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
39894         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
39895         * modules/setsockopt: Depend on sys_time module for struct timeval.
39896         * modules/getsockopt: Depend on sys_time module for struct timeval.
39897
39898 2009-03-01  Simon Josefsson  <simon@josefsson.org>
39899
39900         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
39901         __USE_GNU, for consistency with netdb.in.h.
39902         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39903
39904 2009-03-01  Bruno Haible  <bruno@clisp.org>
39905
39906         More support for FreeMiNT.
39907         * lib/fseeko.c (rpl_fseeko): Complete last commit.
39908         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39909
39910 2009-03-01  Bruno Haible  <bruno@clisp.org>
39911
39912         More support for FreeMiNT.
39913         * lib/fpurge.c (fpurge): Correct last commit.
39914         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39915
39916 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39917
39918         Fix unportable awk script in vc-list-files.
39919         * build-aux/vc-list-files: In the replacement awk script, use
39920         substr with a second argument of 1, not zero.
39921         Report by Simon Josefsson.
39922
39923 2009-02-28  Bruno Haible  <bruno@clisp.org>
39924
39925         More support for FreeMiNT.
39926         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
39927         to FreeMiNT today.
39928         * lib/fwriting.c (fwriting): Likewise.
39929         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
39930
39931 2009-02-28  Bruno Haible  <bruno@clisp.org>
39932
39933         * tests/test-freadseek.c (main): Disable test beyond end of file on
39934         FreeMiNT.
39935         * tests/test-ftello.c (main): Likewise.
39936         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39937
39938 2009-02-28  Bruno Haible  <bruno@clisp.org>
39939
39940         Add tentative support for FreeMiNT.
39941         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
39942         * lib/fpurge.c (fpurge): Likewise.
39943         * lib/freadable.c (freadable): Likewise.
39944         * lib/freading.c (freading): Likewise.
39945         * lib/freadptr.c (freadptr): Likewise.
39946         * lib/freadseek.c (freadptrinc): Likewise.
39947         * lib/fseeko.c (rpl_fseeko): Likewise.
39948         * lib/fseterr.c (fseterr): Likewise.
39949         * lib/fwritable.c (fwritable): Likewise.
39950         * lib/fwriting.c (fwriting): Likewise.
39951         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
39952         Hourihane.
39953         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39954
39955 2009-02-28  Bruno Haible  <bruno@clisp.org>
39956
39957         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
39958         SIGCHLD.
39959         Reported by Jim Meyering.
39960
39961 2009-02-28  Bruno Haible  <bruno@clisp.org>
39962
39963         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
39964         Mention the results of these tests on various platforms.
39965         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
39966         order.
39967         * doc/posix-functions/printf.texi: Likewise.
39968         * doc/posix-functions/snprintf.texi: Likewise.
39969         * doc/posix-functions/sprintf.texi: Likewise.
39970         * doc/posix-functions/vfprintf.texi: Likewise.
39971         * doc/posix-functions/vprintf.texi: Likewise.
39972         * doc/posix-functions/vsnprintf.texi: Likewise.
39973         * doc/posix-functions/vsprintf.texi: Likewise.
39974         * doc/glibc-functions/obstack_printf.texi: Likewise.
39975         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39976
39977 2009-02-28  Bruno Haible  <bruno@clisp.org>
39978
39979         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
39980         Reported by Loïc Minier <lool@dooz.org>.
39981
39982 2009-02-27  Bruno Haible  <bruno@clisp.org>
39983
39984         * gnulib-tool (func_import): Make the sed expression used to create the
39985         sed script for updating the .gitignore file POSIX compliant.
39986         Reported by Eric Blake.
39987
39988 2009-02-27  Bruno Haible  <bruno@clisp.org>
39989
39990         * gnulib-tool (sed): Don't alias as "sed --posix".
39991         Reported by Eric Blake.
39992
39993 2009-02-27  Bruno Haible  <bruno@clisp.org>
39994
39995         Avoid test link errors.
39996         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
39997         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
39998         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
39999         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40000         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40001
40002 2009-02-27  Bruno Haible  <bruno@clisp.org>
40003
40004         Avoid spurious "(cached)" in configure output.
40005         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40006         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40007         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40008         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40009         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40010         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40011         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40012         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40013         Reported by Eric Blake.
40014
40015 2009-02-27  Eric Blake  <ebb9@byu.net>
40016
40017         printf: fix regression in previous patch
40018         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40019
40020 2009-02-27  Bruno Haible  <bruno@clisp.org>
40021
40022         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40023         value.
40024         * lib/stdint.in.h: Likewise.
40025         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40026
40027 2009-02-27  Eric Blake  <ebb9@byu.net>
40028
40029         doc: mention more functions added in cygwin 1.7.0
40030         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40031         addition.
40032         * doc/posix-functions/open_wmemstream.texi: Likewise.
40033         * doc/posix-functions/wcsnlen.texi: Likewise.
40034         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40035         * doc/posix-functions/wcstod.texi: Likewise.
40036         * doc/posix-functions/wcstof.texi: Likewise.
40037         * doc/posix-functions/wcstoimax.texi: Likewise.
40038         * doc/posix-functions/wcstok.texi: Likewise.
40039         * doc/posix-functions/wcstoumax.texi: Likewise.
40040
40041         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40042         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40043         * doc/posix-functions/fprintf.texi: Update.
40044         * doc/posix-functions/printf.texi: Update.
40045         * doc/posix-functions/snprintf.texi: Update.
40046         * doc/posix-functions/sprintf.texi: Update.
40047         * doc/posix-functions/vfprintf.texi: Update.
40048         * doc/posix-functions/vprintf.texi: Update.
40049         * doc/posix-functions/vsnprintf.texi: Update.
40050         * doc/posix-functions/vsprintf.texi: Update.
40051         * doc/glibc-functions/obstack_printf.texi: Update.
40052         * doc/glibc-functions/obstack_vprintf.texi: Update.
40053
40054 2009-02-26  Eric Blake  <ebb9@byu.net>
40055
40056         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40057         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40058         compilation bug by using runtime conversion.
40059         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40060         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40061         * modules/ceill-tests (Files): Use nan.h.
40062         * modules/floorl-tests (Files): Likewise.
40063         * modules/frexpl-tests (Files): Likewise.
40064         * modules/isnanl-tests (Files): Likewise.
40065         * modules/ldexpl-tests (Files): Likewise.
40066         * modules/roundl-tests (Files): Likewise.
40067         * modules/truncl-tests (Files): Likewise.
40068         * tests/test-ceill.c (main): Use a working NaN.
40069         * tests/test-floorl.c (main): Likewise.
40070         * tests/test-frexpl.c (main): Likewise.
40071         * tests/test-isnan.c (test_long_double): Likewise.
40072         * tests/test-isnanl.h (main): Likewise.
40073         * tests/test-ldexpl.h (main): Likewise.
40074         * tests/test-roundl.h (main): Likewise.
40075         * tests/test-truncl.h (main): Likewise.
40076         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40077
40078 2009-02-26  Eric Blake  <ebb9@byu.net>
40079             Bruno Haible  <bruno@clisp.org>
40080
40081         Work around a *printf bug with %ls on Solaris.
40082         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40083         precision is specified, sprintf stops converting the wide string
40084         argument when the number of bytes that have been produced by this
40085         conversion equals or exceeds the precision.
40086         * doc/posix-functions/fprintf.texi: Update.
40087         * doc/posix-functions/printf.texi: Update.
40088         * doc/posix-functions/snprintf.texi: Update.
40089         * doc/posix-functions/sprintf.texi: Update.
40090         * doc/posix-functions/vfprintf.texi: Update.
40091         * doc/posix-functions/vprintf.texi: Update.
40092         * doc/posix-functions/vsnprintf.texi: Update.
40093         * doc/posix-functions/vsprintf.texi: Update.
40094         * doc/glibc-functions/obstack_printf.texi: Update.
40095         * doc/glibc-functions/obstack_vprintf.texi: Update.
40096
40097 2009-02-26  Eric Blake  <ebb9@byu.net>
40098
40099         stdlib: favor compiler check of random.h
40100         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40101         to avoid an ObjC random.h installed by Swarm.
40102
40103 2009-02-26  Bruno Haible  <bruno@clisp.org>
40104
40105         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40106         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40107         Reported by Gary V. Vaughan <gary@gnu.org>.
40108
40109 2009-02-26  Bruno Haible  <bruno@clisp.org>
40110
40111         Fix *printf behaviour regarding the %ls directive.
40112         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40113         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40114         NEED_PRINTF_DIRECTIVE_LS.
40115         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40116         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40117         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40118         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40119         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40120         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40121         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40122         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40123         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40124         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40125         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40126         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40127         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40128         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40129         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40130         * doc/posix-functions/fprintf.texi: Update.
40131         * doc/posix-functions/printf.texi: Update.
40132         * doc/posix-functions/snprintf.texi: Update.
40133         * doc/posix-functions/sprintf.texi: Update.
40134         * doc/posix-functions/vfprintf.texi: Update.
40135         * doc/posix-functions/vprintf.texi: Update.
40136         * doc/posix-functions/vsnprintf.texi: Update.
40137         * doc/posix-functions/vsprintf.texi: Update.
40138         * doc/glibc-functions/obstack_printf.texi: Update.
40139         * doc/glibc-functions/obstack_vprintf.texi: Update.
40140         Reported by Eric Blake.
40141
40142 2009-02-25  Bruno Haible  <bruno@clisp.org>
40143
40144         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40145         with known value.
40146         Reported by Gary V. Vaughan <gary@gnu.org>.
40147
40148 2009-02-25  Bruno Haible  <bruno@clisp.org>
40149
40150         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40151         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40152         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40153         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40154         Reported by Gary V. Vaughan <gary@gnu.org>.
40155
40156 2009-02-25  Bruno Haible  <bruno@clisp.org>
40157
40158         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40159         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40160         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40161         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40162         Reported by Gary V. Vaughan <gary@gnu.org>.
40163
40164 2009-02-25  Eric Blake  <ebb9@byu.net>
40165
40166         tests: skip fseek/ftell tests if ungetc is broken
40167         * m4/ungetc.m4: New file.
40168         * modules/fseek-tests: Split test, so ungetc dependency is
40169         separate from rest of test.
40170         * modules/fseeko-tests: Likewise.
40171         * modules/ftell-tests: Likewise.
40172         * modules/ftello-tests: Likewise.
40173         * tests/test-fseek.c (main): Isolate ungetc dependency.
40174         * tests/test-fseeko.c (main): Likewise.
40175         * tests/test-ftell.c (main): Likewise.
40176         * tests/test-ftello.c (main): Likewise.
40177         * tests/test-fseek2.sh: New file.
40178         * tests/test-fseeko2.sh: Likewise.
40179         * tests/test-ftell2.sh: Likewise.
40180         * tests/test-ftello2.sh: Likewise.
40181
40182 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40183
40184         test-getaddrinfo: fix usage of skip return code 77
40185         * tests/test-gettaddrinfo.c: Return skip code 77 only
40186         for first occurance of skip (4x77 is not 77)
40187
40188 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40189
40190         strtod: avoid C99 decl-after-statement
40191         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40192
40193 2009-02-24  Eric Blake  <ebb9@byu.net>
40194
40195         strtod: detect HP-UX 11.31 bug
40196         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40197         Reported by Gary V. Vaughan.
40198
40199 2009-02-23  Bruno Haible  <bruno@clisp.org>
40200
40201         Fix invalid read past end of memory block.
40202         * lib/vasnprintf.c (DCHAR_SET): Define.
40203         (local_wcslen): Define only when needed.
40204         (local_strnlen, local_wcsnlen): New functions.
40205         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40206         directives that involve a conversion ourselves.
40207         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40208         wcsnlen, mbrtowc, wcrtomb.
40209         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40210         * tests/test-vasprintf-posix.c (test_function): Likewise.
40211         * tests/test-snprintf-posix.h (test_function): Likewise.
40212         * tests/test-sprintf-posix.h (test_function): Likewise.
40213         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40214
40215 2009-02-22  Bruno Haible  <bruno@clisp.org>
40216
40217         Implement new clarified decomposition of Hangul syllables.
40218         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40219         of type LTV, return only a pairwise decomposition.
40220         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40221         Likewise.
40222         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40223         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40224         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40225
40226 2009-02-22  Bruno Haible  <bruno@clisp.org>
40227
40228         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40229         zero-length results and shrink excess allocated memory.
40230         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40231         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40232         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40233         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40234         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40235         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40236         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40237         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40238         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40239         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40240         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40241         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40242
40243 2009-02-21  Bruno Haible  <bruno@clisp.org>
40244
40245         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40246         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40247         spaces after a period. Put a space between a macro name and its
40248         argument list. Trivial rewordings.
40249         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40250         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40251         (main): Return 0 explicitly.
40252
40253 2009-02-21  Bruno Haible  <bruno@clisp.org>
40254
40255         Tests for module 'uninorm/filter'.
40256         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40257         * modules/uninorm/filter-tests: New file.
40258
40259         New module 'uninorm/filter'.
40260         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40261         uninorm_filter_flush, uninorm_filter_free): New declarations.
40262         * lib/uninorm/uninorm-filter.c: New file.
40263         * modules/uninorm/filter: New file.
40264
40265 2009-02-21  Bruno Haible  <bruno@clisp.org>
40266
40267         Tests for module 'uninorm/nfkc'.
40268         * tests/uninorm/test-nfkc.c: New file.
40269         * tests/uninorm/test-u8-nfkc.c: New file.
40270         * tests/uninorm/test-u16-nfkc.c: New file.
40271         * tests/uninorm/test-u32-nfkc.c: New file.
40272         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40273         * tests/uninorm/test-u32-nfkc-big.c: New file.
40274         * modules/uninorm/nfkc-tests: New file.
40275
40276         New module 'uninorm/nfkc'.
40277         * lib/uninorm/nfkc.c: New file.
40278         * modules/uninorm/nfkc: New file.
40279
40280         Tests for module 'uninorm/nfkd'.
40281         * tests/uninorm/test-nfkd.c: New file.
40282         * tests/uninorm/test-u8-nfkd.c: New file.
40283         * tests/uninorm/test-u16-nfkd.c: New file.
40284         * tests/uninorm/test-u32-nfkd.c: New file.
40285         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40286         * tests/uninorm/test-u32-nfkd-big.c: New file.
40287         * modules/uninorm/nfkd-tests: New file.
40288
40289         New module 'uninorm/nfkd'.
40290         * lib/uninorm/nfkd.c: New file.
40291         * modules/uninorm/nfkd: New file.
40292
40293         Tests for module 'uninorm/nfc'.
40294         * tests/uninorm/test-nfc.c: New file.
40295         * tests/uninorm/test-u8-nfc.c: New file.
40296         * tests/uninorm/test-u16-nfc.c: New file.
40297         * tests/uninorm/test-u32-nfc.c: New file.
40298         * tests/uninorm/test-u32-nfc-big.sh: New file.
40299         * tests/uninorm/test-u32-nfc-big.c: New file.
40300         * modules/uninorm/nfc-tests: New file.
40301
40302         New module 'uninorm/nfc'.
40303         * lib/uninorm/nfc.c: New file.
40304         * modules/uninorm/nfc: New file.
40305
40306         Tests for module 'uninorm/nfd'.
40307         * tests/uninorm/test-nfd.c: New file.
40308         * tests/uninorm/test-u8-nfd.c: New file.
40309         * tests/uninorm/test-u16-nfd.c: New file.
40310         * tests/uninorm/test-u32-nfd.c: New file.
40311         * tests/uninorm/test-u32-nfd-big.sh: New file.
40312         * tests/uninorm/test-u32-nfd-big.c: New file.
40313         * tests/uninorm/test-u32-normalize-big.h: New file.
40314         * tests/uninorm/test-u32-normalize-big.c: New file.
40315         * tests/uninorm/NormalizationTest.txt: New file, created from
40316         Unicode 5.1.0 NormalizationTest.txt.
40317         * modules/uninorm/nfd-tests: New file.
40318
40319         New module 'uninorm/nfd'.
40320         * lib/uninorm/nfd.c: New file.
40321         * modules/uninorm/nfd: New file.
40322
40323         New module 'uninorm/u32-normalize'.
40324         * lib/uninorm/u32-normalize.c: New file.
40325         * modules/uninorm/u32-normalize: New file.
40326
40327         New module 'uninorm/u16-normalize'.
40328         * lib/uninorm/u16-normalize.c: New file.
40329         * modules/uninorm/u16-normalize: New file.
40330
40331         New module 'uninorm/u8-normalize'.
40332         * lib/uninorm/u8-normalize.c: New file.
40333         * lib/uninorm/normalize-internal.h: New file.
40334         * lib/uninorm/u-normalize-internal.h: New file.
40335         * modules/uninorm/u8-normalize: New file.
40336
40337         New module 'uninorm/decompose-internal'.
40338         * lib/uninorm/decompose-internal.c: New file.
40339         * modules/uninorm/decompose-internal: New file.
40340
40341         Tests for module 'uninorm/composition'.
40342         * tests/uninorm/test-composition.c: New file.
40343         * modules/uninorm/composition-tests: New file.
40344
40345         New module 'uninorm/composition'.
40346         * lib/uninorm/composition.c: New file.
40347         * lib/uninorm/composition-table.gperf: New file, generated by
40348         gen-uni-tables.
40349         * modules/uninorm/composition: New file.
40350
40351         Tests for module 'uninorm/compat-decomposition'.
40352         * tests/uninorm/test-compat-decomposition.c: New file.
40353         * modules/uninorm/compat-decomposition-tests: New file.
40354
40355         New module 'uninorm/compat-decomposition'.
40356         * lib/uninorm/decompose-internal.h: New file.
40357         * lib/uninorm/compat-decomposition.c: New file.
40358         * modules/uninorm/compat-decomposition: New file.
40359
40360         Tests for module 'uninorm/canonical-decomposition'.
40361         * tests/uninorm/test-canonical-decomposition.c: New file.
40362         * modules/uninorm/canonical-decomposition-tests: New file.
40363
40364         New module 'uninorm/canonical-decomposition'.
40365         * lib/uninorm/canonical-decomposition.c: New file.
40366         * modules/uninorm/canonical-decomposition: New file.
40367
40368         Tests for module 'uninorm/decomposition'.
40369         * tests/uninorm/test-decomposition.c: New file.
40370         * modules/uninorm/decomposition-tests: New file.
40371
40372         New module 'uninorm/decomposition'.
40373         * lib/uninorm/decomposition.c: New file.
40374         * modules/uninorm/decomposition: New file.
40375
40376         New module 'uninorm/decomposition-table'.
40377         * lib/uninorm/decomposition-table.h: New file.
40378         * lib/uninorm/decomposition-table.c: New file.
40379         * lib/uninorm/decomposition-table1.h: New file, generated by
40380         gen-uni-tables.
40381         * lib/uninorm/decomposition-table2.h: New file, generated by
40382         gen-uni-tables.
40383         * modules/uninorm/decomposition-table: New file.
40384
40385         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
40386         (UC_DECOMP_*): New enumeration items.
40387         (get_decomposition): New function.
40388         (struct decomp_table): New type.
40389         (output_decomposition, output_decomposition_tables): New functions.
40390         (unicode_composition_exclusions): New variable.
40391         (fill_composition_exclusions, debug_output_composition_tables): New
40392         functions.
40393         (main): Accept one more argument. Invoke fill_composition_exclusions.
40394         Output decomposition and composition tables.
40395
40396         New module 'uninorm/base'.
40397         * lib/uninorm.h: New file.
40398         * lib/unictype.h: Update comment.
40399         * modules/uninorm/base: New file.
40400
40401 2009-02-21  David Lutterkort  <lutter@redhat.com>
40402
40403         Tests for module 'safe-alloc'.
40404         * tests/test-safe-alloc.c: New file.
40405         * modules/safe-alloc-tests: New file.
40406
40407         New module 'safe-alloc'.
40408         * lib/safe-alloc.h: New file.
40409         * lib/safe-alloc.c: New file.
40410         * m4/safe-alloc.m4: New file.
40411         * modules/safe-alloc: New file.
40412         * doc/safe-alloc.texi: New file.
40413         * doc/gnulib.texi: Include it.
40414         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40415         safe-alloc.
40416
40417 2009-02-18  Bruno Haible  <bruno@clisp.org>
40418
40419         Fix link error on non-glibc systems.
40420         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
40421         variable.
40422         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40423
40424 2009-02-18  Jim Meyering  <meyering@redhat.com>
40425
40426         fts: avoid used-uninitialized error due to recent change
40427         * lib/fts.c (fts_read): Guard uses of the new member,
40428         parent->fts_n_dirs_remaining, since it's not relevant for
40429         the parent of a directory specified on the command-line.
40430
40431 2009-02-17  James Youngman  <jay@gnu.org>
40432             Bruno Haible  <bruno@clisp.org>
40433
40434         * m4/include_next.m4: Reformulate comment.
40435
40436 2009-02-16  Jim Meyering  <meyering@redhat.com>
40437
40438         fts: add #if guards so that the fts_lgpl module still builds
40439         * lib/fts.c: Guard just-added hash-table-using parts with
40440         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
40441         Reported by Simon Josefsson.
40442
40443 2009-02-15  Bruno Haible  <bruno@clisp.org>
40444
40445         * modules/array-mergesort-tests: New file.
40446         * tests/test-array-mergesort.c: New file.
40447
40448         New module 'array-mergesort'.
40449         * modules/array-mergesort: New file.
40450         * lib/array-mergesort.h: New file.
40451
40452 2009-02-15  Bruno Haible  <bruno@clisp.org>
40453
40454         Fix 2009-02-07 commit.
40455         * lib/gen-uni-tables.c (output_predicate, output_category,
40456         output_combclass, output_bidi_category, output_decimal_digit,
40457         output_digit, output_numeric, output_mirror, output_scripts,
40458         output_ident_category, output_simple_mapping): Fix format directives.
40459         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40460
40461 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40462
40463         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40464         fixes are available from IBM.
40465
40466 2009-02-13  Jim Meyering  <meyering@redhat.com>
40467
40468         fts: arrange not to stat non-directories in more cases
40469         This makes GNU find (when it doesn't need to stat each file)
40470         *much* more efficient at traversing reiserfs file systems.
40471         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40472         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40473         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40474         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40475         (leaf_optimization_applies): New function.
40476         (LCO_hash, LCO_compare): New helper functions.
40477         (link_count_optimize_ok): New function.
40478         (fts_stat): Initialize new member (if dir).
40479         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40480         we've just stat'ed a directory.  Skip the stat call when possible.
40481         ---
40482         Note this AFS-related exchange:
40483         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
40484         and note find's pioctl call in find/fstype.c.
40485         But that is necessary only if you want to enable the
40486         optimization for AFS, and for now, I don't.
40487
40488         fts: move a function definition "up" (no semantic change)
40489         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
40490         "up" to precede upcoming use of a related function.
40491
40492 2009-02-11  Jim Meyering  <meyering@redhat.com>
40493
40494         fts: correct internal computation of nlinks (optimization-related)
40495         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
40496         whether the current entry is a directory, so don't test it.
40497
40498 2009-02-10  Bruno Haible  <bruno@clisp.org>
40499
40500         Tests for module 'uniwbrk/ulc-wordbreaks'.
40501         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
40502         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
40503         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
40504
40505         Tests for module 'uniwbrk/u32-wordbreaks'.
40506         * modules/uniwbrk/u32-wordbreaks-tests: New file.
40507         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
40508
40509         Tests for module 'uniwbrk/u16-wordbreaks'.
40510         * modules/uniwbrk/u16-wordbreaks-tests: New file.
40511         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
40512
40513         Tests for module 'uniwbrk/u8-wordbreaks'.
40514         * modules/uniwbrk/u8-wordbreaks-tests: New file.
40515         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
40516
40517 2009-02-10  Bruno Haible  <bruno@clisp.org>
40518
40519         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
40520         property.
40521         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
40522         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40523         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40524
40525 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40526
40527         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
40528         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
40529
40530 2009-02-10  Bruno Haible  <bruno@clisp.org>
40531
40532         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
40533         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
40534         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
40535         * lib/unilbrk/u8-possible-linebreaks.c: Update.
40536         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
40537         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
40538
40539 2009-02-09  Simon Josefsson  <simon@josefsson.org>
40540
40541         * lib/sockets.h (gl_fd_to_handle): New function.
40542
40543         * tests/test-sockets.c: Call gl_fd_to_handle.
40544
40545 2009-02-09  Bruno Haible  <bruno@clisp.org>
40546
40547         * doc/havelib.texi: Document the conventions on bi-arch systems.
40548
40549 2009-02-08  Bruno Haible  <bruno@clisp.org>
40550
40551         Document the AC_LIB_LINKFLAGS macro.
40552         * doc/havelib.texi: New file, mostly written on 2005-05-24.
40553         * doc/gnulib.texi: Include it.
40554
40555 2009-02-08  Bruno Haible  <bruno@clisp.org>
40556
40557         Fix wrong order of sections, compared to TOC.
40558         * doc/gnulib.texi: Include relocatable-maint.texi after the
40559         "Regular expressions" node, not before.
40560
40561 2009-02-08  Bruno Haible  <bruno@clisp.org>
40562
40563         Tests for module 'unicase/totitle'.
40564         * modules/unicase/totitle-tests: New file.
40565
40566         Tests for module 'unicase/tolower'.
40567         * modules/unicase/tolower-tests: New file.
40568
40569         Tests for module 'unicase/toupper'.
40570         * modules/unicase/toupper-tests: New file.
40571         * tests/unicase/test-mapping-part1.h: New file.
40572         * tests/unicase/test-mapping-part2.h: New file.
40573
40574         New module 'unicase/totitle'.
40575         * modules/unicase/totitle: New file.
40576         * lib/unicase/totitle.c: New file.
40577
40578         New module 'unicase/tolower'.
40579         * modules/unicase/tolower: New file.
40580         * lib/unicase/tolower.c: New file.
40581
40582         New module 'unicase/toupper'.
40583         * modules/unicase/toupper: New file.
40584         * lib/unicase/toupper.c: New file.
40585         * lib/unicase/simple-mapping.h: New file.
40586
40587         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
40588         (mapping_table): New structure.
40589         (output_simple_mapping): New function.
40590         (main): Invoke output_simple_mapping_test and output_simple_mapping.
40591         * modules/gen-uni-tables (Description): Update.
40592         * lib/unicase/toupper.h: New file, automatically generated by
40593         gen-uni-tables.
40594         * lib/unicase/tolower.h: New file, automatically generated by
40595         gen-uni-tables.
40596         * lib/unicase/totitle.h: New file, automatically generated by
40597         gen-uni-tables.
40598         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
40599         gen-uni-tables.
40600         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
40601         gen-uni-tables.
40602         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
40603         gen-uni-tables.
40604
40605         New module 'unicase/base'.
40606         * modules/unicase/base: New file.
40607         * lib/unicase.h: New file.
40608
40609 2009-02-08  Bruno Haible  <bruno@clisp.org>
40610
40611         New module 'uniwbrk/ulc-wordbreaks'.
40612         * modules/uniwbrk/ulc-wordbreaks: New file.
40613         * lib/uniwbrk/ulc-wordbreaks.c: New file.
40614
40615         New module 'uniwbrk/u32-wordbreaks'.
40616         * modules/uniwbrk/u32-wordbreaks: New file.
40617         * lib/uniwbrk/u32-wordbreaks.c: New file.
40618
40619         New module 'uniwbrk/u16-wordbreaks'.
40620         * modules/uniwbrk/u16-wordbreaks: New file.
40621         * lib/uniwbrk/u16-wordbreaks.c: New file.
40622
40623         New module 'uniwbrk/u8-wordbreaks'.
40624         * modules/uniwbrk/u8-wordbreaks: New file.
40625         * lib/uniwbrk/u8-wordbreaks.c: New file.
40626         * lib/uniwbrk/u-wordbreaks.h: New file.
40627
40628         New module 'uniwbrk/table'.
40629         * modules/uniwbrk/table: New file.
40630         * lib/uniwbrk/wbrktable.h: New file.
40631         * lib/uniwbrk/wbrktable.c: New file.
40632
40633         New module 'uniwbrk/wordbreak-property'.
40634         * modules/uniwbrk/wordbreak-property: New file.
40635         * lib/uniwbrk/wordbreak-property.c: New file.
40636
40637         * lib/gen-uni-tables.c (WBP_*): New enum items.
40638         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
40639         (unicode_org_wbp): New variable.
40640         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
40641         New functions.
40642         (wbp_table): New structure.
40643         (output_wbp, output_wbrk_tables): New functions.
40644         (main): Accept additional argument. Invoke fill_org_wbp,
40645         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
40646         output_wbrk_tables.
40647         * modules/gen-uni-tables (Description): Update.
40648         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
40649         gen-uni-tables.
40650
40651         New module 'uniwbrk/base'.
40652         * modules/uniwbrk/base: New file.
40653         * lib/uniwbrk.h: New file.
40654
40655 2009-02-08  Bruno Haible  <bruno@clisp.org>
40656
40657         Update to Unicode 5.1.0.
40658         * lib/gen-uni-tables.c (is_property_alphabetic): Include
40659         U+2185..U+2188.
40660         (is_property_default_ignorable_code_point): Don't include characters
40661         of category Cc or Cs and not-a-characters.
40662         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
40663         U+0D79, U+109E, U+109F, U+A60C.
40664         * lib/unictype/bidi_of.h: Regenerated.
40665         * lib/unictype/blocks.h: Regenerated.
40666         * lib/unictype/categ_C.h: Regenerated.
40667         * lib/unictype/categ_Cf.h: Regenerated.
40668         * lib/unictype/categ_Cn.h: Regenerated.
40669         * lib/unictype/categ_L.h: Regenerated.
40670         * lib/unictype/categ_Ll.h: Regenerated.
40671         * lib/unictype/categ_Lm.h: Regenerated.
40672         * lib/unictype/categ_Lo.h: Regenerated.
40673         * lib/unictype/categ_Lu.h: Regenerated.
40674         * lib/unictype/categ_M.h: Regenerated.
40675         * lib/unictype/categ_Mc.h: Regenerated.
40676         * lib/unictype/categ_Me.h: Regenerated.
40677         * lib/unictype/categ_Mn.h: Regenerated.
40678         * lib/unictype/categ_N.h: Regenerated.
40679         * lib/unictype/categ_Nd.h: Regenerated.
40680         * lib/unictype/categ_Nl.h: Regenerated.
40681         * lib/unictype/categ_No.h: Regenerated.
40682         * lib/unictype/categ_P.h: Regenerated.
40683         * lib/unictype/categ_Pd.h: Regenerated.
40684         * lib/unictype/categ_Pe.h: Regenerated.
40685         * lib/unictype/categ_Pf.h: Regenerated.
40686         * lib/unictype/categ_Pi.h: Regenerated.
40687         * lib/unictype/categ_Po.h: Regenerated.
40688         * lib/unictype/categ_Ps.h: Regenerated.
40689         * lib/unictype/categ_S.h: Regenerated.
40690         * lib/unictype/categ_Sk.h: Regenerated.
40691         * lib/unictype/categ_Sm.h: Regenerated.
40692         * lib/unictype/categ_So.h: Regenerated.
40693         * lib/unictype/categ_of.h: Regenerated.
40694         * lib/unictype/combining.h: Regenerated.
40695         * lib/unictype/ctype_alnum.h: Regenerated.
40696         * lib/unictype/ctype_alpha.h: Regenerated.
40697         * lib/unictype/ctype_graph.h: Regenerated.
40698         * lib/unictype/ctype_lower.h: Regenerated.
40699         * lib/unictype/ctype_print.h: Regenerated.
40700         * lib/unictype/ctype_punct.h: Regenerated.
40701         * lib/unictype/ctype_upper.h: Regenerated.
40702         * lib/unictype/decdigit.h: Regenerated.
40703         * lib/unictype/digit.h: Regenerated.
40704         * lib/unictype/mirror.h: Regenerated.
40705         * lib/unictype/numeric.h: Regenerated.
40706         * lib/unictype/pr_alphabetic.h: Regenerated.
40707         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
40708         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
40709         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
40710         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
40711         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
40712         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
40713         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
40714         * lib/unictype/pr_combining.h: Regenerated.
40715         * lib/unictype/pr_dash.h: Regenerated.
40716         * lib/unictype/pr_decimal_digit.h: Regenerated.
40717         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
40718         * lib/unictype/pr_deprecated.h: Regenerated.
40719         * lib/unictype/pr_diacritic.h: Regenerated.
40720         * lib/unictype/pr_extender.h: Regenerated.
40721         * lib/unictype/pr_format_control.h: Regenerated.
40722         * lib/unictype/pr_grapheme_base.h: Regenerated.
40723         * lib/unictype/pr_grapheme_extend.h: Regenerated.
40724         * lib/unictype/pr_grapheme_link.h: Regenerated.
40725         * lib/unictype/pr_id_continue.h: Regenerated.
40726         * lib/unictype/pr_id_start.h: Regenerated.
40727         * lib/unictype/pr_ideographic.h: Regenerated.
40728         * lib/unictype/pr_ignorable_control.h: Regenerated.
40729         * lib/unictype/pr_lowercase.h: Regenerated.
40730         * lib/unictype/pr_math.h: Regenerated.
40731         * lib/unictype/pr_numeric.h: Regenerated.
40732         * lib/unictype/pr_other_alphabetic.h: Regenerated.
40733         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
40734         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
40735         * lib/unictype/pr_other_id_continue.h: Regenerated.
40736         * lib/unictype/pr_other_lowercase.h: Regenerated.
40737         * lib/unictype/pr_other_math.h: Regenerated.
40738         * lib/unictype/pr_punctuation.h: Regenerated.
40739         * lib/unictype/pr_sentence_terminal.h: Regenerated.
40740         * lib/unictype/pr_soft_dotted.h: Regenerated.
40741         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
40742         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
40743         * lib/unictype/pr_unified_ideograph.h: Regenerated.
40744         * lib/unictype/pr_uppercase.h: Regenerated.
40745         * lib/unictype/pr_xid_continue.h: Regenerated.
40746         * lib/unictype/pr_xid_start.h: Regenerated.
40747         * lib/unictype/pr_zero_width.h: Regenerated.
40748         * lib/unictype/scripts.h: Regenerated.
40749         * lib/unictype/scripts_byname.gperf: Regenerated.
40750         * lib/unictype/sy_java_ident.h: Regenerated.
40751         * lib/unilbrk/lbrkprop1.h: Regenerated.
40752         * lib/unilbrk/lbrkprop2.h: Regenerated.
40753         * tests/unictype/test-categ_C.c: Regenerated.
40754         * tests/unictype/test-categ_Cf.c: Regenerated.
40755         * tests/unictype/test-categ_Cn.c: Regenerated.
40756         * tests/unictype/test-categ_L.c: Regenerated.
40757         * tests/unictype/test-categ_Ll.c: Regenerated.
40758         * tests/unictype/test-categ_Lm.c: Regenerated.
40759         * tests/unictype/test-categ_Lo.c: Regenerated.
40760         * tests/unictype/test-categ_Lu.c: Regenerated.
40761         * tests/unictype/test-categ_M.c: Regenerated.
40762         * tests/unictype/test-categ_Mc.c: Regenerated.
40763         * tests/unictype/test-categ_Me.c: Regenerated.
40764         * tests/unictype/test-categ_Mn.c: Regenerated.
40765         * tests/unictype/test-categ_N.c: Regenerated.
40766         * tests/unictype/test-categ_Nd.c: Regenerated.
40767         * tests/unictype/test-categ_Nl.c: Regenerated.
40768         * tests/unictype/test-categ_No.c: Regenerated.
40769         * tests/unictype/test-categ_P.c: Regenerated.
40770         * tests/unictype/test-categ_Pd.c: Regenerated.
40771         * tests/unictype/test-categ_Pe.c: Regenerated.
40772         * tests/unictype/test-categ_Pf.c: Regenerated.
40773         * tests/unictype/test-categ_Pi.c: Regenerated.
40774         * tests/unictype/test-categ_Po.c: Regenerated.
40775         * tests/unictype/test-categ_Ps.c: Regenerated.
40776         * tests/unictype/test-categ_S.c: Regenerated.
40777         * tests/unictype/test-categ_Sk.c: Regenerated.
40778         * tests/unictype/test-categ_Sm.c: Regenerated.
40779         * tests/unictype/test-categ_So.c: Regenerated.
40780         * tests/unictype/test-ctype_alnum.c: Regenerated.
40781         * tests/unictype/test-ctype_alpha.c: Regenerated.
40782         * tests/unictype/test-ctype_graph.c: Regenerated.
40783         * tests/unictype/test-ctype_lower.c: Regenerated.
40784         * tests/unictype/test-ctype_print.c: Regenerated.
40785         * tests/unictype/test-ctype_punct.c: Regenerated.
40786         * tests/unictype/test-ctype_upper.c: Regenerated.
40787         * tests/unictype/test-decdigit.h: Regenerated.
40788         * tests/unictype/test-digit.h: Regenerated.
40789         * tests/unictype/test-numeric.h: Regenerated.
40790         * tests/unictype/test-pr_alphabetic.c: Regenerated.
40791         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
40792         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
40793         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
40794         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
40795         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
40796         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
40797         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
40798         * tests/unictype/test-pr_combining.c: Regenerated.
40799         * tests/unictype/test-pr_dash.c: Regenerated.
40800         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
40801         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
40802         * tests/unictype/test-pr_deprecated.c: Regenerated.
40803         * tests/unictype/test-pr_diacritic.c: Regenerated.
40804         * tests/unictype/test-pr_extender.c: Regenerated.
40805         * tests/unictype/test-pr_format_control.c: Regenerated.
40806         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
40807         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
40808         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
40809         * tests/unictype/test-pr_id_continue.c: Regenerated.
40810         * tests/unictype/test-pr_id_start.c: Regenerated.
40811         * tests/unictype/test-pr_ideographic.c: Regenerated.
40812         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
40813         * tests/unictype/test-pr_lowercase.c: Regenerated.
40814         * tests/unictype/test-pr_math.c: Regenerated.
40815         * tests/unictype/test-pr_numeric.c: Regenerated.
40816         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
40817         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
40818         Regenerated.
40819         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
40820         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
40821         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
40822         * tests/unictype/test-pr_other_math.c: Regenerated.
40823         * tests/unictype/test-pr_punctuation.c: Regenerated.
40824         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
40825         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
40826         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
40827         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
40828         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
40829         * tests/unictype/test-pr_uppercase.c: Regenerated.
40830         * tests/unictype/test-pr_xid_continue.c: Regenerated.
40831         * tests/unictype/test-pr_xid_start.c: Regenerated.
40832         * tests/unictype/test-pr_zero_width.c: Regenerated.
40833
40834         Update to Unicode 5.1.0.
40835         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
40836         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
40837         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
40838         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
40839         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
40840         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
40841         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
40842         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
40843         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
40844         (nonspacing_table_ind): Update.
40845         * tests/uniwidth/test-uc_width2.sh: Update expected result.
40846
40847         Update to Unicode 5.1.0.
40848         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
40849         code transform.
40850         * lib/uniname/uniname.c (unicode_character_name,
40851         unicode_name_character): Add the range 0x1Fxxx to the code transform.
40852         * lib/uniname/uninames.h: Regenerated.
40853         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
40854
40855 2009-02-07  Bruno Haible  <bruno@clisp.org>
40856
40857         Merge gen-ctype and gen-lbrk into a single program.
40858         * lib/gen-uni-tables.c: New file, incorporating
40859         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
40860         Add directory prefixes to the names of the generated files.
40861         * lib/unictype/gen-ctype.c: Remove file.
40862         * lib/unilbrk/gen-lbrk.c: Remove file.
40863         * modules/gen-uni-tables: New file.
40864         * modules/unictype/gen-ctype: Remove file.
40865         * modules/unilbrk/gen-lbrk: Remove file.
40866
40867 2009-02-07  Bruno Haible  <bruno@clisp.org>
40868
40869         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
40870
40871         New module 'unistr/u32-strcoll'.
40872         * modules/unistr/u32-strcoll: New file.
40873         * lib/unistr/u32-strcoll.c: New file.
40874
40875         New module 'unistr/u16-strcoll'.
40876         * modules/unistr/u16-strcoll: New file.
40877         * lib/unistr/u16-strcoll.c: New file.
40878
40879         New module 'unistr/u8-strcoll'.
40880         * modules/unistr/u8-strcoll: New file.
40881         * lib/unistr/u8-strcoll.c: New file.
40882         * lib/unistr/u-strcoll.h: New file.
40883
40884 2009-02-07  Bruno Haible  <bruno@clisp.org>
40885
40886         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
40887         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40888         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40889         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
40890         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
40891         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
40892
40893 2009-02-07  Bruno Haible  <bruno@clisp.org>
40894
40895         Make 64-bit clean.
40896         * lib/unictype/gen-ctype.c (output_predicate, output_category,
40897         output_combclass, output_bidi_category, output_decimal_digit,
40898         output_digit, output_numeric, output_mirror, output_scripts,
40899         output_ident_category): Use proper width specifier in format strings.
40900
40901 2009-02-07  Bruno Haible  <bruno@clisp.org>
40902
40903         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
40904         failure behaviour.
40905
40906 2009-02-07  Jim Meyering  <meyering@redhat.com>
40907
40908         regex: avoid compilation failure with upcoming gcc-4.4
40909         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
40910         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
40911         "... error: integer overflow in preprocessor expression".
40912
40913 2009-02-05  Ben Pfaff  <blp@gnu.org>
40914
40915         Fix link errors on Windows when close module is used.
40916         * modules/close: Add $(LIB_CLOSE) to Link section.
40917         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
40918         $(LIB_CLOSE) on Windows.
40919
40920 2009-02-05  Jim Meyering  <meyering@redhat.com>
40921
40922         still avoid unused-parameter warnings, but do it cleanly
40923         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
40924         (get_fs_usage): Cast to void instead.
40925         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
40926         (dev_from_mount_options, read_file_system_list): Cast to void.
40927         Prompted by Bruno Haible.
40928
40929 2009-02-04  Jim Meyering  <meyering@redhat.com>
40930
40931         fsusage.c: correct copyright year
40932         * lib/fsusage.c: Reflect year in which the change is pushed into
40933
40934         avoid misc. warnings
40935         * lib/fsusage.c (UNUSED_PARAM): Define.
40936         (get_fs_usage): Mark parameter "disk" as unused.
40937         * lib/getugroups.c (getgrent): Use "void" in prototype.
40938         * lib/mountlist.c: Mark unused parameters.
40939         (read_file_system_list): Declare a local with "const".
40940         * lib/nanosleep.c (getnow): Declare static.
40941         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
40942
40943         dirfd: set errno upon failure
40944         * lib/dirfd.c: Include <errno.h>.
40945         Set errno to ENOTSUP when returning -1.
40946         * modules/dirfd (Depends-on): Add errno.
40947         Suggested by John Kodis <kodis@comcast.net>.
40948
40949 2009-02-01  Bruno Haible  <bruno@clisp.org>
40950
40951         Don't assume sizeof (long) >= sizeof (void *).
40952         * lib/memcmp.c: Include stdint.h.
40953         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
40954         srcp2 to 'const byte *'.
40955         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
40956         types to uintptr_t.
40957         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
40958         * modules/memcmp (Depends-on): Add stdint.
40959         Reported by Ozkan Sezer <sezeroz@gmail.com>.
40960
40961 2009-01-30  Eric Blake  <ebb9@byu.net>
40962
40963         fix more require-before-expand issues
40964         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
40965         expand, AC_PROG_AWK.
40966         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
40967
40968 2009-01-28  Eric Blake  <ebb9@byu.net>
40969
40970         version-etc: use consistent URL formatting
40971         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
40972         Improve formatting.  Use fputs for string without %.
40973
40974 2009-01-28  Jim Meyering  <meyering@redhat.com>
40975
40976         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
40977         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
40978         "underquoted definition of NAME" from autoconf-2.59.
40979
40980 2009-01-28  Bruno Haible  <bruno@clisp.org>
40981
40982         * doc/gnulib.texi: Add "Obsolete modules" to index.
40983
40984 2009-01-28  Jim Meyering  <meyering@redhat.com>
40985
40986         useless-if-before-free: recognize more variants
40987         * build-aux/useless-if-before-free: Also recognize e.g.,
40988         if (NULL != p) free (p);
40989
40990 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
40991
40992         test-getaddrinfo: skip (don't fail) this test when there's no network
40993         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
40994         on the presumption that it means you lack network access.
40995
40996 2009-01-26  Jim Meyering  <meyering@redhat.com>
40997
40998         fflush: avoid warnings on modern systems
40999         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41000         pos and result, into scopes where they're used.
41001
41002 2009-01-26  Eric Blake  <ebb9@byu.net>
41003
41004         Silence warning reintroduced by recent extensions patch.
41005         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41006         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41007         autoconf.
41008
41009         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41010         * m4/00gnulib.m4: New file.
41011         * gnulib-tool (func_get_filelist): Always use it.
41012         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41013         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41014
41015 2009-01-25  Bruno Haible  <bruno@clisp.org>
41016
41017         Make test-quotearg work on MacOS X and AIX.
41018         * tests/test-quotearg.sh: New file.
41019         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41020         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41021         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41022         include <libintl.h>.
41023         (fake_locale): Remove variable.
41024         (gettext, dgettext, dcgettext): Remove functions.
41025         (main): Instead of setting a fake locale, set a real locale. Call
41026         textdomain and bindtextdomain.
41027         * modules/quotearg-tests (Files): Add the new files.
41028         (Depends-on): Add gettext, setenv, unsetenv.
41029         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41030         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41031         Augment TESTS_ENVIRONMENT.
41032
41033 2009-01-25  Bruno Haible  <bruno@clisp.org>
41034
41035         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41036         fr_FR.ISO8859-1 locale on MacOS X.
41037         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41038         ja_JP.eucJP locale on MacOS X.
41039         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41040         zh_CN.GB18030 locale on MacOS X.
41041
41042 2009-01-25  Bruno Haible  <bruno@clisp.org>
41043
41044         Avoid link errors on MacOS X 10.3.
41045         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41046         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41047
41048 2009-01-25  Bruno Haible  <bruno@clisp.org>
41049
41050         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41051         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41052         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41053         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41054         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41055         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41056         posix_spawnattr_init, posix_spawnattr_setsigmask,
41057         posix_spawnattr_setflags, posix_spawnattr_destroy.
41058
41059         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41060         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41061         * modules/execute (Files): Remove m4/posix_spawn.m4.
41062         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41063         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41064         posix_spawnattr_init, posix_spawnattr_setsigmask,
41065         posix_spawnattr_setflags, posix_spawnattr_destroy.
41066
41067 2009-01-25  Bruno Haible  <bruno@clisp.org>
41068
41069         * lib/glthread/threadlib.c: Include <stdlib.h>.
41070
41071 2009-01-25  Bruno Haible  <bruno@clisp.org>
41072
41073         * lib/glthread/threadlib.c (dummy): New declaration.
41074
41075 2009-01-25  Bruno Haible  <bruno@clisp.org>
41076
41077         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41078         multibyte characters also for the GB18030 encoding. Don't crash when
41079         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41080
41081 2009-01-25  Bruno Haible  <bruno@clisp.org>
41082
41083         Avoid redefining 'struct random_data' on OSF/1 5.1.
41084         * lib/stdlib.in.h: Include <random.h> if it exists.
41085         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41086         HAVE_RANDOM_H. Include <random.h> when testing whether
41087         'struct random_data' exists.
41088         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41089
41090 2009-01-25  Bruno Haible  <bruno@clisp.org>
41091
41092         Don't install charset.alias on MacOS X >= 10.3.
41093         * lib/localcharset.c (DARWIN7): New macro.
41094         (get_charset_aliases): Hardcode the result for Darwin7.
41095         * modules/localcharset (install-exec-local): Don't install
41096         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41097
41098 2009-01-25  Bruno Haible  <bruno@clisp.org>
41099
41100         Don't install charset.alias on mingw and Cygwin.
41101         * modules/localcharset (install-exec-local): Don't install
41102         charset.alias on mingw and Cygwin, if the file does not yet exist.
41103         The result for these platforms is hardcoded in localcharset.c.
41104
41105 2009-01-25  Bruno Haible  <bruno@clisp.org>
41106
41107         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41108         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41109         before requiring AC_USE_SYSTEM_EXTENSIONS.
41110
41111 2009-01-25  Jim Meyering  <meyering@redhat.com>
41112
41113         c-strtod: avoid warnings
41114         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41115         "assignment discards qualifiers from pointer target type" warnings.
41116
41117 2009-01-24  Bruno Haible  <bruno@clisp.org>
41118
41119         Add support for non-UTF-8 locales on MacOS X.
41120         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41121         canonical encodings. For Darwin 7 and newer, don't map traditional
41122         encodings to UTF-8.
41123         Reported by Vincent Lefevre <vincent@vinc17.org>
41124         at <http://savannah.gnu.org/bugs/?25235>.
41125
41126 2009-01-24  Bruno Haible  <bruno@clisp.org>
41127
41128         * doc/gnulib.texi (Obsolete modules): New section.
41129         Reported by Mike Frysinger <vapier@gentoo.org>.
41130
41131 2009-01-24  Bruno Haible  <bruno@clisp.org>
41132
41133         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41134         (%.dvi): New rule.
41135
41136 2009-01-24  Bruno Haible  <bruno@clisp.org>
41137
41138         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41139         Reported by Eric Blake.
41140
41141 2009-01-24  Bruno Haible  <bruno@clisp.org>
41142
41143         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41144         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41145         Reported by Gary V. Vaughan <gary@gnu.org>.
41146
41147 2009-01-24  Bruno Haible  <bruno@clisp.org>
41148
41149         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41150
41151 2009-01-23  Bruno Haible  <bruno@clisp.org>
41152
41153         Make c-strtod, c-strtold usable in libraries.
41154         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41155         (C_STRTOD): Call strdup instead of xstrdup.
41156         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41157         * modules/c-strtold (Depends-on): Likewise.
41158         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41159         * NEWS: Mention the change.
41160         Reported by Michael Gold <mgold@ncf.ca>.
41161
41162 2009-01-23  Jim Meyering  <meyering@redhat.com>
41163
41164         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41165         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41166         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41167
41168 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41169
41170         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41171         GNU CoreUtils.
41172         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41173         * modules/version-etc (Description): Update.
41174
41175 2009-01-22  Bruno Haible  <bruno@clisp.org>
41176
41177         Cache the C locale object.
41178         * lib/c-strtod.c (c_locale_cache): New variable.
41179         (c_locale): New function.
41180         (C_STRTOD): Use it, and don't call freelocale.
41181         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41182         Suggested by Paolo Bonzini.
41183
41184 2009-01-21  Bruno Haible  <bruno@clisp.org>
41185
41186         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41187         conditions other than overflow.
41188
41189 2009-01-21  Bruno Haible  <bruno@clisp.org>
41190
41191         * lib/c-strtod.c: Include errno.h.
41192         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41193         value from STRTOD_L and STRTOD.
41194
41195 2009-01-21  Bruno Haible  <bruno@clisp.org>
41196         and Jim Meyering  <meyering@redhat.com>
41197
41198         nanosleep: skip configure test (fail it) for apple universal builds
41199         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41200         universal builds, assume that nanosleep does not work.
41201         * modules/nanosleep (Depends-on): Add multiarch.
41202
41203         mktime: skip configure test (fail it) for apple universal builds
41204         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41205         universal builds, assume that mktime does not work.
41206         * modules/mktime (Depends-on): Add multiarch.
41207
41208 2009-01-21  Eric Blake  <ebb9@byu.net>
41209
41210         multiarch: avoid expand-before-require warning
41211         * modules/multiarch (configure.ac): Require, rather than expand,
41212         gl_MULTIARCH.
41213         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41214         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41215         enforce that all clients require it.  Partial reversion of
41216         2008-12-29 patch.
41217
41218         error: avoid expand-before-require warning
41219         * modules/errno (configure.ac): Require, rather than expand,
41220         gl_HEADER_ERRNO_H.
41221         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41222         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41223         enforce that all clients require it.
41224
41225         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41226         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41227         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41228         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41229
41230 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41231
41232         Revert:
41233         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41234
41235         regex: do not depend on obsolete modules.
41236         * modules/regex: Remove memcmp and memmove.
41237
41238 2009-01-20  Bruno Haible  <bruno@clisp.org>
41239
41240         Make the 'link' module link on Windows NT 4.
41241         * lib/link.c (_WIN32_WINNT): Don't define.
41242         (CreateHardLinkFuncType): New type.
41243         (CreateHardLinkFunc, initialized): New variables.
41244         (initialize): New function.
41245         (link): Invoke CreateHardLink indirectly through the function pointer.
41246
41247 2009-01-20  Bruno Haible  <bruno@clisp.org>
41248
41249         Fix compilation failure on mingw.
41250         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41251
41252 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41253
41254         * doc/c-strtod.texi: Mention a couple of restrictions.
41255
41256 2009-01-20  Jim Meyering  <meyering@redhat.com>
41257
41258         gettimeofday: move more declarations out of functions
41259         * lib/gettimeofday.c: Move extern declarations of tzset and
41260         gmtime out of containing functions.  Prompted by Bruno Haible.
41261
41262 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41263
41264         regex: do not depend on obsolete modules.
41265         * modules/regex: Remove memcmp and memmove.
41266
41267 2009-01-19  Bruno Haible  <bruno@clisp.org>
41268
41269         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41270         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41271         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41272         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41273         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41274
41275 2009-01-19  Bruno Haible  <bruno@clisp.org>
41276
41277         * tests/test-link.c: Include <errno.h>.
41278         (main): Exit with code 77 when a hard link cannot be created due to
41279         the file system.
41280         * tests/test-link.sh: Skip test when a hard link cannot be created due
41281         to the file system.
41282         Suggested by Eric Blake.
41283
41284 2009-01-19  Martin Lambers  <marlam@marlam.de>
41285
41286         * modules/link-tests: New file.
41287         * tests/test-link.sh: New file.
41288         * tests/test-link.c: New file.
41289
41290 2009-01-19  Eric Blake  <ebb9@byu.net>
41291
41292         doc: mention another function added in cygwin 1.7.0
41293         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41294         Another new function in cygwin 1.7.
41295
41296 2009-01-19  Bruno Haible  <bruno@clisp.org>
41297
41298         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41299         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41300         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41301         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41302         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41303         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41304         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41305         * m4/md4.m4 (gl_MD4): Likewise.
41306         * m4/md5.m4 (gl_MD5): Likewise.
41307         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41308         * m4/sha1.m4 (gl_SHA1): Likewise.
41309         * m4/sha256.m4 (gl_SHA256): Likewise.
41310         * m4/sha512.m4 (gl_SHA512): Likewise.
41311
41312 2009-01-19  Bruno Haible  <bruno@clisp.org>
41313
41314         * modules/uniname/uniname-tests (Depends-on): Add progname.
41315         * tests/uniname/test-uninames.c: Include progname.h.
41316         (main): Call set_program_name.
41317
41318         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41319         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41320         (main): Call set_program_name.
41321
41322         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41323         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41324         (main): Call set_program_name.
41325
41326         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41327         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41328         (main): Call set_program_name.
41329
41330         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41331         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41332         (main): Call set_program_name.
41333
41334         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41335         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41336         (main): Call set_program_name.
41337
41338         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41339         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41340         (main): Call set_program_name.
41341
41342         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41343         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41344         (main): Call set_program_name.
41345
41346         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41347         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41348         (main): Call set_program_name.
41349
41350 2009-01-19  Eric Blake  <ebb9@byu.net>
41351
41352         test-unistd: test previous patch
41353         * tests/test-unistd.c: Test *_FILENO macros.
41354
41355         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
41356         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41357         Guarantee a definition.
41358         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
41359         * modules/unistd-safer (Depends-on): Add dependency on unistd.
41360         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
41361         * lib/dup-safer.c (STDERR_FILENO): Likewise.
41362         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41363         Likewise.
41364         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
41365         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
41366         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41367         Likewise.
41368         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
41369         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
41370         (STDERR_FILENO): Likewise.
41371         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
41372         (STDERR_FILENO): Likewise.
41373         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
41374         (STDERR_FILENO): Likewise.
41375         Reported by Elbert Pol.
41376
41377 2009-01-19  Eric Blake  <ebb9@byu.net>
41378
41379         doc: mention more functions added in cygwin 1.7.0
41380         * doc/posix-functions/abort.texi (abort): Update wording related
41381         to cygwin.
41382         * doc/posix-functions/daylight.texi (daylight): Likewise.
41383         * doc/posix-functions/optarg.texi (optarg): Likewise.
41384         * doc/posix-functions/optarg.texi (opterr): Likewise.
41385         * doc/posix-functions/optarg.texi (optind): Likewise.
41386         * doc/posix-functions/optarg.texi (optopt): Likewise.
41387         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
41388         worked in 1.5.x, and was withdrawn in 1.7.
41389         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
41390         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
41391         cygwin versions.
41392         * doc/posix-functions/perror.texi (perror): Likewise.
41393         * doc/posix-functions/printf.texi (printf): Likewise.
41394         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
41395         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
41396         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
41397         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
41398         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41399         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
41400         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41401         Likewise.
41402         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41403         Likewise.
41404         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
41405         this function.
41406         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
41407         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
41408         Likewise.
41409         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
41410         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
41411         * doc/posix-functions/confstr.texi (confstr): Likewise.
41412         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
41413         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
41414         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
41415         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
41416         * doc/posix-functions/fputws.texi (fputws): Likewise.
41417         * doc/posix-functions/fwide.texi (fwide): Likewise.
41418         * doc/posix-functions/getwc.texi (getwc): Likewise.
41419         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
41420         * doc/posix-functions/putwc.texi (putwc): Likewise.
41421         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
41422         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
41423         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
41424         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
41425         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
41426         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
41427         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
41428         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
41429         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
41430         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
41431         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
41432
41433 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41434
41435         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
41436         * lib/ioctl.c: Include <sys/ioctl.h>.
41437
41438 2009-01-19  Simon Josefsson  <simon@josefsson.org>
41439
41440         * modules/getdate-tests (Depends-on): Add progname.
41441         * tests/test-getdate.c: Use progname module, to avoid link errors
41442         on non-glibc systems.
41443
41444 2009-01-18  Simon Josefsson  <simon@josefsson.org>
41445
41446         * modules/filenamecat-tests (Depends-on): Add progname.
41447         * modules/fstrcmp-tests (Depends-on): Likewise.
41448
41449         * tests/test-filenamecat.c: Use progname module, to avoid link
41450         errors on non-glibc systems.
41451         * tests/test-fstrcmp.c: Likewise.
41452
41453 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41454
41455         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41456         * lib/gettimeofday.c: Move extern declaration out of function.
41457
41458 2009-01-18  Bruno Haible  <bruno@clisp.org>
41459
41460         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41461         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41462         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41463
41464 2009-01-18  Bruno Haible  <bruno@clisp.org>
41465
41466         * lib/strftime.c (MEMPCPY): Remove unused macro.
41467         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41468
41469 2009-01-18  Martin Lambers  <marlam@marlam.de>
41470
41471         New module 'link'.
41472         * lib/unistd.in.h (link): New declaration.
41473         * lib/link.c: New file.
41474         * m4/link.m4: New file.
41475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41476         HAVE_LINK.
41477         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41478         * modules/link: New file.
41479         * doc/posix-functions/link.texi: Mention the new module.
41480
41481 2009-01-18  Bruno Haible  <bruno@clisp.org>
41482
41483         * tests/test-avltree_list.c (main): Call set_program_name.
41484         * tests/test-avltree_oset.c (main): Likewise.
41485         * tests/test-obstack-printf.c: Include progname.h.
41486         (main): Call set_program_name.
41487         * tests/test-quotearg.c: Include progname.h.
41488         (main): Call set_program_name.
41489         * tests/test-xmemdup0.c: Include progname.h.
41490         (main): Call set_program_name.
41491
41492 2009-01-18  Bruno Haible  <bruno@clisp.org>
41493
41494         New module 'alphasort'.
41495         * lib/dirent.in.h (alphasort): New declaration.
41496         * lib/alphasort.c: New file, from glibc with modifications.
41497         * m4/alphasort.m4: New file.
41498         * modules/alphasort: New file.
41499         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
41500         HAVE_ALPHASORT.
41501         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
41502         HAVE_ALPHASORT.
41503         * doc/posix-functions/alphasort.texi: Mention the new module and the
41504         portability problems.
41505
41506 2009-01-18  Bruno Haible  <bruno@clisp.org>
41507
41508         New module 'scandir'.
41509         * lib/dirent.in.h (scandir): New declaration.
41510         * lib/scandir.c: New file, from glibc with modifications.
41511         * m4/scandir.m4: New file.
41512         * modules/scandir: New file.
41513         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
41514         HAVE_SCANDIR.
41515         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
41516         HAVE_SCANDIR.
41517         * doc/posix-functions/scandir.texi: Mention the new module and the
41518         portability problems.
41519
41520 2009-01-17  Bruno Haible  <bruno@clisp.org>
41521
41522         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41523         Update documentation.
41524         (func_remove_suffix): Escape all dots in the suffix. Update
41525         documentation.
41526         (func_filter_filelist): Update documentation.
41527         Reported by Ralf Wildenhues.
41528
41529 2009-01-17  Bruno Haible  <bruno@clisp.org>
41530
41531         * modules/dprintf-posix-tests: New file.
41532         * tests/test-dprintf-posix.sh: New file.
41533         * tests/test-dprintf-posix.c: New file.
41534
41535         New modules 'dprintf', 'dprintf-posix'.
41536         * lib/stdio.in.h (dprintf): New declaration.
41537         * lib/dprintf.c: New file.
41538         * m4/dprintf.m4: New file.
41539         * m4/dprintf-posix.m4: New file.
41540         * modules/dprintf: New file.
41541         * modules/dprintf-posix: New file.
41542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
41543         HAVE_DPRINTF, REPLACE_DPRINTF.
41544         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
41545         HAVE_DPRINTF, REPLACE_DPRINTF.
41546         * doc/posix-functions/dprintf.texi: Mention the new modules.
41547
41548 2009-01-17  Bruno Haible  <bruno@clisp.org>
41549
41550         * modules/vdprintf-posix-tests: New file.
41551         * tests/test-vdprintf-posix.sh: New file.
41552         * tests/test-vdprintf-posix.c: New file.
41553
41554         New modules 'vdprintf', 'vdprintf-posix'.
41555         * lib/stdio.in.h (vdprintf): New declaration.
41556         * lib/vdprintf.c: New file.
41557         * m4/vdprintf.m4: New file.
41558         * m4/vdprintf-posix.m4: New file.
41559         * modules/vdprintf: New file.
41560         * modules/vdprintf-posix: New file.
41561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
41562         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41563         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
41564         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41565         * doc/posix-functions/vdprintf.texi: Mention the new modules.
41566
41567 2009-01-17  Bruno Haible  <bruno@clisp.org>
41568
41569         Fix replacement of fopen on mingw.
41570         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
41571         mingw.
41572
41573 2009-01-17  Bruno Haible  <bruno@clisp.org>
41574
41575         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
41576         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
41577
41578 2009-01-17  Bruno Haible  <bruno@clisp.org>
41579
41580         Avoid test-fflush2.sh failure on mingw.
41581         * tests/test-fflush2.c: Include binary-io.h.
41582         (main): Put standard input into binary mode.
41583         * modules/fflush-tests (Depends-on): Add binary-io.
41584
41585 2009-01-17  Bruno Haible  <bruno@clisp.org>
41586
41587         * lib/wchar.in.h: In another particular situation, include only the
41588         system's <wchar.h> file.
41589         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
41590         Reported by Albert Chin-A-Young <china@thewrittenword.com>
41591         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
41592
41593 2009-01-17  Bruno Haible  <bruno@clisp.org>
41594
41595         Support for stripping executables in --enable-relocatable.
41596         * build-aux/install-reloc: Expect one more argument, or an environment
41597         variable RELOC_STRIP_PROG. If set, strip the destination program and
41598         its wrapper.
41599         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
41600         RELOC_STRIP_PROG.
41601         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
41602         to set RELOCATABLE_STRIP.
41603         * NEWS: Mention the new Makefile requirement.
41604
41605 2009-01-17  Bruno Haible  <bruno@clisp.org>
41606
41607         * build-aux/install-reloc: Remove debugging information left over by
41608         C compiler on MacOS X.
41609
41610 2009-01-17  Bruno Haible  <bruno@clisp.org>
41611
41612         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
41613         * lib/progreloc.c (find_executable): Fix type of pointer passed to
41614         _NSGetExecutablePath.
41615
41616 2009-01-16  Jim Meyering  <meyering@redhat.com>
41617
41618         strerror: avoid warnings about discarding "const"
41619         * lib/strerror.c (rpl_strerror): Instead of returning a const
41620         string from each and every "case", use a variable, and add a single
41621         cast after the switch.
41622
41623 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
41624
41625         * lib/arpa_inet.in.h: Add extern "C" block for C++.
41626
41627 2009-01-16  Bruno Haible  <bruno@clisp.org>
41628
41629         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
41630         array initializer syntax that also works in C++ mode.
41631         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41632
41633 2009-01-16  Jim Meyering  <meyering@redhat.com>
41634
41635         poll: suppress a warning
41636         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
41637         to ignore "...unsigned expression < 0 is always false" warnings.
41638
41639 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
41640
41641         poll: remove declarations of unused variables
41642         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
41643         sockbuf and optlen.
41644
41645 2009-01-15  Bruno Haible  <bruno@clisp.org>
41646
41647         Make fflush-after-ungetc POSIX compliant on BSD systems.
41648         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
41649         (clear_ungetc_buffer): Implement also for other systems.
41650         (rpl_fflush): On glibc systems, invoke
41651         clear_ungetc_buffer_preserving_position. Otherwise, invoke
41652         clear_ungetc_buffer after fetching the stream's position, not before.
41653
41654 2009-01-15  Bruno Haible  <bruno@clisp.org>
41655
41656         Make fflush-after-ungetc POSIX compliant on glibc systems.
41657         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
41658         after ungetc.
41659         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
41660         (rpl_fflush): On glibc systems, simply call the system's fflush
41661         function after clearing the ungetc buffer.
41662         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
41663         Instead, lseek only to the end of file, then use the system's fseeko
41664         for the rest. On glibc systems, reset the EOF indicator bit.
41665
41666 2009-01-15  Jim Meyering  <meyering@redhat.com>
41667
41668         openmp.m4: revert quote-adding change, for portability to older autoconf
41669         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
41670         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
41671         Simon Josefsson noticed the problem when using autoconf-2.61.
41672
41673 2009-01-15  Bruno Haible  <bruno@clisp.org>
41674
41675         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
41676         * tests/test-fflush2.c (ASSERT): Always fail.
41677         (main): Add two tests for fflush() after ungetc(), taking into account
41678         the Austin Group's clarification.
41679         Suggested by Eric Blake.
41680
41681 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
41682
41683         mktime.m4: remove K&R-style function prototypes
41684         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
41685         for the Sun C++ compiler.
41686
41687 2009-01-14  Bruno Haible  <bruno@clisp.org>
41688
41689         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
41690         while including <wchar.h>.
41691         * lib/wchar.in.h: In two particular situations on HP-UX, include only
41692         the system's <wchar.h> file.
41693         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41694
41695 2009-01-14  Bruno Haible  <bruno@clisp.org>
41696
41697         * m4/csharp.m4: Don't mention gettext on the serial number line.
41698         * m4/csharpexec.m4: Likewise.
41699         * m4/eaccess.m4: Likewise.
41700         * m4/javaexec.m4: Likewise.
41701         * m4/sig_atomic_t.m4: Likewise.
41702         * m4/tmpdir.m4: Likewise.
41703         * m4/intldir.m4: Bump gettext version.
41704         * m4/lib-ld.m4: Likewise.
41705
41706 2009-01-14  Bruno Haible  <bruno@clisp.org>
41707
41708         * lib/progname.c (set_program_name): Add more comments.
41709         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41710
41711 2009-01-14  Simon Josefsson  <simon@josefsson.org>
41712
41713         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
41714         were sys/stat.h does not define it.
41715
41716 2009-01-14  Jim Meyering  <meyering@redhat.com>
41717
41718         many *.m4 files: improve m4 quoting
41719         99% of this change was performed by running the following commands:
41720         git ls-files | grep '\.m4$' | xargs perl -pi \
41721           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
41722           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41723           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41724           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
41725         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
41726         The remainder were to add Copyright dates, increment serial numbers,
41727         undo some changes in comments, exclude m4/intl.m4, and add quotes
41728         around the "1" in ",1" where the unusual spacing prohibited the
41729         above regexps from doing the job.  For more details, see
41730         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
41731         * m4/acl.m4: Modified.
41732         * m4/afs.m4: Likewise.
41733         * m4/alloca.m4: Likewise.
41734         * m4/argp.m4: Likewise.
41735         * m4/argz.m4: Likewise.
41736         * m4/atexit.m4: Likewise.
41737         * m4/bison-i18n.m4: Likewise.
41738         * m4/bison.m4: Likewise.
41739         * m4/byteswap.m4: Likewise.
41740         * m4/c-stack.m4: Likewise.
41741         * m4/c-strtod.m4: Likewise.
41742         * m4/calloc.m4: Likewise.
41743         * m4/canonicalize-lgpl.m4: Likewise.
41744         * m4/chown.m4: Likewise.
41745         * m4/clock_time.m4: Likewise.
41746         * m4/codeset.m4: Likewise.
41747         * m4/copy-file.m4: Likewise.
41748         * m4/csharp.m4: Likewise.
41749         * m4/csharpcomp.m4: Likewise.
41750         * m4/csharpexec.m4: Likewise.
41751         * m4/d-ino.m4: Likewise.
41752         * m4/d-type.m4: Likewise.
41753         * m4/dirfd.m4: Likewise.
41754         * m4/double-slash-root.m4: Likewise.
41755         * m4/eaccess.m4: Likewise.
41756         * m4/eealloc.m4: Likewise.
41757         * m4/environ.m4: Likewise.
41758         * m4/errno_h.m4: Likewise.
41759         * m4/euidaccess.m4: Likewise.
41760         * m4/execute.m4: Likewise.
41761         * m4/fatal-signal.m4: Likewise.
41762         * m4/fchdir.m4: Likewise.
41763         * m4/fcntl_h.m4: Likewise.
41764         * m4/fileblocks.m4: Likewise.
41765         * m4/filenamecat.m4: Likewise.
41766         * m4/findprog.m4: Likewise.
41767         * m4/flexmember.m4: Likewise.
41768         * m4/fnmatch.m4: Likewise.
41769         * m4/fopen.m4: Likewise.
41770         * m4/fpending.m4: Likewise.
41771         * m4/fprintf-posix.m4: Likewise.
41772         * m4/free.m4: Likewise.
41773         * m4/frexp.m4: Likewise.
41774         * m4/frexpl.m4: Likewise.
41775         * m4/fsusage.m4: Likewise.
41776         * m4/ftruncate.m4: Likewise.
41777         * m4/gc-camellia.m4: Likewise.
41778         * m4/gc-random.m4: Likewise.
41779         * m4/gc.m4: Likewise.
41780         * m4/getaddrinfo.m4: Likewise.
41781         * m4/getcwd-abort-bug.m4: Likewise.
41782         * m4/getcwd-path-max.m4: Likewise.
41783         * m4/getdate.m4: Likewise.
41784         * m4/getdomainname.m4: Likewise.
41785         * m4/getgroups.m4: Likewise.
41786         * m4/gethostname.m4: Likewise.
41787         * m4/gethrxtime.m4: Likewise.
41788         * m4/getline.m4: Likewise.
41789         * m4/getloadavg.m4: Likewise.
41790         * m4/getndelim2.m4: Likewise.
41791         * m4/getpass.m4: Likewise.
41792         * m4/gettext.m4: Likewise.
41793         * m4/gettime.m4: Likewise.
41794         * m4/gettimeofday.m4: Likewise.
41795         * m4/gnulib-common.m4: Likewise.
41796         * m4/group-member.m4: Likewise.
41797         * m4/host-os.m4: Likewise.
41798         * m4/iconv.m4: Likewise.
41799         * m4/iconv_open.m4: Likewise.
41800         * m4/inet_ntop.m4: Likewise.
41801         * m4/inet_pton.m4: Likewise.
41802         * m4/inline.m4: Likewise.
41803         * m4/intldir.m4: Likewise.
41804         * m4/intlmacosx.m4: Likewise.
41805         * m4/intmax.m4: Likewise.
41806         * m4/intmax_t.m4: Likewise.
41807         * m4/inttypes.m4: Likewise.
41808         * m4/inttypes_h.m4: Likewise.
41809         * m4/inttypes-pri.m4: Likewise.
41810         * m4/isapipe.m4: Likewise.
41811         * m4/isnand.m4: Likewise.
41812         * m4/isnanf.m4: Likewise.
41813         * m4/isnanl.m4: Likewise.
41814         * m4/javacomp.m4: Likewise.
41815         * m4/javaexec.m4: Likewise.
41816         * m4/jm-winsz1.m4: Likewise.
41817         * m4/jm-winsz2.m4: Likewise.
41818         * m4/lchown.m4: Likewise.
41819         * m4/lcmessage.m4: Likewise.
41820         * m4/ldexpl.m4: Likewise.
41821         * m4/lib-ld.m4: Likewise.
41822         * m4/lib-link.m4: Likewise.
41823         * m4/libsigsegv.m4: Likewise.
41824         * m4/link-follow.m4: Likewise.
41825         * m4/localcharset.m4: Likewise.
41826         * m4/locale-fr.m4: Likewise.
41827         * m4/locale-ja.m4: Likewise.
41828         * m4/locale-tr.m4: Likewise.
41829         * m4/locale-zh.m4: Likewise.
41830         * m4/lock.m4: Likewise.
41831         * m4/longlong.m4: Likewise.
41832         * m4/ls-mntd-fs.m4: Likewise.
41833         * m4/lstat.m4: Likewise.
41834         * m4/malloc.m4: Likewise.
41835         * m4/mathl.m4: Likewise.
41836         * m4/mbrtowc.m4: Likewise.
41837         * m4/mbstate_t.m4: Likewise.
41838         * m4/mbswidth.m4: Likewise.
41839         * m4/memchr.m4: Likewise.
41840         * m4/memcmp.m4: Likewise.
41841         * m4/memcpy.m4: Likewise.
41842         * m4/memmem.m4: Likewise.
41843         * m4/memmove.m4: Likewise.
41844         * m4/mempcpy.m4: Likewise.
41845         * m4/memrchr.m4: Likewise.
41846         * m4/memset.m4: Likewise.
41847         * m4/minmax.m4: Likewise.
41848         * m4/mkdir-slash.m4: Likewise.
41849         * m4/mkdtemp.m4: Likewise.
41850         * m4/mktime.m4: Likewise.
41851         * m4/mmap-anon.m4: Likewise.
41852         * m4/mountlist.m4: Likewise.
41853         * m4/nanosleep.m4: Likewise.
41854         * m4/nls.m4: Likewise.
41855         * m4/nocrash.m4: Likewise.
41856         * m4/open.m4: Likewise.
41857         * m4/openat.m4: Likewise.
41858         * m4/openmp.m4: Likewise.
41859         * m4/pathmax.m4: Likewise.
41860         * m4/perl.m4: Likewise.
41861         * m4/physmem.m4: Likewise.
41862         * m4/pipe.m4: Likewise.
41863         * m4/po.m4: Likewise.
41864         * m4/poll.m4: Likewise.
41865         * m4/posixtm.m4: Likewise.
41866         * m4/posixver.m4: Likewise.
41867         * m4/printf-frexp.m4: Likewise.
41868         * m4/printf-frexpl.m4: Likewise.
41869         * m4/printf-posix.m4: Likewise.
41870         * m4/printf-posix-rpl.m4: Likewise.
41871         * m4/printf.m4: Likewise.
41872         * m4/progtest.m4: Likewise.
41873         * m4/putenv.m4: Likewise.
41874         * m4/readline.m4: Likewise.
41875         * m4/readlink.m4: Likewise.
41876         * m4/readutmp.m4: Likewise.
41877         * m4/realloc.m4: Likewise.
41878         * m4/regex.m4: Likewise.
41879         * m4/relocatable.m4: Likewise.
41880         * m4/relocatable-lib.m4: Likewise.
41881         * m4/rename-dest-slash.m4: Likewise.
41882         * m4/rename.m4: Likewise.
41883         * m4/rmdir-errno.m4: Likewise.
41884         * m4/rmdir.m4: Likewise.
41885         * m4/roundf.m4: Likewise.
41886         * m4/roundl.m4: Likewise.
41887         * m4/rpmatch.m4: Likewise.
41888         * m4/save-cwd.m4: Likewise.
41889         * m4/selinux-selinux-h.m4: Likewise.
41890         * m4/setenv.m4: Likewise.
41891         * m4/settime.m4: Likewise.
41892         * m4/sig2str.m4: Likewise.
41893         * m4/sig_atomic_t.m4: Likewise.
41894         * m4/signalblocking.m4: Likewise.
41895         * m4/signbit.m4: Likewise.
41896         * m4/sigpipe.m4: Likewise.
41897         * m4/sockets.m4: Likewise.
41898         * m4/sockpfaf.m4: Likewise.
41899         * m4/st_dm_mode.m4: Likewise.
41900         * m4/stat-time.m4: Likewise.
41901         * m4/stdbool.m4: Likewise.
41902         * m4/stdint.m4: Likewise.
41903         * m4/stdint_h.m4: Likewise.
41904         * m4/stpcpy.m4: Likewise.
41905         * m4/stpncpy.m4: Likewise.
41906         * m4/strcase.m4: Likewise.
41907         * m4/strchrnul.m4: Likewise.
41908         * m4/strcspn.m4: Likewise.
41909         * m4/strdup.m4: Likewise.
41910         * m4/strftime.m4: Likewise.
41911         * m4/strndup.m4: Likewise.
41912         * m4/strnlen.m4: Likewise.
41913         * m4/strpbrk.m4: Likewise.
41914         * m4/strptime.m4: Likewise.
41915         * m4/strsep.m4: Likewise.
41916         * m4/strtod.m4: Likewise.
41917         * m4/strtoimax.m4: Likewise.
41918         * m4/strtok_r.m4: Likewise.
41919         * m4/strtol.m4: Likewise.
41920         * m4/strtoll.m4: Likewise.
41921         * m4/strtoul.m4: Likewise.
41922         * m4/strtoull.m4: Likewise.
41923         * m4/strtoumax.m4: Likewise.
41924         * m4/strverscmp.m4: Likewise.
41925         * m4/threadlib.m4: Likewise.
41926         * m4/timegm.m4: Likewise.
41927         * m4/tm_gmtoff.m4: Likewise.
41928         * m4/tmpdir.m4: Likewise.
41929         * m4/tmpfile.m4: Likewise.
41930         * m4/tzset.m4: Likewise.
41931         * m4/uintmax_t.m4: Likewise.
41932         * m4/unlinkdir.m4: Likewise.
41933         * m4/unlocked-io.m4: Likewise.
41934         * m4/uptime.m4: Likewise.
41935         * m4/userspec.m4: Likewise.
41936         * m4/utimbuf.m4: Likewise.
41937         * m4/utime.m4: Likewise.
41938         * m4/utimes-null.m4: Likewise.
41939         * m4/utimes.m4: Likewise.
41940         * m4/vararrays.m4: Likewise.
41941         * m4/vasnprintf.m4: Likewise.
41942         * m4/vfprintf-posix.m4: Likewise.
41943         * m4/vprintf-posix.m4: Likewise.
41944         * m4/wait-process.m4: Likewise.
41945         * m4/wchar_t.m4: Likewise.
41946         * m4/wint_t.m4: Likewise.
41947         * m4/write-any-file.m4: Likewise.
41948         * m4/yield.m4: Likewise.
41949
41950 2009-01-13  Bruno Haible  <bruno@clisp.org>
41951
41952         Avoid test-copy-file.sh failures when ACL support insufficient.
41953         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
41954         TESTS_ENVIRONMENT.
41955         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
41956         Reported by Jim Meyering.
41957
41958 2009-01-13  Bruno Haible  <bruno@clisp.org>
41959
41960         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
41961         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
41962         * modules/unistdio/u8-printf-parse (Files): Likewise.
41963         * modules/unistdio/u32-printf-parse (Files): Likewise.
41964         * modules/unistdio/ulc-printf-parse (Files): Likewise.
41965
41966 2009-01-13  Simon Josefsson  <simon@josefsson.org>
41967
41968         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
41969         and m4/inttypes_h.m4 too.
41970
41971 2009-01-12  Eric Blake  <ebb9@byu.net>
41972
41973         tests: IRIX 6.2 cc can't compile -0.0 into .data
41974         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
41975         rather than at compile-time.
41976         * tests/test-floorl.c (minus_zero): Likewise.
41977         * tests/test-frexpl.c (minus_zero): Likewise.
41978         * tests/test-isnan.c (minus_zerol): Likewise.
41979         * tests/test-isnanl.h (minus_zero): Likewise.
41980         * tests/test-ldexpl.c (minus_zero): Likewise.
41981         * tests/test-roundl.c (minus_zero): Likewise.
41982         * tests/test-signbit.c (minus_zerol): Likewise.
41983         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41984         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41985         * tests/test-truncl.c (minus_zero): Likewise.
41986         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41987         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41988         Reported by Tom G. Christensen and Nelson H. F. Beebe.
41989
41990 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41991
41992         regex: fix glibc bug 9697
41993         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
41994         handling.
41995
41996 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41997
41998         regex: fix glibc bug 697
41999         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42000         being NULL also if there are no backreferences.
42001
42002 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42003
42004         regex: merge glibc changes
42005         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42006         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42007         re_string_skip_chars, re_string_reconstruct): Likewise.
42008         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42009
42010 2009-01-07  Jim Meyering  <meyering@redhat.com>
42011
42012         poll: filter through cppi
42013         * lib/poll.c: Indent cpp directives to reflect nesting.
42014
42015 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42016
42017         poll: don't return uninitialized
42018         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42019
42020 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42021
42022         avoid compile failure on AIX 6.1
42023         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42024         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42025
42026 2009-01-04  Jim Meyering  <meyering@redhat.com>
42027
42028         remove duplicate inclusion of <stdio.h>
42029         * tests/test-fprintf-posix.c: Likewise.
42030         * tests/test-printf-posix.c: Likewise.
42031         * tests/test-snprintf-posix.c: Likewise.
42032         * tests/test-sprintf-posix.c: Likewise.
42033         * tests/test-vasprintf-posix.c: Likewise.
42034         * tests/test-vfprintf-posix.c: Likewise.
42035         * tests/test-vprintf-posix.c: Likewise.
42036         * tests/test-vsnprintf-posix.c: Likewise.
42037         * tests/test-vsprintf-posix.c: Likewise.
42038
42039 2009-01-03  Jim Meyering  <meyering@redhat.com>
42040
42041         gnulib-tool: fix sed-based filtering
42042         * gnulib-tool (func_filter_filelist): Remove extra backslash
42043         in sed_fff_filter definition.
42044
42045 2009-01-02  Jim Meyering  <meyering@redhat.com>
42046
42047         strftime: avoid compilation failure on Solaris 2.6
42048         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42049         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42050         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42051         be available.  Reported by Tom G. Christensen.  Details in
42052         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42053
42054 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42055             Bruno Haible  <bruno@clisp.org>
42056
42057         Speed up gnulib-tool by doing more string processing through shell
42058         built-ins.
42059         * gnulib-tool (fast_func_append): New variable.
42060         (func_remove_prefix, func_remove_suffix): New functions.
42061         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42062         (func_filter_filelist): New function.
42063         (func_get_dependencies): Use func_remove_suffix instead of sed.
42064         (func_get_automake_snippet): Use func_filter_filelist instead of a
42065         subshell and sed invocation.
42066
42067 2009-01-01  Bruno Haible  <bruno@clisp.org>
42068
42069         Fix a security bug.
42070         * gnulib-tool (func_import, import, update): Don't allow the characters
42071         '"', '$', '`', '\' in macro arguments that become part of commands that
42072         are evaluated.
42073
42074 2009-01-01  Bruno Haible  <bruno@clisp.org>
42075
42076         * gnulib-tool (func_reset_sigpipe): Add more comments.
42077
42078 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42079
42080         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42081         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42082         already know the answer.
42083
42084 2009-01-01  Jim Meyering  <meyering@redhat.com>
42085
42086         * lib/version-etc.c (version_etc_va): Update copyright year.
42087
42088 2008-12-30  Bruno Haible  <bruno@clisp.org>
42089
42090         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42091         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42092         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42093
42094 2008-12-29  Eric Blake  <ebb9@byu.net>
42095
42096         multiarch: avoid autoconf AC_REQUIRE bug
42097         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42098         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42099         2.63 and older.
42100         Reported by Bruno Haible, and analyzed in
42101         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42102
42103 2008-12-29  Bruno Haible  <bruno@clisp.org>
42104
42105         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42106         files in subdirectories correctly.
42107         Reported by Ralf Wildenhues.
42108
42109 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42110
42111         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42112         rather than 'join FILE -', for Solaris join.
42113
42114 2008-12-29  Bruno Haible  <bruno@clisp.org>
42115
42116         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42117         quoting.
42118         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42119         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42120         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42121         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42122         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42123         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42124         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42125         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42126         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42127         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42128         * m4/nls.m4 (AM_NLS): Likewise.
42129         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42130         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42131         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42132         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42133         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42134         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42135         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42136         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42137         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42138         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42139         * m4/xsize.m4 (gl_XSIZE): Likewise.
42140         Suggested by Jim Meyering.
42141
42142 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42143
42144         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42145         * lib/parse-duration.c: use a switch instead of cascading if's.
42146
42147 2008-12-29  Eric Blake  <ebb9@byu.net>
42148
42149         wchar.h: supply WEOF on Irix 5.3
42150         * lib/wchar.in.h (wint_t): Also supply WEOF.
42151         * lib/wctype.in.h (wint_t): Likewise.
42152         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42153         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42154         Reported by Tom G. Christensen.
42155
42156 2008-12-26  Bruno Haible  <bruno@clisp.org>
42157
42158         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42159         i486, i586, i686.
42160
42161 2008-12-26  Bruno Haible  <bruno@clisp.org>
42162
42163         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42164
42165 2008-12-26  Bruno Haible  <bruno@clisp.org>
42166
42167         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42168         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42169         not __STDC_CONSTANT_MACROS.
42170         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42171
42172 2008-12-25  Bruno Haible  <bruno@clisp.org>
42173
42174         Add support for universal builds to vasnprintf.
42175         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42176         universal builds, guess no.
42177         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42178         * modules/vasprintf-posix (Depends-on): Likewise.
42179         * modules/fprintf-posix (Depends-on): Likewise.
42180         * modules/vfprintf-posix (Depends-on): Likewise.
42181         * modules/snprintf-posix (Depends-on): Likewise.
42182         * modules/vsnprintf-posix (Depends-on): Likewise.
42183         * modules/sprintf-posix (Depends-on): Likewise.
42184         * modules/vsprintf-posix (Depends-on): Likewise.
42185         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42186         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42187         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42188         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42189         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42190         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42191         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42192
42193         Add support for universal builds to <inttypes.h>.
42194         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42195         _SCNu64_PREFIX): In Apple
42196         universal builds, define directly, using _LP64.
42197         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42198         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42199         * modules/inttypes (Depends-on): Add multiarch.
42200         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42201
42202         Add support for universal builds to <stdint.h>.
42203         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42204         universal builds, define directly, using _LP64.
42205         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42206         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42207         and size_t.
42208         * modules/stdint (Depends-on): Add multiarch.
42209         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42210
42211         New module 'multiarch'.
42212         * modules/multiarch: New file.
42213         * m4/multiarch.m4: New file.
42214
42215 2008-12-25  Bruno Haible  <bruno@clisp.org>
42216
42217         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42218
42219 2008-12-25  Bruno Haible  <bruno@clisp.org>
42220
42221         * modules/btowc (License): Relicense under LGPLv2+.
42222         * modules/mbsinit (License): Likewise.
42223         * modules/mbrtowc (License): Likewise.
42224         * modules/wcrtomb (License): Likewise.
42225         * modules/streq (License): Likewise.
42226         Reported by David Lutterkort <lutter@redhat.com>.
42227
42228 2008-12-23  Bruno Haible  <bruno@clisp.org>
42229
42230         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42231
42232 2008-12-23  Bruno Haible  <bruno@clisp.org>
42233
42234         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42235         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42236         GETADDRINFO_LIB, not in LIBS.
42237         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42238         * modules/canon-host (Link): Likewise.
42239         * NEWS: Mention the change.
42240         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42241         GETADDRINFO_LIB.
42242
42243 2008-12-22  Bruno Haible  <bruno@clisp.org>
42244
42245         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42246         * doc/posix-functions/iswalpha_l.texi: Likewise.
42247         * doc/posix-functions/iswblank_l.texi: Likewise.
42248         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42249         * doc/posix-functions/iswctype_l.texi: Likewise.
42250         * doc/posix-functions/iswdigit_l.texi: Likewise.
42251         * doc/posix-functions/iswgraph_l.texi: Likewise.
42252         * doc/posix-functions/iswlower_l.texi: Likewise.
42253         * doc/posix-functions/iswprint_l.texi: Likewise.
42254         * doc/posix-functions/iswpunct_l.texi: Likewise.
42255         * doc/posix-functions/iswspace_l.texi: Likewise.
42256         * doc/posix-functions/iswupper_l.texi: Likewise.
42257         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42258         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42259         * doc/posix-functions/open_wmemstream.texi: Likewise.
42260         * doc/posix-functions/swscanf.texi: Likewise.
42261         * doc/posix-functions/towctrans_l.texi: Likewise.
42262         * doc/posix-functions/towlower.texi: Likewise.
42263         * doc/posix-functions/towlower_l.texi: Likewise.
42264         * doc/posix-functions/towupper.texi: Likewise.
42265         * doc/posix-functions/towupper_l.texi: Likewise.
42266         * doc/posix-functions/vfwprintf.texi: Likewise.
42267         * doc/posix-functions/vfwscanf.texi: Likewise.
42268         * doc/posix-functions/vswscanf.texi: Likewise.
42269         * doc/posix-functions/vwprintf.texi: Likewise.
42270         * doc/posix-functions/vwscanf.texi: Likewise.
42271         * doc/posix-functions/wcpcpy.texi: Likewise.
42272         * doc/posix-functions/wcpncpy.texi: Likewise.
42273         * doc/posix-functions/wcscasecmp.texi: Likewise.
42274         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42275         * doc/posix-functions/wcscoll_l.texi: Likewise.
42276         * doc/posix-functions/wcsdup.texi: Likewise.
42277         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42278         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42279         * doc/posix-functions/wcsnlen.texi: Likewise.
42280         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42281         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42282         * doc/posix-functions/wctrans_l.texi: Likewise.
42283         * doc/posix-functions/wctype_l.texi: Likewise.
42284         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42285         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42286         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42287         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42288         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42289         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42290         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42291         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42292         * doc/glibc-functions/wcschrnul.texi: Likewise.
42293         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42294         * doc/glibc-functions/wcstod_l.texi: Likewise.
42295         * doc/glibc-functions/wcstof_l.texi: Likewise.
42296         * doc/glibc-functions/wcstol_l.texi: Likewise.
42297         * doc/glibc-functions/wcstold_l.texi: Likewise.
42298         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42299         * doc/glibc-functions/wcstoq.texi: Likewise.
42300         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42301         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42302         * doc/glibc-functions/wcstouq.texi: Likewise.
42303         * doc/glibc-functions/wmempcpy.texi: Likewise.
42304
42305 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42306             Eric Blake  <ebb9@byu.net>
42307             Paolo Bonzini  <bonzini@gnu.org>
42308             Bruno Haible  <bruno@clisp.org>
42309
42310         Make c-stack work on Haiku.
42311         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42312         (c_stack_action): Use SA_ONSTACK flag.
42313
42314 2008-12-22  Bruno Haible  <bruno@clisp.org>
42315
42316         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42317
42318 2008-12-22  Bruno Haible  <bruno@clisp.org>
42319
42320         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42321         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42322         being overridden.
42323         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42324         New macros.
42325         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42326         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42327         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42328         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42329
42330 2008-12-22  Bruno Haible  <bruno@clisp.org>
42331
42332         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42333         from test code.
42334
42335 2008-12-22  Eric Blake  <ebb9@byu.net>
42336
42337         Avoid gcc warnings on cygwin.
42338         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42339         Avoid unused variable.
42340         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42341         Likewise.
42342
42343 2008-12-22  Bruno Haible  <bruno@clisp.org>
42344
42345         Remove HAVE_MBRTOWC conditionals.
42346         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42347         (mbscasecmp): Assume mbrtowc function.
42348         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42349         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42350         * lib/mbschr.c: Include mbuiter.h unconditionally.
42351         (mbschr): Assume mbrtowc function.
42352         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42353         (mbscspn): Assume mbrtowc function.
42354         * lib/mbslen.c: Include mbuiter.h unconditionally.
42355         (mbslen): Assume mbrtowc function.
42356         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
42357         (mbsncasecmp): Assume mbrtowc function.
42358         * lib/mbsnlen.c: Include mbiter.h unconditionally.
42359         (mbsnlen): Assume mbrtowc function.
42360         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
42361         (mbspbrk): Assume mbrtowc function.
42362         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
42363         (mbspcasecmp): Assume mbrtowc function.
42364         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
42365         (mbsrchr): Assume mbrtowc function.
42366         * lib/mbssep.c: Include mbuiter.h unconditionally.
42367         (mbssep): Assume mbrtowc function.
42368         * lib/mbsspn.c: Include mbuiter.h unconditionally.
42369         (mbsspn): Assume mbrtowc function.
42370         * lib/mbsstr.c: Include mbuiter.h unconditionally.
42371         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
42372         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
42373         (mbstok_r): Assume mbrtowc function.
42374         * lib/propername.c: Include mbuiter.h unconditionally.
42375         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
42376         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
42377         (trim2): Assume mbrtowc function.
42378         * lib/mbswidth.c (mbsinit): Remove fallback definition.
42379         (mbsnwidth): Assume mbrtowc function.
42380         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
42381         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
42382         fallback definitions.
42383         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
42384
42385 2008-12-22  Bruno Haible  <bruno@clisp.org>
42386
42387         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
42388
42389 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
42390
42391         * modules/regex: Request emulations for the mb*/wc* functions we need.
42392         * m4/regex.m4: Don't look for those functions here.
42393         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
42394
42395 2008-12-22  Bruno Haible  <bruno@clisp.org>
42396
42397         * modules/fnmatch (Depends-on): Remove duplicated dependency.
42398
42399 2008-12-21  Bruno Haible  <bruno@clisp.org>
42400
42401         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
42402         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
42403         (Include): Remove conditionalization.
42404         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
42405         (Include): Remove conditionalization.
42406         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
42407         (Include): Remove conditionalization.
42408         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
42409         * m4/mbfile.m4 (gl_MBFILE): Likewise.
42410         * NEWS: Mention the change.
42411         Reported by Alan Hourihane <alanh@fairlite.co.uk>
42412         via Sergey Poznyakoff <gray@gnu.org.ua>.
42413
42414 2008-12-21  Bruno Haible  <bruno@clisp.org>
42415
42416         * MODULES.html.sh (Extended multibyte and wide character utilities
42417         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
42418         wcrtomb, wcsrtombs.
42419         (Support for systems lacking POSIX:2008): Add accept, bind, close,
42420         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
42421         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
42422         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
42423
42424 2008-12-21  Bruno Haible  <bruno@clisp.org>
42425
42426         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
42427
42428 2008-12-21  Bruno Haible  <bruno@clisp.org>
42429
42430         * modules/wcsnrtombs-tests: New file.
42431         * tests/test-wcsnrtombs1.sh: New file.
42432         * tests/test-wcsnrtombs2.sh: New file.
42433         * tests/test-wcsnrtombs3.sh: New file.
42434         * tests/test-wcsnrtombs4.sh: New file.
42435         * tests/test-wcsnrtombs.c: New file.
42436
42437         New module 'wcsnrtombs'.
42438         * lib/wchar.in.h (wcsnrtombs): New declaration.
42439         * lib/wcsnrtombs.c: New file.
42440         * lib/wcsrtombs-state.c: New file.
42441         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
42442         (internal_state): Remove variable.
42443         * m4/wcsnrtombs.m4: New file.
42444         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
42445         compilation units.
42446         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
42447         HAVE_WCSNRTOMBS.
42448         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
42449         HAVE_WCSNRTOMBS.
42450         * modules/wcsnrtombs: New file.
42451         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
42452         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42453
42454 2008-12-21  Bruno Haible  <bruno@clisp.org>
42455
42456         * modules/wcsrtombs-tests: New file.
42457         * tests/test-wcsrtombs1.sh: New file.
42458         * tests/test-wcsrtombs2.sh: New file.
42459         * tests/test-wcsrtombs3.sh: New file.
42460         * tests/test-wcsrtombs4.sh: New file.
42461         * tests/test-wcsrtombs.c: New file.
42462
42463         New module 'wcsrtombs'.
42464         * lib/wchar.in.h (wcsrtombs): New declaration.
42465         * lib/wcsrtombs.c: New file.
42466         * m4/wcsrtombs.m4: New file.
42467         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42468         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42469         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42470         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42471         * modules/wcsrtombs: New file.
42472         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42473         bugs.
42474
42475 2008-12-21  Bruno Haible  <bruno@clisp.org>
42476
42477         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42478         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42479         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42480         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42481         if not correct.
42482         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42483         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
42484         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42485         m4/locale-zh.m4, m4/codeset.m4.
42486         * doc/posix-functions/wcrtomb.texi: Document the bug.
42487
42488 2008-12-21  Bruno Haible  <bruno@clisp.org>
42489
42490         Work around a btowc() bug on IRIX 6.5.
42491         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
42492         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
42493         REPLACE_WTOBC if not.
42494         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
42495         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
42496         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
42497
42498 2008-12-21  Bruno Haible  <bruno@clisp.org>
42499
42500         * modules/wcrtomb-tests: New file.
42501         * tests/test-wcrtomb.sh: New file.
42502         * tests/test-wcrtomb.c: New file.
42503
42504         New module 'wcrtomb'.
42505         * lib/wchar.in.h (wcrtomb): New declaration.
42506         * lib/wcrtomb.c: New file.
42507         * m4/wcrtomb.m4: New file.
42508         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
42509         HAVE_WCRTOMB.
42510         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
42511         HAVE_WCRTOMB.
42512         * modules/wcrtomb: New file.
42513         * doc/posix-functions/wcrtomb.texi: Mention the new module.
42514
42515 2008-12-21  Bruno Haible  <bruno@clisp.org>
42516
42517         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
42518         * modules/mbsrtowcs (Files): Likewise.
42519         * modules/wctob (Files): Likewise.
42520         * modules/c-strcase-tests (Files): Likewise.
42521         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42522         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42523         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42524         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42525         * modules/vasnprintf-posix-tests (Files): Likewise.
42526
42527 2008-12-21  William Pursell  <bill.pursell@gmail.com>
42528
42529         gitlog-to-changelog: pass all command-line arguments to git-log
42530         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
42531         it is sometimes convenient to filter the commits in various ways.
42532         gitlog-to-changelog only allows --since to specify a start date,
42533         but git-log itself supports many other filtering mechanisms.
42534         At the moment, I want to filter by branch name.  Rather than
42535         adding a --branch option to gitlog-to-changelog, it seems more
42536         flexible to simply pass all options directly to git-log and let
42537         git do the work.  Notice that this effectively makes --since a
42538         redundant option for gitlog-to-changelog, but removing it would
42539         require current usage to change since calls would then require
42540         an additional '--'.
42541
42542 2008-12-21  Bruno Haible  <bruno@clisp.org>
42543
42544         * modules/mbsnrtowcs-tests: New file.
42545         * tests/test-mbsnrtowcs1.sh: New file.
42546         * tests/test-mbsnrtowcs2.sh: New file.
42547         * tests/test-mbsnrtowcs3.sh: New file.
42548         * tests/test-mbsnrtowcs4.sh: New file.
42549         * tests/test-mbsnrtowcs.c: New file.
42550
42551         New module 'mbsnrtowcs'.
42552         * lib/wchar.in.h (mbsnrtowcs): New declaration.
42553         * lib/mbsnrtowcs.c: New file.
42554         * lib/mbsrtowcs-state.c: New file.
42555         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
42556         (internal_state): Remove variable.
42557         * m4/mbsnrtowcs.m4: New file.
42558         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
42559         compilation units.
42560         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
42561         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42562         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
42563         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42564         * modules/mbsnrtowcs: New file.
42565         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
42566         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
42567         portability problem.
42568
42569 2008-12-21  Bruno Haible  <bruno@clisp.org>
42570
42571         Work around mbsrtowcs bug.
42572         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
42573         (gl_FUNC_MBSRTOWCS): Invoke it.
42574         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42575         m4/locale-zh.m4.
42576         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
42577
42578 2008-12-21  Bruno Haible  <bruno@clisp.org>
42579
42580         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
42581
42582 2008-12-21  Bruno Haible  <bruno@clisp.org>
42583
42584         Update doc for AIX.
42585         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
42586         16-bit wchar_t type.
42587         * doc/posix-functions/btowc.texi: Likewise.
42588         * doc/posix-functions/fgetwc.texi: Likewise.
42589         * doc/posix-functions/fgetws.texi: Likewise.
42590         * doc/posix-functions/fputwc.texi: Likewise.
42591         * doc/posix-functions/fputws.texi: Likewise.
42592         * doc/posix-functions/fwide.texi: Likewise.
42593         * doc/posix-functions/fwprintf.texi: Likewise.
42594         * doc/posix-functions/fwscanf.texi: Likewise.
42595         * doc/posix-functions/getwchar.texi: Likewise.
42596         * doc/posix-functions/getwc.texi: Likewise.
42597         * doc/posix-functions/iswalnum.texi: Likewise.
42598         * doc/posix-functions/iswalpha.texi: Likewise.
42599         * doc/posix-functions/iswblank.texi: Likewise.
42600         * doc/posix-functions/iswcntrl.texi: Likewise.
42601         * doc/posix-functions/iswctype.texi: Likewise.
42602         * doc/posix-functions/iswdigit.texi: Likewise.
42603         * doc/posix-functions/iswgraph.texi: Likewise.
42604         * doc/posix-functions/iswlower.texi: Likewise.
42605         * doc/posix-functions/iswprint.texi: Likewise.
42606         * doc/posix-functions/iswpunct.texi: Likewise.
42607         * doc/posix-functions/iswspace.texi: Likewise.
42608         * doc/posix-functions/iswupper.texi: Likewise.
42609         * doc/posix-functions/iswxdigit.texi: Likewise.
42610         * doc/posix-functions/mbrtowc.texi: Likewise.
42611         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42612         * doc/posix-functions/mbstowcs.texi: Likewise.
42613         * doc/posix-functions/mbtowc.texi: Likewise.
42614         * doc/posix-functions/putwchar.texi: Likewise.
42615         * doc/posix-functions/putwc.texi: Likewise.
42616         * doc/posix-functions/swprintf.texi: Likewise.
42617         * doc/posix-functions/tolower.texi: Likewise.
42618         * doc/posix-functions/toupper.texi: Likewise.
42619         * doc/posix-functions/towctrans.texi: Likewise.
42620         * doc/posix-functions/ungetwc.texi: Likewise.
42621         * doc/posix-functions/vswprintf.texi: Likewise.
42622         * doc/posix-functions/wcrtomb.texi: Likewise.
42623         * doc/posix-functions/wcscat.texi: Likewise.
42624         * doc/posix-functions/wcschr.texi: Likewise.
42625         * doc/posix-functions/wcscmp.texi: Likewise.
42626         * doc/posix-functions/wcscoll.texi: Likewise.
42627         * doc/posix-functions/wcscpy.texi: Likewise.
42628         * doc/posix-functions/wcscspn.texi: Likewise.
42629         * doc/posix-functions/wcsftime.texi: Likewise.
42630         * doc/posix-functions/wcslen.texi: Likewise.
42631         * doc/posix-functions/wcsncat.texi: Likewise.
42632         * doc/posix-functions/wcsncmp.texi: Likewise.
42633         * doc/posix-functions/wcsncpy.texi: Likewise.
42634         * doc/posix-functions/wcspbrk.texi: Likewise.
42635         * doc/posix-functions/wcsrchr.texi: Likewise.
42636         * doc/posix-functions/wcsrtombs.texi: Likewise.
42637         * doc/posix-functions/wcsspn.texi: Likewise.
42638         * doc/posix-functions/wcsstr.texi: Likewise.
42639         * doc/posix-functions/wcstod.texi: Likewise.
42640         * doc/posix-functions/wcstof.texi: Likewise.
42641         * doc/posix-functions/wcstoimax.texi: Likewise.
42642         * doc/posix-functions/wcstok.texi: Likewise.
42643         * doc/posix-functions/wcstold.texi: Likewise.
42644         * doc/posix-functions/wcstoll.texi: Likewise.
42645         * doc/posix-functions/wcstol.texi: Likewise.
42646         * doc/posix-functions/wcstombs.texi: Likewise.
42647         * doc/posix-functions/wcstoull.texi: Likewise.
42648         * doc/posix-functions/wcstoul.texi: Likewise.
42649         * doc/posix-functions/wcstoumax.texi: Likewise.
42650         * doc/posix-functions/wcswidth.texi: Likewise.
42651         * doc/posix-functions/wcsxfrm.texi: Likewise.
42652         * doc/posix-functions/wctob.texi: Likewise.
42653         * doc/posix-functions/wctomb.texi: Likewise.
42654         * doc/posix-functions/wctrans.texi: Likewise.
42655         * doc/posix-functions/wctype.texi: Likewise.
42656         * doc/posix-functions/wcwidth.texi: Likewise.
42657         * doc/posix-functions/wmemchr.texi: Likewise.
42658         * doc/posix-functions/wmemcmp.texi: Likewise.
42659         * doc/posix-functions/wmemcpy.texi: Likewise.
42660         * doc/posix-functions/wmemmove.texi: Likewise.
42661         * doc/posix-functions/wmemset.texi: Likewise.
42662         * doc/posix-functions/wprintf.texi: Likewise.
42663         * doc/posix-functions/wscanf.texi: Likewise.
42664
42665 2008-12-21  Bruno Haible  <bruno@clisp.org>
42666
42667         Update doc for HP-UX 11.11.
42668         * doc/posix-functions/btowc.texi: Clarify that the function is missing
42669         in HP-UX version 11.00, not in all versions of HP-UX 11.
42670         * doc/posix-functions/fwide.texi: Likewise.
42671         * doc/posix-functions/fwprintf.texi: Likewise.
42672         * doc/posix-functions/fwscanf.texi: Likewise.
42673         * doc/posix-functions/inet_ntop.texi: Likewise.
42674         * doc/posix-functions/inet_pton.texi: Likewise.
42675         * doc/posix-functions/mbrlen.texi: Likewise.
42676         * doc/posix-functions/mbrtowc.texi: Likewise.
42677         * doc/posix-functions/mbsinit.texi: Likewise.
42678         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42679         * doc/posix-functions/swprintf.texi: Likewise.
42680         * doc/posix-functions/swscanf.texi: Likewise.
42681         * doc/posix-functions/towctrans.texi: Likewise.
42682         * doc/posix-functions/vfwprintf.texi: Likewise.
42683         * doc/posix-functions/vswprintf.texi: Likewise.
42684         * doc/posix-functions/vwprintf.texi: Likewise.
42685         * doc/posix-functions/wcrtomb.texi: Likewise.
42686         * doc/posix-functions/wcsrtombs.texi: Likewise.
42687         * doc/posix-functions/wcsstr.texi: Likewise.
42688         * doc/posix-functions/wctob.texi: Likewise.
42689         * doc/posix-functions/wctrans.texi: Likewise.
42690         * doc/posix-functions/wmemchr.texi: Likewise.
42691         * doc/posix-functions/wmemcmp.texi: Likewise.
42692         * doc/posix-functions/wmemcpy.texi: Likewise.
42693         * doc/posix-functions/wmemmove.texi: Likewise.
42694         * doc/posix-functions/wmemset.texi: Likewise.
42695         * doc/posix-functions/wprintf.texi: Likewise.
42696         * doc/posix-functions/wscanf.texi: Likewise.
42697
42698 2008-12-21  Bruno Haible  <bruno@clisp.org>
42699
42700         Work around a portability problem.
42701         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
42702         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
42703
42704 2008-12-20  Bruno Haible  <bruno@clisp.org>
42705
42706         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
42707         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
42708         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
42709         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
42710         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
42711
42712         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
42713         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
42714         set.
42715         (GNULIB_defined_mbstate_t): New macro.
42716         (mbsinit): Redefine if REPLACE_MBSINIT is set.
42717         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
42718         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
42719         reuses the system's mbrtowc function but works around the bugs.
42720         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
42721         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
42722         macros.
42723         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
42724         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
42725         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
42726         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
42727         REPLACE_MBSINIT if mbsinit needs to be overridden.
42728         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
42729         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42730         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
42731         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42732         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42733         m4/locale-zh.m4.
42734         (Depends): Add mbsinit.
42735         * modules/mbsinit (Depends): Add mbrtowc.
42736         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
42737
42738 2008-12-20  Bruno Haible  <bruno@clisp.org>
42739
42740         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
42741         so that there are no conversion errors on AIX.
42742         * tests/test-mbsrtowcs.c (main): LIkewise.
42743
42744 2008-12-20  Bruno Haible  <bruno@clisp.org>
42745
42746         Work around wctob bug on Solaris <= 9.
42747         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
42748         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
42749         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
42750         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
42751         * modules/wctob (Files): Add m4/locale-fr.m4.
42752         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
42753
42754 2008-12-20  Bruno Haible  <bruno@clisp.org>
42755
42756         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
42757         /dev/null.
42758         * tests/test-select-in.sh: Likewise.
42759         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42760
42761 2008-12-20  Bruno Haible  <bruno@clisp.org>
42762
42763         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
42764         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
42765         Cygwin 1.5.x.
42766
42767 2008-12-20  Bruno Haible  <bruno@clisp.org>
42768
42769         Ensure mbstate_t is defined on HP-UX 11.11.
42770         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
42771         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
42772         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
42773         AC_USE_SYSTEM_EXTENSIONS.
42774         * modules/fnmatch (Depends-on): Add extensions.
42775         * modules/mbrlen (Depends-on): Likewise.
42776         * modules/mbrtowc (Depends-on): Likewise.
42777         * modules/mbsinit (Depends-on): Likewise.
42778         * modules/mbsrtowcs (Depends-on): Likewise.
42779         * modules/mbswidth (Depends-on): Likewise.
42780         * modules/quotearg (Depends-on): Likewise.
42781         * modules/strftime (Depends-on): Likewise.
42782
42783 2008-12-20  Bruno Haible  <bruno@clisp.org>
42784
42785         Ensure wctob is declared on IRIX 6.5.
42786         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
42787         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
42788         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
42789         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
42790         of HAVE_WCTOB.
42791         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
42792         HAVE_WCTOB.
42793         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
42794
42795 2008-12-19  Bruno Haible  <bruno@clisp.org>
42796
42797         * modules/mbsrtowcs-tests: New file.
42798         * tests/test-mbsrtowcs1.sh: New file.
42799         * tests/test-mbsrtowcs2.sh: New file.
42800         * tests/test-mbsrtowcs3.sh: New file.
42801         * tests/test-mbsrtowcs4.sh: New file.
42802         * tests/test-mbsrtowcs.c: New file.
42803
42804         New module 'mbsrtowcs'.
42805         * lib/wchar.in.h (mbsrtowcs): New declaration.
42806         * lib/mbsrtowcs.c: New file.
42807         * m4/mbsrtowcs.m4: New file.
42808         * modules/mbsrtowcs: New file.
42809         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
42810         HAVE_MBSRTOWCS.
42811         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
42812         HAVE_MBSRTOWCS.
42813         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
42814
42815 2008-12-19  Bruno Haible  <bruno@clisp.org>
42816
42817         New module 'mbrlen'.
42818         * lib/wchar.in.h (mbrlen): New declaration.
42819         * lib/mbrlen.c: New file.
42820         * m4/mbrlen.m4: New file.
42821         * modules/mbrlen: New file.
42822         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
42823         HAVE_MBRLEN.
42824         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
42825         HAVE_MBRLEN.
42826         * doc/posix-functions/mbrlen.texi: Document the new module.
42827
42828 2008-12-19  Bruno Haible  <bruno@clisp.org>
42829
42830         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
42831         * modules/mbrtowc (Depends-on): Add verify.
42832         Suggested by Paul Eggert.
42833
42834 2008-12-18  Bruno Haible  <bruno@clisp.org>
42835
42836         * modules/mbsinit-tests: New file.
42837         * tests/test-mbsinit.sh: New file.
42838         * tests/test-mbsinit.c: New file.
42839
42840 2008-12-18  Bruno Haible  <bruno@clisp.org>
42841
42842         * modules/mbrtowc-tests: New file.
42843         * tests/test-mbrtowc1.sh: New file.
42844         * tests/test-mbrtowc2.sh: New file.
42845         * tests/test-mbrtowc3.sh: New file.
42846         * tests/test-mbrtowc4.sh: New file.
42847         * tests/test-mbrtowc.c: New file.
42848
42849         New module 'mbrtowc'.
42850         * lib/wchar.in.h (mbstate_t): Override when the system does not have
42851         mbsinit and mbrtowc.
42852         (mbrtowc): New declaration.
42853         * lib/mbrtowc.c: New file.
42854         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
42855         * modules/mbrtowc: New file.
42856         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
42857         HAVE_MBRTOWC.
42858         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
42859         HAVE_MBRTOWC.
42860         * doc/posix-functions/mbrtowc.texi: Document the new module.
42861
42862 2008-12-18  Bruno Haible  <bruno@clisp.org>
42863
42864         New module 'wctob'.
42865         * lib/wchar.in.h (wctob): New declaration.
42866         * lib/wctob.c: New file.
42867         * m4/wctob.m4: New file.
42868         * modules/wctob: New file.
42869         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
42870         HAVE_WCTOB.
42871         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
42872         * doc/posix-functions/wctob.texi: Document the new module.
42873
42874 2008-12-18  Bruno Haible  <bruno@clisp.org>
42875
42876         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
42877         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
42878
42879 2008-12-18  Simon Josefsson  <simon@josefsson.org>
42880
42881         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
42882         G. Christensen" <tgc@jupiterrise.com>.
42883
42884         * lib/flock.c: Need to include errno.h.  Reported by "Tom
42885         G. Christensen" <tgc@jupiterrise.com>.
42886
42887         * lib/flock.c: Need to include string.h.  Reported by "Tom
42888         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
42889         <ebb9@byu.net>.
42890
42891 2008-12-18  Bruno Haible  <bruno@clisp.org>
42892
42893         * m4/locale-ja.m4: New file, from GNU gettext.
42894
42895 2008-12-17  Bruno Haible  <bruno@clisp.org>
42896
42897         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
42898         Suggested by Eric Blake.
42899
42900 2008-12-17  Bruno Haible  <bruno@clisp.org>
42901
42902         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
42903
42904 2008-12-17  Bruno Haible  <bruno@clisp.org>
42905
42906         * lib/mbsinit.c: Include verify.h. Verify an assumption.
42907         * modules/mbsinit (Depends-on): Add verify.
42908         Suggested by Paul Eggert.
42909
42910 2008-12-17  Bruno Haible  <bruno@clisp.org>
42911
42912         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
42913         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
42914         gl_FUNC_MBRTOWC.
42915         * m4/mbiter.m4 (gl_MBITER): LIkewise.
42916         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
42917         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
42918         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
42919         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
42920         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
42921         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
42922         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
42923         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
42924         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
42925         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
42926         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
42927         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
42928         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
42929         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
42930         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42931         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
42932         * modules/trim (configure.ac): Likewise.
42933
42934 2008-12-17  Bruno Haible  <bruno@clisp.org>
42935
42936         * modules/btowc-tests: New file.
42937         * tests/test-btowc1.sh: New file.
42938         * tests/test-btowc2.sh: New file.
42939         * tests/test-btowc.c: New file.
42940
42941         New module 'btowc'.
42942         * lib/wchar.in.h (btowc): New declaration.
42943         * lib/btowc.c: New file.
42944         * m4/btowc.m4: New file.
42945         * modules/btowc: New file.
42946         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
42947         HAVE_BTOWC.
42948         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
42949         * doc/posix-functions/btowc.texi: Document the new module.
42950
42951 2008-12-17  Bruno Haible  <bruno@clisp.org>
42952
42953         New module 'mbsinit'.
42954         * lib/wchar.in.h (mbsinit): New declaration.
42955         * lib/mbsinit.c: New file.
42956         * m4/mbsinit.m4: New file.
42957         * modules/mbsinit: New file.
42958         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
42959         HAVE_MBSINIT.
42960         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
42961         HAVE_MBSINIT.
42962         * doc/posix-functions/mbsinit.texi: Document the new module.
42963
42964 2008-12-16  Bruno Haible  <bruno@clisp.org>
42965
42966         * lib/unistd.in.h: Add comment.
42967         * tests/test-environ.c: Don't include <stdlib.h>.
42968
42969 2008-12-16  Bruno Haible  <bruno@clisp.org>
42970
42971         * lib/parse-duration.h (parse_duration): Document return value
42972         convention.
42973         * lib/parse-duration.c: Include specification header first. Add
42974         comments.
42975         (_): Remove macro.
42976         (parse_year_month_day, parse_hour_minute_second): Move side effects
42977         outside of strchr call.
42978         (parse_non_iso8601): Move side effects outside of isspace call.
42979         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
42980         call.
42981
42982 2008-12-16  Bruno Haible  <bruno@clisp.org>
42983
42984         * tests/test-parse-duration.sh: Produce no output when the test
42985         succeeds.
42986
42987 2008-12-16  Bruno Haible  <bruno@clisp.org>
42988
42989         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
42990         expressions.
42991
42992 2008-12-15  Bruno Haible  <bruno@clisp.org>
42993
42994         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
42995         * doc/glibc-functions/flistxattr.texi: Likewise.
42996         * doc/glibc-functions/fopencookie.texi: Likewise.
42997         * doc/glibc-functions/fremovexattr.texi: Likewise.
42998         * doc/glibc-functions/fsetxattr.texi: Likewise.
42999         * doc/glibc-functions/getxattr.texi: Likewise.
43000         * doc/glibc-functions/lgetxattr.texi: Likewise.
43001         * doc/glibc-functions/listxattr.texi: Likewise.
43002         * doc/glibc-functions/llistxattr.texi: Likewise.
43003         * doc/glibc-functions/lremovexattr.texi: Likewise.
43004         * doc/glibc-functions/lsetxattr.texi: Likewise.
43005         * doc/glibc-functions/removexattr.texi: Likewise.
43006         * doc/glibc-functions/setxattr.texi: Likewise.
43007         * doc/posix-functions/open_memstream.texi: Likewise.
43008
43009 2008-12-15  Eric Blake  <ebb9@byu.net>
43010
43011         Update doc for cygwin 1.7.
43012         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43013         functions.
43014         * doc/posix-functions/fchmodat.texi: Likewise.
43015         * doc/posix-functions/fchownat.texi: Likewise.
43016         * doc/posix-functions/fdopendir.texi: Likewise.
43017         * doc/posix-functions/fmemopen.texi: Likewise.
43018         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43019         * doc/posix-functions/fstatat.texi: Likewise.
43020         * doc/posix-functions/futimens.texi: Likewise.
43021         * doc/posix-functions/gai_strerror.texi: Likewise.
43022         * doc/posix-functions/getaddrinfo.texi: Likewise.
43023         * doc/posix-functions/getnameinfo.texi: Likewise.
43024         * doc/posix-functions/if_freenameindex.texi: Likewise.
43025         * doc/posix-functions/if_indextoname.texi: Likewise.
43026         * doc/posix-functions/if_nameindex.texi: Likewise.
43027         * doc/posix-functions/if_nametoindex.texi: Likewise.
43028         * doc/posix-functions/insque.texi: Likewise.
43029         * doc/posix-functions/linkat.texi: Likewise.
43030         * doc/posix-functions/llrint.texi: Likewise.
43031         * doc/posix-functions/llrintf.texi: Likewise.
43032         * doc/posix-functions/llrintl.texi: Likewise.
43033         * doc/posix-functions/lockf.texi: Likewise.
43034         * doc/posix-functions/lrintl.texi: Likewise.
43035         * doc/posix-functions/mkdirat.texi: Likewise.
43036         * doc/posix-functions/mkfifoat.texi: Likewise.
43037         * doc/posix-functions/mknodat.texi: Likewise.
43038         * doc/posix-functions/mq_close.texi: Likewise.
43039         * doc/posix-functions/mq_getattr.texi: Likewise.
43040         * doc/posix-functions/mq_notify.texi: Likewise.
43041         * doc/posix-functions/mq_open.texi: Likewise.
43042         * doc/posix-functions/mq_receive.texi: Likewise.
43043         * doc/posix-functions/mq_send.texi: Likewise.
43044         * doc/posix-functions/mq_setattr.texi: Likewise.
43045         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43046         * doc/posix-functions/mq_timedsend.texi: Likewise.
43047         * doc/posix-functions/mq_unlink.texi: Likewise.
43048         * doc/posix-functions/open_memstream.texi: Likewise.
43049         * doc/posix-functions/openat.texi: Likewise.
43050         * doc/posix-functions/posix_fadvise.texi: Likewise.
43051         * doc/posix-functions/posix_fallocate.texi: Likewise.
43052         * doc/posix-functions/posix_madvise.texi: Likewise.
43053         * doc/posix-functions/posix_memalign.texi: Likewise.
43054         * doc/posix-functions/posix_openpt.texi: Likewise.
43055         * doc/posix-functions/readlinkat.texi: Likewise.
43056         * doc/posix-functions/remque.texi: Likewise.
43057         * doc/posix-functions/renameat.texi: Likewise.
43058         * doc/posix-functions/rintl.texi: Likewise.
43059         * doc/posix-functions/sem_unlink.texi: Likewise.
43060         * doc/posix-functions/shm_open.texi: Likewise.
43061         * doc/posix-functions/shm_unlink.texi: Likewise.
43062         * doc/posix-functions/signgam.texi: Likewise.
43063         * doc/posix-functions/sigset.texi: Likewise.
43064         * doc/posix-functions/stpcpy.texi: Likewise.
43065         * doc/posix-functions/stpncpy.texi: Likewise.
43066         * doc/posix-functions/strerror.texi: Likewise.
43067         * doc/posix-functions/strtod.texi: Likewise.
43068         * doc/posix-functions/symlinkat.texi: Likewise.
43069         * doc/posix-functions/unlinkat.texi: Likewise.
43070         * doc/posix-functions/utimensat.texi: Likewise.
43071         * doc/glibc-functions/bindresvport.texi: Likewise.
43072         * doc/glibc-functions/dn_expand.texi: Likewise.
43073         * doc/glibc-functions/exp10.texi: Likewise.
43074         * doc/glibc-functions/exp10f.texi: Likewise.
43075         * doc/glibc-functions/fgetxattr.texi: Likewise.
43076         * doc/glibc-functions/flistxattr.texi: Likewise.
43077         * doc/glibc-functions/fopencookie.texi: Likewise.
43078         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43079         * doc/glibc-functions/fremovexattr.texi: Likewise.
43080         * doc/glibc-functions/fsetxattr.texi: Likewise.
43081         * doc/glibc-functions/getifaddrs.texi: Likewise.
43082         * doc/glibc-functions/getxattr.texi: Likewise.
43083         * doc/glibc-functions/lgetxattr.texi: Likewise.
43084         * doc/glibc-functions/listxattr.texi: Likewise.
43085         * doc/glibc-functions/llistxattr.texi: Likewise.
43086         * doc/glibc-functions/lremovexattr.texi: Likewise.
43087         * doc/glibc-functions/lsetxattr.texi: Likewise.
43088         * doc/glibc-functions/pow10.texi: Likewise.
43089         * doc/glibc-functions/pow10f.texi: Likewise.
43090         * doc/glibc-functions/rcmd_af.texi: Likewise.
43091         * doc/glibc-functions/removexattr.texi: Likewise.
43092         * doc/glibc-functions/res_init.texi: Likewise.
43093         * doc/glibc-functions/res_mkquery.texi: Likewise.
43094         * doc/glibc-functions/res_query.texi: Likewise.
43095         * doc/glibc-functions/res_querydomain.texi: Likewise.
43096         * doc/glibc-functions/res_send.texi: Likewise.
43097         * doc/glibc-functions/rresvport_af.texi: Likewise.
43098         * doc/glibc-functions/setxattr.texi: Likewise.
43099         * doc/glibc-functions/strcasestr.texi: Likewise.
43100
43101 2008-12-15  Bruno Haible  <bruno@clisp.org>
43102
43103         Fix compilation error on OSF/1 4.0.
43104         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43105         <sys/time.h>, simply delegate to the system header.
43106         Reported by Daniel Richard G. <oss@teragram.com>.
43107
43108 2008-12-15  Bruno Haible  <bruno@clisp.org>
43109
43110         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43111         * doc/posix-functions/fchmodat.texi: Likewise.
43112         * doc/posix-functions/fchownat.texi: Likewise.
43113         * doc/posix-functions/fdopendir.texi: Likewise.
43114         * doc/posix-functions/fstatat.texi: Likewise.
43115         * doc/posix-functions/mkdirat.texi: Likewise.
43116         * doc/posix-functions/unlinkat.texi: Likewise.
43117
43118 2008-12-14  Bruno Haible  <bruno@clisp.org>
43119
43120         Update doc for POSIX:2008.
43121         * doc/posix-functions/faccessat.texi: New file.
43122         * doc/posix-functions/fchmodat.texi: New file.
43123         * doc/posix-functions/fchownat.texi: New file.
43124         * doc/posix-functions/fdopendir.texi: New file.
43125         * doc/posix-functions/fstatat.texi: New file.
43126         * doc/posix-functions/futimens.texi: New file.
43127         * doc/posix-functions/linkat.texi: New file.
43128         * doc/posix-functions/mkdirat.texi: New file.
43129         * doc/posix-functions/mkfifoat.texi: New file.
43130         * doc/posix-functions/mknodat.texi: New file.
43131         * doc/posix-functions/open_wmemstream.texi: New file.
43132         * doc/posix-functions/openat.texi: New file.
43133         * doc/posix-functions/psiginfo.texi: New file.
43134         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43135         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43136         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43137         * doc/posix-functions/readlinkat.texi: New file.
43138         * doc/posix-functions/renameat.texi: New file.
43139         * doc/posix-functions/strerror_l.texi: New file.
43140         * doc/posix-functions/symlinkat.texi: New file.
43141         * doc/posix-functions/unlinkat.texi: New file.
43142         * doc/posix-functions/utimensat.texi: New file.
43143         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43144
43145 2008-12-14  Bruno Haible  <bruno@clisp.org>
43146
43147         Update doc for POSIX:2008.
43148         * doc/posix-functions/alphasort.texi: Renamed from
43149         doc/glibc-functions/alphasort.texi.
43150         * doc/posix-functions/dirfd.texi: Renamed from
43151         doc/glibc-functions/dirfd.texi.
43152         * doc/posix-functions/dprintf.texi: Renamed from
43153         doc/glibc-functions/dprintf.texi.
43154         * doc/posix-functions/duplocale.texi: Renamed from
43155         doc/glibc-functions/duplocale.texi.
43156         * doc/posix-functions/fexecve.texi: Renamed from
43157         doc/glibc-functions/fexecve.texi.
43158         * doc/posix-functions/fmemopen.texi: Renamed from
43159         doc/glibc-functions/fmemopen.texi.
43160         * doc/posix-functions/freelocale.texi: Renamed from
43161         doc/glibc-functions/freelocale.texi.
43162         * doc/posix-functions/getdate_err.texi: Renamed from
43163         doc/glibc-functions/getdate_err.texi.
43164         * doc/posix-functions/isalnum_l.texi: Renamed from
43165         doc/glibc-functions/isalnum_l.texi.
43166         * doc/posix-functions/isalpha_l.texi: Renamed from
43167         doc/glibc-functions/isalpha_l.texi.
43168         * doc/posix-functions/isblank_l.texi: Renamed from
43169         doc/glibc-functions/isblank_l.texi.
43170         * doc/posix-functions/iscntrl_l.texi: Renamed from
43171         doc/glibc-functions/iscntrl_l.texi.
43172         * doc/posix-functions/isdigit_l.texi: Renamed from
43173         doc/glibc-functions/isdigit_l.texi.
43174         * doc/posix-functions/isgraph_l.texi: Renamed from
43175         doc/glibc-functions/isgraph_l.texi.
43176         * doc/posix-functions/islower_l.texi: Renamed from
43177         doc/glibc-functions/islower_l.texi.
43178         * doc/posix-functions/isprint_l.texi: Renamed from
43179         doc/glibc-functions/isprint_l.texi.
43180         * doc/posix-functions/ispunct_l.texi: Renamed from
43181         doc/glibc-functions/ispunct_l.texi.
43182         * doc/posix-functions/isspace_l.texi: Renamed from
43183         doc/glibc-functions/isspace_l.texi.
43184         * doc/posix-functions/isupper_l.texi: Renamed from
43185         doc/glibc-functions/isupper_l.texi.
43186         * doc/posix-functions/iswalnum_l.texi: Renamed from
43187         doc/glibc-functions/iswalnum_l.texi.
43188         * doc/posix-functions/iswalpha_l.texi: Renamed from
43189         doc/glibc-functions/iswalpha_l.texi.
43190         * doc/posix-functions/iswblank_l.texi: Renamed from
43191         doc/glibc-functions/iswblank_l.texi.
43192         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43193         doc/glibc-functions/iswcntrl_l.texi.
43194         * doc/posix-functions/iswctype_l.texi: Renamed from
43195         doc/glibc-functions/iswctype_l.texi.
43196         * doc/posix-functions/iswdigit_l.texi: Renamed from
43197         doc/glibc-functions/iswdigit_l.texi.
43198         * doc/posix-functions/iswgraph_l.texi: Renamed from
43199         doc/glibc-functions/iswgraph_l.texi.
43200         * doc/posix-functions/iswlower_l.texi: Renamed from
43201         doc/glibc-functions/iswlower_l.texi.
43202         * doc/posix-functions/iswprint_l.texi: Renamed from
43203         doc/glibc-functions/iswprint_l.texi.
43204         * doc/posix-functions/iswpunct_l.texi: Renamed from
43205         doc/glibc-functions/iswpunct_l.texi.
43206         * doc/posix-functions/iswspace_l.texi: Renamed from
43207         doc/glibc-functions/iswspace_l.texi.
43208         * doc/posix-functions/iswupper_l.texi: Renamed from
43209         doc/glibc-functions/iswupper_l.texi.
43210         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43211         doc/glibc-functions/iswxdigit_l.texi.
43212         * doc/posix-functions/isxdigit_l.texi: Renamed from
43213         doc/glibc-functions/isxdigit_l.texi.
43214         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43215         doc/glibc-functions/mbsnrtowcs.texi.
43216         * doc/posix-functions/mkdtemp.texi: Renamed from
43217         doc/glibc-functions/mkdtemp.texi.
43218         * doc/posix-functions/newlocale.texi: Renamed from
43219         doc/glibc-functions/newlocale.texi.
43220         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43221         doc/glibc-functions/nl_langinfo_l.texi.
43222         * doc/posix-functions/open_memstream.texi: Renamed from
43223         doc/glibc-functions/open_memstream.texi.
43224         * doc/posix-functions/opterr.texi: Renamed from
43225         doc/glibc-functions/opterr.texi.
43226         * doc/posix-functions/optind.texi: Renamed from
43227         doc/glibc-functions/optind.texi.
43228         * doc/posix-functions/optopt.texi: Renamed from
43229         doc/glibc-functions/optopt.texi.
43230         * doc/posix-functions/psignal.texi: Renamed from
43231         doc/glibc-functions/psignal.texi.
43232         * doc/posix-functions/scandir.texi: Renamed from
43233         doc/glibc-functions/scandir.texi.
43234         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43235         doc/glibc-functions/sched_get_priority_min.texi.
43236         * doc/posix-functions/signgam.texi: Renamed from
43237         doc/glibc-functions/signgam.texi.
43238         * doc/posix-functions/stpcpy.texi: Renamed from
43239         doc/glibc-functions/stpcpy.texi.
43240         * doc/posix-functions/stpncpy.texi: Renamed from
43241         doc/glibc-functions/stpncpy.texi.
43242         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43243         doc/glibc-functions/strcasecmp_l.texi.
43244         * doc/posix-functions/strcoll_l.texi: Renamed from
43245         doc/glibc-functions/strcoll_l.texi.
43246         * doc/posix-functions/strfmon_l.texi: Renamed from
43247         doc/glibc-functions/strfmon_l.texi.
43248         * doc/posix-functions/strftime_l.texi: Renamed from
43249         doc/glibc-functions/strftime_l.texi.
43250         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43251         doc/glibc-functions/strncasecmp_l.texi.
43252         * doc/posix-functions/strndup.texi: Renamed from
43253         doc/glibc-functions/strndup.texi.
43254         * doc/posix-functions/strnlen.texi: Renamed from
43255         doc/glibc-functions/strnlen.texi.
43256         * doc/posix-functions/strsignal.texi: Renamed from
43257         doc/glibc-functions/strsignal.texi.
43258         * doc/posix-functions/strxfrm_l.texi: Renamed from
43259         doc/glibc-functions/strxfrm_l.texi.
43260         * doc/posix-functions/timer_gettime.texi: Renamed from
43261         doc/glibc-functions/timer_gettime.texi.
43262         * doc/posix-functions/tolower_l.texi: Renamed from
43263         doc/glibc-functions/tolower_l.texi.
43264         * doc/posix-functions/toupper_l.texi: Renamed from
43265         doc/glibc-functions/toupper_l.texi.
43266         * doc/posix-functions/towctrans_l.texi: Renamed from
43267         doc/glibc-functions/towctrans_l.texi.
43268         * doc/posix-functions/towlower_l.texi: Renamed from
43269         doc/glibc-functions/towlower_l.texi.
43270         * doc/posix-functions/towupper_l.texi: Renamed from
43271         doc/glibc-functions/towupper_l.texi.
43272         * doc/posix-functions/uselocale.texi: Renamed from
43273         doc/glibc-functions/uselocale.texi.
43274         * doc/posix-functions/vdprintf.texi: Renamed from
43275         doc/glibc-functions/vdprintf.texi.
43276         * doc/posix-functions/wcpcpy.texi:
43277         Renamed from doc/glibc-functions/wcpcpy.texi.
43278         * doc/posix-functions/wcpncpy.texi: Renamed from
43279         doc/glibc-functions/wcpncpy.texi.
43280         * doc/posix-functions/wcscasecmp.texi: Renamed from
43281         doc/glibc-functions/wcscasecmp.texi.
43282         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43283         doc/glibc-functions/wcscasecmp_l.texi.
43284         * doc/posix-functions/wcscoll_l.texi: Renamed from
43285         doc/glibc-functions/wcscoll_l.texi.
43286         * doc/posix-functions/wcsdup.texi: Renamed from
43287         doc/glibc-functions/wcsdup.texi.
43288         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43289         doc/glibc-functions/wcsncasecmp.texi.
43290         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43291         doc/glibc-functions/wcsncasecmp_l.texi.
43292         * doc/posix-functions/wcsnlen.texi: Renamed from
43293         doc/glibc-functions/wcsnlen.texi.
43294         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43295         doc/glibc-functions/wcsnrtombs.texi.
43296         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43297         doc/glibc-functions/wcsxfrm_l.texi.
43298         * doc/posix-functions/wctrans_l.texi: Renamed from
43299         doc/glibc-functions/wctrans_l.texi.
43300         * doc/posix-functions/wctype_l.texi: Renamed from
43301         doc/glibc-functions/wctype_l.texi.
43302         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43303         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43304         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43305         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43306         these subsections.
43307         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43308         Remove sections.
43309
43310 2008-12-14  Bruno Haible  <bruno@clisp.org>
43311
43312         Update doc for POSIX:2008.
43313         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43314
43315 2008-12-14  Bruno Haible  <bruno@clisp.org>
43316
43317         Update doc for POSIX:2008.
43318         * doc/pastposix-functions/bcmp.texi: Renamed from
43319         doc/posix-functions/bcmp.texi.
43320         * doc/pastposix-functions/bcopy.texi: Renamed from
43321         doc/posix-functions/bcopy.texi.
43322         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43323         doc/posix-functions/bsd_signal.texi.
43324         * doc/pastposix-functions/bzero.texi: Renamed from
43325         doc/posix-functions/bzero.texi.
43326         * doc/pastposix-functions/ecvt.texi: Renamed from
43327         doc/posix-functions/ecvt.texi.
43328         * doc/pastposix-functions/fcvt.texi: Renamed from
43329         doc/posix-functions/fcvt.texi.
43330         * doc/pastposix-functions/ftime.texi: Renamed from
43331         doc/posix-functions/ftime.texi.
43332         * doc/pastposix-functions/gcvt.texi: Renamed from
43333         doc/posix-functions/gcvt.texi.
43334         * doc/pastposix-functions/getcontext.texi: Renamed from
43335         doc/posix-functions/getcontext.texi.
43336         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43337         doc/posix-functions/gethostbyaddr.texi.
43338         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43339         doc/posix-functions/gethostbyname.texi.
43340         * doc/pastposix-functions/getwd.texi: Renamed from
43341         doc/posix-functions/getwd.texi.
43342         * doc/pastposix-functions/h_errno.texi: Renamed from
43343         doc/posix-functions/h_errno.texi.
43344         * doc/pastposix-functions/index.texi: Renamed from
43345         doc/posix-functions/index.texi.
43346         * doc/pastposix-functions/makecontext.texi: Renamed from
43347         doc/posix-functions/makecontext.texi.
43348         * doc/pastposix-functions/mktemp.texi: Renamed from
43349         doc/posix-functions/mktemp.texi.
43350         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43351         doc/posix-functions/pthread_attr_getstackaddr.texi.
43352         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43353         doc/posix-functions/pthread_attr_setstackaddr.texi.
43354         * doc/pastposix-functions/rindex.texi: Renamed from
43355         doc/posix-functions/rindex.texi.
43356         * doc/pastposix-functions/scalb.texi: Renamed from
43357         doc/posix-functions/scalb.texi.
43358         * doc/pastposix-functions/setcontext.texi: Renamed from
43359         doc/posix-functions/setcontext.texi.
43360         * doc/pastposix-functions/swapcontext.texi: Renamed from
43361         doc/posix-functions/swapcontext.texi.
43362         * doc/pastposix-functions/ualarm.texi: Renamed from
43363         doc/posix-functions/ualarm.texi.
43364         * doc/pastposix-functions/usleep.texi: Renamed from
43365         doc/posix-functions/usleep.texi.
43366         * doc/pastposix-functions/vfork.texi: Renamed from
43367         doc/posix-functions/vfork.texi.
43368         * doc/pastposix-functions/wcswcs.texi: Renamed from
43369         doc/posix-functions/wcswcs.texi.
43370         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
43371         (Function Substitutes): Update.
43372
43373 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43374
43375         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
43376         m4/strerror.m4.
43377
43378 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43379             Bruno Haible  <bruno@clisp.org>
43380
43381         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
43382
43383 2008-12-13  Bruno Haible  <bruno@clisp.org>
43384
43385         * modules/strtoull (Depends-on): Remove unistd.
43386
43387 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43388
43389         * modules/strtoull (Depends-on): Add stdlib.
43390
43391 2008-12-11  Simon Josefsson  <simon@josefsson.org>
43392
43393         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
43394
43395 2008-12-10  Jim Meyering  <meyering@redhat.com>
43396
43397         gl_ASSERT: don't say assertions are disabled when they're not
43398         * m4/assert.m4 (gl_ASSERT): Do not make configure report
43399         "checking whether to enable assertions... no", when they are in
43400         fact enabled.  This is solely a bug in the output of configure.
43401         In spite of saying "no", NDEBUG was not defined in that case.
43402         Also, as noted by Eric Blake, leave assertions enabled upon
43403         --enable-assert=INVALID.
43404
43405 2008-12-10  Bruno Haible  <bruno@clisp.org>
43406
43407         Change MODULES.html to refer to POSIX:2008 where possible.
43408         * MODULES.html.sh (POSIX2008_URL): New variable.
43409         (posix_headers): Remove sys/timeb, ucontext.
43410         (posix2001_headers): New variable.
43411         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
43412         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
43413         index, makecontext, mktemp, pthread_attr_getstackaddr,
43414         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
43415         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
43416         (posix2001_functions): New variable.
43417         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
43418         otherwise.
43419
43420 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43421
43422         add missing include to parse-duration.c
43423         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
43424         * modules/parse-duration (Depends-on): Add xalloc.
43425
43426         fix sed script reading maint.mk
43427         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
43428         (syntax-check-rules): Use it.
43429
43430 2008-12-09  Bruno Haible  <bruno@clisp.org>
43431
43432         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
43433         MacOS X 10.4/PowerPC.
43434         Reported by Simon Josefsson.
43435
43436 2008-12-08  Jim Meyering  <meyering@redhat.com>
43437
43438         work around mingw's lack of some S_IF definitions
43439         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
43440         Reported by Simon Josefsson.
43441
43442 2008-12-08  Bruno Haible  <bruno@clisp.org>
43443
43444         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
43445         applied to variables. Needed on MacOS X 10.4/PowerPC.
43446         Reported by Simon Josefsson.
43447
43448 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
43449         and Eric Blake  <ebb9@byu.net>
43450
43451         assert: honor --enable-assert
43452         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43453         order to honor --enable-assert, rather than treating it as a
43454         synonym for --disable-assert.
43455
43456 2008-12-08  Jim Meyering  <meyering@redhat.com>
43457
43458         * lib/posixtm.c: Remove now-useless declaration of mktime.
43459
43460         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43461
43462 2008-12-07  Bruno Haible  <bruno@clisp.org>
43463
43464         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43465         test_once): Mark functions as static.
43466         * tests/test-tls.c (test_tls): Likewise.
43467
43468 2008-12-07  Bruno Haible  <bruno@clisp.org>
43469
43470         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43471         iconv_register_autodetect.
43472
43473 2008-12-07  Jim Meyering  <meyering@redhat.com>
43474
43475         posixtm.c: avoid a warning
43476         * lib/posixtm.c (posixtime): Don't initialize tm0.
43477         It's no longer needed to placate gcc4's -Wuninitialized,
43478         and the attempt to placate would elicit a new warning.
43479
43480         unicodeio.c: mark unused parameters
43481         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43482         (fallback_failure_callback): Likewise.
43483
43484 2008-12-07  Bruno Haible  <bruno@clisp.org>
43485
43486         * gnulib-tool (func_create_testdir): When building the tests
43487         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
43488         Reported by Simon Josefsson.
43489
43490 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43491
43492         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
43493
43494 2008-12-06  Bruno Haible  <bruno@clisp.org>
43495
43496         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
43497         Suggested by Eric Blake.
43498
43499 2008-12-06  Bruno Haible  <bruno@clisp.org>
43500
43501         Fix a c-stack test failure on MacOS X.
43502         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
43503         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
43504         handler for SIGBUS as well.
43505         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
43506         install a signal handler for SIGBUS as well.
43507         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
43508
43509 2008-12-06  Bruno Haible  <bruno@clisp.org>
43510
43511         Advocacy documentation.
43512         * doc/gnulib-intro.texi (Benefits): New section.
43513         * doc/gnulib.texi: Update.
43514
43515 2008-12-06  Bruno Haible  <bruno@clisp.org>
43516
43517         Document the 'manywarnings' module.
43518         * doc/manywarnings.texi: New file.
43519         * doc/gnulib.texi: Include it.
43520
43521 2008-12-05  Eric Blake  <ebb9@byu.net>
43522
43523         tests: silence some gcc warnings
43524         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43525         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43526         type mismatches.
43527
43528 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43529             Bruno Haible  <bruno@clisp.org>
43530
43531         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
43532
43533 2008-11-29  Jim Meyering  <meyering@redhat.com>
43534
43535         unicodeio.c: mark unused parameters
43536         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43537         (fallback_failure_callback): Likewise.
43538
43539         fts: fix a thinko
43540         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
43541         (set_stat_type): Return S_IF*-valued "type" directly.
43542         Prompted by James Youngman's spotting a related bug.
43543         Confirmed by further testing through find.
43544
43545         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
43546         * lib/fts.c (D_TYPE): Define.
43547         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
43548         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
43549         (s_ifmt_shift_bits): New function.
43550         (set_stat_type): New function.
43551         (fts_build): When not calling fts_stat, call set_stat_type
43552         to propagate dirent.d_type info to fts_read caller.
43553         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
43554         fts_statp->st_mode type information may be valid.
43555
43556 2008-11-28  Simon Josefsson  <simon@josefsson.org>
43557
43558         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
43559         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
43560         <sds@gnu.org>.
43561
43562 2008-11-20  Bruno Haible  <bruno@clisp.org>
43563
43564         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
43565         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
43566         INCLUDE_NEXT.
43567         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
43568         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
43569         * modules/math (Makefile.am): Substitute
43570         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
43571         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43572
43573 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
43574             Bruno Haible  <bruno@clisp.org>
43575
43576         * lib/stdint.in.h: Define all type macros so that their expansion is
43577         a single typedef'ed token. Fixes a compilation failure in Boost which
43578         does "using ::int8_t;".
43579
43580 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43581
43582         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
43583         gl_MANYWARN_ALL_GCC.
43584         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
43585         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
43586         * modules/manywarnings: New file.
43587         * MODULES.html.sh: Mention manywarnings module.
43588
43589 2008-11-18  Bruno Haible  <bruno@clisp.org>
43590
43591         * doc/gnulib-tool.texi (Unit tests): New section.
43592
43593 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43594
43595         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
43596         paths like 'lib/po/foo.po'.
43597
43598 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43599
43600         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
43601         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
43602
43603 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43604
43605         * m4/warnings.m4: Use CPPFLAGS to really check whether the
43606         parameter works.
43607
43608 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43609
43610         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
43611
43612 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43613
43614         * modules/parse-duration-tests: New file.
43615         * tests/test-parse-duration.sh: New file.
43616         * tests/test-parse-duration.c: New file.
43617
43618         New module 'parse-duration'.
43619         * lib/parse-duration.h: New file.
43620         * lib/parse-duration.c: New file.
43621         * modules/parse-duration: New file.
43622
43623 2008-11-17  Bruno Haible  <bruno@clisp.org>
43624
43625         * tests/test-select-out.sh: Comment out the first pipe test.
43626         Reported by Simon Josefsson.
43627
43628 2008-11-17  Bruno Haible  <bruno@clisp.org>
43629
43630         * modules/getaddrinfo (Depends-on): Add servent, hostent.
43631         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
43632         gl_HOSTENT.
43633
43634 2008-11-17  Bruno Haible  <bruno@clisp.org>
43635
43636         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
43637         -lnetwork and -lnet. Needed for Haiku and BeOS.
43638
43639 2008-11-16  Bruno Haible  <bruno@clisp.org>
43640
43641         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
43642
43643 2008-11-16  Bruno Haible  <bruno@clisp.org>
43644
43645         Avoid test failure on Haiku.
43646         * tests/test-fsync.c: Include <errno.h>.
43647         (main): Don't require that fsync (0) fails.
43648
43649 2008-11-15  Bruno Haible  <bruno@clisp.org>
43650
43651         New module 'hostent'.
43652         * modules/hostent: New file.
43653         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
43654
43655 2008-11-15  Bruno Haible  <bruno@clisp.org>
43656
43657         New module 'servent'.
43658         * modules/servent: New file.
43659         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
43660
43661 2008-11-15  Bruno Haible  <bruno@clisp.org>
43662
43663         Avoid generating same test program with two different rules.
43664         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
43665         test-frexp to test-frexp-nolibm.
43666         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
43667         test-frexpl to test-frexpl-nolibm.
43668
43669 2008-11-15  Bruno Haible  <bruno@clisp.org>
43670
43671         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
43672         $(FREXPL_LIBM).
43673
43674 2008-11-15  Bruno Haible  <bruno@clisp.org>
43675
43676         * lib/netdb.in.h: Activate the definitions also when the system's
43677         <netdb.h> has 'struct addrinfo'.
43678         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
43679         EAI_OVERFLOW or AI_NUMERICSERV.
43680         * doc/posix-headers/netdb.texi: Document the problem.
43681
43682 2008-11-15  Bruno Haible  <bruno@clisp.org>
43683
43684         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
43685
43686         Make the 'sched' module work on platforms where <sched.h> exists but
43687         is incomplete (such as Haiku).
43688         * lib/sched.in.h; Include the system's <sched.h> if it exists.
43689         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
43690         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
43691         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
43692         HAVE_STRUCT_SCHED_PARAM.
43693         * modules/sched (Depends-on): Add include_next.
43694         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
43695         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
43696         * doc/posix-headers/sched.texi: Document the issue.
43697
43698 2008-11-13  Jim Meyering  <meyering@redhat.com>
43699
43700         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
43701         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
43702         test would fail due to the difference in the Report bugs to ...
43703         line.  The expected address is empty, "<>", while the actual
43704         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
43705
43706 2008-11-12  Bruno Haible  <bruno@clisp.org>
43707
43708         lstat: don't compile lstat.c on systems lacking lstat
43709         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
43710         which don't have lstat; this is handled by lib/sys_stat.in.h already.
43711         Reported by Daniel P. Berrange via Jim Meyering.
43712
43713 2008-11-12  Jim Meyering  <meyering@redhat.com>
43714
43715         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
43716
43717 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43718
43719         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
43720         instead.
43721
43722 2008-11-12  Bruno Haible  <bruno@clisp.org>
43723
43724         * lib/unicodeio.c: Include unistr.h.
43725         (utf8_wctomb): Remove function.
43726         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
43727
43728 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43729
43730         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
43731         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
43732         <bruno@clisp.org>.
43733         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
43734
43735 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43736
43737         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
43738         * doc/gnulib.texi: Add section for warnings.
43739
43740 2008-11-11  Bruno Haible  <bruno@clisp.org>
43741
43742         * lib/sockets.h: Add a comment.
43743
43744 2008-11-11  Karl Berry  <karl@gnu.org>
43745
43746         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
43747
43748 2008-11-11  Eric Blake  <ebb9@byu.net>
43749
43750         fdl.texi: avoid git symlinks
43751         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
43752
43753 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43754
43755         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
43756
43757 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43758
43759         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
43760         (gl_WARN_ADD): Substitute $2 if literal.
43761
43762 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43763
43764         * m4/warning.m4: Remove.
43765
43766 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43767
43768         * m4/warnings.m4: Almost complete rewrite. :-)
43769
43770 2008-11-10  Simon Josefsson  <simon@josefsson.org>
43771
43772         * modules/warnings: New module.
43773         * m4/warnings.m4: New file.
43774         * MODULES.html.sh: Mention warnings module.
43775         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
43776         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43777
43778 2008-11-10  Eric Blake  <ebb9@byu.net>
43779
43780         fdl.texi: make a symlink to the latest version
43781         * doc/standards.texi: Revert today's earlier change.
43782         * doc/fdl-1.2.texi: Rename from old fdl.texi...
43783         * doc/fdl.texi: ...and replace this with a symlink to the newer
43784         fdl-1.3.texi.
43785
43786 2008-11-10  Bruno Haible  <bruno@clisp.org>
43787
43788         * tests/test-select-fd.c (main): Accept the result file name as fourth
43789         argument.
43790         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
43791         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
43792
43793 2008-11-10  Bruno Haible  <bruno@clisp.org>
43794
43795         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
43796         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
43797         as autoconf-substituted macros.
43798         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
43799         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
43800         gl_NETDB_H_DEFAULTS. Set these variables.
43801         * modules/netdb (Makefile.am): Substitute these variables.
43802
43803 2008-11-10  Eric Blake  <ebb9@byu.net>
43804
43805         standards.texi: include correct file for FDL 1.3
43806         * doc/standards.texi (GNU Free Documentation License): Change
43807         include file to pull in FDL 1.3, not 1.2.
43808
43809         fdl.texi: revert accidental change to license
43810         * doc/fdl.texi: This is FDL 1.2, not 1.3.
43811
43812 2008-11-10  Bruno Haible  <bruno@clisp.org>
43813
43814         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
43815         cross-compiling guesses also when the native compile gives no result.
43816
43817 2008-11-10  Bruno Haible  <bruno@clisp.org>
43818
43819         * lib/spawni.c (__spawni): Force variable into the stack.
43820
43821 2008-11-10  Bruno Haible  <bruno@clisp.org>
43822
43823         Add support for Haiku.
43824         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
43825         glibc and BeOS, but also on Haiku.
43826         * lib/fpurge.c (fpurge): Likewise.
43827         * lib/freadable.c (freadable): Likewise.
43828         * lib/freadahead.c (freadahead): Likewise.
43829         * lib/freading.c (freading): Likewise.
43830         * lib/freadptr.c (freadptr): Likewise.
43831         * lib/freadseek.c (freadptrinc): Likewise.
43832         * lib/fseeko.c (rpl_fseeko): Likewise.
43833         * lib/fseterr.c (fseterr): Likewise.
43834         * lib/fwritable.c (fwritable): Likewise.
43835         * lib/fwriting.c (fwriting): Likewise.
43836         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
43837
43838 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43839
43840         * lib/config.charset: Treat Haiku like BeOS.
43841
43842 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43843
43844         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
43845         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
43846
43847 2008-11-08  Bruno Haible  <bruno@clisp.org>
43848
43849         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
43850         AC_CACHE_CHECK.
43851
43852 2008-11-08  Bruno Haible  <bruno@clisp.org>
43853
43854         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
43855
43856 2008-11-08  Bruno Haible  <bruno@clisp.org>
43857
43858         * tests/test-select-fd.c: New file.
43859         * tests/test-select-in.sh: New file.
43860         * tests/test-select-out.sh: New file.
43861         * tests/test-select-stdin.c: New file.
43862         * modules/select-tests (Files): Add the new files.
43863         (Depends-on): Add gettimeofday.
43864         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
43865         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
43866         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
43867
43868 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
43869             Bruno Haible  <bruno@clisp.org>
43870
43871         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
43872
43873 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
43874
43875         * build-aux/pmccabe2html: Added support for C++ source files.
43876
43877 2008-11-05  Ben Pfaff  <blp@gnu.org>
43878
43879         Fix lib/close.c build on Windows.
43880         * modules/close (Files): Add lib/w32sock.h.
43881
43882 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
43883
43884         Accept Bison's NEWS format.
43885         * build-aux/announce-gen (print_news_deltas): Tweak
43886         $re_prefix.
43887
43888 2008-11-04  Bruno Haible  <bruno@clisp.org>
43889
43890         * modules/random_r (Maintainer): Add glibc.
43891
43892 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43893
43894         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
43895         by karl@freefriends.org (Karl Berry).
43896         * doc/alloca.texi: Likewise.
43897         * doc/c-ctype.texi: Likewise.
43898         * doc/c-strcase.texi: Likewise.
43899         * doc/c-strcaseeq.texi: Likewise.
43900         * doc/c-strcasestr.texi: Likewise.
43901         * doc/c-strstr.texi: Likewise.
43902         * doc/c-strtod.texi: Likewise.
43903         * doc/c-strtold.texi: Likewise.
43904         * doc/ctime.texi: Likewise.
43905         * doc/error.texi: Likewise.
43906         * doc/fdl.texi: Likewise.
43907         * doc/gcd.texi: Likewise.
43908         * doc/getdate.texi: Likewise.
43909         * doc/gnulib-intro.texi: Likewise.
43910         * doc/gnulib-tool.texi: Likewise.
43911         * doc/gnulib.texi: Likewise.
43912         * doc/inet_ntoa.texi: Likewise.
43913         * doc/maintain.texi: Likewise.
43914         * doc/make-stds.texi: Likewise.
43915         * doc/quote.texi: Likewise.
43916         * doc/regexprops-generic.texi: Likewise.
43917         * doc/standards.texi: Likewise.
43918         * doc/verify.texi: Likewise.
43919         * doc/visibility.texi: Likewise.
43920         * doc/gnulib.texi (GNU Free Documentation License): Include
43921         fdl-1.3.texi instead of fdl.texi.
43922
43923 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43924
43925         * doc/fdl-1.3.texi: New file, from
43926         <http://www.gnu.org/licenses/fdl-1.3.texi>.
43927         * modules/fdl-1.3: Add.
43928         * MODULES.html.sh: Add fdl-1.3.
43929
43930 2008-11-03  Bruno Haible  <bruno@clisp.org>
43931
43932         Make determination of absolute name of header file work with AIX xlc.
43933         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
43934         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
43935         preprocessing.
43936         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43937         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43938
43939 2008-11-03  Simon Josefsson  <simon@josefsson.org>
43940
43941         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
43942         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
43943         <ludo@gnu.org>.
43944
43945 2008-11-02  Bruno Haible  <bruno@clisp.org>
43946
43947         Mark 'strpbrk' obsolete.
43948         * modules/strpbrk (Status, Notice): New sections.
43949         * modules/strtok_r (Depends-on): Add strpbrk.
43950
43951 2008-11-02  Bruno Haible  <bruno@clisp.org>
43952
43953         Mark 'strdup' obsolete.
43954         * modules/strdup (Status, Notice): New sections.
43955         * modules/findprog (Depends-on): Add strdup.
43956         * modules/getaddrinfo (Depends-on): Likewise.
43957         * modules/localename (Depends-on): Likewise.
43958         * modules/relocatable-lib (Depends-on): Likewise.
43959         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
43960         * modules/relocatable-prog (Depends-on): Likewise.
43961         * modules/trim (Depends-on): Likewise.
43962         * modules/unictype/gen-ctype (Depends-on): Likewise.
43963         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43964
43965 2008-11-02  Bruno Haible  <bruno@clisp.org>
43966
43967         Mark 'strcspn' obsolete.
43968         * modules/strcspn (Status, Notice): New sections.
43969
43970 2008-11-02  Bruno Haible  <bruno@clisp.org>
43971
43972         Mark 'rmdir' obsolete.
43973         * modules/rmdir (Status, Notice): New sections.
43974         * modules/clean-temp (Depends-on): Add rmdir.
43975         * modules/openat (Depends-on): Likewise.
43976
43977 2008-11-02  Bruno Haible  <bruno@clisp.org>
43978
43979         Mark 'raise' obsolete.
43980         * modules/raise (Status, Notice): New sections.
43981         (Include): Specify <signal.h>.
43982         * modules/stdio (Depends-on): Add raise.
43983         * modules/write (Depends-on): Likewise.
43984
43985 2008-11-02  Bruno Haible  <bruno@clisp.org>
43986
43987         Mark 'memset' obsolete.
43988         * modules/memset (Status, Notice): New sections.
43989
43990 2008-11-02  Bruno Haible  <bruno@clisp.org>
43991
43992         Mark 'memmove' obsolete.
43993         * modules/memmove (Status, Notice): New sections.
43994         * modules/argp (Depends-on): Add memmove.
43995         * modules/argz (Depends-on): Likewise.
43996         * modules/canonicalize (Depends-on): Likewise.
43997         * modules/canonicalize-lgpl (Depends-on): Likewise.
43998         * modules/fts (Depends-on): Likewise.
43999         * modules/getcwd (Depends-on): Likewise.
44000         * modules/human (Depends-on): Likewise.
44001         * modules/regex (Depends-on): Likewise.
44002         * modules/striconveh (Depends-on): Likewise.
44003         * modules/trim (Depends-on): Likewise.
44004         * modules/unistr/u8-move (Depends-on): Likewise.
44005         * modules/unistr/u16-move (Depends-on): Likewise.
44006         * modules/unistr/u32-move (Depends-on): Likewise.
44007
44008 2008-11-02  Bruno Haible  <bruno@clisp.org>
44009
44010         Mark 'memcpy' obsolete.
44011         * modules/memcpy (Status, Notice): New sections.
44012
44013 2008-11-02  Bruno Haible  <bruno@clisp.org>
44014
44015         Mark 'memcmp' obsolete.
44016         * modules/memcmp (Status, Notice): New sections.
44017         * modules/argmatch (Depends-on): Add memchr.
44018         * modules/backupfile (Depends-on): Likewise.
44019         * modules/c-strcasestr (Depends-on): Likewise.
44020         * modules/crypto/des (Depends-on): Likewise.
44021         * modules/csharpcomp (Depends-on): Likewise.
44022         * modules/fnmatch (Depends-on): Likewise.
44023         * modules/git-merge-changelog (Depends-on): Likewise.
44024         * modules/isnand (Depends-on): Likewise.
44025         * modules/isnand-nolibm (Depends-on): Likewise.
44026         * modules/isnanf (Depends-on): Likewise.
44027         * modules/isnanf-nolibm (Depends-on): Likewise.
44028         * modules/isnanl (Depends-on): Likewise.
44029         * modules/isnanl-nolibm (Depends-on): Likewise.
44030         * modules/mbchar (Depends-on): Likewise.
44031         * modules/memcoll (Depends-on): Likewise.
44032         * modules/quotearg (Depends-on): Likewise.
44033         * modules/regex (Depends-on): Likewise.
44034         * modules/relocatable-prog (Depends-on): Likewise.
44035         * modules/same (Depends-on): Likewise.
44036         * modules/signbit (Depends-on): Likewise.
44037         * modules/strcasestr-simple (Depends-on): Likewise.
44038         * modules/unictype/gen-ctype (Depends-on): Likewise.
44039         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44040         * modules/uniname/uniname (Depends-on): Likewise.
44041         * modules/unistr/u8-cmp (Depends-on): Likewise.
44042
44043 2008-11-02  Bruno Haible  <bruno@clisp.org>
44044
44045         Mark 'memchr' obsolete.
44046         * modules/memchr (Status, Notice): New sections.
44047         * modules/argp (Depends-on): Add memchr.
44048         * modules/base64 (Depends-on): Likewise.
44049         * modules/c-strcasestr (Depends-on): Likewise.
44050         * modules/chdir-long (Depends-on): Likewise.
44051         * modules/fnmatch (Depends-on): Likewise.
44052         * modules/getsubopt (Depends-on): Likewise.
44053         * modules/git-merge-changelog (Depends-on): Likewise.
44054         * modules/glob (Depends-on): Likewise.
44055         * modules/strcasestr-simple (Depends-on): Likewise.
44056         * modules/strnlen (Depends-on): Likewise.
44057
44058 2008-11-02  Bruno Haible  <bruno@clisp.org>
44059
44060         Mark 'atexit' obsolete.
44061         * modules/atexit (Status, Notice): New sections.
44062         * modules/chdir-long (Depends-on): Add atexit.
44063         * modules/wait-process (Depends-on): Likewise.
44064
44065 2008-11-02  Bruno Haible  <bruno@clisp.org>
44066
44067         * gnulib-tool: New option --with-obsolete.
44068         (func_usage): Document it.
44069         (func_modules_transitive_closure): Drop obsolete dependencies if
44070         incobsolete is not true.
44071         (func_import): Read and save the incobsolete variable to the cache.
44072
44073 2008-11-02  Bruno Haible  <bruno@clisp.org>
44074
44075         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44076         * gnulib-tool: New option --extract-status.
44077         (func_usage): Document it.
44078         (sed_extract_prog): Recognize it.
44079         (func_get_status): New function.
44080
44081 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44082
44083         * modules/sockets (License): Change from LGPL to LGPLv2+.
44084
44085 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44086
44087         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44088
44089 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44090
44091         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44092         Mention times and sys_times.
44093         * modules/sys_times, modules/sys_times-tests: New modules.
44094         * modules/times, modules/times-tests: Likewise
44095         * m4/sys_times_h.m4: New file.
44096         * lib/sys_times.in.h: Likewise
44097         * lib/times.c: Likewise.
44098         * tests/test-sys_times.c: Likewise.
44099         * tests/test-times.c: Likewise.
44100         * doc/posix-headers/sys_times.texi: Update.
44101         * doc/posix-functions/times.texi: Update.
44102
44103 2008-10-28  Jim Meyering  <meyering@redhat.com>
44104
44105         * modules/tempname (Depends-on): Add lstat.
44106
44107         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44108
44109 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44110
44111         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44112         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44113         using idiom used elsewhere in gnulib.
44114
44115 2008-10-27  Jim Meyering  <meyering@redhat.com>
44116
44117         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44118
44119 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44120
44121         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44122         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44123         programs.
44124         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44125
44126 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44127
44128         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44129
44130 2008-10-27  Bruno Haible  <bruno@clisp.org>
44131
44132         * tests/test-lstat.c: Include <stdio.h>.
44133
44134 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44135
44136         * modules/lstat-tests: New module.
44137         * tests/test-lstat.c: New file.
44138
44139 2008-10-26  Jim Meyering  <meyering@redhat.com>
44140
44141         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44142
44143 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44144             Bruno Haible  <bruno@clisp.org>
44145
44146         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44147         * modules/configmake (Include): Add a note that the include must come
44148         after all system headers.
44149         * lib/javaversion.c: Include configmake.h after all other includes.
44150
44151 2008-10-26  Bruno Haible  <bruno@clisp.org>
44152
44153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44154         HAVE_STRUCT_RANDOM_DATA to 1.
44155         (gl_STDLIB_H): Simplify.
44156
44157 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44158
44159         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44160         substitute HAVE_STRUCT_RANDOM_DATA.
44161         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44162         random_data.
44163         * modules/stdlib (Makefile.am): Substitute
44164         HAVE_STRUCT_RANDOM_DATA.
44165
44166 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44167
44168         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44169         * doc/gnulib-intro.texi (Copyright): Likewise.
44170
44171 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44172
44173         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44174         findings.
44175
44176 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44177             Bruno Haible  <bruno@clisp.org>
44178
44179         * lib/unistd.in.h: Include <winsock2.h>.
44180         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44181         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44182         Provide dummy declarations.
44183         (gethostname): Override.
44184         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44185         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44186         gl_PREREQ_SYS_H_WINSOCK2.
44187         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44188         * doc/posix-functions/gethostname.texi: More details.
44189
44190 2008-10-25  Bruno Haible  <bruno@clisp.org>
44191
44192         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44193         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44194         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44195
44196         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44197         here ...
44198         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44199         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44200         gl_UNISTD_H_DEFAULTS.
44201
44202 2008-10-25  Eric Blake  <ebb9@byu.net>
44203
44204         signbit: avoid spurious compiler failure
44205         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44206         declarations inside function.
44207
44208 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44209             Bruno Haible  <bruno@clisp.org>
44210
44211         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44212         * modules/random_r (Depends-on): Add stdint.
44213
44214 2008-10-24  Bruno Haible  <bruno@clisp.org>
44215
44216         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44217         Eggert.
44218         * modules/strerror (License): Likewise.
44219
44220 2008-10-24  Jim Meyering  <meyering@redhat.com>
44221
44222         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44223         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44224
44225 2008-10-24  Eric Blake  <ebb9@byu.net>
44226
44227         getgroups: fix compilation when getgroups is available
44228         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44229         but with <config.h> override of getgroups disabled.
44230
44231 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44232
44233         * doc/gnulib.texi (Header files): Add note about C++ problems.
44234         Explained by Bruno Haible <bruno@clisp.org>.
44235
44236 2008-10-23  Bruno Haible  <bruno@clisp.org>
44237
44238         Define a dummy SA_NODEFER macro on Interix.
44239         * lib/signal.in.h (SA_NODEFER): Define fallback.
44240         Reported by Aleksey Cheusov <cheusov@tut.by> via
44241         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44242
44243 2008-10-23  Bruno Haible  <bruno@clisp.org>
44244
44245         * modules/freadahead (License): Change to LGPLv2+.
44246         Suggested by Simon Josefsson.
44247
44248 2008-10-23  Jim Meyering  <meyering@redhat.com>
44249
44250         random_r: new module
44251         * modules/random_r: New file.
44252         * m4/random_r.m4: New file.
44253         * lib/random_r.c: New file, from glibc.
44254         * modules/random_r-tests: New file.
44255         * tests/test-random_r.c: New file.
44256         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44257          Declare.
44258         (RAND_MAX): Define.
44259         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44260         * modules/stdlib: Substitute them, too.
44261         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44262         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44263         * doc/glibc-functions/random_r.texi: Likewise.
44264         * doc/glibc-functions/setstate_r.texi: Likewise.
44265         * doc/glibc-functions/srandom_r.texi: Likewise.
44266         * config/srclist.txt: Mention it.
44267
44268 2008-10-23  David Lutterkort  <lutter@redhat.com>
44269
44270         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44271         link requirement
44272
44273 2008-10-23  Jim Meyering  <meyering@redhat.com>
44274
44275         selinux-h: mark parameters of stub functions as intentionally unused
44276         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44277         * lib/se-context.in.h: Likewise.
44278
44279 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44280
44281         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44282
44283 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44284
44285         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44286
44287 2008-10-22  Eric Blake  <ebb9@byu.net>
44288
44289         glthread/thread: avoid compiler warning
44290         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44291         Add unreachable abort to silence compiler.
44292
44293 2008-10-22  Eric Blake  <ebb9@byu.net>
44294
44295         netdb: also supply struct addrinfo for cygwin 1.5.x
44296         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44297         older cygwin.
44298         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44299         cygwin.
44300         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44301
44302 2008-10-22  Bruno Haible  <bruno@clisp.org>
44303
44304         * users.txt: Update entry about pspp.
44305
44306 2008-10-21  Bruno Haible  <bruno@clisp.org>
44307
44308         Simplification.
44309         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44310         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44311
44312         Simplification.
44313         * lib/ioctl.c (ioctl): Don't undefine.
44314         * lib/socket.c (socket): Don't undefine.
44315
44316         Remove unused module indicator macros.
44317         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44318         GNULIB_$1 as a C macro.
44319
44320         * doc/posix-functions/close.texi: Undo last change.
44321         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44322         Windows platforms.
44323
44324 2008-10-21  Bruno Haible  <bruno@clisp.org>
44325
44326         Add gethostname() declaration to <unistd.h>.
44327         * lib/unistd.in.h (gethostname): New declaration.
44328         * lib/gethostname.c: Include <unistd.h>.
44329         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44330         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44332         and HAVE_GETHOSTNAME.
44333         * modules/gethostname (Depends-on): Add unistd.
44334         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44335         (Include): Specify <unistd.h>.
44336         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44337         HAVE_GETHOSTNAME.
44338         * tests/test-gethostname.c: Include <unistd.h> first.
44339
44340 2008-10-21  Bruno Haible  <bruno@clisp.org>
44341
44342         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44343         * modules/select-tests (Depends-on): Likewise.
44344         Reported by Simon Josefsson.
44345
44346 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44347
44348         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44349         * lib/accept.c: New file, based on winsock.c.
44350         * lib/bind.c: New file, based on winsock.c.
44351         * lib/connect.c: New file, based on winsock.c.
44352         * lib/getpeername.c: New file, based on winsock.c.
44353         * lib/getsockname.c: New file, based on winsock.c.
44354         * lib/getsockopt.c: New file, based on winsock.c.
44355         * lib/ioctl.c: New file, based on winsock.c.
44356         * lib/listen.c: New file, based on winsock.c.
44357         * lib/recv.c: New file, based on winsock.c.
44358         * lib/recvfrom.c: New file, based on winsock.c.
44359         * lib/send.c: New file, based on winsock.c.
44360         * lib/sendto.c: New file, based on winsock.c.
44361         * lib/setsockopt.c: New file, based on winsock.c.
44362         * lib/shutdown.c: New file, based on winsock.c.
44363         * lib/socket.c: New file, based on winsock.c.
44364         * lib/w32sock.h: New file, based on winsock.c.
44365         * lib/winsock.c: Remove file.
44366         * modules/accept: Likewise.
44367         * modules/bind: Likewise.
44368         * modules/connect: Likewise.
44369         * modules/getpeername: Likewise.
44370         * modules/getsockname: Likewise.
44371         * modules/getsockopt: Likewise.
44372         * modules/ioctl: Likewise.
44373         * modules/listen: Likewise.
44374         * modules/recv: Likewise.
44375         * modules/recvfrom: Likewise.
44376         * modules/send: Likewise.
44377         * modules/sendto: Likewise.
44378         * modules/setsockopt: Likewise.
44379         * modules/shutdown: Likewise.
44380         * modules/socket: Use socket.c instead of winsock.c.
44381         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
44382         * doc/posix-functions/accept.texi: Doc fix.
44383         * doc/posix-functions/bind.texi: Doc fix.
44384         * doc/posix-functions/close.texi: Doc fix.
44385         * doc/posix-functions/connect.texi: Doc fix.
44386         * doc/posix-functions/getpeername.texi: Doc fix.
44387         * doc/posix-functions/getsockname.texi: Doc fix.
44388         * doc/posix-functions/getsockopt.texi: Doc fix.
44389         * doc/posix-functions/ioctl.texi: Doc fix.
44390         * doc/posix-functions/listen.texi: Doc fix.
44391         * doc/posix-functions/recv.texi: Doc fix.
44392         * doc/posix-functions/recvfrom.texi: Doc fix.
44393         * doc/posix-functions/send.texi: Doc fix.
44394         * doc/posix-functions/sendto.texi: Doc fix.
44395         * doc/posix-functions/setsockopt.texi: Doc fix.
44396         * doc/posix-functions/shutdown.texi: Doc fix.
44397         * doc/posix-functions/socket.texi: Doc fix.
44398
44399 2008-10-20  Bruno Haible  <bruno@clisp.org>
44400
44401         Take into account the role of SIGABRT_COMPAT on Windows 2008.
44402         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
44403         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
44404         as an alias for SIGABRT.
44405         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
44406         (sigaction): Map it to SIGABRT.
44407         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
44408
44409 2008-10-20  Bruno Haible  <bruno@clisp.org>
44410
44411         * lib/fts.c: Don't include lstat.h.
44412         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
44413
44414         Move the lstat() declaration to <sys/stat.h>.
44415         * lib/lstat.h: Remove file.
44416         * lib/sys_stat.in.h: Add special invocation convention.
44417         (lstat): New declaration.
44418         * lib/lstat.c (orig_lstat): New function.
44419         (rpl_lstat): Use orig_lstat instead of lstat.
44420         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
44421         AC_C_INLINE. Set REPLACE_LSTAT.
44422         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
44423         and REPLACE_LSTAT.
44424         * modules/lstat (Files): Remove lib/lstat.h.
44425         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44426         (Include): Specify <sys/stat.h> instead of lstat.h.
44427         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
44428         REPLACE_LSTAT.
44429         * NEWS: Mention the change.
44430
44431 2008-10-20  Bruno Haible  <bruno@clisp.org>
44432
44433         * modules/posix_spawn-tests: New file.
44434         * tests/test-posix_spawn3.c: New file.
44435
44436 2008-10-20  Bruno Haible  <bruno@clisp.org>
44437
44438         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
44439         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44440         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
44441         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44442         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
44443
44444 2008-10-20  Bruno Haible  <bruno@clisp.org>
44445
44446         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
44447         of posix_spawn on AIX 5.3.
44448
44449 2008-10-20  Bruno Haible  <bruno@clisp.org>
44450
44451         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
44452
44453 2008-10-20  Bruno Haible  <bruno@clisp.org>
44454
44455         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44456         of AC_LANG_PROGRAM.
44457
44458 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44459
44460         * lib/netdb.in.h: Don't define GNU specific constants until they
44461         are supported or needed.  Reported by Bruno Haible
44462         <bruno@clisp.org>.
44463
44464 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44465
44466         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44467
44468 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44469
44470         * lib/getaddrinfo.h: Remove file.
44471         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44472         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44473         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44474         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44475         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44476         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44477         * tests/test-getaddrinfo.c: Likewise.
44478         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44479         * NEWS: Mention change.
44480
44481 2008-10-19  Bruno Haible  <bruno@clisp.org>
44482
44483         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
44484
44485 2008-10-19  Bruno Haible  <bruno@clisp.org>
44486
44487         * lib/wait-process.c: Include simply <sys/wait.h>.
44488         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
44489         WIFSTOPPED): Remove fallback definitions.
44490         * modules/wait-process (Depends-on): Add sys_wait.
44491
44492         New module 'sys_wait'.
44493         * modules/sys_wait: New file.
44494         * lib/sys_wait.in.h: New file, partially copied from
44495         lib/wait-process.c.
44496         * m4/sys_wait_h.m4: New file.
44497         * doc/posix-headers/sys_wait.texi: Mention the new module.
44498
44499 2008-10-19  Bruno Haible  <bruno@clisp.org>
44500
44501         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
44502
44503 2008-10-19  Bruno Haible  <bruno@clisp.org>
44504
44505         Assume that waitpid() fills an 'int' status, not a 'union wait'.
44506         * lib/wait-process.c (WAIT_T): Remove type.
44507         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
44508         (wait_subprocess): Update.
44509
44510 2008-10-19  Bruno Haible  <bruno@clisp.org>
44511
44512         New module 'atoll'.
44513         * modules/atoll: New file.
44514         * lib/stdlib.in.h (atoll): New declaration.
44515         * lib/atoll.c: New file, from glibc with modifications.
44516         * m4/atoll.m4: New file.
44517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
44518         HAVE_ATOLL.
44519         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
44520         * doc/posix-functions/atoll.texi: Mention the new module.
44521
44522 2008-10-19  Bruno Haible  <bruno@clisp.org>
44523
44524         Add strtoull() declaration to <stdlib.h>.
44525         * lib/stdlib.in.h (strtoull): New declaration.
44526         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44527         Set HAVE_STRTOULL.
44528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
44529         HAVE_STRTOULL.
44530         * modules/strtoull (Depends-on): Add stdlib.
44531         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44532         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44533         HAVE_STRTOULL.
44534
44535 2008-10-19  Bruno Haible  <bruno@clisp.org>
44536
44537         Add strtoll() declaration to <stdlib.h>.
44538         * lib/stdlib.in.h (strtoll): New declaration.
44539         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44540         Set HAVE_STRTOLL.
44541         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
44542         HAVE_STRTOLL.
44543         * modules/strtoll (Depends-on): Add stdlib.
44544         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44545         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
44546
44547 2008-10-19  Bruno Haible  <bruno@clisp.org>
44548
44549         * modules/bcopy (Depends-on): Add strings.
44550         (Include): Specify <strings.h>.
44551
44552 2008-10-19  Bruno Haible  <bruno@clisp.org>
44553
44554         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
44555
44556 2008-10-19  Bruno Haible  <bruno@clisp.org>
44557
44558         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
44559         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
44560         mingw.
44561
44562 2008-10-19  Bruno Haible  <bruno@clisp.org>
44563
44564         * lib/atanl.c: Don't include isnanl.h.
44565         * lib/cosl.c: Likewise.
44566         * lib/ldexpl.c: Likewise.
44567         * lib/logl.c: Likewise.
44568         * lib/sinl.c: Likewise.
44569         * lib/sqrtl.c: Likewise.
44570         * lib/tanl.c: Likewise.
44571
44572         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
44573         * lib/isnanf.h: Remove file.
44574         * lib/isnand.h: Remove file.
44575         * lib/isnanl.h: Remove file.
44576         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
44577         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
44578         macros.
44579         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
44580         HAVE_ISNANF, don't define it as a C macro.
44581         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
44582         HAVE_ISNAND, don't define it as a C macro.
44583         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
44584         HAVE_ISNANL, don't define it as a C macro.
44585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
44586         HAVE_ISNAN[FDL].
44587         * modules/isnanf (Files): Remove lib/isnanf.h.
44588         (Depends-on): Add math.
44589         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44590         (Include): Specify <math.h> instead of isnanf.h.
44591         * modules/isnand (Files): Remove lib/isnand.h.
44592         (Depends-on): Add math.
44593         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44594         (Include): Specify <math.h> instead of isnand.h.
44595         * modules/isnanl (Files): Remove lib/isnanl.h.
44596         (Depends-on): Add math.
44597         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44598         (Include): Specify <math.h> instead of isnanl.h.
44599         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
44600         HAVE_ISNAN[FDL].
44601         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
44602         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
44603         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
44604         * NEWS: Mention the change.
44605
44606 2008-10-18  Bruno Haible  <bruno@clisp.org>
44607
44608         Add getusershell(), setusershell(), endusershell() declarations to
44609         <unistd.h>.
44610         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
44611         declarations.
44612         * lib/getusershell.c: Include unistd.h.
44613         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
44614         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44615         HAVE_GETUSERSHELL.
44616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
44617         and HAVE_GETUSERSHELL.
44618         * modules/getusershell (Depends-on): Add unistd, extensions.
44619         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44620         (Include): Specify <unistd.h>.
44621         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
44622         HAVE_GETUSERSHELL.
44623
44624 2008-10-18  Bruno Haible  <bruno@clisp.org>
44625
44626         Add a getloadavg() declaration to <stdlib.h>.
44627         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
44628         getloadavg declaration.
44629         (getloadavg): New declaration.
44630         * lib/getloadavg.c: Include <stdlib.h> first.
44631         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
44632         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
44633         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
44634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
44635         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44636         * modules/getloadavg (Depends-on): Add stdlib, extensions.
44637         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44638         (Include): Specify <stdlib.h>.
44639         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
44640         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44641
44642 2008-10-18  Bruno Haible  <bruno@clisp.org>
44643
44644         * lib/dirchownmod.c: Don't include lchmod.h.
44645
44646         Move the lchmod() declaration to <sys/stat.h>.
44647         * lib/lchmod.h: Remove file.
44648         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
44649         (lchmod): New declaration, moved here from lib/lchown.h.
44650         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
44651         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
44652         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
44653         and HAVE_LCHMOD.
44654         * modules/lchmod (Files): Remove lib/lchmod.h.
44655         (Depends-on): Add sys_stat, extensions.
44656         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44657         (Include): Specify <sys/stat.h> instead of lchmod.h.
44658         * modules/sys_stat (Depends-on): Add link-warning.
44659         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
44660         definition of GL_LINK_WARNING.
44661         * NEWS: Mention the change.
44662
44663 2008-10-18  Bruno Haible  <bruno@clisp.org>
44664
44665         * lib/fchdir.c: Don't include dirfd.h.
44666         * lib/fts.c: Likewise.
44667         * lib/getcwd.c: Likewise.
44668         * lib/glob.c: Likewise.
44669
44670         Move the dirfd() declaration to <dirent.h>.
44671         * lib/dirfd.h: Remove file.
44672         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
44673         (dirfd): New declaration.
44674         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
44675         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
44676         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
44677         HAVE_DECL_DIRFD.
44678         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
44679         HAVE_DECL_DIRFD.
44680         * modules/dirfd (Files): Remove lib/dirfd.h.
44681         (Depends-on): Add dirent, extensions.
44682         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
44683         (Include): Specify <dirent.h> instead of dirfd.h.
44684         * modules/dirent (Depends-on): Add link-warning.
44685         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
44686         definition of GL_LINK_WARNING.
44687         * NEWS: Mention the change.
44688
44689 2008-10-18  Bruno Haible  <bruno@clisp.org>
44690
44691         Move the euidaccess() declaration to <unistd.h>.
44692         * lib/euidaccess.h: Remove file.
44693         * lib/unistd.in.h (euidaccess): New declaration.
44694         * lib/euidaccess.c: Don't include euidaccess.h.
44695         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
44696         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
44697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
44698         and HAVE_EUIDACCESS.
44699         * modules/euidaccess (Files): Remove lib/euidaccess.h.
44700         (Depends-on): Add unistd.
44701         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44702         (Include): Specify <unistd.h> instead of euidaccess.h.
44703         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
44704         HAVE_EUIDACCESS.
44705         * NEWS: Mention the change.
44706
44707 2008-10-18  Bruno Haible  <bruno@clisp.org>
44708
44709         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
44710
44711         Move the getdomainname() declaration to <unistd.h>.
44712         * lib/getdomainname.h: Remove file.
44713         * lib/unistd.in.h (getdomainname): New declaration.
44714         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
44715         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
44716         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44717         HAVE_GETDOMAINNAME.
44718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44719         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
44720         * modules/getdomainname (Files): Remove lib/getdomainname.h.
44721         (Depends-on): Add unistd, extensions.
44722         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44723         (Includes): Specify <unistd.h> instead of getdomainname.h.
44724         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
44725         HAVE_GETDOMAINNAME.
44726         * NEWS: Mention the change.
44727
44728 2008-10-18  Bruno Haible  <bruno@clisp.org>
44729
44730         * modules/dirent: New file.
44731         * m4/dirent_h.m4: New file.
44732         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
44733         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
44734         * modules/fchdir (Files): Remove lib/dirent.in.h.
44735         (Depends-on): Add dirent.
44736         (Makefile.am): Move rules to modules/dirent.
44737         * doc/posix-headers/dirent.texi: Mention the new module.
44738
44739 2008-10-18  Bruno Haible  <bruno@clisp.org>
44740
44741         Avoid -Wunused-parameter warnings in public gnulib header files.
44742         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
44743         macro.
44744         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
44745
44746 2008-10-18  Bruno Haible  <bruno@clisp.org>
44747
44748         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
44749         * doc/glibc-functions/error.texi: Mention the module 'error'.
44750         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
44751         * doc/glibc-functions/getdomainname.texi: Mention the module
44752         'getdomainname'.
44753         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
44754         * doc/glibc-functions/getpagesize.texi: Mention the module
44755         'getpagesize'.
44756         * doc/glibc-functions/getusershell.texi: Mention the module
44757         'getusershell'.
44758         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
44759         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
44760         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
44761         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
44762         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
44763         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
44764         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
44765         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
44766         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
44767         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
44768         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
44769         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
44770         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
44771         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
44772
44773 2008-10-17  Bruno Haible  <bruno@clisp.org>
44774
44775         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
44776         HP-UX and IRIX, use -0.0L.
44777         * tests/test-ceill.c (minus_zero): Likewise.
44778         * tests/test-floorl.c (minus_zero): Likewise.
44779         * tests/test-frexpl.c (minus_zero): Likewise.
44780         * tests/test-isnan.c (minus_zerol): Likewise.
44781         * tests/test-isnanl.h (minus_zero): Likewise.
44782         * tests/test-ldexpl.c (minus_zero): Likewise.
44783         * tests/test-roundl.c (minus_zero): Likewise.
44784         * tests/test-signbit.c (minus_zerol): Likewise.
44785         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44786         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44787         * tests/test-truncl.c (minus_zero): Likewise.
44788         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44789         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44790         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
44791         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44792
44793 2008-10-17  Bruno Haible  <bruno@clisp.org>
44794
44795         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
44796         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
44797         that it gets activated only for gcc >= 3.0.
44798         * lib/dirent.in.h: Likewise.
44799         * lib/errno.in.h: Likewise.
44800         * lib/fcntl.in.h: Likewise.
44801         * lib/float.in.h: Likewise.
44802         * lib/iconv.in.h: Likewise.
44803         * lib/inttypes.in.h: Likewise.
44804         * lib/locale.in.h: Likewise.
44805         * lib/math.in.h: Likewise.
44806         * lib/netdb.in.h: Likewise.
44807         * lib/netinet_in.in.h: Likewise.
44808         * lib/search.in.h: Likewise.
44809         * lib/signal.in.h: Likewise.
44810         * lib/spawn.in.h: Likewise.
44811         * lib/stdarg.in.h: Likewise.
44812         * lib/stdint.in.h: Likewise.
44813         * lib/stdio.in.h: Likewise.
44814         * lib/stdlib.in.h: Likewise.
44815         * lib/string.in.h: Likewise.
44816         * lib/strings.in.h: Likewise.
44817         * lib/sys_file.in.h: Likewise.
44818         * lib/sys_ioctl.in.h: Likewise.
44819         * lib/sys_select.in.h: Likewise.
44820         * lib/sys_socket.in.h: Likewise.
44821         * lib/sys_stat.in.h: Likewise.
44822         * lib/sys_time.in.h: Likewise.
44823         * lib/sysexits.in.h: Likewise.
44824         * lib/time.in.h: Likewise.
44825         * lib/unistd.in.h: Likewise.
44826         * lib/wchar.in.h: Likewise.
44827         * lib/wctype.in.h: Likewise.
44828         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44829
44830 2008-10-17  Jim Meyering  <meyering@redhat.com>
44831
44832         ignore-value: don't depend on inline module
44833         * modules/ignore-value (Depends-on): Remove 'inline'.
44834         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
44835         Suggestion from Bruno Haible.
44836
44837 2008-10-17  Bruno Haible  <bruno@clisp.org>
44838
44839         New implementation of condition variables for Win32.
44840         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
44841         (gl_linked_waitqueue_t): New type.
44842         (gl_cond_t): Use it.
44843         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
44844         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
44845         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
44846         (glthread_cond_init_func, glthread_cond_wait_func,
44847         glthread_cond_timedwait_func, glthread_cond_signal_func,
44848         glthread_cond_broadcast_func, glthread_cond_destroy_func):
44849         Reimplemented on the basis of gl_linked_waitqueue_t.
44850         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
44851         gl_waitqueue_t.
44852         (gl_rwlock_t): Update.
44853         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
44854
44855 2008-10-17  Simon Josefsson  <simon@josefsson.org>
44856
44857         * modules/recvfrom (Depends-on): Add dependency on getpeername.
44858         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44859
44860 2008-10-17  Jim Meyering  <meyering@redhat.com>
44861
44862         ignore-value: new module
44863         * modules/ignore-value: New file.
44864         * lib/ignore-value.h: New file.
44865         * MODULES.html.sh (Compiler warning management): New section,
44866         just for this module.  More to come.
44867
44868 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44869
44870         open-safer.c: avoid 'signed and unsigned in conditional...' warning
44871         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
44872         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
44873
44874 2008-10-16  Jim Meyering  <meyering@redhat.com>
44875
44876         openat-die.c: avoid 'no previous prototype' warning
44877         * lib/openat-die.c: Include "openat.h".
44878         Reported by Reuben Thomas <rrt@sc3d.org>.
44879
44880 2008-10-16  Simon Josefsson  <simon@josefsson.org>
44881
44882         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
44883         * lib/netdb.in.h: Fix typo.
44884         Reported by Bruno Haible  <bruno@clisp.org>
44885
44886         * lib/netdb.in.h: Include sys/socket.h for platforms without
44887         netdb.h, to get structures like hostent on MinGW.
44888         * modules/netdb (Depends-on): Add sys_socket.
44889
44890 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44891
44892         * modules/netdb, modules/netdb-tests: New file.
44893         * m4/netdb_h.m4: New file.
44894         * lib/netdb.in.h: Add, currently just an empty file pending
44895         definitions.
44896         * tests/test-netdb.c: New file.
44897         * doc/posix-headers/netdb.texi: Mention that we replace it if
44898         needed.
44899         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44900         netdb.
44901
44902 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44903
44904         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
44905         with code.
44906
44907 2008-10-13  Bruno Haible  <bruno@clisp.org>
44908
44909         * lib/glthread/cond.c (glthread_cond_wait_func,
44910         glthread_cond_timedwait_func): Add a comment.
44911
44912 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44913
44914         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
44915         * tests/test-select.c: Likewise,
44916
44917 2008-10-13  Bruno Haible  <bruno@clisp.org>
44918
44919         * lib/glthread/cond.c (glthread_cond_wait_func,
44920         glthread_cond_timedwait_func): Fix variable name.
44921         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44922
44923 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
44924
44925         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
44926         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
44927         struct sockaddr.sa_len.
44928         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
44929
44930 2008-10-13  Simon Josefsson  <simon@josefsson.org>
44931
44932         * build-aux/pmccabe2html: Add css and css_url parameters.
44933
44934 2008-10-12  Bruno Haible  <bruno@clisp.org>
44935
44936         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
44937         calling aclx_get.
44938         Reported by Rainer Tammer <tammer@tammer.net>.
44939
44940 2008-10-12  Bruno Haible  <bruno@clisp.org>
44941
44942         Use msvcrt aware primitives for creation/termination of Win32 threads.
44943         * lib/glthread/thread.c: Include <process.h>.
44944         (glthread_create_func): Use _beginthreadex instead of CreateThread.
44945         (wrapper_func): Update signature.
44946         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
44947
44948 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44949             Bruno Haible  <bruno@clisp.org>
44950
44951         Provide a Win32 implementation of the 'cond' module.
44952         * lib/glthread/cond.h [USE_WIN32]: New implementation.
44953         * lib/glthread/cond.c (glthread_cond_init_func,
44954         glthread_cond_wait_func, glthread_cond_timedwait_func,
44955         glthread_cond_signal_func, glthread_cond_broadcast_func,
44956         glthread_cond_destroy_func) [USE_WIN32]: New functions.
44957         * modules/cond (Dependencies): Add gettimeofday.
44958
44959 2008-10-11  Bruno Haible  <bruno@clisp.org>
44960
44961         Make sleep work on older versions of mingw.
44962         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
44963         only whether it exists.
44964         * doc/posix-functions/sleep.texi: Mention the problem with older
44965         versions of mingw.
44966
44967 2008-10-11  Bruno Haible  <bruno@clisp.org>
44968
44969         New module 'shutdown'.
44970         * modules/shutdown: New file.
44971         * lib/sys_socket.in.h (shutdown): New declaration.
44972         * lib/winsock.c (shutdown): New function.
44973         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44974         GNULIB_SHUTDOWN.
44975         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
44976         * doc/posix-functions/shutdown.texi: Document the new module.
44977
44978 2008-10-11  Jim Meyering  <meyering@redhat.com>
44979
44980         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
44981
44982 2008-10-11  Bruno Haible  <bruno@clisp.org>
44983
44984         New module 'fclose'.
44985         * modules/fclose: New file.
44986         * lib/stdio.in.h (fclose): New declaration.
44987         * lib/fclose.c: New file.
44988         * m4/fclose.m4: New file.
44989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
44990         REPLACE_FCLOSE.
44991         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
44992         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
44993         REPLACE_FCLOSE.
44994         * modules/close (Depends-on): fclose.
44995         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
44996
44997 2008-10-11  Bruno Haible  <bruno@clisp.org>
44998
44999         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45000         set errno and don't call _close.
45001
45002 2008-10-10  Bruno Haible  <bruno@clisp.org>
45003
45004         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45005         ACL, not afterwards. Fixes test failure on Cygwin.
45006
45007 2008-10-09  Ben Pfaff  <blp@gnu.org>
45008
45009         * build-aux/announce-gen: Fix gnulib version related part of usage
45010         message.  Die with a useful error message if no tarballs are
45011         found.
45012
45013 2008-10-10  Jim Meyering  <meyering@redhat.com>
45014
45015         bootstrap: use git's --depth=N option only if it's supported
45016         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45017         recognize the --depth option.  Reported by Pádraig Brady.
45018
45019 2008-10-09  Bruno Haible  <bruno@clisp.org>
45020
45021         New module 'ioctl'.
45022         * modules/ioctl: New file.
45023         * lib/sys_socket.in.h (ioctl): Remove declaration.
45024         * lib/winsock.c: Include <sys/ioctl.h>.
45025         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45026         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45027         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45028         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45029         * doc/posix-functions/ioctl.texi: Mention the new module.
45030
45031 2008-10-09  Bruno Haible  <bruno@clisp.org>
45032
45033         New module 'sys_ioctl'.
45034         * lib/sys_ioctl.in.h: New file.
45035         * m4/sys_ioctl_h.m4: New file.
45036         * modules/sys_ioctl: New file.
45037         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45038
45039 2008-10-09  Bruno Haible  <bruno@clisp.org>
45040
45041         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45042         * lib/winsock.c: Include <stdarg.h>.
45043         (rpl_ioctl): Change to second argument 'int' and then varargs.
45044
45045 2008-10-09  Bruno Haible  <bruno@clisp.org>
45046
45047         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45048         when the sys_socket module is present and the system has <winsock2.h>.
45049
45050 2008-10-09  Bruno Haible  <bruno@clisp.org>
45051
45052         * doc/posix-functions/close.texi: Mention module 'close' instead of
45053         module 'sys_socket'.
45054
45055 2008-10-09  Bruno Haible  <bruno@clisp.org>
45056
45057         * doc/glibc-headers/sys_ioctl.texi: New file.
45058         * doc/gnulib.texi: Include it.
45059
45060 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45061             Bruno Haible  <bruno@clisp.org>
45062
45063         Combine the two replacements of 'close'.
45064         * lib/sys_socket.in.h (close): Define to a reminder to include
45065         <unistd.h>.
45066         (_gl_close_fd_maybe_socket): New declaration.
45067         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45068         * lib/winsock.c (close): Remove undefinition.
45069         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45070         needed for the gnulib module 'close'.
45071         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45072         define to an error symbol or to a warning, if suitable.
45073         * lib/close.c: Include <sys/socket.h>.
45074         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45075         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45076         UNISTD_H_HAVE_WINSOCK2_H.
45077         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45079         UNISTD_H_HAVE_WINSOCK2_H.
45080         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45081         (configure.ac): Set a module indicator.
45082         (Makefile.am): Substitute GNULIB_CLOSE.
45083         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45084         * modules/poll-tests (Depends-on): Add close.
45085         * modules/select-tests (Depends-on): Likewise.
45086
45087 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45088             Bruno Haible  <bruno@clisp.org>
45089
45090         New module 'close'.
45091         * modules/close: New file.
45092         * lib/unistd.in.h (close): Move declaration out of the
45093         FCHDIR_REPLACEMENT scope.
45094         (_gl_unregister_fd): New declaration.
45095         * lib/close.c: New file.
45096         * lib/fchdir.c (rpl_close): Remove function.
45097         * m4/close.m4: New file.
45098         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45099         close.
45100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45101         REPLACE_CLOSE.
45102         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45103         REPLACE_CLOSE.
45104         * modules/fchdir (Depends-on): Add close.
45105
45106 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45107             Bruno Haible  <bruno@clisp.org>
45108
45109         * lib/fcntl.in.h (open): Simplify conditionals.
45110         (_gl_register_fd): New declaration.
45111         * lib/fchdir.c (rpl_open): Remove function.
45112         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45113         also.
45114         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45115         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45116         open.
45117
45118 2008-10-09  Jim Meyering  <meyering@redhat.com>
45119
45120         GNUmakefile: use the more name-space-friendly "_version"
45121         * top/GNUmakefile (_dummy): Update.
45122         (_version): Rename from "version".
45123
45124 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45125             Bruno Haible  <bruno@clisp.org>
45126
45127         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45128         rpl_close.
45129         (_gl_register_fd): New function, extracted from rpl_open.
45130         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45131         (rpl_open, rpl_opendir): Use _gl_register_fd.
45132
45133 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45134
45135         Fix organization of 'open' replacement.
45136         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45137         (gl_FUNC_OPEN): Use it.
45138         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45139
45140 2008-10-08  Bruno Haible  <bruno@clisp.org>
45141
45142         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45143
45144 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45145
45146         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45147         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45148         listen).
45149
45150 2008-10-08  Eric Blake  <ebb9@byu.net>
45151
45152         GNUmakefile: add 'make version' target
45153         * top/GNUmakefile (_curr-ver): Split version update rules...
45154         (version): ...into a target.
45155
45156 2008-10-07  Bruno Haible  <bruno@clisp.org>
45157
45158         Use a more portable replacement expression for -0.0L.
45159         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45160         instead of -0.0L. Fix m4 quotation.
45161
45162         * tests/test-signbit.c: Include <float.h>.
45163         (minus_zero): New variable.
45164         (test_signbitl): Use minus_zero instead of -zero.
45165         * modules/signbit-tests (Depends-on): Add float.
45166
45167         * tests/test-ceill.c: Include <float.h>.
45168         (zero): Remove variable.
45169         (minus_zero): New variable.
45170         (main): Use minus_zero instead of -zero.
45171         * modules/ceill-tests (Depends-on): Add float.
45172
45173         * tests/test-floorl.c: Include <float.h>.
45174         (zero): Remove variable.
45175         (minus_zero): New variable.
45176         (main): Use minus_zero instead of -zero.
45177         * modules/floorl-tests (Depends-on): Add float.
45178
45179         * tests/test-roundl.c: Include <float.h>.
45180         (zero): Remove variable.
45181         (minus_zero): New variable.
45182         (main): Use minus_zero instead of -zero.
45183         * modules/roundl-tests (Depends-on): Add float.
45184
45185         * tests/test-truncl.c: Include <float.h>.
45186         (zero): Remove variable.
45187         (minus_zero): New variable.
45188         (main): Use minus_zero instead of -zero.
45189         * modules/truncl-tests (Depends-on): Add float.
45190
45191         * tests/test-frexpl.c (zero): Remove variable.
45192         (minus_zero): New variable.
45193         (main): Use minus_zero instead of -zero.
45194         * modules/frexpl-tests (Depends-on): Add float.
45195
45196         * tests/test-isnan.c (zerol): Remove variable.
45197         (minus_zerol): New variable.
45198         (test_long_double): Use minus_zerol instead of -zerol.
45199         * modules/isnan-tests (Depends-on): Add float.
45200
45201         * tests/test-isnanl.h (zero): Remove variable.
45202         (minus_zero): New variable.
45203         (main): Use minus_zero instead of -zero.
45204         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45205         * modules/isnanl-tests (Depends-on): Add float.
45206
45207         * tests/test-ldexpl.c (zero): Remove variable.
45208         (minus_zero): New variable.
45209         (main): Use minus_zero instead of -zero.
45210         * modules/ldexpl-tests (Depends-on): Add float.
45211
45212         * tests/test-snprintf-posix.h (zerol): Remove variable.
45213         (minus_zerol): New variable.
45214         (test_function): Use minus_zerol instead of -zerol.
45215         * modules/snprintf-posix-tests (Depends-on): Add float.
45216         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45217
45218         * tests/test-sprintf-posix.h (zerol): Remove variable.
45219         (minus_zerol): New variable.
45220         (test_function): Use minus_zerol instead of -zerol.
45221         * modules/sprintf-posix-tests (Depends-on): Add float.
45222         * modules/vsprintf-posix-tests (Depends-on): Add float.
45223
45224         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45225         (minus_zerol): New variable.
45226         (test_function): Use minus_zerol instead of -zerol.
45227         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45228
45229         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45230         (minus_zerol): New variable.
45231         (test_function): Use minus_zerol instead of -zerol.
45232         * modules/vasprintf-posix-tests (Depends-on): Add float.
45233
45234 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45235
45236         * MODULES.html.sh (Support for building documentation): Mention
45237         pmccabe2html.  Sort entries.
45238
45239         Add pmccabe2html module, from gnupdf.
45240         * build-aux/pmccabe.css: New file.
45241         * build-aux/pmccabe2html: New file.
45242         * m4/pmccabe2html.m4: New file.
45243         * modules/pmccabe2html: New file.
45244
45245 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45246
45247         flock: new module
45248         * MODULES.html.sh: Add to list of modules.
45249         * lib/flock.c: flock implementation for Windows and Unix systems
45250         which have fcntl.
45251         * doc/glibc-functions/flock.texi: Update documentation.
45252         * lib/sys_file.in.h: <sys/file.h> header file.
45253         * m4/flock.m4: M4 macros.
45254         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45255         * modules/flock: flock module.
45256         * modules/flock-tests: flock tests module.
45257         * modules/sys_file: sys/file.h module.
45258         * tests/test-flock.c: test suite for flock.
45259
45260 2008-10-06  Jim Meyering  <meyering@redhat.com>
45261
45262         bootstrap: check for LT_INIT more portably still ;-)
45263         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45264         Spotted by Bruno Haible.
45265
45266 2008-10-06  Eric Blake  <ebb9@byu.net>
45267
45268         test-signbit: avoid tripping Irix cc bug on -0.0L
45269         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45270         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45271         entire testsuite consistent and avoids an Irix 6.2 bug.
45272
45273 2008-10-05  Bruno Haible  <bruno@clisp.org>
45274             Jim Meyering  <jim@meyering.net>
45275
45276         Add an option for ignoring EPIPE during close_stdout.
45277         * lib/closeout.h: Include <stdbool.h>.
45278         (close_stdout_set_ignore_EPIPE): New declaration.
45279         * lib/closeout.c: Include <stdbool.h>.
45280         (ignore_EPIPE): New variable.
45281         (close_stdout_set_ignore_EPIPE): New function.
45282         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45283         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45284         failure.
45285         * modules/closeout (Depends-on): Add stdbool.
45286
45287 2008-10-05  Bruno Haible  <bruno@clisp.org>
45288
45289         * modules/accept: New file.
45290         * modules/bind: New file.
45291         * modules/connect: New file.
45292         * modules/getpeername: New file.
45293         * modules/getsockname: New file.
45294         * modules/getsockopt: New file.
45295         * modules/listen: New file.
45296         * modules/recv: New file.
45297         * modules/recvfrom: New file.
45298         * modules/send: New file.
45299         * modules/sendto: New file.
45300         * modules/setsockopt: New file.
45301         * modules/socket: New file.
45302         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45303         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45304         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45305         the particular module is requested. Add a link warning when the
45306         particular module is not requested.
45307         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45308         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45309         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45310         the particular module is requested.
45311         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45312         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45313         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45314         * modules/sys_socket (Depends-on): Add link-warning.
45315         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45316         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45317         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45318         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45319         GL_LINK_WARNING.
45320         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45321         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45322         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45323         * doc/posix-functions/getpeername.texi: Mention the new module
45324         'getpeername'.
45325         * doc/posix-functions/getsockname.texi: Mention the new module
45326         'getsockname'.
45327         * doc/posix-functions/getsockopt.texi: Mention the new module
45328         'getsockopt'.
45329         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45330         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45331         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45332         * doc/posix-functions/send.texi: Mention the new module 'send'.
45333         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45334         * doc/posix-functions/setsockopt.texi: Mention the new module
45335         'setsockopt'.
45336         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45337         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45338         listen, connect, accept.
45339         * modules/select-tests (Depends-on): Likewise.
45340
45341 2008-10-05  Bruno Haible  <bruno@clisp.org>
45342
45343         * lib/winsock.c (strerror): Remove unused #undef.
45344         (rpl_close): Remove unused local variable.
45345
45346         * modules/sys_socket (Depends-on); Add errno.
45347
45348 2008-10-05  Bruno Haible  <bruno@clisp.org>
45349
45350         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45351         (select): Add a link warning when the 'select' module is not used.
45352         * modules/sys_select (Depends-on): Add link-warning.
45353         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
45354         Suggested by Paolo Bonzini.
45355
45356 2008-10-05  Jim Meyering  <meyering@redhat.com>
45357
45358         bootstrap: check for LT_INIT more portably
45359         * build-aux/bootstrap: Avoid using grep -E, since it's not
45360         portable enough.  Suggestion from Bruno Haible.
45361
45362 2008-10-05  Bruno Haible  <bruno@clisp.org>
45363
45364         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
45365         as being fixed by gnulib.
45366
45367 2008-10-05  Bruno Haible  <bruno@clisp.org>
45368
45369         * modules/select-tests: New file, mostly copied from
45370         modules/sys_select-tests.
45371         * tests/test-select.c: New file, mostly copied from
45372         tests/test-sys_select.c.
45373         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
45374         * modules/sys_select-tests (Depends-on): Remove all dependencies.
45375         (Makefile.am): Remove test_sys_select_LDADD.
45376
45377         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
45378         to an undefined symbol, for an error message.
45379         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
45380         (gl_SYS_SELECT_H_DEFAULTS): New macro.
45381         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
45382         winsock-select.c here.
45383         * modules/sys_select (Files): Remove lib/winsock-select.c.
45384         (Depends-on): Remove alloca.
45385         (Makefile.am): Substitute GNULIB_SELECT.
45386         * modules/select: New file.
45387         * doc/posix-functions/select.texi: Update.
45388
45389 2008-10-05  Bruno Haible  <bruno@clisp.org>
45390
45391         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
45392         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
45393         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
45394         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
45395         getdtablesize.
45396         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45397         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45398
45399 2008-10-05  Bruno Haible  <bruno@clisp.org>
45400
45401         * modules/getdtablesize-tests: New file.
45402         * tests/test-getdtablesize.c: New file.
45403
45404         New module 'getdtablesize'.
45405         * lib/unistd.in.h (getdtablesize): New declaration.
45406         * lib/getdtablesize.c: New file.
45407         * m4/getdtablesize.m4: New file.
45408         * modules/getdtablesize: New file.
45409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45410         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
45411         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
45412         HAVE_GETDTABLESIZE.
45413         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
45414
45415 2008-10-05  Bruno Haible  <bruno@clisp.org>
45416
45417         * modules/sched (Makefile.am): Fix typo.
45418         Reported by Simon Josefsson.
45419
45420 2008-10-05  Jim Meyering  <meyering@redhat.com>
45421
45422         bootstrap: check for LT_INIT, too
45423         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
45424         are deprecated.  Suggestion from Ralf Wildenhues.
45425
45426 2008-10-05  Bruno Haible  <bruno@clisp.org>
45427
45428         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
45429         overriding them by ours.
45430         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
45431
45432 2008-10-05  Jim Meyering  <meyering@redhat.com>
45433
45434         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
45435         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
45436         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
45437
45438 2008-10-04  Bruno Haible  <bruno@clisp.org>
45439
45440         * modules/dup2 (License): Change to LGPLv2+.
45441         * modules/sleep (License): Likewise.
45442         * modules/perror (License): Likewise.
45443         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
45444         Blake.
45445         * modules/signal (License): Likewise.
45446         * modules/sigprocmask (License): Likewise.
45447         * modules/raise (License): Change to LGPLv2+, with approval by Jim
45448         Meyering.
45449
45450 2008-10-04  Bruno Haible  <bruno@clisp.org>
45451
45452         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45453         Reported by Rainer Tammer <tammer@tammer.net>.
45454
45455 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45456             Bruno Haible  <bruno@clisp.org>
45457
45458         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45459         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45460         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45461
45462 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45463
45464         filevercmp: new module
45465         * lib/filevercmp.h: New function filevercmp comparing version strings.
45466         * lib/filevercmp.c: Implementation of filevercmp function.
45467         * modules/filevercmp: Module metadata.
45468         * tests/test-filevercmp.c: Unit test for new module.
45469         * modules/filevercmp-tests: Unit test metadata.
45470         * MODULES.html.sh: Add filevercmp module.
45471
45472 2008-10-03  Bruno Haible  <bruno@clisp.org>
45473
45474         * lib/c-ctype.h: Add comment.
45475         Reported by Jim Meyering.
45476
45477 2008-10-02  Bruno Haible  <bruno@clisp.org>
45478
45479         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45480
45481 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45482
45483         * build-aux/bootstrap: Allow renaming bootstrap, and change the
45484         name of bootstrap.conf accordingly.
45485
45486 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45487
45488         * build-aux/bootstrap: Install git-merge-changelog configuration
45489         items into .gitconfig if needed.
45490
45491 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45492
45493         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
45494         git repository, and initialize/update it accordingly.
45495
45496 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
45497
45498         * modules/fsync-tests: New file.
45499         * tests/test-fsync.c: New file.
45500
45501         New module 'fsync'.
45502         * lib/fsync.c: New file.
45503         * m4/fsync.m4: New file.
45504         * modules/fsync: New file.
45505         * lib/unistd.in.h (fsync): New declaration.
45506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
45507         GNULIB_FSYNC and HAVE_FSYNC.
45508         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
45509         * MODULES.html.sh (posix_functions): Add fsync.
45510         * doc/posix-functions/fsync.texi: Mention the new module.
45511
45512 2008-10-02  Jim Meyering  <meyering@redhat.com>
45513
45514         fts.c: sync with similar code from coreutils' remove.c
45515         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
45516         Guard also with "#if defined __linux__", since for now at least,
45517         this code is Linux-kernel-specific.
45518
45519 2008-10-02  Jim Meyering  <meyering@redhat.com>
45520
45521         fts: bug fixes
45522         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45523         Include <sys/vfs.h>, not <sys/statfs.h>.
45524
45525         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45526         Include <sys/vfs.h>, not <sys/statfs.h>.
45527
45528 2008-10-01  Bruno Haible  <bruno@clisp.org>
45529
45530         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
45531         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
45532         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
45533         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
45534         * doc/posix-functions/posix_spawnp.texi: Likewise.
45535         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
45536         whether posix_spawn actually works.
45537         * m4/pipe.m4 (gl_PIPE): Likewise.
45538         * modules/execute (Files): Add m4/posix_spawn.m4.
45539         * modules/pipe (Files): Add m4/posix_spawn.m4.
45540         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
45541
45542 2008-10-01  Jim Meyering  <meyering@redhat.com>
45543
45544         remove trailing spaces
45545         * NEWS: Likewise.
45546         * lib/poll.c (poll): Likewise.
45547         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
45548         * lib/winsock.c (rpl_close): Likewise.
45549         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
45550         * modules/yield: Likewise.
45551         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
45552         * tests/test-sys_select.c (connect_to_socket): Likewise.
45553
45554         fts.c: adjust a new interface to be more generally useful
45555         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
45556         (fts_build): Adjust caller.
45557
45558 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45559
45560         * modules/cond-tests: New file.
45561         * tests/test-cond.c: New file.
45562
45563 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45564             Bruno Haible  <bruno@clisp.org>
45565
45566         * modules/cond (Dependencies): Add errno, time.
45567         * lib/glthread/cond.h: Include <time.h>.
45568         (gl_cond_define, gl_cond_define_initialized): Use the same definition
45569         across platforms.
45570
45571 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45572             Bruno Haible  <bruno@clisp.org>
45573
45574         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
45575
45576 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45577             Bruno Haible  <bruno@clisp.org>
45578
45579         * modules/tls-tests (Depends-on): Add thread, yield.
45580         (configure.ac): Remove all checks.
45581         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
45582         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45583         gl_thread_self): Remove definitions. Include glthread/thread.h and
45584         glthread/yield.h instead.
45585         (test_tls): Pass an additional NULL argument to gl_thread_join.
45586
45587 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45588             Bruno Haible  <bruno@clisp.org>
45589
45590         * modules/lock-tests (Depends-on): Add thread, yield.
45591         (configure.ac): Remove all checks.
45592         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
45593         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45594         gl_thread_self): Remove definitions. Include glthread/thread.h and
45595         glthread/yield.h instead.
45596         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
45597         additional NULL argument to gl_thread_join.
45598
45599 2008-09-30  Bruno Haible  <bruno@clisp.org>
45600
45601         Fix the Win32 implementation of the 'thread' module.
45602         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
45603         pointer type.
45604         (gl_thread_self): Invoke gl_thread_self_func.
45605         (gl_thread_self_func): New declaration.
45606         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
45607         (do_init_self_key, init_self_key): New functions.
45608         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
45609         Remove some fields.
45610         (running_threads, running_lock): Remove variables.
45611         (get_current_thread_handle): New function.
45612         (gl_thread_self_func, wrapper_func, glthread_create_func,
45613         glthread_join_func, gl_thread_exit_func): Largely rewritten and
45614         simplified.
45615
45616 2008-09-30  Bruno Haible  <bruno@clisp.org>
45617
45618         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
45619         files.
45620
45621 2008-09-30  Jim Meyering  <meyering@redhat.com>
45622
45623         fts.m4: correct the test for statfs.f_type
45624         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
45625         when checking for statfs.f_type.
45626
45627 2008-09-15  Simon Josefsson  <simon@josefsson.org>
45628
45629         tests: avoid some compiler warnings
45630         * tests/test-memchr.c (main): Pass NULL indirectly.
45631         * tests/test-getdate.c (main): Remove unused variable 'ret'.
45632
45633 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
45634
45635         getdate.y: disallow countable dayshifts like "4 yesterday ago"
45636         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
45637         exactly specified dayshifts.
45638         (dayshift): New rule.
45639         (rel): Add dayshift.
45640         (relative_time_table) [tomorrow, yesterday, today, now]:
45641         Use tDAY_SHIFT in place of tDAY_UNIT.
45642         * tests/test-getdate.c: Add tests for now-disallowed countable
45643         dayshifts, e.g., "4 yesterday ago".
45644
45645 2008-09-29  Bruno Haible  <bruno@clisp.org>
45646
45647         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
45648         * tests/test-posix_spawn1.in.sh: Renamed from
45649         tests/test-posix_spawn.in.sh.
45650         * tests/test-posix_spawn2.c: New file.
45651         * tests/test-posix_spawn2.in.sh: New file.
45652         * modules/posix_spawnp-tests (Files): Update.
45653         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
45654
45655 2008-09-29  Bruno Haible  <bruno@clisp.org>
45656
45657         Propagate effects of putenv/setenv/unsetenv to child processes.
45658         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
45659         * lib/pipe.c (create_pipe): Likewise.
45660
45661 2008-09-29  Bruno Haible  <bruno@clisp.org>
45662
45663         Enable use of shell scripts as executables in mingw.
45664         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
45665         run the program as a shell script.
45666         * lib/pipe.c (create_pipe): Likewise.
45667         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
45668         resulting array.
45669
45670 2008-09-29  Eric Blake  <ebb9@byu.net>
45671
45672         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
45673
45674 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
45675
45676         * doc/posix-functions/accept.texi: Update mingw problems.
45677         * doc/posix-functions/bind.texi: Update mingw problems.
45678         * doc/posix-functions/close.texi: Update mingw problems.
45679         * doc/posix-functions/connect.texi: Update mingw problems.
45680         * doc/posix-functions/getpeername.texi: Update mingw problems.
45681         * doc/posix-functions/getsockname.texi: Update mingw problems.
45682         * doc/posix-functions/getsockopt.texi: Update mingw problems.
45683         * doc/posix-functions/ioctl.texi: Update mingw problems.
45684         * doc/posix-functions/listen.texi: Update mingw problems.
45685         * doc/posix-functions/recv.texi: Update mingw problems.
45686         * doc/posix-functions/recvfrom.texi: Update mingw problems.
45687         * doc/posix-functions/select.texi: Update mingw problems.
45688         * doc/posix-functions/send.texi: Update mingw problems.
45689         * doc/posix-functions/sendto.texi: Update mingw problems.
45690         * doc/posix-functions/setsockopt.texi: Update mingw problems.
45691         * doc/posix-functions/socket.texi: Update mingw problems.
45692
45693 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
45694             Bruno Haible  <bruno@clisp.org>
45695
45696         * lib/sys_select.in.h: Include sys/time.h.
45697         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
45698         * modules/sys_select: Depend on sys_time.
45699         * tests/test-sys_select.c: Test that sys/select.h defines struct
45700         timeval fully.
45701
45702 2008-09-29  Bruno Haible  <bruno@clisp.org>
45703
45704         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
45705         * lib/sys_select.in.h: Likewise.
45706
45707 2008-09-29  Bruno Haible  <bruno@clisp.org>
45708
45709         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
45710
45711 2008-09-29  Bruno Haible  <bruno@clisp.org>
45712
45713         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
45714         Set LIBSOCKET instead of augmenting LIBS.
45715         * modules/sockets (Link): New section.
45716         * modules/sockets-tests (test_sockets_LDADD): New variable.
45717         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
45718         * modules/poll-tests (test_poll_LDADD): New variable.
45719         * NEWS: Document the change.
45720
45721 2008-09-29  Bruno Haible  <bruno@clisp.org>
45722
45723         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
45724         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
45725         ARPA_INET_H directly.
45726         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45727
45728 2008-09-28  Bruno Haible  <bruno@clisp.org>
45729
45730         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
45731         from gl_HEADER_SYS_SOCKET.
45732         (gl_HEADER_SYS_SOCKET): Invoke it.
45733         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45734
45735 2008-09-28  Bruno Haible  <bruno@clisp.org>
45736
45737         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
45738         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
45739         Needed on OSF/1 4.0.
45740
45741 2008-09-28  Bruno Haible  <bruno@clisp.org>
45742
45743         Override open more carefully.
45744         * lib/open.c (orig_open): New function.
45745         (rpl_open): Use orig_open instead of open.
45746         * lib/fcntl.in.h: Add special invocation convention.
45747         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
45748         (gl_FUNC_OPEN): Invoke it.
45749
45750         Override freopen more carefully.
45751         * lib/freopen.c (orig_freopen): New function.
45752         (rpl_freopen): Use orig_freopen instead of freopen.
45753         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
45754         (gl_FUNC_FREOPEN): Invoke it.
45755
45756         Override fopen more carefully.
45757         * lib/fopen.c (orig_fopen): New function.
45758         (rpl_fopen): Use orig_fopen instead of fopen.
45759         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
45760         (gl_FUNC_FOPEN): Invoke it.
45761         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
45762
45763 2008-09-28  Bruno Haible  <bruno@clisp.org>
45764
45765         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
45766         SIGPIPE.
45767
45768 2008-09-28  Bruno Haible  <bruno@clisp.org>
45769
45770         * tests/test-sigaction.c (handler, main): Disable the check whether
45771         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
45772         glibc systems with LinuxThreads.
45773
45774 2008-09-28  Bruno Haible  <bruno@clisp.org>
45775
45776         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
45777
45778         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
45779         with AIX xlc.
45780         * lib/fcntl.in.h (open): Likewise.
45781         Reported by Rainer Tammer <tammer@tammer.net>.
45782
45783 2008-09-28  Bruno Haible  <bruno@clisp.org>
45784
45785         * modules/posix_spawnp-tests: New file.
45786         * tests/test-posix_spawn.c: New file.
45787         * tests/test-posix_spawn.in.sh: New file.
45788
45789         New module 'posix_spawnp'.
45790         * modules/posix_spawnp: New file.
45791         * lib/spawnp.c: New file, from GNU libc with modifications.
45792         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
45793
45794         New module 'posix_spawn'.
45795         * modules/posix_spawn: New file.
45796         * lib/spawn.c: New file, from GNU libc with modifications.
45797         * doc/posix-functions/posix_spawn.texi: Mention the new module.
45798
45799         New module 'posix_spawnattr_destroy'.
45800         * modules/posix_spawnattr_destroy: New file.
45801         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
45802         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
45803         module.
45804
45805         New module 'posix_spawnattr_setsigmask'.
45806         * modules/posix_spawnattr_setsigmask: New file.
45807         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
45808         modifications.
45809         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
45810         new module.
45811
45812         New module 'posix_spawnattr_getsigmask'.
45813         * modules/posix_spawnattr_getsigmask: New file.
45814         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
45815         modifications.
45816         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
45817         new module.
45818
45819         New module 'posix_spawnattr_setsigdefault'.
45820         * modules/posix_spawnattr_setsigdefault: New file.
45821         * lib/spawnattr_setdefault.c: New file, from GNU libc with
45822         modifications.
45823         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
45824         new module.
45825
45826         New module 'posix_spawnattr_getsigdefault'.
45827         * modules/posix_spawnattr_getsigdefault: New file.
45828         * lib/spawnattr_getdefault.c: New file, from GNU libc with
45829         modifications.
45830         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
45831         new module.
45832
45833         New module 'posix_spawnattr_setschedpolicy'.
45834         * modules/posix_spawnattr_setschedpolicy: New file.
45835         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
45836         modifications.
45837         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
45838         new module.
45839
45840         New module 'posix_spawnattr_getschedpolicy'.
45841         * modules/posix_spawnattr_getschedpolicy: New file.
45842         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
45843         modifications.
45844         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
45845         new module.
45846
45847         New module 'posix_spawnattr_setschedparam'.
45848         * modules/posix_spawnattr_setschedparam: New file.
45849         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
45850         modifications.
45851         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
45852         new module.
45853
45854         New module 'posix_spawnattr_getschedparam'.
45855         * modules/posix_spawnattr_getschedparam: New file.
45856         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
45857         modifications.
45858         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
45859         new module.
45860
45861         New module 'posix_spawnattr_setpgroup'.
45862         * modules/posix_spawnattr_setpgroup: New file.
45863         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
45864         modifications.
45865         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
45866         module.
45867
45868         New module 'posix_spawnattr_getpgroup'.
45869         * modules/posix_spawnattr_getpgroup: New file.
45870         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
45871         modifications.
45872         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
45873         module.
45874
45875         New module 'posix_spawnattr_setflags'.
45876         * modules/posix_spawnattr_setflags: New file.
45877         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
45878         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
45879         module.
45880
45881         New module 'posix_spawnattr_getflags'.
45882         * modules/posix_spawnattr_getflags: New file.
45883         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
45884         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
45885         module.
45886
45887         New module 'posix_spawnattr_init'.
45888         * modules/posix_spawnattr_init: New file.
45889         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
45890         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
45891         module.
45892
45893         New module 'posix_spawn_file_actions_destroy'.
45894         * modules/posix_spawn_file_actions_destroy: New file.
45895         * lib/spawn_faction_destroy.c: New file, from GNU libc with
45896         modifications.
45897         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
45898         the new module.
45899
45900         New module 'posix_spawn_file_actions_addopen'.
45901         * modules/posix_spawn_file_actions_addopen: New file.
45902         * lib/spawn_faction_addopen.c: New file, from GNU libc with
45903         modifications.
45904         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
45905         the new module.
45906
45907         New module 'posix_spawn_file_actions_adddup2'.
45908         * modules/posix_spawn_file_actions_adddup2: New file.
45909         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
45910         modifications.
45911         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
45912         the new module.
45913
45914         New module 'posix_spawn_file_actions_addclose'.
45915         * modules/posix_spawn_file_actions_addclose: New file.
45916         * lib/spawn_faction_addclose.c: New file, from GNU libc with
45917         modifications.
45918         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
45919         the new module.
45920
45921         New module 'posix_spawn_file_actions_init'.
45922         * modules/posix_spawn_file_actions_init: New file.
45923         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
45924         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
45925         new module.
45926
45927         New module 'posix_spawn-internal'.
45928         * modules/posix_spawn-internal: New file.
45929         * lib/spawn_int.h: New file, from GNU libc with modifications.
45930         * lib/spawni.c: New file, from GNU libc with modifications.
45931         * m4/posix_spawn.m4: New file.
45932
45933         New module 'spawn'.
45934         * modules/spawn: New file.
45935         * lib/spawn.in.h: New file, from GNU libc with modifications.
45936         * m4/spawn_h.m4: New file.
45937         * doc/posix-headers/spawn.texi: Mention the new module.
45938
45939 2008-09-28  Bruno Haible  <bruno@clisp.org>
45940
45941         * modules/sched-tests: New file.
45942         * tests/test-sched.c: New file.
45943
45944         New module 'sched'.
45945         * modules/sched: New file.
45946         * lib/sched.in.h: New file.
45947         * m4/sched_h.m4: New file.
45948         * doc/posix-headers/sched.texi: Mention the new module.
45949
45950 2008-09-27  Eric Blake  <ebb9@byu.net>
45951
45952         Fix previous patch, and tweak references to $0.
45953         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
45954         (func_version, func_gnulib_dir): Don't call this program
45955         gnulib-tool.
45956         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
45957         with using $0 in function.
45958         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
45959         (func_fatal_error): Reuse the name the user invoked us with.
45960
45961 2008-09-27  Bruno Haible  <bruno@clisp.org>
45962
45963         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
45964         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
45965         (gl_ICONV_H): Not here.
45966         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
45967         instead of assigning ICONV_H directly.
45968
45969         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
45970         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
45971         WCHAR_H directly.
45972
45973 2008-09-27  Bruno Haible  <bruno@clisp.org>
45974
45975         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
45976         * modules/arpa_inet (Depends-on): Add link-warning.
45977         (Makefile.am): Insert the definition of GL_LINK-WARNING.
45978         * modules/unistd (Makefile.am): Likewise.
45979
45980 2008-09-26  Bruno Haible  <bruno@clisp.org>
45981
45982         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
45983         variables.
45984         (func_version): Essentially copied from gnulib-tool.
45985         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
45986         func_readlink): Copied from gnulib-tool.
45987
45988 2008-09-26  Bruno Haible  <bruno@clisp.org>
45989
45990         * gnulib-tool (func_version): Change directory to $gnulib_dir before
45991         invoking git-version-gen.
45992
45993 2008-09-26  Bruno Haible  <bruno@clisp.org>
45994
45995         * posix-modules: Update to directory names changed on 2008-01-19.
45996         Remove commas in output before splitting into words. No more need to
45997         avoid 'ftruncate' since 2007-02-19.
45998
45999 2008-09-26  Bruno Haible  <bruno@clisp.org>
46000
46001         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46002
46003 2008-09-26  Bruno Haible  <bruno@clisp.org>
46004
46005         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46006         * modules/fwriteerror (Depends-on): Add errno.
46007
46008 2008-09-26  Bruno Haible  <bruno@clisp.org>
46009
46010         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46011         * tests/test-vc-list-files-cvs.sh: Likewise.
46012
46013 2008-09-26  Bruno Haible  <bruno@clisp.org>
46014
46015         * doc/posix-headers/sys_resource.texi: Reorder items.
46016
46017 2008-09-26  Jim Meyering  <meyering@redhat.com>
46018
46019         fts: tweak inode comparison function
46020         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46021         inode numbers, as documented.
46022
46023         fts: sort dirent entries on inode number before traversing
46024         This avoids a quadratic, seek-related performance penalty when
46025         operating on a directory containing many entries (measurable at 10k;
46026         3.5 hours at 2 million entries with a cold cache) on certain types
46027         of file systems, including ext3 and ext4, but not tmpfs.
46028         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46029         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46030         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46031         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46032         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46033         (fts_build): Set the stat.st_ino member from D_INO.
46034         If it is likely to be useful, sort dirent entries on inode number.
46035
46036         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46037         and the struct statfs.f_type member.
46038         * modules/fts (Depends-on): Add d-ino.
46039
46040 2008-09-26  Bruno Haible  <bruno@clisp.org>
46041
46042         * modules/sigpipe-die (Depends-on): Add sigpipe.
46043
46044         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46045         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46046         and GNULIB_STDIO_H_SIGPIPE are set.
46047         * lib/stdio-write.c: New file.
46048         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46049         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46050         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46051         REPLACE_STDIO_WRITE_FUNCS.
46052         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46053         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46054         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46055         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46056         * modules/stdio (Files): Add lib/stdio-write.c.
46057         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46058         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46059         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46060         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46061         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46062         REPLACE_FPRINTF_POSIX.
46063         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46064         REPLACE_PRINTF_POSIX.
46065         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46066         REPLACE_VFPRINTF_POSIX.
46067         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46068         REPLACE_VPRINTF_POSIX.
46069         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46070         SIGPIPE issue.
46071         * doc/posix-functions/fputc.texi: Likewise.
46072         * doc/posix-functions/fputs.texi: Likewise.
46073         * doc/posix-functions/fwrite.texi: Likewise.
46074         * doc/posix-functions/printf.texi: Likewise.
46075         * doc/posix-functions/putc.texi: Likewise.
46076         * doc/posix-functions/putchar.texi: Likewise.
46077         * doc/posix-functions/puts.texi: Likewise.
46078         * doc/posix-functions/vfprintf.texi: Likewise.
46079         * doc/posix-functions/vprintf.texi: Likewise.
46080
46081         * modules/safe-write (Depends-on): Add write.
46082
46083         * modules/sigpipe-tests: New file.
46084         * tests/test-sigpipe.c: New file.
46085         * tests/test-sigpipe.sh: New file.
46086
46087         * modules/write: New file.
46088         * lib/unistd.in.h: Include <sys/types.h>.
46089         (write): New declaration.
46090         * lib/write.c: New file.
46091         * m4/write.m4: New file.
46092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46093         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46094         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46095         GNULIB_WRITE, REPLACE_WRITE.
46096         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46097         and the SIGPIPE issue.
46098
46099         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46100         (raise): New declaration.
46101         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46102         (ext_signal): New function.
46103         (rpl_raise): New function.
46104         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46105         GNULIB_SIGNAL_H_SIGPIPE.
46106         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46107         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46108
46109         * modules/sigpipe: New file.
46110         * m4/sigpipe.m4: New file.
46111
46112 2008-09-25  Derek Price  <derek@ximbiot.com>
46113             Bruno Haible  <bruno@clisp.org>
46114
46115         * gnulib-tool (func_import): Report all license incompatibilities, not
46116         just the first one.
46117
46118 2008-09-25  Bruno Haible  <bruno@clisp.org>
46119
46120         * gnulib-tool (func_import): When computing the edits, consider not
46121         only the Makefile.ams that exist but also those that will be generated.
46122
46123 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46124
46125         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46126         fixes gnulib-tool --test warning about duplicate dependency.
46127
46128 2008-09-25  Bruno Haible  <bruno@clisp.org>
46129
46130         * gnulib-tool: Don't ask the user to perform edits in the generated
46131         Makefile.ams.
46132         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46133         apply to the Makefile.am being generated.
46134         (func_emit_tests_Makefile_am): Execute edits that apply to the
46135         Makefile.am being generated.
46136         (func_import): Setup list of Makefile.am edits before emitting the
46137         Makefile.ams, not at the end.
46138         (func_create_testdir): Update.
46139         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46140
46141 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46142
46143         * gnulib-tool (func_import): Store the --tests-base option in the
46144         comment in gnulib-cache.m4.
46145
46146 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46147
46148         * NEWS: Document increased portability that sys_select now provides.
46149
46150         * lib/sys_select.in.h: Install select wrapper.
46151         * lib/sys_socket.in.h: Use more descriptive name when there is no
46152         select wrapper.
46153         * lib/winsock-select.c: New.
46154         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46155         Require gl_HEADER_SYS_SOCKET.
46156         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46157         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46158         * tests/test-sys_select.c: Add functional tests.
46159
46160 2008-09-24  Eric Blake  <ebb9@byu.net>
46161
46162         open, fopen: close fd leak in last patch
46163         * lib/open.c (rpl_open): Close fd before returning error.
46164         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46165         * doc/posix-functions/open.texi (open): Document that Irix also
46166         has the bug.
46167         * doc/posix-functions/fopen.texi (fopen): Likewise.
46168         Reported by Paolo Bonzini.
46169
46170 2008-09-24  Bruno Haible  <bruno@clisp.org>
46171
46172         Ensure that a filename ending in a slash cannot be used to access a
46173         non-directory.
46174         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46175         to check whether it's really a directory.
46176         * lib/fopen.c: Include fcntl.h, unistd.h.
46177         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46178         and fdopen().
46179         * modules/fopen (Depends-on): Add unistd.
46180         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46181         * tests/test-fopen.c (main): Likewise.
46182         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46183         * doc/posix-functions/fopen.texi: Likewise.
46184         Reported by Eric Blake.
46185
46186 2008-09-23  Eric Blake  <ebb9@byu.net>
46187
46188         c-stack: avoid compiler optimizations when provoking overflow
46189         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46190         recursion harder to optimize, to ensure a stack overflow occurs.
46191         * tests/test-c-stack.c (recurse): Likewise.
46192         Borrowed from libsigsegv.
46193
46194         c-stack: work around Irix sigaltstack bug
46195         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46196         whether sigaltstack uses wrong end of stack_t (copied in part from
46197         libsigsegv).
46198         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46199         Irix bug, without requiring an over-allocation.
46200         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46201         bug.
46202
46203         fopen: document mingw bug on directories
46204         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46205         not allowing a stream visiting a directory, even though reading
46206         from such a stream is not portable.
46207
46208 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46209
46210         * lib/poll.c: Rewrite.
46211         * modules/poll: Depend on alloca.
46212
46213 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46214
46215         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46216         instead define prototypes for a full set of wrappers.  Ensure
46217         that Cygwin does not use the compatibility code, which is only
46218         for MinGW.
46219         * lib/winsock.c: New.
46220         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46221         * modules/sys_socket: Add lib/winsock.c.
46222
46223         * modules/poll-tests: Add errno and perror.
46224         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46225
46226 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46227
46228         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46229
46230 2008-09-23  Bruno Haible  <bruno@clisp.org>
46231
46232         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46233         * doc/glibc-functions/*: Likewise.
46234
46235 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46236
46237         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46238         success.
46239
46240 2008-09-22  Eric Blake  <ebb9@byu.net>
46241             Bruno Haible  <bruno@clisp.org>
46242
46243         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46244         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46245         supply %A but mishandle pseudo-NaN.
46246         Reported by Simon Josefsson.
46247
46248 2008-09-21  Bruno Haible  <bruno@clisp.org>
46249
46250         * tests/test-lock.c (main): Tweak skip message.
46251         * tests/test-tls.c (main): Likewise.
46252
46253 2008-09-21  Bruno Haible  <bruno@clisp.org>
46254
46255         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46256         whether 'struct sigaction' has sa_sigaction here...
46257         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46258         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46259
46260 2008-09-21  Bruno Haible  <bruno@clisp.org>
46261
46262         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46263         section.
46264         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46265         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46266         the new section.
46267         (Support for obsolete systems lacking POSIX:2001): New section.
46268         (String handling <string.h>): Move strdup to the new section.
46269         Suggested by Simon Josefsson and Paolo Bonzini.
46270
46271 2008-09-21  Bruno Haible  <bruno@clisp.org>
46272
46273         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46274         exponents in %e and %g results on 'long double'. Needed for mingw's
46275         improved *printf functions.
46276         * tests/test-vasprintf-posix.c (test_function): Likewise.
46277         * tests/test-snprintf-posix.h (test_function): Likewise.
46278         * tests/test-sprintf-posix.h (test_function): Likewise.
46279         Reported by Eric Blake.
46280
46281 2008-09-21  Bruno Haible  <bruno@clisp.org>
46282
46283         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46284         * tests/test-sprintf-posix.h (test_function): Likewise.
46285
46286 2008-09-21  Bruno Haible  <bruno@clisp.org>
46287
46288         * modules/getpass (Depends-on): Add strdup-posix.
46289
46290         New module 'strdup-posix'.
46291         * modules/strdup-posix: New file.
46292         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46293         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46294         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46295         REPLACE_STRDUP.
46296         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46297         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46298         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46299         strdup-posix.
46300
46301         * modules/strdup (Depends-on): Remove malloc-posix.
46302
46303 2008-09-20  Bruno Haible  <bruno@clisp.org>
46304
46305         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46306         Wildenhues.
46307
46308 2008-09-20  Bruno Haible  <bruno@clisp.org>
46309
46310         Ensure that wint_t gets defined on IRIX 5.3.
46311         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46312         * lib/wctype.in.h (wint_t): Likewise.
46313         (__wctype_wint_t): Remove type.
46314         (isw*): Use wint_t instead of __wctype_wint_t.
46315         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46316         * modules/wchar (Files): Add m4/wint_t.m4.
46317         (Makefile.am): Substitute HAVE_WINT_T.
46318         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46319         * tests/test-wctype.c: Check that wint_t is defined.
46320         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46321         * doc/posix-headers/wctype.texi: Likewise.
46322         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46323
46324 2008-09-18  Bruno Haible  <bruno@clisp.org>
46325
46326         * gnulib-tool (func_exit): Update comment.
46327
46328 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46329
46330         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46331         assumes strdup exists and does not depend on strdup to return
46332         ENOMEM on out of memory conditions.
46333
46334 2008-09-18  Bruno Haible  <bruno@clisp.org>
46335
46336         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
46337         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46338         digits for the exponent.
46339
46340 2008-09-18  Jim Meyering  <meyering@redhat.com>
46341             Bruno Haible  <bruno@clisp.org>
46342
46343         * lib/vasnprintf.c (decimal_point_char): Define also if
46344         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46345
46346 2008-09-16  Bruno Haible  <bruno@clisp.org>
46347         and Eric Blake  <ebb9@byu.net>
46348
46349         vasnprintf: support Irix 5.3
46350         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46351         that mishandle long double infinity.
46352         Reported by Tom G. Christensen.
46353
46354 2008-09-16  Bruno Haible  <bruno@clisp.org>
46355
46356         * doc/glibc-functions/scandir.texi: Mention the function is missing on
46357         Solaris 9.
46358         * doc/glibc-functions/alphasort.texi: Likewise.
46359         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
46360
46361 2008-09-16  Jim Meyering  <meyering@redhat.com>
46362
46363         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
46364         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
46365         a umask modification leak out of a subshell.  Otherwise, the
46366         opensolaris /bin/sh would be accepted and thus cause unwarranted
46367         failures in the coreutils test suite.
46368
46369 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
46370
46371         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
46372         to succeed.
46373
46374 2008-09-16  Jim Meyering  <meyering@redhat.com>
46375
46376         avoid spurious test failure when library is built without ACL support
46377         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
46378         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
46379         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
46380         * tests/test-copy-acl.sh: Likewise.
46381
46382 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46383
46384         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
46385         based on character occurrence counts.
46386
46387 2008-09-15  Eric Blake  <ebb9@byu.net>
46388
46389         tests: avoid some compiler warnings
46390         * tests/test-memchr.c (main): Pass NULL indirectly.
46391         * tests/test-closein.c (main): Avoid unused variable.
46392
46393 2008-09-15  Bruno Haible  <bruno@clisp.org>
46394
46395         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
46396         are missing on OpenBSD 4.0 individually.
46397         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46398
46399 2008-09-15  Bruno Haible  <bruno@clisp.org>
46400
46401         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
46402         * doc/posix-functions/strerror.texi: Mention also Cygwin.
46403         * doc/posix-functions/perror.texi: Likewise.
46404         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
46405         is missing.
46406         Reported by Eric Blake.
46407
46408         * lib/errno.in.h: Use replacement values >= 2000.
46409         Reported by Eric Blake.
46410
46411 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46412
46413         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
46414         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
46415         limit.
46416         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
46417         compareseq was aborted.
46418
46419 2008-09-14  Bruno Haible  <bruno@clisp.org>
46420
46421         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
46422         yvec_edit_count.
46423         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
46424         (fstrcmp_bounded): Simplify result computation accordingly.
46425
46426 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46427
46428         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
46429         (fstrcmp): Define in terms of fstrcmp_bounded.
46430         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
46431         lower_bound argument.
46432         Return quickly if the result is certainly < lower_bound.
46433         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
46434
46435 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46436
46437         * lib/diffseq.h (EARLY_ABORT): New macro.
46438         (compareseq): Change return type to bool. Return true when EARLY_ABORT
46439         evaluates to true.
46440
46441 2008-09-14  Bruno Haible  <bruno@clisp.org>
46442
46443         * modules/perror-tests: New file.
46444         * tests/test-perror.sh: New file.
46445         * tests/test-perror.c: New file.
46446
46447         New module 'perror'.
46448         * lib/stdio.in.h (perror): New declaration.
46449         * lib/perror.c: New file.
46450         * m4/perror.m4: New file.
46451         * modules/perror: New file.
46452         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46453         * doc/posix-functions/perror.texi: Mention the perror module.
46454         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46455         REPLACE_PERROR.
46456         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46457         REPLACE_PERROR.
46458
46459 2008-09-14  Bruno Haible  <bruno@clisp.org>
46460
46461         * modules/stdio (Makefile.am): Reorder to match the order in
46462         lib/stdio.in.h.
46463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46464
46465 2008-09-13  Bruno Haible  <bruno@clisp.org>
46466
46467         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46468
46469 2008-09-13  Bruno Haible  <bruno@clisp.org>
46470
46471         Extend strerror to cover the added errno values.
46472         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46473         (rpl_strerror): Provide error messages for the added errno values and
46474         for the WSA* values.
46475         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46476         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46477         strerror.
46478         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46479         * modules/strerror (Depends-on): Add errno.
46480         * doc/posix-functions/strerror.texi: Document the change.
46481         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46482         and EOVERFLOW.
46483
46484 2008-09-13  Bruno Haible  <bruno@clisp.org>
46485
46486         * modules/EOVERFLOW: Remove file.
46487         * m4/eoverflow.m4: Remove file.
46488         * modules/EOVERFLOW-tests: Remove file.
46489         * tests/test-EOVERFLOW.c: Remove file.
46490         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
46491         * modules/ftell (Depends-on): Likewise.
46492         * modules/getdelim (Depends-on): Likewise.
46493         * modules/getugroups (Depends-on): Likewise.
46494         * modules/poll (Depends-on): Likewise.
46495         * modules/snprintf (Depends-on): Likewise.
46496         * modules/sprintf-posix (Depends-on): Likewise.
46497         * modules/vasnprintf (Depends-on): Likewise.
46498         * modules/vasprintf (Depends-on): Likewise.
46499         * modules/vfprintf-posix (Depends-on): Likewise.
46500         * modules/vsnprintf (Depends-on): Likewise.
46501         * modules/vsprintf-posix (Depends-on): Likewise.
46502         * modules/xvasprintf (Depends-on): Likewise.
46503         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46504         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
46505         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
46506         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
46507         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46508         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
46509         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
46510         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
46511         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46512         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
46513         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
46514         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
46515         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46516         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
46517         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
46518         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
46519         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46520         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
46521         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
46522         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46523         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46524         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46525         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46526         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
46527         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
46528         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46529         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
46530         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
46531         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
46532         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
46533         * MODULES.html.sh: Remove EOVERFLOW.
46534         * NEWS: Mention the change.
46535
46536 2008-09-13  Bruno Haible  <bruno@clisp.org>
46537
46538         * modules/errno-tests: New file.
46539         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
46540
46541         * lib/errno.in.h: New file.
46542         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
46543         * modules/errno: New file.
46544         * doc/posix-headers/errno.texi: Update documentation.
46545         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
46546
46547 2008-09-13  Bruno Haible  <bruno@clisp.org>
46548
46549         * tests/test-poll.c: Use #if for native Windows, rather than testing
46550         __MSVCRT__.
46551
46552 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46553             Bruno Haible  <bruno@clisp.org>
46554
46555         * lib/glob.c: Don't include <pwd.h> on native Windows.
46556         (WINDOWS32): New macro.
46557         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
46558
46559 2008-09-13  Bruno Haible  <bruno@clisp.org>
46560
46561         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
46562         (ETIMEDOUT): Remove macro.
46563         (glthread_cond_timedwait_multithreaded): New declaration.
46564         (glthread_cond_timedwait): Use it.
46565         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
46566         (glthread_cond_timedwait_multithreaded): New function.
46567
46568 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46569
46570         * modules/poll-tests: Do not check for io.h.
46571         * tests/test-poll.c: Check for __MSVCRT__ instead.
46572
46573 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46574
46575         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
46576         * modules/poll-tests: Add inet_pton, stdbool, sockets.
46577         * tests/test-poll.c: Use them.  Use _pipe on Windows.
46578
46579 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46580
46581         * modules/poll-tests: New.
46582         * tests/test-poll.c: New.
46583
46584 2008-09-12  Eric Blake  <ebb9@byu.net>
46585
46586         frexp: test for NetBSD failure on -0.0
46587         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
46588         not all, bugs from NetBSD 3.0 have been fixed.
46589         * doc/posix-functions/frexp.texi (frexp): Document bug.
46590         Reported by Thomas Klausner.
46591
46592         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
46593         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
46594         literal -0.0.
46595         Reported by Jonathan C. Patschke <jp@centtech.com>.
46596
46597 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46598
46599         * lib/glthread/cond.h: Use dummy implementation also if
46600         USE_WIN32_THREADS.
46601
46602 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46603
46604         * modules/fnmatch-posix (License): Change to LGPLv2+.
46605         * modules/fnmatch-gnu (License): Likewise.
46606
46607 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46608
46609         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
46610
46611 2008-09-11  Jim Meyering  <meyering@redhat.com>
46612
46613         * users.txt: Add gtk-vnc.
46614
46615 2008-09-08  Simon Josefsson  <simon@josefsson.org>
46616
46617         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
46618         rotate amounts.
46619
46620         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
46621         required for 16-bit and 8-bit rotates.
46622         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
46623         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
46624         UINT8_MAX instead of hard-coded constants.
46625         Suggested by Paul Eggert.
46626
46627 2008-09-07  Bruno Haible  <bruno@clisp.org>
46628
46629         * tests/test-striconveh.c (main): Check behaviour when converting from
46630         UTF-7.
46631
46632         Make striconveh work better with stateful encodings.
46633         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
46634         that iconv does not increment the inptr when returning -1/EINVAL.
46635
46636 2008-09-07  Bruno Haible  <bruno@clisp.org>
46637
46638         * build-aux/config.rpath: Update according to libtool-2.2.6.
46639         * build-aux/config.libpath: Likewise.
46640
46641 2008-09-06  Bruno Haible  <bruno@clisp.org>
46642
46643         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
46644         * lib/freadptr.c (freadptr): Likewise.
46645         * lib/freadseek.c (freadptrinc): Likewise.
46646         Reported by Simon Josefsson.
46647
46648 2008-09-06  Bruno Haible  <bruno@clisp.org>
46649
46650         * modules/freadptr (License): Change to LGPLv2+.
46651         * modules/freadseek (License): Likewise.
46652         Suggested by Eric Blake.
46653
46654         * modules/memchr2 (License): Change to LGPLv2+.
46655         Approved by Eric Blake.
46656
46657 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46658             Bruno Haible  <bruno@clisp.org>
46659
46660         Make gnulib-tool work with native 'sed' on AIX.
46661         * gnulib-tool (sed_noop): New variable.
46662         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
46663         func_add_or_update, func_create_testdir): Use it to initialize sed
46664         script variables.
46665         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46666
46667 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
46668             Bruno Haible  <bruno@clisp.org>
46669
46670         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
46671         also works after #include directives.
46672
46673 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
46674
46675         getdate.y: reject an out-of-range timezone value
46676         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
46677         the range [-24...+24].  When specified with only one or two digits,
46678         * tests/test-getdate.c: Tests for the fix.
46679         * doc/getdate.texi: Document this change.
46680
46681 2008-09-03  Bruno Haible  <bruno@clisp.org>
46682
46683         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
46684
46685 2008-09-02  Simon Josefsson  <simon@josefsson.org>
46686
46687         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
46688         <bruce.korb@gmail.com> with ideas from Ben Pfaff
46689         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
46690         Blake <ebb9@byu.net>.
46691
46692         * tests/test-bitrotate.c: Add more test vectors.
46693
46694 2008-09-02  Eric Blake  <ebb9@byu.net>
46695
46696         vasnprintf-posix: handle large precision via %.*d
46697         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
46698         when handling it ourselves.
46699         * tests/test-vasnprintf-posix.c (test_function): Add test.
46700         * tests/test-snprintf-posix.h (test_function): Likewise.
46701         * tests/test-sprintf-posix.h (test_function): Likewise.
46702         * tests/test-vasprintf-posix.c (test_function): Likewise.
46703         Reported by Alain Guibert.
46704
46705 2008-09-01  Eric Blake  <ebb9@byu.net>
46706
46707         c-stack: make configure-time check more robust
46708         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
46709         successful sigaction call.
46710         Reported by Tom G. Christensen.
46711
46712 2008-09-01  Bruno Haible  <bruno@clisp.org>
46713
46714         New module 'findprog-lgpl'.
46715         * modules/findprog-lgpl: New file.
46716         * lib/findprog-lgpl.c: New file.
46717         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
46718         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
46719         to decide whether to use strdup or xstrdup, concatenated_filename or
46720         xconcatenated_filename.
46721
46722 2008-09-01  Bruno Haible  <bruno@clisp.org>
46723
46724         Split module 'concat-filename' into 'concat-filename' (LGPL) and
46725         'xconcat-filename' (GPL).
46726         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
46727         (License): Change to LGPLv2+.
46728         * modules/xconcat-filename: New file.
46729         * lib/concat-filename.h (concatenated_filename): Change specification.
46730         (xconcatenated_filename): New declaration.
46731         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
46732         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
46733         memory situations.
46734         * lib/xconcat-filename.c: New file.
46735         * NEWS: Mention the change.
46736         * lib/findprog.c: Include concat-filename.h, not filename.h.
46737         (find_in_path): Use xconcatenated_filename instead of
46738         concatenated_filename.
46739         * lib/javacomp.c: Include concat-filename.h, not filename.h.
46740         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
46741         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
46742         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
46743         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
46744         instead of concatenated_filename.
46745         * lib/javaexec.c: Include concat-filename.h, not filename.h.
46746         (execute_java_class): Use xconcatenated_filename instead of
46747         concatenated_filename.
46748         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
46749         * modules/javacomp (Depends-on): Likewise.
46750         * modules/javaexec (Depends-on): Likewise.
46751
46752 2008-09-01  Bruno Haible  <bruno@clisp.org>
46753
46754         Split module 'filename' into 'filename' and 'concat-filename'.
46755         * modules/filename: Keep only lib/filename.h.
46756         (License): Change to LGPLv2+.
46757         * modules/concat-filename: New file, extracted from modules/filename.
46758         * lib/filename.h (concatenated_filename): Remove declaration.
46759         * lib/concat-filename.h: New file, extracted from lib/filename.h.
46760         * lib/concat-filename.c: Include concat-filename.h.
46761         * NEWS: Mention the change.
46762
46763 2008-09-01  Simon Josefsson  <simon@josefsson.org>
46764
46765         * lib/bitrotate.h (rotl8, rotr8): Add.
46766
46767         * modules/bitrotate (configure.ac): Need
46768         AC_REQUIRE([AC_C_INLINE]).
46769         (Description): Mention stdint.h.  Reported by Bruno Haible
46770         <bruno@clisp.org>.
46771
46772         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
46773         Paolo Bonzini <bonzini@gnu.org>.
46774
46775 2008-08-31  Bruno Haible  <bruno@clisp.org>
46776
46777         Assume Solaris specific bi-arch conventions on Solaris systems.
46778         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
46779         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
46780         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
46781         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
46782         like acl_libdirstem.
46783         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
46784         acl_libdirstem.
46785         * NEWS: Mention the change.
46786         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
46787
46788 2008-08-31  Jim Meyering  <meyering@redhat.com>
46789
46790         * lib/strftime.h: Add comments describing the two added arguments.
46791
46792         remove duplicate #include directives
46793         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
46794         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
46795
46796 2008-08-31  Bruno Haible  <bruno@clisp.org>
46797
46798         New module 'sigpipe-die'.
46799         * modules/sigpipe-die: New file.
46800         * lib/sigpipe-die.h: New file.
46801         * lib/sigpipe-die.c: New file.
46802         * MODULES.html.sh (Signal handling): Add sigpipe-die.
46803
46804 2008-08-31  Bruno Haible  <bruno@clisp.org>
46805
46806         Don't override previously installed signal handlers.
46807         * lib/fatal-signal.c (saved_sigactions): New variable.
46808         (uninstall_handlers): Reset the signal to the saved handler, not
46809         to SIG_DFL (except when ignored).
46810         (install_handlers): Save the previous handlers.
46811
46812 2008-08-30  Bruno Haible  <bruno@clisp.org>
46813
46814         * gnulib-tool (func_reset_sigpipe): New function.
46815         (func_get_automake_snippet, func_modules_transitive_closure,
46816         func_import): Invoke it before a join command that reads from stdin,
46817         to avoid "echo: write error: Broken pipe" error messages on stderr.
46818         Reported by Sam Steingold <sds@gnu.org>.
46819
46820 2008-08-30  Bruno Haible  <bruno@clisp.org>
46821
46822         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
46823         Code copied from m4/open.m4.
46824         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
46825         access and the filename ends in a slash. Code copied from lib/open.c.
46826         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
46827         * tests/test-fopen.c (main): Check against bug with trailing slash.
46828
46829 2008-08-29  Bruno Haible  <bruno@clisp.org>
46830
46831         Avoid some "gcc -pedantic" warnings.
46832         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
46833         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
46834         * lib/dirent.in.h: Likewise.
46835         * lib/fcntl.in.h: Likewise.
46836         * lib/float.in.h: Likewise.
46837         * lib/iconv.in.h: Likewise.
46838         * lib/inttypes.in.h: Likewise.
46839         * lib/locale.in.h: Likewise.
46840         * lib/math.in.h: Likewise.
46841         * lib/netinet_in.in.h: Likewise.
46842         * lib/search.in.h: Likewise.
46843         * lib/signal.in.h: Likewise.
46844         * lib/stdarg.in.h: Likewise.
46845         * lib/stdint.in.h: Likewise.
46846         * lib/stdio.in.h: Likewise.
46847         * lib/stdlib.in.h: Likewise.
46848         * lib/string.in.h: Likewise.
46849         * lib/strings.in.h: Likewise.
46850         * lib/sys_select.in.h: Likewise.
46851         * lib/sys_socket.in.h: Likewise.
46852         * lib/sys_stat.in.h: Likewise.
46853         * lib/sys_time.in.h: Likewise.
46854         * lib/sysexits.in.h: Likewise.
46855         * lib/time.in.h: Likewise.
46856         * lib/unistd.in.h: Likewise.
46857         * lib/wchar.in.h: Likewise.
46858         * lib/wctype.in.h: Likewise.
46859         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
46860         * modules/fchdir (Makefile.am): Likewise.
46861         * modules/fcntl (Makefile.am): Likewise.
46862         * modules/float (Makefile.am): Likewise.
46863         * modules/iconv_open (Makefile.am): Likewise.
46864         * modules/inttypes (Makefile.am): Likewise.
46865         * modules/locale (Makefile.am): Likewise.
46866         * modules/math (Makefile.am): Likewise.
46867         * modules/netinet_in (Makefile.am): Likewise.
46868         * modules/search (Makefile.am): Likewise.
46869         * modules/signal (Makefile.am): Likewise.
46870         * modules/stdarg (Makefile.am): Likewise.
46871         * modules/stdint (Makefile.am): Likewise.
46872         * modules/stdio (Makefile.am): Likewise.
46873         * modules/stdlib (Makefile.am): Likewise.
46874         * modules/string (Makefile.am): Likewise.
46875         * modules/strings (Makefile.am): Likewise.
46876         * modules/sys_select (Makefile.am): Likewise.
46877         * modules/sys_socket (Makefile.am): Likewise.
46878         * modules/sys_stat (Makefile.am): Likewise.
46879         * modules/sys_time (Makefile.am): Likewise.
46880         * modules/sysexits (Makefile.am): Likewise.
46881         * modules/time (Makefile.am): Likewise.
46882         * modules/unistd (Makefile.am): Likewise.
46883         * modules/wchar (Makefile.am): Likewise.
46884         * modules/wctype (Makefile.am): Likewise.
46885         Reported by Reuben Thomas <rrt@sc3d.org>.
46886
46887 2008-08-29  Bruno Haible  <bruno@clisp.org>
46888
46889         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
46890         any more.
46891
46892 2008-08-29  Simon Josefsson  <simon@josefsson.org>
46893
46894         * MODULES.html.sh (Misc): Add bitrotate.
46895
46896         * modules/bitrotate: New file.
46897
46898         * lib/bitrotate.h: New file.
46899
46900         * modules/bitrotate-tests: New file.
46901
46902         * tests/test-bitrotate.c: New file.
46903
46904         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
46905         on the bitrotate module.
46906
46907         * lib/arctwo.c: Use new bitrotate module.
46908
46909 2008-08-29  Jim Meyering  <meyering@redhat.com>
46910
46911         bootstrap: merge changes from coreutils
46912         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
46913         of copied files.  Remove a kludge, now that this is fixed.
46914         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
46915         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
46916         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
46917
46918 2008-08-29  Bruno Haible  <bruno@clisp.org>
46919
46920         * MODULES.html.sh: Remove --cvs-urls option.
46921
46922 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
46923
46924         maint.mk: adjust to file name change
46925         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
46926
46927 2008-08-28  Jim Meyering  <meyering@redhat.com>
46928
46929         * modules/getndelim2 (License): Relicense to LGPLv2+.
46930         Approved by Richard Stallman for the version of 1995, and by
46931         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
46932
46933 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
46934
46935         * lib/getdelim.c (flockfile, funlockfile): Make all of them
46936         dummy if one is not available.  Do not touch them if
46937         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
46938         (getc_maybe_unlocked): New.
46939         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
46940
46941 2008-08-26  Eric Blake  <ebb9@byu.net>
46942
46943         doc/INSTALL: resync from autoconf
46944         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
46945         (INSTALL_PRELUDE): Delete; this is done more efficiently by
46946         moving...
46947         * install.texi [!autoconf]: ...here.  Resync from autoconf.
46948         * INSTALL: Regenerate.
46949         * INSTALL.ISO: New file.
46950         * INSTALL.UTF-8: Likewise.
46951
46952 2008-08-26  Jim Meyering  <meyering@redhat.com>
46953
46954         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
46955         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
46956         these definitions conditional, so that they may be overridden, too.
46957
46958 2008-08-26  Bruno Haible  <bruno@clisp.org>
46959
46960         Generate INSTALL file variants with prettier quotes.
46961         * doc/Makefile (INSTALL_PRELUDE): New macro.
46962         (INSTALL): Use it.
46963         (INSTALL.ISO, INSTALL.UTF-8): New rules.
46964
46965 2008-08-26  Bruno Haible  <bruno@clisp.org>
46966
46967         Run makeinfo in an English locale.
46968         * doc/Makefile (MAKEINFO): New variable.
46969
46970 2008-08-26  Bruno Haible  <bruno@clisp.org>
46971
46972         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
46973         Suggested by Eric Blake.
46974
46975 2008-08-25  Bruno Haible  <bruno@clisp.org>
46976
46977         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
46978
46979 2008-08-25  Eric Blake  <ebb9@byu.net>
46980
46981         c-stack: test that stack overflow can be caught
46982         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
46983         that platform allows handling stack overflow; at least OS/2 EMX
46984         has sigaltstack, but crashes before transferring control to
46985         handler on stack overflow.
46986         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
46987         check for HAVE_STACK_OVERFLOW_HANDLING.
46988         Reported by Elbert Pol.
46989
46990 2008-08-25  Bruno Haible  <bruno@clisp.org>
46991
46992         * doc/posix-functions/strftime.texi: Fix description of strftime
46993         module.
46994
46995 2008-08-24  Bruno Haible  <bruno@clisp.org>
46996
46997         * tests/uniwidth/test-uc_width2.c: New file.
46998         * tests/uniwidth/test-uc_width2.sh: New file.
46999         * modules/uniwidth/width-tests (Files): Add the new files.
47000         (TESTS): Add uniwidth/test-uc_width2.sh.
47001         (TESTS_ENVIRONMENT): New variable.
47002         (check_PROGRAMS): Add test-uc_width2.
47003         (test_uc_width2_SOURCES): New variable.
47004
47005         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47006         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47007         not 0x00AB.
47008         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47009
47010 2008-08-22  Eric Blake  <ebb9@byu.net>
47011
47012         test-lock, test-tls: mention why a test is skipped
47013         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47014         skipped.
47015         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47016
47017         count-one-bits: relax license
47018         * modules/count-one-bits (License): Relicense to LGPLv2+.
47019         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47020
47021 2008-08-22  Andreas Schwab  <schwab@suse.de>
47022
47023         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47024         Remove spurious space in assignment.
47025
47026 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47027
47028         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47029         Paul Eggert <eggert@CS.UCLA.EDU>.
47030
47031 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47032
47033         * modules/gettext: Add m4/threadlib.m4.
47034
47035 2008-08-19  Eric Blake  <ebb9@byu.net>
47036
47037         test-c-stack: fix compilation failure on FreeBSD 5.0
47038         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47039         headers before <sys/resource.h>.
47040         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47041         the bug.
47042         Reported by Nelson H. F. Beebe.
47043
47044         strverscmp: migrate from "strverscmp.h" to <string.h>
47045         * modules/string (Makefile.am): Add new hooks.
47046         * modules/strverscmp (Files): Remove strverscmp.h.
47047         (Depends-on): Add string.
47048         (configure.ac): Add indicator.
47049         (Include): Mention new header.
47050         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47051         defaults.
47052         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47053         results.
47054         * lib/strverscmp.h: Delete.
47055         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47056         * tests/test-strverscmp.c (includes): Adjust client.
47057         * lib/check-version.c (includes): Likewise.
47058         * NEWS: Document the change.
47059
47060         strverscmp: add unit test
47061         * modules/strverscmp-tests: New file.
47062         * tests/test-strverscmp.c: Likewise.
47063
47064 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47065
47066         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47067         regarding Windows crypto stuff, from Mono.
47068
47069 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47070
47071         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47072         if present, for intel RND.  Return error on failures.
47073
47074 2008-08-18  Ben Pfaff  <blp@gnu.org>
47075
47076         gitlog-to-changelog: give better diagnostic for failed pipe-open
47077         * build-aux/gitlog-to-changelog: Improve error message: suggest
47078         that the version of Git may be too old.
47079
47080 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47081
47082         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47083         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47084
47085 2008-08-18  Bruno Haible  <bruno@clisp.org>
47086
47087         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47088         pthread_in_use().
47089
47090 2008-08-18  Bruno Haible  <bruno@clisp.org>
47091
47092         * lib/glthread/threadlib.c: Include <pthread.h>.
47093
47094 2008-08-18  Bruno Haible  <bruno@clisp.org>
47095
47096         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47097         glthread_recursive_lock_* macros.
47098         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47099         Fix syntax error.
47100
47101 2008-08-18  Bruno Haible  <bruno@clisp.org>
47102
47103         * lib/glthread/thread.c: Avoid forcing a context switch right after
47104         thread creation.
47105
47106 2008-08-17  Bruno Haible  <bruno@clisp.org>
47107
47108         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47109         * lib/glthread/thread.h: Provide Win32 specific implementation.
47110         * modules/thread (Files): Add lib/glthread/thread.c.
47111         (Depends-on): Add lock.
47112         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47113
47114 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47115
47116         New module 'yield'.
47117         * modules/yield: New file.
47118         * lib/glthread/yield.h: New file.
47119         * m4/yield.m4: New file.
47120         * MODULES.html.sh (Multithreading): Add yield.
47121
47122 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47123
47124         New module 'thread'.
47125         * modules/thread: New file.
47126         * lib/glthread/thread.h: New file.
47127         * m4/thread.m4: New file.
47128         * MODULES.html.sh (Multithreading): Add thread.
47129
47130 2008-08-17  Bruno Haible  <bruno@clisp.org>
47131
47132         * lib/glthread/lock.h: Include <stdlib.h> always.
47133         * lib/glthread/tls.h: Likewise.
47134         * lib/glthread/cond.h: Likewise.
47135
47136 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47137
47138         New module 'cond'.
47139         * modules/cond: New file.
47140         * lib/glthread/cond.h: New file.
47141         * lib/glthread/cond.c: New file.
47142         * m4/cond.m4: New file.
47143         * MODULES.html.sh (Multithreading): Add cond.
47144
47145 2008-08-16  Eric Blake  <ebb9@byu.net>
47146
47147         c-stack: fix regression on Irix 5.3 from 2008-06-21
47148         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47149         sa_sigaction...
47150         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47151         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47152         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47153         * modules/signal (Makefile.am): Use the value.
47154         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47155         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47156         * doc/posix-headers/signal.texi (signal.h): Document this
47157         portability issue.
47158         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47159         Reported by Tom G. Christensen.
47160
47161 2008-08-17  Bruno Haible  <bruno@clisp.org>
47162
47163         New module 'threadlib'.
47164         * modules/threadlib: New file.
47165         * lib/glthread/threadlib.c: New file, extracted from
47166         lib/glthread/lock.c.
47167         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47168         functions.
47169         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47170         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47171         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47172         macros.
47173         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47174         (gl_DISABLE_THREADS): Remove macro.
47175         * modules/lock (Files): Remove build-aux/config.rpath.
47176         (Depends-on): Remove havelib. Add threadlib.
47177         (configure.ac-early): Remove section.
47178         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47179         * modules/tls (Depends-on): Remove lock. Add threadlib.
47180         (Link): New section, copied from threadlib.
47181         * MODULES.html.sh (Multithreading): Add threadlib.
47182
47183 2008-08-14  Bruno Haible  <bruno@clisp.org>
47184
47185         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47186         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47187         glthread_rwlock_unlock, glthread_rwlock_destroy,
47188         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47189         glthread_recursive_lock_destroy): Define as macros always.
47190         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47191         glthread_lock_lock.
47192         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47193         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47194         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47195         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47196         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47197         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47198         (glthread_recursive_lock_lock_func): Renamed from
47199         glthread_recursive_lock_lock.
47200         (glthread_recursive_lock_unlock_func): Renamed from
47201         glthread_recursive_lock_unlock.
47202         (glthread_recursive_lock_destroy_func): Renamed from
47203         glthread_recursive_lock_destroy.
47204
47205 2008-08-14  Bruno Haible  <bruno@clisp.org>
47206
47207         * lib/glthread/lock.h: Renamed from lib/lock.h.
47208         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47209         * lib/glthread/tls.h: Renamed from lib/tls.h.
47210         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47211         * lib/fstrcmp.c: Update includes.
47212         * lib/strsignal.c: Update includes.
47213         * modules/lock (Files, Makefile.am): Update.
47214         (Include): Change to "glthread/lock.h".
47215         * modules/tls (Files, Makefile.am): Update.
47216         (Include): Change to "glthread/tls.h".
47217         * tests/test-lock.c: Update includes.
47218         * tests/test-tls.c: Update includes.
47219         * NEWS: Mention the renamed header files.
47220
47221 2008-08-11  Jim Meyering  <meyering@redhat.com>
47222
47223         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47224
47225 2008-08-11  Eric Blake  <ebb9@byu.net>
47226
47227         test-c-stack: avoid C99-ism
47228         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47229         before statement.
47230         Reported by Alain Guibert.
47231
47232 2008-08-10  Jim Meyering  <meyering@redhat.com>
47233
47234         ensure that return value of uinttostr et al are not ignored
47235         * lib/inttostr.h (__GNUC_PREREQ): Define.
47236         (__attribute_warn_unused_result__): Define.
47237         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47238
47239 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47240
47241         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47242         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47243
47244 2008-08-07  Jim Meyering  <meyering@redhat.com>
47245
47246         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47247
47248         * modules/mkstemp (License): Relicense under LGPLv2+.
47249         * modules/tempname (License): Likewise.
47250
47251 2008-08-06  Bruno Haible  <bruno@clisp.org>
47252
47253         * lib/poll.c (poll): Further micro-optimization.
47254
47255 2008-08-06  Jim Meyering  <meyering@redhat.com>
47256
47257         inet_pton.c: use locale-independent tolower
47258         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47259         (inet_pton6): Use c_tolower rather than tolower.
47260         * modules/inet_pton (Depends-on): Add c-ctype.
47261
47262 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47263
47264         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47265         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47266
47267 2008-08-06  Jim Meyering  <meyering@redhat.com>
47268
47269         * modules/inet_pton (License): Relicense under LGPLv2+.
47270
47271 2008-08-03  Bruno Haible  <bruno@clisp.org>
47272
47273         Additional non-aborting API for lock and tls.
47274         * lib/lock.h: Include <errno.h>.
47275         (glthread_lock_init): New macro/function.
47276         (gl_lock_init): Define as wrapper around glthread_lock_init.
47277         (glthread_lock_lock): New macro/function.
47278         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47279         (glthread_lock_unlock): New macro/function.
47280         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47281         (glthread_lock_destroy): New macro/function.
47282         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47283         (glthread_rwlock_init): New macro/function.
47284         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47285         (glthread_rwlock_rdlock): New macro/function.
47286         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47287         (glthread_rwlock_wrlock): New macro/function.
47288         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47289         (glthread_rwlock_unlock): New macro/function.
47290         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47291         (glthread_rwlock_destroy): New macro/function.
47292         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47293         (glthread_recursive_lock_init): New macro/function.
47294         (gl_recursive_lock_init): Define as wrapper around
47295         glthread_recursive_lock_init.
47296         (glthread_recursive_lock_lock): New macro/function.
47297         (gl_recursive_lock_lock): Define as wrapper around
47298         glthread_recursive_lock_lock.
47299         (glthread_recursive_lock_unlock): New macro/function.
47300         (gl_recursive_lock_unlock): Define as wrapper around
47301         glthread_recursive_lock_unlock.
47302         (glthread_recursive_lock_destroy): New macro/function.
47303         (gl_recursive_lock_destroy): Define as wrapper around
47304         glthread_recursive_lock_destroy.
47305         (glthread_once): New macro/function.
47306         (gl_once): Define as wrapper around glthread_once.
47307         Update function declarations.
47308         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47309         glthread_rwlock_init. Return error code.
47310         (glthread_rwlock_rdlock_multithreaded): Renamed from
47311         glthread_rwlock_rdlock. Return error code.
47312         (glthread_rwlock_wrlock_multithreaded): Renamed from
47313         glthread_rwlock_wrlock. Return error code.
47314         (glthread_rwlock_unlock_multithreaded): Renamed from
47315         glthread_rwlock_unlock. Return error code.
47316         (glthread_rwlock_destroy_multithreaded): Renamed from
47317         glthread_rwlock_destroy. Return error code.
47318         (glthread_recursive_lock_init_multithreaded): Renamed from
47319         glthread_recursive_lock_init. Return error code.
47320         (glthread_recursive_lock_lock_multithreaded): Renamed from
47321         glthread_recursive_lock_lock. Return error code.
47322         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47323         glthread_recursive_lock_unlock. Return error code.
47324         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47325         glthread_recursive_lock_destroy. Return error code.
47326         (glthread_once_call): Make static.
47327         (glthread_once_multithreaded): Renamed from glthread_once.
47328         * lib/tls.h: Include <errno.h>.
47329         (glthread_tls_key_init): New macro/function.
47330         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47331         (glthread_tls_set): New macro/function.
47332         (gl_tls_set): Define as wrapper around glthread_tls_set.
47333         (glthread_tls_key_destroy): New macro/function.
47334         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47335         Update function declarations.
47336         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47337         glthread_tls_get.
47338         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47339
47340 2008-08-04  Eric Blake  <ebb9@byu.net>
47341
47342         gnumakefile: use space, not TAB, outside of targets
47343         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47344
47345 2008-08-02  Jim Meyering  <meyering@redhat.com>
47346
47347         getdate.y: avoid locale-dependent date parsing failure
47348         In Turkish locales, getdate would fail to recognize keywords
47349         containing a lowercase "i".  The solution is not to rely on
47350         locale-sensitive case-conversion.
47351         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47352         (lookup_word): Use c_toupper in place of toupper.
47353         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
47354         Reported by Vefa Bicakci <bicave@superonline.com> in
47355         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
47356         * modules/getdate (Depends-on): Add c-ctype.
47357
47358 2008-08-02  Bruno Haible  <bruno@clisp.org>
47359
47360         * gnulib-tool (func_import): When updating or creating a .gitignore
47361         file, prepend each added line with a slash, and ignore leading slashes
47362         from the existing lines.
47363         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47364
47365 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47366
47367         Portability fix for GNU make 3.79.1.
47368         * top/GNUmakefile: Avoid 'else COND', which older GNU make
47369         versions do not understand.
47370
47371 2008-08-01  Bruno Haible  <bruno@clisp.org>
47372
47373         Work around bug of HP-UX 10.20 cc with -0.0 literal.
47374         * tests/test-isnanf.h (zero): New variable.
47375         (main): Avoid literal -0.0f.
47376         * tests/test-isnand.h (zero): New variable.
47377         (main): Avoid literal -0.0.
47378         * tests/test-isnanl.h (zero): New variable.
47379         (main): Avoid literal -0.0L.
47380         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
47381         (test_float, test_double, test_long_double): Avoid literals -0.0f,
47382         -0.0, -0.0L.
47383         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
47384         (test_signbitd): Avoid literal -0.0.
47385         (test_signbitl): Avoid literal -0.0L.
47386         * tests/test-ceilf1.c (zero): New variable.
47387         (main): Avoid literal -0.0f.
47388         * tests/test-ceill.c (zero): New variable.
47389         (main): Avoid literal -0.0L.
47390         * tests/test-floorf1.c (zero): New variable.
47391         (main): Avoid literal -0.0f.
47392         * tests/test-floorl.c (zero): New variable.
47393         (main): Avoid literal -0.0L.
47394         * tests/test-roundf1.c (zero): New variable.
47395         (main): Avoid literal -0.0f.
47396         * tests/test-round1.c (zero): New variable.
47397         (main): Avoid literal -0.0.
47398         * tests/test-roundl.c (zero): New variable.
47399         (main): Avoid literal -0.0L.
47400         * tests/test-truncf1.c (zero): New variable.
47401         (main): Avoid literal -0.0f.
47402         * tests/test-trunc1.c (zero): New variable.
47403         (main): Avoid literal -0.0.
47404         * tests/test-truncl.c (zero): New variable.
47405         (main): Avoid literal -0.0L.
47406         * tests/test-frexp.c (zero): New variable.
47407         (main): Avoid literal -0.0.
47408         * tests/test-frexpl.c (zero): New variable.
47409         (main): Avoid literal -0.0L.
47410         * tests/test-ldexpl.c (zero): New variable.
47411         (main): Avoid literal -0.0L.
47412         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47413         (zerod, zerol): New variables.
47414         (test_function): Avoid literals -0.0, -0.0L.
47415         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47416         (zerod, zerol): New variables.
47417         (test_function): Avoid literals -0.0, -0.0L.
47418         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47419         (zerod, zerol): New variables.
47420         (test_function): Avoid literals -0.0, -0.0L.
47421         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47422         (zerod, zerol): New variables.
47423         (test_function): Avoid literals -0.0, -0.0L.
47424         * tests/test-strtod.c (zero): New variable.
47425         (main): Avoid literal -0.0.
47426         Reported by Jonathan C. Patschke <jp@centtech.com>.
47427
47428 2008-07-31  Jim Meyering  <meyering@redhat.com>
47429
47430         sha256.h: correct definition of SHA224_DIGEST_SIZE
47431         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
47432         Reported by Paulie Pena IV <paulie4@gmail.com>.
47433         Define as 224 / 8, rather than as a literal.
47434         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
47435         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
47436         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
47437
47438 2008-07-31  Bruno Haible  <bruno@clisp.org>
47439
47440         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
47441         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
47442         Reported by Jonathan Patschke <jp@centtech.com>.
47443
47444 2008-07-31  Bruno Haible  <bruno@clisp.org>
47445
47446         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
47447         Reported by Paolo Bonzini <bonzini@gnu.org>.
47448
47449 2008-07-30  Eric Blake  <ebb9@byu.net>
47450
47451         test-strtod: allow compilation without -lm
47452         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47453         Reported by Dennis Clarke <blastwave@gmail.com>.
47454
47455 2008-07-28  Jim Meyering  <meyering@redhat.com>
47456
47457         bootstrap: work also when there are no .po files in po/
47458         * build-aux/bootstrap (update_po_files): Complete the change
47459         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47460
47461 2008-07-27  Jim Meyering  <meyering@redhat.com>
47462
47463         * users.txt: Add zile.
47464
47465 2008-07-26  Ben Pfaff  <blp@gnu.org>
47466
47467         Add missing dependencies on new m4/exponent[fdl].m4 files.
47468         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47469         * modules/isnand-nolibm: Add m4/exponentd.m4.
47470         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47471         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47472         m4/isnan[fdl].m4, because the macros actually used moved.
47473         Reported by Jim Meyering.
47474
47475 2008-07-14  Ben Pfaff  <blp@gnu.org>
47476
47477         Add isinf module.
47478         * lib/isinf.c: New file.
47479         * lib/math.in.h: Define isinf macro if we have decided to replace
47480         it.
47481         * m4/isinf.m4: New file.
47482         * m4/math_h.m4: Initialize and substitute variables for isinf
47483         module.
47484         * modules/isinf: New file.
47485         * modules/isinf-tests: New file.
47486         * modules/math: Add substitutions for new module.
47487         * tests/test-isinf.c: New file.
47488         * doc/posix-functions/isinf.texi: Mention new module.
47489         * MODULES.html.sh: Mention new module.
47490
47491 2008-07-14  Ben Pfaff  <blp@gnu.org>
47492
47493         Factor out some macros for use by additional modules.
47494         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
47495         exponentf.m4.
47496         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
47497         exponentd.m4.
47498         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
47499         file exponentl.m4.
47500         * m4/exponentf.m4: New file.
47501         * m4/exponentd.m4: New file.
47502         * m4/exponentl.m4: New file.
47503         * modules/isnanf: Use new file m4/exponentf.m4.
47504         * modules/isnand: Use new file m4/exponentd.m4.
47505         * modules/isnanl: Use new file m4/exponentl.m4.
47506
47507 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
47508
47509         mktime.c: normalize tp->tm_isdst value to -1/0/1.
47510         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
47511         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
47512         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
47513
47514         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
47515         readlink on platforms without PATH_MAX.
47516
47517 2008-07-21  Eric Blake  <ebb9@byu.net>
47518
47519         Warn, not fail, on stale version.
47520         * top/GNUmakefile (_curr-ver): Tone down previous patch.
47521
47522         Don't allow installation with stale devel version number.
47523         * top/GNUmakefile (_is-install-target): New macro.
47524         (_curr-ver): Forbid installation with stale version number.
47525
47526 2008-07-20  Bruno Haible  <bruno@clisp.org>
47527
47528         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
47529         TESTS_ENVIRONMENT.
47530         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
47531
47532 2008-07-20  Bruno Haible  <bruno@clisp.org>
47533
47534         * lib/c-stack.h (c_stack_action): Add documentation.
47535         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
47536
47537 2008-07-20  Bruno Haible  <bruno@clisp.org>
47538
47539         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
47540         * modules/readlink (License): Likewise.
47541
47542 2008-07-17  Eric Blake  <ebb9@byu.net>
47543
47544         * modules/c-stack (Link): Fix typo.
47545
47546         Make c-stack use libsigsegv, when available.
47547         * modules/c-stack (Depends-on): Add libsigsegv.
47548         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
47549         needed.
47550         * lib/c-stack.c (SIGSTKSZ): Define fallback.
47551         (segv_handler, overflow_handler, c_stack_action)
47552         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
47553         implementation when libsigsegv is available, but only when using
47554         the library is necessary.
47555         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
47556         comment, explaining why XSI check fails on Linux.
47557         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
47558         * tests/test-c-stack2.sh: Tweak skip message.
47559         * NEWS: Document new link-time requirements.
47560
47561 2008-07-16  Eric Blake  <ebb9@byu.net>
47562
47563         c-stack: Expose false positives when not using libsigsegv.
47564         * modules/c-stack-tests (Files): Expand test.
47565         * tests/test-c-stack.c (main): Add means to conditionally trigger
47566         non-overflow SIGSEGV.
47567         * tests/test-c-stack2.sh: New file.
47568
47569 2008-07-14  Bruno Haible  <bruno@clisp.org>
47570
47571         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
47572         Reported by Eric Blake.
47573
47574 2008-07-14  Sam Steingold  <sds@gnu.org>
47575             Bruno Haible  <bruno@clisp.org>
47576
47577         New module libsigsegv.
47578         * modules/libsigsegv: New file.
47579         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
47580         modifications.
47581         * MODULES.html.sh (Signal handling): New section.
47582
47583 2008-07-14  Bruno Haible  <bruno@clisp.org>
47584
47585         * modules/unictype/ctype-* (Description): Add the word "function".
47586         Improves the resulting doc in MODULES.html.
47587
47588 2008-07-12  Ben Pfaff  <blp@gnu.org>
47589
47590         Add longlong module.
47591         * modules/longlong: New file.
47592
47593 2008-07-12  Bruno Haible  <bruno@clisp.org>
47594
47595         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
47596         to empty.
47597
47598 2008-07-10  Ben Pfaff  <blp@gnu.org>
47599
47600         Add isnan module.
47601         * doc/posix-functions/isnan.texi: Mention new module.
47602         * lib/math.in.h: Define isnan macro if we have decided to replace
47603         it.
47604         * m4/isnan.m4: New file.
47605         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
47606         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
47607         also.
47608         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
47609         redundancy.
47610         * m4/math_h.m4: Initialize and substitute variables for isnan
47611         module.
47612         * modules/isnan: New file.
47613         * modules/isnan-tests: New file.
47614         * modules/math: Add substitutions for new module.
47615         * tests/test-isnan.c: New file.
47616         * MODULES.html.sh: Mention new module.
47617
47618 2008-07-10  Ben Pfaff  <blp@gnu.org>
47619
47620         Add isnanf module.
47621         * lib/isnanf.m4: New file.
47622         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
47623         (gl_HAVE_ISNANF_IN_LIBM): New macro.
47624         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
47625         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
47626         * modules/isnanf: New file.
47627         * modules/isnanf-tests: New file.
47628         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
47629         files.
47630         * tests/test-isnanf-nolibm.c: factored most of its contents into
47631         new file tests/test-isnanf.h.
47632         * tests/test-isnanf.h: New file.
47633         * tests/test-isnanf.c: New file.
47634         * MODULES.html.sh: Mention new module.
47635         * doc/glibc-functions/isnanf.texi: Mention new module.
47636
47637 2008-07-10  Ben Pfaff  <blp@gnu.org>
47638
47639         Add isnand module.
47640         * lib/isnand.h: New file.
47641         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
47642         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
47643         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
47644         functionality also.
47645         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
47646         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
47647         (gl_HAVE_ISNAND_IN_LIBM): New macro.
47648         * modules/isnand: New file.
47649         * modules/isnand-tests: New file.
47650         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
47651         files.
47652         * tests/test-isnand-nolibm.c: factored most of its contents into
47653         new file tests/test-isnand.h.
47654         * tests/test-isnand.h: New file.
47655         * tests/test-isnand.c: New file.
47656         * MODULES.html.sh: Mention new module.
47657
47658 2008-07-10  Ben Pfaff  <blp@gnu.org>
47659
47660         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
47661         * lib/isnand.h: Rename lib/isnand-nolibm.h.
47662         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
47663         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
47664         * modules/isnanf-nolibm: Update references to renamed files.
47665         * modules/isnand-nolibm: Likewise.
47666         * modules/isnanf-nolibm-tests: Likewise.
47667         * modules/isnand-nolibm-tests: Likewise.
47668         * lib/frexp.c: Likewise.
47669         * lib/isfinite.c: Likewise.
47670         * lib/signbitd.c: Likewise.
47671         * lib/signbitf.c: Likewise.
47672         * lib/vasnprintf.c: Likewise.
47673         * tests/test-ceilf1.c: Likewise.
47674         * tests/test-ceilf2.c: Likewise.
47675         * tests/test-floorf1.c: Likewise.
47676         * tests/test-floorf2.c: Likewise.
47677         * tests/test-frexp.c: Likewise.
47678         * tests/test-round1.c: Likewise.
47679         * tests/test-round2.c: Likewise.
47680         * tests/test-roundf1.c: Likewise.
47681         * tests/test-strtod.c: Likewise.
47682         * tests/test-trunc1.c: Likewise.
47683         * tests/test-trunc2.c: Likewise.
47684         * tests/test-truncf1.c: Likewise.
47685         * tests/test-truncf2.c: Likewise.
47686         * NEWS: Mention the renamed header files.
47687
47688 2008-07-11  Jim Meyering  <meyering@redhat.com>
47689
47690         vc-list-files: make the last-resort awk code more portable
47691         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
47692         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
47693         does not support it.
47694
47695 2008-07-10  Eric Blake  <ebb9@byu.net>
47696
47697         Work with tar's bootstrap.
47698         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
47699         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
47700         an m4 comment.
47701
47702 2008-07-09  Jim Meyering  <meyering@redhat.com>
47703
47704         posix-shell.m4: fix typo that made this test malfunction
47705         * m4/posix-shell.m4: Remove capitalization in variable name.
47706
47707 2008-07-08  Bruno Haible  <bruno@clisp.org>
47708
47709         * m4/onceonly.m4: Update comments.
47710         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47711
47712 2008-07-04  Jim Meyering  <meyering@redhat.com>
47713
47714         * users.txt: Add vc-dwim.
47715         (bison, coreutils): Use the gitweb URL.
47716
47717 2008-07-03  Jim Meyering  <meyering@redhat.com>
47718
47719         * users.txt: Add libffcall.  From Sam Steingold.
47720
47721 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
47722
47723         getdate.y: do not ignore TZ with relative day, month or year offset
47724         * lib/getdate.y (get_date): Move the tz-handling block to follow the
47725         relative-date-handling, since otherwise, the latter would clobber the
47726         sole output (an updated Start value) of the tz-handling block.
47727         * tests/test-getdate.c: Tests for the fix
47728
47729 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47730
47731         Recognize 'foo_LIBRARIES += libgnu.a'.
47732         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
47733         makefile snippet has already specified an installation location,
47734         also using '+='.
47735
47736 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
47737
47738         getdate.y: factor out common actions
47739         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
47740         Use them in place of open-coded actions.
47741
47742 2008-07-01  Simon Josefsson  <simon@josefsson.org>
47743
47744         Add self-test for getdate module.
47745         * modules/getdate-tests: New file.
47746         * tests/test-getdate.c: New file.
47747
47748 2008-06-29  Bruno Haible  <bruno@clisp.org>
47749
47750         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
47751         .gitignore.
47752         Reported by Sylvain Beucler <beuc@beuc.net>.
47753
47754 2008-06-29  Bruno Haible  <bruno@clisp.org>
47755
47756         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
47757         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
47758
47759 2008-06-29  Bruno Haible  <bruno@clisp.org>
47760
47761         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
47762         EXTRA_DIST.
47763         Reported by Sylvain Beucler <beuc@beuc.net>.
47764
47765 2008-06-26  Jim Meyering  <meyering@redhat.com>
47766
47767         make several modules depend on the "open" module
47768         This provides slightly increased consistency when opening-for-write
47769         the name of a non-directory spelled with a trailing slash.
47770         * modules/chdir-safer: Likewise.
47771         * modules/chown: Likewise.
47772         * modules/clean-temp: Likewise.
47773         * modules/copy-file: Likewise.
47774         * modules/fchdir: Likewise.
47775         * modules/fcntl-safer: Likewise.
47776         * modules/pipe: Likewise.
47777         * modules/utime: Likewise.
47778         Prompted by Eric Blake and Bruno Haible.
47779
47780 2008-06-24  Andreas Schwab  <schwab@suse.de>
47781
47782         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
47783         literals can be used as initializers for global variables.
47784
47785 2008-06-23  Eric Blake  <ebb9@byu.net>
47786
47787         Make gnulib-cache.m4 easier to diff.
47788         * gnulib-tool (func_import): Allow newlines when reading cached
47789         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
47790
47791 2008-06-23  Bruno Haible  <bruno@clisp.org>
47792
47793         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
47794         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
47795         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
47796         m4/signalblocking.m4.
47797         (gl_PREREQ_SIGACTION): Don't invoke it.
47798         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
47799         gl_PREREQ_SIG_HANDLER_H.
47800         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47801         Don't check for sigaction here.
47802
47803 2008-06-23  Bruno Haible  <bruno@clisp.org>
47804
47805         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
47806         (install_handlers): Don't set the SA_RESETHAND flag.
47807
47808 2008-06-23  Bruno Haible  <bruno@clisp.org>
47809
47810         * m4/sigaction.m4: Comment fixes.
47811         * lib/signal.in.h: Likewise.
47812
47813 2008-06-23  Eric Blake  <ebb9@byu.net>
47814
47815         Fix typo.
47816         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
47817
47818         Avoid SA_ namespace.
47819         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
47820         Reported by Ralf Wildenhues.
47821
47822         Avoid test failure due to SA_RESTORER.
47823         * tests/test-sigaction.c (SA_MASK): New macro.
47824         (main): Avoid failing due to extension flags being set.
47825         Reported by Jim Meyering.
47826
47827         Revert use of sig-handler.h in sigprocmask.c.
47828         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
47829         it requires the existence of struct sigaction.
47830         * lib/sigprocmask.c (handler_t): Restore typedef.
47831         (rpl_signal, old_handlers): Use local type.
47832
47833 2008-06-22  Bruno Haible  <bruno@clisp.org>
47834
47835         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
47836         conditionally.
47837         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47838
47839 2008-06-22  Bruno Haible  <bruno@clisp.org>
47840
47841         * doc/posix-functions/siginterrupt.texi: Move note.
47842
47843         * lib/signal.in.h (SA_RESTART): New macro.
47844         * lib/sigaction.c: Update comment.
47845
47846         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
47847
47848         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
47849         (gl_PREREQ_SIGPROCMASK): Invoke it.
47850         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
47851
47852         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
47853
47854         * lib/sigprocmask.c: Update a comment.
47855
47856 2008-06-21  Eric Blake  <ebb9@byu.net>
47857
47858         Use sigaction module rather than signal().
47859         * modules/c-stack (Depends-on): Add sigaction.
47860         * modules/fatal-signal (Depends-on): Likewise.
47861         * modules/nanosleep (Depends-on): Likewise.
47862         * modules/sigprocmask (Files): Add sig-handler.h.
47863         * modules/sigaction (Files): Likewise.
47864         * lib/sig-handler.h (get_handler): New file, suggested by Paul
47865         Eggert.
47866         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
47867         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
47868         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
47869         (init_fatal_signals): Likewise.
47870         * lib/nanosleep.c (rpl_nanosleep): Likewise.
47871         (siginterrupt): Delete fallback.
47872         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
47873         instead.
47874         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
47875         siginterrupt.
47876
47877         New module sigaction, for mingw.
47878         * modules/sigaction: New module...
47879         * modules/sigaction-tests: ...and its test.
47880         * m4/sigaction.m4: New file.
47881         * lib/sigaction.c: Likewise.
47882         * tests/test-sigaction.c: Likewise.
47883         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
47884         * modules/signal (Makefile.am): Likewise.
47885         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
47886         needed.
47887         * doc/posix-headers/signal.texi (signal.h): Mention provided
47888         types.
47889         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
47890         that sigaction is preferable.
47891         * doc/posix-functions/sigaction.texi (sigaction): Mention new
47892         module.
47893         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47894         sigaction.
47895
47896         Improve robustness of sigprocmask by overriding signal.
47897         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
47898         is in use.
47899         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
47900         (SIGKILL, SIGSTOP): Provide fallbacks.
47901         (rpl_signal): Implement.
47902         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
47903         signal can be called inside handlers.
47904
47905         Fix nanosleep module on mingw.
47906         * modules/nanosleep (Depends-on): Add sys_select.
47907         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
47908
47909         Fix licensing of sigprocmask.
47910         * modules/raise (License): Relicense as LGPL.
47911
47912 2008-06-21  Bruno Haible  <bruno@clisp.org>
47913
47914         * lib/propername.c (proper_name_utf8): Don't use the transliterated
47915         result if it contains question marks.
47916         Reported by Michael Geng <linux@michaelgeng.de>.
47917
47918 2008-06-19  Bruno Haible  <bruno@clisp.org>
47919
47920         Fix CVS-ism.
47921         * doc/gnulib.texi: Include updated-stamp.texi.
47922         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
47923         (updated-stamp.texi): New rule.
47924         (gnulib.info): Depend on it.
47925         * doc/.gitignore: Add updated-stamp.texi.
47926         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
47927
47928 2008-06-19  Bruno Haible  <bruno@clisp.org>
47929
47930         * doc/Makefile (gnulib.info): Update and simplify dependencies.
47931         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47932
47933 2008-06-19  Eric Blake  <ebb9@byu.net>
47934
47935         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
47936         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
47937         Reported by Stepan Kasal.
47938
47939 2008-06-18  Bruno Haible  <bruno@clisp.org>
47940
47941         * lib/fatal-signal.c (init_fatal_signals): Add comment.
47942         Reported by Eric Blake.
47943
47944 2008-06-18  Eric Blake  <ebb9@byu.net>
47945
47946         Work around cygwin 1.5.25 strsignal bug.
47947         * tests/test-strsignal.c: Allow for const char *.
47948         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
47949
47950 2008-06-18  Simon Josefsson  <simon@josefsson.org>
47951
47952         * users.txt: Update URL to article and add author/date
47953         information.
47954
47955 2008-06-17  Bruno Haible  <bruno@clisp.org>
47956
47957         New macro gl_DISABLE_THREADS.
47958         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
47959         if the user did not pass --enable-threads or --disable-threads option.
47960         (gl_DISABLE_THREADS): New macro.
47961         Reported by Eric Blake <ebb9@byu.net>.
47962
47963 2008-06-17  Bruno Haible  <bruno@clisp.org>
47964
47965         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
47966         when the macro ignores it.
47967         Based on a patch by Eric Blake <ebb9@byu.net>.
47968
47969 2008-06-17  Bruno Haible  <bruno@clisp.org>
47970
47971         * modules/tls (License): Change to LGPLv2+.
47972         Reported by Eric Blake.
47973
47974 2008-06-17  Eric Blake  <ebb9@byu.net>
47975
47976         Simplify c-stack prerequisites.
47977         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
47978         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
47979         no longer requires <ucontext.h> to exist.  Optimize setrlimit
47980         check.
47981         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
47982         <sys/resource.h>.
47983
47984         Move c-stack test into testsuite.
47985         * modules/c-stack-tests: New file.
47986         * lib/c-stack.c [DEBUG]: Move test program...
47987         * tests/test-c-stack.c: ...into this new file.  Skip rather than
47988         fail test if sigaltstack is lacking.
47989         * tests/test-c-stack.sh: New driver file.
47990
47991 2008-06-16  Eric Blake  <ebb9@byu.net>
47992
47993         Use raise module consistently.
47994         * modules/fatal-signal (Depends-on): Add raise.
47995         * modules/sigprocmask (Depends-on): Likewise.
47996         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
47997         * lib/sigprocmask.c (sigprocmask): Likewise.
47998         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47999         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48000
48001         Fix compliance bug in sigpending.
48002         * lib/sigprocmask.c (sigpending): Return pending array via
48003         parameter, not return value.
48004
48005 2008-06-14  Eric Blake  <ebb9@byu.net>
48006
48007         Improve obstack-printf test code.
48008         * tests/test-obstack-printf.c (test_function): Fix comment, and
48009         simplify usage of obstack_* in macros.  Add a test for coverage.
48010         Reported by Bruno Haible.
48011
48012 2008-06-14  Bruno Haible  <bruno@clisp.org>
48013
48014         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48015         array size as a constant, not as a const variable.
48016         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48017         AC_USE_SYSTEM_EXTENSIONS.
48018         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48019         Test whether the obstack_printf function actually exists.
48020         * modules/obstack-printf (Depends-on): Add extensions.
48021         (Include): Remove obstack.h.
48022         * modules/obstack-printf-posix (Depends-on): Add extensions.
48023         (Include): Remove obstack.h.
48024
48025 2008-06-13  Eric Blake  <ebb9@byu.net>
48026
48027         Add obstack-printf and obstack-printf-posix modules.
48028         * modules/obstack-printf: New file.
48029         * modules/obstack-printf-posix: Likewise.
48030         * MODULES.html.sh (Misc): Mention them.
48031         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48032         Likewise.
48033         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48034         Likewise.
48035         * modules/stdio (Makefile.am): Accomodate new modules.
48036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48037         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48038         Declare.
48039         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48040         functions.
48041         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48042         (gl_REPLACE_OBSTACK_PRINTF): New macros
48043         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48044         * tests/test-obstack-printf.c: New file.
48045         * modules/obstack-printf-tests: Likewise.
48046         * modules/obstack-printf-posix-tests: Likewise.
48047
48048 2008-06-11  Bruno Haible  <bruno@clisp.org>
48049
48050         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48051         * lib/open.c: Include errno.h.
48052         (open): Fail when attempting to write to a file that has a trailing
48053         slash.
48054         * tests/test-open.c (main): Test against trailing slash bug.
48055         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48056
48057 2008-06-10  Bruno Haible  <bruno@clisp.org>
48058
48059         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48060         for $? to work inside the trap command, with various /bin/sh-s.
48061         * tests/test-vc-list-files-cvs.sh: Likewise.
48062
48063 2008-06-10  Bruno Haible  <bruno@clisp.org>
48064
48065         * lib/acl-internal.h: Don't include gettext.h here.
48066         * lib/set-mode-acl.c: Include gettext.h here.
48067         * lib/copy-acl.c: Likewise.
48068
48069 2008-06-10  Bruno Haible  <bruno@clisp.org>
48070
48071         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48072         * lib/wait-process.c (wait_subprocess): Likewise.
48073         * lib/execute.h (execute): Add termsigp argument.
48074         * lib/execute.c (execute): Likewise.
48075         * lib/csharpcomp.c (compile_csharp_using_pnet,
48076         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48077         * lib/csharpexec.c (execute_csharp_using_pnet,
48078         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48079         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48080         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48081         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48082         is_jikes_present): Update.
48083         * lib/javaexec.c (execute_java_class): Update.
48084         * lib/javaversion.c (execute_and_read_line): Update.
48085         * NEWS: Document the changes.
48086         Reported by Eric Blake.
48087
48088 2008-06-10  Eric Blake  <ebb9@byu.net>
48089
48090         Add missing include.
48091         * tests/test-strstr.c (includes): Add <signal.h>.
48092         * tests/test-strcasestr.c (includes): Likewise.
48093         * tests/test-memmem.c (includes): Likewise.
48094
48095 2008-06-10  Bruno Haible  <bruno@clisp.org>
48096
48097         * lib/wait-process.c (wait_subprocess): Add an assertion.
48098
48099 2008-06-10  Bruno Haible  <bruno@clisp.org>
48100
48101         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48102
48103 2008-06-10  Bruno Haible  <bruno@clisp.org>
48104
48105         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48106         using alarm().
48107         * tests/test-strcasestr.c (main): Likewise.
48108         * tests/test-strstr.c (main): Likewise.
48109
48110 2008-06-09  Bruno Haible  <bruno@clisp.org>
48111
48112         Work around the Solaris 10 ACE ACLs ABI change.
48113         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48114         declare if ACL_NO_TRIVIAL is present.
48115         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48116         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48117         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48118         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48119         define if ACL_NO_TRIVIAL is present.
48120         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48121         and use the current ABI.
48122         (file_has_acl): Use same #if condition as elsewhere.
48123         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48124         in use, and use the current ABI.
48125         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48126         Reported by Jim Meyering.
48127
48128 2008-06-09  Eric Blake  <ebb9@byu.net>
48129
48130         Work around environments that (stupidly) ignore SIGALRM.
48131         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48132         before using alarm().
48133         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48134         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48135         Reported by Ian Beckwith <ianb@erislabs.net>.
48136
48137         Produce autobuild blurb earlier in log.
48138         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48139
48140 2008-06-09  Jim Meyering  <meyering@redhat.com>
48141         and OndÅ™ej Vašík  <ovasik@redhat.com>
48142
48143         utimens.c: correct kernel bug work-around
48144         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48145         failure, not success, and the kernel bug we're trying to work
48146         around affects not just the utimensat call, but also the fallback
48147         futimens call.
48148         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48149         not success.
48150         [HAVE_FUTIMENS]: Use the same work-around, here.
48151
48152 2008-06-09  Jim Meyering  <meyering@redhat.com>
48153
48154         add more guards around definition of ACE_-related code
48155         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48156         ALLOW and ACE_OWNER are also defined.
48157
48158 2008-06-08  Bruno Haible  <bruno@clisp.org>
48159
48160         * lib/acl-internal.h: Add me as co-author.
48161         * lib/file-has-acl.c: Likewise.
48162         * lib/set-mode-acl.c: Likewise.
48163         * lib/copy-acl.c: Likewise.
48164
48165 2008-06-08  Bruno Haible  <bruno@clisp.org>
48166
48167         Add support for AIX ACLs.
48168         * lib/acl-internal.h (acl_nontrivial): New declaration.
48169         * lib/file-has-acl.c (acl_nontrivial): New function.
48170         (file_has_acl): Add implementation using AIX 4 ACL API.
48171         * lib/set-mode-acl.c (qset_acl): Likewise.
48172         * lib/copy-acl.c (qcopy_acl): Likewise.
48173
48174 2008-06-08  Bruno Haible  <bruno@clisp.org>
48175
48176         Add support for HP-UX ACLs.
48177         * lib/acl-internal.h (acl_nontrivial): New declaration.
48178         * lib/file-has-acl.c (acl_nontrivial): New function.
48179         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48180         * lib/set-mode-acl.c (qset_acl): Likewise.
48181         * lib/copy-acl.c (qcopy_acl): Likewise.
48182
48183 2008-06-08  Bruno Haible  <bruno@clisp.org>
48184
48185         Add support for Cygwin ACLs.
48186         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48187         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48188         the chmod_or_fchmod call.
48189         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48190
48191 2008-06-08  Bruno Haible  <bruno@clisp.org>
48192
48193         Fix bug with setuid modes in Solaris 10+ code.
48194         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48195         succeeded, when the mode contains some special bits.
48196
48197 2008-06-08  Bruno Haible  <bruno@clisp.org>
48198
48199         Add support for Solaris 7..10 ACLs.
48200         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48201         declarations.
48202         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48203         functions.
48204         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48205         * lib/set-mode-acl.c (qset_acl): Likewise.
48206         * lib/copy-acl.c (qcopy_acl): Likewise.
48207
48208 2008-06-08  Bruno Haible  <bruno@clisp.org>
48209
48210         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48211         declaration.
48212         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48213         (acl_access_nontrivial): Remove MacOS X case.
48214         (file_has_acl): Use acl_extended_nontrivial.
48215         * lib/copy-acl.c (qcopy_acl): Likewise.
48216
48217 2008-06-08  Bruno Haible  <bruno@clisp.org>
48218
48219         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48220
48221 2008-06-08  Jim Meyering  <meyering@redhat.com>
48222
48223         * modules/acl (Maintainer): Add Bruno Haible.
48224
48225 2008-06-07  Bruno Haible  <bruno@clisp.org>
48226
48227         Improve support for Tru64 ACLs.
48228         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48229         ACL on OSF/1.
48230
48231 2008-06-07  Bruno Haible  <bruno@clisp.org>
48232
48233         Add support for MacOS X ACLs.
48234         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48235         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48236         * lib/set-mode-acl.c (qset_acl): Likewise.
48237         * lib/copy-acl.c (qcopy_acl): Likewise.
48238
48239 2008-06-07  Bruno Haible  <bruno@clisp.org>
48240
48241         Fix memory leak introduced on 2008-05-22.
48242         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48243         use.
48244
48245 2008-06-07  Bruno Haible  <bruno@clisp.org>
48246
48247         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48248         to construct an empty ACL.
48249
48250 2008-06-07  Bruno Haible  <bruno@clisp.org>
48251
48252         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48253         precisely.
48254         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48255
48256 2008-06-07  Bruno Haible  <bruno@clisp.org>
48257
48258         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48259         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48260
48261 2008-06-07  Bruno Haible  <bruno@clisp.org>
48262
48263         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48264         regardless of POSIX.
48265         * doc/posix-functions/_longjmp.texi: Likewise.
48266         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48267         SystemV platform in this case.
48268
48269 2008-06-06  Eric Blake  <ebb9@byu.net>
48270
48271         Document abort() bugs.
48272         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48273
48274         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48275         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48276         sigsetjmp.
48277         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48278         siglongjmp, but only as a macro.
48279         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48280         is obsolete.
48281         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48282
48283         Tweak documentation to cover cygwin argz bugs.
48284         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48285         argz bug fix; no code change needed since no cygwin releases
48286         occurred between the last fix and the bug being tested.
48287         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48288         module and recently fixed cygwin bugs.
48289         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48290         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48291         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48292         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48293         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48294         Likewise.
48295         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48296         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48297         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48298         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48299         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48300         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48301         Likewise.
48302
48303         Avoid gcc warning on cygwin.
48304         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48305         !ACL_NO_TRIVIAL]: Avoid unused variable.
48306
48307 2008-06-05  Eric Blake  <ebb9@byu.net>
48308
48309         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48310         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48311         git-version-gen fails to come up with a version.
48312         Reported by Simon Josefsson.
48313
48314 2008-06-05  Jim Meyering  <meyering@redhat.com>
48315             Paul Eggert  <eggert@cs.ucla.edu>
48316
48317         utimens.c: work around a probable Linux kernel bug
48318         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48319         appears to be a kernel bug that causes utimensat to return 280
48320         instead of 0, indicating success.
48321
48322 2008-06-04  Bruno Haible  <bruno@clisp.org>
48323
48324         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48325         2008-06-01 commit.
48326
48327 2008-06-04  Bruno Haible  <bruno@clisp.org>
48328
48329         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48330         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48331         (file_has_acl): Use it. Save errno afterwards.
48332         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48333
48334 2008-06-03  Bruno Haible  <bruno@clisp.org>
48335
48336         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48337         draft code. Simplify #ifs.
48338         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48339         Put Solaris code after POSIX-draft code. Fix comments regarding
48340         Solaris 10, HP-UX. Mention Cygwin.
48341         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48342
48343 2008-06-03  Eric Blake  <ebb9@byu.net>
48344
48345         Provide fallback for older kernels.
48346         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48347         Provide runtime fallback if kernel lacks support.
48348         Reported by Mike Frysinger.
48349
48350 2008-06-02  Bruno Haible  <bruno@clisp.org>
48351
48352         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48353         it exists.
48354
48355 2008-06-02  Bruno Haible  <bruno@clisp.org>
48356
48357         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
48358         * lib/copy-acl.c (qcopy_acl): Update comment.
48359
48360 2008-06-02  Bruno Haible  <bruno@clisp.org>
48361
48362         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
48363         like ACL APIs.
48364
48365 2008-06-02  Bruno Haible  <bruno@clisp.org>
48366
48367         * tests/test-file-has-acl.sh: Use different code for Cygwin.
48368         * tests/test-set-mode-acl.sh: Likewise.
48369         * tests/test-copy-acl.sh: Likewise.
48370         * tests/test-copy-file.sh: Likewise.
48371
48372 2008-06-02  Bruno Haible  <bruno@clisp.org>
48373
48374         * tests/test-file-has-acl.sh: Remove unused code.
48375
48376 2008-06-01  Bruno Haible  <bruno@clisp.org>
48377
48378         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
48379         (copy_acl): Just a wrapper around qcopy_acl that emits the error
48380         messages.
48381         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
48382
48383 2008-06-01  Bruno Haible  <bruno@clisp.org>
48384
48385         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
48386         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
48387         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
48388         APIs.
48389         * modules/acl-tests (configure.ac): Remove tests now contained in
48390         m4/acl.m4.
48391
48392 2008-06-02  Jim Meyering  <meyering@redhat.com>
48393
48394         announce-gen: use a better key-server host name
48395         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
48396         it may be more consistently reliable.  Suggested by Werner Koch
48397         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
48398
48399 2008-06-01  Bruno Haible  <bruno@clisp.org>
48400
48401         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
48402         Reported by Voroskoi Andras <voroskoi@gmail.com>.
48403
48404 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
48405
48406         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
48407
48408 2008-06-01  Bruno Haible  <bruno@clisp.org>
48409
48410         New ACL tests.
48411         * tests/test-file-has-acl.sh: New file.
48412         * tests/test-file-has-acl.c: New file.
48413         * tests/test-set-mode-acl.sh: New file.
48414         * tests/test-set-mode-acl.c: New file.
48415         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
48416         * tests/test-copy-acl.c: New file.
48417         * modules/acl-tests: New file, based on modules/copy-file-tests.
48418         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
48419         (Depends-on): Add acl-tests.
48420         (configure.ac): Remove checks.
48421         (Makefile.am): Don't create test-sameacls program here any more.
48422
48423 2008-06-01  Bruno Haible  <bruno@clisp.org>
48424
48425         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
48426         * tests/test-sameacls.c: Include progname.h.
48427         (main): Invoke set_program_name. Portability fixes for MacOS X,
48428         Solaris, HP-UX.
48429
48430 2008-06-01  Bruno Haible  <bruno@clisp.org>
48431
48432         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
48433         function.
48434         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
48435
48436 2008-06-01  Bruno Haible  <bruno@clisp.org>
48437
48438         * modules/rpmatch (Depends-on): Add strdup.
48439
48440 2008-06-01  Bruno Haible  <bruno@clisp.org>
48441
48442         * lib/pipe.c: Include unistd-safer.h.
48443         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
48444         * modules/pipe (Depends-on): Add unistd-safer.
48445
48446 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48447
48448         * modules/autobuild (configure.ac): Call AB_INIT.
48449
48450 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48451
48452         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48453         Suggested by Bruno Haible <bruno@clisp.org>.
48454
48455 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48456
48457         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48458         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48459         <bruno@clisp.org>.
48460
48461 2008-05-29  Eric Blake  <ebb9@byu.net>
48462
48463         Prefer new POSIX 200x interfaces over futimesat.
48464         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48465         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48466         when available.
48467         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48468
48469 2008-05-28  Bruno Haible  <bruno@clisp.org>
48470
48471         * modules/stpcpy (License): Change to LGPLv2+.
48472         Requested by David Lutterkort <dlutter@redhat.com>.
48473
48474 2008-05-27  Bruno Haible  <bruno@clisp.org>
48475
48476         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48477         current mingw.
48478         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48479
48480 2008-05-27  Bruno Haible  <bruno@clisp.org>
48481
48482         * modules/iconv_open (Link): New section, from module 'iconv'.
48483         * modules/striconv (Link): Likewise.
48484         * modules/striconveh (Link): Likewise.
48485         * modules/xstriconv (Link): Likewise.
48486         * modules/unicodeio (Link): Likewise.
48487         * modules/propername (Link): Likewise.
48488         Reported by Jim Meyering.
48489
48490 2008-05-26  Jim Meyering  <meyering@redhat.com>
48491
48492         sha256: do not artificially restrict buffer length to be < 2^32
48493         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
48494         uint32_t to size_t.
48495         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
48496         to match.
48497
48498         avoid unaligned access errors, e.g., on sparc
48499         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
48500         direct access through a possibly-unaligned uint64* pointer.
48501         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
48502         direct access through a possibly-unaligned uint32* pointer.
48503         Prompted by this patch from Tom "spot" Callaway:
48504         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
48505
48506         sha512.c: fix typo in comment
48507         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
48508
48509 2008-05-25  Bruno Haible  <bruno@clisp.org>
48510
48511         * lib/set-mode-acl.c: Renamed from lib/acl.c.
48512         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
48513         (Makefile.am): Update lib_SOURCES.
48514
48515 2008-05-25  Bruno Haible  <bruno@clisp.org>
48516
48517         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
48518
48519 2008-05-25  Jim Meyering  <meyering@redhat.com>
48520
48521         useless-if-before-free: freed expr may have white-space differences
48522         * build-aux/useless-if-before-free: Recognize cases in which the
48523         freed expression differs from the tested one in embedded white
48524         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48525         $1 was used, so we can't make any regexp shy.  Improved tests now
48526         detect this.
48527
48528         useless-if-before-free: accept white space in the expression.
48529         * build-aux/useless-if-before-free: For now, any white space
48530         in the expression must be identical in the free argument.
48531
48532         useless-if-before-free: efficiency tweak
48533         * build-aux/useless-if-before-free: Make the expression-matching
48534         regexp "shy".
48535         Make the *outer* regexp shy, not the expr-matching one.
48536
48537         update code-in-comment to accept cast of free arg
48538         * build-aux/useless-if-before-free: Update regexp.
48539
48540 2008-05-25  Bruno Haible  <bruno@clisp.org>
48541
48542         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
48543         * modules/copy-file-tests (Files, Makefile.am): Update.
48544         * tests/test-copy-file.c (func_test_copy): Update.
48545
48546 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
48547
48548         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
48549
48550 2008-05-23  Bruno Haible  <bruno@clisp.org>
48551
48552         Improve support for ACLs on OSF/1.
48553         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
48554         Remove fallback for unknown flavors of ACLs.
48555
48556 2008-05-22  Bruno Haible  <bruno@clisp.org>
48557
48558         Add support for ACLs on OSF/1.
48559         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
48560         replacements.
48561         (acl_free_text): New macro fallback.
48562         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
48563         acl_free.
48564         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
48565         acl_free_text function. Require AC_C_INLINE.
48566
48567 2008-05-22  Bruno Haible  <bruno@clisp.org>
48568
48569         Make copy_acl work on MacOS X 10.5.
48570         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
48571         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
48572         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
48573         If MODE_INSIDE_ACL, don't assume that every system has the same text
48574         representation for ACLs as FreeBSD.
48575         * lib/copy-acl.c (copy_acl): Add support for platforms with
48576         !MODE_INSIDE_ACL.
48577         * lib/file-has-acl.c (file_has_acl): Likewise.
48578         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
48579         FreeBSD, MacOS X, or IRIX, respectively.
48580
48581 2008-05-22  Bruno Haible  <bruno@clisp.org>
48582
48583         * lib/acl.h: Don't include <sys/acl.h>.
48584         (GETACLCNT): Move fallback to lib/acl-internal.h.
48585         * lib/acl-internal.h: Include <sys/acl.h> here.
48586         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
48587
48588 2008-05-22  Bruno Haible  <bruno@clisp.org>
48589
48590         Split off copy_acl function to separate file.
48591         * lib/copy-acl.c: New file, extracted from lib/acl.c.
48592         * lib/acl.c (copy_acl): Moved function to separate file.
48593         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
48594         * modules/acl (Files): Add lib/copy-acl.c.
48595         (Makefiles.am): Augment lib_SOURCES.
48596
48597 2008-05-22  Bruno Haible  <bruno@clisp.org>
48598
48599         * modules/copy-file-tests: New file.
48600         * tests/test-copy-file.sh: New file.
48601         * tests/test-copy-file.c: New file.
48602         * tests/test-copy-file-sameacls.c: New file.
48603
48604 2008-05-22  Eric Blake  <ebb9@byu.net>
48605
48606         Avoid gcc warning.
48607         * tests/test-memcmp.c (main): Pass NULL indirectly.
48608
48609 2008-05-21  Bruno Haible  <bruno@clisp.org>
48610
48611         Add reference doc about ACLs.
48612         * doc/acl-resources.txt: New file.
48613         * doc/acl-cygwin.txt: New file.
48614
48615 2008-05-21  Bruno Haible  <bruno@clisp.org>
48616
48617         Avoid one more warning from gcc.
48618         * lib/vasnprintf.c (IF_LINT): Update comments.
48619         (VASNPRINTF): Use it also for the 'prefix' array initializer.
48620
48621 2008-05-21  Jim Meyering  <meyering@redhat.com>
48622
48623         avoid a warning from gcc
48624         * lib/vasnprintf.c (IF_LINT): Define.
48625         (scale10_round_decimal_long_double):
48626         Use it to avoid a "may be used uninitialized" warning.
48627         (scale10_round_decimal_double): Likewise.
48628
48629 2008-05-21  Simon Josefsson  <simon@josefsson.org>
48630
48631         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
48632         declared.
48633
48634 2008-05-20  Bruno Haible  <bruno@clisp.org>
48635
48636         * tests/test-memcmp.c (main): Test also the sign of the result. Test
48637         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
48638
48639 2008-05-20  Simon Josefsson  <simon@josefsson.org>
48640
48641         * modules/memcmp-tests: New file.
48642         * tests/test-memcmp.c: New file.
48643
48644 2008-05-19  Bruno Haible  <bruno@clisp.org>
48645
48646         * modules/propername (Notice, configure.ac): Put quoted "..." into
48647         --keyword option.
48648         * lib/propername.h: Update comments accordingly.
48649         Reported by Eric Blake.
48650
48651 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
48652
48653         * modules/getpass-gnu (Depends-on): Add fseeko.
48654
48655 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48656
48657         * modules/base64-tests: New file.
48658
48659 2008-05-19  Bo Borgerson <gigabo@gmail.com>
48660
48661         * lib/base64.c (base64_decode_ctx): If a decode context structure
48662         was passed in use it to ignore newlines.  If a context structure
48663         was _not_ passed in, continue to treat newlines as garbage (this
48664         is the historical behavior).  Formerly base64_decode.
48665         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48666         takes a decode context structure.
48667         * lib/base64.h (base64_decode): Macro for four-argument calls.
48668         (base64_decode_alloc): Likewise.
48669         * lib/base64.c (base64_decode_ctx): If a decode context structure
48670         was passed in use it to ignore newlines.  If a context structure
48671         was _not_ passed in, continue to treat newlines as garbage (this
48672         is the historical behavior).  Formerly base64_decode.
48673         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48674         takes a decode context structure.
48675         * lib/base64.h (base64_decode): Macro for four-argument calls.
48676         (base64_decode_alloc): Likewise.
48677
48678 2008-05-19  Jim Meyering  <meyering@redhat.com>
48679
48680         avoid a warning from gcc
48681         * lib/trim.c (IF_LINT): Define.
48682         (trim2): Use it to avoid a "may be used uninitialized" warning.
48683
48684         Fix doc typo.
48685         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
48686
48687 2008-05-19  Bruno Haible  <bruno@clisp.org>
48688
48689         * doc/glibc-functions/getpass.texi: Document limits of other
48690         implementations.
48691
48692 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48693             Bruno Haible <bruno@clisp.org>
48694
48695         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
48696
48697 2008-05-18  Bruno Haible  <bruno@clisp.org>
48698
48699         * modules/propername: New file, from GNU gettext.
48700         * lib/propername.h: New file, from GNU gettext.
48701         * lib/propername.c: New file, from GNU gettext.
48702         * MODULES.html.sh (Internationalization functions): Add propername.
48703
48704 2008-05-16  Jim Meyering  <meyering@redhat.com>
48705             Bruno Haible  <bruno@clisp.org>
48706
48707         Avoid some warnings from "gcc -Wshadow".
48708         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
48709
48710 2008-05-15  Eric Blake  <ebb9@byu.net>
48711
48712         Extend previous patch to cygwin 1.7.0.
48713         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
48714         fast implementation in cygwin >= 1.7.0.
48715         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48716         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48717
48718 2008-05-15  Bruno Haible  <bruno@clisp.org>
48719
48720         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
48721         implementation in glibc >= 2.9.
48722         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48723         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48724
48725 2008-05-15  Bruno Haible  <bruno@clisp.org>
48726
48727         * MODULES.html.sh (Internationalization functions): Remove linebreak.
48728         (Unicode string functions): Add unilbrk/*.
48729         Reported by Karl Berry.
48730
48731 2008-05-15  Eric Blake  <ebb9@byu.net>
48732
48733         Fix violation of <stdbool.h> replacement in regex.
48734         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
48735         * lib/regexec.c (re_search_internal): Likewise.
48736         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
48737
48738 2008-05-15  Jim Meyering  <meyering@redhat.com>
48739
48740         avoid distracting test output when git or cvs is not found
48741         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
48742         * tests/test-vc-list-files-git.sh: Likewise.
48743
48744 2008-05-15  Eric Blake  <ebb9@byu.net>
48745
48746         Glibc finally accepted the memmem speedup code, bugzilla #5514.
48747         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
48748         glibc version.
48749         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48750         * doc/posix-functions/strstr.texi (strstr): Likewise.
48751         * lib/str-two-way.h (MAX): Sychronize with glibc.
48752
48753 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
48754
48755         * lib/regcomp.c (optimize_utf8): Add a note on why we test
48756         opr.ctx_type.
48757         (calc_first): Initialize constraint field.
48758         (duplicate_node_closure): Use it instead of special casing ANCHORS.
48759         Fix grammar.
48760         (duplicate_node): Merge constraint field for all node types.
48761         (calc_eclosure_iter): Look at constraint field for all node types.
48762         * lib/regex_internal.c (create_cd_newstate): Don't look at
48763         opr.ctx_type.
48764
48765 2008-05-14  Bruno Haible  <bruno@clisp.org>
48766
48767         Help GCC to do better code generation.
48768         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
48769         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
48770         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
48771         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
48772         Declare with attribute 'malloc' if supported.
48773
48774 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
48775
48776         use "echo STR|wc -c" rather than unportable "expr length STR"
48777         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
48778         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
48779
48780 2008-05-14  Jim Meyering  <meyering@redhat.com>
48781
48782         use dd ibs=$n count=1 ... rather than less-portable head -c$n
48783         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
48784         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
48785         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
48786         via Collin Lasse.
48787
48788 2008-05-14  Eric Blake  <ebb9@byu.net>
48789
48790         Avoid quadratic growth in gl_LIBSOURCES.
48791         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
48792         Suggested by Bruno Haible.
48793
48794         Test xmemdup0.
48795         * modules/xmemdup0-tests: New file.
48796         * tests/test-xmemdup0.c: Likewise.
48797
48798 2008-05-13  Eric Blake  <ebb9@byu.net>
48799
48800         Split xmemdup0 into its own module.
48801         * modules/xmemdup0: New file.
48802         * lib/xmemdup0.h: Likewise.
48803         * lib/xmemdup0.c: Likewise.
48804         * MODULES.html.sh (Memory management functions): Add xmemdup0.
48805         * lib/xalloc.h (xmemdup0): Remove.
48806         * lib/xmalloc.c (xmemdup0): Likewise.
48807
48808 2008-05-13  Eric Blake  <ebb9@byu.net>
48809             Bruno Haible  <bruno@clisp.org>
48810
48811         Reduce number of forks required during autoconf.
48812         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
48813         and gl_LIBSOURCES_DIR.
48814         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
48815         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
48816         m4_syscmd per file.
48817         <m4_foreach_w>: Move...
48818         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
48819
48820 2008-05-13  Eric Blake  <ebb9@byu.net>
48821
48822         * gnulib-tool: Fix various comment typos.
48823
48824 2008-05-12  Bruno Haible  <bruno@clisp.org>
48825
48826         Tailor the linebreaking algorithm.
48827         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
48828
48829 2008-05-12  Bruno Haible  <bruno@clisp.org>
48830
48831         Update to Unicode 5.0.0.
48832         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48833         LBP_JV, LBP_JT. Redistribute values.
48834         (unilbrk_table): Change size.
48835         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
48836         Unicode TR#14 rev. 22.
48837         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48838         LBP_JV, LBP_JT. Redistribute values.
48839         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
48840         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
48841         Update.
48842         * lib/unilbrk/lbrkprop1.h: Regenerated.
48843         * lib/unilbrk/lbrkprop2.h: Regenerated.
48844         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
48845         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
48846         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
48847         Likewise.
48848         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
48849         Likewise.
48850         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
48851         result.
48852         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
48853         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
48854         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
48855         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
48856         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
48857         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
48858
48859 2008-05-11  Bruno Haible  <bruno@clisp.org>
48860
48861         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
48862
48863 2008-05-11  Bruno Haible  <bruno@clisp.org>
48864
48865         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
48866         * modules/unilbrk/gen-lbrk: New file.
48867
48868 2008-05-11  Bruno Haible  <bruno@clisp.org>
48869
48870         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
48871         * m4/sha512.m4 (gl_SHA512): Likewise.
48872
48873 2008-05-11  Jim Meyering  <meyering@redhat.com>
48874
48875         New modules: crypto/sha256, crypto/sha512 (from coreutils)
48876         * modules/crypto/sha256: New file.
48877         * modules/crypto/sha512: Likewise.
48878         * lib/sha256.c: Likewise.
48879         * lib/sha256.h: Likewise.
48880         * lib/sha512.c: Likewise.
48881         * lib/sha512.h: Likewise.
48882         * lib/u64.h: Likewise.
48883         * m4/sha256.m4: Likewise.
48884         * m4/sha512.m4: Likewise.
48885         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
48886
48887 2008-05-10  Bruno Haible  <bruno@clisp.org>
48888
48889         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
48890         (Input/Output <stdio.h>): Add xprintf.
48891         (Signal handling <signal.h>): Add strsignal.
48892         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
48893         (Core language properties): Add func.
48894         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
48895         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
48896         strings.
48897         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
48898         (Input/output): New section.
48899         (File system functions): Add openat-die, stat-macros.
48900         (Networking functions): Add sockets.
48901         (Unicode string functions): Add unictype/*.
48902         (Support for building libraries and executables): Add gperf.
48903         (Support for building documentation): Add agpl-3.0.
48904         (Misc): Add nocrash.
48905
48906 2008-05-10  Bruno Haible  <bruno@clisp.org>
48907
48908         * modules/unictype/gen-ctype: New file.
48909
48910 2008-05-10  Jim Meyering  <meyering@redhat.com>
48911
48912         Make chdir-safer.c more efficient on a system with no symlinks.
48913         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
48914         also if ELOOP is zero.  Suggested by Bruno Haible.
48915
48916         Make chdir-safer.c slightly safer.
48917         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
48918         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
48919
48920         Avoid compile failure on systems without ELOOP (like mingw).
48921         * lib/chdir-safer.c (ELOOP): Define if not already defined.
48922         Reported by Bruno Haible.
48923
48924 2008-05-10  Bruno Haible  <bruno@clisp.org>
48925
48926         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
48927         (is_utf8_encoding): Use a case-insensitive comparison.
48928         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
48929         streq.
48930
48931 2008-05-10  Bruno Haible  <bruno@clisp.org>
48932
48933         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
48934         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
48935         * lib/unilbrk/ulc-common.h (iconv_string_length,
48936         iconv_string_keeping_offsets): Remove declarations.
48937         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
48938         Don't include <iconv.h>, streq.h, xsize.h.
48939         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
48940         conversion.
48941         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
48942         <iconv.h>, streq.h, xsize.h.
48943         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
48944         conversion.
48945         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
48946         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
48947         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
48948         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
48949
48950 2008-05-10  Bruno Haible  <bruno@clisp.org>
48951
48952         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
48953         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
48954
48955         * modules/unilbrk/u32-width-linebreaks-tests: New file.
48956         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
48957
48958         * modules/unilbrk/u16-width-linebreaks-tests: New file.
48959         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
48960
48961         * modules/unilbrk/u8-width-linebreaks-tests: New file.
48962         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
48963
48964         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
48965         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
48966
48967         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
48968         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
48969
48970         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
48971         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
48972
48973         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
48974         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
48975
48976 2008-05-10  Bruno Haible  <bruno@clisp.org>
48977
48978         Split up 'linebreak' module.
48979         * lib/unilbrk.h: New file, based on lib/linebreak.h.
48980         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
48981         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
48982         modifications.
48983         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
48984         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
48985         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
48986         lib/linebreak.c.
48987         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
48988         lib/linebreak.c.
48989         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
48990         lib/linebreak.c.
48991         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
48992         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
48993         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
48994         lib/linebreak.c.
48995         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
48996         lib/linebreak.c.
48997         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
48998         lib/linebreak.c.
48999         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49000         lib/linebreak.c.
49001         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49002         lib/linebreak.c.
49003         * modules/unilbrk/base: New file.
49004         * modules/unilbrk/tables: New file.
49005         * modules/unilbrk/u8-possible-linebreaks: New file.
49006         * modules/unilbrk/u16-possible-linebreaks: New file.
49007         * modules/unilbrk/u32-possible-linebreaks: New file.
49008         * modules/unilbrk/ulc-common: New file.
49009         * modules/unilbrk/ulc-possible-linebreaks: New file.
49010         * modules/unilbrk/u8-width-linebreaks: New file.
49011         * modules/unilbrk/u16-width-linebreaks: New file.
49012         * modules/unilbrk/u32-width-linebreaks: New file.
49013         * modules/unilbrk/ulc-width-linebreaks: New file.
49014         * lib/linebreak.h: Remove file.
49015         * lib/linebreak.c: Remove file.
49016         * m4/linebreak.m4: Remove file.
49017         * modules/linebreak: Remove file.
49018         * NEWS: Mention the changes.
49019
49020 2008-05-09  Eric Blake  <ebb9@byu.net>
49021
49022         Add xmemdup0.
49023         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49024         implementation.
49025         * lib/xmalloc.c (xmemdup0): New C implementation.
49026
49027 2008-05-08  Bruno Haible  <bruno@clisp.org>
49028
49029         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49030
49031 2008-05-07  Eric Blake  <ebb9@byu.net>
49032
49033         Support cross-compilation of <wctype.h>.
49034         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49035         AC_CACHE_CHECK.
49036
49037 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49038
49039         * build-aux/vc-list-files: Add support for bzr.
49040
49041 2008-05-03  Jim Meyering  <meyering@redhat.com>
49042
49043         avoid failed assertion with tight malloc
49044         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49045
49046 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49047
49048         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49049         are needed from arpa/inet.h.
49050         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49051         Reported by Bruno Haible.
49052
49053 2008-05-02  Jim Meyering  <meyering@redhat.com>
49054
49055         avoid compilation error on FreeBSD 6
49056         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49057
49058 2008-05-01  Jim Meyering  <meyering@redhat.com>
49059
49060         useless-if-before-free: correct --help's exit status description
49061         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49062         for one or more matches, etc.  Reported by Bruno Haible.
49063
49064         vc-list-files: make the stand-alone gnulib test work
49065         * modules/vc-list-files-tests (configure.ac):
49066         Define and AC_SUBST abs_aux_dir.
49067         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49068         $(abs_top_srcdir) to each script and having each of them
49069         duplicate the work of setting PATH, set PATH here, using
49070         the new variable, abs_aux_dir instead.
49071         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49072         * tests/test-vc-list-files-git.sh: Likewise.
49073         Reported by Bruno Haible.
49074
49075 2008-05-01  Bruno Haible  <bruno@clisp.org>
49076
49077         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49078         reallocation. Rename 'done' to 'found_delimiter'.
49079
49080 2008-05-01  Jim Meyering  <meyering@redhat.com>
49081
49082         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49083         * build-aux/vc-list-files: Use `...`, not $(...).
49084
49085 2008-04-30  Jim Meyering  <meyering@redhat.com>
49086
49087         add tests for vc-list-files
49088         * modules/vc-list-files-tests: New module.
49089         * tests/test-vc-list-files-cvs.sh: New file.
49090         * tests/test-vc-list-files-git.sh: New file.
49091
49092         avoid a warning from gcc
49093         * lib/getndelim2.c (IF_LINT): Define.
49094         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49095
49096         vc-list-files: work properly with build-aux/cvsu, too
49097         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49098         to all cvs-based clauses.
49099
49100         vc-list-files: work properly in the CVS+awk case, too
49101         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49102
49103         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49104         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49105         take more than one file argument, so .  Add quotes, just in case $dir
49106         ever contains a shell meta-character.  Prompted by Soren Hansen in
49107         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49108
49109 2008-04-29  Eric Blake  <ebb9@byu.net>
49110
49111         Optimize getndelim2 to use block operations when possible.
49112         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49113         freadseek, and memchr2.
49114         * lib/getndelim2.c (getndelim2): Use them for block reads.
49115
49116 2008-04-29  Bruno Haible  <bruno@clisp.org>
49117
49118         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49119         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49120         * modules/inet_ntop (Depends-on): Add extensions.
49121         * modules/inet_pton (Depends-on): Likewise.
49122         Reported by Simon Josefsson.
49123
49124 2008-04-29  Jim Meyering  <meyering@redhat.com>
49125
49126         When the is more than one match in a block, match all of them.
49127         * build-aux/useless-if-before-free: Iterate through each block
49128         until there are no more matches.
49129
49130         Fix broken useless-if-before-free script.
49131         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49132         the expression to match cast of argument to free-like function.
49133
49134 2008-04-29  Eric Blake  <ebb9@byu.net>
49135
49136         Use new header.
49137         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49138
49139 2008-04-29  Jim Meyering  <meyering@redhat.com>
49140
49141         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49142         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49143         by gnulib to exist and to declare e.g., inet_ntop.
49144         Don't include "inet_ntop.h", now removed.
49145
49146         * m4/arpa_inet_h.m4: Remove trailing blanks.
49147
49148 2008-04-29  Eric Blake  <ebb9@byu.net>
49149
49150         Silence valgrind on safe reads beyond potential array bounds.
49151         * lib/rawmemchr.valgrind: New file.
49152         * lib/strchrnul.valgrind: Likewise.
49153         * modules/rawmemchr (Files): Distribute new file.
49154         * modules/strchrnul (Files): Likewise.
49155         Suggested by Bruno Haible.
49156
49157 2008-04-29  Bruno Haible  <bruno@clisp.org>
49158
49159         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49160         (inet_ntop, inet_pton): Change portability warning's wording.
49161         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49162         Invoke gl_CHECK_NEXT_HEADERS.
49163         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49164         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49165         set ARPA_INET_H.
49166         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49167         * modules/arpa_inet (Description): No longer only for systems that
49168         lack it.
49169         (Depends-on): Add include_next.
49170         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49171         HAVE_ARPA_INET_H.
49172
49173 2008-04-29  Jim Meyering  <meyering@redhat.com>
49174
49175         * modules/mkdir (License): Re-license as LGPLv2+.
49176
49177 2008-04-29  Bruno Haible  <bruno@clisp.org>
49178
49179         * modules/rawmemchr (Maintainer): Set to Eric.
49180         * modules/strchrnul (Maintainer): Likewise.
49181
49182 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49183
49184         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49185         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49186
49187         * modules/arpa_inet (arpa/inet.h): Use them.
49188
49189 2008-04-28  Eric Blake  <ebb9@byu.net>
49190
49191         Test getndelim2.
49192         * modules/getndelim2-tests: New file.
49193         * tests/test-getndelim2.c: Likewise.
49194         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49195         stream.
49196         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49197
49198         * MODULES.html.sh: Document new module.
49199
49200 2008-04-20  Bruno Haible  <bruno@clisp.org>
49201
49202         * lib/c-stack.c (die): Use raise.
49203         * modules/c-stack (Depends-on): Add raise.
49204
49205 2008-04-28  Bruno Haible  <bruno@clisp.org>
49206
49207         Expect rpmatch to be declared.
49208         * lib/yesno.c (rpmatch): Remove declaration.
49209
49210         Declare rpmatch.
49211         * lib/stdlib.in.h (rpmatch): New declaration.
49212         * lib/rpmatch.c: Include <stdlib.h> first.
49213         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49214         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49215         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49216         HAVE_RPMATCH.
49217         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49218         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49219         (Include): Set to <stdlib.h>.
49220         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49221         HAVE_RPMATCH.
49222         * NEWS: Document the change.
49223
49224 2008-04-28  Bruno Haible  <bruno@clisp.org>
49225
49226         Change rpmatch to use nl_langinfo when appropriate.
49227         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49228         (N_): New macro.
49229         (localized_pattern): New function/macro.
49230         (try): Remove match, nomatch arguments. Copy the pattern into safe
49231         memory before caching it.
49232         (rpmatch): Use localized_pattern. Add translator comments.
49233         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49234         Suggested by Eric Blake.
49235         * modules/rpmatch (Depends-on): Add stdbool.
49236
49237 2008-04-28  Eric Blake  <ebb9@byu.net>
49238
49239         Add rawmemchr module, matching glibc.
49240         * modules/string (Makefile.am): New indicator.
49241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49242         * lib/string.in.h (rawmemchr): Declare when appropriate.
49243         * modules/rawmemchr: New file.
49244         * m4/rawmemchr.m4: Likewise.
49245         * lib/rawmemchr.c: Likewise.
49246         * modules/rawmemchr-tests: Likewise.
49247         * tests/test-rawmemchr.c: Likewise.
49248         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49249         module.
49250         * modules/strchrnul (Depends-on): Add rawmemchr.
49251         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49252
49253         Whitespace cleanup.
49254         * tests/test-strchrnul.c: Reindent.
49255         * lib/strchrnul.c: Likewise.
49256
49257         Optimize and test strchrnul.
49258         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49259         * modules/strchrnul-tests: New file.
49260         * tests/test-strchrnul.c: Likewise.
49261
49262         Remove intprops dependency.
49263         * modules/memchr (Depends-on): Remove intprops.
49264         * modules/memrchr (Depends-on): Likewise.
49265         * modules/memchr2 (Depends-on): Likewise.
49266         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49267         * lib/memrchr.c (__memrchr): Likewise.
49268         * lib/memrchr2.c (memchr2): Likewise.
49269         Reported by Simon Josefsson.
49270
49271 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49272
49273         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49274         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49275
49276 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49277
49278         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49279
49280         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49281
49282         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49283
49284         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49285         declarations.
49286         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49287
49288         * m4/inet_pton.m4: Don't check for header files.
49289
49290         * m4/inet_ntop.m4: Don't check for header files.
49291
49292 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49293
49294         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49295         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49296         trigger for cygwin).
49297         Reported by Bruno Haible  <bruno@clisp.org>.
49298
49299 2008-04-28  Bruno Haible  <bruno@clisp.org>
49300
49301         * doc/posix-functions/strdup.texi: Mention mingw problem.
49302
49303 2008-04-27  Bruno Haible  <bruno@clisp.org>
49304
49305         * modules/stat-time-tests (Depends-on): Add sleep.
49306         * tests/test-stat-time.c (force_unlink): New function.
49307         (cleanup): Use it.
49308         (test_mtime): Remove the ctime related tests.
49309         (test_ctime): New function, containing the ctime related tests.
49310         (main): Call test_ctime, except on native Windows platforms.
49311
49312 2008-04-27  Bruno Haible  <bruno@clisp.org>
49313
49314         * lib/rpmatch.c (rpmatch): Add some comments.
49315         Reported by James Youngman <jay@gnu.org>.
49316
49317 2008-04-27  Bruno Haible  <bruno@clisp.org>
49318
49319         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49320         quiet NaNs.
49321
49322 2008-04-27  Bruno Haible  <bruno@clisp.org>
49323
49324         Make test-yesno.sh work on mingw.
49325         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49326         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49327         (main): Set stdin to binary mode.
49328         * modules/yesno-tests (Depends-on): Add binary-io.
49329
49330 2008-04-27  Bruno Haible  <bruno@clisp.org>
49331
49332         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49333         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49334         argument that lie outside the IEEE 854 domain.
49335         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49336         (gl_ISFINITE): Use it.
49337         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49338
49339 2008-04-27  Bruno Haible  <bruno@clisp.org>
49340
49341         Allow local renaming in config.h.
49342         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49343
49344 2008-04-27  Bruno Haible  <bruno@clisp.org>
49345
49346         * lib/memchr.c (__memchr): Change type of 'i'.
49347         * lib/memchr2.c (memchr2): Likewise.
49348
49349 2008-04-26  Eric Blake  <ebb9@byu.net>
49350         and Bruno Haible  <bruno@clisp.org>
49351
49352         Optimize and test memrchr.
49353         * modules/memrchr (Depends-on): Add intprops.
49354         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
49355         * modules/memrchr-tests: New file.
49356         * tests/test-memrchr.c: New file.
49357
49358 2008-04-26  Bruno Haible  <bruno@clisp.org>
49359
49360         Add tentative support for DragonFly BSD.
49361         * lib/stdio-impl.h: Add macros for DragonFly BSD.
49362         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
49363         fp.
49364         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49365         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
49366         * lib/fpurge.c (fpurge): Likewise.
49367         * lib/freadable.c (freaadable): Likewise.
49368         * lib/freadahead.c (freadahead): Likewise.
49369         * lib/freading.c (freading): Likewise.
49370         * lib/freadptr.c (freadptr): Likewise.
49371         * lib/freadseek.c (freadptrinc): Likewise.
49372         * lib/fseeko.c (fseeko): Likewise.
49373         * lib/fseterr.c (fseterr): Likewise.
49374         * lib/fwritable.c (fwritable): Likewise.
49375         * lib/fwriting.c (fwriting): Likewise.
49376
49377 2008-04-26  Bruno Haible  <bruno@clisp.org>
49378
49379         * lib/stdio-impl.h: New file.
49380         * lib/fbufmode.c: Include stdio-impl.h.
49381         (fbufmode): Use fp_, remove redundant #defines.
49382         * lib/fflush.c: Include stdio-impl.h.
49383         (clear_ungetc_buffer): Remove redundant #defines.
49384         * lib/fpurge.c: Include stdio-impl.h.
49385         (fpurge): Remove redundant #defines.
49386         * lib/freadable.c: Include stdio-impl.h.
49387         (freadable): Remove redundant #defines.
49388         * lib/freadahead.c: Include stdio-impl.h.
49389         (freadahead): Remove redundant #defines.
49390         * lib/freading.c: Include stdio-impl.h.
49391         (freading): Remove redundant #defines.
49392         * lib/freadptr.c: Include stdio-impl.h.
49393         (freadptr): Remove redundant #defines.
49394         * lib/freadseek.c: Include stdio-impl.h.
49395         (freadptrinc): Remove redundant #defines.
49396         * lib/fseeko.c: Include stdio-impl.h.
49397         (rpl_fseeko): Remove redundant #defines.
49398         * lib/fseterr.c: Include stdio-impl.h.
49399         (fseterr): Remove redundant #defines.
49400         * lib/fwritable.c: Include stdio-impl.h.
49401         (fwritable: Remove redundant #defines.
49402         * lib/fwriting.c: Include stdio-impl.h.
49403         (fwriting): Remove redundant #defines.
49404         * modules/fbufmode (Files): Add lib/stdio-impl.h.
49405         * modules/fflush (Files): Likewise.
49406         * modules/fpurge (Files): Likewise.
49407         * modules/freadable (Files): Likewise.
49408         * modules/freadahead (Files): Likewise.
49409         * modules/freading (Files): Likewise.
49410         * modules/freadptr (Files): Likewise.
49411         * modules/freadseek (Files): Likewise.
49412         * modules/fseeko (Files): Likewise.
49413         * modules/fseterr (Files): Likewise.
49414         * modules/fwritable (Files): Likewise.
49415         * modules/fwriting (Files): Likewise.
49416
49417 2008-04-26  Bruno Haible  <bruno@clisp.org>
49418
49419         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49420         restore_seek_optimization, update_fpos_cache): New functions, extracted
49421         from rpl_fflush.
49422         (rpl_fflush): Use them.
49423         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
49424         (gl_REPLACE_FFLUSH): Use it.
49425
49426 2008-04-26  Bruno Haible  <bruno@clisp.org>
49427
49428         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
49429         on Solaris.
49430         * tests/test-xstrtoimax.sh: Likewise.
49431         * tests/test-xstrtoumax.sh: Likewise.
49432         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49433
49434 2008-04-26  Bruno Haible  <bruno@clisp.org>
49435
49436         * modules/memchr-tests: New file.
49437         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
49438
49439 2008-04-26  Eric Blake  <ebb9@byu.net>
49440             Bruno Haible  <bruno@clisp.org>
49441
49442         * lib/memchr.c: Include intprops.h.
49443         (__memchr): Optimize parallel detection of matching bytes. Rename local
49444         variables. Add explanatory comments.
49445
49446 2008-04-26  Bruno Haible  <bruno@clisp.org>
49447
49448         Fix module 'memchr', broken since 2000-10-28.
49449         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
49450
49451 2008-04-26  Bruno Haible  <bruno@clisp.org>
49452
49453         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49454         comments.
49455
49456 2008-04-25  Eric Blake  <ebb9@byu.net>
49457
49458         Use native fstatat on cygwin 1.7.0.
49459         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49460         first.
49461
49462 2008-04-23  Eric Blake  <ebb9@byu.net>
49463
49464         Improve memchr2 performance.
49465         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49466         NUL bytes.
49467         * modules/memchr2 (Depends-on): Use intprops.h.
49468
49469 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49470
49471         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49472         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49473         <blp@cs.stanford.edu>.
49474
49475 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49476
49477         * lib/arpa_inet.in.h: New file.
49478
49479         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49480         (Makefile.am): Sed in substitute header file.
49481
49482         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49483         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
49484
49485         * modules/inet_ntop (configure.ac): Use
49486         gl_ARPA_INET_MODULE_INDICATOR.
49487
49488         * modules/inet_pton (configure.ac): Use
49489         gl_ARPA_INET_MODULE_INDICATOR.
49490
49491 2008-04-22  Jim Meyering  <meyering@redhat.com>
49492
49493         * modules/verify (License): Re-license as LGPLv2+.
49494
49495 2008-04-22  Simon Josefsson  <simon@josefsson.org>
49496
49497         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
49498         parameter to void* as per POSIX standard (MinGW uses char*).
49499
49500 2008-04-21  Bruno Haible  <bruno@clisp.org>
49501
49502         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49503         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49504         Define to replacements if REPLACE_ISWCNTRL is 1.
49505         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
49506         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
49507         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
49508         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
49509         what it fixes.
49510         * doc/posix-functions/iswalpha.texi: Likewise.
49511         * doc/posix-functions/iswblank.texi: Likewise.
49512         * doc/posix-functions/iswcntrl.texi: Likewise.
49513         * doc/posix-functions/iswdigit.texi: Likewise.
49514         * doc/posix-functions/iswgraph.texi: Likewise.
49515         * doc/posix-functions/iswlower.texi: Likewise.
49516         * doc/posix-functions/iswprint.texi: Likewise.
49517         * doc/posix-functions/iswpunct.texi: Likewise.
49518         * doc/posix-functions/iswspace.texi: Likewise.
49519         * doc/posix-functions/iswupper.texi: Likewise.
49520         * doc/posix-functions/iswxdigit.texi: Likewise.
49521         Reported by Alain Guibert.
49522
49523 2008-04-21  Bruno Haible  <bruno@clisp.org>
49524
49525         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49526         Patch by Alain Guibert.
49527
49528 2008-04-21  Bruno Haible  <bruno@clisp.org>
49529
49530         Fix test failures on mingw.
49531         * tests/test-xstrtol.c (print_no_progname): New function.
49532         (main): Install it in error_print_progname hook.
49533         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
49534         * tests/test-xstrtoimax.sh: Likewise.
49535         * tests/test-xstrtoumax.sh: Likewise.
49536
49537 2008-04-21  Bruno Haible  <bruno@clisp.org>
49538
49539         Fix test failure on mingw.
49540         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
49541
49542 2008-04-21  Bruno Haible  <bruno@clisp.org>
49543
49544         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
49545         Actually assign a value.
49546
49547 2008-04-20  Bruno Haible  <bruno@clisp.org>
49548
49549         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
49550         take 2.
49551         * lib/canonicalize.c (canonicalize_file_name): Elide if the
49552         'canonicalize-lgpl' module is also used.
49553         * lib/canonicalize-lgpl.c: Undo last change.
49554         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
49555
49556 2008-04-20  Bruno Haible  <bruno@clisp.org>
49557
49558         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
49559         config.h. Provide _mkdir based fallback for mingw.
49560         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
49561         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
49562         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
49563         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
49564         rather than defining mkdir in config.h.
49565         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
49566         (gl_SYS_STAT_H_DEFAULTS): New macro.
49567         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
49568         HAVE_IO_H any more.
49569         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
49570         HAVE_DECL_MKDIR and HAVE_IO_H.
49571
49572 2008-04-20  Bruno Haible  <bruno@clisp.org>
49573
49574         * lib/isapipe.c: Port to native Windows platforms.
49575
49576 2008-04-20  Bruno Haible  <bruno@clisp.org>
49577
49578         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
49579
49580 2008-04-21  Eric Blake  <ebb9@byu.net>
49581
49582         Work around preprocessors that don't handle UINTMAX_MAX.
49583         * lib/memchr2.c (memchr2): Avoid embedded #if.
49584         Reported by Alain Guibert, fix suggested by Bruno Haible.
49585
49586 2008-04-21  Simon Josefsson  <simon@josefsson.org>
49587
49588         * doc/posix-functions/strftime.texi (strftime): Explain better
49589         Windows incompatibility.  Suggested by Micah Cowan
49590         <micah@cowan.name>.
49591
49592 2008-04-20  Bruno Haible  <bruno@clisp.org>
49593
49594         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
49595         unistr/u8-mblen.
49596
49597 2008-04-20  Bruno Haible  <bruno@clisp.org>
49598
49599         Fix test failure on platforms with non-GNU iconv.
49600         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
49601         (U_TO_U8): Use it, rather than u16_to_u8.
49602         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
49603         units at the end of the input string.
49604         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
49605
49606 2008-04-20  Bruno Haible  <bruno@clisp.org>
49607
49608         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
49609         when the resulting length is 0.
49610         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
49611
49612 2008-04-20  Bruno Haible  <bruno@clisp.org>
49613
49614         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
49615         works.
49616         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
49617
49618 2008-04-20  Bruno Haible  <bruno@clisp.org>
49619
49620         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
49621         * modules/tsearch-tests (configure.ac): Test for initstate function.
49622
49623 2008-04-20  Bruno Haible  <bruno@clisp.org>
49624
49625         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
49626         for nlink_t if missing.
49627         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
49628
49629 2008-04-19  Bruno Haible  <bruno@clisp.org>
49630
49631         Work around snprintf bug on Linux libc5.
49632         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
49633         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49634         gl_SNPRINTF_SIZE1.
49635         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49636         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
49637         that test failed.
49638         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49639         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
49640         * modules/snprintf (Files): Add m4/printf.m4.
49641         * modules/vsnprintf (Files): Likewise.
49642         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
49643         * doc/posix-functions/vsnprintf.texi: Likewise.
49644
49645 2008-04-19  Bruno Haible  <bruno@clisp.org>
49646
49647         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
49648         from 0.0058 to less than 10^-7.
49649
49650 2008-04-19  Bruno Haible  <bruno@clisp.org>
49651
49652         Fix rounding when a precision is given.
49653         * lib/vasnprintf.c (is_borderline): New function.
49654         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
49655         9...9x.
49656         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
49657         %e, %g.
49658         * tests/test-vasprintf-posix.c (test_function): Likewise.
49659         * tests/test-snprintf-posix.h (test_function): Likewise.
49660         * tests/test-sprintf-posix.h (test_function): Likewise.
49661         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
49662         * tests/test-printf-posix.h (test_function): Likewise.
49663         * tests/test-printf-posix.output: Update.
49664         Reported by John Darrington <john@darrington.wattle.id.au> via
49665         Ben Pfaff <blp@cs.stanford.edu>.
49666
49667 2008-04-18  Simon Josefsson  <simon@josefsson.org>
49668
49669         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
49670         Suggested by Bruno Haible <bruno@clisp.org>.
49671
49672 2008-04-17  Bruno Haible  <bruno@clisp.org>
49673
49674         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
49675         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
49676         implementation.
49677         Patch by Bruce Merry <bmerry@gmail.com>.
49678
49679 2008-04-17  Simon Josefsson  <simon@josefsson.org>
49680
49681         * doc/posix-functions/strftime.texi (strftime): Mention that %e
49682         doesn't work under Windows.
49683
49684 2008-04-16  Bruno Haible  <bruno@clisp.org>
49685
49686         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
49687         New macros.
49688         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
49689         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
49690         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
49691         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
49692         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
49693         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
49694         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
49695         macros.
49696         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
49697         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
49698         Northern Sotho, Uighur.
49699
49700 2008-04-16  Bruno Haible  <bruno@clisp.org>
49701
49702         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
49703         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
49704         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
49705         Reported by Daniel Bergström <daniel@octocode.com>.
49706
49707 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
49708             Bruno Haible  <bruno@clisp.org>
49709
49710         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
49711         function.
49712         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
49713         New functions, mostly extracted from gl_locale_name_default.
49714         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
49715
49716 2008-04-16  Eric Blake  <ebb9@byu.net>
49717
49718         Adjust strtod detection to catch glibc 2.7 bug.
49719         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
49720         Reported by John Gatewood Ham.
49721
49722 2008-04-16  Bruno Haible  <bruno@clisp.org>
49723
49724         Add tentative support for Linux libc5.
49725         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
49726         * lib/fpurge.c (fpurge): Likewise.
49727         * lib/freadable.c (freadable): Likewise.
49728         * lib/freadahead.c (freadahead): Likewise.
49729         * lib/freading.c (freading): Likewise.
49730         * lib/freadptr.c (freadptr): Likewise.
49731         * lib/freadseek.c (freadptrinc): Likewise.
49732         * lib/fseeko.c (rpl_fseeko): Likewise.
49733         * lib/fseterr.c (fseterr): Likewise.
49734         * lib/fwritable.c (fwritable): Likewise.
49735         * lib/fwriting.c (fwriting): Likewise.
49736         Reported by Alain Guibert <alguibert+bts@free.fr>.
49737
49738 2008-04-15  Bruno Haible  <bruno@clisp.org>
49739
49740         * modules/mathl (configure.ac): Define module indicator.
49741
49742 2008-04-15  Bruno Haible  <bruno@clisp.org>
49743
49744         * lib/logl.c (logl): Remove unused variables.
49745
49746 2008-04-15  Bruno Haible  <bruno@clisp.org>
49747
49748         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
49749         fails.
49750
49751 2008-04-15  Bruno Haible  <bruno@clisp.org>
49752
49753         * lib/trim.c (trim2): Fix argument of isspace() macro.
49754
49755 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
49756
49757         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
49758         to 0.
49759         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
49760
49761 2008-04-14  Bruno Haible  <bruno@clisp.org>
49762
49763         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
49764         AC_LANG_PROGRAM argument.
49765         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
49766         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
49767         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
49768         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49769         * m4/math_h.m4 (gl_MATH_H): Likewise.
49770         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
49771         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49772         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49773         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
49774         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
49775         * m4/regex.m4 (gl_REGEX): Likewise.
49776         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
49777         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
49778         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49779         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
49780         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49781         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49782         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49783         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49784
49785 2008-04-14  Jim Meyering  <meyering@redhat.com>
49786
49787         test-strtod: fix typos: s/abs/fabs/
49788         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
49789
49790 2008-04-13  Bruno Haible  <bruno@clisp.org>
49791
49792         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
49793         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
49794         module is also used and while not building the reloc-wrapper.
49795
49796 2008-04-13  Bruno Haible  <bruno@clisp.org>
49797
49798         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
49799
49800 2008-04-13  Bruno Haible  <bruno@clisp.org>
49801
49802         Fix AIX compilation failure introduced on 2008-04-02.
49803         * tests/test-frexp.c (exp): Undefine before redefining.
49804         * tests/test-frexpl.c (exp): Likewise.
49805
49806 2008-04-13  Bruno Haible  <bruno@clisp.org>
49807
49808         Work around a HP-UX stdio bug.
49809         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
49810         * tests/test-ftello.c (main): Likewise.
49811         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
49812         * doc/posix-functions/ftello.texi: Likewise.
49813
49814 2008-04-13  Bruno Haible  <bruno@clisp.org>
49815
49816         Make test-signbit pass on HP-UX/hppa.
49817         * tests/test-signbit.c (minus_zerol): New variable.
49818         (test_signbitl): Use it.
49819
49820 2008-04-13  Bruno Haible  <bruno@clisp.org>
49821
49822         Make truncl work on OSF/1 4.0.
49823         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
49824         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49825         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
49827         HAVE_DECL_TRUNCL.
49828         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
49829         HAVE_DECL_TRUNCL.
49830         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
49831
49832 2008-04-13  Bruno Haible  <bruno@clisp.org>
49833
49834         * lib/unictype.h: Remove trailing comma from enumeration definitions.
49835
49836 2008-04-13  Bruno Haible  <bruno@clisp.org>
49837
49838         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
49839         expression, so as to avoid HP-UX 11 cc compiler bug.
49840
49841 2008-04-13  Bruno Haible  <bruno@clisp.org>
49842
49843         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
49844
49845 2008-04-13  Bruno Haible  <bruno@clisp.org>
49846
49847         * lib/git-merge-changelog.c: Remove empty declaration outside of
49848         functions.
49849
49850 2008-04-13  Bruno Haible  <bruno@clisp.org>
49851
49852         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
49853
49854 2008-04-13  Bruno Haible  <bruno@clisp.org>
49855
49856         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
49857         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
49858         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
49859         also if it exists but lacks definitions of the SHUT_* macros.
49860         * modules/sys_socket (Description): Update.
49861         Reported by Elbert Pol <e.pol@chello.nl>.
49862
49863 2008-04-13  Bruno Haible  <bruno@clisp.org>
49864
49865         * lib/localcharset.c (OS2): Don't redefine if already defined.
49866         Reported by Elbert Pol <e.pol@chello.nl>.
49867
49868 2008-04-13  Bruno Haible  <bruno@clisp.org>
49869
49870         * lib/binary-io.h [__EMX__]: Include <io.h>.
49871         Reported by Elbert Pol <e.pol@chello.nl>.
49872
49873 2008-04-12  Bruno Haible  <bruno@clisp.org>
49874
49875         * lib/fpucw.h: Enable the definitions also for x86_64.
49876         Needed for NetBSD/x86_64.
49877         Reported by Thomas Klausner <tk@giga.or.at>.
49878
49879 2008-04-12  Bruno Haible  <bruno@clisp.org>
49880
49881         * tests/test-strtod.c: Include isnand.h.
49882         (main): Use isnand instead of isnan.
49883         Reported by Jim Meyering.
49884
49885 2008-04-12  Bruno Haible  <bruno@clisp.org>
49886
49887         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
49888         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49889
49890 2008-04-12  Jim Meyering  <meyering@redhat.com>
49891
49892         * m4/math_h.m4 (gl_MATH_H): Fix typos.
49893
49894 2008-04-12  Bruno Haible  <bruno@clisp.org>
49895
49896         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
49897         Reported by Elbert Pol <e.pol@chello.nl>.
49898
49899 2008-04-12  Eric Blake  <ebb9@byu.net>
49900
49901         Work around Solaris 10 math.h bug.
49902         * m4/math_h.m4 (gl_MATH_H): Check for bug.
49903         (gl_MATH_H_DEFAULTS): Set up default.
49904         * modules/math (Makefile.am): Replace new indicators.
49905         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
49906         * tests/test-math.c (main): Test this.
49907         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
49908         * doc/posix-headers/math.texi (math.h): Mention bug.
49909         Reported by Nelson H. F. Beebe and Jim Meyering.
49910
49911 2008-04-11  Bruno Haible  <bruno@clisp.org>
49912
49913         Adapt to future versions of Apple GCC.
49914         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
49915         Reported by Peter O'Gorman <peter@pogma.com>.
49916
49917 2008-04-11  Bruno Haible  <bruno@clisp.org>
49918
49919         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
49920
49921 2008-04-11  Bruno Haible  <bruno@clisp.org>
49922
49923         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
49924
49925         * modules/getaddrinfo-tests (Makefile.am): Define
49926         test_getaddrinfo_LDADD.
49927
49928 2008-04-11  Bruno Haible  <bruno@clisp.org>
49929
49930         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
49931         (init): Fix syntax error.
49932         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
49933         is declared.
49934
49935 2008-04-11  Bruno Haible  <bruno@clisp.org>
49936
49937         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
49938         * modules/glob (Depends-on): Add stdbool.
49939
49940 2008-04-11  Bruno Haible  <bruno@clisp.org>
49941
49942         * lib/trim.c: Include <string.h>.
49943
49944 2008-04-11  Eric Blake  <ebb9@byu.net>
49945
49946         Avoid compile failure on OS/2.
49947         * lib/regex_internal.h (internal_function): Disable optimization
49948         on OS/2 (__EMX__), where it caused compiler error.
49949         Reported by Elbert Pol.
49950
49951 2008-04-11  Bruno Haible  <bruno@clisp.org>
49952
49953         Flush the standard error stream before aborting. Needed on mingw.
49954         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
49955         * tests/test-array_list.c (ASSERT): Likewise.
49956         * tests/test-array_oset.c (ASSERT): Likewise.
49957         * tests/test-avltree_list.c (ASSERT): Likewise.
49958         * tests/test-avltree_oset.c (ASSERT): Likewise.
49959         * tests/test-avltreehash_list.c (ASSERT): Likewise.
49960         * tests/test-binary-io.c (ASSERT): Likewise.
49961         * tests/test-byteswap.c (ASSERT): Likewise.
49962         * tests/test-c-ctype.c (ASSERT): Likewise.
49963         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
49964         * tests/test-c-strcasestr.c (ASSERT): Likewise.
49965         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
49966         * tests/test-c-strstr.c (ASSERT): Likewise.
49967         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
49968         * tests/test-canonicalize.c (ASSERT): Likewise.
49969         * tests/test-carray_list.c (ASSERT): Likewise.
49970         * tests/test-ceilf1.c (ASSERT): Likewise.
49971         * tests/test-ceilf2.c (ASSERT): Likewise.
49972         * tests/test-ceill.c (ASSERT): Likewise.
49973         * tests/test-count-one-bits.c (ASSERT): Likewise.
49974         * tests/test-fbufmode.c (ASSERT): Likewise.
49975         * tests/test-fflush2.c (ASSERT): Likewise.
49976         * tests/test-floorf1.c (ASSERT): Likewise.
49977         * tests/test-floorf2.c (ASSERT): Likewise.
49978         * tests/test-floorl.c (ASSERT): Likewise.
49979         * tests/test-fopen.c (ASSERT): Likewise.
49980         * tests/test-fpending.c (ASSERT): Likewise.
49981         * tests/test-fprintf-posix.c (ASSERT): Likewise.
49982         * tests/test-fpurge.c (ASSERT): Likewise.
49983         * tests/test-freadable.c (ASSERT): Likewise.
49984         * tests/test-freadahead.c (ASSERT): Likewise.
49985         * tests/test-freading.c (ASSERT): Likewise.
49986         * tests/test-freadptr.c (ASSERT): Likewise.
49987         * tests/test-freadptr2.c (ASSERT): Likewise.
49988         * tests/test-freadseek.c (ASSERT): Likewise.
49989         * tests/test-freopen.c (ASSERT): Likewise.
49990         * tests/test-frexp.c (ASSERT): Likewise.
49991         * tests/test-frexpl.c (ASSERT): Likewise.
49992         * tests/test-fseek.c (ASSERT): Likewise.
49993         * tests/test-fseeko.c (ASSERT): Likewise.
49994         * tests/test-fstrcmp.c (ASSERT): Likewise.
49995         * tests/test-ftell.c (ASSERT): Likewise.
49996         * tests/test-ftello.c (ASSERT): Likewise.
49997         * tests/test-func.c (ASSERT): Likewise.
49998         * tests/test-fwritable.c (ASSERT): Likewise.
49999         * tests/test-fwriting.c (ASSERT): Likewise.
50000         * tests/test-getdelim.c (ASSERT): Likewise.
50001         * tests/test-getline.c (ASSERT): Likewise.
50002         * tests/test-i-ring.c (ASSERT): Likewise.
50003         * tests/test-iconv-utf.c (ASSERT): Likewise.
50004         * tests/test-iconv.c (ASSERT): Likewise.
50005         * tests/test-isfinite.c (ASSERT): Likewise.
50006         * tests/test-isnand.c (ASSERT): Likewise.
50007         * tests/test-isnanf.c (ASSERT): Likewise.
50008         * tests/test-isnanl.h (ASSERT): Likewise.
50009         * tests/test-ldexpl.c (ASSERT): Likewise.
50010         * tests/test-linked_list.c (ASSERT): Likewise.
50011         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50012         * tests/test-localename.c (ASSERT): Likewise.
50013         * tests/test-lseek.c (ASSERT): Likewise.
50014         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50015         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50016         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50017         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50018         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50019         * tests/test-mbschr.c (ASSERT): Likewise.
50020         * tests/test-mbscspn.c (ASSERT): Likewise.
50021         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50022         * tests/test-mbspbrk.c (ASSERT): Likewise.
50023         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50024         * tests/test-mbsrchr.c (ASSERT): Likewise.
50025         * tests/test-mbsspn.c (ASSERT): Likewise.
50026         * tests/test-mbsstr1.c (ASSERT): Likewise.
50027         * tests/test-mbsstr2.c (ASSERT): Likewise.
50028         * tests/test-mbsstr3.c (ASSERT): Likewise.
50029         * tests/test-memchr2.c (ASSERT): Likewise.
50030         * tests/test-memmem.c (ASSERT): Likewise.
50031         * tests/test-open.c (ASSERT): Likewise.
50032         * tests/test-printf-frexp.c (ASSERT): Likewise.
50033         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50034         * tests/test-printf-posix.c (ASSERT): Likewise.
50035         * tests/test-quotearg.c (ASSERT): Likewise.
50036         * tests/test-rbtree_list.c (ASSERT): Likewise.
50037         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50038         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50039         * tests/test-round1.c (ASSERT): Likewise.
50040         * tests/test-roundf1.c (ASSERT): Likewise.
50041         * tests/test-roundl.c (ASSERT): Likewise.
50042         * tests/test-signbit.c (ASSERT): Likewise.
50043         * tests/test-sleep.c (ASSERT): Likewise.
50044         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50045         * tests/test-snprintf.c (ASSERT): Likewise.
50046         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50047         * tests/test-stat-time.c (ASSERT): Likewise.
50048         * tests/test-strcasestr.c (ASSERT): Likewise.
50049         * tests/test-strerror.c (ASSERT): Likewise.
50050         * tests/test-striconv.c (ASSERT): Likewise.
50051         * tests/test-striconveh.c (ASSERT): Likewise.
50052         * tests/test-striconveha.c (ASSERT): Likewise.
50053         * tests/test-strsignal.c (ASSERT): Likewise.
50054         * tests/test-strstr.c (ASSERT): Likewise.
50055         * tests/test-strtod.c (ASSERT): Likewise.
50056         * tests/test-trunc1.c (ASSERT): Likewise.
50057         * tests/test-trunc2.c (ASSERT): Likewise.
50058         * tests/test-truncf1.c (ASSERT): Likewise.
50059         * tests/test-truncf2.c (ASSERT): Likewise.
50060         * tests/test-truncl.c (ASSERT): Likewise.
50061         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50062         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50063         * tests/test-vasnprintf.c (ASSERT): Likewise.
50064         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50065         * tests/test-vasprintf.c (ASSERT): Likewise.
50066         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50067         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50068         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50069         * tests/test-vsnprintf.c (ASSERT): Likewise.
50070         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50071         * tests/test-wcwidth.c (ASSERT): Likewise.
50072         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50073         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50074         * tests/test-xvasprintf.c (ASSERT): Likewise.
50075         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50076         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50077         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50078         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50079         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50080         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50081         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50082         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50083         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50084         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50085         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50086         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50087         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50088         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50089         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50090         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50091         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50092         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50093         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50094         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50095         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50096         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50097         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50098         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50099         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50100         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50101         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50102         * tests/unictype/test-combining.c (ASSERT): Likewise.
50103         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50104         * tests/unictype/test-digit.c (ASSERT): Likewise.
50105         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50106         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50107         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50108         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50109         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50110         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50111         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50112         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50113         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50114         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50115         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50116         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50117         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50118         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50119         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50120         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50121         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50122         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50123         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50124         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50125         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50126         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50127         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50128         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50129         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50130         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50131         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50132         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50133         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50134         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50135         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50136         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50137         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50138         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50139         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50140         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50141         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50142         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50143         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50144         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50145         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50146         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50147         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50148         Reported by Eric Blake.
50149
50150 2008-04-11  Bruno Haible  <bruno@clisp.org>
50151
50152         * lib/wchar.in.h: Tweak comment.
50153
50154 2008-04-11  Bruno Haible  <bruno@clisp.org>
50155
50156         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50157         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50158         gl_COMMON.
50159         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50160
50161 2008-04-11  Bruno Haible  <bruno@clisp.org>
50162
50163         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50164
50165 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50166
50167         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50168         of attempting to use non-existing /dev/*random.  Based on patch
50169         from Adam Strzelecki <ono@java.pl> in
50170         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50171
50172 2008-04-08  Bruno Haible  <bruno@clisp.org>
50173
50174         Add tentative support for emx+gcc.
50175         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50176         * lib/fpurge.c (fpurge): Likewise.
50177         * lib/freadable.c (freadable): Likewise.
50178         * lib/freadahead.c (freadahead): Likewise.
50179         * lib/freading.c (freading): Likewise.
50180         * lib/freadptr.c (freadptr): Likewise.
50181         * lib/freadseek.c (freadptrinc): Likewise.
50182         * lib/fseeko.c (rpl_fseeko): Likewise.
50183         * lib/fseterr.c (fseterr): Likewise.
50184         * lib/fwritable.c (fwritable): Likewise.
50185         * lib/fwriting.c (fwriting): Likewise.
50186         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50187
50188 2008-04-09  Eric Blake  <ebb9@byu.net>
50189
50190         Avoid some autoconf warnings.
50191         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50192         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50193         * m4/afs.m4 (gl_AFS): Likewise.
50194         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50195         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50196         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50197         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50198         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50199         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50200         (AC_CHECK_DECLS_ONCE): Likewise.
50201         Rename file...
50202         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50203         gnulib-tool requires autoconf 2.59 or better.
50204         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50205
50206 2008-04-08  Eric Blake  <ebb9@byu.net>
50207
50208         Use 'git describe --match' if present (added in git 1.5.5).
50209         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50210         if possible.
50211
50212 2008-04-08  Bruno Haible  <bruno@clisp.org>
50213
50214         Add tentative support for OpenServer.
50215         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50216         _ptr, _cnt.
50217         * lib/fpurge.c (fpurge): Likewise.
50218         * lib/freadable.c (freadable): Likewise.
50219         * lib/freadahead.c (freadahead): Likewise.
50220         * lib/freading.c (freading): Likewise.
50221         * lib/freadptr.c (freadptr): Likewise.
50222         * lib/freadseek.c (freadptrinc): Likewise.
50223         * lib/fseeko.c (rpl_fseeko): Likewise.
50224         * lib/fseterr.c (fseterr): Likewise.
50225         * lib/fwritable.c (fwritable): Likewise.
50226         * lib/fwriting.c (fwriting): Likewise.
50227         Reported by Roger Cornelius <rac@tenzing.org> and
50228         Brian K. White <brian@aljex.com>.
50229
50230 2008-04-06  Jim Meyering  <meyering@redhat.com>
50231
50232         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50233
50234 2008-04-06  Bruno Haible  <bruno@clisp.org>
50235
50236         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50237         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50238         * tests/test-printf-posix.sh: Likewise.
50239         * tests/test-vfprintf-posix.sh: Likewise.
50240         * tests/test-vprintf-posix.sh: Likewise.
50241         * tests/test-xprintf-posix.sh: Likewise.
50242
50243 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50244
50245         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50246         hide error from 'ls', needed on OS/2.
50247         Report by Elbert Pol <elbert.pol@gmail.com>.
50248
50249 2008-04-04  Eric Blake  <ebb9@byu.net>
50250
50251         Make test-fseeko.c failures meaningful.
50252         * tests/test-fseeko.c: Print line number on failure.
50253         * tests/test-fseek.c: Likewise.
50254         Reported by Nelson H. F. Beebe.
50255
50256         Improve strtod bug detection check.
50257         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50258         required for Solaris 10.
50259         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50260
50261 2008-04-04  Bruno Haible  <bruno@clisp.org>
50262
50263         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50264         by m4/setenv.m4.
50265
50266 2008-04-03  Eric Blake  <ebb9@byu.net>
50267
50268         Ensure sane .version contents.
50269         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50270         version string.
50271         * build-aux/git-version-gen: Improve documentation.
50272
50273         Make GNU make output nicer.
50274         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50275         MAKECMDGOALS to enforce message for all command line targets.  Set
50276         srcdir for use in maint.mk.
50277
50278         Another maintainer tweak.
50279         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50280         a target that regenerates version.
50281
50282 2008-04-03  Jim Meyering  <meyering@redhat.com>
50283
50284         vc-list-files: don't cause coreutils "make po-check" failure
50285         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50286
50287 2008-04-03  Eric Blake  <ebb9@byu.net>
50288
50289         Allow VPATH usage of vc-list-files.
50290         * build-aux/vc-list-files (scriptversion): Add timestamp.
50291         (options): Add --help, --version, -C.
50292         (CVS): Support installed cvsu.
50293
50294 2008-04-02  Bruno Haible  <bruno@clisp.org>
50295
50296         Avoid some "statement with no effect" warnings from gcc.
50297         * tests/test-wctype.c (main): Explicitly ignore unused values.
50298         Reported by Jim Meyering.
50299
50300 2008-04-02  Jim Meyering  <meyering@redhat.com>
50301
50302         Avoid some warnings from "gcc -Wshadow".
50303         * tests/test-frexp.c (exp): Define to a different identifier.
50304         * tests/test-frexpl.c (exp): Likewise.
50305
50306 2008-04-03  Jim Meyering  <meyering@redhat.com>
50307
50308         bootstrap: remove dangling *.[ch] symlinks from lib
50309         * build-aux/bootstrap [dangling symlink removal]: Move find's
50310         -depth option to precede all others, to avoid a warning.
50311         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50312
50313 2008-04-02  Bruno Haible  <bruno@clisp.org>
50314
50315         Avoid some warnings from "gcc -Wshadow".
50316         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50317         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50318         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50319         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50320         Reported by Jim Meyering.
50321
50322 2008-04-01  Bruno Haible  <bruno@clisp.org>
50323
50324         Fix test to work on IRIX 6.5 with cc.
50325         * tests/test-math.c (numeric_equal): New function.
50326         (main): Use it.
50327
50328 2008-04-01  Bruno Haible  <bruno@clisp.org>
50329
50330         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50331
50332 2008-04-01  Bruno Haible  <bruno@clisp.org>
50333
50334         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50335         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50336         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50337         (Depends-on): Remove math.
50338
50339         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50340         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50341         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50342         (Depends-on): Remove math.
50343
50344         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50345         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50346         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50347         (Depends-on): Remove math.
50348         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50349         (Depends-on): Remove math.
50350
50351         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50352         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50353         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
50354         (Depends-on): Remove math.
50355         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
50356         (Depends-on): Remove math.
50357
50358         * tests/test-round1.c: Include nan.h.
50359         (main): Use NaNd instead of NAN.
50360         * modules/round-tests (Files): Add tests/nan.h.
50361
50362         * tests/test-trunc1.c: Include nan.h.
50363         (main): Use NaNd instead of NAN.
50364         * modules/trunc-tests (Files): Add tests/nan.h.
50365
50366         * tests/test-roundf1.c: Include nan.h.
50367         (main): Use NaNf instead of NAN.
50368         * modules/roundf-tests (Files): Add tests/nan.h.
50369
50370         * tests/test-truncf1.c: Include nan.h.
50371         (main): Use NaNf instead of NAN.
50372         * modules/truncf-tests (Files): Add tests/nan.h.
50373
50374         * tests/test-ceilf1.c: Include nan.h.
50375         (main): Use NaNf instead of NAN.
50376         * modules/ceilf-tests (Files): Add tests/nan.h.
50377
50378         * tests/test-floorf1.c: Include nan.h.
50379         (main): Use NaNf instead of NAN.
50380         * modules/floorf-tests (Files): Add tests/nan.h.
50381
50382         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
50383         (main): Use NaNf instead of NAN.
50384         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
50385
50386         * tests/test-isnand.c: Include nan.h instead of <math.h>.
50387         (main): Use NaNd instead of NAN.
50388         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
50389
50390         * tests/test-frexp.c: Include nan.h.
50391         (main): Use NaNd instead of NAN.
50392         * modules/frexp-tests (Files): Add tests/nan.h.
50393
50394         * lib/isnan.c: Don't include <math.h>.
50395         (FUNC): Don't use NAN macro.
50396         * modules/isnand-nolibm (Depends-on): Remove math.
50397         * modules/isnanf-nolibm (Depends-on): Remove math.
50398         * modules/isnanl (Depends-on): Remove math.
50399         * modules/isnanl-nolibm (Depends-on): Remove math.
50400
50401         * tests/nan.h: New file.
50402
50403 2008-04-01  Eric Blake  <ebb9@byu.net>
50404
50405         Fix typos.
50406         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
50407         values to be the right type.
50408
50409         For now, cater to gnulib strtod inaccuracies.
50410         * tests/test-strtod.c (main): Allow 1-ulp error on expected
50411         fractional results.  While not as nice from a QoI perspective, it
50412         is a quicker patch than correctly implementing decimal to binary
50413         rounding.
50414
50415 2008-03-31  Eric Blake  <ebb9@byu.net>
50416
50417         Guarantee a definition of NAN.
50418         * lib/math.in.h (NAN): Define if missing.
50419         * tests/test-math.c (main): Test it.
50420         * doc/posix-headers/math.texi (math.h): Document this.
50421         * lib/isnan.c (rpl_isnand): Use it.
50422         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
50423         * tests/test-floorf1.c (NaN): Likewise.
50424         * tests/test-frexp.c (NaN): Likewise.
50425         * tests/test-isnand.c (NaN): Likewise.
50426         * tests/test-isnanf.c (NaN): Likewise.
50427         * tests/test-round1.c (NaN): Likewise.
50428         * tests/test-roundf1.c (NaN): Likewise.
50429         * tests/test-snprintf-posix.h (NaN): Likewise.
50430         * tests/test-sprintf-posix.h (NaN): Likewise.
50431         * tests/test-trunc1.c (NaN): Likewise.
50432         * tests/test-truncf1.c (NaN): Likewise.
50433         * tests/test-vasnprintf-posix.c (NaN): Likewise.
50434         * tests/test-vasprintf-posix.c (NaN): Likewise.
50435         * modules/isnand-nolibm (Depends-on): Add math.
50436         * modules/isnanf-nolibm (Depends-on): Likewise.
50437         * modules/isnanl (Depends-on): Likewise.
50438         * modules/isnanl-nolibm (Depends-on): Likewise.
50439         * modules/snprintf-posix-tests (Depends-on): Likewise.
50440         * modules/sprintf-posix-tests (Depends-on): Likewise.
50441         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
50442         * modules/vsprintf-posix-tests (Depends-on): Likewise.
50443         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
50444         * modules/vasprintf-posix-tests (Depends-on): Likewise.
50445
50446 2008-03-31  Bruno Haible  <bruno@clisp.org>
50447
50448         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
50449         * doc/posix-functions/strtod.texi: Likewise.
50450
50451 2008-03-31  Bruno Haible  <bruno@clisp.org>
50452
50453         * tests/test-strtod.c (main): Don't use C99 syntax.
50454
50455 2008-03-31  Bruno Haible  <bruno@clisp.org>
50456
50457         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50458         Reported by Eric Blake.
50459
50460 2008-03-31  Jim Meyering  <meyering@redhat.com>
50461
50462         Don't compare actual signbit return values.
50463         * tests/test-strtod.c (main): Rather, compare only their
50464         zero/non-zero nature.
50465
50466 2008-03-31  Eric Blake  <ebb9@byu.net>
50467
50468         More strtod documentation.
50469         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50470         failures as distinct bugs.
50471
50472 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50473
50474         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50475         Problem reported by Erik Benada in
50476         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50477
50478 2008-03-30  Bruno Haible  <bruno@clisp.org>
50479
50480         * tests/test-strtod.c: Add comments about which assertion fails on which
50481         platform.
50482         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50483
50484 2008-03-30  Eric Blake  <ebb9@byu.net>
50485
50486         Test signbit behavior on zeros.
50487         * tests/test-signbit.c (test_signbitf): Add tests for zero.
50488         (test_signbitd, test_signbitl): Likewise.
50489
50490         More strtod touchups.
50491         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
50492         sign of negative underflow, for now.  Use .5, not .1.
50493         * doc/posix-functions/strtod.texi (strtod): Mention these
50494         limitations.
50495         Reported by Jim Meyering.
50496
50497 2008-03-30  Bruno Haible  <bruno@clisp.org>
50498
50499         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
50500         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
50501
50502 2008-03-30  Bruno Haible  <bruno@clisp.org>
50503
50504         Avoid failure when attempting to return empty iconv results on some
50505         platforms.
50506         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
50507         allocation, don't report ENOMEM when the resulting string is empty.
50508
50509 2008-03-30  Bruno Haible  <bruno@clisp.org>
50510
50511         Fix buffer overrun.
50512         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
50513         Don't consider the width for tmp_length. Check count against tmp_length
50514         before doing the padding. Ensure enough allocation during padding.
50515
50516 2008-03-30  Eric Blake  <ebb9@byu.net>
50517
50518         strtod touchups.
50519         * lib/strtod.c (strtod): Avoid compiler warnings.
50520         Reported by Jim Meyering.
50521
50522 2008-03-30  Bruno Haible  <bruno@clisp.org>
50523
50524         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50525         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50526         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
50527         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
50528         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
50529         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
50530         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
50531         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
50532
50533         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
50534         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
50535         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
50536         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
50537         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
50538         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
50539         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
50540         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
50541
50542         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
50543         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
50544         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
50545         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
50546         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
50547         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
50548         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
50549         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
50550
50551         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
50552         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
50553
50554         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
50555         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
50556
50557         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
50558         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
50559
50560         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
50561         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
50562         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
50563
50564         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
50565         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
50566         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
50567
50568         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
50569         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
50570         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
50571
50572         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
50573         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
50574         * modules/vasprintf (Depends-on): Add EOVERFLOW.
50575
50576         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
50577         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
50578         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
50579         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
50580         (Depends-on): Add EOVERFLOW.
50581         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
50582         (Depends-on): Add EOVERFLOW.
50583         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50584         (Depends-on): Add EOVERFLOW.
50585         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50586         (Depends-on): Add EOVERFLOW.
50587         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50588         (Depends-on): Add EOVERFLOW.
50589         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50590         (Depends-on): Add EOVERFLOW.
50591         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50592         (Depends-on): Add EOVERFLOW.
50593         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50594         (Depends-on): Add EOVERFLOW.
50595
50596         * lib/sprintf.c (EOVERFLOW): Remove fallback.
50597         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
50598         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
50599
50600         * lib/snprintf.c (EOVERFLOW): Remove fallback.
50601         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
50602         * modules/snprintf (Depends-on): Add EOVERFLOW.
50603
50604         * lib/poll.c (EOVERFLOW): Remove fallback.
50605         * modules/poll (Depends-on): Add EOVERFLOW.
50606
50607         * lib/getugroups.c (EOVERFLOW): Remove fallback.
50608         * modules/getugroups (Depends-on): Add EOVERFLOW.
50609
50610         * lib/getdelim.c (EOVERFLOW): Remove fallback.
50611         * modules/getdelim (Depends-on): Add EOVERFLOW.
50612
50613         * lib/ftell.c (EOVERFLOW): Remove fallback.
50614         * modules/ftell (Depends-on): Add EOVERFLOW.
50615
50616         * lib/fprintf.c (EOVERFLOW): Remove fallback.
50617         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
50618         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
50619
50620         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
50621
50622         * modules/EOVERFLOW-tests: New file.
50623         * tests/test-EOVERFLOW.c: New file.
50624
50625         * modules/EOVERFLOW: New file.
50626         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
50627
50628 2008-03-30  Bruno Haible  <bruno@clisp.org>
50629
50630         Fix bug introduced on 2007-06-10.
50631         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
50632         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
50633
50634 2008-03-30  Bruno Haible  <bruno@clisp.org>
50635
50636         Improve freadseek's efficiency after ungetc.
50637         * lib/freadseek.c: Include freadahead.h.
50638         (freadptrinc): New function, extracted from freadseek.
50639         (freadseek): Use it in a loop. Use freadahead to determine the number
50640         of loop iterations.
50641         * modules/freadseek (Depends-on): Add freadahead.
50642         (configure.ac): Require AC_C_INLINE.
50643
50644 2008-03-30  Bruno Haible  <bruno@clisp.org>
50645
50646         * lib/freadseek.c (freadseek): Don't ignore the return value of
50647         freadptr.
50648
50649 2008-03-29  Eric Blake  <ebb9@byu.net>
50650
50651         Add hex float support.
50652         * modules/strtod (Depends-on): Add c-ctype.
50653         (Link): Mention POW_LIB.
50654         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
50655         whitespace between 'e' and exponent.
50656         * tests/test-strtod.c (main): Enable hex float tests.
50657         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
50658         now provides.
50659
50660         Document various strtod bugs, with some fixes.
50661         * doc/posix-functions/strtod.texi (strtod): Document bugs with
50662         "-0x", "inf", "nan", and hex constants.
50663         * doc/posix-functions/atof.texi (atof): Likewise.
50664         * modules/stdlib (Makefile.am): Support strtod.
50665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
50666         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
50667         detect additional strtod bugs.
50668         * lib/stdlib.in.h (rpl_strtod): Add declarations.
50669         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
50670         bool where appropriate.  Parse 'inf' and 'nan'.
50671         * tests/test-strtod.c: New file.
50672         * modules/strtod (Depends-on): Add stdbool, stdlib.
50673         (configure.ac): Turn on module indicator.
50674         * modules/strtod-tests: New module.
50675
50676 2008-03-29  Eric Blake  <ebb9@byu.net>
50677
50678         Fix ftell on mingw.
50679         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
50680         * modules/ftell-tests (Depends-on): Add binary-io.
50681         * modules/ftello-tests (Depends-on): Likewise.
50682         * tests/test-ftell.c (main): Enhance test to cover behavior after
50683         ungetc.  Enforce binary mode.
50684         * tests/test-ftello.c (main): Likewise.
50685
50686         Pass test-freadseek on cygwin.
50687         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
50688         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
50689         ungetc buffer.
50690
50691         * tests/test-fflush2.c (main): Fix typo.
50692
50693 2008-03-29  Bruno Haible  <bruno@clisp.org>
50694
50695         * tests/test-fflush2.c (main): Temporarily disable the contents of
50696         this test.
50697         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
50698         Reported by Eric Blake.
50699
50700 2008-03-28  Simon Josefsson  <simon@josefsson.org>
50701
50702         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
50703         (GC_SHA224_DIGEST_SIZE): Add.
50704
50705         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
50706         (gc_hash_digest_length): Likewise.
50707         (gc_hash_buffer): Likewise.
50708
50709 2008-03-25  Bruno Haible  <bruno@clisp.org>
50710
50711         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
50712         detail which gettext release to use.
50713         Reported by Simon Josefsson.
50714
50715 2008-03-26  Jim Meyering  <meyering@redhat.com>
50716
50717         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
50718         * modules/gnumakefile (clean-GNUmakefile): Also, use
50719         test ... && ... || : syntax rather than if-then ... fi.
50720
50721         gnumakefile: Don't double-quote-expand $(VPATH) value.
50722         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
50723
50724 2008-03-24  Eric Blake  <ebb9@byu.net>
50725
50726         Alter GNUmakefile to install into top directory.
50727         * modules/maintainer-makefile: Split, and add dependency...
50728         * modules/gnumakefile: to this new module.
50729         * build-aux/GNUmakefile: Move...
50730         * top/GNUmakefile: ...here.
50731         * build-aux/maint.mk: Move...
50732         * top/maint.mk: ...here.
50733         * MODULES.html.sh (Support for maintaining...): Document new
50734         module.
50735
50736 2008-03-23  Bruno Haible  <bruno@clisp.org>
50737
50738         * gnulib-tool: New options --vc-files, --no-vc-files.
50739         (func_usage): Document them.
50740         (vc_files): New variable.
50741         (func_import): Consider vc_files.
50742         (func_create_testdir): Set vc_files to empty.
50743         Suggested by Jim Meyering and Karl Berry.
50744
50745 2008-03-23  Bruno Haible  <bruno@clisp.org>
50746
50747         Fix regex compilation error on HP-UX 11.
50748         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
50749         * modules/regex (Files): Add m4/mbstate_t.m4.
50750         Reported by Ton Voon <ton.voon@altinity.com>.
50751
50752 2008-03-23  Bruno Haible  <bruno@clisp.org>
50753
50754         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
50755
50756 2008-03-23  Eric Blake  <ebb9@byu.net>
50757             Bruno Haible  <bruno@clisp.org>
50758
50759         Install files from top/ in the destination directory.
50760         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50761         augmentation also for the files from top/.
50762         (func_import, func_create_testdir): Rewrite file names:
50763         top/filename -> filename.
50764
50765 2008-03-23  Bruno Haible  <bruno@clisp.org>
50766
50767         Tweak "gnulib --version" output.
50768         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
50769
50770 2008-03-23  Bruno Haible  <bruno@clisp.org>
50771
50772         Tweak "gnulib --version" output.
50773         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
50774         rather than contents of ChangeLog, when possible.
50775
50776 2008-03-21  Eric Blake  <ebb9@byu.net>
50777
50778         More --version tweaks.
50779         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
50780         date of last ChangeLog entry.
50781
50782 2008-03-21  Jim Meyering  <meyering@redhat.com>
50783
50784         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
50785
50786 2008-03-20  Eric Blake  <ebb9@byu.net>
50787
50788         VPATH fix.
50789         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
50790
50791 2008-03-20  Simon Josefsson  <simon@josefsson.org>
50792
50793         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
50794         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
50795
50796 2008-03-20  Eric Blake  <ebb9@byu.net>
50797
50798         Sync GNUmakefile with coreutils.
50799         * build-aux/GNUmakefile (have-Makefile): Rename...
50800         (_have-Makefile): ...to this, for namespace consideration.
50801         (GNUmakefile.cfg): Include, if present.
50802         (_autoreconf): Define a default.
50803         (_is-dist-target): New rule for rebuilds to pick up intra-release
50804         version.
50805         (maint-cfg.mk): Rename...
50806         (cfg.mk): ...to this.
50807
50808 2008-03-18  Jim Meyering  <meyering@redhat.com>
50809
50810         New script and module: mktempd
50811         * MODULES.html.sh (maint+release support): Add mktempd.
50812         * build-aux/mktempd: New file.
50813         * modules/mktempd: New file.
50814
50815 2008-03-15  Jim Meyering  <meyering@redhat.com>
50816
50817         Undo last change.
50818         * lib/sha1.c, lib/md5.c: 63 != ~63.
50819         Reported by Andreas Schwab.
50820
50821         sha1.c, md5.c: Hoist a redundant expression.
50822         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
50823         "ctx->buflen" only once, before calling *_process_block.
50824         * lib/md5.c (md5_process_bytes): Likewise.
50825
50826 2008-03-14  Eric Blake  <ebb9@byu.net>
50827
50828         Bump copyright year in files generated by gnulib-tool.
50829         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
50830         gnulib-tool, rather than hard-coding it.
50831
50832         Fix 'gnulib-tool --version' output to work with git.
50833         * gnulib-tool (func_gnulib_dir): New function, extracted from...
50834         (startup): ...here.
50835         (func_version): Use it to invoke git-version-gen, rather than
50836         relying on CVS keyword expansion.  Modernize wording.
50837         (cvsdatestamp, last_checkin_date, version): Kill unused
50838         variables.
50839
50840 2008-03-12  Jim Meyering  <meyering@redhat.com>
50841
50842         Recognize optional cast of the argument to free.
50843         * build-aux/useless-if-before-free: Update regexps.
50844
50845         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
50846
50847 2008-03-11  Bruno Haible  <bruno@clisp.org>
50848
50849         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
50850         by a single package.
50851         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
50852         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
50853         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
50854         Reported by Sam Steingold <sds@gnu.org>.
50855
50856 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50857
50858         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
50859         repositories.
50860
50861 2008-03-11  Bruno Haible  <bruno@clisp.org>
50862
50863         Avoid conflicts between local macro definitions.
50864         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50865         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
50866
50867 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
50868             Bruno Haible  <bruno@clisp.org>
50869
50870         Make va_copy work with some version of xlc on AIX 5.1.
50871         * lib/stdarg.in.h: New file.
50872         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
50873         On AIX, use a <stdarg.h> file substitute.
50874         * modules/stdarg (Files): Add lib/stdarg.in.h.
50875         (Depends-on): Add include_next.
50876         (Makefile.am): Build a stdarg.h substitute if requested.
50877         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
50878
50879 2008-03-10  Bruno Haible  <bruno@clisp.org>
50880
50881         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
50882         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50883         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50884
50885 2008-03-10  Bruno Haible  <bruno@clisp.org>
50886
50887         * modules/stdlib (Depends-on): Add include_next, remove
50888         absolute-header.
50889
50890 2008-03-09  Bruno Haible  <bruno@clisp.org>
50891
50892         * lib/freadahead.h (freadahead): Document more precisely.
50893         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
50894         the sum of both buffer sizes.
50895         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
50896         * NEWS: Document the change.
50897
50898 2008-03-09  Bruno Haible  <bruno@clisp.org>
50899
50900         Extend freadptr to return also the buffer size.
50901         * lib/freadptr.h (freadptr): Add sizep argument.
50902         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
50903         (freadptr): Add sizep argument. Determine buffer size like freadahead
50904         does.
50905         * tests/test-freadptr.c: Don't include freadahead.h.
50906         (main): Adapt for new calling convention of freadptr.
50907         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
50908         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
50909         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
50910         tests/test-freadptr2.sh.
50911         (Depends): Remove freadahead.
50912         (TESTS): Add test-freadptr2.sh.
50913         (check_PROGRAMS): Add test-freadptr2.
50914
50915 2008-03-09  Bruno Haible  <bruno@clisp.org>
50916
50917         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
50918         Report and solution by Simon Josefsson.
50919
50920 2008-03-06  Bruno Haible  <bruno@clisp.org>
50921
50922         Make fflush after ungetc work on BSD platforms.
50923         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
50924         * tests/test-fflush2.c: New file.
50925         * tests/test-fflush2.sh: New file.
50926         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
50927         tests/test-fflush2.c.
50928         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
50929         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
50930
50931 2008-03-06  Eric Blake  <ebb9@byu.net>
50932
50933         Likewise for ftello.
50934         * modules/ftello (Dependencies): Add extensions.
50935         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
50936
50937 2008-03-06  Bruno Haible  <bruno@clisp.org>
50938
50939         * modules/fseeko (Dependencies): Add extensions.
50940         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
50941         Needed on glibc systems.
50942
50943 2008-03-06  Bruno Haible  <bruno@clisp.org>
50944
50945         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
50946         email address.
50947         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50948
50949 2008-03-06  Bruno Haible  <bruno@clisp.org>
50950
50951         * users.txt: Add libgnupdf.
50952
50953 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50954
50955         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
50956         (Header File Substitutes, Function Substitutes,
50957         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
50958         (Build robot for gnulib): Fix typo.
50959
50960 2008-03-06  Bruno Haible  <bruno@clisp.org>
50961
50962         * doc/gnulib-tool.texi (VCS Issues): Small updates.
50963         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50964
50965 2008-03-06  Bruno Haible  <bruno@clisp.org>
50966
50967         * doc/func.texi: New file, extracted from doc/gnulib.texi.
50968         * doc/gnulib.texi: Include it.
50969
50970 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50971
50972         * modules/func (License): Change license to unlimited; there was
50973         no LGPL parts in the module anyway.
50974
50975 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50976
50977         * modules/__func__: Renamed to modules/func.
50978         * modules/__func__-tests: Renamed to modules/func-tests.
50979         * tests/test-__func__.c: Renamed to tests/test-func.c.
50980         * m4/__func__.m4: Renamed to m4/func.m4.
50981         * doc/gnulib.texi (__func__): Section renamed to func.
50982         Suggested by Eric Blake <ebb9@byu.net>.
50983
50984 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50985
50986         * doc/gnulib.texi (__func__): Use C99 terminology when talking
50987         about __func__.  Make example self-contained.  Suggested by Eric
50988         Blake <ebb9@byu.net>.
50989
50990         * tests/test-__func__.c (main): Avoid extraneous () around __func.
50991         Suggested by Eric Blake <ebb9@byu.net>.
50992
50993 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50994
50995         * modules/__func__: New file.
50996         * modules/__func__-tests: New file.
50997         * tests/test-__func__.c: New file.
50998         * m4/__func__.m4: New file.
50999         * doc/gnulib.texi (__func__): Document __func__ module.
51000
51001 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51002
51003         * modules/byteswap (License): Re-license as LGPLv2+.
51004
51005 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51006
51007         * doc/Makefile: Add pdf target.
51008
51009 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51010
51011         * modules/inline (License): Use 'unlimited', since there are only
51012         *.m4 files in this module.
51013
51014 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51015             Bruno Haible  <bruno@clisp.org>
51016
51017         Add support for HP C 7.1 on OpenVMS 8.3.
51018         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51019
51020 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51021
51022         Update VMS specifics.
51023         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51024
51025 2008-03-02  Jim Meyering  <meyering@redhat.com>
51026
51027         Remove the last dependency on the "free" module.
51028         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51029         Reported by Bob Proulx.
51030
51031         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51032
51033         Remove useless "if" tests before free.  Deprecate "free" module.
51034         * doc/posix-functions/free.texi: Mention that this
51035         module is no longer useful.
51036         * modules/free (Notice): Say this module is obsolete.
51037         * modules/readutmp (Depends-on): Remove free.
51038         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51039         * lib/putenv.c (putenv): Likewise.
51040         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51041         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51042         * tests/test-c-strcasestr.c (main): Likewise.
51043         * tests/test-c-strstr.c (main): Likewise.
51044         * tests/test-mbscasestr1.c (main): Likewise.
51045         * tests/test-mbscasestr2.c (main): Likewise.
51046         * tests/test-mbsstr1.c (main): Likewise.
51047         * tests/test-mbsstr2.c (main): Likewise.
51048         * tests/test-memmem.c (main): Likewise.
51049         * tests/test-strcasestr.c (main): Likewise.
51050         * tests/test-striconv.c (main): Likewise.
51051         * tests/test-striconveh.c (main): Likewise.
51052         * tests/test-striconveha.c (main): Likewise.
51053         * tests/test-strstr.c (main): Likewise.
51054
51055         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51056
51057         bootstrap: sync from coreutils again
51058         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51059
51060 2008-03-01  Jim Meyering  <meyering@redhat.com>
51061
51062         bootstrap: sync from coreutils
51063         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51064         also when the target doesn't exist.
51065
51066 2008-03-01  Eric Blake  <ebb9@byu.net>
51067
51068         Fix bugs in last patch.
51069         * lib/memchr2.c (memchr2): Fix typo.
51070         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51071         extension.
51072         Reported by Bruce Korb.
51073
51074         New module 'memchr2'.
51075         * modules/memchr2: New file.
51076         * modules/memchr2-tests: Likewise.
51077         * lib/memchr2.h: Likewise.
51078         * lib/memchr2.c: Likewise, based on memchr.c.
51079         * tests/test-memchr2.c: New test.
51080         * MODULES.html.sh (String handling): Add memchr2.
51081
51082 2008-02-29  Bruno Haible  <bruno@clisp.org>
51083
51084         * modules/freadseek-tests: New file.
51085         * tests/test-freadseek.sh: New file.
51086         * tests/test-freadseek.c: New file.
51087
51088         New module 'freadseek'.
51089         * modules/freadseek: New file.
51090         * lib/freadseek.h: New file.
51091         * lib/freadseek.c: New file.
51092         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51093
51094 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51095
51096         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51097         wydawca.
51098
51099         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51100         program_invocation_name and program_invocation_short_name are
51101         present.
51102
51103 2008-02-28  Bruno Haible  <bruno@clisp.org>
51104
51105         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51106         * tests/test-freadptr.sh: Also test non-seekable stdin.
51107
51108 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51109
51110         * build-aux/bootstrap (source_base, m4_base)
51111         (doc_base, tests_base): New variables.
51112         (gnulib_tool_options): Do not hardcode base directories, use
51113         the above variables instead.
51114
51115 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51116
51117         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51118
51119 2008-02-28  Bruno Haible  <bruno@clisp.org>
51120
51121         * modules/freadptr-tests: New file.
51122         * tests/test-freadptr.sh: New file.
51123         * tests/test-freadptr.c: New file.
51124
51125         New module 'freadptr'.
51126         * modules/freadptr: New file.
51127         * lib/freadptr.h: New file.
51128         * lib/freadptr.c: New file.
51129         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51130
51131 2008-02-26  Karl Berry  <karl@freefriends.org>
51132
51133         Sync from Libtool:
51134         * libltdl/argz.c (argz_add, argz_count): New functions.
51135         * libltdl/argz.in.h: Declare them.
51136         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51137
51138 2008-02-22  Bruno Haible  <bruno@clisp.org>
51139
51140         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51141         is a pointer type.  Needed for HP-UX 10.
51142         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51143         * doc/posix-functions/gmtime_r.texi: Likewise.
51144         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51145
51146 2008-02-24  Bruno Haible  <bruno@clisp.org>
51147
51148         * modules/environ-tests: New file.
51149         * tests/test-environ.c: New file.
51150
51151         New module 'environ'.
51152         * modules/environ: New file.
51153         * lib/unistd.in.h (environ): New declaration.
51154         * m4/environ.m4: New file.
51155         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51156         after use.
51157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51158         HAVE_DECL_ENVIRON.
51159         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51160         HAVE_DECL_ENVIRON.
51161         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51162         wrong claim that 'environ' is missing on some systems.
51163         * modules/execute (Depends-on): Add environ.
51164         * lib/execute.c (environ): Remove fallback declaration.
51165         * modules/pipe (Depends-on): Add environ.
51166         * lib/pipe.c (environ): Remove fallback declaration.
51167         * modules/setenv (Depends-on): Add environ.
51168         * lib/setenv.c (environ): Remove fallback declaration.
51169         * modules/unsetenv (Depends-on): Add environ.
51170         * lib/unsetenv.c (environ): Remove fallback declaration.
51171         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51172         m4/environ.m4.
51173         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51174         (gl_PREREQ_UNSETENV): Likewise.
51175
51176 2008-02-24  Bruno Haible  <bruno@clisp.org>
51177
51178         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51179
51180 2008-02-20  Bob Proulx  <bob@proulx.com>
51181
51182         Enable use of older two part flavor 'git describe'.
51183         * build-aux/git-version-gen: If using the older two part flavor of
51184         git version then recreate the third part now present in the
51185         newer three part flavor of git describe.
51186
51187 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51188
51189         * lib/fts.c (fts_build): Typo correction to comment.
51190
51191 2008-02-17  Bruno Haible  <bruno@clisp.org>
51192
51193         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51194         generating no-op conflicts.
51195
51196 2008-02-17  Bruno Haible  <bruno@clisp.org>
51197
51198         Speed up by 10%.
51199         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51200         result_entries, rather than an index-based loop.
51201
51202 2008-02-17  Bruno Haible  <bruno@clisp.org>
51203
51204         Speed up by 25%.
51205         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51206         'hashcode_cached'.
51207         (entry_create): New function.
51208         (entry_hashcode): Use the cached hashcode if possible.
51209         (read_changelog_file, try_split_merged_entry): Use entry_create.
51210
51211 2008-02-17  Bruno Haible  <bruno@clisp.org>
51212
51213         Speed up from O(n^2) to O(n) for long ChangeLog files.
51214         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51215         (read_changelog_file): Change implementation of entries_reversed list
51216         to rbtreehash.
51217         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51218
51219 2008-02-17  Bruno Haible  <bruno@clisp.org>
51220
51221         New option --split-merged-entry.
51222         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51223         (find_paragraph_end, try_split_merged_entry): New functions.
51224         (long_options): Add option --split-merged-entry.
51225         (usage): Document option --split-merged-entry.
51226         (main): Implement option --split-merged-entry.
51227         Reported by Eric Blake.
51228
51229 2008-02-17  Bruno Haible  <bruno@clisp.org>
51230
51231         * lib/git-merge-changelog.c: Include c-strstr.h.
51232         (main): Support the "git pull --rebase" situation.
51233         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51234         Reported by Eric Blake.
51235
51236 2008-02-16  Eric Blake  <ebb9@byu.net>
51237
51238         Avoid doubling \ in common case of "c-maybe" quoting style.
51239         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51240         eliding outer quotes.
51241         * lib/quotearg.h: Document this.
51242         * tests/test-quotearg.c (result_strings, inputs, results_g)
51243         (flag_results, locale_results): Test it by adding a new string to
51244         each test group.
51245         (compare_strings): Test new string.
51246
51247 2008-02-13  Eric Blake  <ebb9@byu.net>
51248
51249         Avoid trigraph quoting in default output.
51250         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51251         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51252         unless explicitly requested.
51253         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51254
51255 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51256
51257         Don't rely on signed integer overflowing to negative value.
51258         * lib/getugroups.c (getugroups): Include <limits.h>.
51259         Instead, compare against INT_MAX, and increment only if the test passes.
51260
51261 2008-02-13  Jim Meyering  <meyering@redhat.com>
51262         and Eric Blake  <ebb9@byu.net>
51263
51264         Avoid shadowing warning and compile errors on Linux.
51265         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51266         forwarding macros on Linux.
51267         (dcgettext): Define a stub, for Linux.
51268         (results_g, main): Avoid warnings.
51269
51270 2008-02-12  Eric Blake  <ebb9@byu.net>
51271
51272         Silence warning in last patch.
51273         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51274
51275         Quotearg part 4: add tests, fix c-maybe colon quoting.
51276         * lib/quotearg.h: Improve documentation.
51277         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51278         escapes when adding outer quotes.  When quoting trigraphs, use
51279         valid C notation.  When quoting NUL, omit extra characters if next
51280         character is not digit.  Alter prototype.
51281         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51282         callers.
51283         * modules/quotearg-tests: New module.
51284         * tests/test-quotearg.c: New test.
51285
51286 2008-02-07  Eric Blake  <ebb9@byu.net>
51287
51288         Quotearg part 3: add flag to control outer quote elision.
51289         * lib/quotearg.h (c_maybe_quoting_style): New style.
51290         (enum quoting_flags): Better documentation of flags.
51291         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51292         c-maybe style.
51293         (quotearg_buffer_restyled): Handle new flag to elide outer
51294         quotes.
51295
51296         Quotearg part 2: add flag that can control NUL elision.
51297         * lib/quotearg.h (set_quoting_flags): New prototype.
51298         * lib/quotearg.c (struct quoting_options): Add flag field.
51299         (set_quoting_flags): New function.
51300         (quotearg_buffer_restyled): Add flags parameter.
51301         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51302         (quotearg_n_options): Set the flag, since length cannot be
51303         returned.
51304         (quoting_options_from_style): Default flags correctly.
51305
51306         Quotearg part 1: more wrappers, restore quotearg_char state.
51307         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51308         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51309         (quotearg_colon_mem): New wrappers.
51310         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51311         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51312         functions.
51313         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51314         (quotearg_colon_mem): New functions.
51315
51316 2008-02-11  Bruno Haible  <bruno@clisp.org>
51317
51318         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51319         library in the current directory: it does not work with parallel make.
51320         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51321
51322 2008-02-11  Bruno Haible  <bruno@clisp.org>
51323
51324         * .gitattributes: New file.
51325
51326 2008-02-11  Jim Meyering  <meyering@redhat.com>
51327
51328         useless-if-before-free: Fix reversed exit values.
51329         * build-aux/useless-if-before-free: Use correct values
51330         for EXIT_MATCH and EXIT_NO_MATCH.
51331
51332         * build-aux/useless-if-before-free: Close stdout carefully.
51333
51334 2008-02-10  Bruno Haible  <bruno@clisp.org>
51335
51336         New module 'git-merge-changelog'.
51337         * modules/git-merge-changelog: New file.
51338         * lib/git-merge-changelog.c: New file.
51339
51340 2008-02-10  Jim Meyering  <meyering@redhat.com>
51341
51342         useless-if-before-free: New option: --list (-l).
51343
51344         useless-if-before-free: Don't exit immediately upon open failure.
51345         * build-aux/useless-if-before-free: Exit 2 for errors.
51346         Upon failure to open a file, don't exit immediately.
51347         Rather, just warn and continue with any remaining files.
51348
51349 2008-02-10  Bruno Haible  <bruno@clisp.org>
51350
51351         New abstract list operation 'node_set_value'.
51352         * lib/gl_list.h (gl_list_node_set_value): New function.
51353         (struct gl_list_implementation): New field node_set_value.
51354         * lib/gl_list.c (gl_list_node_set_value): New function.
51355         * lib/gl_array_list.c (gl_array_node_set_value): New function.
51356         (gl_array_list_implementation): Update.
51357         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
51358         (gl_carray_list_implementation): Update.
51359         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
51360         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51361         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51362         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
51363         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51364         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51365         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51366         Update.
51367         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51368         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
51369         (gl_sublist_list_implementation): Update.
51370
51371 2008-02-10  Bruno Haible  <bruno@clisp.org>
51372
51373         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
51374         Needed when ELEMENT is #defined to 'some_type *'.
51375
51376 2008-02-10  Jim Meyering  <meyering@redhat.com>
51377
51378         New script and module: useless-if-before-free
51379         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
51380         * build-aux/useless-if-before-free: New file.
51381         * modules/useless-if-before-free: New file.
51382
51383         * build-aux/gitlog-to-changelog: Use committer date, not author date.
51384
51385         xstrtol_error: Fix typo.
51386         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
51387         s/exit_failure/exit_status/.
51388
51389 2008-02-09  Jim Meyering  <meyering@redhat.com>
51390
51391         New script and module: gitlog-to-changelog
51392         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
51393         * modules/gitlog-to-changelog: New file.
51394         * build-aux/gitlog-to-changelog: New file.
51395
51396 2008-02-08  Jim Meyering  <meyering@redhat.com>
51397
51398         Avoid two "parameter unused" warnings.
51399         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
51400         Mark "st" as used.
51401
51402         Use "git COMMAND", not "git-COMMAND".
51403         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
51404         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
51405         * build-aux/git-version-gen: Use "git status", not "git-status".
51406
51407 2008-02-07  Bruno Haible  <bruno@clisp.org>
51408
51409         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
51410         Avoids a crash on Windows Vista.
51411         Reported by Adam Strzelecki <ono@java.pl> via
51412         Simon Josefsson <simon@josefsson.org>.
51413
51414 2008-02-06  Bruno Haible  <bruno@clisp.org>
51415
51416         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
51417         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
51418         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
51419         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
51420         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51421         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51422         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
51423         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
51424         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51425         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51426         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51427         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51428         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51429         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51430         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51431         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
51432         left-adjust flag.
51433         * tests/test-snprintf-posix.h (test_function): Likewise.
51434         * tests/test-sprintf-posix.h (test_function): Likewise.
51435         * tests/test-vasprintf-posix.c (test_function): Likewise.
51436         * doc/posix-functions/fprintf.texi: Update.
51437         * doc/posix-functions/printf.texi: Update.
51438         * doc/posix-functions/snprintf.texi: Update.
51439         * doc/posix-functions/sprintf.texi: Update.
51440         * doc/posix-functions/vfprintf.texi: Update.
51441         * doc/posix-functions/vprintf.texi: Update.
51442         * doc/posix-functions/vsnprintf.texi: Update.
51443         * doc/posix-functions/vsprintf.texi: Update.
51444         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51445
51446 2008-02-06  Bruno Haible  <bruno@clisp.org>
51447
51448         Fix bug introduced on 2008-01-26.
51449         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
51450
51451 2008-02-06  Bruno Haible  <bruno@clisp.org>
51452
51453         Fix bug introduced on 2007-06-10.
51454         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51455         !NEED_PRINTF_FLAG_ZERO.
51456
51457 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51458
51459         getloadavg: use libperfstat on AIX5
51460         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51461
51462 2008-02-03  Bruno Haible  <bruno@clisp.org>
51463
51464         * lib/diffseq.h: Add comments about required #includes.
51465         Reported by Michael Biggs <gnulib@doubleplum.net>.
51466
51467 2008-02-01  Bruno Haible  <bruno@clisp.org>
51468
51469         * users.txt: Add gnuit.
51470
51471 2008-01-31  Bruno Haible  <bruno@clisp.org>
51472
51473         * lib/md4.c (set_uint32): Mark as inline.
51474         * lib/md5.c (set_uint32): Likewise.
51475         * lib/sha1.c (set_uint32): Likewise.
51476         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51477         * m4/md5.m4 (gl_MD5): Likewise.
51478         * m4/sha1.m4 (gl_SHA1): Likewise.
51479
51480 2008-01-31  Jim Meyering  <meyering@redhat.com>
51481
51482         Use "sizeof VAR", rather than a literal "4".
51483         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
51484         * lib/md4.c (md4_read_ctx): Likewise.
51485         * lib/sha1.c (sha1_read_ctx): Likewise.
51486
51487 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51488
51489         * tests/test-sha1.c: New file, based on test-md5.c.
51490
51491         * modules/crypto/sha1-tests: New file.
51492
51493 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51494
51495         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
51496
51497 2008-01-31  Jim Meyering  <meyering@redhat.com>
51498
51499         Prefer "sizeof v" over the equivalent "4".
51500         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
51501         * lib/md5.c (set_uint32): Likewise.
51502         * lib/sha1.c (set_uint32): Likewise.
51503
51504 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51505
51506         * lib/sha1.c (set_uint32): Mark function as static.
51507
51508 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51509
51510         md2: clarify comments to say that alignment is not required.
51511         * lib/md2.h: Remove warning about alignment in comment.
51512         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
51513         never been required.
51514
51515 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51516
51517         md4: adapt alignment constraint fix from sha1.
51518         * lib/md4.c (set_uint32): New function, from sha1.c
51519         (md4_read_ctx): Use it.
51520         (md4_finish_ctx): Doc fix.
51521         * lib/md4.h: Doc fix.
51522
51523 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51524
51525         md5: adapt alignment constraint fix from sha1.
51526         * lib/md5.c (set_uint32): New function, from sha1.c
51527         (md5_read_ctx): Use it.
51528         (md5_finish_ctx): Doc fix.
51529         * lib/md5.h: Doc fix.
51530
51531 2008-01-30  Peter Palfrader  <weasel@debian.org>
51532
51533         sha1: remove the result buffer alignment constraint
51534         * lib/sha1.c (set_uint32): New function.
51535         (sha1_read_ctx): Rewrite to remove the result buffer alignment
51536         constraint.
51537         (sha1_finish_ctx): Remove comment warning about alignment constraint.
51538         * lib/sha1.h: Likewise.
51539
51540 2008-01-30  Andreas Schwab  <schwab@suse.de>
51541             Bruno Haible  <bruno@clisp.org>
51542
51543         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
51544         correct definition of LDBL_MIN_EXP.
51545
51546 2008-01-30  Karl Berry  <karl@gnu.org>
51547
51548         * config/srclist-update: try to preserve x bit on updates.
51549         * config/srclistvars.sh: update for karl.
51550
51551 2008-01-29  Jim Meyering  <meyering@redhat.com>
51552
51553         vasnprintf.c: Avoid warning about unused label
51554         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
51555         "overflow" label definition and associated code with the
51556         same cpp condition that guards the sole use of that label.
51557
51558 2008-01-26  Bruno Haible  <bruno@clisp.org>
51559
51560         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
51561         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
51562         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
51563         * lib/isnanl-nolibm.h (isnanl): Likewise.
51564         Reported by Paul Eggert <eggert@cs.ucla.edu>.
51565
51566 2008-01-26  Bruno Haible  <bruno@clisp.org>
51567
51568         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
51569         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
51570
51571 2008-01-26  Bruno Haible  <bruno@clisp.org>
51572
51573         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
51574         GCC >= 4.0 built-in.
51575         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
51576
51577 2008-01-26  Bruno Haible  <bruno@clisp.org>
51578
51579         Rename isnan, applicable to 'double' only, to isnand.
51580         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
51581         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
51582         (configure.ac): Update.
51583         (Include): Replace "isnan.h" with "isnand.h".
51584         * m4/isnand.m4: Renamed from m4/isnan.m4.
51585         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
51586         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
51587         instead of isnan.c.
51588         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
51589         instead of HAVE_ISNAN_IN_LIBC.
51590         (isnand): Renamed from isnan.
51591         * lib/isnand.c: New file.
51592         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
51593         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
51594         (Makefile.am): Update.
51595         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
51596         Include isnand.h instead of isnan.h.
51597         (main): Test isnand instead of isnan.
51598         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
51599         isnan-nolibm.
51600         * modules/frexp (Depends-on): Likewise.
51601         * modules/frexp-tests (Depends-on): Likewise.
51602         * modules/frexp-nolibm (Depends-on): Likewise.
51603         * modules/frexp-nolibm-tests (Depends-on): Likewise.
51604         * modules/isfinite (Depends-on): Likewise.
51605         * modules/round-tests (Depends-on): Likewise.
51606         * modules/signbit (Depends-on): Likewise.
51607         * modules/signbit-tests (Depends-on): Likewise.
51608         * modules/snprintf-posix (Depends-on): Likewise.
51609         * modules/sprintf-posix (Depends-on): Likewise.
51610         * modules/trunc-tests (Depends-on): Likewise.
51611         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51612         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51613         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51614         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51615         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51616         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51617         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51618         * modules/vasnprintf-posix (Depends-on): Likewise.
51619         * modules/vasprintf-posix (Depends-on): Likewise.
51620         * modules/vfprintf-posix (Depends-on): Likewise.
51621         * modules/vsnprintf-posix (Depends-on): Likewise.
51622         * modules/vsprintf-posix (Depends-on): Likewise.
51623         * lib/frexp.c: Include isnand.h instead of isnan.h.
51624         (ISNAN): Set to isnand instead of isnan.
51625         * lib/isfinite.c: Include isnand.h instead of isnan.h.
51626         (gl_isfinited): Use isnand instead of isnan.
51627         * lib/signbitd.c: Include isnand.h instead of isnan.h.
51628         (gl_signbitd): Use isnand instead of isnan.
51629         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
51630         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
51631         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
51632         (main): Use isnand instead of isnan.
51633         * tests/test-round1.c: Include isnand.h.
51634         (main): Use isnand instead of isnan.
51635         * tests/test-round2.c: Include isnand.h instead of isnan.h.
51636         (ISNAN): Set to isnand instead of isnan.
51637         * tests/test-trunc1.c: Include isnand.h.
51638         (main): Use isnand instead of isnan.
51639         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
51640         (equal): Use isnand instead of isnan.
51641         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
51642         isnand-nolibm.
51643         * NEWS: Mention the change.
51644
51645 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51646             Bruno Haible  <bruno@clisp.org>
51647
51648         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
51649         the GCC builtins for signbits are present and set
51650         REPLACE_SIGNBIT_USING_GCC if so.
51651         * lib/math.in.h (signbit): Define using GCC builtins if
51652         REPLACE_SIGNBIT_USING_GCC is set.
51653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
51654         REPLACE_SIGNBIT_USING_GCC.
51655         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
51656
51657 2008-01-25  Jim Meyering  <meyering@redhat.com>
51658
51659         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
51660         * lib/poll.c: Include <config.h>, not "config.h".
51661         * tests/test-getaddrinfo.c: Likewise.
51662
51663 2008-01-25  Simon Josefsson  <simon@josefsson.org>
51664
51665         * modules/sockets-tests: New file.
51666
51667 2008-01-24  Simon Josefsson  <simon@josefsson.org>
51668
51669         * modules/sockets: New module, can be used to call WSA_Startup and
51670         WSA_Cleanup when needed.
51671
51672         * lib/sockets.h, lib/sockets.c: New files.
51673
51674         * m4/sockets.m4: New file.
51675
51676         * tests/test-sockets.c: New file.
51677
51678 2008-01-19  Bruno Haible  <bruno@clisp.org>
51679
51680         * doc/posix-headers: Renamed from doc/headers.
51681         * doc/posix-functions: Renamed from doc/functions.
51682         * doc/gnulib.texi: Update.
51683
51684 2008-01-19  Bruno Haible  <bruno@clisp.org>
51685
51686         * doc/glibc-functions/strcasestr.texi: Include contents of
51687         doc/functions/strcasestr.texi, fixing the list of platforms.
51688         * doc/functions/strcasestr.texi: Remove file.
51689
51690 2008-01-19  Bruno Haible  <bruno@clisp.org>
51691
51692         * doc/glibc-functions/memmem.texi: Include contents of
51693         doc/functions/memmem.texi.
51694         * doc/functions/memmem.texi: Remove file.
51695
51696 2008-01-18  Bruno Haible  <bruno@clisp.org>
51697
51698         * doc/glibc-functions/*.texi: New files.
51699         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
51700         to use the new files.
51701
51702 2008-01-17  Bruno Haible  <bruno@clisp.org>
51703
51704         * tests/test-gethostname.c (main): Fix printf statement.
51705
51706 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51707
51708         * modules/gethostname-tests: New file.
51709
51710         * tests/test-gethostname.c: New file.
51711
51712 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51713
51714         * lib/gethostname.c: Include string.h unconditionally, strncpy is
51715         used by the UNAME case.  Reported by Bruno Haible
51716         <bruno@clisp.org>.
51717
51718 2008-01-17  Eric Blake  <ebb9@byu.net>
51719
51720         Convert c-strcasestr to be more efficient.
51721         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
51722         (Depends-on): Add c-strcase, remove malloca, strnlen.
51723         * tests/test-c-strcasestr.c (main): Enhance test.
51724         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
51725
51726 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
51727
51728         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
51729         Use it in creating po/Makevars.
51730
51731 2008-01-15  Simon Josefsson  <simon@josefsson.org>
51732
51733         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
51734         Applications that requires it should initialize libgcrypt
51735         manually.
51736
51737 2008-01-16  Simon Josefsson  <simon@josefsson.org>
51738
51739         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
51740
51741 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
51742
51743         Fix problem with getdate on mingw32 reported by Simon Josefsson
51744         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
51745         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
51746         tzname", when deciding whether to declare tzname.
51747         * lib/strftime.c (tzname): Likewise.
51748
51749 2008-01-15  Bruno Haible  <bruno@clisp.org>
51750
51751         Work around a MacOS X 10.5 bug in frexpl().
51752         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
51753         * doc/functions/frexpl.texi: Document the bug.
51754         Reported by Elias Pipping <pipping@gentoo.org>.
51755
51756 2008-01-14  Eric Blake  <ebb9@byu.net>
51757
51758         Touch up previous patch.
51759         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
51760         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
51761
51762         Convert strcasestr module to use Two-Way algorithm.
51763         * modules/strcasestr-simple: New module, based on the old
51764         strcasestr, but with Two-Way rather than KMP.
51765         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
51766         * lib/string.in.h (rpl_strcasestr): Declare.
51767         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
51768         performance.
51769         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
51770         * modules/string (Makefile.am): Support strcasestr.
51771         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
51772         * modules/strcasestr-tests (Depends-on): Check for alarm.
51773         * tests/test-strcasestr.c: Augment test.
51774         * lib/str-two-way.h: Clean up stray macro.
51775         * NEWS: Document new module.
51776         * MODULES.html.sh (string handling): Likewise.
51777         * doc/functions/strcasestr.texi: New file.
51778         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
51779         here, since it is not a POSIX function.
51780
51781 2008-01-14  Colin Watson  <cjwatson@debian.org>
51782             Bruno Haible  <bruno@clisp.org>
51783
51784         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
51785         works fine; if not, set REPLACE_STRSIGNAL.
51786         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
51787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51788         REPLACE_STRSIGNAL.
51789         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
51790         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
51791         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
51792
51793 2008-01-14  Bruno Haible  <bruno@clisp.org>
51794
51795         * modules/strsignal (Include): Change to <string.h>.
51796
51797 2008-01-14  Colin Watson  <cjwatson@debian.org>
51798
51799         * modules/argp (Notice): Add a notice recommending to change
51800         XGETTEXT_OPTIONS.
51801         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
51802
51803 2008-01-13  Colin Watson  <cjwatson@debian.org>
51804
51805         * modules/strsignal-tests: New file.
51806         * tests/test-strsignal.c: New file.
51807
51808         * lib/strsignal.c: New file, from glibc with modifications.
51809         * lib/siglist.h: New file, from glibc with modifications.
51810         * lib/string.in.h (strsignal): New declaration.
51811         * m4/strsignal.m4: New file.
51812         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51813         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
51814         * modules/strsignal: New file.
51815         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
51816         HAVE_DECL_STRSIGNAL.
51817
51818 2008-01-13  Bruno Haible  <bruno@clisp.org>
51819
51820         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
51821         locale encoding is not ASCII. Needed for OpenBSD 4.0.
51822         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51823         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51824
51825 2008-01-13  Bruno Haible  <bruno@clisp.org>
51826
51827         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
51828         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
51829         * lib/argp.h (__attribute__): Likewise.
51830         * lib/c-stack.c (__attribute__): Likewise.
51831         * lib/error.h (__attribute__): Likewise.
51832         * lib/fts.c (__attribute__): Likewise.
51833         * lib/openat.h (__attribute__): Likewise.
51834         * lib/stdio.in.h (__attribute__): Likewise.
51835         * lib/string.in.h (__attribute__): Likewise.
51836         * lib/utimens.c (__attribute__): Likewise.
51837         * lib/vasnprintf.h (__attribute__): Likewise.
51838         * lib/xalloc.h (__attribute__): Likewise.
51839         * lib/xprintf.h (__attribute__): Likewise.
51840         * lib/xstrtol.h (__attribute__): Likewise.
51841         * lib/xvasprintf.h (__attribute__): Likewise.
51842
51843 2008-01-12  Bruno Haible  <bruno@clisp.org>
51844
51845         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
51846         * doc/glibc-headers/a.out.texi: New file.
51847         * doc/glibc-headers/aliases.texi: New file.
51848         * doc/glibc-headers/alloca.texi: New file.
51849         * doc/glibc-headers/ar.texi: New file.
51850         * doc/glibc-headers/argp.texi: New file.
51851         * doc/glibc-headers/argz.texi: New file.
51852         * doc/glibc-headers/byteswap.texi: New file.
51853         * doc/glibc-headers/crypt.texi: New file.
51854         * doc/glibc-headers/endian.texi: New file.
51855         * doc/glibc-headers/envz.texi: New file.
51856         * doc/glibc-headers/err.texi: New file.
51857         * doc/glibc-headers/error.texi: New file.
51858         * doc/glibc-headers/execinfo.texi: New file.
51859         * doc/glibc-headers/fpu_control.texi: New file.
51860         * doc/glibc-headers/fstab.texi: New file.
51861         * doc/glibc-headers/fts.texi: New file.
51862         * doc/glibc-headers/getopt.texi: New file.
51863         * doc/glibc-headers/ieee754.texi: New file.
51864         * doc/glibc-headers/ifaddrs.texi: New file.
51865         * doc/glibc-headers/libintl.texi: New file.
51866         * doc/glibc-headers/mcheck.texi: New file.
51867         * doc/glibc-headers/mntent.texi: New file.
51868         * doc/glibc-headers/obstack.texi: New file.
51869         * doc/glibc-headers/paths.texi: New file.
51870         * doc/glibc-headers/printf.texi: New file.
51871         * doc/glibc-headers/pty.texi: New file.
51872         * doc/glibc-headers/resolv.texi: New file.
51873         * doc/glibc-headers/shadow.texi: New file.
51874         * doc/glibc-headers/sysexits.texi: New file.
51875         * doc/glibc-headers/ttyent.texi: New file.
51876
51877 2008-01-12  Jim Meyering  <meyering@redhat.com>
51878
51879         announce-gen: emit Gnulib's git-based version string.
51880         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
51881         New option --gnulib-version=V, where V is expected to be
51882         the output of running git describe in the gnulib directory.
51883         (get_tool_versions): Request feedback on xdelta.  I suspect it's
51884         not useful, and plan to stop publishing an xdelta file with each
51885         coreutils release.
51886
51887         * build-aux/announce-gen: Also check for lzma-compressed files.
51888
51889 2008-01-11  Bruno Haible  <bruno@clisp.org>
51890
51891         * tests/test-memmem.c (main): Increase maximum allowed time.
51892         * tests/test-strstr.c (main): Likewise.
51893
51894 2008-01-11  Bruno Haible  <bruno@clisp.org>
51895
51896         * doc/functions/memmem.texi: Add more precisions about platforms.
51897         * doc/functions/strstr.texi: Likewise.
51898
51899 2008-01-10  Eric Blake  <ebb9@byu.net>
51900
51901         * m4/strstr.m4: Delete cruft from copy-n-paste.
51902         Reported by Bruno Haible.
51903
51904 2008-01-10  Bruno Haible  <bruno@clisp.org>
51905
51906         Make c-strstr rely on strstr.
51907         * lib/c-strstr.c: Don't include str-kmp.h.
51908         (c_strstr): Define in terms of strstr.
51909         * modules/c-strstr (Files): Remove lib/str-kmp.h.
51910         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
51911
51912 2008-01-10  Bruno Haible  <bruno@clisp.org>
51913
51914         * doc/gnulib.texi (String Functions in C Locale): New section.
51915         * doc/c-ctype.texi: New file.
51916         * doc/c-strcase.texi: New file.
51917         * doc/c-strcaseeq.texi: New file.
51918         * doc/c-strcasestr.texi: New file.
51919         * doc/c-strstr.texi: New file.
51920         * doc/c-strtod.texi: New file.
51921         * doc/c-strtold.texi: New file.
51922
51923 2008-01-10  Eric Blake  <ebb9@byu.net>
51924
51925         * lib/relocatable.h: Fix a comment.
51926
51927 2008-01-10  Eric Blake  <ebb9@byu.net>
51928
51929         Share two-way algorithm.
51930         * lib/str-two-way.h: New file, merged from...
51931         * lib/memmem.c: ...here...
51932         * lib/strstr.c: ...and here.
51933         * modules/memmem (Files): Use it.
51934         * modules/strstr (Files): Likewise.
51935
51936         Avoid quadratic strstr implementations.
51937         * lib/strstr.c: New file.
51938         * m4/strstr.m4: Likewise.
51939         * modules/strstr: Likewise.
51940         * modules/strstr-tests: Likewise.
51941         * tests/test-strstr.c: Likewise.
51942         * lib/string.in.h (rpl_strstr): Declare.
51943         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
51944         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
51945         * modules/string (Makefile.am): Likewise.
51946         * MODULES.html.sh (string handling): Mention new module.
51947         * doc/functions/strstr.texi (strstr): Document the bug.
51948
51949 2008-01-10  Bruno Haible  <bruno@clisp.org>
51950
51951         * lib/relocatable.h (relocate): State whether result is freshly
51952         allocated or not.
51953         * lib/relocatable.c (relocate): Return a freshly allocated string
51954         instead of a pointer to a privately held string.
51955         Reported by Sylvain Beucler <beuc@gnu.org>.
51956
51957 2008-01-10  Colin Watson  <cjwatson@debian.org>
51958
51959         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
51960         s/S_ISNLK/S_ISLNK/.
51961
51962 2008-01-09  Bruno Haible  <bruno@clisp.org>
51963
51964         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
51965         and other files.
51966         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
51967         if it's only a guess.
51968         * modules/memmem: Simplify by depending on memmem-simple.
51969
51970 2008-01-09  Bruno Haible  <bruno@clisp.org>
51971
51972         Work around OpenBSD 4.0 tdelete() bug.
51973         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
51974         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
51975         macros and don't redefine the enum values.
51976         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
51977         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
51978         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
51979
51980 2008-01-09  Bruno Haible  <bruno@clisp.org>
51981
51982         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
51983         (main): Don't perform the tests if setlocale did not install a UTF-8
51984         locale. Needed on OpenBSD 4.0.
51985         * modules/wcwidth-tests (Depends-on): Add localcharset.
51986
51987 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51988
51989         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
51990         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
51991         * NEWS: announce this.
51992         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
51993
51994 2008-01-09  Simon Josefsson  <simon@josefsson.org>
51995         and Eric Blake  <ebb9@byu.net>
51996
51997         Add memmem-simple module.
51998         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
51999         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52000         * modules/memmem-simple: New file.
52001         * modules/memmem (Description): Tweak.
52002         * MODULES.html.sh (string handling): Mention new module.
52003         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52004         addressed by memmem-simple.
52005         * NEWS: Document the difference.
52006
52007 2008-01-09  Eric Blake  <ebb9@byu.net>
52008
52009         Give gcc some memmem optimization hints.
52010         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52011         (strcasestr): Declare as pure.
52012         * modules/memmem (Maintainer): Claim my implementation.
52013
52014 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52015
52016         Support AIX 6.1 and higher.
52017         * build-aux/config.libpath: Likewise.
52018         * build-aux/config.rpath: Likewise.
52019
52020 2008-01-08  Jim Meyering  <meyering@redhat.com>
52021             Bruno Haible  <bruno@clisp.org>
52022
52023         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52024         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52025         Reported by Peter Fales in
52026         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52027
52028 2008-01-08  Bruno Haible  <bruno@clisp.org>
52029
52030         * modules/unictype/category-of (Depends-on): Add
52031         unictype/category-none.
52032         * modules/unictype/category-and-tests (Depends-on): Add
52033         unictype/category-{L,N,Lu,Nd}.
52034         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52035         * modules/unictype/category-or-tests (Depends-on): Add
52036         unictype/category-{L,N}.
52037         * modules/unictype/category-name-tests (Depends-on): Add
52038         unictype/category-{Z,Nl}.
52039         Reported by Simon Josefsson.
52040
52041 2008-01-08  Bruno Haible  <bruno@clisp.org>
52042
52043         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52044         convention better.
52045         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52046         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52047         Reported by Peter Miller <millerp@canb.auug.org.au>.
52048
52049 2008-01-08  Eric Blake  <ebb9@byu.net>
52050
52051         Rewrite memmem to guarantee linear complexity without malloc.
52052         * lib/memmem.c (memmem): Use Two-Way rather than
52053         Knuth-Morris-Pratt, to allow O(1) space usage.
52054         (critical_factorization, two_way_short_needle)
52055         (two_way_long_needle): New functions.
52056         (knuth_morris_pratt): Delete.
52057         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52058         Add stdint.
52059         * tests/test-memmem.c (main): Add tests for periodic needle and
52060         sublinear performance.
52061         * doc/functions/memmem.texi (memmem): Document other deficiencies
52062         in cygwin and older glibc.
52063
52064 2008-01-08  Bruno Haible  <bruno@clisp.org>
52065
52066         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52067         augmentation.
52068
52069 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52070
52071         Add a configure time option: --disable-acl.
52072         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52073         AC_ARG_ENABLE(acl).
52074
52075 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52076
52077         * tests/test-localename.c: Don't include obsolete "setenv.h".
52078
52079         * modules/localename-tests (Depends-on): Need unsetenv.
52080
52081 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52082
52083         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52084
52085 2008-01-06  Colin Watson  <cjwatson@debian.org>
52086
52087         * users.txt: Add man-db.
52088
52089 2008-01-07  Bruno Haible  <bruno@clisp.org>
52090
52091         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52092         previous section name.
52093
52094 2008-01-07  Bruno Haible  <bruno@clisp.org>
52095
52096         * lib/progname.c (set_program_name): Don't strip off a leading
52097         "lt-" prefix outside a .libs directory.
52098         Suggested by Paul Eggert.
52099
52100 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52101             Bruno Haible  <bruno@clisp.org>
52102
52103         Improve memory cleanup in 'relocatable' module.
52104         * lib/relocatable.h (compute_curr_prefix): Change return type to
52105         'char *'.
52106         * lib/relocatable.c (compute_curr_prefix): Change return type to
52107         'char *'. Free curr_installdir after use.
52108         (relocate): Free curr_prefix_better after use.
52109         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52110
52111 2008-01-01  Bruno Haible  <bruno@clisp.org>
52112
52113         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52114         failure on older glibc systems.
52115         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52116
52117 2008-01-05  Eric Blake  <ebb9@byu.net>
52118
52119         Avoid quadratic system memmem.
52120         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52121         Reported by Ralf Wildenhues.
52122
52123         Fix memmem test for mingw.
52124         * modules/memmem-tests (configure.ac): Check for alarm.
52125         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52126         it.
52127         * doc/functions/memmem.texi: New file.
52128         * doc/gnulib.texi (Function Substitutes): Add memmem.
52129         Reported by Bruno Haible.
52130
52131 2008-01-04  Bruno Haible  <bruno@clisp.org>
52132
52133         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52134         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52135         gl_HEADER_STRING_H_DEFAULTS.
52136
52137 2008-01-04  Eric Blake  <ebb9@byu.net>
52138
52139         Shorten duration of memmem test.
52140         * tests/test-memmem.c (main): Use alarm to declare failure if test
52141         is taking too long.
52142         Reported by Ralf Wildenhues.
52143
52144 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52145
52146         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52147         string, needed by strerror.
52148
52149 2008-01-03  Colin Watson  <cjwatson@debian.org>
52150             Bruno Haible  <bruno@clisp.org>
52151
52152         * doc/gnulib-tool.texi (Localization): New section.
52153
52154 2008-01-02  Bruno Haible  <bruno@clisp.org>
52155
52156         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52157         variables to 'unsigned char *' type.
52158         Reported by Paul Eggert.
52159
52160 2008-01-02  Jim Meyering  <jim@meyering.net>
52161
52162         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52163
52164 2007-12-31  Jim Meyering  <jim@meyering.net>
52165
52166         Avoid use of private FTS type name.
52167         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52168
52169 2007-12-30  Karl Berry  <karl@gnu.org>
52170
52171         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52172         work around defect in Texinfo and/or the standalone Info browser.
52173
52174 2007-12-30  Bruno Haible  <bruno@clisp.org>
52175
52176         Unify 5 copies of the KMP code.
52177         * lib/str-kmp.h: New file.
52178         * lib/c-strcasestr.c: Include str-kmp.h.
52179         (knuth_morris_pratt): Remove function.
52180         (c_strcasestr): Update.
52181         * lib/c-strstr.c: Include str-kmp.h.
52182         (knuth_morris_pratt): Remove function.
52183         (c_strcasestr): Update.
52184         * lib/mbscasestr.c: Include str-kmp.h.
52185         (knuth_morris_pratt_unibyte): Remove function.
52186         * lib/mbsstr.c: Include str-kmp.h.
52187         (knuth_morris_pratt_unibyte): Remove function.
52188         * lib/strcasestr.c: Include str-kmp.h.
52189         (knuth_morris_pratt): Remove function.
52190         (strcasestr): Update.
52191         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52192         * modules/c-strstr (Files): Likewise.
52193         * modules/mbscasestr (Files): Likewise.
52194         * modules/mbsstr (Files): Likewise.
52195         * modules/strcasestr (Files): Likewise.
52196         Suggested by Paul Eggert.
52197
52198 2007-12-30  Bruno Haible  <bruno@clisp.org>
52199
52200         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52201         defined.
52202
52203 2007-12-30  Bruno Haible  <bruno@clisp.org>
52204
52205         * lib/xmalloca.h: Include xalloc.h.
52206         (xnmalloca): New macro.
52207
52208 2007-12-30  Bruno Haible  <bruno@clisp.org>
52209
52210         * lib/malloca.h (nmalloca): New macro.
52211         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52212         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52213         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52214         knuth_morris_pratt_multibyte): Likewise.
52215         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52216         knuth_morris_pratt_multibyte): Likewise.
52217         * lib/memmem.c (knuth_morris_pratt): Likewise.
52218         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52219
52220 2007-12-25  Bruno Haible  <bruno@clisp.org>
52221
52222         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52223         * lib/glob.c: Don't include openat.h.
52224         (link_exists2_p): Add back the code that deals with the
52225         !GLOB_ALTDIRFUNC case.
52226         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52227         let it do the filename concatenation.
52228         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52229         * modules/glob (Depends-on): Remove openat.
52230
52231 2007-12-31  Bruno Haible  <bruno@clisp.org>
52232
52233         * modules/dirfd (License): Change to LGPLv2+.
52234         Approved by Jim Meyering.
52235
52236 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52237
52238         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52239         when multiplying M by sizeof (size_t).
52240
52241 2007-12-10  Martin Lambers  <marlam@marlam.de>
52242
52243         Override getpagesize on mingw.
52244         * lib/getpagesize.c: New file.
52245         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52246         * modules/getpagesize (Files): Add lib/getpagesize.c.
52247         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52249         REPLACE_GETPAGESIZE.
52250         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52251
52252 2007-12-25  Bruno Haible  <bruno@clisp.org>
52253
52254         * modules/localcharset (Notice): New field.
52255         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52256         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52257
52258 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52259             Bruno Haible  <bruno@clisp.org>
52260
52261         Avoid using the syntax symbol() in formatted documentation.
52262         * MODULES.html.sh (func_module): When replacing symbol() with a
52263         hyperlink, remove the parentheses. Show an error if some remain.
52264         Recognize and render the '...' syntax.
52265         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52266         Rework. Add paragraph about GCC's inlining.
52267         * doc/alloca.texi: Likewise.
52268         * doc/error.texi: Remove parentheses from symbol reference.
52269         * doc/gnulib-intro.texi: Likewise.
52270         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52271         * modules/fnmatch (Description): Reword to say "the ... function".
52272         * modules/full-read (Description): Likewise.
52273         * modules/full-write (Description): Likewise.
52274         * modules/safe-read (Description): Likewise.
52275         * modules/safe-write (Description): Likewise.
52276         * modules/strchrnul (Description): Likewise.
52277         * modules/trim (Description): Likewise.
52278         * modules/error (Description): Remove parentheses from symbol
52279         references.
52280         * modules/verror (Description): Likewise.
52281         Reported by Karl Berry.
52282
52283 2007-12-25  Bruno Haible  <bruno@clisp.org>
52284
52285         Fixup after 2007-10-16 commit.
52286         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52287
52288 2007-12-24  Bruno Haible  <bruno@clisp.org>
52289
52290         Make --enable-relocatable work with DESTDIR.
52291         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52292         to compute installdir from destprog.
52293         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52294         also set the RELOC_DESTDIR variable.
52295         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52296
52297 2007-12-24  Bruno Haible  <bruno@clisp.org>
52298
52299         Fix link error due to xalloc_die().
52300         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52301         of xreadlink.
52302         * lib/relocwrapper.c: Update comments.
52303         * build-aux/install-reloc: Remove xreadlink.c from file list.
52304         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52305         xreadlink.c.
52306         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52307
52308 2007-12-24  Bruno Haible  <bruno@clisp.org>
52309
52310         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52311         * lib/setenv.h: Remove file.
52312         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52313         lib/setenv.h.
52314         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52315         (Depends-on): Add stdlib.
52316         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52317         gl_FUNC_UNSETENV.
52318         (Include): Replace setenv.h with <stdlib.h>.
52319         * modules/unsetenv: New file.
52320         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52321         * lib/unsetenv.c: Include <stdlib.h> first.
52322         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52323         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52324         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52325         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52326         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52327         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52328         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52329         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52330         * doc/functions/unsetenv.texi: Update.
52331         * modules/xsetenv (Depends-on): Add unsetenv.
52332         * modules/getdate (Depends-on): Likewise.
52333         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52334         * lib/xsetenv.c: Don't include setenv.h.
52335         * lib/getdate.y: Likewise.
52336         * lib/relocwrapper.c: Likewise.
52337         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52338         (Depends-on): Add stdlib.
52339         * NEWS: Mention the changes.
52340         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52341
52342 2007-12-23  Bruno Haible  <bruno@clisp.org>
52343
52344         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52345         indentation.
52346
52347 2007-12-23  Bruno Haible  <bruno@clisp.org>
52348
52349         * lib/c-strcasestr.c: Add more comments.
52350         * lib/c-strstr.c: Likewise.
52351         * lib/mbscasestr.c: Likewise.
52352         * lib/mbsstr.c: Likewise.
52353         * lib/strcasestr.c: Likewise.
52354         * lib/memmem.c: Likewise.
52355
52356 2007-12-23  Bruno Haible  <bruno@clisp.org>
52357
52358         * tests/test-memmem.c: Include <string.h> first.
52359
52360 2007-12-22  Bruno Haible  <bruno@clisp.org>
52361
52362         * gnulib-tool (func_create_testdir): Change $auxdir while generating
52363         the contents of $testsbase.
52364         Reported by Ralf Wildenhues.
52365
52366 2007-12-22  Bruno Haible  <bruno@clisp.org>
52367
52368         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
52369         two variables local_ldadd_before, local_ldadd_last.
52370
52371 2007-12-20  Eric Blake  <ebb9@byu.net>
52372
52373         Work around circular library issue when cross-compiling.
52374         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
52375         that progname.o does not need to pull in rpl_memcmp.
52376
52377 2007-12-19  Eric Blake  <ebb9@byu.net>
52378
52379         Fix memmem to avoid O(n^2) worst-case complexity.
52380         * lib/memmem.c (knuth_morris_pratt): New function.
52381         (memmem): Use it if first few naive iterations fail.
52382         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
52383         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
52384         * modules/memchr (License): Likewise.
52385         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
52386         malloca.
52387         * tests/test-memmem.c: Rewrite, borrowing ideas from
52388         test-mbsstr1.c; the old version wouldn't even compile!
52389         * modules/memmem-tests: New file.
52390         * lib/string.in.h (rpl_memmem): Add declaration.
52391         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
52392         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
52393         REPLACE_MEMMEM.
52394
52395 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52396
52397         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
52398         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
52399         before any system include files, and undef after them all.  This
52400         should fix a problem on VMS reported by John E. Malmberg in
52401         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
52402
52403 2007-12-17  Eric Blake  <ebb9@byu.net>
52404
52405         Revert addition of verify, for BSD/OS.
52406         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
52407         can't handle large files, for the sake of obsolete platforms.
52408         * modules/fseeko (Depends-on): Remove verify.
52409         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
52410         * doc/functions/ftello.texi (ftello): Likewise.
52411         * doc/functions/fgetpos.texi (fgetpos): Likewise.
52412         Reported by Larry Jones.
52413
52414 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
52415
52416         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
52417         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
52418
52419 2007-12-17  Jim Meyering  <meyering@redhat.com>
52420
52421         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
52422         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
52423         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
52424         * modules/getcwd (Depends-on): Add openat.
52425         Reported by Petr Salinger.
52426
52427 2007-12-17  Bruno Haible  <bruno@clisp.org>
52428
52429         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
52430         avoid a segmentation fault of the configure test on x86_64 systems.
52431
52432 2007-12-15  Jim Meyering  <meyering@redhat.com>
52433
52434         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
52435
52436 2007-12-13  Eric Blake  <ebb9@byu.net>
52437
52438         Another fseek test.
52439         * tests/test-fseek.c (main): Also test ungetc handling.
52440         * tests/test-fseeko.c (main): Likewise.
52441         * modules/fseeko (Depends-on): Add verify.
52442         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
52443         large.
52444         Reported by Larry Jones.
52445
52446         Fix fseeko on mingw.
52447         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
52448         seek.
52449
52450         Beef up fseek tests.
52451         * tests/test-fseek.c (main): Also test eof handling.
52452         * tests/test-fseeko.c (main): Likewise.
52453         Reported by Larry Jones.
52454
52455 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52456
52457         Fix fseeko on BSD-based platforms.
52458         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52459         successful seek.
52460
52461 2007-12-12  Eric Blake  <ebb9@byu.net>
52462
52463         Allow circular dependency of separate libtests.a
52464         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52465         when use_libtests.
52466
52467 2007-12-11  Eric Blake  <ebb9@byu.net>
52468
52469         Fix bug with -0.0L in previous patch.
52470         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52471         * tests/test-isnan.c (main): Also test on zeroes.
52472         * tests/test-isnanf.c (main): Likewise.
52473         * tests/test-isnanl.h (main): Likewise.
52474
52475         Detect pseudo-denormals on x86 even when cross-compiling.
52476         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52477         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52478         invalid bit patterns that happen to satisfy ==.
52479
52480         Avoid link failures with separate libtests.a.
52481         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52482         last, to satisfy circular dependencies.
52483
52484 2007-12-11  Eric Blake  <ebb9@byu.net>
52485         and Bruno Haible  <bruno@clisp.org>
52486
52487         Fix OpenBSD 4.0 <float.h> handling of long double.
52488         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
52489         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
52490         * doc/headers/float.texi (float.h): Document OpenBSD bug.
52491
52492 2007-12-11  Jim Meyering  <meyering@redhat.com>
52493
52494         * users.txt: Add libvirt.
52495
52496         Support versions of autoconf prior to 2.59c.
52497         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
52498         if it is not already defined.
52499
52500 2007-12-09  Bruno Haible  <bruno@clisp.org>
52501
52502         Let 'gnulib-tool --import' collect sources needed for the tests in
52503         tests/ rather than in lib/.
52504         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
52505         argument. If true, add rules to generate libtests.a, and put libtests.a
52506         into $(LDADD). Consider source files in subdirectories and set
52507         uses_subdirs.
52508         (func_emit_initmacro_start, func_emit_initmacro_end,
52509         func_emit_initmacro_done): Pass all arguments explicitly.
52510         (func_import): Determine two module lists main_modules,
52511         testsrelated_modules. Determine use_libtests. Determine two variables
52512         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
52513         instead of just sed_transform_lib_file. Determine two variables
52514         main_files and testsrelated_files. Compute 'files' as the union of
52515         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
52516         func_add_or_update. In the generated gnulib-comp.m4, collect the
52517         object files for tests/ in different variables than those for lib/.
52518         Substitute LIBTESTS_LIBDEPS.
52519         (func_create_testdir): Combine the uses_subdirs results from
52520         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
52521
52522 2007-12-09  Bruno Haible  <bruno@clisp.org>
52523
52524         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52525         the build-aux directory.
52526
52527 2007-12-09  Bruno Haible  <bruno@clisp.org>
52528
52529         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
52530         introduced on 2006-09-09.
52531
52532 2007-12-07  Jim Meyering  <meyering@redhat.com>
52533
52534         Let these macros work also with autoconf-2.59.
52535         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
52536         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
52537         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52538
52539 2007-12-06  Jim Meyering  <meyering@redhat.com>
52540
52541         Avoid a configure-time syntax error in gl_FUNC_ACL.
52542         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
52543         function in each branch, before testing the cache variable.
52544
52545 2007-12-04  Eric Blake  <ebb9@byu.net>
52546
52547         Make scripts executable.
52548         * build-aux/config.guess: Add execute permissions.
52549         * build-aux/config.sub: Likewise.
52550         * build-aux/gendocs.sh: Likewise.
52551
52552         Fix frexp on mingw.
52553         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
52554         cross-compiling.
52555         * doc/functions/frexp.texi (frexp): Document the bug.
52556
52557         Make cygwin fseeko check more reliable.
52558         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
52559         version numbers, rather than unrelated feature check.
52560         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
52561         * doc/functions/ftello.texi (ftello): Likewise.
52562         Reported by Bruno Haible.
52563
52564         * m4/strerror.m4: Bump version number.
52565
52566 2007-12-03  Bruno Haible  <bruno@clisp.org>
52567
52568         * doc/functions/mprotect.texi: Mention the mingw problem.
52569
52570 2007-12-03  Eric Blake  <ebb9@byu.net>
52571
52572         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
52573         REPLACE_STRERROR is initialized before this macro.
52574
52575 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52576
52577         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
52578         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
52579         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
52580         put -lsec in even for programs other than 'ls'.  This fixes a problem
52581         for gettext reported by Bruno Haible in
52582         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
52583         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
52584         Add support for Solaris 10.  This isn't efficient, but should get the
52585         job done for now.
52586
52587 2007-12-03  James Youngman  <jay@gnu.org>
52588
52589         * doc/regexprops-generic.texi: change "an close-group" to "a
52590         close-group" and "illegal" to "not allowed".
52591
52592 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52593
52594         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
52595         pr_byname.h. Needed for the rare case when the maintainer has done
52596         "make maintainer-clean" in the source directory and then attempts a
52597         build outside the source directory.
52598         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
52599         scripts_byname.h.
52600
52601 2007-12-02  Martin Lambers <marlam@marlam.de>
52602             Bruno Haible  <bruno@clisp.org>
52603
52604         * lib/getpagesize.h: Remove file.
52605         * lib/unistd.in.h: Include declaration of getpagesize here.
52606         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
52607         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
52608         HAVE_SYS_PARAM_H.
52609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
52610         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52611         * modules/getpagesize (Files): Remove lib/getpagesize.h.
52612         (Depends-on): Add unistd.
52613         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52614         (Include): Use <unistd.h> instead of getpagesize.h.
52615         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
52616         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52617         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
52618         gl_GETPAGESIZE invocation, already handled by module dependency.
52619         * lib/pagealign_alloc.c: Don't include getpagesize.h.
52620
52621 2007-12-02  Bruno Haible  <bruno@clisp.org>
52622
52623         * modules/strings-tests: New file.
52624         * tests/test-strings.c: New file.
52625
52626         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
52627         * lib/strings.in.h: New file.
52628         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
52629         * m4/strings_h.m4: New file.
52630         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
52631         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
52632         * modules/strings: New file.
52633         * modules/string (Makefile.am): Update.
52634         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
52635         Reported by Karl Berry.
52636
52637 2007-12-01  Eric Blake  <ebb9@byu.net>
52638
52639         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
52640         accomodate fix in cygwin 1.5.25.
52641
52642 2007-12-01  Jim Meyering  <meyering@redhat.com>
52643
52644         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
52645         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
52646         that would inhibit utf8-optimization of a regexp containing line-
52647         or buffer-anchors, e.g., `^', `$'.
52648
52649 2007-11-30  Bruno Haible  <bruno@clisp.org>
52650
52651         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
52652         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
52653         glthread_recursive_lock_init.
52654         * lib/lock.c (glthread_recursive_lock_init)
52655         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
52656         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52657
52658 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
52659
52660         New function qset_acl, like set_acl but with syscall semantics.
52661         * lib/acl.h (qset_acl): New decl.
52662         * lib/acl.c (qset_acl): New function.
52663         (set_acl): Use new function.  Use more-consistent diagnostics.
52664
52665 2007-11-28  Jim Meyering  <meyering@redhat.com>
52666
52667         * modules/physmem (License): Change from GPL to LGPLv2+.
52668
52669 2007-11-26  Bruno Haible  <bruno@clisp.org>
52670
52671         * lib/vasnprintf.c (decode_long_double): Don't abort if the
52672         'long double' type has excess precision.
52673         Reported by Jim Meyering in
52674         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
52675
52676 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52677
52678         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
52679         Sync from <http://gnu.org/licenses>.
52680         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
52681         with license text from same location.
52682         * doc/maintain.texi, doc/standards.texi:  Sync from
52683         <http://savannah.gnu.org/projects/gnustandards>.
52684
52685 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
52686         and Jim Meyering  <meyering@redhat.com>
52687
52688         Adjust getdate' grammar to accept a slightly more regular language.
52689         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
52690         Before, the former was rejected.
52691         * lib/getdate.y (digits_to_date_time): New function, factored
52692         out of ...
52693         (number): ...here.  Just call digits_to_date_time.
52694         (hybrid): New non-terminal to handle an <unsigned number,
52695         signed relative offset> sequence consistently.
52696
52697 2007-11-18  Jim Meyering  <meyering@redhat.com>
52698
52699         Pull my changes from coreutils:
52700         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
52701         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
52702         use of $gnulib_tool_option_extras, so that it's separated from the
52703         preceding argument.
52704
52705         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
52706         * build-aux/bootstrap (cp_mark_as_generated): Create any required
52707         parent destination directories before copying a file into place.
52708
52709 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52710
52711         bootstrap: work also with 4-argument variant of AC_INIT
52712         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
52713
52714 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52715
52716         Port test-getaddrinfo to Solaris.
52717         Problem reported by Bruno Haible in
52718         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
52719         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
52720         explanation of setting 'hints'.
52721         Don't reject an implementation merely because it returns EAI_SERVICE.
52722         (EAI_SERVICE): Define to 0 if not defined.
52723
52724 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52725
52726         The license of gnu-make and posix-shell is now "GPLed build tool".
52727         * modules/gnu-make (License): Likewise.
52728         * modules/posix-shell (License): Likewise.
52729
52730         New module posix-shell, for determining a POSIX shell
52731         or perhaps something that is close enough to a POSIX shell.
52732         * m4/posix-shell.m4: New file.
52733         * modules/posix-shell: New file.
52734
52735         * MODULES.html.sh: Mention new module.
52736
52737         New module gnu-make, for determining whether we're using GNU Make.
52738         * m4/gnu-make.m4: New file.
52739         * modules/gnu-make: New file.
52740         * MODULES.html.sh: Mention new module.
52741
52742 2007-11-14  Jim Meyering  <meyering@redhat.com>
52743
52744         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
52745         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
52746         use this macro to create a function _definition_.
52747         Remove useless "#undef ARGMATCH_DIE".
52748
52749 2007-11-14  Bruno Haible  <bruno@clisp.org>
52750
52751         * lib/config.charset: Update for OpenBSD 4.1.
52752         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
52753
52754 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
52755
52756         Document 64-bit #if problems in stdint.texi.
52757         * doc/headers/stdint.texi (stdint.h): Mention problems with
52758         64-bit-#if, and how to work around them.
52759
52760         Don't insist on 'long long int' support in the preprocessor.  It
52761         breaks too many things.  For example, PRIdMAX still uses a 'long
52762         long int' format with the latest Sun compiler, even though
52763         HAVE_LONG_LONG_INT isn't defined due to that compiler's
52764         preprocessor problem.  This causes the latest coreutils to dump
52765         core on Solaris 10 sparc with the Sun C compiler.
52766         Instead, fix the 2007-10-16 problem in a different way, by evaluating
52767         the troublesome expressions at configure-time, not at #if-time.
52768         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
52769         preprocessor.
52770         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
52771         compile-time C checks, done at 'configure'-time.
52772         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
52773         * modules/inttypes (Makefile): Substitute the new symbols that
52774         gl_INTTYPES_H now generates.
52775         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
52776
52777 2007-11-12  Bruno Haible  <bruno@clisp.org>
52778
52779         Tests for Unicode character classification functions.
52780
52781         * modules/unictype/bidicategory-byname-tests: New file.
52782         * modules/unictype/bidicategory-name-tests: New file.
52783         * modules/unictype/bidicategory-of-tests: New file.
52784         * modules/unictype/bidicategory-test-tests: New file.
52785         * modules/unictype/block-list-tests: New file.
52786         * modules/unictype/block-of-tests: New file.
52787         * modules/unictype/block-test-tests: New file.
52788         * modules/unictype/category-C-tests: New file.
52789         * modules/unictype/category-Cc-tests: New file.
52790         * modules/unictype/category-Cf-tests: New file.
52791         * modules/unictype/category-Cn-tests: New file.
52792         * modules/unictype/category-Co-tests: New file.
52793         * modules/unictype/category-Cs-tests: New file.
52794         * modules/unictype/category-L-tests: New file.
52795         * modules/unictype/category-Ll-tests: New file.
52796         * modules/unictype/category-Lm-tests: New file.
52797         * modules/unictype/category-Lo-tests: New file.
52798         * modules/unictype/category-Lt-tests: New file.
52799         * modules/unictype/category-Lu-tests: New file.
52800         * modules/unictype/category-M-tests: New file.
52801         * modules/unictype/category-Mc-tests: New file.
52802         * modules/unictype/category-Me-tests: New file.
52803         * modules/unictype/category-Mn-tests: New file.
52804         * modules/unictype/category-N-tests: New file.
52805         * modules/unictype/category-Nd-tests: New file.
52806         * modules/unictype/category-Nl-tests: New file.
52807         * modules/unictype/category-No-tests: New file.
52808         * modules/unictype/category-P-tests: New file.
52809         * modules/unictype/category-Pc-tests: New file.
52810         * modules/unictype/category-Pd-tests: New file.
52811         * modules/unictype/category-Pe-tests: New file.
52812         * modules/unictype/category-Pf-tests: New file.
52813         * modules/unictype/category-Pi-tests: New file.
52814         * modules/unictype/category-Po-tests: New file.
52815         * modules/unictype/category-Ps-tests: New file.
52816         * modules/unictype/category-S-tests: New file.
52817         * modules/unictype/category-Sc-tests: New file.
52818         * modules/unictype/category-Sk-tests: New file.
52819         * modules/unictype/category-Sm-tests: New file.
52820         * modules/unictype/category-So-tests: New file.
52821         * modules/unictype/category-Z-tests: New file.
52822         * modules/unictype/category-Zl-tests: New file.
52823         * modules/unictype/category-Zp-tests: New file.
52824         * modules/unictype/category-Zs-tests: New file.
52825         * modules/unictype/category-and-not-tests: New file.
52826         * modules/unictype/category-and-tests: New file.
52827         * modules/unictype/category-byname-tests: New file.
52828         * modules/unictype/category-name-tests: New file.
52829         * modules/unictype/category-none-tests: New file.
52830         * modules/unictype/category-of-tests: New file.
52831         * modules/unictype/category-or-tests: New file.
52832         * modules/unictype/category-test-withtable-tests: New file.
52833         * modules/unictype/combining-class-tests: New file.
52834         * modules/unictype/ctype-alnum-tests: New file.
52835         * modules/unictype/ctype-alpha-tests: New file.
52836         * modules/unictype/ctype-blank-tests: New file.
52837         * modules/unictype/ctype-cntrl-tests: New file.
52838         * modules/unictype/ctype-digit-tests: New file.
52839         * modules/unictype/ctype-graph-tests: New file.
52840         * modules/unictype/ctype-lower-tests: New file.
52841         * modules/unictype/ctype-print-tests: New file.
52842         * modules/unictype/ctype-punct-tests: New file.
52843         * modules/unictype/ctype-space-tests: New file.
52844         * modules/unictype/ctype-upper-tests: New file.
52845         * modules/unictype/ctype-xdigit-tests: New file.
52846         * modules/unictype/decimal-digit-tests: New file.
52847         * modules/unictype/digit-tests: New file.
52848         * modules/unictype/mirror-tests: New file.
52849         * modules/unictype/numeric-tests: New file.
52850         * modules/unictype/property-alphabetic-tests: New file.
52851         * modules/unictype/property-ascii-hex-digit-tests: New file.
52852         * modules/unictype/property-bidi-arabic-digit-tests: New file.
52853         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
52854         * modules/unictype/property-bidi-block-separator-tests: New file.
52855         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
52856         * modules/unictype/property-bidi-common-separator-tests: New file.
52857         * modules/unictype/property-bidi-control-tests: New file.
52858         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
52859         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
52860         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
52861         * modules/unictype/property-bidi-european-digit-tests: New file.
52862         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
52863         * modules/unictype/property-bidi-left-to-right-tests: New file.
52864         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
52865         * modules/unictype/property-bidi-other-neutral-tests: New file.
52866         * modules/unictype/property-bidi-pdf-tests: New file.
52867         * modules/unictype/property-bidi-segment-separator-tests: New file.
52868         * modules/unictype/property-bidi-whitespace-tests: New file.
52869         * modules/unictype/property-byname-tests: New file.
52870         * modules/unictype/property-combining-tests: New file.
52871         * modules/unictype/property-composite-tests: New file.
52872         * modules/unictype/property-currency-symbol-tests: New file.
52873         * modules/unictype/property-dash-tests: New file.
52874         * modules/unictype/property-decimal-digit-tests: New file.
52875         * modules/unictype/property-default-ignorable-code-point-tests: New file.
52876         * modules/unictype/property-deprecated-tests: New file.
52877         * modules/unictype/property-diacritic-tests: New file.
52878         * modules/unictype/property-extender-tests: New file.
52879         * modules/unictype/property-format-control-tests: New file.
52880         * modules/unictype/property-grapheme-base-tests: New file.
52881         * modules/unictype/property-grapheme-extend-tests: New file.
52882         * modules/unictype/property-grapheme-link-tests: New file.
52883         * modules/unictype/property-hex-digit-tests: New file.
52884         * modules/unictype/property-hyphen-tests: New file.
52885         * modules/unictype/property-id-continue-tests: New file.
52886         * modules/unictype/property-id-start-tests: New file.
52887         * modules/unictype/property-ideographic-tests: New file.
52888         * modules/unictype/property-ids-binary-operator-tests: New file.
52889         * modules/unictype/property-ids-trinary-operator-tests: New file.
52890         * modules/unictype/property-ignorable-control-tests: New file.
52891         * modules/unictype/property-iso-control-tests: New file.
52892         * modules/unictype/property-join-control-tests: New file.
52893         * modules/unictype/property-left-of-pair-tests: New file.
52894         * modules/unictype/property-line-separator-tests: New file.
52895         * modules/unictype/property-logical-order-exception-tests: New file.
52896         * modules/unictype/property-lowercase-tests: New file.
52897         * modules/unictype/property-math-tests: New file.
52898         * modules/unictype/property-non-break-tests: New file.
52899         * modules/unictype/property-not-a-character-tests: New file.
52900         * modules/unictype/property-numeric-tests: New file.
52901         * modules/unictype/property-other-alphabetic-tests: New file.
52902         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
52903         * modules/unictype/property-other-grapheme-extend-tests: New file.
52904         * modules/unictype/property-other-id-continue-tests: New file.
52905         * modules/unictype/property-other-id-start-tests: New file.
52906         * modules/unictype/property-other-lowercase-tests: New file.
52907         * modules/unictype/property-other-math-tests: New file.
52908         * modules/unictype/property-other-uppercase-tests: New file.
52909         * modules/unictype/property-paired-punctuation-tests: New file.
52910         * modules/unictype/property-paragraph-separator-tests: New file.
52911         * modules/unictype/property-pattern-syntax-tests: New file.
52912         * modules/unictype/property-pattern-white-space-tests: New file.
52913         * modules/unictype/property-private-use-tests: New file.
52914         * modules/unictype/property-punctuation-tests: New file.
52915         * modules/unictype/property-quotation-mark-tests: New file.
52916         * modules/unictype/property-radical-tests: New file.
52917         * modules/unictype/property-sentence-terminal-tests: New file.
52918         * modules/unictype/property-soft-dotted-tests: New file.
52919         * modules/unictype/property-space-tests: New file.
52920         * modules/unictype/property-terminal-punctuation-tests: New file.
52921         * modules/unictype/property-test-tests: New file.
52922         * modules/unictype/property-titlecase-tests: New file.
52923         * modules/unictype/property-unassigned-code-value-tests: New file.
52924         * modules/unictype/property-unified-ideograph-tests: New file.
52925         * modules/unictype/property-uppercase-tests: New file.
52926         * modules/unictype/property-variation-selector-tests: New file.
52927         * modules/unictype/property-white-space-tests: New file.
52928         * modules/unictype/property-xid-continue-tests: New file.
52929         * modules/unictype/property-xid-start-tests: New file.
52930         * modules/unictype/property-zero-width-tests: New file.
52931         * modules/unictype/scripts-tests: New file.
52932         * modules/unictype/syntax-c-ident-tests: New file.
52933         * modules/unictype/syntax-c-whitespace-tests: New file.
52934         * modules/unictype/syntax-java-ident-tests: New file.
52935         * modules/unictype/syntax-java-whitespace-tests: New file.
52936         * tests/unictype/test-bidi_byname.c: New file.
52937         * tests/unictype/test-bidi_name.c: New file.
52938         * tests/unictype/test-bidi_of.c: New file.
52939         * tests/unictype/test-bidi_test.c: New file.
52940         * tests/unictype/test-block_list.c: New file.
52941         * tests/unictype/test-block_of.c: New file.
52942         * tests/unictype/test-block_test.c: New file.
52943         * tests/unictype/test-categ_and.c: New file.
52944         * tests/unictype/test-categ_and_not.c: New file.
52945         * tests/unictype/test-categ_byname.c: New file.
52946         * tests/unictype/test-categ_name.c: New file.
52947         * tests/unictype/test-categ_none.c: New file.
52948         * tests/unictype/test-categ_of.c: New file.
52949         * tests/unictype/test-categ_or.c: New file.
52950         * tests/unictype/test-categ_test_withtable.c: New file.
52951         * tests/unictype/test-combining.c: New file.
52952         * tests/unictype/test-decdigit.c: New file.
52953         * tests/unictype/test-digit.c: New file.
52954         * tests/unictype/test-mirror.c: New file.
52955         * tests/unictype/test-numeric.c: New file.
52956         * tests/unictype/test-pr_byname.c: New file.
52957         * tests/unictype/test-pr_test.c: New file.
52958         * tests/unictype/test-predicate-part1.h: New file.
52959         * tests/unictype/test-predicate-part2.h: New file.
52960         * tests/unictype/test-scripts.c: New file.
52961         * tests/unictype/test-sy_c_ident.c: New file.
52962         * tests/unictype/test-sy_java_ident.c: New file.
52963
52964         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
52965         for Unicode 5.0.0.
52966         * tests/unictype/test-categ_Cc.c: Likewise.
52967         * tests/unictype/test-categ_Cf.c: Likewise.
52968         * tests/unictype/test-categ_Cn.c: Likewise.
52969         * tests/unictype/test-categ_Co.c: Likewise.
52970         * tests/unictype/test-categ_Cs.c: Likewise.
52971         * tests/unictype/test-categ_L.c: Likewise.
52972         * tests/unictype/test-categ_Ll.c: Likewise.
52973         * tests/unictype/test-categ_Lm.c: Likewise.
52974         * tests/unictype/test-categ_Lo.c: Likewise.
52975         * tests/unictype/test-categ_Lt.c: Likewise.
52976         * tests/unictype/test-categ_Lu.c: Likewise.
52977         * tests/unictype/test-categ_M.c: Likewise.
52978         * tests/unictype/test-categ_Mc.c: Likewise.
52979         * tests/unictype/test-categ_Me.c: Likewise.
52980         * tests/unictype/test-categ_Mn.c: Likewise.
52981         * tests/unictype/test-categ_N.c: Likewise.
52982         * tests/unictype/test-categ_Nd.c: Likewise.
52983         * tests/unictype/test-categ_Nl.c: Likewise.
52984         * tests/unictype/test-categ_No.c: Likewise.
52985         * tests/unictype/test-categ_P.c: Likewise.
52986         * tests/unictype/test-categ_Pc.c: Likewise.
52987         * tests/unictype/test-categ_Pd.c: Likewise.
52988         * tests/unictype/test-categ_Pe.c: Likewise.
52989         * tests/unictype/test-categ_Pf.c: Likewise.
52990         * tests/unictype/test-categ_Pi.c: Likewise.
52991         * tests/unictype/test-categ_Po.c: Likewise.
52992         * tests/unictype/test-categ_Ps.c: Likewise.
52993         * tests/unictype/test-categ_S.c: Likewise.
52994         * tests/unictype/test-categ_Sc.c: Likewise.
52995         * tests/unictype/test-categ_Sk.c: Likewise.
52996         * tests/unictype/test-categ_Sm.c: Likewise.
52997         * tests/unictype/test-categ_So.c: Likewise.
52998         * tests/unictype/test-categ_Z.c: Likewise.
52999         * tests/unictype/test-categ_Zl.c: Likewise.
53000         * tests/unictype/test-categ_Zp.c: Likewise.
53001         * tests/unictype/test-categ_Zs.c: Likewise.
53002         * tests/unictype/test-ctype_alnum.c: Likewise.
53003         * tests/unictype/test-ctype_alpha.c: Likewise.
53004         * tests/unictype/test-ctype_blank.c: Likewise.
53005         * tests/unictype/test-ctype_cntrl.c: Likewise.
53006         * tests/unictype/test-ctype_digit.c: Likewise.
53007         * tests/unictype/test-ctype_graph.c: Likewise.
53008         * tests/unictype/test-ctype_lower.c: Likewise.
53009         * tests/unictype/test-ctype_print.c: Likewise.
53010         * tests/unictype/test-ctype_punct.c: Likewise.
53011         * tests/unictype/test-ctype_space.c: Likewise.
53012         * tests/unictype/test-ctype_upper.c: Likewise.
53013         * tests/unictype/test-ctype_xdigit.c: Likewise.
53014         * tests/unictype/test-decdigit.h: Likewise.
53015         * tests/unictype/test-digit.h: Likewise.
53016         * tests/unictype/test-numeric.h: Likewise.
53017         * tests/unictype/test-pr_alphabetic.c: Likewise.
53018         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53019         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53020         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53021         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53022         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53023         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53024         * tests/unictype/test-pr_bidi_control.c: Likewise.
53025         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53026         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53027         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53028         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53029         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53030         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53031         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53032         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53033         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53034         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53035         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53036         * tests/unictype/test-pr_combining.c: Likewise.
53037         * tests/unictype/test-pr_composite.c: Likewise.
53038         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53039         * tests/unictype/test-pr_dash.c: Likewise.
53040         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53041         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53042         * tests/unictype/test-pr_deprecated.c: Likewise.
53043         * tests/unictype/test-pr_diacritic.c: Likewise.
53044         * tests/unictype/test-pr_extender.c: Likewise.
53045         * tests/unictype/test-pr_format_control.c: Likewise.
53046         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53047         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53048         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53049         * tests/unictype/test-pr_hex_digit.c: Likewise.
53050         * tests/unictype/test-pr_hyphen.c: Likewise.
53051         * tests/unictype/test-pr_id_continue.c: Likewise.
53052         * tests/unictype/test-pr_id_start.c: Likewise.
53053         * tests/unictype/test-pr_ideographic.c: Likewise.
53054         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53055         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53056         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53057         * tests/unictype/test-pr_iso_control.c: Likewise.
53058         * tests/unictype/test-pr_join_control.c: Likewise.
53059         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53060         * tests/unictype/test-pr_line_separator.c: Likewise.
53061         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53062         * tests/unictype/test-pr_lowercase.c: Likewise.
53063         * tests/unictype/test-pr_math.c: Likewise.
53064         * tests/unictype/test-pr_non_break.c: Likewise.
53065         * tests/unictype/test-pr_not_a_character.c: Likewise.
53066         * tests/unictype/test-pr_numeric.c: Likewise.
53067         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53068         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53069         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53070         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53071         * tests/unictype/test-pr_other_id_start.c: Likewise.
53072         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53073         * tests/unictype/test-pr_other_math.c: Likewise.
53074         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53075         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53076         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53077         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53078         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53079         * tests/unictype/test-pr_private_use.c: Likewise.
53080         * tests/unictype/test-pr_punctuation.c: Likewise.
53081         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53082         * tests/unictype/test-pr_radical.c: Likewise.
53083         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53084         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53085         * tests/unictype/test-pr_space.c: Likewise.
53086         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53087         * tests/unictype/test-pr_titlecase.c: Likewise.
53088         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53089         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53090         * tests/unictype/test-pr_uppercase.c: Likewise.
53091         * tests/unictype/test-pr_variation_selector.c: Likewise.
53092         * tests/unictype/test-pr_white_space.c: Likewise.
53093         * tests/unictype/test-pr_xid_continue.c: Likewise.
53094         * tests/unictype/test-pr_xid_start.c: Likewise.
53095         * tests/unictype/test-pr_zero_width.c: Likewise.
53096         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53097         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53098
53099 2007-11-12  Bruno Haible  <bruno@clisp.org>
53100
53101         Unicode character classification functions.
53102         * lib/unictype.h: New file.
53103         * modules/unictype/base: New file.
53104         * modules/unictype/category-L: New file.
53105         * modules/unictype/category-Lu: New file.
53106         * modules/unictype/category-Ll: New file.
53107         * modules/unictype/category-Lt: New file.
53108         * modules/unictype/category-Lm: New file.
53109         * modules/unictype/category-Lo: New file.
53110         * modules/unictype/category-M: New file.
53111         * modules/unictype/category-Mn: New file.
53112         * modules/unictype/category-Mc: New file.
53113         * modules/unictype/category-Me: New file.
53114         * modules/unictype/category-N: New file.
53115         * modules/unictype/category-Nd: New file.
53116         * modules/unictype/category-Nl: New file.
53117         * modules/unictype/category-No: New file.
53118         * modules/unictype/category-P: New file.
53119         * modules/unictype/category-Pc: New file.
53120         * modules/unictype/category-Pd: New file.
53121         * modules/unictype/category-Ps: New file.
53122         * modules/unictype/category-Pe: New file.
53123         * modules/unictype/category-Pi: New file.
53124         * modules/unictype/category-Pf: New file.
53125         * modules/unictype/category-Po: New file.
53126         * modules/unictype/category-S: New file.
53127         * modules/unictype/category-Sm: New file.
53128         * modules/unictype/category-Sc: New file.
53129         * modules/unictype/category-Sk: New file.
53130         * modules/unictype/category-So: New file.
53131         * modules/unictype/category-Z: New file.
53132         * modules/unictype/category-Zs: New file.
53133         * modules/unictype/category-Zl: New file.
53134         * modules/unictype/category-Zp: New file.
53135         * modules/unictype/category-C: New file.
53136         * modules/unictype/category-Cc: New file.
53137         * modules/unictype/category-Cf: New file.
53138         * modules/unictype/category-Cs: New file.
53139         * modules/unictype/category-Co: New file.
53140         * modules/unictype/category-Cn: New file.
53141         * modules/unictype/category-or: New file.
53142         * modules/unictype/category-of: New file.
53143         * modules/unictype/category-test: New file.
53144         * modules/unictype/category-test-withtable: New file.
53145         * modules/unictype/category-byname: New file.
53146         * modules/unictype/category-none: New file.
53147         * modules/unictype/category-and: New file.
53148         * modules/unictype/category-and-not: New file.
53149         * modules/unictype/category-name: New file.
53150         * modules/unictype/combining-class: New file.
53151         * modules/unictype/category-all: New file.
53152         * modules/unictype/bidicategory-all: New file.
53153         * modules/unictype/bidicategory-byname: New file.
53154         * modules/unictype/bidicategory-name: New file.
53155         * modules/unictype/bidicategory-of: New file.
53156         * modules/unictype/bidicategory-test: New file.
53157         * modules/unictype/decimal-digit: New file.
53158         * modules/unictype/digit: New file.
53159         * modules/unictype/numeric: New file.
53160         * modules/unictype/mirror: New file.
53161         * modules/unictype/property-white-space: New file.
53162         * modules/unictype/property-alphabetic: New file.
53163         * modules/unictype/property-other-alphabetic: New file.
53164         * modules/unictype/property-not-a-character: New file.
53165         * modules/unictype/property-default-ignorable-code-point: New file.
53166         * modules/unictype/property-other-default-ignorable-code-point: New
53167         file.
53168         * modules/unictype/property-deprecated: New file.
53169         * modules/unictype/property-logical-order-exception: New file.
53170         * modules/unictype/property-variation-selector: New file.
53171         * modules/unictype/property-private-use: New file.
53172         * modules/unictype/property-unassigned-code-value: New file.
53173         * modules/unictype/property-uppercase: New file.
53174         * modules/unictype/property-other-uppercase: New file.
53175         * modules/unictype/property-lowercase: New file.
53176         * modules/unictype/property-other-lowercase: New file.
53177         * modules/unictype/property-titlecase: New file.
53178         * modules/unictype/property-soft-dotted: New file.
53179         * modules/unictype/property-id-start: New file.
53180         * modules/unictype/property-other-id-start: New file.
53181         * modules/unictype/property-id-continue: New file.
53182         * modules/unictype/property-other-id-continue: New file.
53183         * modules/unictype/property-xid-start: New file.
53184         * modules/unictype/property-xid-continue: New file.
53185         * modules/unictype/property-pattern-white-space: New file.
53186         * modules/unictype/property-pattern-syntax: New file.
53187         * modules/unictype/property-join-control: New file.
53188         * modules/unictype/property-grapheme-base: New file.
53189         * modules/unictype/property-grapheme-extend: New file.
53190         * modules/unictype/property-other-grapheme-extend: New file.
53191         * modules/unictype/property-grapheme-link: New file.
53192         * modules/unictype/property-bidi-control: New file.
53193         * modules/unictype/property-bidi-left-to-right: New file.
53194         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53195         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53196         * modules/unictype/property-bidi-european-digit: New file.
53197         * modules/unictype/property-bidi-eur-num-separator: New file.
53198         * modules/unictype/property-bidi-eur-num-terminator: New file.
53199         * modules/unictype/property-bidi-arabic-digit: New file.
53200         * modules/unictype/property-bidi-common-separator: New file.
53201         * modules/unictype/property-bidi-block-separator: New file.
53202         * modules/unictype/property-bidi-segment-separator: New file.
53203         * modules/unictype/property-bidi-whitespace: New file.
53204         * modules/unictype/property-bidi-non-spacing-mark: New file.
53205         * modules/unictype/property-bidi-boundary-neutral: New file.
53206         * modules/unictype/property-bidi-pdf: New file.
53207         * modules/unictype/property-bidi-embedding-or-override: New file.
53208         * modules/unictype/property-bidi-other-neutral: New file.
53209         * modules/unictype/property-hex-digit: New file.
53210         * modules/unictype/property-ascii-hex-digit: New file.
53211         * modules/unictype/property-ideographic: New file.
53212         * modules/unictype/property-unified-ideograph: New file.
53213         * modules/unictype/property-radical: New file.
53214         * modules/unictype/property-ids-binary-operator: New file.
53215         * modules/unictype/property-ids-trinary-operator: New file.
53216         * modules/unictype/property-zero-width: New file.
53217         * modules/unictype/property-space: New file.
53218         * modules/unictype/property-non-break: New file.
53219         * modules/unictype/property-iso-control: New file.
53220         * modules/unictype/property-format-control: New file.
53221         * modules/unictype/property-dash: New file.
53222         * modules/unictype/property-hyphen: New file.
53223         * modules/unictype/property-punctuation: New file.
53224         * modules/unictype/property-line-separator: New file.
53225         * modules/unictype/property-paragraph-separator: New file.
53226         * modules/unictype/property-quotation-mark: New file.
53227         * modules/unictype/property-sentence-terminal: New file.
53228         * modules/unictype/property-terminal-punctuation: New file.
53229         * modules/unictype/property-currency-symbol: New file.
53230         * modules/unictype/property-math: New file.
53231         * modules/unictype/property-other-math: New file.
53232         * modules/unictype/property-paired-punctuation: New file.
53233         * modules/unictype/property-left-of-pair: New file.
53234         * modules/unictype/property-combining: New file.
53235         * modules/unictype/property-composite: New file.
53236         * modules/unictype/property-decimal-digit: New file.
53237         * modules/unictype/property-numeric: New file.
53238         * modules/unictype/property-diacritic: New file.
53239         * modules/unictype/property-extender: New file.
53240         * modules/unictype/property-ignorable-control: New file.
53241         * modules/unictype/property-test: New file.
53242         * modules/unictype/property-byname: New file.
53243         * modules/unictype/property-all: New file.
53244         * modules/unictype/scripts: New file.
53245         * modules/unictype/scripts-all: New file.
53246         * modules/unictype/block-of: New file.
53247         * modules/unictype/block-test: New file.
53248         * modules/unictype/block-list: New file.
53249         * modules/unictype/block-all: New file.
53250         * modules/unictype/syntax-c-whitespace: New file.
53251         * modules/unictype/syntax-java-whitespace: New file.
53252         * modules/unictype/syntax-c-ident: New file.
53253         * modules/unictype/syntax-java-ident: New file.
53254         * modules/unictype/ctype-alnum: New file.
53255         * modules/unictype/ctype-alpha: New file.
53256         * modules/unictype/ctype-cntrl: New file.
53257         * modules/unictype/ctype-digit: New file.
53258         * modules/unictype/ctype-graph: New file.
53259         * modules/unictype/ctype-lower: New file.
53260         * modules/unictype/ctype-print: New file.
53261         * modules/unictype/ctype-punct: New file.
53262         * modules/unictype/ctype-space: New file.
53263         * modules/unictype/ctype-upper: New file.
53264         * modules/unictype/ctype-xdigit: New file.
53265         * modules/unictype/ctype-blank: New file.
53266         * lib/unictype/bidi_byname.c: New file.
53267         * lib/unictype/bidi_name.c: New file.
53268         * lib/unictype/bidi_of.c: New file.
53269         * lib/unictype/bidi_test.c: New file.
53270         * lib/unictype/bitmap.h: New file.
53271         * lib/unictype/block_test.c: New file.
53272         * lib/unictype/blocks.c: New file.
53273         * lib/unictype/categ_C.c: New file.
53274         * lib/unictype/categ_Cc.c: New file.
53275         * lib/unictype/categ_Cf.c: New file.
53276         * lib/unictype/categ_Cn.c: New file.
53277         * lib/unictype/categ_Co.c: New file.
53278         * lib/unictype/categ_Cs.c: New file.
53279         * lib/unictype/categ_L.c: New file.
53280         * lib/unictype/categ_Ll.c: New file.
53281         * lib/unictype/categ_Lm.c: New file.
53282         * lib/unictype/categ_Lo.c: New file.
53283         * lib/unictype/categ_Lt.c: New file.
53284         * lib/unictype/categ_Lu.c: New file.
53285         * lib/unictype/categ_M.c: New file.
53286         * lib/unictype/categ_Mc.c: New file.
53287         * lib/unictype/categ_Me.c: New file.
53288         * lib/unictype/categ_Mn.c: New file.
53289         * lib/unictype/categ_N.c: New file.
53290         * lib/unictype/categ_Nd.c: New file.
53291         * lib/unictype/categ_Nl.c: New file.
53292         * lib/unictype/categ_No.c: New file.
53293         * lib/unictype/categ_P.c: New file.
53294         * lib/unictype/categ_Pc.c: New file.
53295         * lib/unictype/categ_Pd.c: New file.
53296         * lib/unictype/categ_Pe.c: New file.
53297         * lib/unictype/categ_Pf.c: New file.
53298         * lib/unictype/categ_Pi.c: New file.
53299         * lib/unictype/categ_Po.c: New file.
53300         * lib/unictype/categ_Ps.c: New file.
53301         * lib/unictype/categ_S.c: New file.
53302         * lib/unictype/categ_Sc.c: New file.
53303         * lib/unictype/categ_Sk.c: New file.
53304         * lib/unictype/categ_Sm.c: New file.
53305         * lib/unictype/categ_So.c: New file.
53306         * lib/unictype/categ_Z.c: New file.
53307         * lib/unictype/categ_Zl.c: New file.
53308         * lib/unictype/categ_Zp.c: New file.
53309         * lib/unictype/categ_Zs.c: New file.
53310         * lib/unictype/categ_and.c: New file.
53311         * lib/unictype/categ_and_not.c: New file.
53312         * lib/unictype/categ_byname.c: New file.
53313         * lib/unictype/categ_name.c: New file.
53314         * lib/unictype/categ_none.c: New file.
53315         * lib/unictype/categ_of.c: New file.
53316         * lib/unictype/categ_or.c: New file.
53317         * lib/unictype/categ_test.c: New file.
53318         * lib/unictype/combining.c: New file.
53319         * lib/unictype/ctype_alnum.c: New file.
53320         * lib/unictype/ctype_alpha.c: New file.
53321         * lib/unictype/ctype_blank.c: New file.
53322         * lib/unictype/ctype_cntrl.c: New file.
53323         * lib/unictype/ctype_digit.c: New file.
53324         * lib/unictype/ctype_graph.c: New file.
53325         * lib/unictype/ctype_lower.c: New file.
53326         * lib/unictype/ctype_print.c: New file.
53327         * lib/unictype/ctype_punct.c: New file.
53328         * lib/unictype/ctype_space.c: New file.
53329         * lib/unictype/ctype_upper.c: New file.
53330         * lib/unictype/ctype_xdigit.c: New file.
53331         * lib/unictype/decdigit.c: New file.
53332         * lib/unictype/digit.c: New file.
53333         * lib/unictype/identsyntaxmap.h: New file.
53334         * lib/unictype/mirror.c: New file.
53335         * lib/unictype/numeric.c: New file.
53336         * lib/unictype/pr_alphabetic.c: New file.
53337         * lib/unictype/pr_ascii_hex_digit.c: New file.
53338         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53339         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53340         * lib/unictype/pr_bidi_block_separator.c: New file.
53341         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53342         * lib/unictype/pr_bidi_common_separator.c: New file.
53343         * lib/unictype/pr_bidi_control.c: New file.
53344         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53345         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53346         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53347         * lib/unictype/pr_bidi_european_digit.c: New file.
53348         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53349         * lib/unictype/pr_bidi_left_to_right.c: New file.
53350         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53351         * lib/unictype/pr_bidi_other_neutral.c: New file.
53352         * lib/unictype/pr_bidi_pdf.c: New file.
53353         * lib/unictype/pr_bidi_segment_separator.c: New file.
53354         * lib/unictype/pr_bidi_whitespace.c: New file.
53355         * lib/unictype/pr_byname.c: New file.
53356         * lib/unictype/pr_byname.gperf: New file.
53357         * lib/unictype/pr_combining.c: New file.
53358         * lib/unictype/pr_composite.c: New file.
53359         * lib/unictype/pr_currency_symbol.c: New file.
53360         * lib/unictype/pr_dash.c: New file.
53361         * lib/unictype/pr_decimal_digit.c: New file.
53362         * lib/unictype/pr_default_ignorable_code_point.c: New file.
53363         * lib/unictype/pr_deprecated.c: New file.
53364         * lib/unictype/pr_diacritic.c: New file.
53365         * lib/unictype/pr_extender.c: New file.
53366         * lib/unictype/pr_format_control.c: New file.
53367         * lib/unictype/pr_grapheme_base.c: New file.
53368         * lib/unictype/pr_grapheme_extend.c: New file.
53369         * lib/unictype/pr_grapheme_link.c: New file.
53370         * lib/unictype/pr_hex_digit.c: New file.
53371         * lib/unictype/pr_hyphen.c: New file.
53372         * lib/unictype/pr_id_continue.c: New file.
53373         * lib/unictype/pr_id_start.c: New file.
53374         * lib/unictype/pr_ideographic.c: New file.
53375         * lib/unictype/pr_ids_binary_operator.c: New file.
53376         * lib/unictype/pr_ids_trinary_operator.c: New file.
53377         * lib/unictype/pr_ignorable_control.c: New file.
53378         * lib/unictype/pr_iso_control.c: New file.
53379         * lib/unictype/pr_join_control.c: New file.
53380         * lib/unictype/pr_left_of_pair.c: New file.
53381         * lib/unictype/pr_line_separator.c: New file.
53382         * lib/unictype/pr_logical_order_exception.c: New file.
53383         * lib/unictype/pr_lowercase.c: New file.
53384         * lib/unictype/pr_math.c: New file.
53385         * lib/unictype/pr_non_break.c: New file.
53386         * lib/unictype/pr_not_a_character.c: New file.
53387         * lib/unictype/pr_numeric.c: New file.
53388         * lib/unictype/pr_other_alphabetic.c: New file.
53389         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
53390         * lib/unictype/pr_other_grapheme_extend.c: New file.
53391         * lib/unictype/pr_other_id_continue.c: New file.
53392         * lib/unictype/pr_other_id_start.c: New file.
53393         * lib/unictype/pr_other_lowercase.c: New file.
53394         * lib/unictype/pr_other_math.c: New file.
53395         * lib/unictype/pr_other_uppercase.c: New file.
53396         * lib/unictype/pr_paired_punctuation.c: New file.
53397         * lib/unictype/pr_paragraph_separator.c: New file.
53398         * lib/unictype/pr_pattern_syntax.c: New file.
53399         * lib/unictype/pr_pattern_white_space.c: New file.
53400         * lib/unictype/pr_private_use.c: New file.
53401         * lib/unictype/pr_punctuation.c: New file.
53402         * lib/unictype/pr_quotation_mark.c: New file.
53403         * lib/unictype/pr_radical.c: New file.
53404         * lib/unictype/pr_sentence_terminal.c: New file.
53405         * lib/unictype/pr_soft_dotted.c: New file.
53406         * lib/unictype/pr_space.c: New file.
53407         * lib/unictype/pr_terminal_punctuation.c: New file.
53408         * lib/unictype/pr_test.c: New file.
53409         * lib/unictype/pr_titlecase.c: New file.
53410         * lib/unictype/pr_unassigned_code_value.c: New file.
53411         * lib/unictype/pr_unified_ideograph.c: New file.
53412         * lib/unictype/pr_uppercase.c: New file.
53413         * lib/unictype/pr_variation_selector.c: New file.
53414         * lib/unictype/pr_white_space.c: New file.
53415         * lib/unictype/pr_xid_continue.c: New file.
53416         * lib/unictype/pr_xid_start.c: New file.
53417         * lib/unictype/pr_zero_width.c: New file.
53418         * lib/unictype/scripts.c: New file.
53419         * lib/unictype/sy_c_ident.c: New file.
53420         * lib/unictype/sy_c_whitespace.c: New file.
53421         * lib/unictype/sy_java_ident.c: New file.
53422         * lib/unictype/sy_java_whitespace.c: New file.
53423
53424         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
53425         Unicode 5.0.0.
53426         * lib/unictype/blocks.h: Likewise.
53427         * lib/unictype/categ_C.h: Likewise.
53428         * lib/unictype/categ_Cc.h: Likewise.
53429         * lib/unictype/categ_Cf.h: Likewise.
53430         * lib/unictype/categ_Cn.h: Likewise.
53431         * lib/unictype/categ_Co.h: Likewise.
53432         * lib/unictype/categ_Cs.h: Likewise.
53433         * lib/unictype/categ_L.h: Likewise.
53434         * lib/unictype/categ_Ll.h: Likewise.
53435         * lib/unictype/categ_Lm.h: Likewise.
53436         * lib/unictype/categ_Lo.h: Likewise.
53437         * lib/unictype/categ_Lt.h: Likewise.
53438         * lib/unictype/categ_Lu.h: Likewise.
53439         * lib/unictype/categ_M.h: Likewise.
53440         * lib/unictype/categ_Mc.h: Likewise.
53441         * lib/unictype/categ_Me.h: Likewise.
53442         * lib/unictype/categ_Mn.h: Likewise.
53443         * lib/unictype/categ_N.h: Likewise.
53444         * lib/unictype/categ_Nd.h: Likewise.
53445         * lib/unictype/categ_Nl.h: Likewise.
53446         * lib/unictype/categ_No.h: Likewise.
53447         * lib/unictype/categ_P.h: Likewise.
53448         * lib/unictype/categ_Pc.h: Likewise.
53449         * lib/unictype/categ_Pd.h: Likewise.
53450         * lib/unictype/categ_Pe.h: Likewise.
53451         * lib/unictype/categ_Pf.h: Likewise.
53452         * lib/unictype/categ_Pi.h: Likewise.
53453         * lib/unictype/categ_Po.h: Likewise.
53454         * lib/unictype/categ_Ps.h: Likewise.
53455         * lib/unictype/categ_S.h: Likewise.
53456         * lib/unictype/categ_Sc.h: Likewise.
53457         * lib/unictype/categ_Sk.h: Likewise.
53458         * lib/unictype/categ_Sm.h: Likewise.
53459         * lib/unictype/categ_So.h: Likewise.
53460         * lib/unictype/categ_Z.h: Likewise.
53461         * lib/unictype/categ_Zl.h: Likewise.
53462         * lib/unictype/categ_Zp.h: Likewise.
53463         * lib/unictype/categ_Zs.h: Likewise.
53464         * lib/unictype/categ_of.h: Likewise.
53465         * lib/unictype/combining.h: Likewise.
53466         * lib/unictype/ctype_alnum.h: Likewise.
53467         * lib/unictype/ctype_alpha.h: Likewise.
53468         * lib/unictype/ctype_blank.h: Likewise.
53469         * lib/unictype/ctype_cntrl.h: Likewise.
53470         * lib/unictype/ctype_digit.h: Likewise.
53471         * lib/unictype/ctype_graph.h: Likewise.
53472         * lib/unictype/ctype_lower.h: Likewise.
53473         * lib/unictype/ctype_print.h: Likewise.
53474         * lib/unictype/ctype_punct.h: Likewise.
53475         * lib/unictype/ctype_space.h: Likewise.
53476         * lib/unictype/ctype_upper.h: Likewise.
53477         * lib/unictype/ctype_xdigit.h: Likewise.
53478         * lib/unictype/decdigit.h: Likewise.
53479         * lib/unictype/digit.h: Likewise.
53480         * lib/unictype/mirror.h: Likewise.
53481         * lib/unictype/numeric.h: Likewise.
53482         * lib/unictype/pr_alphabetic.h: Likewise.
53483         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53484         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
53485         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53486         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53487         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53488         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53489         * lib/unictype/pr_bidi_control.h: Likewise.
53490         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53491         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53492         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
53493         * lib/unictype/pr_bidi_european_digit.h: Likewise.
53494         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
53495         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
53496         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
53497         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
53498         * lib/unictype/pr_bidi_pdf.h: Likewise.
53499         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53500         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53501         * lib/unictype/pr_combining.h: Likewise.
53502         * lib/unictype/pr_composite.h: Likewise.
53503         * lib/unictype/pr_currency_symbol.h: Likewise.
53504         * lib/unictype/pr_dash.h: Likewise.
53505         * lib/unictype/pr_decimal_digit.h: Likewise.
53506         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53507         * lib/unictype/pr_deprecated.h: Likewise.
53508         * lib/unictype/pr_diacritic.h: Likewise.
53509         * lib/unictype/pr_extender.h: Likewise.
53510         * lib/unictype/pr_format_control.h: Likewise.
53511         * lib/unictype/pr_grapheme_base.h: Likewise.
53512         * lib/unictype/pr_grapheme_extend.h: Likewise.
53513         * lib/unictype/pr_grapheme_link.h: Likewise.
53514         * lib/unictype/pr_hex_digit.h: Likewise.
53515         * lib/unictype/pr_hyphen.h: Likewise.
53516         * lib/unictype/pr_id_continue.h: Likewise.
53517         * lib/unictype/pr_id_start.h: Likewise.
53518         * lib/unictype/pr_ideographic.h: Likewise.
53519         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53520         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53521         * lib/unictype/pr_ignorable_control.h: Likewise.
53522         * lib/unictype/pr_iso_control.h: Likewise.
53523         * lib/unictype/pr_join_control.h: Likewise.
53524         * lib/unictype/pr_left_of_pair.h: Likewise.
53525         * lib/unictype/pr_line_separator.h: Likewise.
53526         * lib/unictype/pr_logical_order_exception.h: Likewise.
53527         * lib/unictype/pr_lowercase.h: Likewise.
53528         * lib/unictype/pr_math.h: Likewise.
53529         * lib/unictype/pr_non_break.h: Likewise.
53530         * lib/unictype/pr_not_a_character.h: Likewise.
53531         * lib/unictype/pr_numeric.h: Likewise.
53532         * lib/unictype/pr_other_alphabetic.h: Likewise.
53533         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53534         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53535         * lib/unictype/pr_other_id_continue.h: Likewise.
53536         * lib/unictype/pr_other_id_start.h: Likewise.
53537         * lib/unictype/pr_other_lowercase.h: Likewise.
53538         * lib/unictype/pr_other_math.h: Likewise.
53539         * lib/unictype/pr_other_uppercase.h: Likewise.
53540         * lib/unictype/pr_paired_punctuation.h: Likewise.
53541         * lib/unictype/pr_paragraph_separator.h: Likewise.
53542         * lib/unictype/pr_pattern_syntax.h: Likewise.
53543         * lib/unictype/pr_pattern_white_space.h: Likewise.
53544         * lib/unictype/pr_private_use.h: Likewise.
53545         * lib/unictype/pr_punctuation.h: Likewise.
53546         * lib/unictype/pr_quotation_mark.h: Likewise.
53547         * lib/unictype/pr_radical.h: Likewise.
53548         * lib/unictype/pr_sentence_terminal.h: Likewise.
53549         * lib/unictype/pr_soft_dotted.h: Likewise.
53550         * lib/unictype/pr_space.h: Likewise.
53551         * lib/unictype/pr_terminal_punctuation.h: Likewise.
53552         * lib/unictype/pr_titlecase.h: Likewise.
53553         * lib/unictype/pr_unassigned_code_value.h: Likewise.
53554         * lib/unictype/pr_unified_ideograph.h: Likewise.
53555         * lib/unictype/pr_uppercase.h: Likewise.
53556         * lib/unictype/pr_variation_selector.h: Likewise.
53557         * lib/unictype/pr_white_space.h: Likewise.
53558         * lib/unictype/pr_xid_continue.h: Likewise.
53559         * lib/unictype/pr_xid_start.h: Likewise.
53560         * lib/unictype/pr_zero_width.h: Likewise.
53561         * lib/unictype/scripts.h: Likewise.
53562         * lib/unictype/scripts_byname.gperf: Likewise.
53563         * lib/unictype/sy_c_ident.h: Likewise.
53564         * lib/unictype/sy_c_whitespace.h: Likewise.
53565         * lib/unictype/sy_java_ident.h: Likewise.
53566         * lib/unictype/sy_java_whitespace.h: Likewise.
53567
53568         * lib/unictype/Makefile: New file.
53569         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
53570         glibc.
53571         * lib/unictype/3level.h: New file, copied from glibc.
53572         * lib/unictype/3levelbit.h: New file.
53573
53574 2007-11-11  Bruno Haible  <bruno@clisp.org>
53575
53576         * modules/gperf: New file.
53577         * modules/iconv_open (Depends-on): Add it.
53578         (Makefile.am): Remove the GPERF definition.
53579
53580 2007-11-11  Bruno Haible  <bruno@clisp.org>
53581
53582         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
53583         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
53584
53585 2007-11-11  Bruno Haible  <bruno@clisp.org>
53586
53587         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
53588         (usage): Remove function.
53589
53590 2007-11-11  Bruno Haible  <bruno@clisp.org>
53591
53592         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
53593         gl_FUNC_CEILF_LIBS.
53594         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
53595         gl_FUNC_CEIL_LIBS.
53596         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
53597         gl_FUNC_CEILL_LIBS.
53598         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
53599         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
53600         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
53601
53602 2007-11-11  Bruno Haible  <bruno@clisp.org>
53603
53604         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
53605         roundf were declared but do not exist on functions.
53606         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
53607         roundl were declared but do not exist on functions.
53608         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
53609         HAVE_FLOORL_AND_CEILL, respectively.
53610         Needed for Sun C on Solaris 10.
53611
53612 2007-11-11  Bruno Haible  <bruno@clisp.org>
53613
53614         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
53615         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
53616         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
53617         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
53618         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
53619         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
53620         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
53621         HAVE_DECL_ROUNDF.
53622         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
53623         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
53624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
53625         of HAVE_DECL_ROUND*.
53626         * modules/math (Makefile.am): Update.
53627
53628 2007-11-10  Bruno Haible  <bruno@clisp.org>
53629
53630         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
53631         ptrdiff_t as m4/intl.m4.
53632
53633 2007-11-10  Jim Meyering  <meyering@redhat.com>
53634
53635         Avoid link failure for the argmatch test.
53636         * tests/test-argmatch.c (usage): Define function to avoid a link
53637         failure: argmatch_die requires a usage function.
53638
53639 2007-11-09  Bruno Haible  <bruno@clisp.org>
53640
53641         * doc/functions/snprintf.texi: Mention BeOS deficiency.
53642         * doc/functions/vsnprintf.texi: Likewise.
53643         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
53644         with a size argument < 2.
53645
53646 2007-11-09  Bruno Haible  <bruno@clisp.org>
53647
53648         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
53649         buffer. Fixes an inefficiency introduced on 2007-11-03.
53650
53651 2007-11-09  Bruno Haible  <bruno@clisp.org>
53652
53653         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
53654         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
53655
53656 2007-11-08  Jim Meyering  <meyering@redhat.com>
53657
53658         Change cache variable name prefix "jm_" to "gl_" everywhere.
53659         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
53660         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
53661         * m4/uptime.m4: s/gl_/jm_/
53662
53663 2007-11-07  Bruno Haible  <bruno@clisp.org>
53664
53665         Update to GNU gettext 0.17.
53666         * m4/intl.m4: Update to GNU gettext 0.17.
53667         * m4/po.m4: Likewise.
53668         * modules/gettext (Files): Remove m4/ulonglong.m4.
53669         (configure.ac): Require gettext infrastructure from version 0.17.
53670
53671 2007-11-06  Bruno Haible  <bruno@clisp.org>
53672
53673         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
53674         symbolic values are not defined in a public header.
53675         * lib/freadable.c (freadable) [QNX]: Likewise.
53676         * lib/freadahead.c (freadahead) [QNX]: Likewise.
53677         * lib/freading.c (freading) [QNX]: Likewise.
53678         * lib/fseterr.c (fseterr) [QNX]: Likewise.
53679         * lib/fwritable.c (fwritable) [QNX]: Likewise.
53680         * lib/fwriting.c (fwriting) [QNX]: Likewise.
53681         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
53682         Reported by Alain Magloire.
53683
53684         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
53685
53686 2007-11-05  Bruno Haible  <bruno@clisp.org>
53687
53688         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
53689         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
53690         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
53691         Reported by Eric Blake.
53692
53693 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53694             Bruno Haible  <bruno@clisp.org>
53695
53696         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
53697         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
53698         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
53699         (malloc): Undefine also before including <stdlib.h>.
53700         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
53701         Needed on OSF/1 4.0.
53702
53703 2007-11-05  Jim Meyering  <meyering@redhat.com>
53704
53705         git-version-gen: sync from coreutils.
53706         * build-aux/git-version-gen: Add comments.
53707         Change the first '-' to '.' in the snapshot version string,
53708         e.g., 6.9-377-08144 -> 6.9.377-08144
53709         Remove first parameter.
53710         Don't declare a version "-dirty" merely because a time
53711         stamp has changed.
53712
53713 2007-11-04  Bruno Haible  <bruno@clisp.org>
53714
53715         * lib/lock.h: Protect all macro definitions containing an 'if'
53716         statement through a "do { ... } while (0)".
53717         * lib/tls.h: Likewise.
53718
53719 2007-11-04  Bruno Haible  <bruno@clisp.org>
53720
53721         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
53722
53723 2007-11-04  Bruno Haible  <bruno@clisp.org>
53724
53725         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
53726         * modules/fprintf-posix (Depends-on): Add nocrash.
53727         * modules/snprintf-posix (Depends-on): Likewise.
53728         * modules/sprintf-posix (Depends-on): Likewise.
53729         * modules/vasnprintf-posix (Depends-on): Likewise.
53730         * modules/vasprintf-posix (Depends-on): Likewise.
53731         * modules/vfprintf-posix (Depends-on): Likewise.
53732         * modules/vsnprintf-posix (Depends-on): Likewise.
53733         * modules/vsprintf-posix (Depends-on): Likewise.
53734         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53735         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53736         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53737         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53738         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53739         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53740         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53741
53742 2007-11-04  Bruno Haible  <bruno@clisp.org>
53743
53744         * modules/nocrash: New file.
53745         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
53746         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
53747
53748 2007-11-04  Bruno Haible  <bruno@clisp.org>
53749
53750         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
53751         precision handling.
53752         * tests/test-vasprintf-posix.c (test_function): Likewise.
53753         * tests/test-snprintf-posix.h (test_function): Likewise.
53754         * tests/test-sprintf-posix.h (test_function): Likewise.
53755
53756         Fix *printf behaviour for large precisions on mingw and BeOS.
53757         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
53758         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
53759         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
53760         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53761         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53762         gl_PRINTF_PRECISION and test its result. Invoke
53763         gl_PREREQ_VASNPRINTF_PRECISION.
53764         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53765         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53766         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53767         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53768         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53769         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53770         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53771         * doc/functions/fprintf.texi: Update.
53772         * doc/functions/printf.texi: Update.
53773         * doc/functions/snprintf.texi: Update.
53774         * doc/functions/sprintf.texi: Update.
53775         * doc/functions/vfprintf.texi: Update.
53776         * doc/functions/vprintf.texi: Update.
53777         * doc/functions/vsnprintf.texi: Update.
53778         * doc/functions/vsprintf.texi: Update.
53779
53780 2007-11-04  Bruno Haible  <bruno@clisp.org>
53781
53782         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
53783
53784 2007-11-04  Bruno Haible  <bruno@clisp.org>
53785
53786         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
53787         Reported by Sylvain Beucler <beuc@gnu.org>.
53788
53789 2007-11-03  Bruno Haible  <bruno@clisp.org>
53790
53791         * tests/test-fprintf-posix2.sh: New file.
53792         * tests/test-fprintf-posix2.c: New file.
53793         * modules/fprintf-posix-tests (Files): Add them.
53794         (TESTS): Add test-fprintf-posix2.sh.
53795         (configure.ac): Check for getrlimit and setrlimit.
53796         (check_PROGRAMS): Add test-fprintf-posix2.
53797
53798         * tests/test-printf-posix2.sh: New file.
53799         * tests/test-printf-posix2.c: New file.
53800         * modules/printf-posix-tests (Files): Add them.
53801         (TESTS): Add test-printf-posix2.sh.
53802         (configure.ac): Check for getrlimit and setrlimit.
53803         (check_PROGRAMS): Add test-printf-posix2.
53804
53805         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
53806         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
53807         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
53808         (decode_double): New function, copied from decode_long_double.
53809         (scale10_round_decimal_decoded): New function, extracted from
53810         scale10_round_decimal_long_double.
53811         (scale10_round_decimal_long_double): Use it.
53812         (scale10_round_decimal_double): New function.
53813         (floorlog10): New function.
53814         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
53815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
53816         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53817         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53818         gl_PRINTF_ENOMEM and test its result. Invoke
53819         gl_PREREQ_VASNPRINTF_ENOMEM.
53820         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53821         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53822         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53823         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53824         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53825         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53826         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53827         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
53828         * modules/snprintf-posix (Depends-on): Likewise.
53829         * modules/sprintf-posix (Depends-on): Likewise.
53830         * modules/vasnprintf-posix (Depends-on): Likewise.
53831         * modules/vasprintf-posix (Depends-on): Likewise.
53832         * modules/vfprintf-posix (Depends-on): Likewise.
53833         * modules/vsnprintf-posix (Depends-on): Likewise.
53834         * modules/vsprintf-posix (Depends-on): Likewise.
53835         * doc/functions/fprintf.texi: Update.
53836         * doc/functions/printf.texi: Update.
53837         * doc/functions/snprintf.texi: Update.
53838         * doc/functions/sprintf.texi: Update.
53839         * doc/functions/vfprintf.texi: Update.
53840         * doc/functions/vprintf.texi: Update.
53841         * doc/functions/vsnprintf.texi: Update.
53842         * doc/functions/vsprintf.texi: Update.
53843
53844 2007-11-03  Bruno Haible  <bruno@clisp.org>
53845
53846         * modules/frexp-nolibm-tests: New file.
53847
53848         * modules/frexp-nolibm: New file.
53849         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
53850
53851 2007-11-03  Bruno Haible  <bruno@clisp.org>
53852
53853         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
53854         value is C99 compliant.
53855         Needed for OSF/1 5.1.
53856
53857 2007-11-03  Bruno Haible  <bruno@clisp.org>
53858
53859         Fix out-of-memory handling of vasnprintf.
53860         * lib/printf-parse.c: Include <errno.h>.
53861         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
53862         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
53863         is already set.
53864
53865 2007-11-02  Eric Blake  <ebb9@byu.net>
53866
53867         Fix tests on cygwin.
53868         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
53869
53870 2007-11-01  Bruno Haible  <bruno@clisp.org>
53871
53872         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
53873         warning.
53874         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
53875         needed for POSIX compatibility.
53876
53877 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53878
53879         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
53880         for compatibility with GNU.
53881
53882 2007-11-01  Bruno Haible  <bruno@clisp.org>
53883
53884         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
53885         (putenv): Renamed from rpl_putenv. Change argument type from
53886         'const char *' to 'char *'.
53887         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
53888         of defining putenv in config.h, just set REPLACE_PUTENV.
53889         * modules/putenv (Depends-on): Add stdlib.
53890         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53891         (Include): Use <stdlib.h>.
53892         * lib/stdlib.in.h (putenv): New declaration.
53893         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
53894         REPLACE_PUTENV.
53895         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
53896         REPLACE_PUTENV.
53897         Needed for MacOS X 10.5.0.
53898         Reported by Peter O'Gorman <peter@pogma.com>.
53899
53900 2007-11-01  Jim Meyering  <meyering@redhat.com>
53901
53902         Treat an empty date string exactly like "0".
53903         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
53904         if the remaining date string (to be parsed) is empty, use "0".
53905         Reported by Mischa Molhoek and discussed in this thread:
53906         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
53907
53908 2007-10-31  Bruno Haible  <bruno@clisp.org>
53909
53910         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
53911         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
53912         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
53913         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
53914         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
53915         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
53916
53917 2007-10-31  Bruno Haible  <bruno@clisp.org>
53918
53919         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
53920         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
53921         (AC_TYPE_LONG_LONG_INT): Use it.
53922         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
53923         it as well.
53924         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
53925         to m4/longlong.m4.
53926         * modules/stdint (Files): Remove m4/ulonglong.m4.
53927         * modules/strtoull (Files): Use m4/longlong.m4 instead of
53928         m4/ulonglong.m4.
53929         * modules/strtoumax (Files): Likewise.
53930
53931 2007-10-30  Bruno Haible  <bruno@clisp.org>
53932
53933         * modules/xvasprintf-posix: New file.
53934         Suggested by Eric Blake.
53935
53936 2007-10-30  Bruno Haible  <bruno@clisp.org>
53937
53938         * modules/xprintf-posix-tests: New file.
53939         * tests/test-xprintf-posix.sh: New file.
53940         * tests/test-xprintf-posix.c: New file.
53941         * tests/test-xfprintf-posix.c: New file.
53942
53943         * modules/xprintf-posix: New file.
53944
53945 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53946
53947         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
53948         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
53949         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
53950
53951 2007-10-29  Bruno Haible  <bruno@clisp.org>
53952
53953         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
53954         contain the special marker '_cv_'.
53955         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
53956         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
53957         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
53958         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
53959         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
53960         Reported by Ralf Wildenhues.
53961
53962 2007-10-29  Bruno Haible  <bruno@clisp.org>
53963
53964         * gnulib-tool (func_import): When --lgpl is not specified, set
53965         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
53966         GPLv3.
53967         Reported by Simon Josefsson.
53968
53969 2007-10-28  Bruno Haible  <bruno@clisp.org>
53970
53971         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
53972         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
53973         HAVE_DECL_ISFINITE.
53974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53975         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
53976         HAVE_DECL_ISFINITE.
53977
53978 2007-10-28  Bruno Haible  <bruno@clisp.org>
53979
53980         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
53981         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
53982
53983 2007-10-28  Bruno Haible  <bruno@clisp.org>
53984
53985         Fix link errors with Sun C 5.0 on Solaris 10.
53986         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
53987         function is declared but not present in the compiler's libm.
53988         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53989         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
53990         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
53991         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
53992         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
53993         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
53994         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
53995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53996         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
53997         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
53998         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
53999         HAVE_DECL_FLOORL.
54000
54001 2007-10-28  Bruno Haible  <bruno@clisp.org>
54002
54003         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54004         gl_FUNC_FLOORL. Cache the result.
54005         (gl_FUNC_FLOORL): Use it.
54006         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54007         gl_FUNC_CEILL. Cache the result.
54008         (gl_FUNC_CEILL): Use it.
54009
54010         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54011         gl_FUNC_FLOOR. Cache the result.
54012         (gl_FUNC_FLOOR): Use it.
54013         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54014         gl_FUNC_CEIL. Cache the result.
54015         (gl_FUNC_CEIL): Use it.
54016
54017         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54018         gl_FUNC_FLOORF. Cache the result.
54019         (gl_FUNC_FLOORF): Use it.
54020         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54021         gl_FUNC_CEILF. Cache the result.
54022         (gl_FUNC_CEILF): Use it.
54023
54024 2007-10-28  Bruno Haible  <bruno@clisp.org>
54025
54026         * gnulib-tool: Allow specifying the LGPL version number through
54027         --lgpl=2 or --lgpl=3.
54028         (func_usage): Document --lgpl with argument.
54029         Handle --lgpl=... arguments.
54030         (func_import): Recognize also gl_LGPL calls with an argument. When
54031         --lgpl=2 is used and the module's license is just LGPL, report an
54032         error. Set sed_transform_lib_file according to the lgpl variable. In
54033         the generated files, use --lgpl or gl_LGPL invocations with argument,
54034         if necessary.
54035         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54036         an LGPv2+ license.
54037         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54038         gl_LGPL macro.
54039
54040 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54041             Bruno Haible  <bruno@clisp.org>
54042
54043         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54044         (u16_uctomb_aux): Likewise.
54045         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54046         !HAVE_INLINE.
54047         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54048
54049 2007-10-28  Bruno Haible  <bruno@clisp.org>
54050
54051         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54052         Invoke AM_GETTEXT_OPTION if it exists.
54053         * modules/vasprintf: Likewise.
54054         * modules/verror: Likewise.
54055         * modules/xprintf: Likewise.
54056         * modules/xvasprintf: Likewise.
54057
54058 2007-10-27  Ben Pfaff  <blp@gnu.org>
54059
54060         * lib/math.in.h: Define isfinite macro and prototypes for
54061         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54062         implementations.
54063         * m4/math_h.m4: New substitutions for isfinite module.
54064         * lib/isfinite.c: New file.
54065         * m4/isfinite.m4: New file.
54066         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54067         * modules/isfinite: New file.
54068         * modules/isfinite-tests: New file.
54069         * tests/tests-isfinite.c: New file.
54070         * doc/functions/isfinite.texi: Mention isfinite module.
54071         * MODULES.html.sh: Mention new module.
54072
54073 2007-10-27  Ben Pfaff  <blp@gnu.org>
54074
54075         Ralf Wildenhues reported that Tru64 4.0D declares the round
54076         functions but does not have definitions.
54077         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54078         cannot be found in any library, set the output variable to
54079         "missing" instead of "".
54080         * m4/round.m4: Also use our substitute if we cannot find round in
54081         any library, even if it is declared.
54082         * m4/roundf.m4: Likewise for roundf.
54083         * m4/roundl.m4: Likewise for roundl.
54084         * lib/math.in.h: Undefine roundf, round, roundl before defining
54085         their replacements, to allow for hypothetical systems where these
54086         may be defined as macros but not available in libraries.
54087
54088 2007-10-27  Bruno Haible  <bruno@clisp.org>
54089
54090         * doc/gnulib.texi: Invoke @firstparagraphindent.
54091         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54092         changes in gnulib.
54093         (Source changes): New section.
54094
54095 2007-10-26  Bruno Haible  <bruno@clisp.org>
54096
54097         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54098         borrowed from autoconf.
54099
54100 2007-10-26  Bruno Haible  <bruno@clisp.org>
54101
54102         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54103         strerror returned the empty string. Needed on HP-UX 11.00.
54104
54105 2007-10-24  Micah Cowan  <micah@cowan.name>
54106
54107         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54108         * build-aux/bootstrap: Remove support for now-unnecessary option,
54109         --cvs-user, and envvars CVS_USER, CVS_RSH.
54110
54111 2007-10-24  Jim Meyering  <meyering@redhat.com>
54112
54113         Avoid diagnostics from sha1sum when there is no cached checksum.
54114         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54115         if the po.s1 file hasn't been created yet.
54116
54117         * build-aux/bootstrap: Sync from coreutils:
54118         2007-10-24  Jim Meyering  <meyering@redhat.com>
54119         Get gnulib from the git repository, not from an obsolete cvs one.
54120         * build-aux/bootstrap: Suggestion from Micah Cowan.
54121         2007-10-04  Jim Meyering  <jim@meyering.net>
54122         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54123         (update_po_files): Work also when there are no .po files in po/.
54124
54125 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54126
54127         * README: Append ".git" to git and cg examples.
54128         Problem reported by Benoit Sigoure.
54129
54130 2007-10-23  Micah Cowan  <micah@cowan.name>
54131
54132         * users.txt: Add wget.
54133
54134 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54135
54136         Fix linking of some unistdio tests on FreeBSD.
54137         * modules/unistdio/u16-vsnprintf-tests
54138         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54139         * modules/unistdio/u16-vsprintf-tests
54140         (test_u16_vsnprintf1_LDADD): Likewise.
54141         * modules/unistdio/u32-vsnprintf-tests
54142         (test_u32_vsnprintf1_LDADD): Likewise.
54143         * modules/unistdio/u32-vsprintf-tests
54144         (test_u32_vsprintf1_LDADD): Likewise.
54145         * modules/unistdio/u8-vsnprintf-tests
54146         (test_u8_vsnprintf1_LDADD): Likewise.
54147         * modules/unistdio/u8-vsprintf-tests
54148         (test_u8_vsprintf1_LDADD): Likewise.
54149         * modules/unistdio/ulc-vsnprintf-tests
54150         (test_ulc_vsnprintf1_LDADD): Likewise.
54151         * modules/unistdio/ulc-vsprintf-tests
54152         (test_ulc_vsprintf1_LDADD): Likewise.
54153
54154         Fix linking of some uniconv tests on FreeBSD.
54155         * modules/uniconv/u16-conv-from-enc-tests
54156         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54157         * modules/uniconv/u16-conv-to-enc-tests
54158         (test_u16_conv_to_enc_LDADD): Likewise.
54159         * modules/uniconv/u16-strconv-from-enc-tests
54160         (test_u16_strconv_from_enc_LDADD): Likewise.
54161         * modules/uniconv/u16-strconv-to-enc-tests
54162         (test_u16_strconv_to_enc_LDADD): Likewise.
54163         * modules/uniconv/u32-conv-from-enc-tests
54164         (test_u32_conv_from_enc_LDADD): Likewise.
54165         * modules/uniconv/u32-conv-to-enc-tests
54166         (test_u32_conv_to_enc_LDADD): Likewise.
54167         * modules/uniconv/u32-strconv-from-enc-tests
54168         (test_u32_strconv_from_enc_LDADD): Likewise.
54169         * modules/uniconv/u32-strconv-to-enc-tests
54170         (test_u32_strconv_to_enc_LDADD): Likewise.
54171         * modules/uniconv/u8-conv-from-enc-tests
54172         (test_u8_conv_from_enc_LDADD): Likewise.
54173         * modules/uniconv/u8-conv-to-enc-tests
54174         (test_u8_conv_to_enc_LDADD): Likewise.
54175         * modules/uniconv/u8-strconv-from-enc-tests
54176         (test_u8_strconv_from_enc_LDADD): Likewise.
54177         * modules/uniconv/u8-strconv-to-enc-tests
54178         (test_u8_strconv_to_enc_LDADD): Likewise.
54179
54180 2007-10-22  Bruno Haible  <bruno@clisp.org>
54181
54182         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54183         size.
54184
54185 2007-10-22  Eric Blake  <ebb9@byu.net>
54186
54187         Tweak x*printf documentation.
54188         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54189         variable name and comments.
54190         Suggested by Bruno Haible.
54191
54192 2007-10-22  Bruno Haible  <bruno@clisp.org>
54193
54194         * lib/acl.c (copy_acl): Fix file name in comment.
54195
54196 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54197
54198         Fix Tru64 problem with stdbool.h.
54199         * lib/stdbool.in.h (false, true):
54200         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54201         Don't declare as an enum in this situation; it runs afoul of Tru64.
54202         Problem reported by Steven M. Schweda in
54203         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54204
54205 2007-10-22  Eric Blake  <ebb9@byu.net>
54206
54207         Also wrap vf?printf.
54208         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54209         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54210         (xvprintf, xvfprintf): New functions.
54211
54212 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54213
54214         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54215         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54216
54217         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54218         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54219
54220 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54221
54222         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54223         by Bruno Haible.
54224
54225 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54226
54227         * lib/getloadavg.c
54228         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54229         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54230
54231         * tests/test-i-ring.c: Work for C89.
54232
54233 2007-10-22  Bruno Haible  <bruno@clisp.org>
54234
54235         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54236         -1u, in preprocessor expression, so that we don't test for the bug
54237         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54238         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54239
54240 2007-10-22  Eric Blake  <ebb9@byu.net>
54241
54242         * tests/test-yesno.sh: Silence stderr during test.
54243
54244 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54245
54246         * modules/crypto/gc-camellia: New file.
54247
54248         * m4/gc-camellia.m4: New file.
54249
54250         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54251
54252         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54253
54254 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54255
54256         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54257         --help to stdout.  Reported by sms@antinode.org (Steven
54258         M. Schweda).
54259
54260 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54261
54262         * users.txt: Fix link to libksba.
54263
54264 2007-10-21  Ben Pfaff  <blp@gnu.org>
54265
54266         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54267         round.c roundf implementation that depends on floorf and ceilf to
54268         be tested unconditionally.
54269
54270 2007-10-21  Ben Pfaff  <blp@gnu.org>
54271
54272         * m4/check-libm-func.m4: Removed.
54273         * m4/check-math-lib.m4: New file.
54274         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54275         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54276         definition and lack of AC_LIBOBJ([roundf]).
54277         * m4/roundl.m4: Ditto, and similarly for roundl.
54278         * modules/round: Reference new m4 file.
54279         * modules/roundf: Ditto.
54280         * modules/roundl: Ditto.
54281         * tests/test-round2.c (main): Use ROUND instead of round.
54282         Bug report from Bruno Haible.
54283
54284 2007-10-21  Bruno Haible  <bruno@clisp.org>
54285
54286         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54287         context.
54288
54289 2007-10-21  Bruno Haible  <bruno@clisp.org>
54290
54291         * tests/test-wcwidth.c (main): Allow negative result for some control
54292         characters.
54293
54294         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54295         Needed on OSF/1 5.1.
54296
54297 2007-10-21  Bruno Haible  <bruno@clisp.org>
54298
54299         * tests/test-floorf1.c: Include isnanf.h.
54300         (main): Use isnanf() instead of isnan().
54301         * tests/test-ceilf1.c: Include isnanf.h.
54302         (main): Use isnanf() instead of isnan().
54303         * tests/test-truncf1.c: Include isnanf.h.
54304         (main): Use isnanf() instead of isnan().
54305         * tests/test-roundf1.c: Include isnanf.h.
54306         (main): Use isnanf() instead of isnan().
54307
54308 2007-10-21  Eric Blake  <ebb9@byu.net>
54309
54310         * users.txt: Update URL for m4.
54311
54312 2007-10-21  Bruno Haible  <bruno@clisp.org>
54313
54314         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54315
54316 2007-10-21  Bruno Haible  <bruno@clisp.org>
54317
54318         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54319         Git's management files if the CVS files are not present.
54320
54321 2007-10-20  Bruno Haible  <bruno@clisp.org>
54322
54323         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54324         gcc-3.4.x.
54325
54326 2007-10-20  Ben Pfaff  <blp@gnu.org>
54327
54328         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54329         implementations.
54330         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54331         * lib/round.c: New file.
54332         * lib/roundf.c: New file.
54333         * lib/roundl.c: New file.
54334         * m4/round.m4: New file.
54335         * m4/roundf.m4: New file.
54336         * m4/roundl.m4: New file.
54337         * m4/check-libm-func-m4: New file.
54338         * modules/math: Replace round, roundf, roundl related @VARS@ in
54339         math.in.h.
54340         * modules/round: New file.
54341         * modules/round-tests: New file.
54342         * modules/roundf: New file.
54343         * modules/roundf-tests: New file.
54344         * modules/roundl: New file.
54345         * modules/roundl-tests: New file.
54346         * tests/test-round1.c: New file.
54347         * tests/test-round2.c: New file.
54348         * tests/test-roundf1.c: New file.
54349         * tests/test-roundf2.c: New file.
54350         * tests/test-roundl.c: New file.
54351         * doc/functions/round.texi: Mention round module.
54352         * doc/functions/roundf.texi: Mention roundf module.
54353         * doc/functions/roundl.texi: Mention roundl module.
54354         * MODULES.html.sh: Mention new modules.
54355         Thanks to Bruno Haible for suggestions.
54356
54357 2007-10-20  Jim Meyering  <meyering@redhat.com>
54358
54359         * lib/xprintf.c: Include <config.h> unconditionally.
54360
54361         Change xprintf's license to GPL.
54362         * modules/xprintf (License): s/LGPL/GPL/, since this module
54363         depends on modules (exit and exitfail) which are GPL.
54364         Suggestion from Bruno Haible.
54365
54366         xprintf fixes.
54367         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
54368         Use a clearer diagnostic.
54369         Patch from Bruno Haible.
54370
54371 2007-10-20  Bruno Haible  <bruno@clisp.org>
54372
54373         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
54374         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
54375         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54376
54377 2007-10-20  Bruno Haible  <bruno@clisp.org>
54378
54379         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
54380         precision in the comparison result > x - 1 or similar.
54381         * tests/test-ceilf2.c (correct_result_p): Likewise.
54382         * tests/test-truncf2.c (correct_result_p): Likewise.
54383         * tests/test-trunc2.c (correct_result_p): Likewise.
54384         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54385
54386 2007-10-20  Bruno Haible  <bruno@clisp.org>
54387
54388         * modules/ceil: New file.
54389         * m4/ceil.m4: New file.
54390         * doc/functions/ceil.texi: Mention the 'ceil' module.
54391
54392 2007-10-20  Bruno Haible  <bruno@clisp.org>
54393
54394         * modules/floor: New file.
54395         * m4/floor.m4: New file.
54396         * doc/functions/floor.texi: Mention the 'floor' module.
54397
54398 2007-10-20  Bruno Haible  <bruno@clisp.org>
54399
54400         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
54401         of %a.
54402         * modules/floorf-tests (Depends-on): Likewise.
54403         * modules/truncf-tests (Depends-on): Likewise.
54404         * modules/trunc-tests (Depends-on): Likewise.
54405         Reported by Ben Pfaff.
54406
54407 2007-10-19  Jim Meyering  <meyering@redhat.com>
54408
54409         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
54410         Don't bother testing specific errno values.  Just test ferror.
54411
54412         New module: xprintf
54413         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
54414
54415 2007-10-19  Bruno Haible  <bruno@clisp.org>
54416
54417         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
54418         syntax.
54419         * modules/javaexec (Makefile.am): Likewise.
54420         * modules/relocatable-prog (Makefile.am): Likewise.
54421         Suggested by Jim Meyering.
54422
54423 2007-10-18  Bruno Haible  <bruno@clisp.org>
54424
54425         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
54426         Reported by Jim Meyering.
54427
54428 2007-10-18  Eric Blake  <ebb9@byu.net>
54429
54430         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
54431
54432 2007-10-18  Bruno Haible  <bruno@clisp.org>
54433
54434         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
54435         the format string into writable memory. Needed in Fortify conditions.
54436
54437 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
54438             Bruno Haible  <bruno@clisp.org>
54439
54440         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
54441         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
54442         * modules/trim (Depends-on): Add mbchar.
54443         (configure.ac): Add gl_FUNC_MBRTOWC.
54444         (Makefile.am): Augment lib_SOURCES.
54445
54446 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54447
54448         Modify glob.c to use fstatat and dirfd, to simplify it.
54449         Suggested by Eric Blake.
54450         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
54451         Don't include <stdbool.h>; not used.
54452         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54453         (link_exists_p): Simplify implementation, since we can now assume
54454         dirfd and fstatat.
54455         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54456
54457 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54458
54459         * gnulib-tool (func_get_dependencies): Fix sed script to
54460         match only tests.
54461
54462 2007-10-17  Bruno Haible  <bruno@clisp.org>
54463
54464         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54465         allow locale names without encoding suffix.
54466         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54467         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54468
54469 2007-10-16  Bruno Haible  <bruno@clisp.org>
54470
54471         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54472         * lib/getgroups.c (getgroups): Likewise.
54473         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54474
54475 2007-10-16  Bruno Haible  <bruno@clisp.org>
54476
54477         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54478         * modules/malloc-posix (License): Likewise.
54479         * modules/realloc-posix (License): Likewise.
54480         * modules/calloc-posix (License): Likewise.
54481         * modules/intprops (License): Change from GPL to LGPL, with
54482         Paul Eggert's approval.
54483
54484 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54485
54486         Merge glibc changes into lib/glob.c.
54487
54488         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
54489         2007-10-15 04:59:03 UTC.  Here are the changes:
54490
54491         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
54492
54493         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
54494
54495         * lib/glob.c: Add some branch prediction throughout.
54496
54497         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
54498
54499         [BZ #5103]
54500         * lib/glob.c (glob): Recognize patterns starting \/.
54501
54502         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
54503
54504         [BZ #3996]
54505         * lib/glob.c (attribute_hidden): Define if not defined.
54506         (glob): Unescape dirname, filename or username when needed and not
54507         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
54508         is NULL.  Handle unescaped [ in pattern without closing ].
54509         Don't pass GLOB_CHECK down to recursive glob for directories.
54510         (__glob_pattern_type): New function.
54511         (__glob_pattern_p): Implement using __glob_pattern_type.
54512         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
54513         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
54514         Remove unreachable code.
54515
54516         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
54517
54518         * lib/glob.c (glob_in_dir): Add some comments and asserts to
54519         explain why there are no leaks.
54520
54521         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
54522
54523         [BZ #3253]
54524         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54525         time, rather allocate increasingly bigger arrays of pointers, if
54526         possible with alloca, if too large with malloc.
54527
54528 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54529
54530         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
54531         Problem reported by H.Merijn Brand in
54532         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
54533         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
54534         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54535
54536 2007-10-15  Bruno Haible  <bruno@clisp.org>
54537
54538         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
54539         with explicit rpl_ prefix.
54540         * lib/fopen.c (fopen): Likewise.
54541         * lib/freopen.c (freopen): Likewise.
54542         * lib/iconv.c (iconv): Likewise.
54543         * lib/iconv_close.c (iconv_close): Likewise.
54544
54545 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54546
54547         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
54548
54549 2007-10-15  Bruno Haible  <bruno@clisp.org>
54550
54551         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
54552         <stddef.h> instead of <stdlib.h> since we only need NULL.
54553         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54554
54555 2007-10-15  Bruno Haible  <bruno@clisp.org>
54556
54557         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
54558         Replace paragraph talking about LIBOBJS.
54559         Reported by Colin Watson <cjwatson@debian.org>.
54560
54561 2007-10-15  Bruno Haible  <bruno@clisp.org>
54562
54563         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
54564         <stdlib.h> before using NULL.
54565
54566 2007-10-15  Simon Josefsson  <simon@josefsson.org>
54567
54568         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
54569         Reported by Albert Chin <china@thewrittenword.com>.
54570
54571 2007-10-14  Bruno Haible  <bruno@clisp.org>
54572
54573         * modules/iconv_open-utf-tests: New file.
54574         * tests/test-iconv-utf.c: New file.
54575
54576         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
54577         * modules/iconv_open-utf: New file.
54578         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
54579         (iconv, iconv_close): New declarations.
54580         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
54581         be defined.
54582         (iconv_open): Add special handling of conversion between UTF-8 and
54583         UTF-{16,32}{BE,LE}.
54584         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
54585         * lib/iconv_close.c: New file.
54586         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
54587         gl_FUNC_ICONV_OPEN.
54588         (gl_FUNC_ICONV_OPEN): Use it.
54589         (gl_FUNC_ICONV_OPEN_UTF): New macro.
54590         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
54591         and REPLACE_ICONV_UTF.
54592         * modules/iconv_open (Depends-on): Add c-strcase.
54593         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
54594         ICONV_CONST.
54595         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
54596
54597 2007-10-13  Albert Chin  <china@thewrittenword.com>
54598             Bruno Haible  <bruno@clisp.org>
54599
54600         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
54601         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
54602
54603 2007-10-13  Bruno Haible  <bruno@clisp.org>
54604
54605         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
54606         defined, use the ISO C99 inline semantics.
54607         * lib/argp.h (ARGP_EI): Likewise.
54608
54609 2007-10-13  Bruno Haible  <bruno@clisp.org>
54610
54611         Handle 'inline' change in gcc 4.3.0.
54612         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
54613         argp_fmtstream_write, argp_fmtstream_set_lmargin,
54614         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
54615         argp_fmtstream_point): Disable 'extern' declaration if the function
54616         definition is going to be provided inline.
54617         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
54618         semantics, not the ISO C99 inline semantics.
54619         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
54620         'extern' declaration if the function definition is going to be provided
54621         inline.
54622         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
54623         the GNU C inline semantics, not the ISO C99 inline semantics. With
54624         GCC 4.2, avoid a warning.
54625
54626 2007-10-13  Bruno Haible  <bruno@clisp.org>
54627
54628         * lib/freading.h (freading): Enable the use of __freading for
54629         glibc >= 2.7.
54630         * lib/freading.c (freading): Likewise.
54631
54632 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54633
54634         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
54635         "warning: C99 inline functions are not supported; using GNU89".
54636
54637 2007-10-12  Bruno Haible  <bruno@clisp.org>
54638
54639         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
54640         of 2.
54641         * tests/test-ceilf2.c: New file.
54642         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
54643
54644         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
54645         * modules/ceilf-tests: Update.
54646
54647 2007-10-12  Bruno Haible  <bruno@clisp.org>
54648
54649         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
54650         of 2.
54651         * tests/test-floorf2.c: New file.
54652         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
54653
54654         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
54655         * modules/floorf-tests: Update.
54656
54657 2007-10-12  Bruno Haible  <bruno@clisp.org>
54658
54659         * tests/test-trunc2.c: New file.
54660         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
54661
54662         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
54663         * modules/trunc-tests: Update.
54664
54665 2007-10-12  Bruno Haible  <bruno@clisp.org>
54666
54667         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
54668         of 2.
54669         * tests/test-truncf2.c: New file.
54670         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
54671
54672         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
54673         * modules/truncf-tests: Update.
54674
54675 2007-10-11  Eric Blake  <ebb9@byu.net>
54676
54677         Don't claim strerror is broken on Interix.
54678         * doc/functions/strerror.texi (strerror): Known broken systems are
54679         now Solaris 8, and not Interix.
54680         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
54681         Interix on cross-compile.
54682         Reported by Martin Koeppe in
54683         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
54684
54685 2007-10-11  Bruno Haible  <bruno@clisp.org>
54686
54687         * modules/i-ring-tests: New file.
54688         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
54689         instead of assert.
54690
54691 2007-10-11  Bruno Haible  <bruno@clisp.org>
54692
54693         * modules/filenamecat-tests: New file.
54694         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
54695         * lib/filenamecat.c: Remove test code.
54696
54697 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54698
54699         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
54700
54701         * lib/strerror.c: Include <string.h> always, to test interface,
54702         and to remove the need for the dummy.
54703         Include intprops.h to compute width instead of doing it ourselves
54704         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
54705         (strerror): Define it to return NULL if there's no system strerror.
54706         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
54707         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
54708         ancient pre-strerror Unix systems well any more.  Saying "unknown
54709         system error" is enough.
54710         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
54711         simpler strerror.c implementation.
54712         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
54713         Simplify the tests to reflect the simpler strerror implementation.
54714         * modules/strerror (Depends-on): Add intprops.
54715
54716 2007-10-09  Eric Blake  <ebb9@byu.net>
54717
54718         Silence test-fpending.
54719         * modules/fpending-tests (Files): Add wrapper script.
54720         * tests/test-fpending.sh: New file.
54721
54722 2007-10-09  Bruno Haible  <bruno@clisp.org>
54723
54724         * MODULES.html.sh (func_module): Don't create a hyperlink for
54725         function names like 'printf_frexp'.
54726         (Misc): Add crc, memxor.
54727         (Characteristics of floating types): New section.
54728         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
54729         isnanf-nolibm, signbit, trunc, truncf, truncl.
54730         (Enhancements for ISO C 99 functions): New subsection Input/output.
54731         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
54732         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
54733         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
54734         (Compatibility checks for POSIX:2001 functions): Add clock-time.
54735         (Enhancements for POSIX:2001 functions): Add chdir-long.
54736         (File system functions): Add areadlink, chdir-safer, read-file.
54737         Remove cycle-check.
54738         (File system as inode set): New section.
54739         (Date and time): Add gethrxtime.
54740         (Multithreading): Add openmp.
54741         (Internationalization functions): Add localename.
54742         (Unicode string functions): Add unistr/u*-mbsnlen.
54743         (Support for maintaining and releasing projects): Add git-version-gen.
54744         (Lone files): Remove directories.
54745
54746 2007-10-08  Ben Pfaff  <blp@gnu.org>
54747
54748         * lib/xmalloca.h: Fix typo in comment.
54749
54750 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54751
54752         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
54753         when avoiding problems with integer overflow.  Use a portable test
54754         instead.
54755
54756 2007-10-08  Simon Josefsson  <simon@josefsson.org>
54757
54758         * modules/dummy (License): Change to LGPLv2+.
54759         * modules/float (License): Likewise
54760         * modules/realloc (License): Likewise
54761         * modules/stdlib (License): Likewise
54762
54763 2007-10-07  Bruno Haible  <bruno@clisp.org>
54764
54765         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
54766         * floor.c (TWO_MANT_DIG): Likewise.
54767         * ceil.c (TWO_MANT_DIG): Likewise.
54768         Reported by Ben Pfaff.
54769
54770 2007-10-07  Bruno Haible  <bruno@clisp.org>
54771
54772         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
54773         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
54774         * lib/frexp.c (FUNC): Likewise.
54775         * lib/printf-frexp.h (printf_frexp): Likewise.
54776         * lib/printf-frexpl.h (printf_frexpl): Likewise.
54777         * lib/printf-frexp.c (FUNC): Likewise.
54778         Suggested by Jim Meyering.
54779
54780 2007-10-07  Jim Meyering  <meyering@redhat.com>
54781
54782         Make xnanosleep's integer overflow test more robust.
54783         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
54784         so that gcc-4.3.0 doesn't optimize away this test for overflow.
54785
54786 2007-10-07  Bruno Haible  <bruno@clisp.org>
54787
54788         * NEWS: Mention the license change.
54789
54790         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
54791         abbreviations in the modules files.
54792
54793         Change copyright notice from GPLv2+ to GPLv3+.
54794         * README: Change copyright notice.
54795         * MODULES.html.sh: Likewise.
54796         * build-aux/bootstrap.conf: Likewise.
54797         * build-aux/config.libpath: Likewise.
54798         * build-aux/csharpcomp.sh.in: Likewise.
54799         * build-aux/csharpexec.sh.in: Likewise.
54800         * build-aux/install-reloc: Likewise.
54801         * build-aux/javacomp.sh.in: Likewise.
54802         * build-aux/javaexec.sh.in: Likewise.
54803         * build-aux/ldd.sh.in: Likewise.
54804         * build-aux/reloc-ldflags: Likewise.
54805         * build-aux/relocatable.sh.in: Likewise.
54806         * build-aux/x-to-1.in: Likewise.
54807         * check-module: Likewise.
54808         * config/srclistvars.sh: Likewise.
54809         * gnulib-tool: Likewise.
54810         * lib/acl-internal.h: Likewise.
54811         * lib/acl.c: Likewise.
54812         * lib/acl.h: Likewise.
54813         * lib/acl_entries.c: Likewise.
54814         * lib/areadlink-with-size.c: Likewise.
54815         * lib/areadlink.c: Likewise.
54816         * lib/areadlink.h: Likewise.
54817         * lib/argmatch.c: Likewise.
54818         * lib/argmatch.h: Likewise.
54819         * lib/argp-ba.c: Likewise.
54820         * lib/argp-eexst.c: Likewise.
54821         * lib/argp-fmtstream.c: Likewise.
54822         * lib/argp-fmtstream.h: Likewise.
54823         * lib/argp-fs-xinl.c: Likewise.
54824         * lib/argp-help.c: Likewise.
54825         * lib/argp-namefrob.h: Likewise.
54826         * lib/argp-parse.c: Likewise.
54827         * lib/argp-pin.c: Likewise.
54828         * lib/argp-pv.c: Likewise.
54829         * lib/argp-pvh.c: Likewise.
54830         * lib/argp-xinl.c: Likewise.
54831         * lib/argp.h: Likewise.
54832         * lib/at-func.c: Likewise.
54833         * lib/atanl.c: Likewise.
54834         * lib/backupfile.c: Likewise.
54835         * lib/backupfile.h: Likewise.
54836         * lib/basename.c: Likewise.
54837         * lib/binary-io.h: Likewise.
54838         * lib/byteswap.in.h: Likewise.
54839         * lib/c-stack.c: Likewise.
54840         * lib/c-stack.h: Likewise.
54841         * lib/c-strcasestr.c: Likewise.
54842         * lib/c-strcasestr.h: Likewise.
54843         * lib/c-strstr.c: Likewise.
54844         * lib/c-strstr.h: Likewise.
54845         * lib/c-strtod.c: Likewise.
54846         * lib/calloc.c: Likewise.
54847         * lib/canon-host.c: Likewise.
54848         * lib/canon-host.h: Likewise.
54849         * lib/canonicalize-lgpl.c: Likewise.
54850         * lib/canonicalize.c: Likewise.
54851         * lib/canonicalize.h: Likewise.
54852         * lib/ceil.c: Likewise.
54853         * lib/ceilf.c: Likewise.
54854         * lib/ceill.c: Likewise.
54855         * lib/chdir-long.c: Likewise.
54856         * lib/chdir-long.h: Likewise.
54857         * lib/chdir-safer.c: Likewise.
54858         * lib/chdir-safer.h: Likewise.
54859         * lib/chown.c: Likewise.
54860         * lib/classpath.c: Likewise.
54861         * lib/classpath.h: Likewise.
54862         * lib/clean-temp.c: Likewise.
54863         * lib/clean-temp.h: Likewise.
54864         * lib/cloexec.c: Likewise.
54865         * lib/close-stream.c: Likewise.
54866         * lib/closein.c: Likewise.
54867         * lib/closein.h: Likewise.
54868         * lib/closeout.c: Likewise.
54869         * lib/closeout.h: Likewise.
54870         * lib/concat-filename.c: Likewise.
54871         * lib/copy-file.c: Likewise.
54872         * lib/copy-file.h: Likewise.
54873         * lib/count-one-bits.h: Likewise.
54874         * lib/crc.c: Likewise.
54875         * lib/crc.h: Likewise.
54876         * lib/creat-safer.c: Likewise.
54877         * lib/csharpcomp.c: Likewise.
54878         * lib/csharpcomp.h: Likewise.
54879         * lib/csharpexec.c: Likewise.
54880         * lib/csharpexec.h: Likewise.
54881         * lib/cycle-check.c: Likewise.
54882         * lib/cycle-check.h: Likewise.
54883         * lib/diacrit.c: Likewise.
54884         * lib/diacrit.h: Likewise.
54885         * lib/diffseq.h: Likewise.
54886         * lib/dirchownmod.c: Likewise.
54887         * lib/dirent.in.h: Likewise.
54888         * lib/dirfd.c: Likewise.
54889         * lib/dirfd.h: Likewise.
54890         * lib/dirname.c: Likewise.
54891         * lib/dirname.h: Likewise.
54892         * lib/dummy.c: Likewise.
54893         * lib/dup-safer.c: Likewise.
54894         * lib/dup2.c: Likewise.
54895         * lib/eealloc.h: Likewise.
54896         * lib/error.c: Likewise.
54897         * lib/error.h: Likewise.
54898         * lib/euidaccess.c: Likewise.
54899         * lib/exclude.c: Likewise.
54900         * lib/exclude.h: Likewise.
54901         * lib/execute.c: Likewise.
54902         * lib/execute.h: Likewise.
54903         * lib/exitfail.c: Likewise.
54904         * lib/exitfail.h: Likewise.
54905         * lib/expl.c: Likewise.
54906         * lib/fatal-signal.c: Likewise.
54907         * lib/fatal-signal.h: Likewise.
54908         * lib/fbufmode.c: Likewise.
54909         * lib/fbufmode.h: Likewise.
54910         * lib/fchdir.c: Likewise.
54911         * lib/fchmodat.c: Likewise.
54912         * lib/fchownat.c: Likewise.
54913         * lib/fcntl--.h: Likewise.
54914         * lib/fcntl-safer.h: Likewise.
54915         * lib/fcntl.in.h: Likewise.
54916         * lib/fd-safer.c: Likewise.
54917         * lib/fflush.c: Likewise.
54918         * lib/file-has-acl.c: Likewise.
54919         * lib/file-set.c: Likewise.
54920         * lib/file-type.c: Likewise.
54921         * lib/file-type.h: Likewise.
54922         * lib/fileblocks.c: Likewise.
54923         * lib/filemode.c: Likewise.
54924         * lib/filemode.h: Likewise.
54925         * lib/filename.h: Likewise.
54926         * lib/filenamecat.c: Likewise.
54927         * lib/filenamecat.h: Likewise.
54928         * lib/findprog.c: Likewise.
54929         * lib/findprog.h: Likewise.
54930         * lib/float.in.h: Likewise.
54931         * lib/floor.c: Likewise.
54932         * lib/floorf.c: Likewise.
54933         * lib/floorl.c: Likewise.
54934         * lib/fopen-safer.c: Likewise.
54935         * lib/fopen.c: Likewise.
54936         * lib/fpending.c: Likewise.
54937         * lib/fpending.h: Likewise.
54938         * lib/fprintf.c: Likewise.
54939         * lib/fprintftime.h: Likewise.
54940         * lib/fpucw.h: Likewise.
54941         * lib/fpurge.c: Likewise.
54942         * lib/fpurge.h: Likewise.
54943         * lib/freadable.c: Likewise.
54944         * lib/freadable.h: Likewise.
54945         * lib/freadahead.c: Likewise.
54946         * lib/freadahead.h: Likewise.
54947         * lib/freading.c: Likewise.
54948         * lib/freading.h: Likewise.
54949         * lib/free.c: Likewise.
54950         * lib/freopen.c: Likewise.
54951         * lib/frexp.c: Likewise.
54952         * lib/frexpl.c: Likewise.
54953         * lib/fseek.c: Likewise.
54954         * lib/fseterr.c: Likewise.
54955         * lib/fseterr.h: Likewise.
54956         * lib/fstatat.c: Likewise.
54957         * lib/fstrcmp.c: Likewise.
54958         * lib/fstrcmp.h: Likewise.
54959         * lib/fsusage.c: Likewise.
54960         * lib/fsusage.h: Likewise.
54961         * lib/ftell.c: Likewise.
54962         * lib/ftello.c: Likewise.
54963         * lib/fts-cycle.c: Likewise.
54964         * lib/fts.c: Likewise.
54965         * lib/fts_.h: Likewise.
54966         * lib/full-read.c: Likewise.
54967         * lib/full-read.h: Likewise.
54968         * lib/full-write.c: Likewise.
54969         * lib/full-write.h: Likewise.
54970         * lib/fwritable.c: Likewise.
54971         * lib/fwritable.h: Likewise.
54972         * lib/fwriteerror.c: Likewise.
54973         * lib/fwriteerror.h: Likewise.
54974         * lib/fwriting.c: Likewise.
54975         * lib/fwriting.h: Likewise.
54976         * lib/gcd.c: Likewise.
54977         * lib/gcd.h: Likewise.
54978         * lib/getcwd.c: Likewise.
54979         * lib/getdate.h: Likewise.
54980         * lib/getdate.y: Likewise.
54981         * lib/getdomainname.c: Likewise.
54982         * lib/getdomainname.h: Likewise.
54983         * lib/getgroups.c: Likewise.
54984         * lib/gethostname.c: Likewise.
54985         * lib/gethrxtime.c: Likewise.
54986         * lib/gethrxtime.h: Likewise.
54987         * lib/getloadavg.c: Likewise.
54988         * lib/getndelim2.c: Likewise.
54989         * lib/getndelim2.h: Likewise.
54990         * lib/getnline.c: Likewise.
54991         * lib/getnline.h: Likewise.
54992         * lib/getopt.c: Likewise.
54993         * lib/getopt.in.h: Likewise.
54994         * lib/getopt1.c: Likewise.
54995         * lib/getopt_int.h: Likewise.
54996         * lib/getpagesize.h: Likewise.
54997         * lib/getsubopt.c: Likewise.
54998         * lib/gettime.c: Likewise.
54999         * lib/getugroups.c: Likewise.
55000         * lib/getugroups.h: Likewise.
55001         * lib/getusershell.c: Likewise.
55002         * lib/gl_anyavltree_list1.h: Likewise.
55003         * lib/gl_anyavltree_list2.h: Likewise.
55004         * lib/gl_anyhash_list1.h: Likewise.
55005         * lib/gl_anyhash_list2.h: Likewise.
55006         * lib/gl_anylinked_list1.h: Likewise.
55007         * lib/gl_anylinked_list2.h: Likewise.
55008         * lib/gl_anyrbtree_list1.h: Likewise.
55009         * lib/gl_anyrbtree_list2.h: Likewise.
55010         * lib/gl_anytree_list1.h: Likewise.
55011         * lib/gl_anytree_list2.h: Likewise.
55012         * lib/gl_anytree_oset.h: Likewise.
55013         * lib/gl_anytreehash_list1.h: Likewise.
55014         * lib/gl_anytreehash_list2.h: Likewise.
55015         * lib/gl_array_list.c: Likewise.
55016         * lib/gl_array_list.h: Likewise.
55017         * lib/gl_array_oset.c: Likewise.
55018         * lib/gl_array_oset.h: Likewise.
55019         * lib/gl_avltree_list.c: Likewise.
55020         * lib/gl_avltree_list.h: Likewise.
55021         * lib/gl_avltree_oset.c: Likewise.
55022         * lib/gl_avltree_oset.h: Likewise.
55023         * lib/gl_avltreehash_list.c: Likewise.
55024         * lib/gl_avltreehash_list.h: Likewise.
55025         * lib/gl_carray_list.c: Likewise.
55026         * lib/gl_carray_list.h: Likewise.
55027         * lib/gl_linked_list.c: Likewise.
55028         * lib/gl_linked_list.h: Likewise.
55029         * lib/gl_linkedhash_list.c: Likewise.
55030         * lib/gl_linkedhash_list.h: Likewise.
55031         * lib/gl_list.c: Likewise.
55032         * lib/gl_list.h: Likewise.
55033         * lib/gl_oset.c: Likewise.
55034         * lib/gl_oset.h: Likewise.
55035         * lib/gl_rbtree_list.c: Likewise.
55036         * lib/gl_rbtree_list.h: Likewise.
55037         * lib/gl_rbtree_oset.c: Likewise.
55038         * lib/gl_rbtree_oset.h: Likewise.
55039         * lib/gl_rbtreehash_list.c: Likewise.
55040         * lib/gl_rbtreehash_list.h: Likewise.
55041         * lib/gl_sublist.c: Likewise.
55042         * lib/gl_sublist.h: Likewise.
55043         * lib/group-member.c: Likewise.
55044         * lib/group-member.h: Likewise.
55045         * lib/hard-locale.c: Likewise.
55046         * lib/hard-locale.h: Likewise.
55047         * lib/hash-pjw.c: Likewise.
55048         * lib/hash-pjw.h: Likewise.
55049         * lib/hash-triple.c: Likewise.
55050         * lib/hash.c: Likewise.
55051         * lib/hash.h: Likewise.
55052         * lib/human.c: Likewise.
55053         * lib/human.h: Likewise.
55054         * lib/i-ring.c: Likewise.
55055         * lib/i-ring.h: Likewise.
55056         * lib/idcache.c: Likewise.
55057         * lib/imaxabs.c: Likewise.
55058         * lib/imaxdiv.c: Likewise.
55059         * lib/inet_pton.c: Likewise.
55060         * lib/inet_pton.h: Likewise.
55061         * lib/intprops.h: Likewise.
55062         * lib/inttostr.c: Likewise.
55063         * lib/inttostr.h: Likewise.
55064         * lib/inttypes.in.h: Likewise.
55065         * lib/isapipe.c: Likewise.
55066         * lib/isdir.c: Likewise.
55067         * lib/isnan.c: Likewise.
55068         * lib/isnan.h: Likewise.
55069         * lib/isnanf.c: Likewise.
55070         * lib/isnanf.h: Likewise.
55071         * lib/isnanl-nolibm.h: Likewise.
55072         * lib/isnanl.c: Likewise.
55073         * lib/isnanl.h: Likewise.
55074         * lib/javacomp.c: Likewise.
55075         * lib/javacomp.h: Likewise.
55076         * lib/javaexec.c: Likewise.
55077         * lib/javaexec.h: Likewise.
55078         * lib/javaversion.c: Likewise.
55079         * lib/javaversion.h: Likewise.
55080         * lib/javaversion.java: Likewise.
55081         * lib/lbrkprop.h: Likewise.
55082         * lib/lchmod.h: Likewise.
55083         * lib/lchown.c: Likewise.
55084         * lib/ldexpl.c: Likewise.
55085         * lib/linebreak.c: Likewise.
55086         * lib/linebreak.h: Likewise.
55087         * lib/linebuffer.c: Likewise.
55088         * lib/linebuffer.h: Likewise.
55089         * lib/locale.in.h: Likewise.
55090         * lib/logl.c: Likewise.
55091         * lib/long-options.c: Likewise.
55092         * lib/long-options.h: Likewise.
55093         * lib/lstat.c: Likewise.
55094         * lib/lstat.h: Likewise.
55095         * lib/math.in.h: Likewise.
55096         * lib/mbchar.c: Likewise.
55097         * lib/mbchar.h: Likewise.
55098         * lib/mbfile.h: Likewise.
55099         * lib/mbiter.h: Likewise.
55100         * lib/mbscasecmp.c: Likewise.
55101         * lib/mbscasestr.c: Likewise.
55102         * lib/mbschr.c: Likewise.
55103         * lib/mbscspn.c: Likewise.
55104         * lib/mbslen.c: Likewise.
55105         * lib/mbsncasecmp.c: Likewise.
55106         * lib/mbsnlen.c: Likewise.
55107         * lib/mbspbrk.c: Likewise.
55108         * lib/mbspcasecmp.c: Likewise.
55109         * lib/mbsrchr.c: Likewise.
55110         * lib/mbssep.c: Likewise.
55111         * lib/mbsspn.c: Likewise.
55112         * lib/mbsstr.c: Likewise.
55113         * lib/mbstok_r.c: Likewise.
55114         * lib/mbswidth.c: Likewise.
55115         * lib/mbswidth.h: Likewise.
55116         * lib/mbuiter.h: Likewise.
55117         * lib/memcasecmp.c: Likewise.
55118         * lib/memcasecmp.h: Likewise.
55119         * lib/memchr.c: Likewise.
55120         * lib/memcmp.c: Likewise.
55121         * lib/memcoll.c: Likewise.
55122         * lib/memcoll.h: Likewise.
55123         * lib/memcpy.c: Likewise.
55124         * lib/memrchr.c: Likewise.
55125         * lib/mkancesdirs.c: Likewise.
55126         * lib/mkdir-p.c: Likewise.
55127         * lib/mkdir-p.h: Likewise.
55128         * lib/mkdir.c: Likewise.
55129         * lib/mkdirat.c: Likewise.
55130         * lib/mkdtemp.c: Likewise.
55131         * lib/mkstemp-safer.c: Likewise.
55132         * lib/mkstemp.c: Likewise.
55133         * lib/modechange.c: Likewise.
55134         * lib/modechange.h: Likewise.
55135         * lib/mountlist.c: Likewise.
55136         * lib/mountlist.h: Likewise.
55137         * lib/mpsort.c: Likewise.
55138         * lib/nanosleep.c: Likewise.
55139         * lib/obstack.c: Likewise.
55140         * lib/obstack.h: Likewise.
55141         * lib/open-safer.c: Likewise.
55142         * lib/open.c: Likewise.
55143         * lib/openat-die.c: Likewise.
55144         * lib/openat-priv.h: Likewise.
55145         * lib/openat-proc.c: Likewise.
55146         * lib/openat.c: Likewise.
55147         * lib/openat.h: Likewise.
55148         * lib/pagealign_alloc.c: Likewise.
55149         * lib/pagealign_alloc.h: Likewise.
55150         * lib/physmem.c: Likewise.
55151         * lib/physmem.h: Likewise.
55152         * lib/pipe-safer.c: Likewise.
55153         * lib/pipe.c: Likewise.
55154         * lib/pipe.h: Likewise.
55155         * lib/posixtm.c: Likewise.
55156         * lib/posixtm.h: Likewise.
55157         * lib/posixver.c: Likewise.
55158         * lib/printf-frexp.c: Likewise.
55159         * lib/printf-frexp.h: Likewise.
55160         * lib/printf-frexpl.c: Likewise.
55161         * lib/printf-frexpl.h: Likewise.
55162         * lib/printf.c: Likewise.
55163         * lib/progname.c: Likewise.
55164         * lib/progname.h: Likewise.
55165         * lib/progreloc.c: Likewise.
55166         * lib/putenv.c: Likewise.
55167         * lib/quote.c: Likewise.
55168         * lib/quote.h: Likewise.
55169         * lib/quotearg.c: Likewise.
55170         * lib/quotearg.h: Likewise.
55171         * lib/raise.c: Likewise.
55172         * lib/readline.c: Likewise.
55173         * lib/readline.h: Likewise.
55174         * lib/readlink.c: Likewise.
55175         * lib/readtokens.c: Likewise.
55176         * lib/readtokens.h: Likewise.
55177         * lib/readtokens0.c: Likewise.
55178         * lib/readtokens0.h: Likewise.
55179         * lib/readutmp.c: Likewise.
55180         * lib/readutmp.h: Likewise.
55181         * lib/realloc.c: Likewise.
55182         * lib/relocwrapper.c: Likewise.
55183         * lib/rename-dest-slash.c: Likewise.
55184         * lib/rename.c: Likewise.
55185         * lib/rmdir.c: Likewise.
55186         * lib/rpmatch.c: Likewise.
55187         * lib/safe-read.c: Likewise.
55188         * lib/safe-read.h: Likewise.
55189         * lib/safe-write.c: Likewise.
55190         * lib/safe-write.h: Likewise.
55191         * lib/same-inode.h: Likewise.
55192         * lib/same.c: Likewise.
55193         * lib/same.h: Likewise.
55194         * lib/save-cwd.c: Likewise.
55195         * lib/save-cwd.h: Likewise.
55196         * lib/savedir.c: Likewise.
55197         * lib/savedir.h: Likewise.
55198         * lib/savewd.c: Likewise.
55199         * lib/savewd.h: Likewise.
55200         * lib/search.in.h: Likewise.
55201         * lib/setenv.c: Likewise.
55202         * lib/setenv.h: Likewise.
55203         * lib/settime.c: Likewise.
55204         * lib/sh-quote.c: Likewise.
55205         * lib/sh-quote.h: Likewise.
55206         * lib/sig2str.c: Likewise.
55207         * lib/sig2str.h: Likewise.
55208         * lib/signal.in.h: Likewise.
55209         * lib/signbitd.c: Likewise.
55210         * lib/signbitf.c: Likewise.
55211         * lib/signbitl.c: Likewise.
55212         * lib/sigprocmask.c: Likewise.
55213         * lib/sincosl.c: Likewise.
55214         * lib/sleep.c: Likewise.
55215         * lib/sprintf.c: Likewise.
55216         * lib/sqrtl.c: Likewise.
55217         * lib/stat-time.h: Likewise.
55218         * lib/stdio--.h: Likewise.
55219         * lib/stdio-safer.h: Likewise.
55220         * lib/stdlib--.h: Likewise.
55221         * lib/stdlib-safer.h: Likewise.
55222         * lib/stdlib.in.h: Likewise.
55223         * lib/stpcpy.c: Likewise.
55224         * lib/stpncpy.c: Likewise.
55225         * lib/strchrnul.c: Likewise.
55226         * lib/strcspn.c: Likewise.
55227         * lib/strerror.c: Likewise.
55228         * lib/strftime.c: Likewise.
55229         * lib/strftime.h: Likewise.
55230         * lib/striconveh.c: Likewise.
55231         * lib/striconveh.h: Likewise.
55232         * lib/striconveha.c: Likewise.
55233         * lib/striconveha.h: Likewise.
55234         * lib/stripslash.c: Likewise.
55235         * lib/strnlen1.c: Likewise.
55236         * lib/strnlen1.h: Likewise.
55237         * lib/strtod.c: Likewise.
55238         * lib/strtoimax.c: Likewise.
55239         * lib/strtok_r.c: Likewise.
55240         * lib/strtol.c: Likewise.
55241         * lib/strtoll.c: Likewise.
55242         * lib/strtoul.c: Likewise.
55243         * lib/strtoull.c: Likewise.
55244         * lib/sysexits.in.h: Likewise.
55245         * lib/tempname.c: Likewise.
55246         * lib/tempname.h: Likewise.
55247         * lib/timespec.h: Likewise.
55248         * lib/tls.c: Likewise.
55249         * lib/tls.h: Likewise.
55250         * lib/tmpdir.c: Likewise.
55251         * lib/tmpdir.h: Likewise.
55252         * lib/tmpfile-safer.c: Likewise.
55253         * lib/tmpfile.c: Likewise.
55254         * lib/trigl.c: Likewise.
55255         * lib/trigl.h: Likewise.
55256         * lib/trim.c: Likewise.
55257         * lib/trim.h: Likewise.
55258         * lib/trunc.c: Likewise.
55259         * lib/truncf.c: Likewise.
55260         * lib/truncl.c: Likewise.
55261         * lib/tsearch.c: Likewise.
55262         * lib/unicodeio.c: Likewise.
55263         * lib/unicodeio.h: Likewise.
55264         * lib/unistd--.h: Likewise.
55265         * lib/unistd-safer.h: Likewise.
55266         * lib/unistdio/ulc-fprintf.c: Likewise.
55267         * lib/unistdio/ulc-vfprintf.c: Likewise.
55268         * lib/unlinkdir.c: Likewise.
55269         * lib/unlinkdir.h: Likewise.
55270         * lib/unlocked-io.h: Likewise.
55271         * lib/unsetenv.c: Likewise.
55272         * lib/userspec.c: Likewise.
55273         * lib/utime.c: Likewise.
55274         * lib/utimecmp.c: Likewise.
55275         * lib/utimecmp.h: Likewise.
55276         * lib/utimens.c: Likewise.
55277         * lib/verify.h: Likewise.
55278         * lib/verror.c: Likewise.
55279         * lib/verror.h: Likewise.
55280         * lib/version-etc-fsf.c: Likewise.
55281         * lib/version-etc.c: Likewise.
55282         * lib/version-etc.h: Likewise.
55283         * lib/vfprintf.c: Likewise.
55284         * lib/vprintf.c: Likewise.
55285         * lib/vsprintf.c: Likewise.
55286         * lib/w32spawn.h: Likewise.
55287         * lib/wait-process.c: Likewise.
55288         * lib/wait-process.h: Likewise.
55289         * lib/wcwidth.c: Likewise.
55290         * lib/write-any-file.c: Likewise.
55291         * lib/xalloc-die.c: Likewise.
55292         * lib/xalloc.h: Likewise.
55293         * lib/xasprintf.c: Likewise.
55294         * lib/xgetcwd.c: Likewise.
55295         * lib/xgetcwd.h: Likewise.
55296         * lib/xgetdomainname.c: Likewise.
55297         * lib/xgetdomainname.h: Likewise.
55298         * lib/xgethostname.c: Likewise.
55299         * lib/xmalloc.c: Likewise.
55300         * lib/xmalloca.c: Likewise.
55301         * lib/xmalloca.h: Likewise.
55302         * lib/xmemcoll.c: Likewise.
55303         * lib/xnanosleep.c: Likewise.
55304         * lib/xreadlink.c: Likewise.
55305         * lib/xreadlink.h: Likewise.
55306         * lib/xsetenv.c: Likewise.
55307         * lib/xsetenv.h: Likewise.
55308         * lib/xstriconv.c: Likewise.
55309         * lib/xstriconv.h: Likewise.
55310         * lib/xstrndup.c: Likewise.
55311         * lib/xstrndup.h: Likewise.
55312         * lib/xstrtod.c: Likewise.
55313         * lib/xstrtod.h: Likewise.
55314         * lib/xstrtol-error.c: Likewise.
55315         * lib/xstrtol.c: Likewise.
55316         * lib/xstrtol.h: Likewise.
55317         * lib/xtime.h: Likewise.
55318         * lib/xvasprintf.c: Likewise.
55319         * lib/xvasprintf.h: Likewise.
55320         * lib/yesno.c: Likewise.
55321         * lib/yesno.h: Likewise.
55322         * posix-modules: Likewise.
55323         * tests/test-alloca-opt.c: Likewise.
55324         * tests/test-arcfour.c: Likewise.
55325         * tests/test-arctwo.c: Likewise.
55326         * tests/test-argmatch.c: Likewise.
55327         * tests/test-argp-2.sh: Likewise.
55328         * tests/test-argp.c: Likewise.
55329         * tests/test-arpa_inet.c: Likewise.
55330         * tests/test-array_list.c: Likewise.
55331         * tests/test-array_oset.c: Likewise.
55332         * tests/test-atexit.c: Likewise.
55333         * tests/test-avltree_list.c: Likewise.
55334         * tests/test-avltree_oset.c: Likewise.
55335         * tests/test-avltreehash_list.c: Likewise.
55336         * tests/test-base64.c: Likewise.
55337         * tests/test-binary-io.c: Likewise.
55338         * tests/test-byteswap.c: Likewise.
55339         * tests/test-c-ctype.c: Likewise.
55340         * tests/test-c-strcasecmp.c: Likewise.
55341         * tests/test-c-strcasestr.c: Likewise.
55342         * tests/test-c-strncasecmp.c: Likewise.
55343         * tests/test-c-strstr.c: Likewise.
55344         * tests/test-canonicalize-lgpl.c: Likewise.
55345         * tests/test-canonicalize.c: Likewise.
55346         * tests/test-carray_list.c: Likewise.
55347         * tests/test-ceilf.c: Likewise.
55348         * tests/test-ceill.c: Likewise.
55349         * tests/test-count-one-bits.c: Likewise.
55350         * tests/test-crc.c: Likewise.
55351         * tests/test-dirname.c: Likewise.
55352         * tests/test-fbufmode.c: Likewise.
55353         * tests/test-fcntl.c: Likewise.
55354         * tests/test-fflush.c: Likewise.
55355         * tests/test-floorf.c: Likewise.
55356         * tests/test-floorl.c: Likewise.
55357         * tests/test-fopen.c: Likewise.
55358         * tests/test-fprintf-posix.c: Likewise.
55359         * tests/test-fprintf-posix.h: Likewise.
55360         * tests/test-fpurge.c: Likewise.
55361         * tests/test-freadable.c: Likewise.
55362         * tests/test-freadahead.c: Likewise.
55363         * tests/test-freading.c: Likewise.
55364         * tests/test-freopen.c: Likewise.
55365         * tests/test-frexp.c: Likewise.
55366         * tests/test-frexpl.c: Likewise.
55367         * tests/test-fseek.c: Likewise.
55368         * tests/test-fseeko.c: Likewise.
55369         * tests/test-fseterr.c: Likewise.
55370         * tests/test-fstrcmp.c: Likewise.
55371         * tests/test-ftell.c: Likewise.
55372         * tests/test-ftello.c: Likewise.
55373         * tests/test-fwritable.c: Likewise.
55374         * tests/test-fwriting.c: Likewise.
55375         * tests/test-getaddrinfo.c: Likewise.
55376         * tests/test-getpass.c: Likewise.
55377         * tests/test-gettimeofday.c: Likewise.
55378         * tests/test-hmac-md5.c: Likewise.
55379         * tests/test-hmac-sha1.c: Likewise.
55380         * tests/test-iconv.c: Likewise.
55381         * tests/test-iconvme.c: Likewise.
55382         * tests/test-inttypes.c: Likewise.
55383         * tests/test-isnan.c: Likewise.
55384         * tests/test-isnanf.c: Likewise.
55385         * tests/test-isnanl-nolibm.c: Likewise.
55386         * tests/test-isnanl.c: Likewise.
55387         * tests/test-isnanl.h: Likewise.
55388         * tests/test-ldexpl.c: Likewise.
55389         * tests/test-linked_list.c: Likewise.
55390         * tests/test-linkedhash_list.c: Likewise.
55391         * tests/test-locale.c: Likewise.
55392         * tests/test-localename.c: Likewise.
55393         * tests/test-lock.c: Likewise.
55394         * tests/test-lseek.c: Likewise.
55395         * tests/test-malloca.c: Likewise.
55396         * tests/test-math.c: Likewise.
55397         * tests/test-mbscasecmp.c: Likewise.
55398         * tests/test-mbscasestr1.c: Likewise.
55399         * tests/test-mbscasestr2.c: Likewise.
55400         * tests/test-mbscasestr3.c: Likewise.
55401         * tests/test-mbscasestr4.c: Likewise.
55402         * tests/test-mbschr.c: Likewise.
55403         * tests/test-mbscspn.c: Likewise.
55404         * tests/test-mbsncasecmp.c: Likewise.
55405         * tests/test-mbspbrk.c: Likewise.
55406         * tests/test-mbspcasecmp.c: Likewise.
55407         * tests/test-mbsrchr.c: Likewise.
55408         * tests/test-mbsspn.c: Likewise.
55409         * tests/test-mbsstr1.c: Likewise.
55410         * tests/test-mbsstr2.c: Likewise.
55411         * tests/test-mbsstr3.c: Likewise.
55412         * tests/test-md5.c: Likewise.
55413         * tests/test-memmem.c: Likewise.
55414         * tests/test-netinet_in.c: Likewise.
55415         * tests/test-open.c: Likewise.
55416         * tests/test-printf-frexp.c: Likewise.
55417         * tests/test-printf-frexpl.c: Likewise.
55418         * tests/test-printf-posix.c: Likewise.
55419         * tests/test-printf-posix.h: Likewise.
55420         * tests/test-rbtree_list.c: Likewise.
55421         * tests/test-rbtree_oset.c: Likewise.
55422         * tests/test-rbtreehash_list.c: Likewise.
55423         * tests/test-read-file.c: Likewise.
55424         * tests/test-rijndael.c: Likewise.
55425         * tests/test-search.c: Likewise.
55426         * tests/test-signbit.c: Likewise.
55427         * tests/test-sleep.c: Likewise.
55428         * tests/test-snprintf-posix.c: Likewise.
55429         * tests/test-snprintf-posix.h: Likewise.
55430         * tests/test-snprintf.c: Likewise.
55431         * tests/test-sprintf-posix.c: Likewise.
55432         * tests/test-sprintf-posix.h: Likewise.
55433         * tests/test-stat-time.c: Likewise.
55434         * tests/test-stdbool.c: Likewise.
55435         * tests/test-stdint.c: Likewise.
55436         * tests/test-stdio.c: Likewise.
55437         * tests/test-stdlib.c: Likewise.
55438         * tests/test-stpncpy.c: Likewise.
55439         * tests/test-strcasestr.c: Likewise.
55440         * tests/test-striconv.c: Likewise.
55441         * tests/test-striconveh.c: Likewise.
55442         * tests/test-striconveha.c: Likewise.
55443         * tests/test-string.c: Likewise.
55444         * tests/test-sys_select.c: Likewise.
55445         * tests/test-sys_socket.c: Likewise.
55446         * tests/test-sys_stat.c: Likewise.
55447         * tests/test-sys_time.c: Likewise.
55448         * tests/test-sysexits.c: Likewise.
55449         * tests/test-time.c: Likewise.
55450         * tests/test-tls.c: Likewise.
55451         * tests/test-trunc.c: Likewise.
55452         * tests/test-truncf.c: Likewise.
55453         * tests/test-truncl.c: Likewise.
55454         * tests/test-unistd.c: Likewise.
55455         * tests/test-vasnprintf-posix.c: Likewise.
55456         * tests/test-vasnprintf-posix2.c: Likewise.
55457         * tests/test-vasnprintf.c: Likewise.
55458         * tests/test-vasprintf-posix.c: Likewise.
55459         * tests/test-vasprintf.c: Likewise.
55460         * tests/test-verify.c: Likewise.
55461         * tests/test-vfprintf-posix.c: Likewise.
55462         * tests/test-vprintf-posix.c: Likewise.
55463         * tests/test-vsnprintf-posix.c: Likewise.
55464         * tests/test-vsnprintf.c: Likewise.
55465         * tests/test-vsprintf-posix.c: Likewise.
55466         * tests/test-wchar.c: Likewise.
55467         * tests/test-wctype.c: Likewise.
55468         * tests/test-wcwidth.c: Likewise.
55469         * tests/test-xstrtol.c: Likewise.
55470         * tests/test-xvasprintf.c: Likewise.
55471         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55472         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55473         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55474         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55475         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55476         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55477         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55478         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55479         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55480         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55481         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55482         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55483         * tests/uniname/test-uninames.c: Likewise.
55484         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55485         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
55486         * tests/unistdio/test-u16-printf1.h: Likewise.
55487         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55488         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55489         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55490         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55491         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55492         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55493         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55494         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
55495         * tests/unistdio/test-u32-printf1.h: Likewise.
55496         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55497         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55498         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55499         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55500         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55501         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55502         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55503         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
55504         * tests/unistdio/test-u8-printf1.h: Likewise.
55505         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55506         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55507         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55508         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55509         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55510         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55511         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55512         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
55513         * tests/unistdio/test-ulc-printf1.h: Likewise.
55514         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55515         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55516         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55517         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55518         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55519         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55520         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55521         * tests/uniwidth/test-u16-width.c: Likewise.
55522         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55523         * tests/uniwidth/test-u32-width.c: Likewise.
55524         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55525         * tests/uniwidth/test-u8-width.c: Likewise.
55526         * tests/uniwidth/test-uc_width.c: Likewise.
55527         * config/srclist-update: Likewise.
55528         (fixlicense): Update to GPLv3+.
55529
55530         Change copyright notice from LGPLv2.1+ to LGPLv3+.
55531         * tests/test-tsearch.c: Change copyright notice.
55532
55533         Change copyright notice from LGPLv2.0+ to LGPLv3+.
55534         * lib/c-strcaseeq.h: Change copyright notice.
55535         * lib/streq.h: Likewise.
55536         * lib/uniconv.h: Likewise.
55537         * lib/uniconv/u-conv-from-enc.h: Likewise.
55538         * lib/uniconv/u-conv-to-enc.h: Likewise.
55539         * lib/uniconv/u-strconv-from-enc.h: Likewise.
55540         * lib/uniconv/u-strconv-to-enc.h: Likewise.
55541         * lib/uniconv/u16-conv-from-enc.c: Likewise.
55542         * lib/uniconv/u16-conv-to-enc.c: Likewise.
55543         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
55544         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
55545         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
55546         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
55547         * lib/uniconv/u32-conv-from-enc.c: Likewise.
55548         * lib/uniconv/u32-conv-to-enc.c: Likewise.
55549         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
55550         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
55551         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
55552         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
55553         * lib/uniconv/u8-conv-from-enc.c: Likewise.
55554         * lib/uniconv/u8-conv-to-enc.c: Likewise.
55555         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
55556         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
55557         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
55558         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
55559         * lib/uniname.h: Likewise.
55560         * lib/uniname/uniname.c: Likewise.
55561         * lib/unistdio.h: Likewise.
55562         * lib/unistdio/u-asnprintf.h: Likewise.
55563         * lib/unistdio/u-asprintf.h: Likewise.
55564         * lib/unistdio/u-printf-args.c: Likewise.
55565         * lib/unistdio/u-printf-args.h: Likewise.
55566         * lib/unistdio/u-printf-parse.h: Likewise.
55567         * lib/unistdio/u-snprintf.h: Likewise.
55568         * lib/unistdio/u-sprintf.h: Likewise.
55569         * lib/unistdio/u-vasprintf.h: Likewise.
55570         * lib/unistdio/u-vsnprintf.h: Likewise.
55571         * lib/unistdio/u-vsprintf.h: Likewise.
55572         * lib/unistdio/u16-asnprintf.c: Likewise.
55573         * lib/unistdio/u16-asprintf.c: Likewise.
55574         * lib/unistdio/u16-printf-parse.c: Likewise.
55575         * lib/unistdio/u16-snprintf.c: Likewise.
55576         * lib/unistdio/u16-sprintf.c: Likewise.
55577         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
55578         * lib/unistdio/u16-u16-asprintf.c: Likewise.
55579         * lib/unistdio/u16-u16-snprintf.c: Likewise.
55580         * lib/unistdio/u16-u16-sprintf.c: Likewise.
55581         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
55582         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
55583         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
55584         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
55585         * lib/unistdio/u16-vasnprintf.c: Likewise.
55586         * lib/unistdio/u16-vasprintf.c: Likewise.
55587         * lib/unistdio/u16-vsnprintf.c: Likewise.
55588         * lib/unistdio/u16-vsprintf.c: Likewise.
55589         * lib/unistdio/u32-asnprintf.c: Likewise.
55590         * lib/unistdio/u32-asprintf.c: Likewise.
55591         * lib/unistdio/u32-printf-parse.c: Likewise.
55592         * lib/unistdio/u32-snprintf.c: Likewise.
55593         * lib/unistdio/u32-sprintf.c: Likewise.
55594         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
55595         * lib/unistdio/u32-u32-asprintf.c: Likewise.
55596         * lib/unistdio/u32-u32-snprintf.c: Likewise.
55597         * lib/unistdio/u32-u32-sprintf.c: Likewise.
55598         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
55599         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
55600         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
55601         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
55602         * lib/unistdio/u32-vasnprintf.c: Likewise.
55603         * lib/unistdio/u32-vasprintf.c: Likewise.
55604         * lib/unistdio/u32-vsnprintf.c: Likewise.
55605         * lib/unistdio/u32-vsprintf.c: Likewise.
55606         * lib/unistdio/u8-asnprintf.c: Likewise.
55607         * lib/unistdio/u8-asprintf.c: Likewise.
55608         * lib/unistdio/u8-printf-parse.c: Likewise.
55609         * lib/unistdio/u8-snprintf.c: Likewise.
55610         * lib/unistdio/u8-sprintf.c: Likewise.
55611         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
55612         * lib/unistdio/u8-u8-asprintf.c: Likewise.
55613         * lib/unistdio/u8-u8-snprintf.c: Likewise.
55614         * lib/unistdio/u8-u8-sprintf.c: Likewise.
55615         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
55616         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
55617         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
55618         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
55619         * lib/unistdio/u8-vasnprintf.c: Likewise.
55620         * lib/unistdio/u8-vasprintf.c: Likewise.
55621         * lib/unistdio/u8-vsnprintf.c: Likewise.
55622         * lib/unistdio/u8-vsprintf.c: Likewise.
55623         * lib/unistdio/ulc-asnprintf.c: Likewise.
55624         * lib/unistdio/ulc-asprintf.c: Likewise.
55625         * lib/unistdio/ulc-printf-parse.c: Likewise.
55626         * lib/unistdio/ulc-snprintf.c: Likewise.
55627         * lib/unistdio/ulc-sprintf.c: Likewise.
55628         * lib/unistdio/ulc-vasnprintf.c: Likewise.
55629         * lib/unistdio/ulc-vasprintf.c: Likewise.
55630         * lib/unistdio/ulc-vsnprintf.c: Likewise.
55631         * lib/unistdio/ulc-vsprintf.c: Likewise.
55632         * lib/unistr.h: Likewise.
55633         * lib/unistr/u-cpy-alloc.h: Likewise.
55634         * lib/unistr/u-cpy.h: Likewise.
55635         * lib/unistr/u-endswith.h: Likewise.
55636         * lib/unistr/u-move.h: Likewise.
55637         * lib/unistr/u-set.h: Likewise.
55638         * lib/unistr/u-startswith.h: Likewise.
55639         * lib/unistr/u-stpcpy.h: Likewise.
55640         * lib/unistr/u-stpncpy.h: Likewise.
55641         * lib/unistr/u-strcat.h: Likewise.
55642         * lib/unistr/u-strcpy.h: Likewise.
55643         * lib/unistr/u-strcspn.h: Likewise.
55644         * lib/unistr/u-strdup.h: Likewise.
55645         * lib/unistr/u-strlen.h: Likewise.
55646         * lib/unistr/u-strncat.h: Likewise.
55647         * lib/unistr/u-strncpy.h: Likewise.
55648         * lib/unistr/u-strnlen.h: Likewise.
55649         * lib/unistr/u-strpbrk.h: Likewise.
55650         * lib/unistr/u-strspn.h: Likewise.
55651         * lib/unistr/u-strstr.h: Likewise.
55652         * lib/unistr/u-strtok.h: Likewise.
55653         * lib/unistr/u16-check.c: Likewise.
55654         * lib/unistr/u16-chr.c: Likewise.
55655         * lib/unistr/u16-cmp.c: Likewise.
55656         * lib/unistr/u16-cpy-alloc.c: Likewise.
55657         * lib/unistr/u16-cpy.c: Likewise.
55658         * lib/unistr/u16-endswith.c: Likewise.
55659         * lib/unistr/u16-mblen.c: Likewise.
55660         * lib/unistr/u16-mbsnlen.c: Likewise.
55661         * lib/unistr/u16-mbtouc-aux.c: Likewise.
55662         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
55663         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
55664         * lib/unistr/u16-mbtouc.c: Likewise.
55665         * lib/unistr/u16-mbtoucr.c: Likewise.
55666         * lib/unistr/u16-move.c: Likewise.
55667         * lib/unistr/u16-next.c: Likewise.
55668         * lib/unistr/u16-prev.c: Likewise.
55669         * lib/unistr/u16-set.c: Likewise.
55670         * lib/unistr/u16-startswith.c: Likewise.
55671         * lib/unistr/u16-stpcpy.c: Likewise.
55672         * lib/unistr/u16-stpncpy.c: Likewise.
55673         * lib/unistr/u16-strcat.c: Likewise.
55674         * lib/unistr/u16-strchr.c: Likewise.
55675         * lib/unistr/u16-strcmp.c: Likewise.
55676         * lib/unistr/u16-strcpy.c: Likewise.
55677         * lib/unistr/u16-strcspn.c: Likewise.
55678         * lib/unistr/u16-strdup.c: Likewise.
55679         * lib/unistr/u16-strlen.c: Likewise.
55680         * lib/unistr/u16-strmblen.c: Likewise.
55681         * lib/unistr/u16-strmbtouc.c: Likewise.
55682         * lib/unistr/u16-strncat.c: Likewise.
55683         * lib/unistr/u16-strncmp.c: Likewise.
55684         * lib/unistr/u16-strncpy.c: Likewise.
55685         * lib/unistr/u16-strnlen.c: Likewise.
55686         * lib/unistr/u16-strpbrk.c: Likewise.
55687         * lib/unistr/u16-strrchr.c: Likewise.
55688         * lib/unistr/u16-strspn.c: Likewise.
55689         * lib/unistr/u16-strstr.c: Likewise.
55690         * lib/unistr/u16-strtok.c: Likewise.
55691         * lib/unistr/u16-to-u32.c: Likewise.
55692         * lib/unistr/u16-to-u8.c: Likewise.
55693         * lib/unistr/u16-uctomb-aux.c: Likewise.
55694         * lib/unistr/u16-uctomb.c: Likewise.
55695         * lib/unistr/u32-check.c: Likewise.
55696         * lib/unistr/u32-chr.c: Likewise.
55697         * lib/unistr/u32-cmp.c: Likewise.
55698         * lib/unistr/u32-cpy-alloc.c: Likewise.
55699         * lib/unistr/u32-cpy.c: Likewise.
55700         * lib/unistr/u32-endswith.c: Likewise.
55701         * lib/unistr/u32-mblen.c: Likewise.
55702         * lib/unistr/u32-mbsnlen.c: Likewise.
55703         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
55704         * lib/unistr/u32-mbtouc.c: Likewise.
55705         * lib/unistr/u32-mbtoucr.c: Likewise.
55706         * lib/unistr/u32-move.c: Likewise.
55707         * lib/unistr/u32-next.c: Likewise.
55708         * lib/unistr/u32-prev.c: Likewise.
55709         * lib/unistr/u32-set.c: Likewise.
55710         * lib/unistr/u32-startswith.c: Likewise.
55711         * lib/unistr/u32-stpcpy.c: Likewise.
55712         * lib/unistr/u32-stpncpy.c: Likewise.
55713         * lib/unistr/u32-strcat.c: Likewise.
55714         * lib/unistr/u32-strchr.c: Likewise.
55715         * lib/unistr/u32-strcmp.c: Likewise.
55716         * lib/unistr/u32-strcpy.c: Likewise.
55717         * lib/unistr/u32-strcspn.c: Likewise.
55718         * lib/unistr/u32-strdup.c: Likewise.
55719         * lib/unistr/u32-strlen.c: Likewise.
55720         * lib/unistr/u32-strmblen.c: Likewise.
55721         * lib/unistr/u32-strmbtouc.c: Likewise.
55722         * lib/unistr/u32-strncat.c: Likewise.
55723         * lib/unistr/u32-strncmp.c: Likewise.
55724         * lib/unistr/u32-strncpy.c: Likewise.
55725         * lib/unistr/u32-strnlen.c: Likewise.
55726         * lib/unistr/u32-strpbrk.c: Likewise.
55727         * lib/unistr/u32-strrchr.c: Likewise.
55728         * lib/unistr/u32-strspn.c: Likewise.
55729         * lib/unistr/u32-strstr.c: Likewise.
55730         * lib/unistr/u32-strtok.c: Likewise.
55731         * lib/unistr/u32-to-u16.c: Likewise.
55732         * lib/unistr/u32-to-u8.c: Likewise.
55733         * lib/unistr/u32-uctomb.c: Likewise.
55734         * lib/unistr/u8-check.c: Likewise.
55735         * lib/unistr/u8-chr.c: Likewise.
55736         * lib/unistr/u8-cmp.c: Likewise.
55737         * lib/unistr/u8-cpy-alloc.c: Likewise.
55738         * lib/unistr/u8-cpy.c: Likewise.
55739         * lib/unistr/u8-endswith.c: Likewise.
55740         * lib/unistr/u8-mblen.c: Likewise.
55741         * lib/unistr/u8-mbsnlen.c: Likewise.
55742         * lib/unistr/u8-mbtouc-aux.c: Likewise.
55743         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
55744         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
55745         * lib/unistr/u8-mbtouc.c: Likewise.
55746         * lib/unistr/u8-mbtoucr.c: Likewise.
55747         * lib/unistr/u8-move.c: Likewise.
55748         * lib/unistr/u8-next.c: Likewise.
55749         * lib/unistr/u8-prev.c: Likewise.
55750         * lib/unistr/u8-set.c: Likewise.
55751         * lib/unistr/u8-startswith.c: Likewise.
55752         * lib/unistr/u8-stpcpy.c: Likewise.
55753         * lib/unistr/u8-stpncpy.c: Likewise.
55754         * lib/unistr/u8-strcat.c: Likewise.
55755         * lib/unistr/u8-strchr.c: Likewise.
55756         * lib/unistr/u8-strcmp.c: Likewise.
55757         * lib/unistr/u8-strcpy.c: Likewise.
55758         * lib/unistr/u8-strcspn.c: Likewise.
55759         * lib/unistr/u8-strdup.c: Likewise.
55760         * lib/unistr/u8-strlen.c: Likewise.
55761         * lib/unistr/u8-strmblen.c: Likewise.
55762         * lib/unistr/u8-strmbtouc.c: Likewise.
55763         * lib/unistr/u8-strncat.c: Likewise.
55764         * lib/unistr/u8-strncmp.c: Likewise.
55765         * lib/unistr/u8-strncpy.c: Likewise.
55766         * lib/unistr/u8-strnlen.c: Likewise.
55767         * lib/unistr/u8-strpbrk.c: Likewise.
55768         * lib/unistr/u8-strrchr.c: Likewise.
55769         * lib/unistr/u8-strspn.c: Likewise.
55770         * lib/unistr/u8-strstr.c: Likewise.
55771         * lib/unistr/u8-strtok.c: Likewise.
55772         * lib/unistr/u8-to-u16.c: Likewise.
55773         * lib/unistr/u8-to-u32.c: Likewise.
55774         * lib/unistr/u8-uctomb-aux.c: Likewise.
55775         * lib/unistr/u8-uctomb.c: Likewise.
55776         * lib/unitypes.h: Likewise.
55777         * lib/uniwidth.h: Likewise.
55778         * lib/uniwidth/cjk.h: Likewise.
55779         * lib/uniwidth/u16-strwidth.c: Likewise.
55780         * lib/uniwidth/u16-width.c: Likewise.
55781         * lib/uniwidth/u32-strwidth.c: Likewise.
55782         * lib/uniwidth/u32-width.c: Likewise.
55783         * lib/uniwidth/u8-strwidth.c: Likewise.
55784         * lib/uniwidth/u8-width.c: Likewise.
55785         * lib/uniwidth/width.c: Likewise.
55786
55787 2007-10-07  Bruno Haible  <bruno@clisp.org>
55788
55789         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
55790         The file is still under LGPL (see modules/inttypes).
55791
55792 2007-10-06  Bruno Haible  <bruno@clisp.org>
55793
55794         * modules/trunc (Dependencies): Add 'extensions'.
55795         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
55796         Reported by Ben Pfaff <blp@gnu.org>.
55797
55798 2007-10-06  Bruno Haible  <bruno@clisp.org>
55799
55800         * modules/freopen-tests: New file.
55801         * tests/test-freopen.c: New file.
55802
55803         * modules/fopen-tests: New file.
55804         * tests/test-fopen.c: New file.
55805
55806         * modules/fopen: New file.
55807         * lib/fopen.c: New file.
55808         * m4/fopen.m4: New file.
55809         * modules/freopen: New file.
55810         * lib/freopen.c: New file.
55811         * m4/freopen.m4: New file.
55812         * lib/stdio.in.h (fopen, freopen): New declarations.
55813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
55814         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55815         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
55816         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55817         * doc/functions/fopen.texi: Mention the 'fopen' module.
55818         * doc/functions/freopen.texi: Mention the 'freopen' module.
55819
55820 2007-10-06  Bruno Haible  <bruno@clisp.org>
55821
55822         * modules/open-tests: New file.
55823         * tests/test-open.c: New file.
55824
55825         * modules/open: New file.
55826         * lib/open.c: New file.
55827         * m4/open.m4: New file.
55828         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
55829         lib/open.c does.
55830         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
55831         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
55832         macros.
55833         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
55834         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
55835         REPLACE_OPEN.
55836         * doc/functions/open.texi: Mention the 'open' module.
55837
55838 2007-10-04  Bruno Haible  <bruno@clisp.org>
55839
55840         * modules/ceill-tests: New file.
55841         * tests/test-ceill.c: New file.
55842
55843         * modules/ceill: New file.
55844         * lib/ceill.c: Replace entire file.
55845         * m4/ceill.m4: New file.
55846         * lib/math.in.h (ceill): Replace declaration.
55847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
55848         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
55849         * doc/functions/ceill.texi: Mention the 'ceill' module.
55850         * modules/mathl (Files): Remove lib/ceill.c.
55851         (Depends-on): Add ceill.
55852
55853 2007-10-04  Bruno Haible  <bruno@clisp.org>
55854
55855         * modules/ceilf-tests: New file.
55856         * tests/test-ceilf.c: New file.
55857
55858         * modules/ceilf: New file.
55859         * lib/ceil.c: New file.
55860         * lib/ceilf.c: New file.
55861         * m4/ceilf.m4: New file.
55862         * lib/math.in.h (ceilf): New declaration.
55863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
55864         HAVE_DECL_CEILF.
55865         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
55866         HAVE_DECL_CEILF.
55867         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
55868
55869 2007-10-04  Bruno Haible  <bruno@clisp.org>
55870
55871         * modules/floorl-tests: New file.
55872         * tests/test-floorl.c: New file.
55873
55874         * modules/floorl: New file.
55875         * lib/floorl.c: Replace entire file.
55876         * m4/floorl.m4: New file.
55877         * lib/math.in.h (floorl): Replace declaration.
55878         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
55879         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
55880         * doc/functions/floorl.texi: Mention the 'floorl' module.
55881         * modules/mathl (Files): Remove lib/floorl.c.
55882         (Depends-on): Add floorl.
55883
55884 2007-10-04  Bruno Haible  <bruno@clisp.org>
55885
55886         * modules/floorf-tests: New file.
55887         * tests/test-floorf.c: New file.
55888
55889         * modules/floorf: New file.
55890         * lib/floor.c: New file.
55891         * lib/floorf.c: New file.
55892         * m4/floorf.m4: New file.
55893         * lib/math.in.h (floorf): New declaration.
55894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
55895         HAVE_DECL_FLOORF.
55896         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
55897         HAVE_DECL_FLOORF.
55898         * doc/functions/floorf.texi: Mention the 'floorf' module.
55899
55900 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
55901             Bruno Haible  <bruno@clisp.org>
55902
55903         Advertise for the Git server instead of the CVS server.
55904         * doc/gnulib-intro.texi (Steady Development): Mention the Git
55905         repository instead of the CVS one.
55906         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
55907         about all VCS systems generically.
55908         * doc/gnulib.texi (Introduction): Capitalize `Git'.
55909
55910 2007-10-04  Bruno Haible  <bruno@clisp.org>
55911
55912         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
55913         means.
55914         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
55915
55916 2007-10-04  Bruno Haible  <bruno@clisp.org>
55917
55918         * modules/truncl-tests: New file.
55919         * tests/test-truncl.c: New file.
55920
55921         * modules/truncl: New file.
55922         * lib/truncl.c: New file.
55923         * m4/truncl.m4: New file.
55924         * lib/math.in.h (truncl): New declaration.
55925         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
55926         HAVE_DECL_TRUNCL.
55927         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
55928         HAVE_DECL_TRUNCL.
55929         * doc/functions/truncl.texi: Mention the 'truncl' module.
55930
55931 2007-10-04  Bruno Haible  <bruno@clisp.org>
55932
55933         * modules/truncf-tests: New file.
55934         * tests/test-truncf.c: New file.
55935
55936         * modules/truncf: New file.
55937         * lib/trunc.c: Make paramerizable through USE_* macros.
55938         * lib/truncf.c: New file.
55939         * m4/truncf.m4: New file.
55940         * lib/math.in.h (truncf): New declaration.
55941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
55942         HAVE_DECL_TRUNCF.
55943         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
55944         HAVE_DECL_TRUNCF.
55945         * doc/functions/truncf.texi: Mention the 'truncf' module.
55946
55947 2007-10-03  Bruno Haible  <bruno@clisp.org>
55948
55949         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55950         augmentation also for tests modules.
55951         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
55952         * modules/atexit-tests (Makefile.am): Likewise.
55953         * modules/binary-io-tests (Makefile.am): Likewise.
55954         * modules/c-strcase-tests (Makefile.am): Likewise.
55955         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
55956         * modules/canonicalize-tests (Makefile.am): Likewise.
55957         * modules/closein-tests (Makefile.am): Likewise.
55958         * modules/fprintf-posix-tests (Makefile.am): Likewise.
55959         * modules/freadahead-tests (Makefile.am): Likewise.
55960         * modules/fseek-tests (Makefile.am): Likewise.
55961         * modules/fseeko-tests (Makefile.am): Likewise.
55962         * modules/ftell-tests (Makefile.am): Likewise.
55963         * modules/ftello-tests (Makefile.am): Likewise.
55964         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
55965         * modules/isnanl-tests (Makefile.am): Likewise.
55966         * modules/lseek-tests (Makefile.am): Likewise.
55967         * modules/mbscasecmp-tests (Makefile.am): Likewise.
55968         * modules/mbscasestr-tests (Makefile.am): Likewise.
55969         * modules/mbschr-tests (Makefile.am): Likewise.
55970         * modules/mbscspn-tests (Makefile.am): Likewise.
55971         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
55972         * modules/mbspbrk-tests (Makefile.am): Likewise.
55973         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
55974         * modules/mbsrchr-tests (Makefile.am): Likewise.
55975         * modules/mbsspn-tests (Makefile.am): Likewise.
55976         * modules/mbsstr-tests (Makefile.am): Likewise.
55977         * modules/printf-posix-tests (Makefile.am): Likewise.
55978         * modules/snprintf-posix-tests (Makefile.am): Likewise.
55979         * modules/sprintf-posix-tests (Makefile.am): Likewise.
55980         * modules/tsearch-tests (Makefile.am): Likewise.
55981         * modules/uniname/uniname-tests (Makefile.am): Likewise.
55982         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
55983         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
55984         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
55985         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
55986         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
55987         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
55988         * modules/vprintf-posix-tests (Makefile.am): Likewise.
55989         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
55990         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
55991         * modules/xstrtoimax-tests (Makefile.am): Likewise.
55992         * modules/xstrtol-tests (Makefile.am): Likewise.
55993         * modules/xstrtoumax-tests (Makefile.am): Likewise.
55994         * modules/yesno-tests (Makefile.am): Likewise.
55995
55996 2007-10-03  Bruno Haible  <bruno@clisp.org>
55997
55998         * modules/trunc-tests: New file.
55999         * tests/test-trunc.c: New file.
56000
56001         * modules/trunc: New file.
56002         * lib/trunc.c: New file.
56003         * m4/trunc.m4: New file.
56004         * lib/math.in.h (trunc): New declaration.
56005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56006         HAVE_DECL_TRUNC.
56007         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56008         HAVE_DECL_TRUNC.
56009         * doc/functions/trunc.texi: Mention the 'trunc' module.
56010
56011 2007-10-03  Bruno Haible  <bruno@clisp.org>
56012
56013         * tests/test-fpending.c: New file, mostly copied
56014         from coreutils/lib/t-fpending.c.
56015         * modules/fpending-tests: New file.
56016
56017 2007-10-03  Bruno Haible  <bruno@clisp.org>
56018
56019         Port the stdio extensions to QNX (untested).
56020         * lib/fseterr.c (fseterr): Add support for QNX.
56021         * lib/fbufmode.c (fbufmode): Likewise.
56022         * lib/freadable.c (freadable): Likewise.
56023         * lib/fwritable.c (fwritable): Likewise.
56024         * lib/freading.c (freading): Likewise.
56025         * lib/fwriting.c (fwriting): Likewise.
56026         * lib/freadahead.c (freadahed): Likewise.
56027         * lib/fpurge.c (fpurge): Likewise.
56028         * lib/fseeko.c (rpl_fseeko): Likewise.
56029
56030 2007-10-03  Bruno Haible  <bruno@clisp.org>
56031             Jim Meyering  <jim@meyering.net>
56032             Eric Blake  <ebb9@byu.net>
56033
56034         * doc/relocatable.texi: Use @command instead of @program.
56035
56036 2007-10-02  Jim Meyering  <jim@meyering.net>
56037
56038         Perform one more "_.h" -> ".in.h" substitution.
56039         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56040         instead of unistd_.h here, too.
56041
56042 2007-10-01  Bruno Haible  <bruno@clisp.org>
56043
56044         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56045         Needed for the alloca-opt module.
56046
56047 2007-09-30  Bruno Haible  <bruno@clisp.org>
56048
56049         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56050         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56051         alloca_.h.
56052         * lib/argz.in.h: Renamed from lib/argz_.h.
56053         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56054         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56055         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56056         byteswap_.h.
56057         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56058         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56059         dirent_.h.
56060         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56061         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56062         fcntl_.h.
56063         * lib/float.in.h: Renamed from lib/float_.h.
56064         * modules/float (Files, Makefile.am): Use float.in.h instead of
56065         float_.h.
56066         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56067         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56068         fnmatch_.h.
56069         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56070         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56071         getopt_.h.
56072         * lib/glob.in.h: Renamed from lib/glob_.h.
56073         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56074         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56075         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56076         iconv_.h.
56077         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56078         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56079         inttypes_.h.
56080         * lib/locale.in.h: Renamed from lib/locale_.h.
56081         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56082         locale_.h.
56083         * lib/math.in.h: Renamed from lib/math_.h.
56084         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56085         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56086         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56087         of netinet_in_.h. Add dependency.
56088         * lib/poll.in.h: Renamed from lib/poll_.h.
56089         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56090         * lib/search.in.h: Renamed from lib/search_.h.
56091         * modules/search (Files, Makefile.am): Use search.in.h instead of
56092         search_.h.
56093         * lib/signal.in.h: Renamed from lib/signal_.h.
56094         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56095         _signal.h.
56096         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56097         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56098         stdbool_.h.
56099         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56100         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56101         stdint_.h.
56102         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56103         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56104         stdio_.h.
56105         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56106         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56107         stdlib_.h.
56108         * lib/string.in.h: Renamed from lib/string_.h.
56109         * modules/string (Files, Makefile.am): Use string.in.h instead of
56110         string_.h.
56111         * doc/gnulib-tool.texi (Initial import): Update.
56112         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56113         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56114         of sys_select_.h. Add dependency.
56115         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56116         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56117         of sys_socket_.h.
56118         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56119         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56120         sys_stat_.h.
56121         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56122         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56123         sys_time_.h.
56124         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56125         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56126         sysexits_.h.
56127         * lib/time.in.h: Renamed from lib/time_.h.
56128         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56129         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56130         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56131         unistd_.h.
56132         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56133         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56134         wchar_.h.
56135         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56136         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56137         wctype_.h.
56138         * build-aux/bootstrap (slurp): Update.
56139         * lib/.cppi-disable: Update.
56140
56141 2007-09-30  Bruno Haible  <bruno@clisp.org>
56142
56143         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56144         Needed on BeOS.
56145
56146 2007-09-30  Bruno Haible  <bruno@clisp.org>
56147
56148         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56149
56150 2007-09-29  Bruno Haible  <bruno@clisp.org>
56151
56152         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56153
56154 2007-09-29  Bruno Haible  <bruno@clisp.org>
56155
56156         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56157         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56158         * build-aux/install-reloc: Compile also areadlink.c.
56159         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56160
56161 2007-09-29  Bruno Haible  <bruno@clisp.org>
56162
56163         * gnulib-tool (func_emit_initmacro_done): Indentation.
56164
56165 2007-09-29  Bruno Haible  <bruno@clisp.org>
56166
56167         * README: Add CVS checkout update instructions.
56168         Info from Bob Proulx <bob@proulx.com>.
56169
56170 2007-09-28  Eric Blake  <ebb9@byu.net>
56171
56172         Provide move-if-change.
56173         * build-aux/move-if-change: New file, based on best practice
56174         rather than any canonical upstream location.
56175
56176 2007-09-28  Jim Meyering  <jim@meyering.net>
56177
56178         Fix canonicalize loop-detection corner case.
56179         Do not attempt to stat the symlink values stored via seen_triple.
56180         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56181         on linux-2.6.18, (but not 2.6.22).
56182         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56183         triple_compare.  The former compares dev,ino,filename, while the latter
56184         would actually stat dirname(filename) when dev and ino were equal.
56185         * lib/hash-triple.c: Install <string.h>.
56186         (STREQ): Define.
56187         (triple_compare_ino_str): New function.
56188         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56189
56190 2007-09-28  Eric Blake  <ebb9@byu.net>
56191
56192         Enforce that AC_REPLACE_FUNCS files exist.
56193         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56194         override check for typos.
56195
56196         Fix test-closein on Solaris 10.
56197         * tests/test-closein.c (main): Don't assume stdin can be inherited
56198         closed on all systems.
56199         * tests/test-closein.sh: Likewise.
56200         Reported by Piotr Tarnowski.
56201
56202 2007-09-28  Jim Meyering  <jim@meyering.net>
56203
56204         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56205
56206 2007-09-27  Jim Meyering  <jim@meyering.net>
56207
56208         canonicalize: Avoid a false-positive cycle failure.
56209         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56210         Sort.  Remove cycle-check.
56211         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56212         not cycle-check.h.
56213         (seen_triple): New function.
56214         (canonicalize_filename_mode): Use it instead of cycle-check.
56215         * tests/test-canonicalize.c: Add a test for this bug.
56216         * tests/test-canonicalize.sh: Set up and run the test.
56217
56218         New module, file-set, from coreutils.
56219         * modules/file-set: Define it.
56220         * lib/file-set.c, lib/file-set.h: Implement.
56221
56222         New module, hash-triple, from coreutils.
56223         * modules/hash-triple: Define it.
56224         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56225
56226 2007-09-25  Eric Blake  <ebb9@byu.net>
56227
56228         Fix strerror on Interix.
56229         * lib/string_.h (strerror): Declare replacement.
56230         * doc/functions/strerror.texi (strerror): Document the Interix
56231         shortcoming.
56232         * modules/string (Makefile.am): Support new hooks.
56233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56234         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56235         gl_FUNC_STRERROR_SEPARATE.
56236         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56237         * lib/strerror.c (rpl_strerror): Provide replacement.
56238         * modules/strerror (Depends-on): Add string.
56239         (configure.ac): Detect use of module.
56240         * tests/test-strerror.c: New file.
56241         * modules/strerror-tests: New test module.
56242         * modules/argp (Depends-on): Add strerror.
56243         * modules/error (Depends-on): Likewise.
56244         Reported by Martin Koeppe.
56245
56246 2007-09-24  Bruno Haible  <bruno@clisp.org>
56247
56248         * README: Update git instructions.
56249
56250 2007-09-24  Eric Blake  <ebb9@byu.net>
56251
56252         Revert fpending breakage from 2007-09-08.
56253         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56254         __fpending.c.
56255
56256 2007-09-24  Jim Meyering  <jim@meyering.net>
56257
56258         filenamecat.c: Add a test.
56259         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56260         showing how the function works when DIR is the empty string.
56261
56262 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56263
56264         * tests/test-canonicalize.sh: Turn on executable bit.
56265
56266 2007-09-19  Eric Blake  <ebb9@byu.net>
56267
56268         * README: Update CVS instructions.
56269
56270 2007-09-18  Bruno Haible  <bruno@clisp.org>
56271
56272         * modules/areadlink: New file.
56273         * lib/areadlink.h (areadlink): New declaration.
56274         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56275
56276 2007-09-17  Jim Meyering  <jim@meyering.net>
56277
56278         * lib/savewd.c (ESTALE) [!defined]: Define.
56279         Reported to be required on Interix by Martin Koeppe.
56280
56281 2007-09-17  Bruno Haible  <bruno@clisp.org>
56282
56283         * gnulib-tool (func_version): Use $version.
56284
56285 2007-09-16  Bruno Haible  <bruno@clisp.org>
56286
56287         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56288         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56289         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56290         Reported by Greg Schafer <gschafer@zip.com.au>.
56291
56292 2007-09-15  Bruno Haible  <bruno@clisp.org>
56293
56294         * gnulib-tool (sed): Try a little harder to make bash understand the
56295         alias.
56296         Reported by Bruce Korb <bruce.korb@gmail.com>.
56297
56298 2007-09-13  Eric Blake  <ebb9@byu.net>
56299
56300         * ChangeLog: Remove conflict markers.
56301
56302 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56303
56304         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56305         Reported by Bruno Haible <bruno@clisp.org>.
56306
56307 2007-09-12  Bruno Haible  <bruno@clisp.org>
56308
56309         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56310         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56311         is not defined.
56312
56313 2007-09-12  Eric Blake  <ebb9@byu.net>
56314
56315         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56316         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56317         Autoconf definition.
56318         * modules/euidaccess (Depends-on): Add extensions, for
56319         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56320         * modules/fnmatch (Depends-on): Likewise.
56321         * modules/getaddrinfo (Depends-on): Likewise.
56322         * modules/getdelim (Depends-on): Likewise.
56323         * modules/getline (Depends-on): Likewise.
56324         * modules/getsubopt (Depends-on): Likewise.
56325         * modules/gettext (Depends-on): Likewise.
56326         * modules/group-member (Depends-on): Likewise.
56327         * modules/mbchar (Depends-on): Likewise.
56328         * modules/memmem (Depends-on): Likewise.
56329         * modules/mempcpy (Depends-on): Likewise.
56330         * modules/memrchr (Depends-on): Likewise.
56331         * modules/pagealign_alloc (Depends-on): Likewise.
56332         * modules/readutmp (Depends-on): Likewise.
56333         * modules/stpcpy (Depends-on): Likewise.
56334         * modules/stpncpy (Depends-on): Likewise.
56335         * modules/strchrnul (Depends-on): Likewise.
56336         * modules/strndup (Depends-on): Likewise.
56337         * modules/strsep (Depends-on): Likewise.
56338         * modules/strverscmp (Depends-on): Likewise.
56339         * modules/vasprintf (Depends-on): Likewise.
56340         * modules/wcwidth (Depends-on): Likewise.
56341         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56342         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56343         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56344         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56345         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56346         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56347         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56348         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56349         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56350         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56351         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56352         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56353         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56354         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
56355         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
56356         * m4/readutmp.m4 (gl_READUTMP): Likewise.
56357         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56358         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56359         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56360         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56361         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56362         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56363         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56364         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
56365         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
56366         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56367         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
56368         so that lock.m4 can be used in gettext without extensions module.
56369
56370 2007-09-11  Bruno Haible  <bruno@clisp.org>
56371
56372         * m4/isc-posix.m4: Remove file.
56373         Suggested by Eric Blake.
56374
56375 2007-09-11  Eric Blake  <ebb9@byu.net>
56376
56377         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
56378
56379 2007-09-10  Bruno Haible  <bruno@clisp.org>
56380
56381         * posix-modules: Fix typo in error message.
56382         Reported by Matt <mkraai@beckman.com>.
56383
56384 2007-09-09  Bruno Haible  <bruno@clisp.org>
56385
56386         * doc/functions/getdelim.texi: Update list of platforms lacking the
56387         function.
56388         * doc/functions/getline.texi: Likewise.
56389
56390 2007-09-09  Jim Meyering  <jim@meyering.net>
56391
56392         * lib/hash.c (hash_initialize): Detect calloc failure.
56393         Reported by Bruno Haible.
56394
56395 2007-09-09  Bruno Haible  <bruno@clisp.org>
56396
56397         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
56398         malloc or realloc fails.
56399
56400 2007-09-09  Bruno Haible  <bruno@clisp.org>
56401
56402         * modules/getcwd (Depends-on): Add malloc-posix.
56403         * modules/glob (Depends-on): Likewise.
56404         * modules/putenv (Depends-on): Likewise.
56405         * modules/strdup (Depends-on): Likewise.
56406         * modules/getdelim (Depends-on): Add realloc-posix.
56407         * modules/read-file (Depends-on): Likewise.
56408
56409 2007-09-09  Bruno Haible  <bruno@clisp.org>
56410
56411         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
56412         (gl_FUNC_MALLOC_POSIX): Require it.
56413         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
56414         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
56415         * modules/realloc (Files): Add m4/malloc.m4.
56416         * modules/calloc (Files): Likewise.
56417
56418 2007-09-09  Bruno Haible  <bruno@clisp.org>
56419
56420         * modules/malloc-posix: New file.
56421         * modules/malloc (Depends-on): Add malloc-posix.
56422         * lib/malloc.c: Include errno.h.
56423         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
56424         and a POSIX-compatible malloc into a single function. Set ENOMEM
56425         when returning NULL.
56426         * m4/malloc.m4: New file.
56427         * doc/functions/malloc.texi: Mention the malloc-posix module.
56428         * lib/stdlib_.h (malloc): New declaration.
56429         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56430         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
56431         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
56432         and HAVE_MALLOC_POSIX.
56433
56434 2007-09-09  Bruno Haible  <bruno@clisp.org>
56435
56436         * modules/realloc-posix: New file.
56437         * modules/realloc (Depends-on): Add realloc-posix.
56438         * lib/realloc.c: Include errno.h.
56439         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
56440         and a POSIX-compatible realloc into a single function. Set ENOMEM
56441         when returning NULL.
56442         * m4/realloc.m4: New file.
56443         * doc/functions/realloc.texi: Mention the realloc-posix module.
56444         * lib/stdlib_.h (realloc): New declaration.
56445         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56446         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
56447         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
56448         and HAVE_REALLOC_POSIX.
56449
56450 2007-09-09  Bruno Haible  <bruno@clisp.org>
56451
56452         * modules/calloc-posix: New file.
56453         * modules/calloc (Depends-on): Add calloc-posix.
56454         * lib/calloc.c: Include errno.h.
56455         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56456         and a POSIX-compatible calloc into a single function. Set ENOMEM
56457         when returning NULL.
56458         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56459         * doc/functions/calloc.texi: Mention the calloc-posix module.
56460         * lib/stdlib_.h (calloc): New declaration.
56461         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56462         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56463         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56464         and HAVE_CALLOC_POSIX.
56465
56466 2007-09-09  Bruno Haible  <bruno@clisp.org>
56467
56468         Allow for modules to show an arbitrary notice.
56469         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56470         * gnulib-tool: New option --extract-notice.
56471         (func_usage): Document it.
56472         (sed_extract_prog): Update.
56473         (func_get_notice): New function.
56474         (func_modules_notice): New function.
56475         (func_import, func_create_testdir): Invoke it.
56476         Suggested by Jim Meyering.
56477
56478 2007-09-09  Bruno Haible  <bruno@clisp.org>
56479
56480         * gnulib-tool: New options --verbose, --quiet.
56481         (func_usage): Document them.
56482         (verbose): New variable.
56483         (func_execute_command): New function.
56484         (func_import): Don't show the module list and the file list if
56485         $verbose < 0.
56486         (func_create_testdir): Likewise. Use func_execute_command.
56487         (func_create_megatestdir): Use func_execute_command.
56488
56489 2007-09-08  Bruno Haible  <bruno@clisp.org>
56490
56491         * gnulib-tool (func_import): Prefer rsync over wget when available,
56492         for fetching the PO files.
56493
56494 2007-09-08  Bruno Haible  <bruno@clisp.org>
56495
56496         * posix-modules: New file. Portions copied from gnulib-tool.
56497         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
56498
56499 2007-09-08  Jim Meyering  <jim@meyering.net>
56500
56501         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
56502         * lib/fpending.h: Rename from __fpending.h.
56503         * lib/fpending.c: Rename from __fpending.c.
56504         Include "fpending.h", not "__fpending.h".
56505         * lib/__fpending.h, lib/__fpending.c: Remove files.
56506         * modules/fpending (Files): Reflect new file names.
56507         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
56508
56509 2007-09-08  Bruno Haible  <bruno@clisp.org>
56510
56511         * m4/inttypes-h.m4: Remove stub file.
56512
56513 2007-09-07  Simon Josefsson  <simon@josefsson.org>
56514
56515         * doc/headers/stdint.texi: Discuss #include_next issue.
56516
56517 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56518
56519         * build-aux/bootstrap: Remove obsolete comment about wget --help.
56520
56521 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56522
56523         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56524         in variable name.
56525
56526 2007-09-03  Jim Meyering  <jim@meyering.net>
56527
56528         New module: git-version-gen.
56529         * modules/git-version-gen: New file.
56530
56531         Import changes from coreutils for bootstrap script.
56532
56533         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
56534
56535         bootstrap: uses rsync to download the .po files
56536         * build-aux/bootstrap (po_download_command_format): New global.
56537         (download_po_files): Use rsync.
56538         (update_po_files): Don't remove .po files after download,
56539         so future rsync runs can take advantage of the copies.
56540
56541         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
56542
56543         Solve the unnecessary-.po-file-regeneration problem once and for all.
56544         * build-aux/bootstrap (download_po_files): New function, renamed from
56545         get_translations.  Now, downloads, but doesn't update LINGUAS.
56546         (update_po_files): New function.
56547
56548         bootstrap: Ignore more.
56549         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
56550         uniwidth to e.g., lib/.gitignore.
56551         (slurp): Handle the sys_stat_.h -> sys mapping, too.
56552
56553         * build-aux/bootstrap: New setting: vc_ignore.
56554         (insert_sorted_if_absent): Create $file if absent.
56555         Adapt to new, possibly empty, list: $vc_ignore.
56556
56557         bootstrap: generate more ignorable names
56558         * build-aux/bootstrap (slurp): When generating ignorable names,
56559         also map .sin to .sed, .gperf to .c, and .y to .c.
56560
56561 2007-09-03  Jim Meyering  <jim@meyering.net>
56562
56563         * build-aux/git-version-gen: New file, from coreutils.  For details, see
56564         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
56565
56566 2007-09-02  Bruno Haible  <bruno@clisp.org>
56567
56568         Fix mis-recognition of 'mcs' on QNX 6.
56569         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
56570         output contains the string "Mono".
56571         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
56572         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
56573
56574 2007-09-01  Bruno Haible  <bruno@clisp.org>
56575
56576         Fix collision between uniwidth/* and linebreak modules.
56577         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
56578         u32_width): Remove declarations.
56579         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
56580         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
56581         streq3, streq2, streq1, streq0): Remove functions.
56582         (STREQ): Remove macro.
56583         (is_cjk_encoding): Remove function.
56584         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
56585         (uc_width, u8_width, u16_width, u32_width): Remove functions.
56586         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
56587         * NEWS: Document the change.
56588
56589 2007-09-01  Bruno Haible  <bruno@clisp.org>
56590
56591         * lib/streq.h: Add double-inclusion guard.
56592
56593 2007-09-01  Karl Berry  <karl@gnu.org>
56594
56595         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
56596
56597 2007-08-28  Jim Meyering  <jim@meyering.net>
56598
56599         Rename mreadlink_with_size to areadlink_with_size.
56600         * NEWS: Document the change.
56601         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
56602         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
56603         * lib/mreadlink.h: Rename this to...
56604         * lib/areadlink.h: ...this.
56605         * modules/mreadlink-with-size: Rename this to...
56606         * modules/areadlink-with-size: ...this.
56607         * lib/canonicalize.c: Reflect the renaming.
56608         * modules/canonicalize: Likewise.
56609
56610 2007-08-26  Bruno Haible  <bruno@clisp.org>
56611
56612         * gnulib-tool (func_import): When deciding which files to remove,
56613         consider also dangling symbolic links.
56614         Reported by Eric Blake.
56615
56616 2007-08-26  Bruno Haible  <bruno@clisp.org>
56617
56618         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
56619
56620 2007-08-23  Simon Josefsson  <simon@josefsson.org>
56621
56622         * lib/readline.c: Don't include getline.h, the prototype is now
56623         found in stdio.h.
56624
56625 2007-08-23  Jim Meyering  <jim@meyering.net>
56626
56627         Getdelim touchup.
56628         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
56629         around the funlockfile call, since funlockfile never sets errno.
56630         Don't set errno upon failed realloc.
56631
56632 2007-08-22  Eric Blake  <ebb9@byu.net>
56633
56634         Getline touchups.
56635         * lib/getdelim.c (getdelim): Revert regression that required *n to
56636         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
56637         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
56638         getdelim, rather than whether implementation is missing.
56639         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
56640         * lib/stdio_.h (getline): Also declare if replacement is
56641         required.
56642         * doc/functions/getdelim.texi: New file.
56643         * doc/functions/getline.texi: Likewise.
56644         * doc/gnulib.texi (Function Substitutes): Add new files.
56645         Reported by Bruno Haible.
56646
56647 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
56648
56649         * users.txt: Add Guile.
56650
56651 2007-08-22  Eric Blake  <ebb9@byu.net>
56652
56653         * tests/test-getdelim.c (main): Use remove, not unlink.
56654         * tests/test-getline.c (main): Likewise.
56655
56656         Move getline and getdelim into stdio.h, per POSIX 200x.
56657         * modules/getline (Files): Remove getline.h.
56658         (Depends-on): Add stdio.
56659         (configure.ac): Add module indicator.
56660         * modules/getdelim (Files): Remove getdelim.h.
56661         (Depends-on): Add stdio.
56662         (configure.ac): Add module indicator.
56663         * modules/stdio (Makefile.am): Work with new indicators.
56664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
56665         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
56666         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56667         * lib/getdelim.h: Delete.
56668         * lib/getline.h: Delete.
56669         * lib/stdio_.h (getdelim, getline): Declare.
56670         * modules/getdelim-tests: New module.
56671         * modules/getline-tests: Likewise.
56672         * tests/test-getdelim.c: New file.
56673         * tests/test-getline.c: Likewise.
56674         * NEWS: Document the change.
56675         * lib/getline.c: Update choice of header.
56676         * lib/csharpcomp.c: Likewise.
56677         * lib/getpass.c: Likewise.
56678         * lib/javacomp.c: Likewise.
56679         * lib/javaversion.c: Likewise.
56680         * lib/yesno.c: Likewise.
56681         * lib/getdelim.c: Likewise.
56682         (getdelim): Set errno on failure, and avoid memory leak.
56683
56684 2007-08-19  Bruno Haible  <bruno@clisp.org>
56685
56686         * modules/closein (Depends-on): Add freadahead.
56687         * lib/closein.c: Include freadahead.h.
56688         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
56689         is zero.
56690
56691 2007-08-19  Bruno Haible  <bruno@clisp.org>
56692
56693         * modules/freadahead-tests: New file.
56694         * tests/test-freadahead.sh: New file.
56695         * tests/test-freadahead.c: New file.
56696
56697         * modules/freadahead: New file.
56698         * lib/freadahead.h: New file.
56699         * lib/freadahead.c: New file.
56700         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
56701         fbufmode, fpurge, freadable, fwritable.
56702
56703 2007-08-19  Eric Blake  <ebb9@byu.net>
56704
56705         Test yesno in combination with closein.
56706         * lib/yesno.c (yesno): Document use of stdin.
56707         * modules/yesno-tests (Files): New module.
56708         * tests/test-yesno.c (main): New file.
56709         * tests/test-yesno.sh: Likewise.
56710
56711 2007-08-19  Bruno Haible  <bruno@clisp.org>
56712
56713         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
56714         * lib/fseeko.c (rpl_fseeko): Likewise.
56715         * lib/fseterr.c (fseterr): Likewise.
56716
56717 2007-08-19  Bruno Haible  <bruno@clisp.org>
56718
56719         * tests/test-lseek.c (main): Disable a test for BeOS.
56720         * doc/functions/lseek.texi: Document the BeOS bug.
56721
56722 2007-08-19  Bruno Haible  <bruno@clisp.org>
56723             Eric Blake  <ebb9@byu.net>
56724
56725         * lib/lseek.c: Include <sys/stat.h>.
56726         (rpl_lseek): Add workaround code also for Unix platforms.
56727         Needed for BeOS.
56728         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
56729         * doc/functions/lseek.texi: Document BeOS definiency.
56730
56731 2007-08-18  Bruno Haible  <bruno@clisp.org>
56732
56733         * modules/fstrcmp-tests: New file.
56734         * tests/test-fstrcmp.c: New file.
56735
56736 2007-08-18  Bruno Haible  <bruno@clisp.org>
56737
56738         * modules/fstrcmp: New file, from GNU gettext with modifications.
56739         * lib/fstrcmp.h: New file, from GNU gettext.
56740         * lib/fstrcmp.c: New file, from GNU gettext.
56741         * MODULES.html.sh (String handling): Add fstrcmp.
56742
56743 2007-08-18  Bruno Haible  <bruno@clisp.org>
56744
56745         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
56746         'bool'.
56747         (diag, compareseq): Remove const from the ctxt argument.
56748         (USE_HEURISTIC): Undefine at the end.
56749
56750 2007-08-18  Jim Meyering  <jim@meyering.net>
56751
56752         New file: lib/idcache.h
56753         * NEWS: Mention the addition.
56754         * modules/idcache (Files): Add lib/idcache.h
56755         * lib/idcache.c: Include "idcache.h".
56756         Don't include <sys/types.h>.
56757         Add a FIXME comment.
56758         Move file-scoped "static" declarations to the top.
56759         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
56760
56761 2007-08-17  Bruno Haible  <bruno@clisp.org>
56762         and Paul Eggert  <eggert@cs.ucla.edu>
56763
56764         * MODULES.html.sh: Add diffseq.
56765         * modules/diffseq: New file.
56766         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
56767         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
56768
56769 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56770
56771         Import changes from coreutils for bootstrap script.
56772
56773         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
56774
56775         * build-aux/bootstrap (slurp): Work even in environments where
56776         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
56777         current code does not slurp files whose names start with ".", and
56778         this looks like it might be a troublesome area.
56779
56780         2007-07-11  Jim Meyering  <jim@meyering.net>
56781
56782         If there's a GPL vN copyright comment, require that N == 3.
56783
56784         2007-07-08  Jim Meyering  <jim@meyering.net>
56785
56786         Run the coreutils-specific code only if tests/Makefile.am.in exists.
56787         * build-aux/bootstrap (mam_template): Move definition out of loop.
56788
56789         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
56790
56791         * build-aux/bootstrap (symlink_to_dir): Rename function from
56792         symlink_to_gnulib.  Add a directory parameter.  Update all
56793         callers.
56794         (cp_mark_as_generated): Also check for -- and link to -- files in
56795         gl/.
56796
56797         2007-07-08  Jim Meyering  <jim@meyering.net>
56798
56799         Adapt to deeper hierarchy in gnulib.
56800         * build-aux/bootstrap (symlink_to_dir): If the destination
56801         directory doesn't exist, create it. This is required at least for
56802         "lib/uniwidth/cjk.h".
56803
56804         2007-05-15  Jim Meyering  <jim@meyering.net>
56805
56806         * build-aux/bootstrap: Now that generated Makefile.am files
56807         are no longer under version control, they must be created at
56808         bootstrap time.
56809
56810 2007-08-14  Ben Pfaff  <blp@gnu.org>
56811
56812         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
56813
56814 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56815
56816         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
56817         given the changes below.
56818         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
56819         even on hosts that have padding bits beyond the supported 64.
56820
56821 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56822
56823         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
56824         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
56825         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
56826         depends on it.
56827         (xstrtol_error): Remove.
56828         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
56829         but with a different signature.
56830         (ATTRIBUTE_NORETURN, __attribute__): New macros.
56831         * lib/xstrtol-error.c: Include exitfail.h.
56832         (xstrtol_fatal): New function, with a different signature from the
56833         old xstrtol_error, so that the caller need not worry about passing
56834         in an exit status, or about storage management of the option argument.
56835         (xstrtol_error): Now a static function.  Redo signature to
56836         implement xstrtol_fatal.  Output the correct number of hyphens in
56837         front of the option so that the caller need not worry about
56838         storage management.
56839         (N_): New macro.
56840         (_): Remove; not used now.
56841         * modules/xstrtol: Depend on getopt.
56842         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
56843         of old STRTOL_FATAL_ERROR macro.
56844         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
56845         of test program.
56846         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
56847         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
56848
56849 2007-08-08  Eric Blake  <ebb9@byu.net>
56850
56851         * lib/xstrtol-error.c: Add missing include.
56852
56853         Move xstrtol messages into gnulib domain, when --pobase is used.
56854         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
56855         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
56856         * modules/xstrtol (Files): Distribute new file.
56857         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
56858         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
56859         * tests/test-xstrtol.c: ...into new file.
56860         * tests/test-xstrtoul.c: Also test xstrtoul.
56861         * tests/test-xstrtoimax.c: Also test xstrtoimax.
56862         * tests/test-xstrtoumax.c: Also test xstrtoumax.
56863         * tests/test-xstrtol.sh: Drive the tests.
56864         * tests/test-xstrtoimax.sh: Likewise.
56865         * tests/test-xstrtoumax.sh: Likewise.
56866         * modules/xstrtol-tests: New module.
56867         * modules/xstrtoimax-tests: Likewise.
56868         * modules/xstrtoumax-tests: Likewise.
56869
56870 2007-08-08  Jim Meyering  <jim@meyering.net>
56871
56872         New function: mfile_name_concat.
56873         * lib/filenamecat.c (mfile_name_concat): New function, just like
56874         file_name_concat, but return NULL upon failure rather than exiting
56875         with a diagnostic.
56876         * lib/filenamecat.h: Declare it.
56877
56878 2007-08-07  Bruno Haible  <bruno@clisp.org>
56879
56880         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
56881         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
56882         warning from gcc.
56883         Reported by Eric Blake.
56884
56885 2007-08-07  Simon Josefsson  <simon@josefsson.org>
56886
56887         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
56888         * modules/crypto/arcfour (License): Likewise.
56889         * modules/crypto/des-tests (License): Likewise.
56890         * modules/crypto/gc-arctwo-tests (License): Likewise.
56891         * modules/crypto/gc-des-tests (License): Likewise.
56892         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
56893         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
56894         * modules/crypto/gc-md2-tests (License): Likewise.
56895         * modules/crypto/gc-md4-tests (License): Likewise.
56896         * modules/crypto/gc-md5-tests (License): Likewise.
56897         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
56898         * modules/crypto/gc-rijndael-tests (License): Likewise.
56899         * modules/crypto/gc-sha1-tests (License): Likewise.
56900         * modules/crypto/gc-tests (License): Likewise.
56901         * modules/crypto/hmac-md5 (License): Likewise.
56902         * modules/crypto/hmac-sha1 (License): Likewise.
56903         * modules/crypto/md2-tests (License): Likewise.
56904         * modules/crypto/md4-tests (License): Likewise.
56905         * modules/crypto/md5 (License): Likewise.
56906         * modules/crypto/rijndael (License): Likewise.
56907         * modules/crypto/sha1 (License): Likewise.
56908         * modules/memxor (License): Likewise.
56909
56910 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56911         and Bruno Haible  <bruno@clisp.org>
56912
56913         * NEWS: Describe interface changes to human, xstrtol.
56914         * lib/human.h: Include <xstrtol.h>.
56915         (human_options): Return enum strtol_error, not int.  Remove
56916         bool arg; take int * instead.
56917         * lib/human.c: Don't include "gettext.h".
56918         (_): Remove; no longer used.
56919         Don't include <xstrtol.h>, since human.h does it.
56920         (human_options): Adjust to abovementioned interface changes.
56921         Do not report error to stderr; that's now the caller's
56922         responsibility.
56923         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
56924         interface change.
56925         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
56926         Str, Argument_type_string.  All uses changed.  Put " argument"
56927         in diagnostics to make them clearer.  Change wording of suffix
56928         message for clarity.
56929         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
56930         Argument_type_string.
56931         (STRTOL_FATAL_WARN): Remove; no longer used.
56932         * modules/human (Depends-on): Remove gettext-h.
56933
56934 2007-08-06  Simon Josefsson  <simon@josefsson.org>
56935
56936         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
56937
56938 2007-07-31  Bruno Haible  <bruno@clisp.org>
56939
56940         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
56941         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
56942         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
56943
56944 2007-07-31  Bruno Haible  <bruno@clisp.org>
56945
56946         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
56947         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
56948
56949 2007-07-30  Bruno Haible  <bruno@clisp.org>
56950
56951         * modules/base64 (License): Use the synonymous term "LGPLv2+".
56952         * modules/c-ctype (License): Likewise.
56953         * modules/c-strcase (License): Likewise.
56954         * modules/check-version (License): Likewise.
56955         * modules/iconv (License): Likewise.
56956         * modules/iconv_open (License): Likewise.
56957         * modules/read-file (License): Likewise.
56958         * modules/striconv (License): Likewise.
56959         * modules/strverscmp (License): Likewise.
56960         * modules/vasprintf (License): Likewise.
56961         * modules/crypto/des (License): Likewise.
56962         * modules/crypto/gc (License): Likewise.
56963         * modules/crypto/gc-arcfour (License): Likewise.
56964         * modules/crypto/gc-arctwo (License): Likewise.
56965         * modules/crypto/gc-des (License): Likewise.
56966         * modules/crypto/gc-hmac-md5 (License): Likewise.
56967         * modules/crypto/gc-hmac-sha1 (License): Likewise.
56968         * modules/crypto/gc-md2 (License): Likewise.
56969         * modules/crypto/gc-md4 (License): Likewise.
56970         * modules/crypto/gc-md5 (License): Likewise.
56971         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
56972         * modules/crypto/gc-random (License): Likewise.
56973         * modules/crypto/gc-rijndael (License): Likewise.
56974         * modules/crypto/gc-sha1 (License): Likewise.
56975         * modules/crypto/md2 (License): Likewise.
56976         * modules/crypto/md4 (License): Likewise.
56977
56978 2007-07-30  Jim Meyering  <jim@meyering.net>
56979
56980         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
56981         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
56982         it has valid stat data.  This bug would cause du not to count the
56983         sizes of inaccessible directories.
56984         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
56985         in <http://bugzilla.redhat.com/250077>.
56986
56987 2007-07-25  Peter O'Gorman  <peter@pogma.com>
56988             Bruno Haible  <bruno@clisp.org>
56989
56990         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
56991         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
56992         #include_next, gives a diagnostic about it, but reports no error in
56993         the exit code.
56994         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
56995
56996 2007-07-24  Ben Pfaff  <blp@gnu.org>
56997
56998         Improve name: "count-one-bits" is better than "popcount".
56999         * MODULES.html.sh: Update name.
57000         * lib/popcount.h: Renamed lib/count-one-bits.h.
57001         (popcount): Renamed count_one_bits.
57002         (popcountl): Renamed count_one_bits_l.
57003         (popcountll): Renamed count_one_bits_ll.
57004         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57005         * modules/popcount: Renamed module/count-one-bits.
57006         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57007         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57008
57009 2007-07-23  Ben Pfaff  <blp@gnu.org>
57010
57011         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57012         better code generation, and add U to large constants to avoid
57013         warnings, in non-GCC case.
57014         Suggested by Bruno Haible.
57015
57016 2007-07-23  Ben Pfaff  <blp@gnu.org>
57017
57018         * lib/popcount.h: Use verify_true instead of if...abort.
57019         * modules/popcount: Depend on verify module.
57020         Suggested by Jim Meyering.
57021
57022 2007-07-23  Bruno Haible  <bruno@clisp.org>
57023
57024         * gnulib-tool (func_import): Create a .cvsignore file also when the
57025         directory is not yet in CVS but the toplevel directory is. When
57026         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57027         Reported by Karl Berry.
57028
57029 2007-07-22  Ben Pfaff  <blp@gnu.org>
57030
57031         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57032         case.
57033         Suggested by Eric Blake.
57034
57035 2007-07-22  Ben Pfaff  <blp@gnu.org>
57036
57037         New module: popcount.
57038         * MODULES.html.sh: Add popcount.
57039         * modules/popcount: New file.
57040         * modules/popcount-tests: New file.
57041         * tests/test-popcount.c: New file.
57042         * lib/popcount.h: New file.
57043         * m4/popcount.m4: New file.
57044
57045 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57046
57047         * build-aux/announce-gen: Update to GPLv3.
57048
57049         * build-aux/config.guess: Update from config.
57050
57051 2007-07-21  Bruno Haible  <bruno@clisp.org>
57052
57053         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57054         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57055
57056 2007-07-20  Jim Meyering  <jim@meyering.net>
57057
57058         * check-module: Diagnose a self-dependency.
57059
57060 2007-07-19  Bruno Haible  <bruno@clisp.org>
57061
57062         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57063         empty.
57064         Reported by Eric Blake.
57065
57066 2007-07-18  Bruno Haible  <bruno@clisp.org>
57067
57068         * gnulib-tool: New options --po-base, --po-domain.
57069         (func_usage): Document them.
57070         (pobase, po_domain): New variables.
57071         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57072         DEFAULT_TEXT_DOMAIN.
57073         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57074         (func_import): Consider pobase and po_domain. Create a po/ directory.
57075         (func_create_testdir): Set pobase and po_domain to empty.
57076         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57077         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57078
57079 2007-07-18  Bruno Haible  <bruno@clisp.org>
57080
57081         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57082         EXTRA_DIST augmentation for files in build-aux/.
57083
57084 2007-07-16  Bruno Haible  <bruno@clisp.org>
57085
57086         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57087         * modules/getdelim (License): Likewise.
57088
57089 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57090
57091         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57092         * modules/d-type (License): Likewise.
57093         * modules/extensions (License): Likewise.
57094         * modules/fnmatch (License): Likewise.
57095         * modules/fseeko (License): Likewise.
57096         * modules/getaddrinfo (License): Likewise.
57097         * modules/getline (License): Likewise.
57098         * modules/getlogin_r (License): Likewise.
57099         * modules/getpass (License): Likewise.
57100         * modules/gettimeofday (License): Likewise.
57101         * modules/glob (License): Likewise.
57102         * modules/inet_ntop (License): Likewise.
57103         * modules/malloc (License): Likewise.
57104         * modules/malloca (License): Likewise.
57105         * modules/memmem (License): Likewise.
57106         * modules/mempcpy (License): Likewise.
57107         * modules/memset (License): Likewise.
57108         * modules/minmax (License): Likewise.
57109         * modules/mktime (License): Likewise.
57110         * modules/netinet_in (License): Likewise.
57111         * modules/pathmax (License): Likewise.
57112         * modules/poll (License): Likewise.
57113         * modules/regex (License): Likewise.
57114         * modules/snprintf (License): Likewise.
57115         * modules/stdbool (License): Likewise.
57116         * modules/stdint (License): Likewise.
57117         * modules/stdio (License): Likewise.
57118         * modules/strcase (License): Likewise.
57119         * modules/strcasestr (License): Likewise.
57120         * modules/strdup (License): Likewise.
57121         * modules/string (License): Likewise.
57122         * modules/strndup (License): Likewise.
57123         * modules/strnlen (License): Likewise.
57124         * modules/strpbrk (License): Likewise.
57125         * modules/strptime (License): Likewise.
57126         * modules/strsep (License): Likewise.
57127         * modules/sys_select (License): Likewise.
57128         * modules/sys_socket (License): Likewise.
57129         * modules/sys_stat (License): Likewise.
57130         * modules/sys_time (License): Likewise.
57131         * modules/time (License): Likewise.
57132         * modules/time_r (License): Likewise.
57133         * modules/timegm (License): Likewise.
57134         * modules/unistd (License): Likewise.
57135         * modules/vsnprintf (License): Likewise.
57136         * modules/wctype (License): Likewise.
57137
57138 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57139
57140         * modules/argz (License): LGPLv2+.
57141
57142 2007-07-15  Karl Berry  <karl@gnu.org>
57143
57144         * doc/gnulib.texi: revise node structure per new fdl.texi.
57145
57146 2007-07-14  Bruno Haible  <bruno@clisp.org>
57147
57148         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57149         the output file.
57150         * lib/uniname/uninames.h: Regenerated.
57151
57152 2007-07-14  Karl Berry  <karl@gnu.org>
57153
57154         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57155         omitting sectioning and index commands.
57156
57157 2007-07-13  Bruno Haible  <bruno@clisp.org>
57158
57159         New gnulib-tool option --more-symlinks.
57160         * gnulib-tool (func_usage): Document --more-symlinks.
57161         (do_copyrights): New variable.
57162         Recognize option --more-symlinks.
57163         (func_import): Don't add a copyright notice transform to
57164         sed_transform_lib_file if do_copyrights is empty.
57165
57166 2007-07-13  Bruno Haible  <bruno@clisp.org>
57167
57168         * lib/vasnprintf.c (decimal_point_char): Define also if
57169         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57170         && !NEED_PRINTF_DIRECTIVE_A.
57171         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57172         Gary V. Vaughan <gary@gnu.org>.
57173
57174 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57175
57176         * lib/inttypes_.h: Undo previous change, since it was fixed
57177         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57178
57179 2007-07-13  Bruno Haible  <bruno@clisp.org>
57180
57181         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57182         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57183
57184 2007-07-13  Jim Meyering  <jim@meyering.net>
57185
57186         df: Don't fail for Tru64's "file-on-file mount".
57187         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57188         so we fall through and use statfs instead.  Details here:
57189         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57190         Reported by Albert Chin.
57191
57192 2007-07-13  Bruno Haible  <bruno@clisp.org>
57193
57194         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57195         * modules/configmake (License): Likewise.
57196         * modules/gettext (License): Likewise.
57197         * modules/gettext-h (License): Likewise.
57198         * modules/include_next (License): Likewise.
57199         * modules/link-warning (License): Likewise.
57200         * modules/localcharset (License): Likewise.
57201         * modules/localename (License): Likewise.
57202         * modules/lock (License): Likewise.
57203         * modules/relocatable-lib-lgpl (License): Likewise.
57204         * modules/size_max (License): Likewise.
57205         * modules/vasnprintf (License): Likewise.
57206         * modules/wchar (License): Likewise.
57207         * modules/xsize (License): Likewise.
57208
57209 2007-07-13  Bruno Haible  <bruno@clisp.org>
57210
57211         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57212         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57213
57214 2007-07-12  Bruno Haible  <bruno@clisp.org>
57215
57216         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57217         in the modules files.
57218
57219 2007-07-11  Karl Berry  <karl@gnu.org>
57220
57221         * MODULES.html.sh (func_module): use
57222          sed -e '\|^'"${includefile}"'$|d'
57223          instead of /.../d, to avoid errors on $includefile's containing /.
57224
57225 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57226
57227         * gnulib-tool (func_import): Avoid duplication of --avoid
57228         statements
57229         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57230         names to `_' in variable names.
57231
57232 2007-07-10  Eric Blake  <ebb9@byu.net>
57233
57234         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57235         * NEWS: Document this change.
57236
57237 2007-07-08  Bruno Haible  <bruno@clisp.org>
57238
57239         Update to Unicode 5.0.
57240         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57241         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57242         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57243         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57244         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57245         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57246         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57247         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57248         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57249         U+10A3F, U+1D242..U+1D244.
57250         (nonspacing_table_ind): Update.
57251         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57252         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57253
57254 2007-07-08  Bruno Haible  <bruno@clisp.org>
57255
57256         Update to Unicode 5.0.
57257         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57258         code transform. Extend the name index field of unicode_name_to_code and
57259         unicode_code_to_name from 16 to 24 bits.
57260         * lib/uniname/uniname.c (unicode_character_name,
57261         unicode_name_character): Add the range 0x12xxx to the code transform.
57262         * lib/uniname/uninames.h: Regenerated.
57263         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57264
57265 2007-07-07  Bruno Haible  <bruno@clisp.org>
57266
57267         * modules/wcwidth-tests: New file.
57268         * tests/test-wcwidth.c: New file.
57269
57270         Work around MacOS X wcwidth() bug.
57271         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57272         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57273         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57274         original wcwidth in non-UTF-8 locales.
57275         * modules/wcwidth (Depends-on): Add localcharset, streq,
57276         uniwidth/width.
57277         * doc/functions/wcwidth.texi: Update.
57278
57279 2007-07-07  Bruno Haible  <bruno@clisp.org>
57280
57281         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57282         (wcwidth): New declaration.
57283         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57284         macros.
57285         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57286         here. Prepare for creating <wchar.h> unconditionally.
57287         * modules/wchar (Depends-on): Add link-warning.
57288         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57289         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57290         * lib/wcwidth.h: Remove file.
57291         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57292         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57293         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57294         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57295         (Include): Replace wcwidth.h with <wchar.h>.
57296         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57297         * lib/mbchar.h: Don't include wcwidth.h.
57298         * lib/mbswidth.c: Likewise.
57299         * NEWS: Mention the change.
57300
57301 2007-07-07  Bruno Haible  <bruno@clisp.org>
57302
57303         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57304         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57305         definition with an external declaration.
57306         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57307         defined as a function. Remove AC_C_INLINE requirement.
57308         * modules/wcwidth (Files): Add lib/wcwidth.c.
57309         (Makefile.am): Remove redundant statement.
57310
57311 2007-07-07  Bruno Haible  <bruno@clisp.org>
57312
57313         * MODULES.html.sh (Unicode string functions): Add the new modules.
57314
57315         * tests/uniwidth/test-u32-strwidth.c: New file.
57316         * modules/uniwidth/u32-strwidth-tests: New file.
57317
57318         * lib/uniwidth/u32-strwidth.c: New file.
57319         * modules/uniwidth/u32-strwidth: New file.
57320
57321         * tests/uniwidth/test-u16-strwidth.c: New file.
57322         * modules/uniwidth/u16-strwidth-tests: New file.
57323
57324         * lib/uniwidth/u16-strwidth.c: New file.
57325         * modules/uniwidth/u16-strwidth: New file.
57326
57327         * tests/uniwidth/test-u8-strwidth.c: New file.
57328         * modules/uniwidth/u8-strwidth-tests: New file.
57329
57330         * lib/uniwidth/u8-strwidth.c: New file.
57331         * modules/uniwidth/u8-strwidth: New file.
57332
57333         * tests/uniwidth/test-u32-width.c: New file.
57334         * modules/uniwidth/u32-width-tests: New file.
57335
57336         * lib/uniwidth/u32-width.c: New file.
57337         * modules/uniwidth/u32-width: New file.
57338
57339         * tests/uniwidth/test-u16-width.c: New file.
57340         * modules/uniwidth/u16-width-tests: New file.
57341
57342         * lib/uniwidth/u16-width.c: New file.
57343         * modules/uniwidth/u16-width: New file.
57344
57345         * tests/uniwidth/test-u8-width.c: New file.
57346         * modules/uniwidth/u8-width-tests: New file.
57347
57348         * lib/uniwidth/u8-width.c: New file.
57349         * modules/uniwidth/u8-width: New file.
57350
57351         * tests/uniwidth/test-uc_width.c: New file.
57352         * modules/uniwidth/width-tests: New file.
57353
57354         * lib/uniwidth/width.c: New file, from GNU libiconv.
57355         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
57356         * modules/uniwidth/width: New file.
57357
57358         * lib/uniwidth.h: New file, from GNU libiconv.
57359         * modules/uniwidth/base: New file.
57360
57361 2007-07-07  Bruno Haible  <bruno@clisp.org>
57362
57363         * lib/uniname.h: New file, from GNU gettext.
57364         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
57365         * lib/uniname/uninames.h: New file, from GNU gettext.
57366         * lib/uniname/uniname.c: New file, from GNU gettext.
57367         * tests/uniname/test-uninames.sh: New file.
57368         * tests/uniname/test-uninames.c: New file, from GNU gettext.
57369         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
57370         * modules/uniname/base: New file.
57371         * modules/uniname/uniname: New file.
57372         * modules/uniname/uniname-tests: New file.
57373         * MODULES.html.sh (Unicode string functions): Add the new modules.
57374
57375 2007-07-06  Bruno Haible  <bruno@clisp.org>
57376
57377         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
57378
57379 2007-07-06  Bruno Haible  <bruno@clisp.org>
57380
57381         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
57382         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
57383         includes <cygwin/sys_time.h> which includes <sys/select.h> which
57384         include <sys/time.h>.
57385         Reported by Eric Blake.
57386
57387 2007-07-06  Eric Blake  <ebb9@byu.net>
57388
57389         Fix testing canonicalize on cygwin.
57390         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57391         Revert patch from 2007-06-19.
57392         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
57393         canonicalize module is also in use.
57394         * tests/test-canonicalize.c: New file.
57395         * tests/test-canonicalize.sh: Likewise.
57396         * modules/canonicalize-tests: Likewise.
57397
57398 2007-07-06  Jim Meyering  <jim@meyering.net>
57399
57400         * lib/getugroups.c (getugroups): Detect getgrent failure.
57401         Adjust comment to reflect reality: this function may return -1.
57402
57403 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
57404
57405         * build-aux/bootstrap (TP_URL,get_translations): Update to use
57406         the new TP address.
57407         (usage): Fix typo
57408         (gnulib_mk): New variable.
57409
57410 2007-07-05  Jim Meyering  <jim@meyering.net>
57411
57412         Don't let endgrent clobber errno, no matter how improbable.
57413         * lib/getugroups.c (getugroups): Save and restore errno around
57414         endgrent call.
57415
57416         Close the group DB even when failing with 2^31 or more members.
57417         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
57418
57419 2007-07-04  Jim Meyering  <jim@meyering.net>
57420
57421         * lib/getugroups.h: New file.
57422         * lib/getugroups.c: Include "getugroups.h".
57423         Remove uses of "register" keyword.
57424         Move local variable, "cp", down into scope where used.
57425         Give "username" parameter the "const" attribute.
57426         * modules/getugroups (Files): Add lib/getugroups.h
57427
57428 2007-07-04  Karl Berry  <karl@gnu.org>
57429
57430         * MODULES.html.sh (func_all_modules): Complete rename of
57431         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
57432
57433 2007-07-02  Bruno Haible  <bruno@clisp.org>
57434
57435         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
57436         mode, when inttypes.h comes from gnulib.
57437         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57438
57439 2007-07-02  Simon Josefsson  <simon@josefsson.org>
57440
57441         * NEWS: Mention lgpl module name change.
57442
57443         * modules/lgpl-2.1: Renamed from lgpl.
57444
57445         * NEWS: Mention gpl module name change.
57446
57447         * modules/gpl-3.0: New file, based on gpl-2.0.
57448
57449         * modules/gpl-2.0: Renamed from gpl.
57450
57451         * modules/gpl: Fix filename, doc/gpl.texi is now found at
57452         doc/gpl-2.0.texi.
57453
57454 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57455
57456         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57457         #define __STDC_LIMIT_MACROS temporarily while including
57458         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57459         Problem reported by Joel E. Denny in
57460         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57461
57462 2007-07-01  Bruno Haible  <bruno@clisp.org>
57463
57464         * lib/unistdio.h: New file.
57465         * lib/unistdio/u-asnprintf.h: New file.
57466         * lib/unistdio/u-asprintf.h: New file.
57467         * lib/unistdio/u-printf-args.c: New file.
57468         * lib/unistdio/u-printf-args.h: New file.
57469         * lib/unistdio/u-printf-parse.h: New file.
57470         * lib/unistdio/u-snprintf.h: New file.
57471         * lib/unistdio/u-sprintf.h: New file.
57472         * lib/unistdio/u-vasprintf.h: New file.
57473         * lib/unistdio/u-vsnprintf.h: New file.
57474         * lib/unistdio/u-vsprintf.h: New file.
57475         * lib/unistdio/ulc-asnprintf.c: New file.
57476         * lib/unistdio/ulc-asprintf.c: New file.
57477         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57478         * lib/unistdio/ulc-printf-parse.c: New file.
57479         * lib/unistdio/ulc-snprintf.c: New file.
57480         * lib/unistdio/ulc-sprintf.c: New file.
57481         * lib/unistdio/ulc-vasnprintf.c: New file.
57482         * lib/unistdio/ulc-vasprintf.c: New file.
57483         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57484         * lib/unistdio/ulc-vsnprintf.c: New file.
57485         * lib/unistdio/ulc-vsprintf.c: New file.
57486         * lib/unistdio/u8-asnprintf.c: New file.
57487         * lib/unistdio/u8-asprintf.c: New file.
57488         * lib/unistdio/u8-printf-parse.c: New file.
57489         * lib/unistdio/u8-snprintf.c: New file.
57490         * lib/unistdio/u8-sprintf.c: New file.
57491         * lib/unistdio/u8-vasnprintf.c: New file.
57492         * lib/unistdio/u8-vasprintf.c: New file.
57493         * lib/unistdio/u8-vsnprintf.c: New file.
57494         * lib/unistdio/u8-vsprintf.c: New file.
57495         * lib/unistdio/u8-u8-asnprintf.c: New file.
57496         * lib/unistdio/u8-u8-asprintf.c: New file.
57497         * lib/unistdio/u8-u8-snprintf.c: New file.
57498         * lib/unistdio/u8-u8-sprintf.c: New file.
57499         * lib/unistdio/u8-u8-vasnprintf.c: New file.
57500         * lib/unistdio/u8-u8-vasprintf.c: New file.
57501         * lib/unistdio/u8-u8-vsnprintf.c: New file.
57502         * lib/unistdio/u8-u8-vsprintf.c: New file.
57503         * lib/unistdio/u16-asnprintf.c: New file.
57504         * lib/unistdio/u16-asprintf.c: New file.
57505         * lib/unistdio/u16-printf-parse.c: New file.
57506         * lib/unistdio/u16-snprintf.c: New file.
57507         * lib/unistdio/u16-sprintf.c: New file.
57508         * lib/unistdio/u16-vasnprintf.c: New file.
57509         * lib/unistdio/u16-vasprintf.c: New file.
57510         * lib/unistdio/u16-vsnprintf.c: New file.
57511         * lib/unistdio/u16-vsprintf.c: New file.
57512         * lib/unistdio/u16-u16-asnprintf.c: New file.
57513         * lib/unistdio/u16-u16-asprintf.c: New file.
57514         * lib/unistdio/u16-u16-snprintf.c: New file.
57515         * lib/unistdio/u16-u16-sprintf.c: New file.
57516         * lib/unistdio/u16-u16-vasnprintf.c: New file.
57517         * lib/unistdio/u16-u16-vasprintf.c: New file.
57518         * lib/unistdio/u16-u16-vsnprintf.c: New file.
57519         * lib/unistdio/u16-u16-vsprintf.c: New file.
57520         * lib/unistdio/u32-asnprintf.c: New file.
57521         * lib/unistdio/u32-asprintf.c: New file.
57522         * lib/unistdio/u32-printf-parse.c: New file.
57523         * lib/unistdio/u32-snprintf.c: New file.
57524         * lib/unistdio/u32-sprintf.c: New file.
57525         * lib/unistdio/u32-vasnprintf.c: New file.
57526         * lib/unistdio/u32-vasprintf.c: New file.
57527         * lib/unistdio/u32-vsnprintf.c: New file.
57528         * lib/unistdio/u32-vsprintf.c: New file.
57529         * lib/unistdio/u32-u32-asnprintf.c: New file.
57530         * lib/unistdio/u32-u32-asprintf.c: New file.
57531         * lib/unistdio/u32-u32-snprintf.c: New file.
57532         * lib/unistdio/u32-u32-sprintf.c: New file.
57533         * lib/unistdio/u32-u32-vasnprintf.c: New file.
57534         * lib/unistdio/u32-u32-vasprintf.c: New file.
57535         * lib/unistdio/u32-u32-vsnprintf.c: New file.
57536         * lib/unistdio/u32-u32-vsprintf.c: New file.
57537         * tests/unistdio/test-ulc-asnprintf1.c: New file.
57538         * tests/unistdio/test-ulc-asnprintf1.h: New file.
57539         * tests/unistdio/test-ulc-printf1.h: New file.
57540         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
57541         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
57542         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
57543         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
57544         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
57545         * tests/unistdio/test-ulc-vasprintf1.c: New file.
57546         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
57547         * tests/unistdio/test-ulc-vsprintf1.c: New file.
57548         * tests/unistdio/test-u8-asnprintf1.c: New file.
57549         * tests/unistdio/test-u8-asnprintf1.h: New file.
57550         * tests/unistdio/test-u8-printf1.h: New file.
57551         * tests/unistdio/test-u8-vasnprintf1.c: New file.
57552         * tests/unistdio/test-u8-vasnprintf2.c: New file.
57553         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
57554         * tests/unistdio/test-u8-vasnprintf3.c: New file.
57555         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
57556         * tests/unistdio/test-u8-vasprintf1.c: New file.
57557         * tests/unistdio/test-u8-vsnprintf1.c: New file.
57558         * tests/unistdio/test-u8-vsprintf1.c: New file.
57559         * tests/unistdio/test-u16-asnprintf1.c: New file.
57560         * tests/unistdio/test-u16-asnprintf1.h: New file.
57561         * tests/unistdio/test-u16-printf1.h: New file.
57562         * tests/unistdio/test-u16-vasnprintf1.c: New file.
57563         * tests/unistdio/test-u16-vasnprintf2.c: New file.
57564         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
57565         * tests/unistdio/test-u16-vasnprintf3.c: New file.
57566         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
57567         * tests/unistdio/test-u16-vasprintf1.c: New file.
57568         * tests/unistdio/test-u16-vsnprintf1.c: New file.
57569         * tests/unistdio/test-u16-vsprintf1.c: New file.
57570         * tests/unistdio/test-u32-asnprintf1.c: New file.
57571         * tests/unistdio/test-u32-asnprintf1.h: New file.
57572         * tests/unistdio/test-u32-printf1.h: New file.
57573         * tests/unistdio/test-u32-vasnprintf1.c: New file.
57574         * tests/unistdio/test-u32-vasnprintf2.c: New file.
57575         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
57576         * tests/unistdio/test-u32-vasnprintf3.c: New file.
57577         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
57578         * tests/unistdio/test-u32-vasprintf1.c: New file.
57579         * tests/unistdio/test-u32-vsnprintf1.c: New file.
57580         * tests/unistdio/test-u32-vsprintf1.c: New file.
57581         * modules/unistdio/base: New file.
57582         * modules/unistdio/u-printf-args: New file.
57583         * modules/unistdio/ulc-asnprintf: New file.
57584         * modules/unistdio/ulc-asprintf: New file.
57585         * modules/unistdio/ulc-fprintf: New file.
57586         * modules/unistdio/ulc-printf-parse: New file.
57587         * modules/unistdio/ulc-snprintf: New file.
57588         * modules/unistdio/ulc-sprintf: New file.
57589         * modules/unistdio/ulc-vasnprintf: New file.
57590         * modules/unistdio/ulc-vasprintf: New file.
57591         * modules/unistdio/ulc-vfprintf: New file.
57592         * modules/unistdio/ulc-vsnprintf: New file.
57593         * modules/unistdio/ulc-vsprintf: New file.
57594         * modules/unistdio/u8-asnprintf: New file.
57595         * modules/unistdio/u8-asprintf: New file.
57596         * modules/unistdio/u8-printf-parse: New file.
57597         * modules/unistdio/u8-snprintf: New file.
57598         * modules/unistdio/u8-sprintf: New file.
57599         * modules/unistdio/u8-vasnprintf: New file.
57600         * modules/unistdio/u8-vasprintf: New file.
57601         * modules/unistdio/u8-vsnprintf: New file.
57602         * modules/unistdio/u8-vsprintf: New file.
57603         * modules/unistdio/u8-u8-asnprintf: New file.
57604         * modules/unistdio/u8-u8-asprintf: New file.
57605         * modules/unistdio/u8-u8-snprintf: New file.
57606         * modules/unistdio/u8-u8-sprintf: New file.
57607         * modules/unistdio/u8-u8-vasnprintf: New file.
57608         * modules/unistdio/u8-u8-vasprintf: New file.
57609         * modules/unistdio/u8-u8-vsnprintf: New file.
57610         * modules/unistdio/u8-u8-vsprintf: New file.
57611         * modules/unistdio/u16-asnprintf: New file.
57612         * modules/unistdio/u16-asprintf: New file.
57613         * modules/unistdio/u16-printf-parse: New file.
57614         * modules/unistdio/u16-snprintf: New file.
57615         * modules/unistdio/u16-sprintf: New file.
57616         * modules/unistdio/u16-vasnprintf: New file.
57617         * modules/unistdio/u16-vasprintf: New file.
57618         * modules/unistdio/u16-vsnprintf: New file.
57619         * modules/unistdio/u16-vsprintf: New file.
57620         * modules/unistdio/u16-u16-asnprintf: New file.
57621         * modules/unistdio/u16-u16-asprintf: New file.
57622         * modules/unistdio/u16-u16-snprintf: New file.
57623         * modules/unistdio/u16-u16-sprintf: New file.
57624         * modules/unistdio/u16-u16-vasnprintf: New file.
57625         * modules/unistdio/u16-u16-vasprintf: New file.
57626         * modules/unistdio/u16-u16-vsnprintf: New file.
57627         * modules/unistdio/u16-u16-vsprintf: New file.
57628         * modules/unistdio/u32-asnprintf: New file.
57629         * modules/unistdio/u32-asprintf: New file.
57630         * modules/unistdio/u32-printf-parse: New file.
57631         * modules/unistdio/u32-snprintf: New file.
57632         * modules/unistdio/u32-sprintf: New file.
57633         * modules/unistdio/u32-vasnprintf: New file.
57634         * modules/unistdio/u32-vasprintf: New file.
57635         * modules/unistdio/u32-vsnprintf: New file.
57636         * modules/unistdio/u32-vsprintf: New file.
57637         * modules/unistdio/u32-u32-asnprintf: New file.
57638         * modules/unistdio/u32-u32-asprintf: New file.
57639         * modules/unistdio/u32-u32-snprintf: New file.
57640         * modules/unistdio/u32-u32-sprintf: New file.
57641         * modules/unistdio/u32-u32-vasnprintf: New file.
57642         * modules/unistdio/u32-u32-vasprintf: New file.
57643         * modules/unistdio/u32-u32-vsnprintf: New file.
57644         * modules/unistdio/u32-u32-vsprintf: New file.
57645         * modules/unistdio/ulc-asnprintf-tests: New file.
57646         * modules/unistdio/ulc-vasnprintf-tests: New file.
57647         * modules/unistdio/ulc-vasprintf-tests: New file.
57648         * modules/unistdio/ulc-vsnprintf-tests: New file.
57649         * modules/unistdio/ulc-vsprintf-tests: New file.
57650         * modules/unistdio/u8-asnprintf-tests: New file.
57651         * modules/unistdio/u8-vasnprintf-tests: New file.
57652         * modules/unistdio/u8-vasprintf-tests: New file.
57653         * modules/unistdio/u8-vsnprintf-tests: New file.
57654         * modules/unistdio/u8-vsprintf-tests: New file.
57655         * modules/unistdio/u16-asnprintf-tests: New file.
57656         * modules/unistdio/u16-vasnprintf-tests: New file.
57657         * modules/unistdio/u16-vasprintf-tests: New file.
57658         * modules/unistdio/u16-vsnprintf-tests: New file.
57659         * modules/unistdio/u16-vsprintf-tests: New file.
57660         * modules/unistdio/u32-asnprintf-tests: New file.
57661         * modules/unistdio/u32-vasnprintf-tests: New file.
57662         * modules/unistdio/u32-vasprintf-tests: New file.
57663         * modules/unistdio/u32-vsnprintf-tests: New file.
57664         * modules/unistdio/u32-vsprintf-tests: New file.
57665         * MODULES.html.sh (Unicode string functions): Add the new modules.
57666
57667 2007-07-01  Bruno Haible  <bruno@clisp.org>
57668
57669         * lib/sprintf.c (sprintf): Limit the available length estimation,
57670         to avoid address wraparound.
57671         * lib/vsprintf.c (vsprintf): Likewise.
57672         * modules/sprintf-posix (Dependencies): Add stdint.
57673         * modules/vsprintf-posix (Dependencies): Likewise.
57674
57675 2007-07-01  Bruno Haible  <bruno@clisp.org>
57676
57677         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
57678         Windows PATH as well. Conservative double-quoting. Comments.
57679
57680 2007-07-01  Bruno Haible  <bruno@clisp.org>
57681             Eric Blake  <ebb9@byu.net>
57682             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57683
57684         * gnulib-tool (self_abspathname): Fix algorithm to cope with
57685         empty components in $PATH, denoting '.'.
57686
57687 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57688
57689         * gnulib-tool: Fix indentation.
57690         (func_create_megatestdir): Likewise.
57691         Report by Bruno Haible.
57692
57693 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57694
57695         Sync from Automake.
57696         * build-aux/gnupload: Fix shell portability issues with for loops.
57697         Report by Karl Berry.
57698
57699 2007-06-29  Simon Josefsson  <simon@josefsson.org>
57700
57701         * build-aux/maint.mk (POURL): Use translationproject.org.
57702
57703 2007-06-27  Simon Josefsson  <simon@josefsson.org>
57704             Bruno Haible  <bruno@clisp.org>
57705
57706         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
57707         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
57708         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
57709         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
57710         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
57711
57712 2007-06-27  Bruno Haible  <bruno@clisp.org>
57713
57714         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
57715         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
57716
57717 2007-06-26  Karl Berry  <karl@gnu.org>
57718
57719         * MODULES.html.sh: remove xreadlink-with-size.
57720
57721 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57722
57723         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
57724         method that I hope also handles the double-include problem noted
57725         by Bruno Haible in
57726         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
57727
57728 2007-06-23  Bruno Haible  <bruno@clisp.org>
57729
57730         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57731         Don't let the 'mostlyclean' target fail if the last subdirectory could
57732         not be removed.
57733         Reported by Karl Berry.
57734
57735 2007-06-23  Bruno Haible  <bruno@clisp.org>
57736
57737         * gnulib-tool (echo): Add a speedier workaround for ksh.
57738         * tests/test-echo.sh: Likewise.
57739
57740 2007-06-23  Bruno Haible  <bruno@clisp.org>
57741
57742         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
57743         * tests/test-echo.sh: Likewise.
57744
57745 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57746
57747         * gnulib-tool (IFS): Initialize early, so we don't set it to
57748         empty later.
57749         (self_abspathname): Rewrite algorithm to set it, reindent.
57750         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
57751         (func_create_megatestdir): Merge some sed scripts.
57752
57753 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57754
57755         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
57756         exposed by Sun Studio 11 cc on Solaris 8.
57757
57758 2007-06-22  Bruno Haible  <bruno@clisp.org>
57759
57760         * gnulib-tool (echo): Ensure the echo primitive does not interpret
57761         backslashes.
57762         * tests/test-echo.sh: New file.
57763
57764 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57765
57766         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
57767         simplify `sed_replace_build_aux' scripts, they are portable but
57768         echoing them with `echo' is not.
57769         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
57770
57771 2007-06-21  Karl Berry  <karl@gnu.org>
57772
57773         * config/srclist.txt: guess we can't handle the licenses via
57774         srclist at the moment.
57775
57776 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57777
57778         * MODULES.html.sh: Add include_next.
57779         * modules/include_next: New file.
57780
57781 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57782
57783         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
57784         INCLUDE_NEXT.
57785         (gl_CHECK_NEXT_HEADERS): New macro.
57786         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
57787         the obsolescent gl_ABSOLUTE_HEADER.
57788         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
57789         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
57790         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
57791         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57792         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57793         * m4/math_h.m4 (gl_MATH_H): Likewise.
57794         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57795         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57796         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
57797         * m4/stdint.m4 (gl_STDINT_H): Likewise.
57798         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
57799         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
57800         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
57801         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57802         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57803         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
57804         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57805         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
57806         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
57807         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57808         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57809         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57810         * m4/inttypes.m4 (gl_INTTYPES_H): Define
57811         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
57812         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
57813         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
57814         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
57815         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
57816         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
57817         * lib/float_.h: Likewise.
57818         * lib/inttypes_.h: Likewise.
57819         * lib/math_.h: Likewise.
57820         * lib/search_.h: Likewise.
57821         * lib/signal_.h: Likewise.
57822         * lib/stdint_.h: Likewise.
57823         * lib/stdio_.h: Likewise.
57824         * lib/stdlib_.h: Likewise.
57825         * lib/string_.h: Likewise.
57826         * lib/sys_stat_.h: Likewise.
57827         * lib/sys_time_.h: Likewise.
57828         * lib/time_.h: Likewise.
57829         * lib/unistd_.h: Likewise.
57830         * lib/wchar_.h: Likewise.
57831         * lib/wctype_.h: Likewise.
57832         * lib/dirent_.h: Likewise.
57833         * lib/iconv_.h: Likewise.
57834         * lib/locale_.h: Likewise.
57835         * lib/netinet_in_.h: Likewise.
57836         * lib/sys_select_.h: Likewise.
57837         * lib/sys_socket_.h: Likewise.
57838         * lib/sysexits_.h: Likewise.
57839         * modules/fcntl (Depends-on): Depend on include_next, not
57840         absolute_header.
57841         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
57842         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
57843         * modules/fchdir: Likewise.
57844         * modules/float: Likewise.
57845         * modules/iconv_open: Likewise.
57846         * modules/inttypes: Likewise.
57847         * modules/locale: Likewise.
57848         * modules/math: Likewise.
57849         * modules/netinet_in: Likewise.
57850         * modules/search: Likewise.
57851         * modules/signal: Likewise.
57852         * modules/stdint: Likewise.
57853         * modules/stdio: Likewise.
57854         * modules/stdlib: Likewise.
57855         * modules/string: Likewise.
57856         * modules/sys_select: Likewise.
57857         * modules/sys_socket: Likewise.
57858         * modules/sys_stat: Likewise.
57859         * modules/sys_time: Likewise.
57860         * modules/sysexits: Likewise.
57861         * modules/time: Likewise.
57862         * modules/unistd: Likewise.
57863         * modules/wchar: Likewise.
57864         * modules/wctype: Likewise.
57865         * modules/sys_stat: Change maintainer to "all".
57866         * modules/unistd: Likewise.
57867
57868 2007-06-20  Karl Berry  <karl@gnu.org>
57869
57870         * config/srclist.txt: track www changes in license files.
57871
57872 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
57873
57874         * build-aux/bootstrap: Remove stray dot.
57875         Make sure build_aux settings are honored when linking
57876         gnulib_extra_files.
57877
57878 2007-06-19  Eric Blake  <ebb9@byu.net>
57879
57880         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57881         Allow compilation on cygwin.
57882
57883 2007-06-19  Jim Meyering  <jim@meyering.net>
57884
57885         xreadlink-with-size: Remove module.  No longer used.
57886         Ex-callers now use xreadlink or mreadlink-with-size.
57887         * modules/xreadlink-with-size: Remove module.
57888         * lib/xreadlink-with-size.c: Remove file.
57889         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
57890         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
57891         just before the function definition *is* accurate.
57892
57893         Eliminate one way canonicalize_filename_mode could exit.
57894         * lib/canonicalize.c (canonicalize_filename_mode):
57895         Use mreadlink_with_size, not xreadlink_with_size.
57896
57897 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
57898
57899         Detect porting problems to FreeBSD/arm, which has time_t wider than
57900         long int.  Original problem reported for GNU diff by Xin Li in
57901         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
57902         * modules/getdate (Depends-on): Add intprops, verify.
57903         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
57904         is an integer type no wider than long int.
57905
57906 2007-06-18  Jim Meyering  <jim@meyering.net>
57907
57908         New module: mreadlink-with-size.
57909         * MODULES.html.sh: Add mreadlink-with-size.
57910         * modules/mreadlink-with-size: New module
57911         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
57912         not xreadlink-with-size.
57913         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
57914
57915 2007-06-16  Bruno Haible  <bruno@clisp.org>
57916
57917         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
57918         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
57919         Reported by Gary V. Vaughan <gary@gnu.org>.
57920
57921 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
57922
57923         Revamp lchown so that it lives in unistd.h where it belongs.
57924         * lib/lchown.h: Remove.
57925         * lib/dirchownmod.c: Don't include lib/lchown.h.
57926         * lib/fchownat.c: Likewise.
57927         * lib/openat.c: Likewise.
57928         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
57929         does not follow symlinks.
57930         (EOPNOTSUPP): Define if not defined.
57931         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
57932         is defined to 0.
57933         (lchown): New decl.
57934         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
57935         Do not check for lchown decl.
57936         Set REPLACE_LCHOWN.
57937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
57938         REPLACE_LCHOWN.
57939         * modules/chown: Make it clear it follows symlinks.
57940         * modules/lchown: Make it clear it doesn't follow symlinks.
57941         (Files): Remove lib/lchown.h
57942         (Depends-on): Add unistd.
57943         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
57944         (Include): Include <unistd.h>, not "lchown.h".
57945         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
57946         REPLACE_LCHOWN.
57947
57948 2007-06-15  Jim Meyering  <jim@meyering.net>
57949
57950         Change license (GPL to LGPL) of fsusage and dependents.
57951         * modules/fsusage (License): Change to LGPL.
57952         * modules/full-read (License): Likewise.
57953         * modules/full-write (License): Likewise.
57954         * modules/safe-read (License): Likewise.
57955         * modules/safe-write (License): Likewise.
57956
57957 2007-06-14  Ben Pfaff  <blp@gnu.org>
57958
57959         Missing part of allocsa -> malloca transition.
57960         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
57961         gl_MALLOCA.
57962
57963 2007-06-12  Bruno Haible  <bruno@clisp.org>
57964
57965         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
57966         to ia64, x86_64, i386.
57967         Reported by Eric Blake.
57968
57969 2007-06-12  Bruno Haible  <bruno@clisp.org>
57970
57971         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
57972         cross-compiling to x86_64.
57973
57974 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
57975
57976         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
57977         glitch reported by Ralf Wildenhues in
57978         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
57979
57980         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
57981         Vin Shelton.
57982
57983 2007-06-11  Bruno Haible  <bruno@clisp.org>
57984
57985         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
57986         replacement string.
57987         Reported by Eric Blake.
57988
57989 2007-06-10  Bruno Haible  <bruno@clisp.org>
57990
57991         Prepare vasnprintf code for use with Unicode strings.
57992         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
57993         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
57994         TYPE_U32_STRING.
57995         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
57996         a_u32_string variants.
57997         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57998         * lib/printf-args.c: Don't include config.h and the specification
57999         header if PRINTF_FETCHARGS is already defined.
58000         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58001         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58002         TYPE_U16_STRING, TYPE_U32_STRING.
58003         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58004         u16_directive, u16_directives, u32_directive, u32_directives): New
58005         types.
58006         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58007         New declarations.
58008         * lib/printf-parse.c: Don't include config.h and the specification
58009         header if PRINTF_PARSE is already defined. Eliminate the set of
58010         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58011         them now. Include c-ctype.h.
58012         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58013         directive and CHAR_T_ONLY_ASCII.
58014         * lib/vasnprintf.c: Don't include config.h and the specification header
58015         if VASNPRINTF is already defined.
58016         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58017         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58018         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58019         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58020         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58021         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58022         code accordingly.
58023         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58024         pad_ourselves also in this case, with the 'c' and 's' directives, and
58025         with a different notion of "width".
58026         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58027
58028 2007-06-10  Bruno Haible  <bruno@clisp.org>
58029
58030         * modules/unistr/u32-mbsnlen: New file.
58031         * lib/unistr/u32-mbsnlen.c: New file.
58032
58033         * modules/unistr/u16-mbsnlen: New file.
58034         * lib/unistr/u16-mbsnlen.c: New file.
58035
58036         * modules/unistr/u8-mbsnlen: New file.
58037         * lib/unistr/u8-mbsnlen.c: New file.
58038
58039         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58040         declarations.
58041
58042 2007-06-10  Bruno Haible  <bruno@clisp.org>
58043
58044         * lib/string_.h (mbsnlen): New declaration.
58045         * lib/mbsnlen.c: New file.
58046         * m4/mbsnlen.m4: New file.
58047         * modules/mbsnlen: New file.
58048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58049         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58050         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58051
58052 2007-06-10  Bruno Haible  <bruno@clisp.org>
58053
58054         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58055
58056 2007-06-10  Bruno Haible  <bruno@clisp.org>
58057
58058         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58059         * lib/mbuiter.h: Likewise.
58060
58061 2007-06-10  Bruno Haible  <bruno@clisp.org>
58062
58063         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58064         declaration.
58065
58066 2007-06-10  Karl Berry  <karl@gnu.org>
58067
58068         * config/srclist.txt: remove gettext entries, Bruno prefers
58069         to update individually.
58070
58071 2007-06-10  Bruno Haible  <bruno@clisp.org>
58072
58073         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58074         'maxlen'. Ensure only length + width bytes are allocated, not
58075         length + 1 + width.
58076
58077 2007-06-09  Bruno Haible  <bruno@clisp.org>
58078
58079         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58080         (CHAR_T): Remove macro.
58081         (VASNPRINTF): Update.
58082
58083 2007-06-09  Bruno Haible  <bruno@clisp.org>
58084
58085         * MODULES.html.sh (Unicode string functions): Add the new modules.
58086
58087         * modules/uniconv/u32-conv-to-enc: New file.
58088         * lib/uniconv/u32-conv-to-enc.c: New file.
58089         * modules/uniconv/u32-conv-to-enc-tests: New file.
58090         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58091
58092         * modules/uniconv/u16-conv-to-enc: New file.
58093         * lib/uniconv/u16-conv-to-enc.c: New file.
58094         * lib/uniconv/u-conv-to-enc.h: New file.
58095         * modules/uniconv/u16-conv-to-enc-tests: New file.
58096         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58097
58098         * modules/uniconv/u8-conv-to-enc: New file.
58099         * lib/uniconv/u8-conv-to-enc.c: New file.
58100         * modules/uniconv/u8-conv-to-enc-tests: New file.
58101         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58102
58103         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58104         u32_conv_to_encoding): New declarations.
58105
58106 2007-06-09  Bruno Haible  <bruno@clisp.org>
58107
58108         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58109
58110 2007-06-09  Bruno Haible  <bruno@clisp.org>
58111
58112         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58113         * modules/malloca: Renamed from modules/allocsa, updated.
58114         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58115         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58116         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58117         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58118         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58119         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58120         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58121         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58122         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58123         * modules/c-strcasestr (Depends-on): Update.
58124         * lib/c-strcasestr.c: Update.
58125         * modules/c-strstr (Depends-on): Update.
58126         * lib/c-strstr.c: Update.
58127         * modules/canonicalize-lgpl (Depends-on): Update.
58128         * lib/canonicalize-lgpl.c: Update.
58129         * modules/clean-temp (Depends-on): Update.
58130         * lib/clean-temp.c: Update.
58131         * modules/csharpcomp (Depends-on): Update.
58132         * lib/csharpcomp.c: Update.
58133         * modules/csharpexec (Depends-on): Update.
58134         * lib/csharpexec.c: Update.
58135         * modules/javacomp (Depends-on): Update.
58136         * lib/javacomp.c: Update.
58137         * modules/javaexec (Depends-on): Update.
58138         * lib/javaexec.c: Update.
58139         * modules/mbscasestr (Depends-on): Update.
58140         * lib/mbscasestr.c: Update.
58141         * modules/mbsstr (Depends-on): Update.
58142         * lib/mbsstr.c: Update.
58143         * modules/setenv (Depends-on): Update.
58144         * lib/setenv.c: Update.
58145         * modules/strcasestr (Depends-on): Update.
58146         * lib/strcasestr.c: Update.
58147         * modules/striconveha (Depends-on): Update.
58148         * lib/striconveha.c: Update.
58149         * modules/relocatable-prog-wrapper (Files): Update.
58150         * lib/relocwrapper.c: Update.
58151         * build-aux/install-reloc: Update.
58152         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58153
58154 2007-06-08  Bruno Haible  <bruno@clisp.org>
58155
58156         Port to uClibc.
58157         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58158         * lib/fpurge.c (fpurge): Likewise.
58159         * lib/freading.c (freading): Likewise.
58160         * lib/fseeko.c (rpl_fseeko): Likewise.
58161         * lib/fseterr.c (fseterr): Likewise.
58162         * lib/fwriting.c (fwriting): Likewise.
58163         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58164
58165 2007-06-08  Bruno Haible  <bruno@clisp.org>
58166
58167         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58168         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58169         * modules/gettext (Files): Add m4/intlmacosx.m4.
58170
58171 2007-06-07  Bruno Haible  <bruno@clisp.org>
58172
58173         * modules/localename-tests: New file.
58174         * tests/test-localename.c: New file.
58175
58176         New module 'localename'.
58177         * lib/localename.h: New file.
58178         * lib/localename.c: New file, from GNU gettext.
58179         * m4/localename.m4: New file.
58180         * modules/localename: New file.
58181
58182 2007-06-07  Bruno Haible  <bruno@clisp.org>
58183
58184         Work around the lack of <wchar.h> on some builds of uClibc.
58185         * doc/headers/wchar.texi: Update.
58186         * lib/wchar_.h: Include <wchar.h> only if it exists.
58187         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58188         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58189         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58190         doesn't exist.
58191         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58192         * modules/mbfile (Depends-on): Add wchar.
58193         * modules/mbiter (Depends-on): Likewise.
58194         * modules/mbuiter (Depends-on): Likewise.
58195         Reported by Simon Josefsson.
58196
58197 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58198
58199         Work around problem reported by Steven M. Schweda in
58200         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58201         Tru64 5.1B with the Compaq compiler environment installed declares
58202         an 'isblank' function but does not define it in the C library.
58203         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58204         * lib/regex_internal.h (isblank): Likewise.
58205         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58206         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58207
58208 2007-06-05  Bruno Haible  <bruno@clisp.org>
58209
58210         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58211         ia64.
58212         * modules/printf-safe: New file.
58213         * modules/fprintf-posix (Depends-on): Add printf-safe.
58214         * modules/printf-posix (Depends-on): Likewise.
58215         * modules/snprintf-posix (Depends-on): Likewise.
58216         * modules/sprintf-posix (Depends-on): Likewise.
58217         * modules/vasnprintf-posix (Depends-on): Likewise.
58218         * modules/vasprintf-posix (Depends-on): Likewise.
58219         * modules/vfprintf-posix (Depends-on): Likewise.
58220         * modules/vprintf-posix (Depends-on): Likewise.
58221         * modules/vsnprintf-posix (Depends-on): Likewise.
58222         * modules/vsprintf-posix (Depends-on): Likewise.
58223         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58224         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58225         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58226         "no" on i386, x86_64, ia64.
58227         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58228         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58229         on i386, x86_64, ia64.
58230         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58231         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58232         on i386, x86_64, ia64.
58233         * tests/test-vasnprintf-posix.c: Include float.h.
58234         (LDBL80_WORDS): New macro.
58235         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58236         on i386, x86_64, ia64.
58237         * tests/test-vasprintf-posix.c: Include float.h.
58238         (LDBL80_WORDS): New macro.
58239         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58240         on i386, x86_64, ia64.
58241         * tests/test-snprintf-posix.c: Include float.h.
58242         * tests/test-sprintf-posix.c: Likewise.
58243         * tests/test-vsnprintf-posix.c: Likewise.
58244         * tests/test-vsprintf-posix.c: Likewise.
58245
58246 2007-06-05  Bruno Haible  <bruno@clisp.org>
58247
58248         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58249         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58250         non-IEEE numbers on i386, x86_64, ia64.
58251         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58252         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58253         * tests/test-isnanl.h: Include float.h.
58254         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58255
58256 2007-06-05  Bruno Haible  <bruno@clisp.org>
58257
58258         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58259         also the %a / %A. Handle the %a / %A code before this extra handling.
58260
58261 2007-06-05  Bruno Haible  <bruno@clisp.org>
58262
58263         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58264         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58265
58266 2007-06-05  Bruno Haible  <bruno@clisp.org>
58267
58268         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58269         typo in variable name.
58270
58271 2007-06-05  Eric Blake  <ebb9@byu.net>
58272
58273         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58274         Reported by Simon Josefsson.
58275
58276 2007-06-04  Bruno Haible  <bruno@clisp.org>
58277
58278         Avoid test failures on some PowerPC platforms.
58279         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58280         Define differently for PowerPC.
58281         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58282         Reported by Gary V. Vaughan <gary@gnu.org>.
58283
58284 2007-06-02  Bruno Haible  <bruno@clisp.org>
58285
58286         Fix test-stdint failure on FreeBSD/ia64.
58287         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58288         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58289         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58290         * doc/headers/stdint.texi: Update.
58291
58292 2007-06-01  Bruno Haible  <bruno@clisp.org>
58293
58294         * tests/test-binary-io.c (main): Pass a third argument to open().
58295         Reported by Gary V. Vaughan <gary@gnu.org>.
58296
58297 2007-06-01  Bruno Haible  <bruno@clisp.org>
58298
58299         * doc/functions/frexpl.texi: Update for mingw.
58300
58301 2007-06-01  Bruno Haible  <bruno@clisp.org>
58302
58303         * tests/test-lseek.c (main): Disable test of errno for invalid third
58304         argument.
58305         * doc/functions/lseek.texi: Update.
58306         Reported by Gary V. Vaughan <gary@gnu.org>.
58307
58308 2007-05-28  Bruno Haible  <bruno@clisp.org>
58309
58310         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58311
58312 2007-05-31  Eric Blake  <ebb9@byu.net>
58313
58314         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58315         cross compiling.
58316
58317 2007-05-30  Eric Blake  <ebb9@byu.net>
58318         and Bruno Haible  <bruno@clisp.org>
58319
58320         Work around mingw test failures exposed by m4-1.4.9b.
58321         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58322         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58323         moment.
58324
58325 2007-05-30  Bruno Haible  <bruno@clisp.org>
58326
58327         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58328         assuming that they are closed. Needed on HP-UX 11.
58329
58330 2007-05-29  Bruno Haible  <bruno@clisp.org>
58331
58332         Fix a problem with #include_next.
58333         * lib/dirent_.h: Split the double-inclusion guard.
58334         * lib/fcntl_.h: Likewise.
58335         * lib/float_.h: Likewise.
58336         * lib/iconv_.h: Likewise.
58337         * lib/inttypes_.h: Likewise.
58338         * lib/locale_.h: Likewise.
58339         * lib/math_.h: Likewise.
58340         * lib/netinet_in_.h: Likewise.
58341         * lib/search_.h: Likewise.
58342         * lib/signal_.h: Likewise.
58343         * lib/stdint_.h: Likewise.
58344         * lib/stdio_.h: Likewise.
58345         * lib/stdlib_.h: Likewise.
58346         * lib/string_.h: Likewise.
58347         * lib/sys_select_.h: Likewise.
58348         * lib/sys_socket_.h: Likewise.
58349         * lib/sys_stat_.h: Likewise.
58350         * lib/sys_time_.h: Likewise.
58351         * lib/sysexits_.h: Likewise.
58352         * lib/time_.h: Likewise.
58353         * lib/unistd_.h: Likewise.
58354         * lib/wchar_.h: Likewise.
58355         * lib/wctype_.h: Likewise.
58356
58357 2007-05-29  Bruno Haible  <bruno@clisp.org>
58358
58359         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
58360         for the moment.
58361
58362 2007-05-29  Bruno Haible  <bruno@clisp.org>
58363
58364         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
58365         invocation.
58366         Reported by Eric Blake.
58367
58368 2007-05-29  Bruno Haible  <bruno@clisp.org>
58369
58370         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
58371         compiling case.
58372
58373 2007-05-29  Eric Blake  <ebb9@byu.net>
58374             Bruno Haible  <bruno@clisp.org>
58375
58376         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
58377         cross compiles.
58378
58379 2007-05-28  Eric Blake  <ebb9@byu.net>
58380
58381         * modules/closein-tests (test_closein_LDADD): Support test on
58382         cygwin with libtool.
58383
58384 2007-05-28  Bruno Haible  <bruno@clisp.org>
58385
58386         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
58387         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58388         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58389         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58390         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58391         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58392         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58393         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58394         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58395
58396 2007-05-28  Eric Blake  <ebb9@byu.net>
58397
58398         Unconditionally include <config.h> in unit tests.
58399         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
58400         * tests/test-allocsa.c, tests/test-arcfour.c,
58401         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
58402         tests/test-array_list.c, tests/test-array_oset.c,
58403         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
58404         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
58405         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
58406         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
58407         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
58408         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
58409         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
58410         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
58411         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
58412         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
58413         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
58414         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
58415         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
58416         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
58417         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
58418         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
58419         test-md5.c, test-memmem.c, test-printf-posix.c,
58420         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
58421         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
58422         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
58423         test-strcasestr.c, test-striconv.c, test-striconveh.c,
58424         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
58425         test-vasnprintf-posix2.c, test-vasnprintf.c,
58426         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
58427         test-vfprintf-posix.c, test-vprintf-posix.c,
58428         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
58429         test-xvasprintf.c: Likewise.
58430
58431 2007-05-28  Bruno Haible  <bruno@clisp.org>
58432
58433         * gnulib-tool (func_import): Remember the --with-tests command-line
58434         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
58435         Reported by Eric Blake.
58436
58437 2007-05-28  Bruno Haible  <bruno@clisp.org>
58438
58439         * modules/ftell-tests: New file.
58440         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
58441         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
58442
58443         * lib/ftell.c: New file.
58444         * modules/ftell: New file.
58445         * m4/ftell.m4: New file.
58446         * doc/functions/ftell.texi: Update.
58447         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
58448         REPLACE_FTELL.
58449         * lib/stdio_.h (rpl_ftell): New declaration.
58450         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
58451         REPLACE_FTELL.
58452
58453 2007-05-28  Eric Blake  <ebb9@byu.net>
58454
58455         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58456
58457 2007-05-28  Bruno Haible  <bruno@clisp.org>
58458
58459         * modules/fseek-tests: New file.
58460         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58461         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58462
58463         * lib/fseek.c: New file.
58464         * modules/fseek: New file.
58465         * m4/fseek.m4: New file.
58466         * doc/functions/fseek.texi: Update.
58467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58468         REPLACE_FSEEK.
58469         * lib/stdio_.h (rpl_fseek): New declaration.
58470         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58471         REPLACE_FSEEK.
58472
58473 2007-05-28  Bruno Haible  <bruno@clisp.org>
58474
58475         * lib/stdio_.h (fflush): More comments.
58476
58477 2007-05-28  Bruno Haible  <bruno@clisp.org>
58478
58479         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58480         runtime test.
58481
58482 2007-05-28  Eric Blake  <ebb9@byu.net>
58483
58484         Improve lseek module.
58485         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
58486         * lib/unistd_.h (lseek): Scale back link warning message.
58487         * tests/test-lseek.c: Beef up test.
58488         * tests/test-lseek.sh: Exercise more facets of lseek.
58489         Reported by Bruno Haible.
58490
58491 2007-05-28  Bruno Haible  <bruno@clisp.org>
58492
58493         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
58494         to define.
58495
58496 2007-05-27  Bruno Haible  <bruno@clisp.org>
58497
58498         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
58499
58500 2007-05-27  Bruno Haible  <bruno@clisp.org>
58501
58502         * modules/openmp: New file.
58503         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
58504         Noah Misch.
58505
58506 2007-05-26  Bruno Haible  <bruno@clisp.org>
58507
58508         * modules/chdir-long (Depends-on): Add fchdir.
58509         * modules/chdir-safer (Depends-on): Likewise.
58510         * modules/fts (Depends-on): Likewise.
58511         * modules/fts-lgpl (Depends-on): Likewise.
58512         * modules/openat (Depends-on): Likewise.
58513         * modules/savewd (Depends-on): Likewise.
58514
58515 2007-05-24  Eric Blake  <ebb9@byu.net>
58516
58517         Fix lseek on mingw.
58518         * modules/lseek: New module.
58519         * m4/lseek.m4: New file.
58520         * lib/lseek.c: New file.
58521         * modules/lseek-tests: New file.
58522         * tests/test-lseek.c: New file.
58523         * tests/test-lseek.sh: New file.
58524         * MODULES.html.sh: Document lseek module.
58525         * modules/fflush (Depends-on): Add lseek, fseeko.
58526         * modules/fseeko (Depends-on): Likewise.
58527         * modules/ftello (Depends-on): Likewise.
58528         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
58529         broken.
58530         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
58531         broken.
58532         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
58533         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
58534         * lib/ftello.c (rpl_ftello): Likewise.
58535         * tests/test-fseeko.c (main): Test this.
58536         * tests/test-fseeko.sh: Likewise.
58537         * tests/test-ftello.c (main): Likewise.
58538         * tests/test-ftello.sh: Likewise.
58539         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
58540         implies replacing fseek.
58541         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
58542         HAVE_FTELLO.
58543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
58544         * modules/unistd (Makefile.am): Likewise.
58545         * lib/unistd_.h (lseek): Declare a replacement.
58546         * doc/functions/lseek.texi (lseek): Document this fix.
58547         * doc/functions/fseek.texi (fseek): Likewise.
58548         * doc/functions/ftell.texi (ftell): Likewise.
58549
58550 2007-05-24  Bruno Haible  <bruno@clisp.org>
58551
58552         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
58553         in the printed representation of a NaN.
58554         * tests/test-vasprintf-posix.c (test_function): Likewise.
58555         * tests/test-snprintf-posix.h (test_function): Likewise.
58556         * tests/test-sprintf-posix.h (test_function): Likewise.
58557         Reported by Eric Blake.
58558
58559 2007-05-23  Eric Blake  <ebb9@byu.net>
58560
58561         Fix fseeko/ftello on cygwin 1.5.24.
58562         * doc/functions/fseeko.texi (fseeko): Document the fix.
58563         * doc/functions/ftello.texi (ftello): Document the fix.
58564         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
58565         * doc/functions/stdout.text (stdout): New file.
58566         * doc/functions/stderr.text (stderr): New file.
58567         * doc/gnulib.texi (Function Substitutes): Use new files.
58568         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
58569         prior to 1.7.0.
58570         * tests/test-ftello.c (main): Likewise for ftello.
58571         * tests/test-fseeko.sh: New file.
58572         * tests/test-ftello.sh: New file.
58573         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
58574         with seekable stdin.
58575         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
58576         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
58577         (gl_REPLACE_FSEEKO): New macro.
58578         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
58579         * modules/fseeko (Files): Distribute fseeko.c.
58580         * modules/ftello (Files): Distribute ftello.c.
58581         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
58582         mode.
58583         * lib/ftello.c (rpl_ftello): New file.
58584         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
58585         fseeko, ftello.
58586         (gl_STDIN_LARGE_OFFSET): New macro.
58587         * modules/stdio (Makefile.am): Perform the replacement.
58588         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
58589
58590 2007-05-23  Bruno Haible  <bruno@clisp.org>
58591
58592         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
58593         GNULIB_POSIXCHECK is defined.
58594
58595 2007-05-21  Bruno Haible  <bruno@clisp.org>
58596
58597         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
58598         Check also the output for NaN arguments. When cross-compiling, guess
58599         no on IRIX.
58600         * lib/vasnprintf.c: Update comments.
58601         * tests/test-vasnprintf-posix.c (strisnan): New function.
58602         (test_function): Use it.
58603         * tests/test-vasprintf-posix.c (strisnan): New function.
58604         (test_function): Use it.
58605         * tests/test-snprintf-posix.h (strisnan): New function.
58606         (test_function): Use it.
58607         * tests/test-sprintf-posix.h (strisnan): New function.
58608         (test_function): Use it.
58609         Reported by Eric Blake.
58610
58611 2007-05-20  Bruno Haible  <bruno@clisp.org>
58612
58613         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
58614         numbers that fails on BeOS.
58615         * doc/functions/frexpl.texi: Update.
58616
58617 2007-05-20  Jim Meyering  <jim@meyering.net>
58618
58619         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
58620         forced upon us by glibc-2.6.
58621
58622 2007-05-20  Bruno Haible  <bruno@clisp.org>
58623
58624         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
58625         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
58626         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
58627         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
58628         NEED_PRINTF_INFINITE.
58629         (is_infinitel): New function.
58630         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
58631         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
58632         gl_PREREQ_VASNPRINTF_INFINITE.
58633         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
58634         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58635         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
58636         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
58637         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
58638         gl_PREREQ_VASNPRINTF_INFINITE.
58639         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58640         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58641         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58642         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58643         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58644         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58645         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58646         * doc/functions/fprintf.texi: Update.
58647         * doc/functions/printf.texi: Update.
58648         * doc/functions/snprintf.texi: Update.
58649         * doc/functions/sprintf.texi: Update.
58650         * doc/functions/vfprintf.texi: Update.
58651         * doc/functions/vprintf.texi: Update.
58652         * doc/functions/vsnprintf.texi: Update.
58653         * doc/functions/vsprintf.texi: Update.
58654
58655 2007-05-20  Bruno Haible  <bruno@clisp.org>
58656
58657         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
58658         was not found in libc.
58659         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58660
58661 2007-05-20  Bruno Haible  <bruno@clisp.org>
58662
58663         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58664         printed as "-nan" instead of "nan".
58665         * tests/test-vasprintf-posix.c (test_function): Likewise.
58666         * tests/test-snprintf-posix.h (test_function): Likewise.
58667         * tests/test-sprintf-posix.h (test_function): Likewise.
58668         Needed for HP-UX 11.
58669
58670 2007-05-20  Jim Meyering  <jim@meyering.net>
58671
58672         Fix buggy test for the fchownat-deref bug.
58673         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
58674         symlink required for the run-test.  Without it, this test would
58675         always declare that fchownat doesn't work, and client code would
58676         unnecessarily use the replacement function with fixed libc.
58677         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
58678         Reported by Greg Schafer.
58679
58680 2007-05-19  Bruno Haible  <bruno@clisp.org>
58681
58682         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
58683         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
58684         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
58685         Needed for IRIX 6.5 and Solaris 2.5.1.
58686
58687 2007-05-19  Bruno Haible  <bruno@clisp.org>
58688
58689         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
58690         (test_function): Skip tests involving -0.0 on platforms where
58691         -0.0 = 0.0.
58692         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
58693         (test_function): Skip tests involving -0.0 on platforms where
58694         -0.0 = 0.0.
58695         * tests/test-snprintf-posix.h (have_minus_zero): New function.
58696         (test_function): Skip tests involving -0.0 on platforms where
58697         -0.0 = 0.0.
58698         * tests/test-sprintf-posix.h (have_minus_zero): New function.
58699         (test_function): Skip tests involving -0.0 on platforms where
58700         -0.0 = 0.0.
58701         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
58702         tests.
58703         * tests/test-printf-posix.h (test_function): Likewise.
58704         * tests/test-printf-posix.output: Remove all -0.0 related results.
58705         Needed for IRIX 6.5.
58706
58707 2007-05-19  Bruno Haible  <bruno@clisp.org>
58708
58709         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58710         printed as "nan0x7fffffff" instead of "nan".
58711         * tests/test-vasprintf-posix.c (test_function): Likewise.
58712         * tests/test-snprintf-posix.h (test_function): Likewise.
58713         * tests/test-sprintf-posix.h (test_function): Likewise.
58714         * tests/test-fprintf-posix.h (NaN): Remove macro.
58715         (test_function): Remove all NaN related tests.
58716         * tests/test-printf-posix.h (NaN): Remove macro.
58717         (test_function): Remove all NaN related tests.
58718         * tests/test-printf-posix.output: Remove all NaN related results.
58719         Needed for IRIX 6.5.
58720
58721 2007-05-19  Bruno Haible  <bruno@clisp.org>
58722
58723         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
58724         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
58725
58726 2007-05-19  Bruno Haible  <bruno@clisp.org>
58727
58728         * lib/float_.h: New file.
58729         * m4/float_h.m4: New file.
58730         * modules/float: New file.
58731         * modules/isnanl (Dependencies): Add float.
58732         * modules/isnanl-nolibm (Dependencies): Likewise.
58733         * modules/mathl (Dependencies): Likewise.
58734         * modules/printf-frexpl (Dependencies): Likewise.
58735         * modules/signbit (Dependencies): Likewise.
58736         * modules/vasnprintf (Dependencies): Likewise.
58737         * doc/headers/float.texi: Update.
58738
58739 2007-05-19  Jim Meyering  <jim@meyering.net>
58740
58741         * lib/utimens.c (gl_futimens): Rename from futimens,
58742         now that glibc-2.6 declares futimens.
58743         * lib/utimens.h: Likewise.
58744
58745 2007-05-19  Bruno Haible  <bruno@clisp.org>
58746
58747         Avoid test failures on mingw.
58748         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
58749         * tests/test-printf-posix.sh: Likewise.
58750         * tests/test-vfprintf-posix.sh: Likewise.
58751         * tests/test-vprintf-posix.sh: Likewise.
58752
58753 2007-05-19  Bruno Haible  <bruno@clisp.org>
58754
58755         Fix *printf result for NaN, Inf, -0.0 on mingw.
58756         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
58757         * lib/vasnprintf.c: Include math.h and isnan.h.
58758         (is_infinite_or_zero): New function.
58759         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
58760         values in the %f, %F, %e, %E, %g, %G directives.
58761         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
58762         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58763         gl_PRINTF_INFINITE and test its result. Invoke
58764         gl_PREREQ_VASNPRINTF_INFINITE.
58765         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58766         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58767         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58768         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58769         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58770         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58771         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58772         * doc/functions/fprintf.texi: Update.
58773         * doc/functions/printf.texi: Update.
58774         * doc/functions/snprintf.texi: Update.
58775         * doc/functions/sprintf.texi: Update.
58776         * doc/functions/vfprintf.texi: Update.
58777         * doc/functions/vprintf.texi: Update.
58778         * doc/functions/vsnprintf.texi: Update.
58779         * doc/functions/vsprintf.texi: Update.
58780
58781 2007-05-19  Bruno Haible  <bruno@clisp.org>
58782
58783         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
58784         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
58785         Instead of multiplying with 10^k, set extra_zeroes to k.
58786         (scale10_round_long_double): Remove function.
58787
58788 2007-05-18  Bruno Haible  <bruno@clisp.org>
58789
58790         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
58791         introduced on 2007-05-06.
58792
58793 2007-05-18  Bruno Haible  <bruno@clisp.org>
58794
58795         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
58796         %g directives.
58797         * tests/test-vasprintf-posix.c (test_function): Likewise.
58798         * tests/test-snprintf-posix.h (test_function): Likewise.
58799         * tests/test-sprintf-posix.h (test_function): Likewise.
58800
58801 2007-05-18  Bruno Haible  <bruno@clisp.org>
58802
58803         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
58804         (strmatch): New function.
58805         (test_function): Test the %f directive on numbers of various exponents.
58806         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
58807         (strmatch): New function.
58808         (test_function): Test the %f directive on numbers of various exponents.
58809         * tests/test-snprintf-posix.h (strmatch): New function.
58810         (test_function): Test the %f directive on numbers of various exponents.
58811         * tests/test-sprintf-posix.h (strmatch): New function.
58812         (test_function): Test the %f directive on numbers of various exponents.
58813         * tests/test-snprintf-posix.c (SIZEOF): New macro.
58814         * tests/test-sprintf-posix.c (SIZEOF): New macro.
58815         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
58816         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
58817
58818 2007-05-18  Bruno Haible  <bruno@clisp.org>
58819
58820         Add support for 'long double' number output.
58821         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
58822         * lib/vasnprintf.c: Include math.h and float+.h.
58823         (mp_limb_t): New type.
58824         (GMP_LIMB_BITS): New macro.
58825         (mp_twolimb_t): New type.
58826         (GMP_TWOLIMB_BITS): New macro.
58827         (mpn_t): New type.
58828         (multiply, divide, convert_to_decimal, decode_long_double,
58829         scale10_round_long_double, scale10_round_decimal_long_double,
58830         floorlog10l): New functions.
58831         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
58832         for the %f, %F, %e, %E, %g, %G directives.
58833         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
58834         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58835         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
58836         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
58837         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58838         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58839         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58840         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58841         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58842         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58843         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58844         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
58845         * modules/snprintf-posix (Depends-on): Likewise.
58846         * modules/sprintf-posix (Depends-on): Likewise.
58847         * modules/vasnprintf-posix (Depends-on): Likewise.
58848         * modules/vasprintf-posix (Depends-on): Likewise.
58849         * modules/vfprintf-posix (Depends-on): Likewise.
58850         * modules/vsnprintf-posix (Depends-on): Likewise.
58851         * modules/vsprintf-posix (Depends-on): Likewise.
58852         * modules/vasnprintf (Files): Add lib/float+.h.
58853         * doc/functions/fprintf.texi: Update.
58854         * doc/functions/printf.texi: Update.
58855         * doc/functions/snprintf.texi: Update.
58856         * doc/functions/sprintf.texi: Update.
58857         * doc/functions/vfprintf.texi: Update.
58858         * doc/functions/vprintf.texi: Update.
58859         * doc/functions/vsnprintf.texi: Update.
58860         * doc/functions/vsprintf.texi: Update.
58861
58862 2007-05-18  Bruno Haible  <bruno@clisp.org>
58863
58864         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
58865
58866 2007-05-18  Bruno Haible  <bruno@clisp.org>
58867
58868         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
58869         for printing 64-bit integers. Needed for mingw.
58870
58871 2007-05-18  Bruno Haible  <bruno@clisp.org>
58872
58873         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58874         gl_FUNC_FREXPL_WORKS.
58875         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
58876
58877 2007-05-18  Bruno Haible  <bruno@clisp.org>
58878
58879         * modules/frexpl-nolibm-tests: New file.
58880
58881         * modules/frexpl-nolibm: New file.
58882         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
58883
58884 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58885
58886         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
58887         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58888         GCC 4.2, which otherwise issues a lot of warnings.
58889         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
58890         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
58891         Likewise.
58892         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
58893         * modules/iconv_open (iconv.h): Likewise.
58894         * modules/locale (locale.h): Likewise.
58895         * modules/netinet_in (netinet/in.h): Likewise.
58896         * modules/sys_select (sys_select.h): Likewise.
58897         * modules/sys_socket (sys/socket.h): Likewise.
58898         * modules/sys_stat (sys/stat.h): Likewise.
58899         * modules/sysexits (sysexits.h): Likewise.
58900         * modules/unistd (unistd.h): Likewise.
58901
58902 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58903
58904         * modules/closein-tests (Makefile.am): Distribute
58905         `test-closein.sh'.
58906
58907 2007-05-17  Bruno Haible  <bruno@clisp.org>
58908
58909         * tests/test-printf-posix.output: Renamed from
58910         tests/test-fprintf-posix.out.
58911         * modules/fprintf-posix-tests: Update.
58912         * modules/printf-posix-tests: Update.
58913         * modules/vfprintf-posix-tests: Update.
58914         * modules/vprintf-posix-tests: Update.
58915         * tests/test-fprintf-posix.sh: Update.
58916         * tests/test-printf-posix.sh: Update.
58917         * tests/test-vfprintf-posix.sh: Update.
58918         * tests/test-vprintf-posix.sh: Update.
58919         Reported by Ralf Wildenhues.
58920
58921 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58922
58923         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
58924         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58925         GCC 4.2, which otherwise issues a lot of warnings.
58926         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
58927         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
58928         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
58929         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
58930         it should no longer be needed.
58931         * lib/string_.h: Likewise.
58932         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
58933         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
58934         * modules/inttypes (inttypes.h): Likewise.
58935         * modules/math (math.h): Likewise.
58936         * modules/search (search.h): Likewise.
58937         * modules/signal (signal.h): Likewise.
58938         * modules/stdint (stdint.h): Likewise.
58939         * modules/stdio (stdio.h): Likewise.
58940         * modules/stdlib (stdlib.h): Likewise.
58941         * modules/string (string.h): Likewise.
58942         * modules/sys_time (sys/time.h): Likewise.
58943         * modules/time (time.h): Likewise.
58944         * modules/wchar (wchar.h): Likewise.
58945         * modules/wctype (wtype.h): Likewise.
58946
58947 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58948
58949         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
58950
58951 2007-05-13  Bruno Haible  <bruno@clisp.org>
58952
58953         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
58954         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58955         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
58956         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58957         (gl_PREREQ_STRTOK_R): Don't require it here.
58958
58959 2007-05-13  Bruno Haible  <bruno@clisp.org>
58960
58961         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
58962         when used in C++ mode.
58963
58964 2007-05-12  Bruno Haible  <bruno@clisp.org>
58965
58966         * lib/linebuffer.h: Tweak doc.
58967         * lib/linebuffer.c: Likewise.
58968
58969 2007-05-12  James Youngman  <jay@gnu.org>
58970
58971         * lib/linebuffer.c (readlinebuffer_delim): New function,
58972         like readlinebuffer, but use a caller-specified delimiter.
58973         (readlinebuffer): Just call readlinebuffer_delim with '\n'
58974         as the delimiter.
58975         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
58976
58977 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58978
58979         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
58980         * modules/openat (Files): Remove openat-die.c.
58981         (Depends-on): Add openat-die.
58982         * modules/openat-die: New module.
58983
58984 2007-05-06  Bruno Haible  <bruno@clisp.org>
58985
58986         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
58987         Update with info about Cygwin.
58988         * doc/functions/fprintf.texi: Update.
58989         * doc/functions/printf.texi: Update.
58990         * doc/functions/snprintf.texi: Update.
58991         * doc/functions/sprintf.texi: Update.
58992         * doc/functions/vfprintf.texi: Update.
58993         * doc/functions/vprintf.texi: Update.
58994         * doc/functions/vsnprintf.texi: Update.
58995         * doc/functions/vsprintf.texi: Update.
58996         Reported by Eric Blake.
58997
58998 2007-05-06  Bruno Haible  <bruno@clisp.org>
58999
59000         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59001         padding ourselves for the floating-point directives.
59002         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59003         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59004         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59005         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59006         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59007         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59008         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59009         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59010         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59011         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59012         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59013         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59014         * tests/test-snprintf-posix.h (test_function): Also check the width
59015         and some flags in the %f directive.
59016         * tests/test-sprintf-posix.h (test_function): Likewise.
59017         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59018         * tests/test-vasprintf-posix.c (test_function): Likewise.
59019         * doc/functions/fprintf.texi: Update.
59020         * doc/functions/printf.texi: Update.
59021         * doc/functions/snprintf.texi: Update.
59022         * doc/functions/sprintf.texi: Update.
59023         * doc/functions/vfprintf.texi: Update.
59024         * doc/functions/vprintf.texi: Update.
59025         * doc/functions/vsnprintf.texi: Update.
59026         * doc/functions/vsprintf.texi: Update.
59027
59028 2007-05-06  Bruno Haible  <bruno@clisp.org>
59029
59030         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59031         pass the ' flag character to sprintf or snprintf.
59032         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59033         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59034         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59035         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59036         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59037         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59038         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59039         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59040         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59041         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59042         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59043         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59044         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59045         flag.
59046         * tests/test-sprintf-posix.h (test_function): Likewise.
59047         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59048         * tests/test-vasprintf-posix.c (test_function): Likewise.
59049         * doc/functions/fprintf.texi: Update.
59050         * doc/functions/printf.texi: Update.
59051         * doc/functions/snprintf.texi: Update.
59052         * doc/functions/sprintf.texi: Update.
59053         * doc/functions/vfprintf.texi: Update.
59054         * doc/functions/vprintf.texi: Update.
59055         * doc/functions/vsnprintf.texi: Update.
59056         * doc/functions/vsprintf.texi: Update.
59057
59058 2007-05-01  Bruno Haible  <bruno@clisp.org>
59059
59060         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59061
59062 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59063
59064         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59065         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59066
59067 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59068
59069         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59070         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59071         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59072
59073 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59074
59075         * lib/argp-help.c (struct hol_entry): New member `ord'.
59076         (HOL_ENTRY_PTRCMP): Use ord for comparison
59077         (hol_sort): Initialize ord.
59078
59079 2007-05-01  Bruno Haible  <bruno@clisp.org>
59080
59081         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59082         Reported by Eric Blake.
59083         * doc/gnulib.texi (Function Substitutes): Update.
59084
59085 2007-05-01  Bruno Haible  <bruno@clisp.org>
59086
59087         * doc/functions.texi: Remove file, now redundant through
59088         doc/functions/*.texi.
59089
59090 2007-05-01  Bruno Haible  <bruno@clisp.org>
59091
59092         * modules/argp (Depends-on): Add sleep.
59093
59094 2007-05-01  Bruno Haible  <bruno@clisp.org>
59095
59096         * modules/sleep-tests: New file.
59097         * tests/test-sleep.c: New file.
59098
59099         * modules/sleep: New file.
59100         * lib/sleep.c: New file.
59101         * m4/sleep.m4: New file.
59102         * lib/unistd_.h (sleep): New declaration.
59103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59104         HAVE_SLEEP.
59105         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59106         * doc/functions/sleep.texi: Document the sleep module.
59107
59108 2007-05-01  Bruno Haible  <bruno@clisp.org>
59109
59110         * lib/sigprocmask.h: Remove file.
59111         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59112         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59113         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59114         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59115         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59116         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59117         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59118         HAVE_SIGSET_T as a shell variable.
59119         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59120         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59121         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59122         (Depends-on): Add signal. Remove verify.
59123         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59124         (Include): Mention <signal.h> instead of sigprocmask.h.
59125         * NEWS: Mention the change.
59126         * lib/fatal-signal.c: Don't include sigprocmask.h.
59127
59128 2007-05-01  Bruno Haible  <bruno@clisp.org>
59129
59130         * modules/signal: New file.
59131         * lib/signal_.h: New file.
59132         * m4/signal_h.m4: New file.
59133
59134 2007-05-01  Bruno Haible  <bruno@clisp.org>
59135
59136         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59137         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59138         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59139         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59140
59141 2007-05-01  Bruno Haible  <bruno@clisp.org>
59142
59143         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59144         configure time.
59145         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59146         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59147         * modules/sys_stat (Makefile.am): Substitute their values into
59148         sys/stat.h.
59149
59150 2007-05-01  Bruno Haible  <bruno@clisp.org>
59151
59152         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59153         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59154         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59155
59156 2007-05-01  Bruno Haible  <bruno@clisp.org>
59157
59158         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59159         'assert' module here.
59160
59161 2007-05-01  Bruno Haible  <bruno@clisp.org>
59162
59163         * doc/functions/*.texi: New files.
59164         * doc/functions/google-ranking.txt: New file.
59165         * doc/gnulib.texi (Function Substitutes): New chapter.
59166         (ctime, inet_ntoa): Remove sections.
59167         * doc/ctime.texi: Remove file.
59168         * doc/inet_ntoa.texi: Remove file.
59169         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59170         dependencies.
59171         (%.info): New rule, specifying a --reference-limit.
59172
59173 2007-05-01  Bruno Haible  <bruno@clisp.org>
59174
59175         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59176
59177 2007-05-01  Bruno Haible  <bruno@clisp.org>
59178
59179         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59180         the portability of 'mkdir' to mingw systems.
59181
59182 2007-05-01  Bruno Haible  <bruno@clisp.org>
59183
59184         * doc/headers/google-ranking.txt: New file.
59185
59186 2007-04-30  Eric Blake  <ebb9@byu.net>
59187
59188         Prefer fseeko to fseek.
59189         * modules/getpass (Depends-on): Add fseeko.
59190         * lib/getpass.c (getpass): Use fseeko, not fseek.
59191
59192 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59193
59194         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59195         assumes the sorting is stable, while most qsort implementations
59196         are not.  Use argument addresses to ensure they never compare as
59197         equal.
59198
59199         * tests/test-argp-2.sh (usage-indent test): Fix output
59200         (func_compare): Restore diff options
59201         * tests/test-argp.c: Restore #include "progname.h"
59202
59203 2007-04-29  Bruno Haible  <bruno@clisp.org>
59204
59205         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59206         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59207         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59208         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59209         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59210         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59211         (TESTS, check_PROGRAMS): Add test-snprintf.
59212         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59213         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59214         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59215         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59216         assertions that fail on HP-UX, OSF/1, or IRIX.
59217         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59218
59219 2007-04-29  Bruno Haible  <bruno@clisp.org>
59220
59221         * MODULES.html.sh (posix_functions): Remove 'contents'.
59222
59223 2007-04-29  Karl Berry  <karl@gnu.org>
59224
59225         * config/srclist.txt (gendocs_template_min): new entry.
59226
59227 2007-04-29  Bruno Haible  <bruno@clisp.org>
59228
59229         Work around fpurge bug on BSD systems.
59230         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59231         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59232         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59233         fpurge to rpl_fpurge if the system already has this function.
59234         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59235         the case where the system already has this function. Correct invariants
59236         on BSD systems.
59237         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59238         BSD systems.
59239
59240 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59241
59242         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59243         proposed by Sven Verdoolaege.
59244
59245         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59246         options.
59247         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59248         (usage and help tests): Update
59249
59250 2007-04-29  Bruno Haible  <bruno@clisp.org>
59251
59252         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59253         Print more information in case of failure. Disable a test on BeOS.
59254
59255 2007-04-29  Bruno Haible  <bruno@clisp.org>
59256
59257         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59258         This helps debugging on systems on which no gdb is available.
59259
59260 2007-04-29  Bruno Haible  <bruno@clisp.org>
59261
59262         * lib/freading.h: Improve comments.
59263         * lib/fwriting.h: Likewise.
59264         * tests/test-freading.c (main): Don't check freading immediately after
59265         repositioning. Needed for glibc.
59266
59267 2007-04-29  Bruno Haible  <bruno@clisp.org>
59268
59269         * lib/freading.c (freading): Trivial simplification.
59270
59271 2007-04-28  Bruno Haible  <bruno@clisp.org>
59272
59273         * tests/test-fwriting.c (main): Also test the interaction between
59274         fflush and fwriting.
59275         * modules/fwriting-tests (Depends-on): Add fflush.
59276
59277         * tests/test-freading.c (main): Also test the interaction between
59278         fflush and freading.
59279         * modules/freading-tests (Depends-on): Add fflush.
59280
59281 2007-04-28  Bruno Haible  <bruno@clisp.org>
59282
59283         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59284         fseeko and ftello.
59285         Suggested by Eric Blake.
59286
59287 2007-04-28  Jim Meyering  <jim@meyering.net>
59288
59289         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59290         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59291         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59292
59293 2007-04-27  Eric Blake  <ebb9@byu.net>
59294
59295         * doc/headers/assert.texi (assert.h): Document assert module use.
59296
59297 2007-04-27  Bruno Haible  <bruno@clisp.org>
59298
59299         * doc/headers/*.texi: New files.
59300         * doc/gnulib.texi (Header File Substitutes): New chapter.
59301         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59302         dependencies.
59303         (standards.info ,standards.html, standards.dvi): Update dependencies.
59304         (mostlyclean, clean): New targets.
59305
59306 2007-04-27  Bruno Haible  <bruno@clisp.org>
59307
59308         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59309         * modules/sysexits (Files, Makefile.am): Update.
59310
59311         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59312         * modules/sys_socket (Files, Makefile.am): Update.
59313
59314         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59315         * modules/sys_stat (Files, Makefile.am): Update.
59316
59317 2007-04-27  Eric Blake  <ebb9@byu.net>
59318
59319         * lib/freading.h: Improve comments.
59320         * lib/fwriting.h: Likewise.
59321         * lib/fflush.c: Likewise.
59322
59323         Fix closein for mingw.
59324         * modules/closein-tests: Add tests for closein.
59325         * tests/test-closein.c: New file.
59326         * tests/test-closein.sh: Likewise.
59327         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59328         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59329
59330 2007-04-27  Bruno Haible  <bruno@clisp.org>
59331
59332         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59333         version is < 6.
59334         * lib/math_.h [__DECC]: Likewise.
59335         * lib/stdio_.h [__DECC]: Likewise.
59336         * lib/stdlib_.h [__DECC]: Likewise.
59337         * lib/string_.h [__DECC]: Likewise.
59338         * lib/time_.h [__DECC]: Likewise.
59339         * lib/wchar_.h [__DECC]: Likewise.
59340         * lib/wctype_.h [__DECC]: Likewise.
59341
59342 2007-04-27  Bruno Haible  <bruno@clisp.org>
59343
59344         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59345
59346 2007-04-27  Bruno Haible  <bruno@clisp.org>
59347
59348         * lib/fflush.c: Add comments.
59349         * modules/fpurge-tests (Depends-on): Add fflush.
59350         * modules/freadable-tests (Depends-on): Likewise.
59351         * modules/fwritable-tests (Depends-on): Likewise.
59352
59353 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
59354
59355         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
59356         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
59357         Report by Bruno Haible <bruno@clisp.org>.
59358
59359 2007-04-26  Eric Blake  <ebb9@byu.net>
59360
59361         Fix fflush on mingw.
59362         * modules/fflush (Depends-on): Add freading.
59363         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
59364         but unread data.
59365
59366 2007-04-26  Eric Blake  <ebb9@byu.net>
59367         and Bruno Haible  <bruno@clisp.org>
59368
59369         Implement freading and fwriting.
59370         * lib/freading.c: New file.
59371         * lib/freading.h: Likewise.
59372         * m4/freading.m4: Likewise.
59373         * modules/freading: Likewise.
59374         * modules/freading-tests: Likewise.
59375         * tests/test-freading.c: Likewise.
59376         * lib/fwriting.c: New file.
59377         * lib/fwriting.h: Likewise.
59378         * m4/fwriting.m4: Likewise.
59379         * modules/fwriting: Likewise.
59380         * modules/fwriting-tests: Likewise.
59381         * tests/test-fwriting.c: Likewise.
59382         * MODULES.html.sh (File stream based Input/Output): Mention them.
59383
59384 2007-04-26  Bruno Haible  <bruno@clisp.org>
59385
59386         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
59387         'long' when we assume it.
59388         Suggested by Eric Blake.
59389
59390 2007-04-26  Bruno Haible  <bruno@clisp.org>
59391
59392         Ensure fseeko, ftello are declared on glibc systems.
59393         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
59394         * modules/fseeko (configure.ac-early): Likewise.
59395         * modules/ftello (configure.ac-early): Likewise.
59396         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
59397         AC_FUNC_FSEEKO for this.
59398         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
59399         (gl_CHECK_FSEEKO): Remove macro.
59400
59401 2007-04-26  Bruno Haible  <bruno@clisp.org>
59402
59403         * tests/test-fflush.c (main): Also check the ftell result after
59404         fflush and fseek/fseeko.
59405         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
59406         file descriptor position cache in the stream.
59407         * lib/fseeko.c (rpl_fseeko): Likewise.
59408
59409 2007-04-26  Bruno Haible  <bruno@clisp.org>
59410
59411         * modules/fflush-tests (Depends-on): Add fseeko.
59412
59413 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
59414             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59415
59416         * lib/argz_.h: ensure error_t definition is obtained in same
59417         mechanism system argz.h would have.
59418         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
59419         argz facilities are known bad.  Err on the side of caution if
59420         cross-compiling.
59421
59422 2007-04-25  Eric Blake  <ebb9@byu.net>
59423
59424         * lib/fpurge.c (includes): Use stdlib.h for free.
59425         * tests/test-fflush.c (main): Also test fflush-fseeko.
59426
59427 2007-04-25  Bruno Haible  <bruno@clisp.org>
59428
59429         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
59430         * lib/fseeko.c: New file.
59431         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
59432         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
59433         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
59434         gl_FUNC_FSEEKO.
59435         (gl_FUNC_FSEEKO): Invoke it.
59436         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
59437         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
59438         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
59439
59440 2007-04-25  Bruno Haible  <bruno@clisp.org>
59441
59442         * modules/fflush (Depends-on): Add ftello.
59443
59444 2007-04-25  Bruno Haible  <bruno@clisp.org>
59445
59446         * modules/ftello-tests: New file.
59447         * tests/test-ftello.c: New file.
59448
59449         * modules/ftello: New file.
59450         * m4/ftello.m4: New file.
59451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
59452         HAVE_FTELLO.
59453         * lib/stdio_.h (ftello): New declaration.
59454         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59455         HAVE_FTELLO.
59456
59457 2007-04-25  Bruno Haible  <bruno@clisp.org>
59458
59459         * modules/fseeko-tests: New file.
59460         * tests/test-fseeko.c: New file.
59461
59462         * modules/fseeko: New file.
59463         * m4/fseeko.m4: New file.
59464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59465         HAVE_FSEEKO.
59466         * lib/stdio_.h (fseeko): New declaration.
59467         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59468         HAVE_FSEEKO.
59469
59470 2007-04-25  Bruno Haible  <bruno@clisp.org>
59471
59472         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59473
59474 2007-04-25  Bruno Haible  <bruno@clisp.org>
59475
59476         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59477         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59478         * tests/test-unistd.c: Likewise.
59479         * tests/test-fcntl.c: Likewise.
59480
59481 2007-04-23  Eric Blake  <ebb9@byu.net>
59482
59483         * lib/fflush.c: Fix missing include.
59484         Reported by Bruno Haible.
59485
59486 2007-04-23  Bruno Haible  <bruno@clisp.org>
59487
59488         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
59489         Reported by Eric Blake.
59490
59491 2007-04-23  Bruno Haible  <bruno@clisp.org>
59492
59493         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
59494
59495 2007-04-23  Bruno Haible  <bruno@clisp.org>
59496
59497         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
59498
59499 2007-04-23  Bruno Haible  <bruno@clisp.org>
59500
59501         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
59502         Needed on HP-UX 11.
59503
59504 2007-04-16  Eric Blake  <ebb9@byu.net>
59505
59506         Make fflush rely on fpurge.
59507         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
59508         open coding all variants.
59509         * modules/fflush (Depends-on): Add fpurge and unistd.
59510         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
59511         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
59512
59513         Fix --with-tests compilation on cygwin.
59514         * modules/argmatch-tests (Makefile.am): List gnulib library first
59515         in LDADD.
59516         * modules/argp-tests (Makefile.am): Likewise.
59517         * modules/array-list-tests (Makefile.am): Likewise.
59518         * modules/array-oset-tests (Makefile.am): Likewise.
59519         * modules/avltree-list-tests (Makefile.am): Likewise.
59520         * modules/avltree-oset-tests (Makefile.am): Likewise.
59521         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59522         * modules/carray-list-tests (Makefile.am): Likewise.
59523         * modules/dirname-tests (Makefile.am): Likewise.
59524         * modules/frexp-tests (Makefile.am): Likewise.
59525         * modules/isnanl-tests (Makefile.am): Likewise.
59526         * modules/linked-list-tests (Makefile.am): Likewise.
59527         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59528         * modules/lock-tests (Makefile.am): Likewise.
59529         * modules/rbtree-list-tests (Makefile.am): Likewise.
59530         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59531         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59532         * modules/tls-tests (Makefile.am): Likewise.
59533         * modules/tsearch-tests (Makefile.am): Likewise.
59534         * modules/xvasprintf-tests (Makefile.am): Likewise.
59535
59536         Fix fpurge for cygwin.
59537         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
59538         value.
59539         * modules/fpurge-tests (Depends-on): Clean up trash.
59540
59541 2007-04-16  Simon Josefsson  <simon@josefsson.org>
59542
59543         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
59544
59545         * m4/autobuild.m4: Re-indent.
59546
59547 2007-04-13  Bruno Haible  <bruno@clisp.org>
59548
59549         * modules/fpurge-tests: New file.
59550         * tests/test-fpurge.c: New file.
59551
59552         * modules/fpurge: New file.
59553         * lib/fpurge.h: New file.
59554         * lib/fpurge.c: New file.
59555         * m4/fpurge.m4: New file.
59556
59557 2007-04-13  Bruno Haible  <bruno@clisp.org>
59558
59559         * modules/fbufmode-tests: New file.
59560         * tests/test-fbufmode.c: New file.
59561
59562         * modules/fbufmode: New file.
59563         * lib/fbufmode.h: New file.
59564         * lib/fbufmode.c: New file.
59565         * m4/fbufmode.m4: New file.
59566
59567 2007-04-13  Bruno Haible  <bruno@clisp.org>
59568
59569         * modules/fwritable-tests: New file.
59570         * tests/test-fwritable.c: New file.
59571
59572         * modules/fwritable: New file.
59573         * lib/fwritable.h: New file.
59574         * lib/fwritable.c: New file.
59575         * m4/fwritable.m4: New file.
59576
59577 2007-04-13  Bruno Haible  <bruno@clisp.org>
59578
59579         * modules/freadable-tests: New file.
59580         * tests/test-freadable.c: New file.
59581
59582         * modules/freadable: New file.
59583         * lib/freadable.h: New file.
59584         * lib/freadable.c: New file.
59585         * m4/freadable.m4: New file.
59586
59587 2007-04-13  Bruno Haible  <bruno@clisp.org>
59588
59589         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
59590         MOSTLYCLEANFILES.
59591
59592 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59593
59594         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
59595         gzip bootstrap.conf to avoid dragging in i18n machinery.
59596         (gnulib_tool_option): Use it.
59597
59598 2007-04-13  Bruno Haible  <bruno@clisp.org>
59599
59600         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
59601         %F directives.
59602         * tests/test-vasprintf-posix.c (test_function): Likewise.
59603         * tests/test-snprintf-posix.h (test_function): Likewise.
59604         * tests/test-sprintf-posix.h (test_function): Likewise.
59605         * tests/test-fprintf-posix.h (test_function): Likewise.
59606         * tests/test-printf-posix.h (test_function): Likewise.
59607         * tests/test-fprintf-posix.out: Likewise.
59608
59609 2007-04-13  Bruno Haible  <bruno@clisp.org>
59610
59611         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
59612         * modules/tls-tests (configure.ac): Likewise.
59613         Reported by Arto C. Nirkko <anirkko@insel.ch>.
59614
59615 2007-04-13  Bruno Haible  <bruno@clisp.org>
59616
59617         * lib/tls.c (glthread_tls_get): Fix return type.
59618         Patch by Arto C. Nirkko <anirkko@insel.ch>.
59619
59620 2007-04-12  Eric Blake  <ebb9@byu.net>
59621
59622         * modules/gettime (Depends-on): Remove gettime.
59623         Reported by Dmitry V. Levin.
59624
59625 2007-04-12  Bruno Haible  <bruno@clisp.org>
59626
59627         * modules/fflush (Include): Mention <stdio.h>.
59628         * modules/strtoimax (Include): Mention <inttypes.h>.
59629         * modules/strtoumax (Include): Likewise.
59630
59631 2007-04-12  Eric Blake  <ebb9@byu.net>
59632
59633         * .cvsignore: New file.
59634         * .gitignore: Likewise.
59635
59636 2007-04-12  Bruno Haible  <bruno@clisp.org>
59637
59638         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
59639         not before, since $(LDADD) often contains libgnu.a.
59640         * modules/striconv-tests (test_striconv_LDADD): Likewise.
59641         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
59642         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
59643         Needed on Cygwin.
59644
59645 2007-04-12  Eric Blake  <ebb9@byu.net>
59646
59647         Work around glibc's failure to flush stdin on fclose.
59648         * lib/closein.c (close_stdin): Flush stdin before closing.
59649
59650         Work around glibc's failure to reset seekable stdin on exit.
59651         * modules/closein: New module.
59652         * lib/closein.c: New file.
59653         * lib/closein.h: Likewise.
59654         * m4/closein.m4: Likewise.
59655         * MODULES.html.sh (File stream based Input/Output): Document it.
59656
59657 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59658
59659         * gnulib-tool: Rename generated 'autobuild' script to
59660         'do-autobuild' in --create-megatestdir output.
59661
59662         * doc/gnulib.texi (Build robot for gnulib): Fix.
59663
59664 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59665
59666         * modules/sysexits (Depends-on): Add absolute-header.
59667
59668 2007-04-12  Eric Blake  <ebb9@byu.net>
59669
59670         No need to preserve errno on success.
59671         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
59672         Reported by Bruno Haible.
59673
59674 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59675
59676         * MODULES.html.sh (Support for maintaining and releasing
59677         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
59678
59679 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59680
59681         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
59682
59683 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59684
59685         * modules/autobuild: New module.
59686
59687         * m4/autobuild.m4: New file.
59688
59689 2007-04-11  Bruno Haible  <bruno@clisp.org>
59690
59691         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
59692         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
59693         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
59694         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
59695         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59696         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59697         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59698         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59699         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59700         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59701         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
59702         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59703         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59704         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
59705         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59706         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59707         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
59708         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59709         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59710         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
59711         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59712         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59713         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
59714         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59715         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59716         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
59717         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59718         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59719         Reported by Eric Blake.
59720
59721 2007-04-11  Bruno Haible  <bruno@clisp.org>
59722
59723         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
59724
59725 2007-04-10  Bruno Haible  <bruno@clisp.org>
59726
59727         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
59728         for NaN and Infinity. Needed on FreeBSD 6.1.
59729         * tests/test-vasnprintf-posix.c (test_function): Undo last change
59730         regarding results for "%010a" of Infinity and NaN.
59731         * tests/test-vasprintf-posix.c (test_function): Likewise.
59732         * tests/test-snprintf-posix.h (test_function): Likewise.
59733         * tests/test-sprintf-posix.h (test_function): Likewise.
59734         * tests/test-fprintf-posix.h (test_function): Likewise.
59735         * tests/test-printf-posix.h (test_function): Likewise.
59736         * tests/test-fprintf-posix.out: Likewise.
59737
59738 2007-04-10  Bruno Haible  <bruno@clisp.org>
59739
59740         * modules/locale-tests: New file.
59741         * tests/test-locale.c: New file.
59742
59743         * modules/locale: New file.
59744         * lib/locale_.h: New file.
59745         * m4/locale_h.m4: New file.
59746
59747 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
59748             Bruno Haible  <bruno@clisp.org>
59749
59750         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
59751         be determined, test for availability of the copysignf, copysign,
59752         copysignl functions.
59753         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
59754         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
59755         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
59756
59757 2007-04-09  Eric Blake  <ebb9@byu.net>
59758
59759         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
59760         * modules/stdio (Makefile.am): Support fflush.
59761         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59762         * modules/fflush: New file.
59763         * lib/fflush.c: Likewise.
59764         * m4/fflush.m4: Likewise.
59765         * modules/fflush-tests: New test.
59766         * tests/test-fflush.c: Likewise.
59767         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
59768
59769 2007-04-06  Bruno Haible  <bruno@clisp.org>
59770
59771         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
59772         (VASNPRINTF): Use signbit for faster determination whether to print a
59773         minus sign.
59774         * modules/vasnprintf (Files): Remove lib/float+.h.
59775         * modules/fprintf-posix (Depends-on): Add signbit.
59776         * modules/snprintf-posix (Depends-on): Likewise.
59777         * modules/sprintf-posix (Depends-on): Likewise.
59778         * modules/vasnprintf-posix (Depends-on): Likewise.
59779         * modules/vasprintf-posix (Depends-on): Likewise.
59780         * modules/vfprintf-posix (Depends-on): Likewise.
59781         * modules/vsnprintf-posix (Depends-on): Likewise.
59782         * modules/vsprintf-posix (Depends-on): Likewise.
59783
59784 2007-04-06  Bruno Haible  <bruno@clisp.org>
59785
59786         * tests/test-frexp.c (main): Test also the sign bit of zero results.
59787         * tests/test-frexpl.c (main): Likewise.
59788         * tests/test-ldexpl.c (main): Likewise.
59789         * modules/frexp-tests (Depends-on): Add signbit.
59790         * modules/frexpl-tests (Depdends-on): Likewise.
59791         * modules/ldexpl-tests (Depdends-on): Likewise.
59792
59793 2007-04-06  Bruno Haible  <bruno@clisp.org>
59794
59795         * modules/signbit-tests: New file.
59796         * tests/test-signbit.c: New file.
59797
59798         * modules/signbit: New file.
59799         * lib/signbitf.c: New file.
59800         * lib/signbitd.c: New file.
59801         * lib/signbitl.c: New file.
59802         * m4/signbit.m4: New file.
59803         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
59804         (signbit): New macro.
59805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
59806         REPLACE_SIGNBIT.
59807         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
59808         REPLACE_FREXPL into math.h.
59809
59810 2007-04-06  Bruno Haible  <bruno@clisp.org>
59811
59812         * modules/isnanf-nolibm-tests: New file.
59813         * tests/test-isnanf.c: New file.
59814
59815         * modules/isnanf-nolibm: New file.
59816         * lib/isnanf.h: New file.
59817         * lib/isnanf.c: New file.
59818         * lib/isnan.c: Consider the USE_FLOAT macro.
59819         * m4/isnanf.m4: New file.
59820
59821 2007-04-06  Bruno Haible  <bruno@clisp.org>
59822
59823         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
59824         (Link): New section.
59825
59826         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
59827
59828 2007-04-06  Bruno Haible  <bruno@clisp.org>
59829
59830         Assume the 'long double' type.
59831         * m4/longdouble.m4: Remove file.
59832         * config/srclist.txt: Don't mention longdouble.m4.
59833         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
59834         * lib/float+.h: Likewise.
59835         * lib/frexp.c: Likewise.
59836         * lib/printf-args.h: Likewise.
59837         * lib/printf-args.c: Likewise.
59838         * lib/printf-frexp.c: Likewise.
59839         * lib/printf-parse.c: Likewise.
59840         * lib/vasnprintf.c: Likewise.
59841         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
59842         * m4/intl.m4: Likewise.
59843         * m4/isnanl.m4: Likewise.
59844         * m4/printf.m4: Likewise.
59845         * m4/printf-frexpl.m4: Likewise.
59846         * m4/vasnprintf.m4: Likewise.
59847         * modules/allocsa (Files): Remove m4/longdouble.m4.
59848         * modules/gettext (Files): Likewise.
59849         * modules/relocatable-prog-wrapper (Files): Likewise.
59850         * modules/vasnprintf (Files): Likewise.
59851         * modules/isnanl (Files): Likewise.
59852         (Include): Simplify.
59853         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
59854         (Include): Simplify.
59855         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
59856         (Include): Simplify.
59857         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
59858         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59859         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
59860         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59861         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59862         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59863         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
59864         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59865         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59866         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59867         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
59868         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59869         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
59870         * tests/test-isnanl.c: Likewise.
59871         * tests/test-snprintf-posix.h: Likewise.
59872         * tests/test-sprintf-posix.h: Likewise.
59873         * tests/test-vasnprintf-posix.c: Likewise.
59874         * tests/test-vasnprintf-posix2.c: Likewise.
59875         * tests/test-vasprintf-posix.c: Likewise.
59876
59877 2007-04-06  Bruno Haible  <bruno@clisp.org>
59878
59879         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
59880         * lib/math_.h [__DECC]: Include the overridden include file through
59881         #include_next, outside the double-inclusion guard.
59882         * lib/stdio_.h [__DECC]: Likewise.
59883         * lib/stdlib_.h [__DECC]: Likewise.
59884         * lib/string_.h [__DECC]: Likewise.
59885         * lib/time_.h [__DECC]: Likewise.
59886         * lib/wchar_.h [__DECC]: Likewise.
59887         * lib/wctype_.h [__DECC]: Likewise.
59888         * lib/inttypes_.h [__DECC]: Likewise.
59889         Reported by Albert Chin <china@thewrittenword.com> in
59890         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
59891
59892 2007-04-04  Eric Blake  <ebb9@byu.net>
59893
59894         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
59895         1.5.x.
59896
59897 2007-04-04  Bruno Haible  <bruno@clisp.org>
59898
59899         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
59900         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
59901
59902 2007-04-04  Bruno Haible  <bruno@clisp.org>
59903
59904         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
59905         results for "%010a" of Infinity and NaN.
59906         * tests/test-vasprintf-posix.c (test_function): Likewise.
59907         * tests/test-snprintf-posix.h (test_function): Likewise.
59908         * tests/test-sprintf-posix.h (test_function): Likewise.
59909         * tests/test-fprintf-posix.h (test_function): Remove these tests.
59910         * tests/test-printf-posix.h (test_function): Likewise.
59911         * tests/test-fprintf-posix.out: Update.
59912         Needed for FreeBSD 6.1.
59913
59914 2007-04-04  Bruno Haible  <bruno@clisp.org>
59915
59916         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
59917         directly used by the gnulib modules nor by gnulib-tool.
59918
59919 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59920
59921         * DEPENDENCIES: Give overall description of version dependency
59922         desirability.  Use more-typical names for apps.
59923         Add shell, coreutils, diffutils, grep, tar, gzip.
59924
59925 2007-04-04  Simon Josefsson  <simon@josefsson.org>
59926
59927         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
59928
59929 2007-04-04  Karl Berry  <karl@gnu.org>
59930
59931         * MODULES.html.sh (func_module): missing '.
59932
59933 2007-04-03  Bruno Haible  <bruno@clisp.org>
59934
59935         * modules/argmatch-tests (Makefile.am): New variable
59936         test_argmatch_LDADD.
59937         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
59938         * modules/array-list-tests (Makefile.am): New variable
59939         test_array_list_LDADD.
59940         * modules/array-oset-tests (Makefile.am): New variable
59941         test_array_oset_LDADD.
59942         * modules/avltree-list-tests (Makefile.am): New variable
59943         test_avltree_list_LDADD.
59944         * modules/avltree-oset-tests (Makefile.am): New variable
59945         test_avltree_oset_LDADD.
59946         * modules/avltreehash-list-tests (Makefile.am): New variable
59947         test_avltreehash_list_LDADD.
59948         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
59949         test_canonicalize_lgpl_LDADD.
59950         * modules/carray-list-tests (Makefile.am): New variable
59951         test_carray_list_LDADD.
59952         * modules/dirname-tests (Makefile.am): New variable
59953         test_dirname_LDADD.
59954         * modules/linked-list-tests (Makefile.am): New variable
59955         test_linked_list_LDADD.
59956         * modules/linkedhash-list-tests (Makefile.am): New variable
59957         test_linkedhash_list_LDADD.
59958         * modules/rbtree-list-tests (Makefile.am): New variable
59959         test_rbtree_list_LDADD.
59960         * modules/rbtree-oset-tests (Makefile.am): New variable
59961         test_rbtree_oset_LDADD.
59962         * modules/rbtreehash-list-tests (Makefile.am): New variable
59963         test_rbtreehash_list_LDADD.
59964         * modules/xvasprintf-tests (Makefile.am): New variable
59965         test_xvasprintf_LDADD.
59966         Reported by Eric Blake.
59967
59968 2007-04-03  Eric Blake  <ebb9@byu.net>
59969
59970         * DEPENDENCIES: Weaken m4 requirements.
59971
59972 2007-04-03  Bruno Haible  <bruno@clisp.org>
59973
59974         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
59975         * modules/isnanl-tests (configure.ac): Likewise.
59976
59977 2007-04-03  Ben Pfaff  <blp@gnu.org>
59978
59979         * modules/iconv_open: Add $(srcdir)/ to source directory
59980         references in Makefile fragments that call gperf, to fix VPATH
59981         builds.
59982
59983 2007-04-03  Bruno Haible  <bruno@clisp.org>
59984
59985         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
59986         * lib/ldexpl.c: Undo last change.
59987
59988 2007-04-03  Bruno Haible  <bruno@clisp.org>
59989
59990         * modules/printf-frexpl (Depends-on): Undo last change.
59991         (Files): Add m4/ldexpl.m4.
59992
59993 2007-04-03  Bruno Haible  <bruno@clisp.org>
59994
59995         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
59996         * modules/isnanl (Link): New section.
59997
59998         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
59999         * modules/frexp (Link): New section.
60000
60001         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60002         * modules/frexpl (Link): New section.
60003
60004         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60005         * modules/ldexpl (Link): New section.
60006
60007 2007-04-03  Bruno Haible  <bruno@clisp.org>
60008
60009         * modules/TEMPLATE-EXTENDED: New file.
60010         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60011
60012 2007-04-03  Bruno Haible  <bruno@clisp.org>
60013
60014         * DEPENDENCIES: New file.
60015         Suggested by Simon Josefsson.
60016
60017 2007-04-03  Bruno Haible  <bruno@clisp.org>
60018
60019         * doc/gnulib.texi: Escape @.
60020
60021 2007-04-03  James Youngman  <jay@gnu.org>
60022         and Paul Eggert  <eggert@cs.ucla.edu>
60023
60024         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60025         birthtime on all systems that have birthtime, not just those which
60026         use st_birthtimensec rather than st_birthtim.  Putting zero in
60027         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60028         that the birth time is not available for files on an NFS mount.
60029
60030 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60031
60032         * modules/memxor: Move back from crypto/, suggested by Bruno.
60033         * modules/crypto/hmac-sha1: Fix memxor dependency.
60034
60035         * modules/crypto/gc: Moved from ../.
60036
60037 2007-04-02  Eric Blake  <ebb9@byu.net>
60038
60039         * lib/ldexpl.c (includes): Avoid libm.
60040
60041         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60042
60043 2007-04-02  Bruno Haible  <bruno@clisp.org>
60044
60045         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60046         on IRIX.
60047
60048 2007-04-02  Bruno Haible  <bruno@clisp.org>
60049
60050         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60051         x86 or x86_64 platforms running MacOS X.
60052         Reported by Ryan Schmidt <@ryandesign.com>.
60053
60054 2007-04-02  Bruno Haible  <bruno@clisp.org>
60055
60056         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60057         i386.
60058
60059 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60060
60061         * modules/crypto/arcfour: Moved from ../.
60062         * modules/crypto/arcfour-tests: Moved from ../.
60063         * modules/crypto/arctwo: Moved from ../.
60064         * modules/crypto/arctwo-tests: Moved from ../.
60065         * modules/crypto/des: Moved from ../.
60066         * modules/crypto/des-tests: Moved from ../.
60067         * modules/crypto/gc-arcfour: Moved from ../.
60068         * modules/crypto/gc-arcfour-tests: Moved from ../.
60069         * modules/crypto/gc-arctwo: Moved from ../.
60070         * modules/crypto/gc-arctwo-tests: Moved from ../.
60071         * modules/crypto/gc-des: Moved from ../.
60072         * modules/crypto/gc-des-tests: Moved from ../.
60073         * modules/crypto/gc-hmac-md5: Moved from ../.
60074         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60075         * modules/crypto/gc-hmac-sha1: Moved from ../.
60076         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60077         * modules/crypto/gc-md2: Moved from ../.
60078         * modules/crypto/gc-md2-tests: Moved from ../.
60079         * modules/crypto/gc-md4: Moved from ../.
60080         * modules/crypto/gc-md4-tests: Moved from ../.
60081         * modules/crypto/gc-md5: Moved from ../.
60082         * modules/crypto/gc-md5-tests: Moved from ../.
60083         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60084         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60085         * modules/crypto/gc-random: Moved from ../.
60086         * modules/crypto/gc-rijndael: Moved from ../.
60087         * modules/crypto/gc-rijndael-tests: Moved from ../.
60088         * modules/crypto/gc-sha1: Moved from ../.
60089         * modules/crypto/gc-sha1-tests: Moved from ../.
60090         * modules/crypto/gc-tests: Moved from ../.
60091         * modules/crypto/hmac-md5: Moved from ../.
60092         * modules/crypto/hmac-md5-tests: Moved from ../.
60093         * modules/crypto/hmac-sha1: Moved from ../.
60094         * modules/crypto/hmac-sha1-tests: Moved from ../.
60095         * modules/crypto/md2: Moved from ../.
60096         * modules/crypto/md2-tests: Moved from ../.
60097         * modules/crypto/md4: Moved from ../.
60098         * modules/crypto/md4-tests: Moved from ../.
60099         * modules/crypto/md5: Moved from ../.
60100         * modules/crypto/md5-tests: Moved from ../.
60101         * modules/crypto/memxor: Moved from ../.
60102         * modules/crypto/rijndael: Moved from ../.
60103         * modules/crypto/rijndael-tests: Moved from ../.
60104         * modules/crypto/sha1: Moved from ../.
60105
60106 2007-03-30  James Youngman  <jay@gnu.org>
60107
60108         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60109         rename() to change the ctime of a file (because ctime is unaffected
60110         by rename on jfs2 on AIX 5.1).
60111         (main): Start by doing cleanup, in case a previous run failed leaving
60112         test files behind.
60113
60114 2007-03-31  Bruno Haible  <bruno@clisp.org>
60115
60116         Support old proprietary implementations of iconv.
60117         * modules/iconv_open: New file.
60118         * lib/iconv_.h: New file.
60119         * m4/iconv_h.m4: New file.
60120         * lib/iconv_open.c: New file.
60121         * lib/iconv_open-aix.gperf: New file.
60122         * lib/iconv_open-hpux.gperf: New file.
60123         * lib/iconv_open-irix.gperf: New file.
60124         * lib/iconv_open-osf.gperf: New file.
60125         * m4/iconv_open.m4: New file.
60126         * modules/linebreak (Depends-on): Add iconv_open.
60127         * modules/striconv (Depends-on): Likewise.
60128         * modules/striconveh (Depends-on): Likewise.
60129         * modules/unicodeio (Depends-on): Likewise.
60130         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60131         (iconv_t)(-1).
60132         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60133         conversion if cd is (iconv_t)(-1).
60134         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60135         is not possible.
60136
60137 2007-03-31  Bruno Haible  <bruno@clisp.org>
60138
60139         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60140         work on Solaris either. Protect also second use of "autodetect_jp".
60141
60142 2007-03-31  Bruno Haible  <bruno@clisp.org>
60143
60144         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60145         the function is not present.
60146
60147 2007-03-31  Bruno Haible  <bruno@clisp.org>
60148
60149         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60150         the function is not present.
60151
60152 2007-03-31  Bruno Haible  <bruno@clisp.org>
60153
60154         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60155         a bug in HP-UX iconv_open().
60156
60157 2007-03-31  Bruno Haible  <bruno@clisp.org>
60158
60159         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60160         (Mathematics <math.h>): New section, add fpieee.
60161         (Input/output <stdio.h>): Add fseterr.
60162         (Mathematics <math.h>): New section, add printf-frexp.
60163         (Container data structures): Add sublist.
60164         (Core language properties): Add fpucw, inline.
60165         (Functions for greatest-width integer types <inttypes.h>): Add
60166         imaxabs, imaxdiv, inttypes.
60167         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60168         isnanl-nolibm, ldexp.
60169         (Mathematics <math.h>): New section, add printf-frexpl.
60170         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60171         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60172         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60173         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60174         (Unicode string functions): Add unistr/u*-mbtoucr.
60175         (Java): Add javacomp-script, javaexec-script.
60176         (C#): Add csharpcomp-script, csharpexec-script.
60177         (Support for building libraries and executables): Add havelib,
60178         relocatable-*.
60179         (Support for maintaining and releasing projects): Renamed from
60180         'Support for maintaining and release projects'. Add announce-gen.
60181
60182 2007-03-31  Bruno Haible  <bruno@clisp.org>
60183
60184         * README: Talk primarily about git.
60185         (git and CVS): Renamed from CVS.
60186         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60187         gnulib is available through git.
60188         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60189
60190 2007-03-30  Bruno Haible  <bruno@clisp.org>
60191
60192         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60193         * lib/poll_.h: Likewise.
60194         * lib/stat_.h: Likewise.
60195         * lib/sys_time_.h: Likewise.
60196         * lib/sysexit_.h: Likewise.
60197         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60198         * lib/stdbool_.h: Likewise.
60199         * lib/byteswap_.h: Add double-inclusion guard.
60200
60201 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60202
60203         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60204
60205 2007-03-30  Karl Berry  <karl@gnu.org>
60206
60207         * config/srclist-update: double space after USA in the license
60208         substitution, since that's how it's usually (?) written.
60209
60210 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60211
60212         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60213         reported by Bruno Haible.
60214
60215 2007-03-29  Bruno Haible  <bruno@clisp.org>
60216
60217         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60218         a bug in AIX iconv().
60219
60220 2007-03-29  Bruno Haible  <bruno@clisp.org>
60221
60222         * modules/ldexpl-tests: New file.
60223         * tests/test-ldexpl.c: New file.
60224
60225 2007-03-29  Bruno Haible  <bruno@clisp.org>
60226
60227         * lib/ldexpl.c: Include fpucw.h.
60228         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60229         multiplication.
60230         * modules/ldexpl (Depends-on): Add fpucw.
60231
60232 2007-03-29  Bruno Haible  <bruno@clisp.org>
60233
60234         * modules/ldexpl: New file.
60235         * m4/ldexpl.m4: New file.
60236         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60237         set.
60238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60239         REPLACE_LDEXPL.
60240         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60241         REPLACE_LDEXPL.
60242         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60243         gl_FUNC_LDEXPL_WORKS.
60244         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60245         * modules/mathl (Files): Remove lib/ldexpl.c.
60246         (Depends-on): Add ldexpl.
60247
60248 2007-03-29  Bruno Haible  <bruno@clisp.org>
60249
60250         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60251
60252 2007-03-29  Bruno Haible  <bruno@clisp.org>
60253
60254         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60255         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60256         and possibly also HP-UX.
60257         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60258         work on AIX, IRIX, HP-UX, OSF/1.
60259         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60260         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60261         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60262         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60263         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60264         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60265
60266 2007-03-29  Bruno Haible  <bruno@clisp.org>
60267
60268         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60269
60270 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60271
60272         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60273         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60274
60275 2007-03-29  Eric Blake  <ebb9@byu.net>
60276
60277         * lib/acl-internal.h: Remove redundant include.
60278         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60279         Cygwin when a file is locked.
60280
60281 2007-03-29  Bruno Haible  <bruno@clisp.org>
60282
60283         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60284         file.
60285         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60286
60287 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60288
60289         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60290         try to remove a parent directory if the child couldn't be removed
60291         (except for the first rmdir, which could fail because the child
60292         doesn't exist).  Problem reported by Jeff Blaine in
60293         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60294
60295 2007-03-28  Bruno Haible  <bruno@clisp.org>
60296
60297         * lib/striconveh.c (utf8conv_carefully): New function.
60298         (mem_cd_iconveh_internal): Invoke it.
60299
60300 2007-03-28  Bruno Haible  <bruno@clisp.org>
60301
60302         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60303         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60304         input.
60305         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60306         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60307         unistr/u8-uctomb.
60308
60309 2007-03-28  Bruno Haible  <bruno@clisp.org>
60310
60311         * modules/unistr/u8-mbtoucr: New file.
60312         * lib/unistr/u8-mbtoucr.c: New file.
60313         * modules/unistr/u16-mbtoucr: New file.
60314         * lib/unistr/u16-mbtoucr.c: New file.
60315         * modules/unistr/u16-mbtoucr: New file.
60316         * lib/unistr/u16-mbtoucr.c: New file.
60317         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60318
60319 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60320             Bruno Haible  <bruno@clisp.org>
60321
60322         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60323         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60324         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60325
60326         * m4/stdio_h.m4: Add stubs for vasprintf too.
60327
60328         * modules/stdio: Support vasprintf in sed command.
60329
60330         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60331         vasprintf.h.  Add stdio module indicator.
60332
60333         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60334         vasprintf.h.
60335
60336         * lib/vasprintf.h: File removed.
60337
60338         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60339         * lib/vasprintf.c: Ditto.
60340         * lib/xvasprintf.c: Ditto.
60341         * tests/test-vasprintf-posix.c: Ditto.
60342         * tests/test-vasprintf.c: Ditto.
60343
60344 2007-03-27  Bruno Haible  <bruno@clisp.org>
60345
60346         Make vasnprintf multithread-safe.
60347         * lib/vasnprintf.c (decimal_point_char): New function.
60348         (VASNPRINTF): Use it.
60349         Suggested by Simon Josefsson.
60350
60351 2007-03-27  Eric Blake  <ebb9@byu.net>
60352
60353         Support sub-second birthtime on cygwin.
60354         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
60355         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
60356         (get_stat_birthtime): Also work with st_birthtim.
60357
60358 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
60359
60360         * lib/stat-time.h (USE_BIRTHTIME): Remove.
60361         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
60362         (get_stat_birthtime_ns): Do not try to use "spare" fields.
60363         (get_stat_birthtime_ns): Simplify compile-time tests.
60364         (get_stat_birthtime): Change the API to look like
60365         get_stat_mtime etc., except return a negative tv_nsec on error.
60366         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
60367         Don't check for "spare" fields.
60368         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
60369         or for struct stat.st_birthtime, as these tests aren't used.
60370         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
60371
60372 2007-03-27  Bruno Haible  <bruno@clisp.org>
60373
60374         * lib/stat-time.h: Include <sys/stat.h>.
60375
60376 2007-03-27  James Youngman  <jay@gnu.org>
60377
60378         * lib/stat-time.h (get_stat_birthtime): New function for
60379           retrieving st_birthtime as provided by UFS2 (hence *BSD).
60380         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
60381           and its variants.
60382         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
60383         * modules/stat-time-test: New file.
60384         * tests/test-stat-time.c: New test, devised by Bruno Haible.
60385
60386 2007-03-26  Bruno Haible  <bruno@clisp.org>
60387
60388         Better support of signalling NaNs.
60389         * lib/atanl.c: Include isnanl.h.
60390         (atanl): Perform test for NaN at the beginning of the function and
60391         through a call to isnanl.
60392         * lib/cosl.c: Include isnanl.h.
60393         (cosl): Perform test for NaN at the beginning of the function and
60394         through a call to isnanl.
60395         * lib/ldexpl.c: Include isnanl.h.
60396         (ldexpl): Perform test for NaN through a call to isnanl.
60397         * lib/logl.c: Include isnanl.h.
60398         (logl): Perform test for NaN at the beginning of the function and
60399         through a call to isnanl.
60400         * lib/sinl.c: Include isnanl.h.
60401         (sinl): Perform test for NaN at the beginning of the function and
60402         through a call to isnanl.
60403         * lib/sqrtl.c: Include isnanl.h.
60404         (sqrtl): Perform test for NaN at the beginning of the function and
60405         through a call to isnanl.
60406         * lib/tanl.c: Include isnanl.h.
60407         (tanl): Perform test for NaN at the beginning of the function and
60408         through a call to isnanl.
60409         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
60410         * modules/mathl (Depends-on): Add isnanl.
60411
60412 2007-03-26  Eric Blake  <ebb9@byu.net>
60413
60414         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
60415         regression in logic sense of previous patch.
60416
60417 2007-03-26  Bruno Haible  <bruno@clisp.org>
60418
60419         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
60420         unportable shell command "if ! ...".
60421         Reported by Ralf Wildenhues.
60422
60423 2007-03-25  Bruno Haible  <bruno@clisp.org>
60424
60425         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
60426         <sysexits.h> file, and only add EX_CONFIG.
60427         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
60428         absolute file name and whether it is sufficient. Substitute also
60429         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
60430         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
60431         ABSOLUTE_SYSEXITS_H into sysexits.h.
60432
60433 2007-03-25  Bruno Haible  <bruno@clisp.org>
60434
60435         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
60436         hints is NULL.
60437
60438 2007-03-25  Bruno Haible  <bruno@clisp.org>
60439
60440         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
60441         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
60442
60443 2007-03-25  Bruno Haible  <bruno@clisp.org>
60444
60445         * lib/vasnprintf.c: Include langinfo.h.
60446         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
60447         multithread-safe.
60448         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
60449         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
60450         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60451         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60452         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60453         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60454         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60455         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60456         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60457         Reported by Simon Josefsson.
60458
60459 2007-03-25  Bruno Haible  <bruno@clisp.org>
60460
60461         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60462         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60463         * modules/vasnprintf (Depends-on): Add stdint.
60464
60465 2007-03-25  Bruno Haible  <bruno@clisp.org>
60466
60467         * modules/fpieee: New file.
60468         * m4/fpieee.m4: New file.
60469         * modules/isnan-nolibm (Depends-on): Add fpieee.
60470         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60471         * modules/isnanl (Depends-on): Add fpieee.
60472
60473 2007-03-25  Bruno Haible  <bruno@clisp.org>
60474
60475         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60476
60477 2007-03-25  Bruno Haible  <bruno@clisp.org>
60478
60479         Avoid test failures on IRIX 6.5.
60480         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60481         (main): Use it.
60482         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60483         macros.
60484         (main): Use them.
60485
60486 2007-03-25  Bruno Haible  <bruno@clisp.org>
60487
60488         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
60489         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
60490         exists but doesn't work.
60491         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
60492         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
60493         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
60494         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
60495         math.h.
60496
60497 2007-03-25  Bruno Haible  <bruno@clisp.org>
60498
60499         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
60500         returns inf. Needed on IRIX 6.5.
60501
60502 2007-03-25  Bruno Haible  <bruno@clisp.org>
60503
60504         * tests/test-frexpl.c: Include isnanl-nolibm.h.
60505         (main): Use isnanl instead of x != x idiom.
60506         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
60507
60508         * tests/test-frexp.c: Include isnan.h.
60509         (main): Use isnan instead of x != x idiom.
60510         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
60511
60512 2007-03-25  Bruno Haible  <bruno@clisp.org>
60513
60514         * tests/test-frexp.c (NaN): New function/macro.
60515         (main): Use it instead of 0.0 / 0.0.
60516         * tests/test-isnan.c (NaN): New function/macro.
60517         (main): Use it instead of 0.0 / 0.0.
60518         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
60519         (test_function): Use it instead of 0.0 / 0.0.
60520         * tests/test-vasprintf-posix.c (NaN): New function/macro.
60521         (test_function): Use it instead of 0.0 / 0.0.
60522         * tests/test-snprintf-posix.h (NaN): New function/macro.
60523         (test_function): Use it instead of 0.0 / 0.0.
60524         * tests/test-sprintf-posix.h (NaN): New function/macro.
60525         (test_function): Use it instead of 0.0 / 0.0.
60526         * tests/test-fprintf-posix.h (NaN): New function/macro.
60527         (test_function): Use it instead of 0.0 / 0.0.
60528         * tests/test-printf-posix.h (NaN): New function/macro.
60529         (test_function): Use it instead of 0.0 / 0.0.
60530
60531         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
60532
60533 2007-03-25  Bruno Haible  <bruno@clisp.org>
60534
60535         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
60536
60537 2007-03-25  Bruno Haible  <bruno@clisp.org>
60538
60539         * lib/regexec.c (merge_state_with_log): Make static.
60540
60541 2007-03-25  Bruno Haible  <bruno@clisp.org>
60542
60543         * lib/trigl.c (kernel_rem_pio2): Make static.
60544
60545 2007-03-25  Bruno Haible  <bruno@clisp.org>
60546
60547         * lib/sincosl.c (sincosl_table): Make static.
60548
60549 2007-03-25  Bruno Haible  <bruno@clisp.org>
60550
60551         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
60552         if the compiler does not support C99.
60553
60554 2007-03-25  Bruno Haible  <bruno@clisp.org>
60555
60556         * modules/time (Makefile.am): Ensure all rule action lines start with a
60557         tab.
60558
60559 2007-03-24  Bruno Haible  <bruno@clisp.org>
60560
60561         * modules/tsearch-tests: New file.
60562         * tests/test-tsearch.sh: New file.
60563         * tests/test-tsearch.c: New file, mostly copied from glibc.
60564
60565         * modules/search-tests: New file.
60566         * tests/test-search.c: New file.
60567
60568         * modules/search: New file.
60569         * lib/search_.h: New file, incorporating lib/tsearch.h.
60570         * m4/search_h.m4: New file.
60571         * lib/tsearch.h: Remove file.
60572         * lib/tsearch.c: Include search.h instead of tsearch.h.
60573         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
60574         HAVE_TSEARCH.
60575         * modules/tsearch (Files): Remove lib/tsearch.h.
60576         (Depends-on): Add search.
60577         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
60578         (Include): Change tsearch.h into search.h.
60579
60580 2007-03-24  Bruno Haible  <bruno@clisp.org>
60581
60582         * modules/fpucw: New file.
60583         * lib/fpucw.h: New file.
60584         * lib/frexp.c: Include fpucw.h.
60585         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60586         (FUNC): Use them.
60587         * lib/printf-frexp.c: Include fpucw.h.
60588         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60589         (FUNC): Use them.
60590         * lib/vasnprintf.c: Include fpucw.h.
60591         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
60592         'long double' calculations.
60593         * tests/test-frexpl.c: Include fpucw.h.
60594         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60595         * tests/test-printf-frexpl.c: Include fpucw.h.
60596         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60597         * modules/frexpl (Depends-on): Add fpucw.
60598         * modules/printf-frexpl (Depends-on): Likewise.
60599         * modules/fprintf-posix (Depends-on): Likewise.
60600         * modules/snprintf-posix (Depends-on): Likewise.
60601         * modules/sprintf-posix (Depends-on): Likewise.
60602         * modules/vasnprintf-posix (Depends-on): Likewise.
60603         * modules/vasprintf-posix (Depends-on): Likewise.
60604         * modules/vfprintf-posix (Depends-on): Likewise.
60605         * modules/vsnprintf-posix (Depends-on): Likewise.
60606         * modules/vsprintf-posix (Depends-on): Likewise.
60607         * modules/frexpl-tests (Depends-on): Likewise.
60608         * modules/printf-frexpl-tests (Depends-on): Likewise.
60609
60610 2007-03-24  Bruno Haible  <bruno@clisp.org>
60611
60612         * lib/float+.h: New file.
60613         * lib/isnan.c: Include float+.h.
60614         (SIZE): New macro.
60615         (FUNC): Compare only SIZE bytes of the value.
60616         * lib/vasnprintf.c: Include float+.h.
60617         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
60618         SIZEOF_LDBL or SIZEOF_DBL bytes.
60619         * modules/isnan-nolibm (Files): Add lib/float+.h.
60620         * modules/isnanl-nolibm (Files): Add lib/float+.h.
60621         * modules/isnanl (Files): Add lib/float+.h.
60622         * modules/vasnprintf (Files): Add lib/float+.h.
60623
60624 2007-03-24  Bruno Haible  <bruno@clisp.org>
60625
60626         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
60627         include isnanl-nolibm.h.
60628
60629 2007-03-24  Bruno Haible  <bruno@clisp.org>
60630
60631         * tests/test-read-file.c (main): Don't produce spurious output for
60632         expected situations. Make the test fail if it encountered unexpected
60633         results.
60634
60635 2007-03-24  Bruno Haible  <bruno@clisp.org>
60636
60637         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
60638         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
60639
60640 2007-03-24  Bruno Haible  <bruno@clisp.org>
60641
60642         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
60643
60644 2007-03-24  Bruno Haible  <bruno@clisp.org>
60645
60646         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
60647         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
60648
60649         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
60650         * modules/utf8-ucs4: Turn into a symbolic link to module
60651         unistr/u8-mbtouc.
60652
60653         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
60654         utf8-ucs4-unsafe.
60655         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
60656         unistr/u8-mbtouc-unsafe.
60657
60658         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
60659         * modules/utf16-ucs4: Turn into a symbolic link to module
60660         unistr/u16-mbtouc.
60661
60662         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
60663         utf16-ucs4-unsafe.
60664         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
60665         unistr/u16-mbtouc-unsafe.
60666
60667         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
60668         * modules/ucs4-utf8: Turn into a symbolic link to module
60669         unistr/u8-ubtomb.
60670
60671         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
60672         * modules/ucs4-utf16: Turn into a symbolic link to module
60673         unistr/u16-ubtomb.
60674
60675 2007-03-24  Bruno Haible  <bruno@clisp.org>
60676
60677         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
60678         Enable the function only if HAVE_INLINE.
60679         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
60680         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60681         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
60682         Enable the function only if HAVE_INLINE.
60683         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
60684         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60685         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
60686         Enable the function only if HAVE_INLINE.
60687         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
60688         Enable the function only if HAVE_INLINE.
60689         * modules/utf8-ucs4: Update.
60690         * modules/utf8-ucs4-unsafe: Update.
60691         * modules/utf16-ucs4: Update.
60692         * modules/utf16-ucs4-unsafe: Update.
60693         * modules/ucs4-utf8: Update.
60694         * modules/ucs4-utf16: Update.
60695
60696 2007-03-24  Bruno Haible  <bruno@clisp.org>
60697
60698         * lib/utf8-ucs4.h: Remove file.
60699         * lib/utf8-ucs4-unsafe.h: Remove file.
60700         * lib/utf16-ucs4.h: Remove file.
60701         * lib/utf16-ucs4-unsafe.h: Remove file.
60702         * lib/ucs4-utf8.h: Remove file.
60703         * lib/ucs4-utf16.h: Remove file.
60704         * lib/unistr.h: Include their previous contents.
60705         * m4/utf-ucs4.m4: Remove file.
60706         * m4/ucs4-utf.m4: Remove file.
60707         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
60708         (Depends-on): Add unistr/base.
60709         (configure.ac): Remove gl_UTF_UCS4.
60710         (Makefile.am): Update.
60711         (Include): Change to unistr.h.
60712         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
60713         (Depends-on): Add unistr/base.
60714         (configure.ac): Remove gl_UTF_UCS4.
60715         (Makefile.am): Update.
60716         (Include): Change to unistr.h.
60717         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
60718         (Depends-on): Add unistr/base.
60719         (configure.ac): Remove gl_UTF_UCS4.
60720         (Makefile.am): Update.
60721         (Include): Change to unistr.h.
60722         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
60723         (Depends-on): Add unistr/base.
60724         (configure.ac): Remove gl_UTF_UCS4.
60725         (Makefile.am): Update.
60726         (Include): Change to unistr.h.
60727         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
60728         (Depends-on): Add unistr/base.
60729         (configure.ac): Remove gl_UCS4_UTF.
60730         (Makefile.am): Update.
60731         (Include): Change to unistr.h.
60732         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
60733         (Depends-on): Add unistr/base.
60734         (configure.ac): Remove gl_UCS4_UTF.
60735         (Makefile.am): Update.
60736         (Include): Change to unistr.h.
60737         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
60738         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
60739         utf8-ucs4-unsafe.h.
60740         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
60741         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
60742         utf16-ucs4-unsafe.h.
60743         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
60744         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
60745         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
60746         * lib/unistr/u8-strchr.c: Likewise.
60747         * lib/unistr/u8-strrchr.c: Likewise.
60748         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
60749         * lib/unistr/u16-strchr.c: Likewise.
60750         * lib/unistr/u16-strrchr.c: Likewise.
60751         * lib/striconveh.c: Update.
60752         * lib/linebreak.c: Update.
60753
60754 2007-03-24  Bruno Haible  <bruno@clisp.org>
60755
60756         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
60757         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
60758
60759 2007-03-22  Bruno Haible  <bruno@clisp.org>
60760
60761         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
60762
60763 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60764
60765         * MODULES.html.sh (File system functions): New module write-any-file.
60766         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
60767         * m4/write-any-file.m4: New files.
60768
60769 2007-03-23  Eric Blake  <ebb9@byu.net>
60770
60771         * gnulib-tool: Rearrange space-tab sequences, since some editors
60772         like to eat them.
60773
60774 2007-03-23  Eric Blake  <ebb9@byu.net>
60775
60776         * lib/version-etc.c (version_etc_va): Update license wording to
60777         be more concise.  Recommended by Richard Stallman.
60778
60779 2007-03-22  Bruno Haible  <bruno@clisp.org>
60780
60781         * lib/poll.c (MSG_PEEK): New fallback definition.
60782
60783 2007-03-22  Bruno Haible  <bruno@clisp.org>
60784
60785         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
60786         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
60787         (main): Update.
60788         Fixes a compilation error on BeOS.
60789
60790 2007-03-22  Bruno Haible  <bruno@clisp.org>
60791
60792         * modules/frexpl-tests: New file.
60793         * tests/test-frexpl.c: New file.
60794
60795         * modules/frexpl: New file.
60796         * m4/frexpl.m4: New file.
60797         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
60798         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
60799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
60800         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
60801         (Depends-on): Add frexpl. Remove isnanl-nolibm.
60802         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
60803
60804 2007-03-22  Bruno Haible  <bruno@clisp.org>
60805
60806         * lib/frexpl.c: Share code with lib/frexp.c.
60807         * modules/mathl (Files): Add lib/frexp.c.
60808         (Depends-on): Add isnanl-nolibm.
60809
60810 2007-03-22  Bruno Haible  <bruno@clisp.org>
60811
60812         * modules/printf-frexp (Files): Add m4/frexp.m4.
60813         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
60814         only if the found frexp function actually works.
60815
60816 2007-03-22  Bruno Haible  <bruno@clisp.org>
60817
60818         * lib/frexp.c: Remove older implementation that uses divisions.
60819
60820 2007-03-21  Bruno Haible  <bruno@clisp.org>
60821
60822         * modules/frexp-tests: New file.
60823         * tests/test-frexp.c: New file.
60824
60825         * modules/frexp: New file.
60826         * lib/frexp.c: New file.
60827         * m4/frexp.m4: New file.
60828         * lib/math_.h (frexp): New declaration.
60829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
60830         REPLACE_FREXP.
60831         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
60832
60833 2007-03-21  Bruno Haible  <bruno@clisp.org>
60834
60835         * modules/isnanl-tests: New file.
60836         * tests/test-isnanl.c: New file.
60837
60838         * modules/isnanl: New file.
60839         * lib/isnanl.h: New file.
60840         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
60841         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
60842         gl_FUNC_ISNANL_WORKS.
60843         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
60844         New macros.
60845
60846 2007-03-21  Bruno Haible  <bruno@clisp.org>
60847
60848         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
60849         lib/isnanl.h.
60850         (Include): Update.
60851         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
60852         * lib/vasnprintf.c: Update.
60853         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
60854         tests/test-isnanl.h, remove tests/test-isnanl.c.
60855         (Makefile.am): Update.
60856         * tests/test-isnanl-nolibm.c: New file.
60857         * tests/test-isnanl.h: New file.
60858         * tests/test-isnanl.c: Remove file.
60859
60860 2007-03-21  Jim Meyering  <jim@meyering.net>
60861
60862         When trying to open ".", treat ESTALE like EACCES.
60863         * lib/savewd.c (savewd_save): Resort to forking not just upon
60864         failure with EACCES, but also when errno is ESTALE.
60865
60866 2007-03-20  Bruno Haible  <bruno@clisp.org>
60867
60868         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
60869         Needed on AIX 5.1. Reported by Matthew Woehlke.
60870
60871 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60872
60873         Suggestions by Bruno Haible:
60874         * lib/acl-internal.h: Include "gettext.h" rather than rolling
60875         our own.
60876         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
60877         * modules/acl (Depends-on): Add gettext.
60878
60879 2007-03-19  Bruno Haible  <bruno@clisp.org>
60880
60881         * modules/iconvme: Remove file.
60882         * lib/iconvme.h: Remove file.
60883         * lib/iconvme.c: Remove file.
60884         * m4/iconvme.m4: Remove file.
60885
60886 2007-03-19  Bruno Haible  <bruno@clisp.org>
60887
60888         * doc/relocatable-maint.texi: Break long shell script line.
60889         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60890
60891 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60892
60893         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
60894         handle file_has_acl.
60895         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
60896         * lib/acl.c: Move header inclusions and related macro defns into
60897         lib/acl-internal.h.
60898         (S_ISLNK): Remove defn, since that's now done for us.
60899         (file_has_acl): Move to lib/file-has-acl.c.
60900         Call acl_trivial if available.  This is the crucial part of the fix.
60901         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
60902         shared within the library.  Rewrite a bit, partly to make it compatible
60903         with the GNU coding style.
60904         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
60905         Remove unnecessary double-quotes.
60906         Don't test for acl_to_text; the build will catch that.
60907         Replace acl_entries if it doesn't exist and it is needed.
60908         Check for -lsec and acl_trivial (as used on Solaris 10).
60909         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
60910         lib/file-has-acl.c.
60911         (Depends-on): Add sys_stat, for S_ISLNK.
60912
60913 2007-03-19  Ben Pfaff  <blp@gnu.org>
60914
60915         * doc/gnulib.texi: Fix typos.
60916         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60917
60918 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60919
60920         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
60921         If size is zero here, buf must be zero.
60922
60923 2007-03-19  Simon Josefsson  <simon@josefsson.org>
60924
60925         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
60926         <bruno@clisp.org>.
60927
60928 2007-03-18  Bruno Haible  <bruno@clisp.org>
60929
60930         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
60931         Suggested by Eric Blake.
60932
60933 2007-03-18  Ben Pfaff  <blp@gnu.org>
60934
60935         * doc/relocatable.texi: Recommend using as prefix a directory
60936         that does not exist and will never be created.  Based on
60937         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
60938         and others.
60939
60940 2007-03-17  Bruno Haible  <bruno@clisp.org>
60941
60942         * lib/fchownat.c: Include lchown.h.
60943
60944 2007-03-17  Bruno Haible  <bruno@clisp.org>
60945
60946         Fix endless loop when the given allocated size was > INT_MAX.
60947         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
60948         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
60949         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
60950         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
60951         * lib/sprintf.c (sprintf): Likewise.
60952
60953 2007-03-17  Bruno Haible  <bruno@clisp.org>
60954
60955         * tests/test-argp-2.sh (func_compare): Output a context diff.
60956
60957 2007-03-17  Bruno Haible  <bruno@clisp.org>
60958
60959         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
60960         locale's decimal-point character.
60961
60962 2007-03-17  Bruno Haible  <bruno@clisp.org>
60963
60964         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
60965         before comparing it. Needed because on some platforms (e.g. x86) a
60966         'long double' occupies less bytes than sizeof (long double).
60967
60968 2007-03-17  Bruno Haible  <bruno@clisp.org>
60969
60970         * tests/test-crc.c (main): Make printf statements 64-bit clean.
60971         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
60972         * tests/test-getaddrinfo.c (simple): Likewise.
60973         * tests/test-read-file.c (main): Likewise.
60974
60975 2007-03-17  Bruno Haible  <bruno@clisp.org>
60976
60977         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
60978
60979 2007-03-17  Bruno Haible  <bruno@clisp.org>
60980
60981         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
60982         unused variable.
60983
60984 2007-03-17  Bruno Haible  <bruno@clisp.org>
60985
60986         * tests/test-c-strcasecmp.c: Include c-strcase.h.
60987         * tests/test-c-strncasecmp.c: Likewise.
60988
60989 2007-03-17  Bruno Haible  <bruno@clisp.org>
60990
60991         * modules/stdlib (Depends-on): Add unistd.
60992         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
60993         Needed for MacOS X 10.3.
60994
60995 2007-03-17  Bruno Haible  <bruno@clisp.org>
60996
60997         * lib/unistr/u-strdup.h: Include <stdlib.h>.
60998
60999 2007-03-17  Bruno Haible  <bruno@clisp.org>
61000
61001         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61002
61003 2007-03-17  Bruno Haible  <bruno@clisp.org>
61004
61005         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61006         to reflect files copied from gnulib (with or without modifications).
61007         Suggested by Jim Meyering.
61008
61009 2007-03-17  Eric Blake  <ebb9@byu.net>
61010
61011         * NEWS: Document stdlib change from 2007-02-18.
61012
61013 2007-03-17  Jim Meyering  <jim@meyering.net>
61014
61015         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61016         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61017         someone uses a name containing shell meta-characters.
61018         Reported by Alfred M. Szmidt.
61019
61020         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61021
61022 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61023
61024         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61025         and copy gettext configuration files only if configure.ac contains
61026         a use of AM_GNU_GETTEXT_VERSION.
61027
61028 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61029
61030         * build-aux/bootstrap (gnulib_name): New variable.
61031         (gnulib_tool_options): Use it.
61032
61033 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61034
61035         * tests/test-des.c: Use new namespace.
61036
61037 2007-03-15  Bruno Haible  <bruno@clisp.org>
61038
61039         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61040         Reported by James Youngman <jay@gnu.org>.
61041
61042 2007-03-15  Bruno Haible  <bruno@clisp.org>
61043
61044         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61045         declared prototype. Needed with cc on OSF/1 5.1.
61046
61047 2007-03-15  Bruno Haible  <bruno@clisp.org>
61048
61049         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61050         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61051         (struct gl_list_implementation): Add dispose_fn argument to the
61052         'create_empty', 'create' methods.
61053         (struct gl_list_impl_base): Add field 'dispose_fn'.
61054         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61055         argument.
61056         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61057         dispose_fn argument.
61058         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61059         dispose_fn on the dropped values.
61060         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61061         dispose_fn argument.
61062         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61063         dropped values.
61064         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61065         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61066         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61067         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61068         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61069         argument.
61070         (gl_tree_list_free): Call dispose_fn on the dropped values.
61071         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61072         the dropped values.
61073         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61074         Add dispose_fn argument.
61075         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61076         Call dispose_fn on the dropped values.
61077         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61078         Add dispose_fn argument.
61079         (gl_sublist_create): Initialize the 'dispose_fn' field.
61080         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61081         * tests/test-array_list.c (main): Update.
61082         * tests/test-carray_list.c (main): Update.
61083         * tests/test-avltree_list.c (main): Update.
61084         * tests/test-rbtree_list.c (main): Update.
61085         * tests/test-avltreehash_list.c (main): Update.
61086         * tests/test-rbtreehash_list.c (main): Update.
61087         * tests/test-linked_list.c (main): Update.
61088         * tests/test-linkedhash_list.c (main): Update.
61089         * tests/test-array_oset.c (main): Update.
61090
61091 2007-03-15  Bruno Haible  <bruno@clisp.org>
61092
61093         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61094         (gl_oset_create_empty): Add dispose_fn argument.
61095         (struct gl_oset_implementation): Add dispose_fn argument to
61096         'create_empty' method.
61097         (struct gl_oset_impl_base): Add dispose_fn field.
61098         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61099         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61100         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61101         values.
61102         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61103         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61104         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61105         dropped value.
61106         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61107         dropped value.
61108         * tests/test-array_oset.c (main): Update.
61109         * tests/test-avltree_oset.c (main): Update.
61110         * tests/test-rbtree_oset.c (main): Update.
61111         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61112
61113 2007-03-13  Bruno Haible  <bruno@clisp.org>
61114
61115         * tests/test-stdbool.c (i): Update after last patch.
61116
61117 2007-03-12  Bruno Haible  <bruno@clisp.org>
61118
61119         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61120         the iswprint macro. Needed on Solaris 2.5.1.
61121
61122 2007-03-12  Bruno Haible  <bruno@clisp.org>
61123
61124         * tests/test-printf-frexp.c (main): Declare x as volatile.
61125
61126 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61127
61128         * doc/gnulib.texi (Build robot for gnulib): New section.
61129
61130 2007-03-12  Jim Meyering  <jim@meyering.net>
61131
61132         * build-aux/bootstrap: New file.
61133         * build-aux/bootstrap.conf: New file, from coreutils.
61134
61135 2007-03-11  Bruno Haible  <bruno@clisp.org>
61136
61137         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61138
61139 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61140
61141         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61142         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61143         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61144
61145 2007-03-11  Bruno Haible  <bruno@clisp.org>
61146
61147         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61148         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61149
61150 2007-03-11  Bruno Haible  <bruno@clisp.org>
61151
61152         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61153         formula. Needed for SunPRO C 5.0.
61154
61155 2007-03-11  Bruno Haible  <bruno@clisp.org>
61156
61157         * modules/long-options (Depends-on): Add getopt.
61158
61159 2007-03-11  Bruno Haible  <bruno@clisp.org>
61160
61161         * modules/modechange (Depends-on): Add stdbool.
61162
61163 2007-03-11  Bruno Haible  <bruno@clisp.org>
61164
61165         * modules/i-ring (Depends-on): Add stdbool.
61166
61167 2007-03-11  Bruno Haible  <bruno@clisp.org>
61168
61169         * modules/gc-des (Depends-on): Add stdbool.
61170
61171 2007-03-11  Bruno Haible  <bruno@clisp.org>
61172
61173         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61174
61175 2007-03-11  Bruno Haible  <bruno@clisp.org>
61176
61177         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61178
61179 2007-03-11  Bruno Haible  <bruno@clisp.org>
61180
61181         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61182
61183 2007-03-11  Bruno Haible  <bruno@clisp.org>
61184
61185         * lib/vasnprintf.c (sprintf): Undefine.
61186
61187 2007-03-11  Bruno Haible  <bruno@clisp.org>
61188
61189         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61190         initializers in SunPRO C and Compaq C compilers.
61191
61192 2007-03-11  Bruno Haible  <bruno@clisp.org>
61193
61194         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61195         decrementing code ANSI C compliant.
61196
61197 2007-03-11  Bruno Haible  <bruno@clisp.org>
61198
61199         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61200         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61201
61202 2007-03-11  Bruno Haible  <bruno@clisp.org>
61203
61204         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61205         <stdbool.h> substitute doesn't pass.
61206
61207 2007-03-11  Bruno Haible  <bruno@clisp.org>
61208
61209         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61210
61211 2007-03-11  Bruno Haible  <bruno@clisp.org>
61212
61213         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61214         script, for submission to autobuild.josefsson.org.
61215
61216 2007-03-10  Bruno Haible  <bruno@clisp.org>
61217
61218         * modules/canonicalize-lgpl-tests: New file.
61219         * tests/test-canonicalize-lgpl.sh: New file.
61220         * tests/test-canonicalize-lgpl.c: New file.
61221
61222         * modules/c-strcase-tests: New file.
61223         * tests/test-c-strcase.sh: New file.
61224         * tests/test-c-strcasecmp.c: New file.
61225         * tests/test-c-strncasecmp.c: New file.
61226
61227         * modules/atexit-tests: New file.
61228         * tests/test-atexit.sh: New file.
61229         * tests/test-atexit.c: New file.
61230
61231 2007-03-10  Bruno Haible  <bruno@clisp.org>
61232
61233         * tests/test-binary-io.sh: Use temporary filenames that are not so
61234         likely to clash with those of other tests (in a parallel make).
61235         * tests/test-binary-io.c: Likewise.
61236
61237 2007-03-10  Bruno Haible  <bruno@clisp.org>
61238
61239         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61240         fallback; use #error instead.
61241         Suggested by Simon Josefsson.
61242
61243 2007-03-10  Bruno Haible  <bruno@clisp.org>
61244
61245         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61246         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61247         first and the last.
61248
61249 2007-03-10  Bruno Haible  <bruno@clisp.org>
61250
61251         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61252
61253 2007-03-10  Bruno Haible  <bruno@clisp.org>
61254
61255         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61256         "make distcheck".
61257         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61258         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61259         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61260
61261 2007-03-10  Bruno Haible  <bruno@clisp.org>
61262
61263         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61264         variable.
61265         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61266         variable.
61267
61268 2007-03-09  Eric Blake  <ebb9@byu.net>
61269         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61270
61271         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61272         types are not being provided by gnulib.
61273         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61274         types are supported.
61275
61276 2007-03-10  Bruno Haible  <bruno@clisp.org>
61277
61278         * lib/stdio_.h (__attribute__): New macro.
61279         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61280         vsprintf): Specify __attribute__ __format__ for GCC.
61281         Suggested by Eric Blake.
61282
61283 2007-03-09  Bruno Haible  <bruno@clisp.org>
61284
61285         * modules/printf-posix-tests: New file.
61286         * tests/test-printf-posix.sh: New file.
61287         * tests/test-printf-posix.c: New file.
61288
61289         * modules/printf-posix: New file.
61290         * lib/printf.c: New file.
61291         * m4/printf-posix-rpl.m4: New file.
61292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61293         REPLACE_PRINTF.
61294         * lib/stdio_.h (printf): New declaration.
61295         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61296         ____strfmon____): New macros.
61297         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61298         REPLACE_PRINTF.
61299
61300 2007-03-09  Bruno Haible  <bruno@clisp.org>
61301
61302         * tests/test-vasnprintf-posix2.sh: New file.
61303         * tests/test-vasnprintf-posix2.c: New file.
61304         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61305         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61306         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61307
61308         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61309         a locale dependent decimal point, rather than always '.'.
61310
61311 2007-03-09  Eric Blake  <ebb9@byu.net>
61312
61313         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61314         spite of platforms like Tandem/NSK that define it to -1.
61315
61316 2007-03-08  Bruno Haible  <bruno@clisp.org>
61317
61318         * modules/vprintf-posix-tests: New file.
61319         * tests/test-vprintf-posix.sh: New file.
61320         * tests/test-vprintf-posix.c: New file.
61321         * tests/test-printf-posix.h: New file.
61322
61323         * modules/vprintf-posix: New file.
61324         * lib/vprintf.c: New file.
61325         * m4/vprintf-posix.m4: New file.
61326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61327         REPLACE_VPRINTF.
61328         * lib/stdio_.h (vprintf): New declaration.
61329         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61330         REPLACE_VPRINTF.
61331
61332 2007-03-08  Bruno Haible  <bruno@clisp.org>
61333
61334         * modules/fprintf-posix-tests: New file.
61335         * tests/test-fprintf-posix.sh: New file.
61336         * tests/test-fprintf-posix.c: New file.
61337
61338         * modules/fprintf-posix: New file.
61339         * lib/fprintf.c: New file.
61340         * m4/fprintf-posix.m4: New file.
61341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61342         REPLACE_FPRINTF.
61343         * lib/stdio_.h (fprintf): New declaration.
61344         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61345         REPLACE_FPRINTF.
61346
61347 2007-03-08  Bruno Haible  <bruno@clisp.org>
61348
61349         * modules/vfprintf-posix-tests: New file.
61350         * tests/test-vfprintf-posix.sh: New file.
61351         * tests/test-vfprintf-posix.c: New file.
61352         * tests/test-fprintf-posix.h: New file.
61353         * tests/test-fprintf-posix.out: New file.
61354
61355         * modules/vfprintf-posix: New file.
61356         * lib/vfprintf.c: New file.
61357         * m4/vfprintf-posix.m4: New file.
61358         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
61359         REPLACE_VFPRINTF.
61360         * lib/stdio_.h (vfprintf): New declaration.
61361         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
61362         REPLACE_VFPRINTF.
61363
61364 2007-03-08  Bruno Haible  <bruno@clisp.org>
61365
61366         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
61367
61368 2007-03-08  Bruno Haible  <bruno@clisp.org>
61369
61370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
61371         instead of 'expr' invocations.
61372         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61373         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61374         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61375         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61376         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61377         Suggested by Paul Eggert.
61378
61379 2007-03-08  Bruno Haible  <bruno@clisp.org>
61380
61381         * modules/fseterr-tests: New file.
61382         * tests/test-fseterr.c: New file.
61383
61384         * modules/fseterr: New file.
61385         * lib/fseterr.h: New file.
61386         * lib/fseterr.c: New file.
61387
61388 2007-03-08  Bruno Haible  <bruno@clisp.org>
61389
61390         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
61391         * lib/getopt_.h: Likewise.
61392         * lib/mbswidth.h: Likewise.
61393         * lib/setenv.h: Likewise.
61394         * lib/vasnprintf.h: Likewise.
61395         * lib/vasprintf.h: Likewise.
61396         * lib/verror.h: Likewise.
61397         * lib/xsetenv.h: Likewise.
61398         * lib/xvasprintf.h: Likewise.
61399
61400 2007-03-08  Jim Meyering  <jim@meyering.net>
61401
61402         * users.txt: Add parted.
61403
61404         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
61405
61406 2007-03-07  Bruno Haible  <bruno@clisp.org>
61407
61408         * m4/printf.m4: Make the shell script snippets copy&pastable.
61409
61410 2007-03-02  Bruno Haible  <bruno@clisp.org>
61411
61412         * lib/netinet_in_.h: New file.
61413         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
61414         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
61415         * modules/netinet_in (Files): Add lib/netinet_in_.h.
61416         (Depends-on): Add absolute-header.
61417         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
61418         into netinet/in.h.
61419
61420 2007-03-03  Bruno Haible  <bruno@clisp.org>
61421
61422         * lib/sys_select_.h: New file.
61423         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
61424         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
61425         * modules/sys_select (Files): Add lib/sys_select_.h.
61426         (Depends-on): Add absolute-header.
61427         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
61428         into sys/select.h.
61429
61430 2007-03-02  Bruno Haible  <bruno@clisp.org>
61431
61432         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
61433         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
61434         values.
61435         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
61436         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
61437         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
61438         * modules/sys_socket (Depends-on): Add absolute-header.
61439         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
61440         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
61441         (Include): Remove requirement of inclusion of <sys/types.h>.
61442
61443 2007-03-02  Bruno Haible  <bruno@clisp.org>
61444
61445         * lib/byteswap_.h (bswap_32): Fix formula.
61446
61447 2007-03-06  Bruno Haible  <bruno@clisp.org>
61448
61449         * modules/sprintf-posix-tests: New file.
61450         * tests/test-sprintf-posix.c: New file.
61451
61452         * modules/sprintf-posix: New file.
61453         * lib/sprintf.c: New file.
61454         * m4/sprintf-posix.m4: New file.
61455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61456         REPLACE_SPRINTF.
61457         * lib/stdio_.h (sprintf): New declaration.
61458         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61459         REPLACE_SPRINTF.
61460
61461 2007-03-06  Bruno Haible  <bruno@clisp.org>
61462
61463         * modules/vsprintf-posix-tests: New file.
61464         * tests/test-vsprintf-posix.c: New file.
61465         * tests/test-sprintf-posix.h: New file.
61466
61467         * modules/vsprintf-posix: New file.
61468         * lib/vsprintf.c: New file.
61469         * m4/vsprintf-posix.m4: New file.
61470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61471         REPLACE_VSPRINTF.
61472         * lib/stdio_.h (vsprintf): New declaration.
61473         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61474         REPLACE_VSPRINTF.
61475
61476 2007-03-06  Bruno Haible  <bruno@clisp.org>
61477
61478         * modules/vsnprintf (Depend-on): Remove minmax.
61479
61480 2007-03-06  Bruno Haible  <bruno@clisp.org>
61481
61482         * modules/snprintf-posix-tests: New file.
61483         * tests/test-snprintf-posix.c: New file.
61484
61485         * modules/snprintf-posix: New file.
61486         * m4/snprintf-posix.m4: New file.
61487         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
61488         gl_FUNC_SNPRINTF.
61489         (gl_FUNC_SNPRINTF): Invoke it.
61490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
61491         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
61492         is set.
61493         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
61494
61495 2007-03-06  Bruno Haible  <bruno@clisp.org>
61496
61497         * modules/vsnprintf-posix-tests: New file.
61498         * tests/test-vsnprintf-posix.c: New file.
61499         * tests/test-snprintf-posix.h: New file.
61500
61501         * modules/vsnprintf-posix: New file.
61502         * m4/vsnprintf-posix.m4: New file.
61503         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
61504         gl_FUNC_VSNPRINTF.
61505         (gl_FUNC_VSNPRINTF): Invoke it.
61506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
61507         * lib/stdio_.h (vsnprintf): Define as a replacement if
61508         REPLACE_VSNPRINTF is set.
61509         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
61510
61511 2007-03-06  Bruno Haible  <bruno@clisp.org>
61512
61513         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
61514         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
61515
61516 2007-03-06  Bruno Haible  <bruno@clisp.org>
61517
61518         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
61519         (asinl): Declare also if HAVE_DECL_ASINL is set.
61520         (atanl): Declare also if HAVE_DECL_ATANL is set.
61521         (ceill): Declare also if HAVE_DECL_CEILL is set.
61522         (cosl): Declare also if HAVE_DECL_COSL is set.
61523         (expl): Declare also if HAVE_DECL_EXPL is set.
61524         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61525         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61526         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
61527         (logl): Declare also if HAVE_DECL_LOGL is set.
61528         (sinl): Declare also if HAVE_DECL_SINL is set.
61529         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
61530         (tanl): Declare also if HAVE_DECL_TANL is set.
61531         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
61532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
61533         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
61534         declaration of frexpl, ldexpl.
61535         * modules/printf-frexpl (Depends-on): Add math.
61536         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
61537
61538 2007-03-05  Bruno Haible  <bruno@clisp.org>
61539
61540         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
61541         frexpl and ldexpl are declared.
61542         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
61543
61544 2007-03-05  Bruno Haible  <bruno@clisp.org>
61545
61546         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
61547         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
61548
61549 2007-03-05  Bruno Haible  <bruno@clisp.org>
61550
61551         * lib/stdio_.h: Include <stddef.h>.
61552
61553 2007-03-05  Bruno Haible  <bruno@clisp.org>
61554
61555         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
61556
61557 2007-03-05  Bruno Haible  <bruno@clisp.org>
61558
61559         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
61560         NetBSD 4, from Ralf Wildenhues.
61561
61562 2007-03-04  Bruno Haible  <bruno@clisp.org>
61563
61564         * lib/vasprintf.h: Update #if logic for the case when the functions
61565         exist but are overridden.
61566
61567 2007-03-04  Bruno Haible  <bruno@clisp.org>
61568
61569         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
61570         implementations: glibc-2.4 and MacOS X 10.3.
61571         * tests/test-vasnprintf-posix.c (test_function): Test also the case
61572         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
61573         * tests/test-vasprintf-posix.c (test_function): Likewise.
61574
61575 2007-03-04  Bruno Haible  <bruno@clisp.org>
61576
61577         * modules/vasprintf-posix-tests: New file.
61578         * tests/test-vasprintf-posix.c: New file.
61579
61580         * modules/vasprintf-posix: New file.
61581         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
61582         defined.
61583         * m4/vasprintf-posix.m4: New file.
61584         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
61585         gl_FUNC_VASPRINTF.
61586         (gl_FUNC_VASPRINTF): Invoke it.
61587         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
61588         here.
61589         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
61590
61591 2007-03-04  Bruno Haible  <bruno@clisp.org>
61592
61593         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
61594         REPLACE_GETTIMEOFDAY.
61595         * modules/sys_time (Makefile.am): Likewise.
61596         * m4/sys_time_h.m4: Likewise.
61597         * m4/gettimeofday.m4: Likewise.
61598
61599 2007-03-04  Bruno Haible  <bruno@clisp.org>
61600
61601         * modules/vasnprintf-posix-tests: New file.
61602         * tests/test-vasnprintf-posix.c: New file.
61603
61604         * modules/vasnprintf-posix: New file.
61605         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
61606         printf-frexpl.h.
61607         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
61608         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
61609         REPLACE_VASNPRINTF is defined.
61610         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
61611         gl_FUNC_VASNPRINTF.
61612         (gl_FUNC_VASNPRINTF): Invoke it.
61613         * m4/vasnprintf-posix.m4: New file.
61614         * m4/printf.m4: New file.
61615
61616 2007-03-04  Bruno Haible  <bruno@clisp.org>
61617
61618         Compile progreloc.c only if --enable-relocatable is specified.
61619         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
61620         if --enable-relocatable was specified.
61621         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
61622         lib_SOURCES.
61623
61624 2007-03-04  Jim Meyering  <jim@meyering.net>
61625
61626         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
61627         Use it consistently, rather than enumerating errno constants.
61628
61629 2007-03-04  Bruno Haible  <bruno@clisp.org>
61630
61631         * modules/xvasprintf-tests: New file.
61632         * tests/test-xvasprintf.c: New file.
61633
61634         * modules/vasprintf-tests: New file.
61635         * tests/test-vasprintf.c: New file.
61636
61637         * modules/vasnprintf-tests: New file.
61638         * tests/test-vasnprintf.c: New file.
61639
61640         * modules/vsnprintf-tests: New file.
61641         * tests/test-vsnprintf.c: New file.
61642
61643         * modules/snprintf-tests: New file.
61644         * tests/test-snprintf.c: New file.
61645
61646 2007-03-04  Bruno Haible  <bruno@clisp.org>
61647
61648         Compile relocatable.c only if --enable-relocatable is specified.
61649         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
61650         gl_RELOCATABLE_LIBRARY.
61651         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
61652         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
61653         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
61654         gl_RELOCATABLE_LIBRARY.
61655         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
61656         (Makefile.am): Remove lib_SOURCES.
61657         * modules/relocatable-lib-lgpl (configure.ac): Invoke
61658         gl_RELOCATABLE_LIBRARY.
61659         (Makefile.am): Remove lib_SOURCES.
61660         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
61661         always.
61662         * modules/relocatable-prog-wrapper (configure.ac): Invoke
61663         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
61664
61665 2007-03-04  Bruno Haible  <bruno@clisp.org>
61666
61667         * modules/argmatch-tests: New file.
61668         * tests/test-argmatch.c: New file.
61669
61670         * tests/test-allocsa.c (main): Halve the number of loop runs.
61671
61672         * modules/alloca-opt-tests: New file.
61673         * tests/test-alloca-opt.c: New file.
61674
61675 2007-03-04  Jim Meyering  <jim@meyering.net>
61676
61677         Work around difference between Linux ACLs and Solaris 10 ZFS.
61678         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
61679         for EINVAL.
61680
61681 2007-03-03  Bruno Haible  <bruno@clisp.org>
61682
61683         * modules/relocatable-prog (Depends-on): Add back progreloc's
61684         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
61685
61686 2007-03-03  Bruno Haible  <bruno@clisp.org>
61687
61688         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
61689         * modules/relocatable-lib: New file.
61690
61691 2007-03-03  Bruno Haible  <bruno@clisp.org>
61692
61693         * modules/relocatable-prog: Renamed from modules/relocatable.
61694         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
61695
61696 2007-03-03  Bruno Haible  <bruno@clisp.org>
61697
61698         * modules/relocatable-script (Files): Add doc/relocatable.texi,
61699         m4/relocatable-lib.m4.
61700         (Depends-on): Remove 'relocatable'.
61701         (configure.ac): Add gl_RELOCATABLE_NOP.
61702
61703 2007-03-03  Bruno Haible  <bruno@clisp.org>
61704
61705         * modules/relocatable-prog-wrapper: New file.
61706         * modules/relocatable (Depends-on): Add it. Remove all other
61707         dependencies except progname.
61708         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
61709
61710         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
61711         (gl_FUNC_STRERROR): Nop.
61712         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
61713
61714         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
61715         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
61716
61717         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
61718         (gl_FUNC_READLINK): Update.
61719
61720         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
61721
61722 2007-03-03  Bruno Haible  <bruno@clisp.org>
61723
61724         * lib/xreadlink.c: Include <unistd.h> unconditionally.
61725         * modules/xreadlink (Depends-on): Add unistd.
61726         * modules/xreadlink-with-size (Depends-on): Likewise.
61727
61728 2007-03-03  Bruno Haible  <bruno@clisp.org>
61729
61730         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
61731         extracted from gt_FUNC_SETENV.
61732         (gt_FUNC_SETENV): Remove macro.
61733         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
61734         remove gt_FUNC_SETENV.
61735
61736 2007-03-03  Bruno Haible  <bruno@clisp.org>
61737
61738         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
61739         ENABLE_RELOCATABLE here.
61740         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
61741
61742 2007-03-03  Bruno Haible  <bruno@clisp.org>
61743
61744         * modules/rbtreehash-list-tests (Depends-on): Add progname.
61745         * tests/test-rbtreehash_list.c: Include progname.h.
61746         (main): Call set_program_name.
61747
61748         * modules/rbtree-oset-tests (Depends-on): Add progname.
61749         * tests/test-rbtree_oset.c: Include progname.h.
61750         (main): Call set_program_name.
61751
61752         * modules/rbtree-list-tests (Depends-on): Add progname.
61753         * tests/test-rbtree_list.c: Include progname.h.
61754         (main): Call set_program_name.
61755
61756         * modules/linked-list-tests (Depends-on): Add progname.
61757         * tests/test-linked_list.c: Include progname.h.
61758         (main): Call set_program_name.
61759
61760 2007-03-03  Bruno Haible  <bruno@clisp.org>
61761
61762         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
61763         All uses of __restrict changed to _Restrict_.
61764         * lib/glob_.h (__restrict): Remove macro.
61765
61766 2007-03-02  Bruno Haible  <bruno@clisp.org>
61767
61768         * modules/gettext (configure.ac): Require gettext infrastructure
61769         from version 0.16.1.
61770
61771 2007-03-02  Bruno Haible  <bruno@clisp.org>
61772
61773         * modules/linkedhash-list-tests (Depends-on): Add progname.
61774         * tests/test-linkedhash_list.c: Include progname.h.
61775         (main): Call set_program_name.
61776
61777         * modules/carray-list-tests (Depends-on): Add progname.
61778         * tests/test-carray_list.c: Include progname.h.
61779         (main): Call set_program_name.
61780
61781         * modules/avltreehash-list-tests (Depends-on): Add progname.
61782         * tests/test-avltreehash_list.c: Include progname.h.
61783         (main): Call set_program_name.
61784
61785         * modules/avltree-oset-tests (Depends-on): Add progname.
61786         * tests/test-avltree_oset.c: Include progname.h.
61787         (main): Call set_program_name.
61788
61789         * modules/avltree-list-tests (Depends-on): Add progname.
61790         * tests/test-avltree_list.c: Include progname.h.
61791         (main): Call set_program_name.
61792
61793         * modules/array-oset-tests (Depends-on): Add progname.
61794         * tests/test-array_oset.c: Include progname.h.
61795         (main): Call set_program_name.
61796
61797         * modules/array-list-tests (Depends-on): Add progname.
61798         * tests/test-array_list.c: Include progname.h.
61799         (main): Call set_program_name.
61800
61801         * modules/argp-tests (Depends-on): Add progname.
61802         * tests/test-argp.c: Include argp.h first. Include progname.h.
61803         (main): Call set_program_name.
61804
61805 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
61806
61807         * doc/gnulib-tool.texi (Initial import): Reword description of
61808         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
61809         limited effect even if defined after the first system include.
61810
61811 2007-03-01  Bruno Haible  <bruno@clisp.org>
61812
61813         * build-aux/config.libpath: Update to libtool-1.5.22.
61814         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61815
61816 2007-03-01  Bruno Haible  <bruno@clisp.org>
61817
61818         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
61819         foo_CFLAGS.
61820         Reported by Ralf Wildenhues.
61821
61822 2007-03-01  Bruno Haible  <bruno@clisp.org>
61823
61824         * build-aux/install-reloc: Remove object files left over by some
61825         compilers.
61826         Reported by Ralf Wildenhues.
61827
61828 2007-03-01  Bruno Haible  <bruno@clisp.org>
61829
61830         * build-aux/install-reloc: Break long lines.
61831
61832 2007-03-01  Bruno Haible  <bruno@clisp.org>
61833
61834         * doc/relocatable.texi: Document that it may not work on OpenBSD.
61835         Reported by Ralf Wildenhues.
61836
61837 2007-03-01  Bruno Haible  <bruno@clisp.org>
61838
61839         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
61840         include ordering constraints.
61841
61842 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61843
61844         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
61845         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
61846         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
61847         as another example.
61848         * lib/time_.h: Fix misspelling.
61849         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61850         Require gl_HEADER_TIME_H_DEFAULTS.
61851         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
61852         * m4/time_r.m4 (gl_TIME_R): Likewise.
61853         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
61854
61855 2007-03-01  Bruno Haible  <bruno@clisp.org>
61856
61857         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
61858         * m4/utimens.m4 (gl_UTIMENS): Likewise.
61859
61860 2007-03-01  Jim Meyering  <jim@meyering.net>
61861
61862         * modules/xreadlink (Maintainer): Add my name.
61863         * modules/xreadlink-with-size (Depends-on): Alphabetize.
61864
61865 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
61866             Bruno Haible  <bruno@clisp.org>
61867
61868         * build-aux/install-reloc: Compile also c-ctype.c.
61869         * build-aux/relocatable.sh.in: New file.
61870         * doc/relocatable.texi: New file.
61871         * doc/relocatable-maint.texi: New file.
61872         * doc/gnulib.texi: Include relocatable-maint.texi.
61873         * lib/progreloc.c: Include unistd.h unconditionally.
61874         * lib/relocwrapper.c: Include unistd.h unconditionally.
61875         Include c-ctype.h.
61876         (add_dotbin): Use c_tolower.
61877         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
61878         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
61879         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
61880         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
61881         to m4/relocatable-lib.m4.
61882         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
61883         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
61884         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
61885         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
61886         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
61887         * modules/relocatable: New file.
61888         * modules/relocatable-lib: New file.
61889         * modules/relocatable-script: New file.
61890
61891 2007-02-28  Bruno Haible  <bruno@clisp.org>
61892
61893         Import --enable-relocatable infrastructure.
61894         * build-aux/config.libpath: New file, from GNU gettext.
61895         * build-aux/install-reloc: New file, from GNU gettext.
61896         * build-aux/reloc-ldflags: New file, from GNU gettext.
61897         * lib/relocatable.h: New file, from GNU gettext.
61898         * lib/relocatable.c: New file, from GNU gettext.
61899         * lib/relocwrapper.c: New file, from GNU gettext.
61900         * m4/relocatable.m4: New file, from GNU gettext.
61901
61902 2007-02-28  Bruno Haible  <bruno@clisp.org>
61903
61904         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
61905
61906         * modules/xreadlink: New file, from GNU gettext with modifications.
61907         * lib/xreadlink.c: New file, from GNU gettext.
61908         * lib/xreadlink.h: Add comments.
61909         (xreadlink): New declaration.
61910
61911         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
61912         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
61913         lib/xreadlink-with-size.c.
61914         (configure.ac): Remove gl_XREADLINK invocation.
61915         (Makefile.am): Augment lib_SOURCES.
61916         * m4/xreadlink.m4: Remove file.
61917         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
61918         (xreadlink_with_size): Renamed from xreadink.
61919         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
61920         * modules/canonicalize (Depends-on): Replace xreadlink with
61921         xreadlink-with-size.
61922         * lib/canonicalize.c (canonicalize_filename_mode): Update.
61923
61924 2007-02-25  Jim Meyering  <jim@meyering.net>
61925
61926         * build-aux/announce-gen: When complaining about excess arguments,
61927         list them.
61928
61929 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61930
61931         * README: Document signed integer overflow situation more
61932         accurately.
61933
61934 2007-02-25  Bruno Haible  <bruno@clisp.org>
61935
61936         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
61937         'a' or 'A' conversion.
61938
61939 2007-02-25  Bruno Haible  <bruno@clisp.org>
61940
61941         * modules/filename: Renamed from modules/pathname.
61942         (Files): Replace lib/pathname.h with lib/filename.h. Replace
61943         lib/concatpath.c with lib/concat-filename.c.
61944         (Makefile.am): Update.
61945         (Include): Replace pathname.h with filename.h.
61946         * lib/filename.h: Renamed from lib/pathname.h.
61947         (concatenated_filename): Renamed from concatenated_pathname.
61948         * lib/concat-filename.c: Renamed from lib/concatpath.c.
61949         (concatenated_filename): Renamed from concatenated_pathname.
61950         * lib/findprog.c: Include filename.h instead of pathname.h.
61951         (find_in_path): Update.
61952         * lib/javacomp.c: Include filename.h instead of pathname.h.
61953         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
61954         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
61955         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
61956         is_oldgcj_14_13_usable, is_javac_usable): Update.
61957         * lib/javaexec.c: Include filename.h instead of pathname.h.
61958         (execute_java_class): Update.
61959         * modules/findprog: Update.
61960         * modules/javacomp: Update.
61961         * modules/javaexec: Update.
61962         * MODULES.html.sh (File system functions): Add 'filename', remove
61963         'pathname'.
61964
61965 2007-02-25  Bruno Haible  <bruno@clisp.org>
61966
61967         * modules/printf-frexpl-tests: New file.
61968         * tests/test-printf-frexpl.c: New file.
61969
61970         * modules/printf-frexpl: New file.
61971         * lib/printf-frexpl.h: New file.
61972         * lib/printf-frexpl.c: New file.
61973         * m4/printf-frexpl.m4: New file.
61974
61975 2007-02-25  Bruno Haible  <bruno@clisp.org>
61976
61977         * modules/printf-frexp-tests: New file.
61978         * tests/test-printf-frexp.c: New file.
61979
61980         * modules/printf-frexp: New file.
61981         * lib/printf-frexp.h: New file.
61982         * lib/printf-frexp.c: New file.
61983         * m4/printf-frexp.m4: New file.
61984
61985 2007-02-25  Bruno Haible  <bruno@clisp.org>
61986
61987         Assume automake >= 1.10 for the tests.
61988         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
61989         * modules/arctwo-tests: Likewise.
61990         * modules/argp-tests: Likewise.
61991         * modules/avltree-list-tests: Likewise.
61992         * modules/avltree-oset-tests: Likewise.
61993         * modules/avltreehash-list-tests: Likewise.
61994         * modules/carray-list-tests: Likewise.
61995         * modules/crc-tests: Likewise.
61996         * modules/des-tests: Likewise.
61997         * modules/gc-arcfour-tests: Likewise.
61998         * modules/gc-arctwo-tests: Likewise.
61999         * modules/gc-des-tests: Likewise.
62000         * modules/gc-hmac-md5-tests: Likewise.
62001         * modules/gc-hmac-sha1-tests: Likewise.
62002         * modules/gc-md2-tests: Likewise.
62003         * modules/gc-md4-tests: Likewise.
62004         * modules/gc-md5-tests: Likewise.
62005         * modules/gc-pbkdf2-sha1-tests: Likewise.
62006         * modules/gc-rijndael-tests: Likewise.
62007         * modules/gc-sha1-tests: Likewise.
62008         * modules/gc-tests: Likewise.
62009         * modules/getaddrinfo-tests: Likewise.
62010         * modules/hmac-md5-tests: Likewise.
62011         * modules/hmac-sha1-tests: Likewise.
62012         * modules/linked-list-tests: Likewise.
62013         * modules/linkedhash-list-tests: Likewise.
62014         * modules/lock-tests: Likewise.
62015         * modules/md2-tests: Likewise.
62016         * modules/md4-tests: Likewise.
62017         * modules/md5-tests: Likewise.
62018         * modules/rbtree-list-tests: Likewise.
62019         * modules/rbtree-oset-tests: Likewise.
62020         * modules/rbtreehash-list-tests: Likewise.
62021         * modules/read-file-tests: Likewise.
62022         * modules/rijndael-tests: Likewise.
62023         * modules/stdint-tests: Likewise.
62024         * modules/tls-tests: Likewise.
62025
62026 2007-02-24  Bruno Haible  <bruno@clisp.org>
62027
62028         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62029         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62030         function; instead check whether isnan with a double argument links.
62031         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62032         function; instead check whether isnan with a 'long double' argument
62033         links.
62034         Reported by Eric Blake <ebb9@byu.net>.
62035
62036 2007-02-24  Bruno Haible  <bruno@clisp.org>
62037
62038         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62039         defined.
62040         * lib/isnanl.c: Remove all code. Just include isnan.c.
62041         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62042
62043 2007-02-25  Jim Meyering  <jim@meyering.net>
62044
62045         Avoid conflicting types for 'unsetenv' on FreeBSD.
62046         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62047         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62048         in stdlib.h.
62049
62050 2007-02-24  Bruno Haible  <bruno@clisp.org>
62051
62052         * modules/isnanl-nolibm-tests: New file.
62053         * tests/test-isnanl.c: New file.
62054
62055         * modules/isnanl-nolibm: New file.
62056         * lib/isnanl.h: New file.
62057         * lib/isnanl.c: New file.
62058         * m4/isnanl.m4: New file.
62059
62060 2007-02-24  Bruno Haible  <bruno@clisp.org>
62061
62062         * modules/isnan-nolibm-tests: New file.
62063         * tests/test-isnan.c: New file.
62064
62065         * modules/isnan-nolibm: New file.
62066         * lib/isnan.h: New file.
62067         * lib/isnan.c: New file.
62068         * m4/isnan.m4: New file.
62069
62070 2007-02-24  Bruno Haible  <bruno@clisp.org>
62071
62072         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62073         assume that an exponent fits in 20 bits.
62074
62075 2007-02-24  Jim Meyering  <jim@meyering.net>
62076
62077         * m4/regex.m4: Update the description of the configure-time option,
62078         --without-included-regex, to state accurately what the defaults are,
62079         and perhaps to give people an idea why using this option is risky.
62080
62081 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62082
62083         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62084         loops on small arguments.  This attempts to avoid the problem
62085         Bruno Haible reported for AIX 4.3.2 in
62086         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62087
62088 2007-02-23  Bruno Haible  <bruno@clisp.org>
62089
62090         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62091         Needed for help2man.
62092
62093 2007-02-23  Karl Berry  <karl@gnu.org>
62094
62095         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62096         exists, foo.h should be cvs-ignored, not committed.
62097
62098 2007-02-23  Eric Blake  <ebb9@byu.net>
62099
62100         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62101         * lib/stat-time.h (includes): Likewise.
62102         * lib/utimecmp.c (includes): Likewise.
62103         * lib/utimens.h (includes): Likewise.
62104         * lib/getdate.y (includes): Also include "timespec.h" for use
62105         internal to the module.
62106         * modules/utimens (Depends-on): Revert yesterday's patch.
62107         * modules/nanosleep (Depends-on): Add missing dependency.
62108
62109 2007-02-22  Bruno Haible  <bruno@clisp.org>
62110
62111         * lib/glob.c: Don't include getlogin_r.h.
62112
62113 2007-02-22  Jim Meyering  <jim@meyering.net>
62114
62115         * modules/utimens (Depends-on): Add timespec, required for
62116         utimens.h's inclusion of timespec.h.
62117
62118 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62119
62120         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62121         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62122         Schwab in
62123         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62124         I'll try to think of a better way to fix the Solaris problem.
62125
62126         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62127         like glibc; on Solaris 10, it fails with errno == EINVAL.
62128         POSIX says the behavior is unspecified if the first argument is NULL,
62129         so play it safe and never pass NULL to the system getcwd.
62130
62131 2007-02-21  Jim Meyering  <jim@meyering.net>
62132
62133         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62134         of gettimeofday.  It would conflict with the one now always
62135         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62136         an IRIX 6.5 build failure.
62137
62138 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62139
62140         Minor fixups to port to Solaris 10 with Sun C 5.8.
62141         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62142         * modules/getcwd (Depends-on): Add dirfd.
62143         * lib/putenv.c (putenv): #undef it.
62144         (rpl_putenv): New decl.
62145         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62146
62147 2007-02-20  Bruno Haible  <bruno@clisp.org>
62148
62149         * modules/stdio-tests: New file.
62150         * tests/test-stdio.c: New file.
62151
62152         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62153         (Depends-on): Add stdio.
62154         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62155         (Include): Use <stdio.h> instead of vsnprintf.h.
62156         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62157         HAVE_DECL_VSNPRINTF.
62158         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62159
62160         * modules/snprintf (Files): Remove lib/snprintf.h.
62161         (Depends-on): Add stdio.
62162         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62163         (Include): Use <stdio.h> instead of snprintf.h.
62164         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62165         HAVE_DECL_SNPRINTF.
62166         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62167         * lib/getaddrinfo.c: Likewise.
62168
62169         * modules/stdio: New file.
62170         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62171         * lib/snprintf.h: Remove file.
62172         * lib/vsnprintf.h: Remove file.
62173         * lib/.cppi-disable: Remove snprintf.h.
62174         * m4/stdio_h.m4: New file.
62175         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62176
62177 2007-02-20  Jim Meyering  <jim@meyering.net>
62178
62179         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62180         used by e.g., mingw.  From Bruno Haible.
62181
62182 2007-02-19  Bruno Haible  <bruno@clisp.org>
62183
62184         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62185         warnings.
62186         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62187
62188 2007-02-19  Bruno Haible  <bruno@clisp.org>
62189
62190         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62191         from mingw users.
62192
62193 2007-02-19  Bruno Haible  <bruno@clisp.org>
62194
62195         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62196         warnings.
62197         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62198
62199 2007-02-19  Jim Meyering  <jim@meyering.net>
62200
62201         Don't use FD after a successful "fdopendir (fd)".
62202         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62203         Reset it by calling dirfd on the just-obtained DIR*.
62204
62205         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62206         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62207
62208 2007-02-18  Bruno Haible  <bruno@clisp.org>
62209
62210         * lib/readlink.c: Include <unistd.h>.
62211         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62212         HAVE_READLINK.
62213         * modules/readlink (Depends-on): Add unistd.
62214         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62215         (Include): Add <unistd.h>.
62216
62217         * lib/getlogin_r.h: Remove file.
62218         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62219         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62220         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62221         HAVE_DECL_GETLOGIN_R.
62222         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62223         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62224         (Include): Use <unistd.h> instead of getlogin_r.h.
62225
62226         * lib/getcwd.h: Remove file.
62227         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62228         * lib/xgetcwd.c: Likewise.
62229         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62230         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62231         * modules/getcwd (Files): Remove lib/getcwd.h.
62232         (Depends-on): Add unistd.
62233         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62234         (Include): Use <unistd.h> instad of getcwd.h.
62235
62236         * lib/ftruncate.c: Include <unistd.h> first.
62237         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62238         Set HAVE_FTRUNCATE.
62239         * modules/ftruncate (Depends-on): Add unistd.
62240         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62241
62242         * lib/fchdir.c: Include <unistd.h> first.
62243         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62244         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62245         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62246         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62247         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62248
62249         * lib/dup2.c: Include <unistd.h> first.
62250         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62251         HAVE_DUP2.
62252         * modules/dup2 (Depends-on): Add unistd.
62253         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62254
62255         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62256         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62257         REPLACE_CHOWN. Don't define chown as a macro here.
62258         * modules/chown (Depends-on): Add unistd.
62259         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62260
62261         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62262         Add definition for GL_LINK_WARNING.
62263         (chown, dup2): New declarations.
62264         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62265         link warning.
62266         (ftruncate): New declaration.
62267         (getcwd): New declaration, taken from old getcwd.h.
62268         (getlogin_r): New declaration, taken from old getlogin_r.h.
62269         (readlink): New declaration.
62270         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62271         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62272         (gl_PREREQ_UNISTD): Remove macro.
62273         (gl_UNISTD_MODULE_INDICATOR): New macro.
62274         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62275         many new variables. Don't set UNISTD_H.
62276         * modules/unistd (Description): Change.
62277         (Depends-on): Add link-warning.
62278         (configure.ac): Update.
62279         (Makefile.am): Create unistd.h always. Substitute many new variables
62280         into it.
62281
62282 2007-02-18  Bruno Haible  <bruno@clisp.org>
62283
62284         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62285         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62286         HAVE_GETSUBOPT.
62287         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62288         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62289         * lib/getsubopt.h: Remove file.
62290         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62291         (Depends-on): Add stdlib.
62292         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62293         (Includes): Use <stdlib.h> instead of getsubopt.h.
62294         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62295         Set HAVE_GETSUBOPT.
62296         * lib/getsubopt.c: Don't include getsubopt.h.
62297
62298 2007-02-18  Bruno Haible  <bruno@clisp.org>
62299
62300         * modules/fchdir (Depends-on): Add dup2.
62301
62302 2007-02-18  Bruno Haible  <bruno@clisp.org>
62303
62304         * lib/stdlib_.h: Handle glibc's special invocation convention
62305         specially.
62306
62307 2007-02-18  Bruno Haible  <bruno@clisp.org>
62308
62309         * modules/stdlib-tests: New file.
62310         * tests/test-stdlib.c: New file.
62311
62312         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62313         (Depends-on): Add stdlib.
62314         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62315         (Includes): Use <stdlib.h> instead of mkstemp.h.
62316         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62317         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62318         * lib/mkstemp.c: Don't include mkstemp.h.
62319         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62320         * lib/stdlib--.h: Don't include mkstemp.h.
62321
62322         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62323         (Depends-on): Add stdlib.
62324         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62325         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62326         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62327         HAVE_MKDTEMP.
62328         * lib/mkdtemp.c: Don't include mkdtemp.h.
62329         * lib/clean-temp.c: Don't include mkdtemp.h.
62330
62331         * modules/exit (Files): Remove lib/exit.h.
62332         (Depends-on): Add stdlib.
62333         (Makefile.am): Remove lib_SOURCES.
62334         (Include): Use <stdlib.h> instead of exit.h.
62335         * lib/argmatch.c: Don't include exit.h.
62336         * lib/execute.c: Likewise.
62337         * lib/pagealign_alloc.c: Likewise.
62338         * lib/pipe.c: Likewise.
62339         * lib/wait-process.c: Likewise.
62340         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62341         * lib/exitfail.c: Likewise.
62342         * lib/savewd.c: Likewise.
62343         * lib/xsetenv.c: Likewise.
62344
62345         * modules/stdlib: New file.
62346         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62347         and extra comments about mkstemp().
62348         * lib/exit.h: Remove file.
62349         * lib/mkdtemp.h: Remove file.
62350         * lib/mkstemp.h: Remove file.
62351         * m4/stdlib_h.m4: New file.
62352         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62353
62354 2007-02-18  Bruno Haible  <bruno@clisp.org>
62355
62356         * modules/math-tests: New file.
62357         * tests/test-math.c: New file.
62358
62359         * modules/math: New file.
62360         * modules/mathl (Files): Remove lib/mathl.h.
62361         (Depends-on): Add math.
62362         (Makefile.am): Don't mention mathl.h.
62363         (Include): Use <math.h> instead of mathl.h.
62364         * lib/math_.h: New file.
62365         * lib/mathl.h: Remove file.
62366         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
62367         mathl.h.
62368         * lib/asinl.c: Likewise.
62369         * lib/atanl.c: Likewise.
62370         * lib/ceill.c: Likewise.
62371         * lib/cosl.c: Likewise.
62372         * lib/expl.c: Likewise.
62373         * lib/floorl.c: Likewise.
62374         * lib/frexpl.c: Likewise.
62375         * lib/ldexpl.c: Likewise.
62376         * lib/logl.c: Likewise.
62377         * lib/sincosl.c: Likewise.
62378         * lib/sinl.c: Likewise.
62379         * lib/sqrtl.c: Likewise.
62380         * lib/tanl.c: Likewise.
62381         * lib/trigl.c: Likewise.
62382         * m4/math_h.m4: New file.
62383         * MODULES.html.sh (Mathematics): Add math.
62384
62385 2007-02-17  Bruno Haible  <bruno@clisp.org>
62386
62387         * modules/wctype-tests: New file.
62388         * tests/test-wctype.c: New file.
62389
62390         * modules/wchar-tests: New file.
62391         * tests/test-wchar.c: New file.
62392
62393         * modules/unistd-tests: New file.
62394         * tests/test-unistd.c: New file.
62395
62396         * modules/time-tests: New file.
62397         * tests/test-time.c: New file.
62398
62399         * modules/sysexits-tests: New file.
62400         * tests/test-sysexits.c: New file.
62401
62402         * modules/sys_time-tests: New file.
62403         * tests/test-sys_time.c: New file.
62404
62405         * modules/sys_stat-tests: New file.
62406         * tests/test-sys_stat.c: New file.
62407
62408         * modules/sys_socket-tests: New file.
62409         * tests/test-sys_socket.c: New file.
62410
62411         * modules/sys_select-tests: New file.
62412         * tests/test-sys_select.c: New file.
62413
62414         * modules/string-tests: New file.
62415         * tests/test-string.c: New file.
62416
62417         * modules/stdbool-tests: New file.
62418         * tests/test-stdbool.c: New file.
62419
62420         * modules/netinet_in-tests: New file.
62421         * tests/test-netinet_in.c: New file.
62422
62423         * modules/inttypes-tests: New file.
62424         * tests/test-inttypes.c: New file.
62425
62426         * modules/fcntl-tests: New file.
62427         * tests/test-fcntl.c: New file.
62428
62429         * modules/byteswap-tests: New file.
62430         * tests/test-byteswap.c: New file.
62431
62432         * modules/arpa_inet-tests: New file.
62433         * tests/test-arpa_inet.c: New file.
62434
62435 2007-02-17  Bruno Haible  <bruno@clisp.org>
62436
62437         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
62438         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
62439         if the corresponding module is not enabled. Emit link warnings if
62440         the function is used nevertheless.
62441         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
62442         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
62443         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
62444         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
62445         * modules/inttypes (Depends-on): Add link-warning.
62446         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62447         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
62448         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
62449         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
62450         * modules/imaxdiv (configure.ac): Likewise.
62451         * modules/strtoimax (configure.ac): Likewise.
62452         * modules/strtoumax (configure.ac): Likewise.
62453
62454 2007-02-17  Bruno Haible  <bruno@clisp.org>
62455
62456         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62457         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62458         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62459         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62460
62461 2007-02-17  Bruno Haible  <bruno@clisp.org>
62462
62463         * modules/link-warning: New file.
62464         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62465         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62466         * modules/string (Depends-on): Add link-warning.
62467         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62468         string.h.
62469         * MODULES.html.sh (Support for building libraries and executables): Add
62470         link-warning.
62471
62472 2007-02-17  Bruno Haible  <bruno@clisp.org>
62473
62474         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62475         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62476         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62477         long lines.
62478
62479 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62480             Bruno Haible  <bruno@clisp.org>
62481
62482         * modules/tmpfile: New file.
62483         * lib/tmpfile.c: New file.
62484         * m4/tmpfile.m4: New file.
62485         * MODULES.html.sh (func_all_modules): New section "Input/output".
62486
62487 2007-02-15  Bruno Haible  <bruno@clisp.org>
62488
62489         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
62490         (supports_delete_on_close): New function.
62491         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
62492
62493 2007-02-14  Bruno Haible  <bruno@clisp.org>
62494
62495         * modules/mbspcasecmp-tests: New file.
62496         * tests/test-mbspcasecmp.sh: New file.
62497         * tests/test-mbspcasecmp.c: New file.
62498
62499         New module mbspcasecmp.
62500         * modules/mbspcasecmp: New file.
62501         * lib/mbspcasecmp.c: New file.
62502         * lib/string_.h (strncasecmp): Change warning message.
62503         (mbspcasecmp): New declaration.
62504         * m4/mbspcasecmp.m4: New file.
62505         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62506         GNULIB_MBSPCASECMP.
62507         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
62508         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
62509
62510 2007-02-14  Bruno Haible  <bruno@clisp.org>
62511
62512         * modules/mbsncasecmp-tests: New file.
62513         * tests/test-mbsncasecmp.sh: New file.
62514         * tests/test-mbsncasecmp.c: New file.
62515
62516         New module mbsncasecmp.
62517         * modules/mbsncasecmp: New file.
62518         * lib/mbsncasecmp.c: New file.
62519         * lib/string_.h (mbsncasecmp): New declaration.
62520         * m4/mbsncasecmp.m4: New file.
62521         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62522         GNULIB_MBSNCASECMP.
62523         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62524         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62525
62526 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62527
62528         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
62529         Verify that it doesn't overlap with our flags.
62530         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
62531         do not have the desired effect in multibyte locales; instead, use
62532         mbscasecmp.
62533         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
62534         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
62535         we don't require GNU fnmatch ourselves (if our users require it, they
62536         should do so explicitly).
62537
62538         Fix regex code so it doesn't rely on strcasecmp.
62539         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
62540         Otherwise, include gnulib's langinfo.h.
62541         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
62542         undesirable behavior in non-C locales.  Instead, rely on localecharset.
62543         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
62544         * modules/regex (FILES): Remove m4/codeset.m4.
62545         (Depends-on): Add localcharset.  Remove strcase.
62546
62547 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62548
62549         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
62550         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62551
62552 2007-02-13  Bruno Haible  <bruno@clisp.org>
62553
62554         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
62555         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62556
62557 2007-02-12  Bruno Haible  <bruno@clisp.org>
62558
62559         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62560         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
62561         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
62562         time warning rather than a link error.
62563
62564 2007-02-12  Bruno Haible  <bruno@clisp.org>
62565
62566         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
62567         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62568         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62569
62570 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62571
62572         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
62573         args, not 2.
62574
62575 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62576
62577         New module 'time', so that apps can include <time.h> as per
62578         POSIX and GNU instead of separate include files like time_r.h
62579         and timegm.h.  This implementation tries out a simpler approach
62580         for replacing decls in standard include files (as compared to
62581         the string module), somewhat as an experiment.
62582
62583         * config/srclist.txt: Comment out mktime.c for now.
62584         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
62585         since it doesn't apply any more.  Use generic wording instead.
62586         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
62587         'time'.
62588         * lib/time_.h, m4/time_h.m4, modules/time: New files.
62589         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
62590         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
62591         Don't include <sys/types.h>; no longer needed since we assume C89.
62592         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
62593         * lib/strftime.c: Likewise.
62594         * lib/time_r.c: Likewise.
62595         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
62596         * lib/nanosleep.c: Include <time.h> first, to check interface.
62597         * lib/strptime.c: Likewise.
62598         * lib/time_r.c: Likewise.
62599         * lib/timegm.c: Likewise.
62600         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
62601         needed.
62602         * lib/timegm.c: Don't include timegm.h; no longer needed.
62603         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
62604         time.h now handles any problems in that area.
62605         (struct timespec, nanosleep): Remove; time.h now arranges for these.
62606         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
62607         that time.h defines struct timespec.
62608         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
62609         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
62610         handles that.
62611         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
62612         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
62613         needed.  Set REPLACE_LOCALTIME.
62614         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
62615         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
62616         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
62617         nanosleep; time_h.m4 now does that.  Don't require
62618         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
62619         module handles this now.
62620         * modules/getdate (Depends-on): Remove timespec.  Add time.
62621         * modules/nanosleep (Depends-on): Likewise.
62622         * modules/stat-time (Depends-on): Likewise.
62623         * modules/nanosleep (Include): Include time.h, not timespec.h.
62624         * modules/strptime (Files): Remove lib/strptime.h.
62625         (Depends-on): Add extensions, time.
62626         (Include): Include time.h, not strptime.h.
62627         * modules/time_r (Files): Remove lib/time_r.h.
62628         (Depends-on): Add time.
62629         (Include): Include time.h, not time_r.h.
62630         * modules/timegm: Likewise.
62631         * modules/timespec (Description): Now does timespec-related decls
62632         of our own, instead of struct timespec itself.
62633         (Depends-on): Add time; remove extensions.
62634         (Maintainer): Add self.
62635         * modules/utimecmp (Depends-on): Add time; remove timespec.
62636         * modules/utimens (Depends-on): Likewise.
62637         * modules/xnanosleep (Depends-on): Likewise.
62638
62639 2007-02-11  Bruno Haible  <bruno@clisp.org>
62640
62641         * lib/c-strstr.c: Include allocsa.h.
62642         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62643         * lib/c-strcasestr.c: Include allocsa.h.
62644         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62645         * lib/strcasestr.c: Include allocsa.h.
62646         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62647         * lib/mbsstr.c: Include allocsa.h.
62648         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62649         allocsa/freesa instead of malloc/free.
62650         * lib/mbscasestr.c: Include allocsa.h.
62651         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62652         allocsa/freesa instead of malloc/free.
62653         * modules/c-strstr (Depends-on): Add allocsa.
62654         * modules/c-strcasestr (Depends-on): Likewise.
62655         * modules/strcasestr (Depends-on): Likewise.
62656         * modules/mbsstr (Depends-on): Likewise.
62657         * modules/mbscasestr (Depends-on): Likewise.
62658
62659 2007-02-11  Bruno Haible  <bruno@clisp.org>
62660
62661         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
62662
62663         * modules/mbsspn-tests: New file.
62664         * tests/test-mbsspn.sh: New file.
62665         * tests/test-mbsspn.c: New file.
62666
62667 2007-02-11  Bruno Haible  <bruno@clisp.org>
62668
62669         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
62670
62671         * modules/mbspbrk-tests: New file.
62672         * tests/test-mbspbrk.sh: New file.
62673         * tests/test-mbspbrk.c: New file.
62674
62675 2007-02-11  Bruno Haible  <bruno@clisp.org>
62676
62677         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
62678         unneeded cast.
62679
62680         * modules/mbscspn-tests: New file.
62681         * tests/test-mbscspn.sh: New file.
62682         * tests/test-mbscspn.c: New file.
62683
62684 2007-02-11  Bruno Haible  <bruno@clisp.org>
62685
62686         * modules/mbscasecmp-tests: New file.
62687         * tests/test-mbscasecmp.sh: New file.
62688         * tests/test-mbscasecmp.c: New file.
62689
62690 2007-02-11  Bruno Haible  <bruno@clisp.org>
62691
62692         Ensure O(n) worst-case complexity of mbscasestr.
62693         * lib/mbscasestr.c: Include stdbool.h.
62694         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62695         functions.
62696         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
62697         the bookkeeping indicates that it's worth it.
62698         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
62699
62700         * modules/mbscasestr-tests: New file.
62701         * tests/test-mbscasestr1.c: New file.
62702         * tests/test-mbscasestr2.sh: New file.
62703         * tests/test-mbscasestr2.c: New file.
62704         * tests/test-mbscasestr3.sh: New file.
62705         * tests/test-mbscasestr3.c: New file.
62706         * tests/test-mbscasestr4.sh: New file.
62707         * tests/test-mbscasestr4.c: New file.
62708         * m4/locale-tr.m4: New file.
62709
62710 2007-02-11  Bruno Haible  <bruno@clisp.org>
62711
62712         Ensure O(n) worst-case complexity of mbsstr.
62713         * lib/mbsstr.c: Include stdbool.h.
62714         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62715         functions.
62716         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
62717         bookkeeping indicates that it's worth it.
62718         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
62719
62720         * modules/mbsstr-tests: New file.
62721         * tests/test-mbsstr1.c: New file.
62722         * tests/test-mbsstr2.sh: New file.
62723         * tests/test-mbsstr2.c: New file.
62724         * tests/test-mbsstr3.sh: New file.
62725         * tests/test-mbsstr3.c: New file.
62726         * m4/locale-fr.m4: New file.
62727
62728 2007-02-11  Bruno Haible  <bruno@clisp.org>
62729
62730         * lib/mbsrchr.c (mbsrchr): Fix bug.
62731
62732         * modules/mbsrchr-tests: New file.
62733         * tests/test-mbsrchr.sh: New file.
62734         * tests/test-mbsrchr.c: New file.
62735
62736 2007-02-11  Bruno Haible  <bruno@clisp.org>
62737
62738         * lib/mbschr.c (mbschr): Fix bug.
62739
62740         * modules/mbschr-tests: New file.
62741         * tests/test-mbschr.sh: New file.
62742         * tests/test-mbschr.c: New file.
62743         * m4/locale-zh.m4: New file.
62744
62745 2007-02-11  Bruno Haible  <bruno@clisp.org>
62746
62747         Support for copying multibyte string iterators.
62748         * lib/mbiter.h: Include <string.h>.
62749         (mbiter_multi_copy): New function.
62750         (mbi_copy): New macro.
62751         * lib/mbuiter.h: Include <string.h>.
62752         (mbuiter_multi_copy): New function.
62753         (mbui_copy): New macro.
62754
62755 2007-02-11  Bruno Haible  <bruno@clisp.org>
62756
62757         New module mbslen.
62758         * modules/mbslen: New file.
62759         * lib/mbslen.c: New file.
62760         * lib/string_.h (mbslen): New declaration.
62761         * m4/mbslen.m4: New file.
62762         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62763         GNULIB_MBSLEN.
62764         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
62765         * MODULES.html.sh (Internationalization functions): Add mbslen.
62766
62767 2007-02-11  Bruno Haible  <bruno@clisp.org>
62768
62769         Ensure O(n) worst-case complexity of strcasestr substitute.
62770         * lib/strcasestr.c: Include stdbool.h.
62771         (knuth_morris_pratt): New function.
62772         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62773         bookkeeping indicates that it's worth it.
62774         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
62775
62776         * modules/strcasestr-tests: New file.
62777         * tests/test-strcasestr.c: New file.
62778
62779 2007-02-11  Bruno Haible  <bruno@clisp.org>
62780
62781         Ensure O(n) worst-case complexity of c_strcasestr.
62782         * lib/c-strcasestr.c: Include stdbool.h, string.h.
62783         (knuth_morris_pratt): New function.
62784         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
62785         the bookkeeping indicates that it's worth it.
62786         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
62787
62788         * modules/c-strcasestr-tests: New file.
62789         * tests/test-c-strcasestr.c: New file.
62790
62791 2007-02-11  Bruno Haible  <bruno@clisp.org>
62792
62793         Ensure O(n) worst-case complexity of c_strstr.
62794         * lib/c-strstr.c: Include stdbool.h, string.h.
62795         (knuth_morris_pratt): New function.
62796         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62797         bookkeeping indicates that it's worth it.
62798         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
62799
62800         * lib/c-strstr.c: Complete rewrite for maintainability.
62801
62802         * modules/c-strstr-tests: New file.
62803         * tests/test-c-strstr.c: New file.
62804
62805 2007-02-11  Bruno Haible  <bruno@clisp.org>
62806
62807         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
62808         5.2.1 and earlier, whereby \055 was treated just like the range
62809         delimiter '-'.
62810         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62811
62812 2007-02-08  Bruno Haible  <bruno@clisp.org>
62813
62814         * modules/regex (Depends-on): Add stdbool.
62815         Reported by Dalibor Topic <robilad@kaffe.org>.
62816
62817 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62818
62819         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
62820         Prefer returning from main to exiting from it.
62821         Remove unnecessary parens after sizeof.
62822
62823 2007-02-05  Bruno Haible  <bruno@clisp.org>
62824
62825         New module mbssep.
62826         * modules/mbssep: New file.
62827         * lib/mbssep.c: New file.
62828         * lib/string_.h (strsep): Add a conditional link warning.
62829         (mbssep): New declaration.
62830         * m4/mbssep.m4: New file.
62831         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62832         GNULIB_MBSSEP.
62833         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
62834         * MODULES.html.sh (Internationalization functions): Add mbssep.
62835
62836 2007-02-05  Bruno Haible  <bruno@clisp.org>
62837
62838         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
62839         Optimize search in case of 1 delimiter.
62840
62841 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62842
62843         * lib/acl.h: Include sys/types.h before sys/acl.h.
62844
62845 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62846
62847         Merge upstream fix for glibc bugzilla #3957:
62848
62849         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
62850
62851         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
62852         bit for RE_HAT_LISTS_NOT_NEWLINE.
62853         (build_charclass_op): Remove bogus comment.
62854
62855 2007-02-05  Simon Josefsson  <simon@josefsson.org>
62856
62857         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
62858
62859 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62860
62861         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
62862         * lib/memmem.c [!defined _LIBC]: Include config.h.
62863
62864 2007-02-04  Bruno Haible  <bruno@clisp.org>
62865
62866         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
62867         warning message.
62868
62869 2007-02-04  Bruno Haible  <bruno@clisp.org>
62870
62871         New module mbstok_r.
62872         * modules/mbstok_r: New file.
62873         * lib/mbstok_r.c: New file.
62874         * lib/string_.h (strtok_r): Change argument names to match the
62875         comments. Add a conditional link warning.
62876         (mbstok_r): New declaration.
62877         * m4/mbstok_r.m4: New file.
62878         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62879         GNULIB_MBSTOK_R.
62880         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
62881         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
62882
62883 2007-02-04  Bruno Haible  <bruno@clisp.org>
62884
62885         New module mbsspn.
62886         * modules/mbsspn: New file.
62887         * lib/mbsspn.c: New file.
62888         * lib/string_.h (strspn): Add a conditional link warning.
62889         (mbsspn): New declaration.
62890         * m4/mbsspn.m4: New file.
62891         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62892         GNULIB_MBSSPN.
62893         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
62894         * MODULES.html.sh (Internationalization functions): Add mbsspn.
62895
62896 2007-02-04  Bruno Haible  <bruno@clisp.org>
62897
62898         New module mbspbrk.
62899         * modules/mbspbrk: New file.
62900         * lib/mbspbrk.c: New file.
62901         * lib/string_.h (strpbrk): Add a conditional link warning.
62902         (mbspbrk): New declaration.
62903         * m4/mbspbrk.m4: New file.
62904         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62905         GNULIB_MBSPBRK.
62906         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
62907         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
62908
62909 2007-02-04  Bruno Haible  <bruno@clisp.org>
62910
62911         New module mbscspn.
62912         * modules/mbscspn: New file.
62913         * lib/mbscspn.c: New file.
62914         * lib/string_.h (strcspn): Add a conditional link warning.
62915         (mbscspn): New declaration.
62916         * m4/mbscspn.m4: New file.
62917         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62918         GNULIB_MBSCSPN.
62919         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
62920         * MODULES.html.sh (Internationalization functions): Add mbscspn.
62921
62922 2007-02-04  Bruno Haible  <bruno@clisp.org>
62923
62924         New module mbscasestr, reduced goal of strcasestr.
62925         * modules/mbscasestr: New file.
62926         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
62927         (mbscasestr): Renamed from strcasestr.
62928         * lib/strcasestr.c: Don't include mbuiter.h.
62929         (strcasestr): Remove support for multibyte locales.
62930         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
62931         Change the conditional link warning.
62932         (mbscasestr): New declaration.
62933         * m4/mbscasestr.m4: New file.
62934         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
62935         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
62936         REPLACE_STRCASESTR.
62937         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
62938         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62939         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62940         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
62941         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
62942         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62943         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
62944         (Depends-on): Remove mbuiter.
62945         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
62946
62947 2007-02-04  Bruno Haible  <bruno@clisp.org>
62948
62949         Simplify handling of strncasecmp.
62950         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
62951         the conditional link warning.
62952         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62953         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
62954         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
62955         * modules/strcase (configure.ac): Don't invoke
62956         gl_STRING_MODULE_INDICATOR.
62957         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
62958
62959 2007-02-04  Bruno Haible  <bruno@clisp.org>
62960
62961         New module mbscasecmp, reduced goal of strcasecmp.
62962         * modules/mbscasecmp: New file.
62963         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
62964         (mbscasecmp): Renamed from strcasecmp.
62965         * lib/strcasecmp.c: Don't include mbuiter.h.
62966         (strcasecmp): Remove support for multibyte locales.
62967         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
62968         Change the conditional link warning.
62969         (mbscasecmp): New declaration.
62970         * m4/mbscasecmp.m4: New file.
62971         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
62972         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
62973         REPLACE_STRCASECMP.
62974         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
62975         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62976         GNULIB_MBSCASECMP.
62977         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
62978         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
62979         * modules/strcase (Files): Remove m4/mbrtowc.m4.
62980         (Depends-on): Remove mbuiter.
62981         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
62982
62983 2007-02-04  Bruno Haible  <bruno@clisp.org>
62984
62985         New module mbsstr. Remove module strstr.
62986         * modules/mbsstr: New file.
62987         * modules/strstr: Remove file.
62988         * lib/mbsstr.c: Renamed from lib/strstr.c.
62989         (mbsstr): Renamed from strstr.
62990         * lib/string_.h (strstr): Remove declaration. Change the conditional
62991         link warning.
62992         (mbsstr): New declaration.
62993         * m4/mbsstr.m4: New file.
62994         * m4/strstr.m4: Remove file.
62995         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
62996         REPLACE_STRSTR.
62997         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
62998         Don't initialize GNULIB_STRSTR.
62999         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63000         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63001         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63002         (Support for systems lacking ANSI C 89): Remove strstr.
63003
63004 2007-02-04  Bruno Haible  <bruno@clisp.org>
63005
63006         New module mbsrchr.
63007         * modules/mbsrchr: New file.
63008         * lib/mbsrchr.c: New file.
63009         * lib/string_.h (strrchr): Add a conditional link warning.
63010         (mbsrchr): New declaration.
63011         * m4/mbsrchr.m4: New file.
63012         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63013         GNULIB_MBSRCHR.
63014         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63015         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63016
63017 2007-02-04  Bruno Haible  <bruno@clisp.org>
63018
63019         New module mbschr.
63020         * modules/mbschr: New file.
63021         * lib/mbschr.c: New file.
63022         * lib/string_.h (strchr): Add a conditional link warning.
63023         (mbschr): New declaration.
63024         * m4/mbschr.m4: New file.
63025         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63026         GNULIB_MBSCHR.
63027         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63028         * MODULES.html.sh (Internationalization functions): Add mbschr.
63029
63030 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63031
63032         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63033
63034         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63035
63036 2007-02-04  Bruno Haible  <bruno@clisp.org>
63037
63038         New module description section 'configure.ac-early'.
63039         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63040         (func_get_autoconf_early_snippet): New function.
63041         (func_import, func_create_testdir): Use it. Remove special cases for
63042         modules 'extensions' and 'lock'.
63043         * modules/extensions (configure.ac-early): Require
63044         gl_USE_SYSTEM_EXTENSIONS.
63045         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63046
63047 2007-02-04  Bruno Haible  <bruno@clisp.org>
63048
63049         Make use of gcj-4.3's -fsource and -ftarget option.
63050         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63051         and if so try the options -fsource and -ftarget.
63052         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63053         source_version, ftarget_option, target_version arguments.
63054         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63055         (is_envjavac_oldgcj_14_14_usable): Renamed from
63056         is_envjavac_gcj_14_14_usable.
63057         (is_envjavac_oldgcj_14_13_usable): Renamed from
63058         is_envjavac_gcj_14_13_usable.
63059         (is_gcj_present): Update.
63060         (is_gcj_43, is_gcj43_usable): New functions.
63061         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63062         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63063         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63064         try the options -fsource and -ftarget.
63065
63066 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63067
63068         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63069         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63070         larger value.
63071
63072 2007-02-03  Jim Meyering  <jim@meyering.net>
63073
63074         Give tools a better chance to allocate space for very large buffers.
63075         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63076
63077         Make pwd and readlink work also when run with an unreadable parent dir
63078         on systems with openat support.
63079         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63080         provided getcwd function, even when we have openat support.
63081         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63082
63083 2007-02-02  Bruno Haible  <bruno@clisp.org>
63084
63085         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63086         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63087         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63088         portability problems if one of these functions is only used on specific
63089         platforms.
63090         Reported by Paul Eggert.
63091
63092 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63093
63094         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63095         is causing more trouble than it's curing.
63096         * lib/regex_internal.h (__mempcpy): Remove.
63097         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63098         (and make the code a tad smaller to boot).
63099         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63100
63101 2007-02-02  Jim Meyering  <jim@meyering.net>
63102
63103         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63104         section, not in the Makefile.am: one.
63105
63106 2007-02-02  Eric Blake  <ebb9@byu.net>
63107
63108         * lib/strchrnul.c: Always include config.h first.
63109
63110         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63111         gnulib strstr is not necessary here.
63112
63113 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63114
63115         * m4/socklen.m4: Fix typo.
63116
63117 2007-02-02  Eric Blake  <ebb9@byu.net>
63118
63119         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63120         * modules/netinet_in (Makefile.am): Likewise.
63121
63122 2007-02-01  Bruno Haible  <bruno@clisp.org>
63123
63124         * lib/string_.h (GL_LINK_WARNING): New macro.
63125         (strcasecmp, strstr, strcasestr): If provided by the system,
63126         conditionally define as a macro that leads to a warning instead of to
63127         an error.
63128         (strncasecmp): Conditionally define as a macro that leads to a warning.
63129
63130 2007-02-01  Karl Berry  <karl@gnu.org>
63131
63132         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63133
63134 2007-02-01  Bruno Haible  <bruno@clisp.org>
63135
63136         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63137         renamings.
63138
63139 2007-02-01  Eric Blake  <ebb9@byu.net>
63140
63141         * modules/regex (Depends-on): Revert dependence on mempcpy.
63142         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63143         module's definition of mempcpy.
63144         Reported by Paul Eggert.
63145
63146 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63147
63148         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63149         the symbol XYZ before redefining it.  This fixes a problem with
63150         programs that don't use XYZ, when compiled on systems that define
63151         XYZ to something else.
63152
63153 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63154
63155         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63156         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63157         writeable to group or other and (2) is intended to have a special
63158         mode bit that is set or cleared.  In such a case, the directory
63159         should be neither group- nor other-writeable until the special
63160         mode bits are right.
63161
63162 2007-01-31  Eric Blake  <ebb9@byu.net>
63163
63164         * modules/mountlist (Depends-on): Add strstr.
63165
63166         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63167         bug.
63168         * modules/string (Makefile.am): Remove redundant replacement.
63169         * modules/regex (Depends-on): Add mempcpy.
63170
63171 2007-01-31  Bruno Haible  <bruno@clisp.org>
63172
63173         New module description field 'Link'.
63174         * gnulib-tool (func_usage): Document --extract-link-directive.
63175         (sed_extract_prog): Recognize 'Link' directive.
63176         (func_get_link_directive): New function.
63177         (func_import): Show summary of link directives.
63178         Handle --extract-link-directive option.
63179         * modules/acl (Link): New section.
63180         * modules/clock-time (Link): New section.
63181         * modules/euidaccess (Link): New section.
63182         * modules/gettext (Link): New section.
63183         * modules/iconv (Link): New section.
63184         * modules/lock (Link): New section.
63185         * modules/nanosleep (Link): New section.
63186         * modules/readline (Link): New section.
63187
63188 2007-01-27  Bruno Haible  <bruno@clisp.org>
63189
63190         Enforce the use of gnulib modules for unportable <string.h> functions.
63191         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63192         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63193         (gl_HEADER_STRING_H_BODY): Require it.
63194         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63195         the symbol XYZ to one that gives a link error.
63196         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63197         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63198         * modules/mempcpy (configure.ac): Likewise.
63199         * modules/memrchr (configure.ac): Likewise.
63200         * modules/stpcpy (configure.ac): Likewise.
63201         * modules/stpncpy (configure.ac): Likewise.
63202         * modules/strcase (configure.ac): Likewise.
63203         * modules/strcasestr (configure.ac): Likewise.
63204         * modules/strchrnul (configure.ac): Likewise.
63205         * modules/strdup (configure.ac): Likewise.
63206         * modules/strndup (configure.ac): Likewise.
63207         * modules/strnlen (configure.ac): Likewise.
63208         * modules/strpbrk (configure.ac): Likewise.
63209         * modules/strsep (configure.ac): Likewise.
63210         * modules/strstr (configure.ac): Likewise.
63211         * modules/strtok_r (configure.ac): Likewise.
63212
63213 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63214
63215         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63216
63217 2007-01-30  Jim Meyering  <jim@meyering.net>
63218
63219         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63220
63221 2007-01-29  Bruno Haible  <bruno@clisp.org>
63222
63223         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63224         * lib/execute.c: Likewise.
63225         * lib/pipe.c: Likewise.
63226         * lib/printf-args.h: Likewise.
63227         * lib/printf-args.c: Likewise.
63228         * lib/printf-parse.c: Likewise.
63229         * lib/vasnprintf.c: Likewise.
63230
63231 2007-01-29  Eric Blake  <ebb9@byu.net>
63232
63233         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63234         declaration.
63235
63236 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63237
63238         * lib/strptime.h (strptime): Use 'restrict' for args where
63239         POSIX requires this.
63240         * lib/strptime.c (strptime): Likewise.
63241         Change license notice from LGPL to GPL, since gnulib-tool will
63242         change this as needed.
63243         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63244         defined.
63245         Include "strptime.h" first, to check interface.
63246         Do not #undef _LIBC and _NL_CURRENT.
63247         Do not include <stdlib.h>; no longer needed.
63248         Include "time_r.h" and declare ptime_locale_status
63249         only if _LIBC is not defined.
63250         (__P): Remove unused macro.
63251         (match_string): Bring back glibc version, but use it only if _LIBC
63252         is defined.
63253         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63254         Remove unnecessary assertion and abort() call.
63255         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63256         * m4/strptime.m4: Fix serial number comment.
63257         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63258         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63259         (Depends-on): Add time_r.
63260
63261 2007-01-29  Bruno Haible  <bruno@clisp.org>
63262
63263         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63264         strptime.
63265         * modules/strptime (Depends-on): Add stdbool.
63266         * lib/strptime.h: Include <time.h> always. Add comments.
63267
63268 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63269
63270         * modules/strptime: New file.
63271         * lib/strptime.h: New file.
63272         * lib/strptime.c: New file.
63273         * m4/strptime.m4: New file.
63274
63275 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63276
63277         * MODULES.html.sh: New module mpsort.
63278         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63279
63280         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63281         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63282         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63283         All uses changed.
63284         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63285         All uses changed.
63286         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63287         to _Restrict_.
63288         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63289         the parameter matches the prototype.
63290
63291 2007-01-28  Jim Meyering  <jim@meyering.net>
63292
63293         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63294         sys/time.h here, reverting that part of the previous patch:
63295         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63296
63297 2007-01-28  Bruno Haible  <bruno@clisp.org>
63298
63299         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63300         value of $(SYS_TIME_H).
63301         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63302         remove it conditionally, too. [added by Jim Meyering]
63303         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63304         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63305         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63306         GETTIMEOFDAY_REPLACEMENT to 1.
63307
63308 2007-01-28  Bruno Haible  <bruno@clisp.org>
63309
63310         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63311         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63312         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63313         Set UNISTD_H instead of UNISTD_H2.
63314         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63315
63316 2007-01-28  Bruno Haible  <bruno@clisp.org>
63317
63318         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63319         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63320
63321 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63322
63323         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63324         (func_create_testdir): Ensure C locale for `grep' and `tr'
63325         character ranges.
63326         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63327         ACLOCAL_AMFLAGS parsing state machine.
63328
63329 2007-01-27  Bruno Haible  <bruno@clisp.org>
63330
63331         * modules/unistr/base: Update.
63332
63333 2007-01-27  Bruno Haible  <bruno@clisp.org>
63334
63335         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63336         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63337         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63338         modules/unistr/u32-mbtouc.
63339         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63340         * lib/unistr.h: Update.
63341         * lib/linebreak.c: Update.
63342         * modules/unistr/u32-mbtouc: Renamed from
63343         modules/unistr/u32-mbtouc-safe.
63344         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63345         * lib/unistr.h: Update.
63346         * lib/unistr/u32-to-u8.c: Update.
63347         * lib/unistr/u32-to-u16.c: Update.
63348
63349 2007-01-27  Bruno Haible  <bruno@clisp.org>
63350
63351         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63352         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63353         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
63354         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
63355         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
63356         * modules/unistr/u16-mbtouc-unsafe: Renamed from
63357         modules/unistr/u16-mbtouc.
63358         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
63359         * lib/unistr.h: Update.
63360         * lib/linebreak.c: Update.
63361         * modules/linebreak: Update.
63362         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
63363         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
63364         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
63365         * modules/unistr/u16-mbtouc: Renamed from
63366         modules/unistr/u16-mbtouc-safe.
63367         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
63368         * lib/unistr.h: Update.
63369         * lib/unistr/u16-to-u8.c: Update.
63370         * modules/unistr/u16-to-u8: Update.
63371         * lib/unistr/u16-to-u32.c: Update.
63372         * modules/unistr/u16-to-u32: Update.
63373
63374 2007-01-27  Bruno Haible  <bruno@clisp.org>
63375
63376         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
63377         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
63378         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
63379         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
63380         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
63381         * modules/unistr/u8-mbtouc-unsafe: Renamed from
63382         modules/unistr/u8-mbtouc.
63383         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
63384         * lib/unistr.h: Update.
63385         * lib/striconveh.c: Update.
63386         * modules/striconveh: Update.
63387         * lib/linebreak.c: Update.
63388         * modules/linebreak: Update.
63389         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
63390         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
63391         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
63392         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
63393         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
63394         * lib/unistr.h: Update.
63395         * lib/striconveh.c: Update.
63396         * modules/striconveh: Update.
63397         * lib/unistr/u8-to-u16.c: Update.
63398         * modules/unistr/u8-to-u16: Update.
63399         * lib/unistr/u8-to-u32.c: Update.
63400         * modules/unistr/u8-to-u32: Update.
63401
63402 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63403
63404         Sync from Libtool.
63405         * lib/argz.c: Do not include strings.h nor memory.h, include
63406         string.h unconditionally.  Patch by Simon Josefsson.
63407
63408 2007-01-27  Bruno Haible  <bruno@clisp.org>
63409
63410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
63411         from gl_HEADER_STRING_H_BODY.
63412         (gl_HEADER_STRING_H_BODY): Require it.
63413         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
63414         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63415         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63416         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63417         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63418         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
63419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63420         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63421         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
63422         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63423         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63424         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
63425         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63426         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63427         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63428
63429 2007-01-27  Bruno Haible  <bruno@clisp.org>
63430
63431         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
63432         check_PROGRAMS into noinst_PROGRAMS.
63433         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
63434         check_PROGRAMS in this case.
63435         (func_import): Set for_test to false.
63436         (func_create_testdir): Set for_test to true.
63437
63438 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63439             Bruno Haible  <bruno@clisp.org>
63440
63441         * modules/strcasestr (Files): Remove lib/strcasestr.h.
63442         (Depends-on): Add string.
63443         (Includes): Use <string.h> instead of strcasestr.h.
63444         * modules/string (Makefile.am): Also substitute the value of
63445         REPLACE_STRCASESTR.
63446         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
63447         assume strcasestr is declared in <string.h> not <strings.h>. Also
63448         set REPLACE_STRCASESTR.
63449         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
63450         REPLACE_STRCASESTR.
63451         * lib/strcasestr.h: Remove file.
63452         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63453         * lib/string_.h (strcasestr): New declaration.
63454
63455 2007-01-27  Bruno Haible  <bruno@clisp.org>
63456
63457         * lib/string_.h: Use 'extern'.
63458
63459 2007-01-27  Jim Meyering  <jim@meyering.net>
63460
63461         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63462         of set-but-not-used local, "q".
63463
63464         * lib/mempcpy.c: Include <config.h> before <string.h>.
63465         This fixes a compilation error on HP-UX, due to the system's
63466         "restrict"-using mempcpy prototype.
63467
63468 2007-01-26  Bruno Haible  <bruno@clisp.org>
63469
63470         Small optimization.
63471         * lib/javacomp.c: Include c-strstr.h.
63472          (is_envjavac_gcj): Use c_strstr instead of strstr.
63473         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63474
63475 2007-01-26  Bruno Haible  <bruno@clisp.org>
63476
63477         * MODULES.html.sh (Unicode string functions): Add the new modules.
63478
63479         * modules/uniconv/u32-strconv-to-locale: New file.
63480         * lib/uniconv/u32-strconv-to-locale.c: New file.
63481
63482         * modules/uniconv/u16-strconv-to-locale: New file.
63483         * lib/uniconv/u16-strconv-to-locale.c: New file.
63484
63485         * modules/uniconv/u8-strconv-to-locale: New file.
63486         * lib/uniconv/u8-strconv-to-locale.c: New file.
63487
63488         * modules/uniconv/u32-strconv-from-locale: New file.
63489         * lib/uniconv/u32-strconv-from-locale.c: New file.
63490
63491         * modules/uniconv/u16-strconv-from-locale: New file.
63492         * lib/uniconv/u16-strconv-from-locale.c: New file.
63493
63494         * modules/uniconv/u8-strconv-from-locale: New file.
63495         * lib/uniconv/u8-strconv-from-locale.c: New file.
63496
63497         * modules/uniconv/u32-strconv-to-enc: New file.
63498         * lib/uniconv/u32-strconv-to-enc.c: New file.
63499         * modules/uniconv/u32-strconv-to-enc-tests: New file.
63500         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
63501
63502         * modules/uniconv/u16-strconv-to-enc: New file.
63503         * lib/uniconv/u16-strconv-to-enc.c: New file.
63504         * lib/uniconv/u-strconv-to-enc.h: New file.
63505         * modules/uniconv/u16-strconv-to-enc-tests: New file.
63506         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
63507
63508         * modules/uniconv/u8-strconv-to-enc: New file.
63509         * lib/uniconv/u8-strconv-to-enc.c: New file.
63510         * modules/uniconv/u8-strconv-to-enc-tests: New file.
63511         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
63512
63513         * modules/uniconv/u32-strconv-from-enc: New file.
63514         * lib/uniconv/u32-strconv-from-enc.c: New file.
63515         * modules/uniconv/u32-strconv-from-enc-tests: New file.
63516         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
63517
63518         * modules/uniconv/u16-strconv-from-enc: New file.
63519         * lib/uniconv/u16-strconv-from-enc.c: New file.
63520         * modules/uniconv/u16-strconv-from-enc-tests: New file.
63521         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
63522
63523         * modules/uniconv/u8-strconv-from-enc: New file.
63524         * lib/uniconv/u8-strconv-from-enc.c: New file.
63525         * lib/uniconv/u-strconv-from-enc.h: New file.
63526         * modules/uniconv/u8-strconv-from-enc-tests: New file.
63527         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
63528
63529         * modules/uniconv/u32-conv-from-enc: New file.
63530         * lib/uniconv/u32-conv-from-enc.c: New file.
63531         * modules/uniconv/u32-conv-from-enc-tests: New file.
63532         * tests/uniconv/test-u32-conv-from-enc.c: New file.
63533
63534         * modules/uniconv/u16-conv-from-enc: New file.
63535         * lib/uniconv/u16-conv-from-enc.c: New file.
63536         * lib/uniconv/u-conv-from-enc.h: New file.
63537         * modules/uniconv/u16-conv-from-enc-tests: New file.
63538         * tests/uniconv/test-u16-conv-from-enc.c: New file.
63539
63540         * modules/uniconv/u8-conv-from-enc: New file.
63541         * lib/uniconv/u8-conv-from-enc.c: New file.
63542         * modules/uniconv/u8-conv-from-enc-tests: New file.
63543         * tests/uniconv/test-u8-conv-from-enc.c: New file.
63544
63545         * modules/uniconv/base: New file.
63546         * lib/uniconv.h: New file.
63547
63548 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63549
63550         * doc/gnulib-tool.texi (Initial import): Update to match current
63551         behavior with strdup module.
63552         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
63553         * lib/memmem.h: Remove; all uses removed.  This is now done
63554         by <string.h>.
63555         * lib/mempcpy.h: Likewise.
63556         * lib/memrchr.h: Likewise.
63557         * lib/stpcpy.h: Likewise.
63558         * lib/stpncpy.h: Likewise.
63559         * lib/strcase.h: Likewise.
63560         * lib/strchrnul.h: Likewise.
63561         * lib/strdup.h: Likewise.
63562         * lib/strndup.h: Likewise.
63563         * lib/strnlen.h: Likewise.
63564         * lib/strpbrk.h: Likewise.
63565         * lib/strsep.h: Likewise.
63566         * lib/strstr.h: Likewise.
63567         * lib/strtok_r.h: Likewise.
63568         * lib/string_.h: New file.
63569         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
63570         Rely on <string.h> instead.
63571         * lib/canon-host.c: Likewise.
63572         * lib/chdir-long.c: Likewise.
63573         * lib/concatpath.c: Likewise.
63574         * lib/exclude.c: Likewise.
63575         * lib/fchdir.c: Likewise.
63576         * lib/getaddrinfo.c: Likewise.
63577         * lib/getcwd.c: Likewise.
63578         * lib/getsubopt.c: Likewise.
63579         * lib/glob.c: Likewise.
63580         * lib/hard-locale.c: Likewise.
63581         * lib/iconvme.c: Likewise.
63582         * lib/javacomp.c: Likewise.
63583         * lib/mempcpy.c: Likewise.
63584         * lib/memrchr.c: Likewise.
63585         * lib/regex_internal.h: Likewise.
63586         * lib/stpncpy.c: Likewise.
63587         * lib/strcasecmp.c: Likewise.
63588         * lib/strchrnul.c: Likewise.
63589         * lib/strdup.c: Likewise.
63590         * lib/striconv.c: Likewise.
63591         * lib/striconveh.c: Likewise.
63592         * lib/striconveha.c: Likewise.
63593         * lib/strncasecmp.c: Likewise.
63594         * lib/strndup.c: Likewise.
63595         * lib/strnlen.c: Likewise.
63596         * lib/strsep.c: Likewise.
63597         * lib/strstr.c: Likewise.
63598         * lib/strtok_r.c: Likewise.
63599         * lib/userspec.c: Likewise.
63600         * lib/w32spawn.h: Likewise.
63601         * lib/xstrndup.c: Likewise.
63602         * lib/mountlist.c (strstr): Remove decl.
63603         * m4/string_h.m4: New file.
63604         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
63605         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
63606         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
63607         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
63608         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
63609         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
63610         Set REPLACE_STRCASECMP if necessary.
63611         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
63612         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
63613         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
63614         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
63615         HAVE_DECL_STRDUP if necessary.
63616         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
63617         since gl_FUNC_STRNDUP does that now.
63618         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
63619         Check for decl here...
63620         (gl_PREREQ_STRNLEN): ... not here.
63621         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
63622         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
63623         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
63624         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
63625         necessary.
63626         * modules/string: New file.
63627         * modules/memmem (Files): Remove special-purpose include file.
63628         (Depends-on): Add string.
63629         (Include): Include <string.h>, not the removed file.
63630         * modules/mempcpy: Likewise.
63631         * modules/memrchr: Likewise.
63632         * modules/stpcpy: Likewise.
63633         * modules/stpncpy: Likewise.
63634         * modules/strcase: Likewise.
63635         * modules/strchrnul: Likewise.
63636         * modules/strdup: Likewise.
63637         * modules/strndup: Likewise.
63638         * modules/strnlen: Likewise.
63639         * modules/strpbrk: Likewise.
63640         * modules/strsep: Likewise.
63641         * modules/strstr: Likewise.
63642         * modules/strtok_r: Likewise.
63643         * tests/test-dirname.c: Don't include "strdup.h", since
63644         <string.h> now suffices.
63645         * tests/test-memmem.c: Don't include "memmem.h", since
63646         <string.h> now suffices.
63647
63648 2007-01-25  Bruno Haible  <bruno@clisp.org>
63649
63650         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
63651         *resultp is 0.
63652
63653         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
63654         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
63655         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
63656         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
63657
63658         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
63659         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
63660         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
63661         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
63662         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
63663         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
63664
63665 2007-01-24  Bruno Haible  <bruno@clisp.org>
63666
63667         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
63668         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
63669         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
63670         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
63671         gl_FUNC_FTS_CORE.
63672         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
63673         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
63674         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63675         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
63676         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
63677         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
63678         gl_FUNC_FCHOWNAT.
63679         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
63680         gl_FUNC_STRFTIME.
63681         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
63682         Reported by Ralf Wildenhues.
63683
63684 2007-01-24  Bruno Haible  <bruno@clisp.org>
63685
63686         Drop AC_REQUIRE calls that are redundant with the module dependencies.
63687         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
63688         gl_GETADDRINFO.
63689         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
63690         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
63691         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
63692
63693 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
63694
63695         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
63696         Don't use 'exit'; just return from 'main'.
63697         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
63698
63699         * lib/fnmatch_.h: Readjust white space and comments to match
63700         glibc, to avoid spurious diffs.
63701
63702 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63703
63704         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
63705         2004-12-01 change by Jakub Jelinek, since this code won't compile
63706         if !LIBC.  Problem reported by Bob Proulx.
63707
63708 2007-01-23  Bruno Haible  <bruno@clisp.org>
63709
63710         * lib/striconveh.c: Include c-strcaseeq.h.
63711         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
63712         * modules/striconveh (Depends-on): Add c-strcaseeq.
63713
63714 2007-01-23  Bruno Haible  <bruno@clisp.org>
63715
63716         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
63717
63718         * modules/c-strcaseeq: New file.
63719         * lib/c-strcaseeq.h: New file.
63720
63721         * modules/streq: New file.
63722         * lib/streq.h: New file.
63723
63724 2007-01-23  Bruno Haible  <bruno@clisp.org>
63725
63726         * modules/striconveha-tests: New file.
63727         * tests/test-striconveha.c: New file.
63728
63729         * lib/striconveha.h: Include <stdbool.h>.
63730         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
63731         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
63732         (mem_iconveha_notranslit): Renamed from mem_iconveha.
63733         (mem_iconveha): New function.
63734         (str_iconveha_notranslit): Renamed from str_iconveha.
63735         (str_iconveha): New function.
63736         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
63737         c-strcase.
63738
63739 2007-01-23  Bruno Haible  <bruno@clisp.org>
63740
63741         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
63742         encodings without forgiving before trying any encoding with handler.
63743         (str_iconveha): Try all encodings without forgiving before trying any
63744         encoding with handler.
63745
63746 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63747
63748         Import the following changes from libc.
63749
63750         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63751
63752         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
63753
63754         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63755
63756         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
63757         normal_bracket label.
63758
63759         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
63760
63761         [BZ #361]
63762         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
63763         to normal_bracket after fetching the next character.
63764
63765 2007-01-22  Bruno Haible  <bruno@clisp.org>
63766
63767         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
63768         argument.
63769         * lib/striconveh.c (iconv_carefully_1): New function.
63770         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
63771         argument.
63772         (str_cd_iconveh): Update.
63773         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
63774         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
63775         * tests/test-striconveh.c (MAGIC): New macro.
63776         (new_offsets): New function.
63777         (main): Test call with and without offsets.
63778
63779 2007-01-22  Bruno Haible  <bruno@clisp.org>
63780
63781         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
63782         * modules/sys_select (Makefile.am): Likewise.
63783         * modules/sys_socket (Makefile.am): Likewise.
63784         * modules/sys_time (Makefile.am): Likewise.
63785
63786 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63787
63788         * modules/gettimeofday (License): Change from GPL to LGPL, since
63789         gettimeofday is a library function.
63790
63791 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63792
63793         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
63794
63795 2007-01-21  Bruno Haible  <bruno@clisp.org>
63796
63797         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
63798
63799 2007-01-21  Bruno Haible  <bruno@clisp.org>
63800
63801         * modules/striconveha: New file.
63802         * lib/striconveha.h: New file.
63803         * lib/striconveha.c: New file.
63804         * MODULES.html.sh (Internationalization functions): Add striconveha.
63805         * lib/striconv.c (str_iconv): Optimize the case of an empty input
63806         string.
63807         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
63808
63809 2007-01-21  Bruno Haible  <bruno@clisp.org>
63810
63811         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
63812         * lib/striconveh.c (str_iconveh): Likewise.
63813
63814 2007-01-21  Bruno Haible  <bruno@clisp.org>
63815
63816         * lib/striconveh.h (mem_iconveh): New declaration.
63817         * lib/striconveh.c (mem_iconveh): New function.
63818         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
63819
63820 2007-01-21  Bruno Haible  <bruno@clisp.org>
63821
63822         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
63823
63824         * lib/striconveh.h (mem_cd_iconveh): Change specification.
63825         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
63826         original result buffer.
63827         (str_cd_iconveh): Update.
63828         * tests/test-striconveh.c (main): Update.
63829
63830         * lib/striconv.h (mem_cd_iconv): Change specification.
63831         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
63832         result buffer.
63833         (str_cd_iconv): Update.
63834         * tests/test-striconv.c (main): Update.
63835
63836 2007-01-21  Bruno Haible  <bruno@clisp.org>
63837
63838         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
63839
63840 2007-01-20  Jim Meyering  <jim@meyering.net>
63841
63842         * lib/userspec.c (parse_with_separator): If a user or group string
63843         starts with "+", skip the corresponding name-to-ID look-up, since
63844         such a look-up must fail: user and group names may not include "+".
63845
63846 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63847
63848         * lib/poll.c: Include sys/time.h and time.h unconditionally,
63849         since we now assume the sys_time module.
63850         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
63851         check for sys/time.h; no longer needed.
63852         * modules/poll (Depends-on): Depend on sys_time.
63853
63854 2007-01-18  Bruno Haible  <bruno@clisp.org>
63855
63856         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
63857         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63858
63859         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
63860         gettimeofday.
63861
63862         * tests/test-gettimeofday.c: Include <time.h>.
63863         (dummy): Remove variable.
63864
63865         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
63866         gl_HEADER_SYS_TIME_H.
63867         (gl_HEADER_SYS_TIME_H): New macro.
63868
63869         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
63870         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63871         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
63872         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
63873         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63874         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
63875         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
63876         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63877         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
63878         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
63879         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63880
63881         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
63882         last change; it caused a compilation error when cross-compiling to
63883         Cygwin.
63884
63885 2007-01-18  Jim Meyering  <jim@meyering.net>
63886
63887         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
63888         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
63889         than the race-prone "test -d sys || mkdir sys".
63890         (configure.ac): Use AC_PROG_MKDIR_P.
63891         * modules/sys_select: Likewise.
63892         * modules/sys_socket: Likewise.
63893         * modules/sys_time: Likewise.
63894
63895 2007-01-18  Eric Blake  <ebb9@byu.net>
63896
63897         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
63898         replace gettimeofday.
63899         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
63900         name, to avoid infinite recursion.
63901
63902 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
63903
63904         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
63905         module sys_time.
63906         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
63907         assume timespec.h defines struct timeval.
63908         * lib/settime.c: Likewise.
63909         * lib/utimens.c: Likewise.
63910         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
63911         since we now assume the gettimeofday module.
63912         * lib/tempname.c (__gen_tempname): Likewise.
63913         * lib/gettimeofday.h: Remove.
63914         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
63915         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
63916         Include <time.h>, for 'time()'.
63917         (localtime_buffer_addr): Also use this workaround if
63918         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
63919         to simplify the uses.  All uses changed.
63920         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
63921         that #undef is inside {}, and 'const' follows type name consistently.
63922         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
63923         (gettimeofday): Do not use the maximum possible value for
63924         tv->tv_usec, since that might break usages other than ls.c.
63925         Instead, we'll leave ls.c alone.  This undoes today's patch
63926         by Bruno.  Add a compile-time warning for 1s-clock resolution;
63927         we've never observed the problem but might as well keep the
63928         canary.
63929         * lib/nanosleep.c: Include timespec.h first, for interface check.
63930         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
63931         now assume the sys_time module.
63932         * lib/tempname.c: Likewise.
63933         * lib/timespec.h: Likewise.
63934         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
63935         needed.
63936         * lib/strftime.c: Likewise.
63937         * lib/timespec.h: Likewise.
63938         * lib/posixtm.c: Include posixtm.h first, for interface check.
63939         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
63940         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
63941         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
63942         * lib/sys_time_.h: New file.
63943         * lib/timespec.h (struct timespec): Use long int, not long.
63944         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63945         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
63946         Remove obsolescent call to AC_HEADER_TIME.
63947         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63948         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63949         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63950         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
63951         Likewise.
63952         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
63953         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
63954         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
63955         into the sys_time module.  Check for gettimeofday just once.
63956         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
63957         for gettimeofday signature to just check the signature.  Merely
63958         compile it, since linking doesn't test signature.  Improve test for
63959         whether gettimeofday.o is actually needed.
63960         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
63961         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
63962         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
63963         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63964         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
63965         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
63966         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
63967         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
63968         than worrying about sys/time.h.
63969         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63970         Don't bother worrying about TIME_WITH_SYS_TIME.
63971         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
63972         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
63973         * m4/sys_time_h.m4: New file.
63974         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
63975         Don't include sys/time.h.  Return from main rather than exiting.
63976         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
63977         all uses changed.
63978         * modules/gethrxtime (Depends-on): Add sys_time.
63979         * modules/gettime (Depends-on): Likewise.
63980         * modules/gettimeofday (Depends-on): Likewise.
63981         * modules/nanosleep (Depends-on): Likewise.
63982         * modules/settime (Depends-on): Likewise.
63983         * modules/tempname (Depends-on): Likewise.
63984         * modules/utimens (Depends-on): Likewise.
63985         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
63986         (Include): Change back to <sys/time.h>.
63987         (Maintainer): Add self.
63988         * modules/sys_time: New file.
63989         * modules/tempname (Depends-on): Add gettimeofday.
63990         * tests/test-gettimeofday.c: Include <sys/time.h>
63991         rather than gettimeofday.h.
63992
63993 2007-01-17  Bruno Haible  <bruno@clisp.org>
63994
63995         * gnulib-tool (func_get_license): Revert last patch. Instead, let
63996         the license default to GPL.
63997         (func_create_testdir): Don't complain if a module is LGPL and its
63998         tests module depends on GPLed modules.
63999
64000 2007-01-17  Bruno Haible  <bruno@clisp.org>
64001
64002         * lib/gettimeofday.c (gettimeofday): Add code for the case
64003         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64004         maximum possible value for tv->tv_usec, rather than the minimum one.
64005
64006 2005-10-08  Martin Lambers  <marlam@marlam.de>
64007 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64008 2007-01-16  Bruno Haible  <bruno@clisp.org>
64009
64010         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64011         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64012         gl_FUNC_GETTIMEOFDAY.
64013         (Include): Add gettimeofday.h.
64014         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64015         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64016         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64017         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64018         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64019         * lib/gettimeofday.h: New file.
64020         * lib/gettimeofday.c: Include <sys/timeb.h>.
64021         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64022         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64023         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64024         fall back on time().
64025
64026         * tests/test-gettimeofday.c: New file.
64027         * modules/gettimeofday-tests: New file.
64028
64029 2007-01-16  Eric Blake  <ebb9@byu.net>
64030
64031         * modules/fnmatch (Depends-on): Depend on wchar.
64032         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64033         * m4/fnmatch.m4: Likewise.
64034         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64035         * m4/mbchar.m4: Likewise.
64036         * modules/mbswidth (Depends-on): Depend on wchar.
64037         * lib/mbswidth.c: Assume <wchar.h>.
64038         * m4/mbswidth.m4: Likewise.
64039         * modules/quotearg (Depends-on): Depend on wchar.
64040         * lib/quotearg.c: Assume <wchar.h>.
64041         * m4/quotearg.m4: Likewise.
64042         * modules/regex (Depends-on): Depend on wchar.
64043         * lib/regex_internal.h: Assume <wchar.h>.
64044         * m4/regex.m4: Likewise.
64045         * modules/stdint (Depends-on): Depend on wchar.
64046         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64047         * m4/stdint.m4: Likewise.
64048         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64049         * modules/strftime (Depends-on): Depend on wchar.
64050         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64051         * modules/strtol (Depends-on): Depend on wchar.
64052         * lib/strtol.c: Assume <wchar.h>.
64053         * modules/wcwidth (Depends-on): Depend on wchar.
64054         * lib/wcwidth.h: Assume <wchar.h>.
64055         * m4/wcwidth.m4: Likewise.
64056
64057 2007-01-16  Bruno Haible  <bruno@clisp.org>
64058
64059         * modules/csharpexec-script: New, created from...
64060         * modules/csharpexec: ... this.
64061
64062 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64063
64064         * modules/javaexec-script: New, created from...
64065         * modules/javaexec: ... this.
64066
64067 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64068
64069         * modules/poll (Dependencies): Add sys_select.
64070
64071 2007-01-15  Jim Meyering  <jim@meyering.net>
64072
64073         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64074         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64075         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64076         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64077
64078 2007-01-15  Bruno Haible  <bruno@clisp.org>
64079
64080         * modules/striconveh: New file.
64081         * lib/striconveh.h: New file.
64082         * lib/striconveh.c: New file.
64083         * MODULES.html.sh (Internationalization functions): Add striconveh.
64084
64085         * modules/striconveh-tests: New file.
64086         * tests/test-striconveh.c: New file.
64087
64088 2007-01-15  Bruno Haible  <bruno@clisp.org>
64089
64090         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64091         not from GNU libiconv or GNU libc.
64092
64093 2007-01-15  Bruno Haible  <bruno@clisp.org>
64094
64095         * doc/gnulib-intro.texi (Copyright): Explain the different license
64096         terms for module descriptions, autoconf macros, tests, documentation.
64097
64098 2007-01-14  Bruno Haible  <bruno@clisp.org>
64099
64100         * modules/striconv-tests: New file.
64101         * tests/test-striconv.c: New file.
64102
64103 2007-01-14  Bruno Haible  <bruno@clisp.org>
64104
64105         * modules/iconv-tests: New file.
64106         * tests/test-iconv.c: New file.
64107
64108 2007-01-14  Bruno Haible  <bruno@clisp.org>
64109
64110         * gnulib-tool (func_get_license): For test modules, use the license of
64111         the main module.
64112
64113 2007-01-14  Bruno Haible  <bruno@clisp.org>
64114
64115         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64116         if iconv is found to exist.
64117
64118 2007-01-14  Bruno Haible  <bruno@clisp.org>
64119
64120         * modules/c-ctype-tests: New file.
64121         * tests/test-c-ctype.c: New file.
64122
64123 2007-01-14  Bruno Haible  <bruno@clisp.org>
64124
64125         * modules/binary-io-tests: New file.
64126         * tests/test-binary-io.sh: New file.
64127         * tests/test-binary-io.c: New file.
64128
64129 2007-01-14  Bruno Haible  <bruno@clisp.org>
64130
64131         * modules/array-oset-tests: New file.
64132         * tests/test-array_oset.c: New file.
64133
64134 2007-01-14  Bruno Haible  <bruno@clisp.org>
64135
64136         * modules/array-list-tests: New file.
64137         * tests/test-array_list.c: New file.
64138
64139 2007-01-14  Bruno Haible  <bruno@clisp.org>
64140
64141         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64142         and make.
64143         Reported by Simon Josefsson in
64144         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64145
64146 2007-01-14  Bruno Haible  <bruno@clisp.org>
64147
64148         * modules/allocsa-tests: New file.
64149         * tests/test-allocsa.c: New file.
64150
64151 2007-01-14  Bruno Haible  <bruno@clisp.org>
64152
64153         * modules/fchdir (Depends-on): Add absolute-header.
64154         * modules/unistd (Depends-on): Likewise.
64155
64156 2006-12-30  Bruno Haible  <bruno@clisp.org>
64157
64158         * modules/fchdir: New file.
64159         * modules/unistd (Files): Add lib/unistd_.h.
64160         (Makefile.am): Generate unistd.h from unistd_.h.
64161         * lib/fchdir.c: New file.
64162         * lib/dirent_.h: New file.
64163         * lib/unistd_.h: New file.
64164         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64165         * m4/fchdir.m4: New file.
64166         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64167         (gl_HEADER_UNISTD): Invoke it.
64168         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64169         function.
64170         * lib/backupfile.c (opendir, closedir): Undefine.
64171         * lib/chown.c (open, close): Undefine.
64172         * lib/clean-temp.c (open, close): Undefine.
64173         * lib/copy-file.c (open, close): Undefine.
64174         * lib/execute.c (open, close): Undefine.
64175         * lib/fsusage.c (open, close): Undefine.
64176         * lib/gc-gnulib.c (open, close): Undefine.
64177         * lib/getcwd.c (opendir, closedir): Undefine.
64178         * lib/glob.c (opendir, closedir): Undefine.
64179         * lib/javacomp.c (open, close): Undefine.
64180         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64181         * lib/openat-proc.c (open, close): Undefine.
64182         * lib/pagealign_alloc.c (open, close): Undefine.
64183         * lib/pipe.c (open, close): Undefine.
64184         * lib/progreloc.c (open, close): Undefine.
64185         * lib/savedir.c (opendir, closedir): Undefine.
64186         * lib/utime.c (open, close): Undefine.
64187         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64188
64189 2007-01-10  Bruno Haible  <bruno@clisp.org>
64190
64191         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64192
64193 2007-01-12  Eric Blake  <ebb9@byu.net>
64194
64195         Provide a robust <wchar.h>.  Further simplifications are now
64196         possible in other modules, but not included here.
64197         * modules/wchar: New module.
64198         * m4/wchar.m4: New file.
64199         * lib/wchar_.h: Likewise.
64200         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64201         of the new module.
64202         * MODULES.html.sh (Extended multibyte and wide character utilities):
64203         New section.
64204
64205 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64206
64207         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64208         to a reasonable default for memory allocation.
64209         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64210         file system that reports garbage st_size values for symlinks.
64211         Problem reported by Liyang Hu.
64212
64213 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64214
64215         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64216         Emacs .#* auto-save files).
64217
64218 2007-01-11  Bruno Haible  <bruno@clisp.org>
64219
64220         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64221         directory.
64222
64223 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64224
64225         Use @...@ consistently in lib/wctype_.h.
64226         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64227         on it being set to 1 or 0.
64228         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64229         go back to AC_SUBSTing it.
64230         * modules/wctype (Makefile.am): Undo previous change.
64231
64232 2007-01-10  Eric Blake  <ebb9@byu.net>
64233
64234         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64235         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64236         * modules/wctype (Makefile.am): Likewise.
64237         Reported by Chris McGuire.
64238
64239 2007-01-10  Jim Meyering  <jim@meyering.net>
64240
64241         fts.c: a small readability/maintainability improvement
64242         * lib/fts.c (fts_read): Make this code slightly more readable and
64243         maintainable by hoisting the "sp->fts_cur = p" assignments to
64244         immediately follow the statements that set P.  Derived from
64245         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64246
64247 2007-01-10  Eric Blake  <ebb9@byu.net>
64248
64249         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64250         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64251         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64252         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64253         Reported by Chris McGuire.
64254
64255 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64256
64257         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64258         in sed script.
64259
64260 2007-01-09  Bruno Haible  <bruno@clisp.org>
64261
64262         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64263         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64264         variables.
64265         (func_module): Use them.
64266
64267 2007-01-09  Bruno Haible  <bruno@clisp.org>
64268
64269         * modules/unistr/base: New file.
64270         * lib/unistr.h: New file.
64271
64272         * modules/unistr/u8-to-u16: New file.
64273         * lib/unistr/u8-to-u16.c: New file.
64274
64275         * modules/unistr/u8-to-u32: New file.
64276         * lib/unistr/u8-to-u32.c: New file.
64277
64278         * modules/unistr/u16-to-u8: New file.
64279         * lib/unistr/u16-to-u8.c: New file.
64280
64281         * modules/unistr/u16-to-u32: New file.
64282         * lib/unistr/u16-to-u32.c: New file.
64283
64284         * modules/unistr/u32-to-u8: New file.
64285         * lib/unistr/u32-to-u8.c: New file.
64286
64287         * modules/unistr/u32-to-u16: New file.
64288         * lib/unistr/u32-to-u16.c: New file.
64289
64290         * modules/unistr/u8-check: New file.
64291         * modules/unistr/u16-check: New file.
64292         * modules/unistr/u32-check: New file.
64293         * lib/unistr/u8-check.c: New file.
64294         * lib/unistr/u16-check.c: New file.
64295         * lib/unistr/u32-check.c: New file.
64296
64297         * modules/unistr/u8-chr: New file.
64298         * modules/unistr/u16-chr: New file.
64299         * modules/unistr/u32-chr: New file.
64300         * lib/unistr/u8-chr.c: New file.
64301         * lib/unistr/u16-chr.c: New file.
64302         * lib/unistr/u32-chr.c: New file.
64303
64304         * modules/unistr/u8-cmp: New file.
64305         * modules/unistr/u16-cmp: New file.
64306         * modules/unistr/u32-cmp: New file.
64307         * lib/unistr/u8-cmp.c: New file.
64308         * lib/unistr/u16-cmp.c: New file.
64309         * lib/unistr/u32-cmp.c: New file.
64310
64311         * modules/unistr/u8-cpy: New file.
64312         * modules/unistr/u16-cpy: New file.
64313         * modules/unistr/u32-cpy: New file.
64314         * lib/unistr/u8-cpy.c: New file.
64315         * lib/unistr/u16-cpy.c: New file.
64316         * lib/unistr/u32-cpy.c: New file.
64317         * lib/unistr/u-cpy.h: New file.
64318
64319         * modules/unistr/u8-cpy-alloc: New file.
64320         * modules/unistr/u16-cpy-alloc: New file.
64321         * modules/unistr/u32-cpy-alloc: New file.
64322         * lib/unistr/u8-cpy-alloc.c: New file.
64323         * lib/unistr/u16-cpy-alloc.c: New file.
64324         * lib/unistr/u32-cpy-alloc.c: New file.
64325         * lib/unistr/u-cpy-alloc.h: New file.
64326
64327         * modules/unistr/u8-endswith: New file.
64328         * modules/unistr/u16-endswith: New file.
64329         * modules/unistr/u32-endswith: New file.
64330         * lib/unistr/u8-endswith.c: New file.
64331         * lib/unistr/u16-endswith.c: New file.
64332         * lib/unistr/u32-endswith.c: New file.
64333         * lib/unistr/u-endswith.h: New file.
64334
64335         * modules/unistr/u8-mblen: New file.
64336         * modules/unistr/u16-mblen: New file.
64337         * modules/unistr/u32-mblen: New file.
64338         * lib/unistr/u8-mblen.c: New file.
64339         * lib/unistr/u16-mblen.c: New file.
64340         * lib/unistr/u32-mblen.c: New file.
64341
64342         * modules/unistr/u8-mbtouc: New file.
64343         * modules/unistr/u16-mbtouc: New file.
64344         * modules/unistr/u32-mbtouc: New file.
64345         * lib/unistr/u8-mbtouc.c: New file.
64346         * lib/unistr/u16-mbtouc.c: New file.
64347         * lib/unistr/u32-mbtouc.c: New file.
64348
64349         * modules/unistr/u8-mbtouc-safe: New file.
64350         * modules/unistr/u16-mbtouc-safe: New file.
64351         * modules/unistr/u32-mbtouc-safe: New file.
64352         * lib/unistr/u8-mbtouc-safe.c: New file.
64353         * lib/unistr/u16-mbtouc-safe.c: New file.
64354         * lib/unistr/u32-mbtouc-safe.c: New file.
64355
64356         * modules/unistr/u8-move: New file.
64357         * modules/unistr/u16-move: New file.
64358         * modules/unistr/u32-move: New file.
64359         * lib/unistr/u8-move.c: New file.
64360         * lib/unistr/u16-move.c: New file.
64361         * lib/unistr/u32-move.c: New file.
64362         * lib/unistr/u-move.h: New file.
64363
64364         * modules/unistr/u8-next: New file.
64365         * modules/unistr/u16-next: New file.
64366         * modules/unistr/u32-next: New file.
64367         * lib/unistr/u8-next.c: New file.
64368         * lib/unistr/u16-next.c: New file.
64369         * lib/unistr/u32-next.c: New file.
64370
64371         * modules/unistr/u8-prev: New file.
64372         * modules/unistr/u16-prev: New file.
64373         * modules/unistr/u32-prev: New file.
64374         * lib/unistr/u8-prev.c: New file.
64375         * lib/unistr/u16-prev.c: New file.
64376         * lib/unistr/u32-prev.c: New file.
64377
64378         * modules/unistr/u8-set: New file.
64379         * modules/unistr/u16-set: New file.
64380         * modules/unistr/u32-set: New file.
64381         * lib/unistr/u8-set.c: New file.
64382         * lib/unistr/u16-set.c: New file.
64383         * lib/unistr/u32-set.c: New file.
64384         * lib/unistr/u-set.h: New file.
64385
64386         * modules/unistr/u8-startswith: New file.
64387         * modules/unistr/u16-startswith: New file.
64388         * modules/unistr/u32-startswith: New file.
64389         * lib/unistr/u8-startswith.c: New file.
64390         * lib/unistr/u16-startswith.c: New file.
64391         * lib/unistr/u32-startswith.c: New file.
64392         * lib/unistr/u-startswith.h: New file.
64393
64394         * modules/unistr/u8-stpcpy: New file.
64395         * modules/unistr/u16-stpcpy: New file.
64396         * modules/unistr/u32-stpcpy: New file.
64397         * lib/unistr/u8-stpcpy.c: New file.
64398         * lib/unistr/u16-stpcpy.c: New file.
64399         * lib/unistr/u32-stpcpy.c: New file.
64400         * lib/unistr/u-stpcpy.h: New file.
64401
64402         * modules/unistr/u8-stpncpy: New file.
64403         * modules/unistr/u16-stpncpy: New file.
64404         * modules/unistr/u32-stpncpy: New file.
64405         * lib/unistr/u8-stpncpy.c: New file.
64406         * lib/unistr/u16-stpncpy.c: New file.
64407         * lib/unistr/u32-stpncpy.c: New file.
64408         * lib/unistr/u-stpncpy.h: New file.
64409
64410         * modules/unistr/u8-strcat: New file.
64411         * modules/unistr/u16-strcat: New file.
64412         * modules/unistr/u32-strcat: New file.
64413         * lib/unistr/u8-strcat.c: New file.
64414         * lib/unistr/u16-strcat.c: New file.
64415         * lib/unistr/u32-strcat.c: New file.
64416         * lib/unistr/u-strcat.h: New file.
64417
64418         * modules/unistr/u8-strchr: New file.
64419         * modules/unistr/u16-strchr: New file.
64420         * modules/unistr/u32-strchr: New file.
64421         * lib/unistr/u8-strchr.c: New file.
64422         * lib/unistr/u16-strchr.c: New file.
64423         * lib/unistr/u32-strchr.c: New file.
64424
64425         * modules/unistr/u8-strcmp: New file.
64426         * modules/unistr/u16-strcmp: New file.
64427         * modules/unistr/u32-strcmp: New file.
64428         * lib/unistr/u8-strcmp.c: New file.
64429         * lib/unistr/u16-strcmp.c: New file.
64430         * lib/unistr/u32-strcmp.c: New file.
64431
64432         * modules/unistr/u8-strcpy: New file.
64433         * modules/unistr/u16-strcpy: New file.
64434         * modules/unistr/u32-strcpy: New file.
64435         * lib/unistr/u8-strcpy.c: New file.
64436         * lib/unistr/u16-strcpy.c: New file.
64437         * lib/unistr/u32-strcpy.c: New file.
64438         * lib/unistr/u-strcpy.h: New file.
64439
64440         * modules/unistr/u8-strcspn: New file.
64441         * modules/unistr/u16-strcspn: New file.
64442         * modules/unistr/u32-strcspn: New file.
64443         * lib/unistr/u8-strcspn.c: New file.
64444         * lib/unistr/u16-strcspn.c: New file.
64445         * lib/unistr/u32-strcspn.c: New file.
64446         * lib/unistr/u-strcspn.h: New file.
64447
64448         * modules/unistr/u8-strdup: New file.
64449         * modules/unistr/u16-strdup: New file.
64450         * modules/unistr/u32-strdup: New file.
64451         * lib/unistr/u8-strdup.c: New file.
64452         * lib/unistr/u16-strdup.c: New file.
64453         * lib/unistr/u32-strdup.c: New file.
64454         * lib/unistr/u-strdup.h: New file.
64455
64456         * modules/unistr/u8-strlen: New file.
64457         * modules/unistr/u16-strlen: New file.
64458         * modules/unistr/u32-strlen: New file.
64459         * lib/unistr/u8-strlen.c: New file.
64460         * lib/unistr/u16-strlen.c: New file.
64461         * lib/unistr/u32-strlen.c: New file.
64462         * lib/unistr/u-strlen.h: New file.
64463
64464         * modules/unistr/u8-strmblen: New file.
64465         * modules/unistr/u16-strmblen: New file.
64466         * modules/unistr/u32-strmblen: New file.
64467         * lib/unistr/u8-strmblen.c: New file.
64468         * lib/unistr/u16-strmblen.c: New file.
64469         * lib/unistr/u32-strmblen.c: New file.
64470
64471         * modules/unistr/u8-strmbtouc: New file.
64472         * modules/unistr/u16-strmbtouc: New file.
64473         * modules/unistr/u32-strmbtouc: New file.
64474         * lib/unistr/u8-strmbtouc.c: New file.
64475         * lib/unistr/u16-strmbtouc.c: New file.
64476         * lib/unistr/u32-strmbtouc.c: New file.
64477
64478         * modules/unistr/u8-strncat: New file.
64479         * modules/unistr/u16-strncat: New file.
64480         * modules/unistr/u32-strncat: New file.
64481         * lib/unistr/u8-strncat.c: New file.
64482         * lib/unistr/u16-strncat.c: New file.
64483         * lib/unistr/u32-strncat.c: New file.
64484         * lib/unistr/u-strncat.h: New file.
64485
64486         * modules/unistr/u8-strncmp: New file.
64487         * modules/unistr/u16-strncmp: New file.
64488         * modules/unistr/u32-strncmp: New file.
64489         * lib/unistr/u8-strncmp.c: New file.
64490         * lib/unistr/u16-strncmp.c: New file.
64491         * lib/unistr/u32-strncmp.c: New file.
64492
64493         * modules/unistr/u8-strncpy: New file.
64494         * modules/unistr/u16-strncpy: New file.
64495         * modules/unistr/u32-strncpy: New file.
64496         * lib/unistr/u8-strncpy.c: New file.
64497         * lib/unistr/u16-strncpy.c: New file.
64498         * lib/unistr/u32-strncpy.c: New file.
64499         * lib/unistr/u-strncpy.h: New file.
64500
64501         * modules/unistr/u8-strnlen: New file.
64502         * modules/unistr/u16-strnlen: New file.
64503         * modules/unistr/u32-strnlen: New file.
64504         * lib/unistr/u8-strnlen.c: New file.
64505         * lib/unistr/u16-strnlen.c: New file.
64506         * lib/unistr/u32-strnlen.c: New file.
64507         * lib/unistr/u-strnlen.h: New file.
64508
64509         * modules/unistr/u8-strpbrk: New file.
64510         * modules/unistr/u16-strpbrk: New file.
64511         * modules/unistr/u32-strpbrk: New file.
64512         * lib/unistr/u8-strpbrk.c: New file.
64513         * lib/unistr/u16-strpbrk.c: New file.
64514         * lib/unistr/u32-strpbrk.c: New file.
64515         * lib/unistr/u-strpbrk.h: New file.
64516
64517         * modules/unistr/u8-strrchr: New file.
64518         * modules/unistr/u16-strrchr: New file.
64519         * modules/unistr/u32-strrchr: New file.
64520         * lib/unistr/u8-strrchr.c: New file.
64521         * lib/unistr/u16-strrchr.c: New file.
64522         * lib/unistr/u32-strrchr.c: New file.
64523
64524         * modules/unistr/u8-strspn: New file.
64525         * modules/unistr/u16-strspn: New file.
64526         * modules/unistr/u32-strspn: New file.
64527         * lib/unistr/u8-strspn.c: New file.
64528         * lib/unistr/u16-strspn.c: New file.
64529         * lib/unistr/u32-strspn.c: New file.
64530         * lib/unistr/u-strspn.h: New file.
64531
64532         * modules/unistr/u8-strstr: New file.
64533         * modules/unistr/u16-strstr: New file.
64534         * modules/unistr/u32-strstr: New file.
64535         * lib/unistr/u8-strstr.c: New file.
64536         * lib/unistr/u16-strstr.c: New file.
64537         * lib/unistr/u32-strstr.c: New file.
64538         * lib/unistr/u-strstr.h: New file.
64539
64540         * modules/unistr/u8-strtok: New file.
64541         * modules/unistr/u16-strtok: New file.
64542         * modules/unistr/u32-strtok: New file.
64543         * lib/unistr/u8-strtok.c: New file.
64544         * lib/unistr/u16-strtok.c: New file.
64545         * lib/unistr/u32-strtok.c: New file.
64546         * lib/unistr/u-strtok.h: New file.
64547
64548         * modules/unistr/u8-uctomb: New file.
64549         * modules/unistr/u16-uctomb: New file.
64550         * modules/unistr/u32-uctomb: New file.
64551         * lib/unistr/u8-uctomb.c: New file.
64552         * lib/unistr/u16-uctomb.c: New file.
64553         * lib/unistr/u32-uctomb.c: New file.
64554
64555         * MODULES.html.sh (Unicode string functions): Add the new modules.
64556
64557 2007-01-08  Bruno Haible  <bruno@clisp.org>
64558
64559         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
64560         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
64561         subdirectories.
64562
64563 2007-01-08  Karl Berry  <karl@gnu.org>
64564
64565         * doc/error.texi: mention that main() fns must set program_name
64566         when progname is used.
64567
64568 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
64569
64570         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
64571         WCTYPE_H is empty, for the benefit of builds from non-distclean
64572         directories.  Problem reported by Eric Blake in
64573         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
64574
64575 2007-01-08  Bruno Haible  <bruno@clisp.org>
64576
64577         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
64578         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
64579         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
64580         PROVIDE_CANONICALIZE_FILENAME_MODE.
64581         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
64582
64583 2007-01-08  Bruno Haible  <bruno@clisp.org>
64584
64585         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
64586         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
64587         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
64588         * lib/fts.c: Likewise.
64589         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
64590
64591 2006-12-25  Bruno Haible  <bruno@clisp.org>
64592
64593         * modules/utf8-ucs4-safe: New file.
64594         * lib/utf8-ucs4-safe.h: New file.
64595         * lib/unistr/utf8-ucs4-safe.c: New file.
64596
64597         * modules/utf16-ucs4-safe: New file.
64598         * lib/utf16-ucs4-safe.h: New file.
64599         * lib/unistr/utf16-ucs4-safe.c: New file.
64600
64601         * MODULES.html.sh (Unicode string functions): Add the new modules.
64602
64603 2007-01-08  Bruno Haible  <bruno@clisp.org>
64604
64605         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
64606         (Depends-on): Add unitypes.
64607         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64608         (u8_mbtouc_aux): Move out to separate file.
64609         (u8_mbtouc): Use ucs4_t, uint8_t types.
64610         * lib/unistr/utf8-ucs4.c: New file.
64611
64612         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
64613         (Depends-on): Add unitypes.
64614         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64615         (u16_mbtouc_aux): Move out to separate file.
64616         (u16_mbtouc): Use ucs4_t, uint16_t types.
64617         * lib/unistr/utf16-ucs4.c: New file.
64618
64619         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
64620         (Depends-on): Add unitypes.
64621         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
64622         (u8_uctomb_aux): Move out to separate file.
64623         (u8_uctomb): Use ucs4_t, uint8_t types.
64624         * lib/unistr/ucs4-utf8.c: New file.
64625
64626         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
64627         (Depends-on): Add unitypes.
64628         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
64629         (u16_uctomb_aux): Move out to separate file.
64630         (u16_uctomb): Use ucs4_t, uint16_t types.
64631         * lib/unistr/ucs4-utf16.c: New file.
64632
64633 2006-12-25  Bruno Haible  <bruno@clisp.org>
64634
64635         * modules/unitypes: New file.
64636         * lib/unitypes.h: New file.
64637         * MODULES.html.sh (func_all_modules): New section "Unicode string
64638         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
64639         this section. Add unitypes.
64640
64641 2007-01-08  Bruno Haible  <bruno@clisp.org>
64642
64643         Avoid variable names that conflict with those from libtool.
64644         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
64645         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
64646         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
64647         library_names_spec to acl_library_names_spec, hardcode_* to
64648         acl_hardcode_*.
64649         Reported by Ralf Wildenhues.
64650
64651 2007-01-08  Bruno Haible  <bruno@clisp.org>
64652
64653         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
64654         definition.
64655         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
64656         definition.
64657         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
64658         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
64659         definition.
64660         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
64661         definition.
64662         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
64663         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
64664         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
64665         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
64666         definition.
64667         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
64668         definition.
64669         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
64670         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
64671         GC_USE_<algorithm>.
64672         * lib/gc-libgcrypt.c: Likewise.
64673         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
64674         * modules/gc-arctwo (configure.ac): Likewise.
64675         * modules/gc-des (configure.ac): Likewise.
64676         * modules/gc-hmac-md5 (configure.ac): Likewise.
64677         * modules/gc-hmac-sha1 (configure.ac): Likewise.
64678         * modules/gc-md2 (configure.ac): Likewise.
64679         * modules/gc-md4 (configure.ac): Likewise.
64680         * modules/gc-md5 (configure.ac): Likewise.
64681         * modules/gc-random (configure.ac): Likewise.
64682         * modules/gc-rijndael (configure.ac): Likewise.
64683         * modules/gc-sha1 (configure.ac): Likewise.
64684
64685 2007-01-08  Bruno Haible  <bruno@clisp.org>
64686
64687         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
64688         macro definition.
64689         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
64690         definition.
64691         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
64692         definition.
64693         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
64694         * modules/fcntl-safer (configure.ac): Likewise.
64695         * modules/fopen-safer (configure.ac): Likewise.
64696         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
64697         GNULIB_FWRITEERROR macro definition.
64698
64699 2007-01-08  Bruno Haible  <bruno@clisp.org>
64700
64701         * m4/gnulib-common.m4: New file.
64702         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
64703         (func_get_filelist): Add m4/gnulib-common.m4.
64704
64705 2007-01-08  Bruno Haible  <bruno@clisp.org>
64706
64707         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
64708         command.
64709
64710 2007-01-08  Jim Meyering  <jim@meyering.net>
64711
64712         Use a more robust test for a "can't happen" condition.
64713         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
64714         narrowed the st_size value.  Presuming the "can't happen" condition
64715         is true, that narrowing could conceivably convert an invalid st_size
64716         value into a valid one.  Instead, use a change based on Matthew
64717         Woehlke's original patch.
64718
64719         Slight readability improvement: use an assert-like macro
64720         in place of literal "abort ()" uses.
64721         * lib/fts.c (fts_assert): Define.
64722         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
64723         Use this macro instead of a bare 'abort'.
64724
64725 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
64726
64727         Don't worry about using IRIX 5.3's wctype.h broken definitions;
64728         simply work around them.
64729         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
64730         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
64731         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
64732         declaring.
64733         Don't bother to define as macros, since the standard doesn't require it.
64734         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
64735         longer worry about IRIX 5.3.
64736         (HAVE_WCTYPE_CTMP_BUG): Remove.
64737
64738 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64739
64740         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
64741         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
64742         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64743         Problems reported by Georg Schwarz for IRIX 5.3.
64744
64745         * gnulib-tool (autoconf_minversion): Take the maximum version number
64746         found, not the minimum.  Problem reported by James Youngman.
64747
64748 2007-01-03  Karl Berry  <karl@gnu.org>
64749
64750         * doc/error.texi: new file, explaining interaction with progname.
64751         * doc/gnulib.texi: include it.  Update copyright.
64752
64753 2007-01-03  Simon Josefsson  <simon@josefsson.org>
64754
64755         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
64756         AC_CANONICAL_HOST, to improve autobuild outputs.
64757
64758 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
64759             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64760
64761         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
64762         sockets, server sockets, and other file descriptors.  Count errors
64763         to compute the return value.  Reorder the code a bit to be easier
64764         to follow.  Don't set event bits that were not requested (except
64765         POLLERR and POLLHUP).
64766
64767 2007-01-01  Bruno Haible  <bruno@clisp.org>
64768
64769         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
64770
64771 2007-01-03  Jim Meyering  <jim@meyering.net>
64772
64773         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
64774
64775 2007-01-02  Bruno Haible  <bruno@clisp.org>
64776
64777         * modules/settime (Include): Require timespec.h.
64778         * modules/nanosleep (Include): Likewise.
64779
64780 2007-01-01  Bruno Haible  <bruno@clisp.org>
64781
64782         * gnulib-tool (func_emit_copyright_notice): Bump year.
64783         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
64784
64785 2007-01-01  Bruno Haible  <bruno@clisp.org>
64786
64787         Improve support for OpenBSD.
64788         * build-aux/config.rpath (libname_spec): Export.
64789         (library_names_spec): New variable. Export.
64790         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
64791         library_names_spec from the config.rpath output. Locate shared library
64792         through the name pattern in library_names_spec.
64793
64794 2007-01-01  Eric Blake  <ebb9@byu.net>
64795
64796         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
64797
64798 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
64799
64800         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
64801         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
64802         assume the C locale, and avoid an "eval" that could cause trouble.
64803         Problem with SORT reported by Bob Proulx.
64804
64805         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
64806         Define.  Trivial patch from Henning Nielsen Lund, originally
64807         sent to bug-grep@gnu.org today.
64808
64809 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64810
64811         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
64812         struct stat.  Problem reported by Henning Nielsen Lund.
64813         * lib/acl.c: Include acl.h first, to check interface.  Don't
64814         bother to include sys/types.h and sys/stat.h again.
64815
64816 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64817
64818         Import the following change from libc; problem reported by
64819         Sven Verdoolaege.
64820
64821         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
64822
64823         [BZ #1373]
64824         * lib/argp.h: Remove __NTH for __argp_usage inline function.
64825
64826 2006-12-28  Jim Meyering  <jim@meyering.net>
64827
64828         * build-aux/announce-gen: Do not assume that the package
64829         builds any of tar.gz, tar.bz2, and .xdelta files.
64830         Suggestion from Simon Josefsson.
64831
64832 2006-12-28  Simon Josefsson  <simon@josefsson.org>
64833
64834         * modules/announce-gen: New file.
64835
64836 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
64837
64838         * lib/mbchar.h: Just include <wctype.h>; the wctype module
64839         handles its gotchas now.
64840         * lib/mbswidth.c: Likewise.
64841         * lib/wcwidth.h: Likewise.
64842         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
64843         and iswcntrl; the wctype module does this stuff now.
64844         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64845         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64846         * modules/mbchar (Depends-on): Add wctype.
64847         * modules/mbswidth (Depends-on): Likewise.
64848         * modules/wcwidth (Depends-on): Likewise.
64849
64850 2006-12-27  Eric Blake  <ebb9@byu.net>
64851
64852         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
64853         module uses more than what <wctype.h> is required to provide.
64854
64855 2006-12-26  Eric Blake  <ebb9@byu.net>
64856
64857         * gnulib-tool (sed_extract_prog): Avoid space-tab.
64858
64859 2006-12-26  Eric Blake  <ebb9@byu.net>
64860
64861         * modules/absolute-header: New module.
64862         * modules/fcntl (Depends-on): Depend on it.
64863         * modules/inttypes (Depends-on): Likewise.
64864         * modules/stdint (Depends-on): Likewise.
64865         * modules/sys_stat (Depends-on): Likewise.
64866         * modules/wctype (Depends-on): Likewise.
64867         * MODULES.html.sh (Support for building libraries and
64868         executables): Document it.
64869
64870 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64871
64872         * gnulib-tool (SED): Remove, undoing previous change.
64873         The problem was that it broke coreutils on Solaris, because
64874         "sed --posix" leaked into a makefile.
64875         (sed): New alias, if 'alias' and GNU sed.
64876
64877 2006-12-24  Jim Meyering  <jim@meyering.net>
64878
64879         Work around an fchownat bug in glibc-2.4:
64880         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
64881         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
64882         in spite of the -P option.
64883         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
64884         New macros.
64885         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
64886         * modules/openat (Files): Add lib/fchownat.c.
64887         * lib/openat.c (fchownat): Don't define here.  Move to...
64888         * lib/fchownat.c: ...this new file.
64889
64890 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64891
64892         Fix bug reported by Bruno Haible in
64893         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
64894         where quotearg.c didn't compile on Mac OS X 10.2 because it
64895         lacks <wchar.h> and wint_t.
64896         * lib/wctype_.h (__wctype_wint_t): New type.
64897         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
64898         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
64899         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
64900         Arg is now of type __wctype_wint_t, not wint_t.
64901         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
64902         substitute HAVE_WINT_T.
64903         * modules/wctype (Files): Add m4/wint_t.m4.
64904         (wctype.h): Substitute HAVE_WINT_T.
64905
64906 2006-12-23  Bruno Haible  <bruno@clisp.org>
64907
64908         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
64909
64910 2006-12-23  Bruno Haible  <bruno@clisp.org>
64911
64912         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
64913         S_ISLNK.
64914         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
64915         mingw.
64916
64917 2006-12-22  Bruno Haible  <bruno@clisp.org>
64918
64919         * lib/copy-file.c: Include acl.h.
64920         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
64921         Close the file descriptors only after being done with copy_acl.
64922         * modules/copy-file (Depends-on): Add acl.
64923
64924 2006-12-22  Bruno Haible  <bruno@clisp.org>
64925
64926         * gnulib-tool (SED): New variable.
64927         Use $SED instead of sed everywhere.
64928
64929 2006-12-22  Bruno Haible  <bruno@clisp.org>
64930
64931         * modules/no-c++: New file.
64932         * m4/no-c++.m4: New file.
64933         * MODULES.html.sh (Support for building libraries and executables):
64934         Add no-c++.
64935
64936 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
64937
64938         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64939         Include <limits.h>, and use its INT_MAX to rewrite the
64940         j loop so that it does not overflow 'int'.  Problem reported by
64941         Ralf Wildenhues in
64942         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
64943         Play it safe by shifting left by 1 rather than multiplying by 2,
64944         as GCC is less likely to optimize this away when the value
64945         is signed (when it assumes overflow leads to undefined behavior).
64946         Also, don't assume time_t uses two's complement.
64947
64948 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
64949
64950         * MODULES.html.sh: New module wctype.
64951         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
64952         * lib/fnmatch.c: Don't bother to include <wchar.h> before
64953         <wctype.h>, since the new wctype module should fix this.
64954         * lib/quotearg.c: Include <wctype.h> unconditionally, since
64955         the wctype module should arrange for it.
64956         * lib/regex_internal.h: Likewise.
64957         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
64958         since the wctype module should handle this now.
64959         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
64960         * modules/fnmatch (Depends-on): Add wctype.
64961         * modules/quotearg (Depends-on): Likewise.
64962         * modules/regex (Depends-on): Likewise.
64963
64964 2006-12-19  Bruno Haible  <bruno@clisp.org>
64965
64966         * lib/strdup.h [C++]: Wrap definitions in extern "C".
64967         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
64968
64969 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64970
64971         * modules/savewd (Depends-on): Fix dependency on fcntl.
64972
64973 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64974
64975         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
64976         conforms to C99, rather than relying on the user's environment
64977         setting of STDINT_H.
64978
64979 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64980         and Eric Blake  <ebb9@byu.net>
64981
64982         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
64983         This is more consistent with the other defines here.
64984         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
64985         Port to z/OS.  Problem reported by Paul Gilmartin.
64986         Change local vars to use gl_ prefix rather than ac_.
64987         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
64988         with other defines.
64989         * modules/double-slash-root: New module.
64990         * modules/dirname (Files): Remove m4/double-slash-root.m4.
64991         (Depends-on): Add double-slash-root.
64992         * MODULES.html.sh (File system functions): Mention new module.
64993
64994 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
64995
64996         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
64997         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
64998         This is for the benefit of gzip, which doesn't do i18n.
64999
65000 2006-12-12  Jim Meyering  <jim@meyering.net>
65001
65002         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65003         Reported by Andreas Schwab <schwab@suse.de>.
65004
65005 2006-12-12  Bruno Haible  <bruno@clisp.org>
65006
65007         Merge these changes.
65008         2006-09-05  Bruno Haible  <bruno@clisp.org>
65009         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65010         iconv_alloc succeeded.
65011         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65012         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65013         test for " && dest " at the end - dest is always != NULL there. Call
65014         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65015         with 2xNULL arguments, also to flush the state storage. Handle the
65016         IRIX iconv behaviour. Realloc the final result, to throw away unused
65017         memory.
65018
65019 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65020
65021         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65022         and fchmodat unconditionally, since glibc 2.4 has them.
65023         Problem reported by Arkadiusz Miskiewicz.
65024
65025 2006-12-10  Bruno Haible  <bruno@clisp.org>
65026
65027         * gnulib-tool (func_import): Show the include files only for those
65028         modules that are copied and specified.
65029         Reported by Karl Berry.
65030
65031 2006-12-08  Jim Meyering  <jim@meyering.net>
65032
65033         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65034         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65035
65036         * build-aux/announce-gen: Add two new options, both optional:
65037         --bootstrap-tools=TOOL_LIST
65038               a comma-separated list of tools, e.g.,
65039               autoconf,automake,bison,gnulib
65040         --gnulib-snapshot-date=DATE
65041               if gnulib is in the bootstrap tool list,
65042               then report this as the snapshot date.
65043               If not specified, use the current date/time.
65044               If you specify a date here, be sure it's UTC.
65045
65046 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65047
65048         * tests/test-argp-2.sh: Fix test to match actual output.
65049         (func_compare): Fix sed script to be portable.
65050
65051 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65052
65053         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65054         workaround for this case.  It is not autoconfigured now; offhand
65055         it's hard to see how to autoconfigure it.
65056
65057 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65058
65059         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65060         a directory that is about to be chowned.  Such a directory's
65061         initial file permissions should permit the owner only and this
65062         should not be changed until after the chown, since the group and
65063         other bits would be incorrect if they granted permission before
65064         the chown.
65065
65066         Fix porting problem for iswctype reported by Georg Schwarz in:
65067         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65068         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65069         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65070         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65071         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65072
65073 2006-12-03  Jim Meyering  <jim@meyering.net>
65074
65075         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65076         p->fts_statp may not yet be defined.
65077         (fts_read): Instead, set it in the caller, once p->fts_statp is
65078         sure to be defined, and corresponds to a top-level directory.
65079         This bug made du -x fail.  Here's the coreutils test case:
65080         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65081         Reported by Mike Frysinger.
65082
65083 2006-12-01  Jim Meyering  <jim@meyering.net>
65084
65085         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65086         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65087         Reported by Simon Josefsson.
65088
65089 2006-11-30  Jim Meyering  <jim@meyering.net>
65090
65091         * m4/warning.m4: Use the all-permissive copyright notice
65092         recommended by RMS (rather than LGPL).
65093         * m4/vararrays.m4: Likewise.
65094         * m4/flexmember.m4: Likewise.
65095
65096 2006-11-29  Bruno Haible  <bruno@clisp.org>
65097
65098         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65099         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65100         using +=.
65101         Reported by Simon Josefsson <simon@josefsson.org>.
65102
65103 2006-11-28  James Youngman <jay@gnu.org>
65104
65105         * README: Advise users that they might find the bug-gnulib@gnu.org
65106         and autotools-announce@gnu.org mailing lists useful.
65107
65108 2006-11-28  Bruno Haible  <bruno@clisp.org>
65109
65110         * m4/ptrdiff_max.m4: Remove file.
65111
65112 2006-11-21  Bruno Haible  <bruno@clisp.org>
65113
65114         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65115         _AC_COMPUTE_INT.
65116         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65117         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65118         _AC_COMPUTE_INT.
65119         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65120         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65121         _AC_COMPUTE_INT.
65122         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65123
65124 2006-11-28  Jim Meyering  <jim@meyering.net>
65125
65126         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65127         warning from "gcc -Wshadow" about shadowing the builtin.
65128
65129 2006-11-27  Bruno Haible  <bruno@clisp.org>
65130
65131         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65132         _AC_COMPUTE_INT.
65133         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65134
65135 2006-11-27  Bruno Haible  <bruno@clisp.org>
65136             Paul Eggert  <eggert@cs.ucla.edu>
65137
65138         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65139
65140 2006-11-26  Bruno Haible  <bruno@clisp.org>
65141
65142         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65143         noinst_LTLIBRARIES.
65144
65145 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65146             Bruno Haible  <bruno@clisp.org>
65147
65148         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65149         if compiling with "gcc -ansi".
65150
65151 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65152
65153         Fix some incompatibilities with gcc -ansi -pedantic.
65154         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65155         if compiling pedantically with GCC, unless it's C99 or later.
65156         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65157         it mishandles gcc -ansi -pedantic as well.
65158         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65159         if gcc -pedantic.
65160         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65161         initializers for struct if -pedantic, unless it's C99 or later.
65162
65163 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65164
65165         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65166         Don't close an fd more than once. Identical atimes indicate
65167         success, not failure.
65168
65169 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65170
65171         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65172
65173 2006-11-23  Jim Meyering  <jim@meyering.net>
65174
65175         * build-aux/announce-gen: New file.  From coreutils.
65176
65177 2006-11-22  Jim Meyering  <jim@meyering.net>
65178
65179         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65180         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65181         (fts_read): Use a temporary to narrow the overused st_size member
65182         before using it in a switch statement.  Reported by Matthew Woehlke.
65183
65184         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65185         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65186
65187 2006-11-20  Bruno Haible  <bruno@clisp.org>
65188
65189         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65190         changequote instead of pairs of brackets.
65191         Reported by Andreas Schwab <schwab@suse.de>.
65192
65193 2006-11-21  Jim Meyering  <jim@meyering.net>
65194
65195         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65196         so as to remain compatible with older compilers.
65197         Patch from Michael Deutschmann.
65198
65199 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65200
65201         * MODULES.html.sh (File system functions): Add openat.
65202
65203         * lib/openat.h (rpl_fstatat): New macro, if
65204         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65205         (fstatat): Define to rpl_fstatat under the same conditions,
65206         unless COMPILING_FSTATAT.
65207         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65208         seems to have the bug.
65209         * lib/fstatat.c: New file.
65210         * modules/openat (Files): Add it.
65211
65212 2006-11-20  Bruno Haible  <bruno@clisp.org>
65213
65214         * Makefile: New file.
65215
65216 2006-11-20  Jim Meyering  <jim@meyering.net>
65217
65218         The beginnings of syntax-related checks for gnulib.
65219         * lib/Makefile: New file.
65220         * lib/t-idcache: New script.  Ensure that the two halves of
65221         idcache.c stay in sync.
65222
65223         * lib/idcache.c: Adjust comments in user- and group- portions to
65224         be more accurate, and to be consistent with one another.
65225
65226 2006-11-20  Jim Meyering  <jim@meyering.net>
65227
65228         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65229         continue using the flexible array member (thus, this module performs
65230         half as many malloc calls), with the addition that...
65231         (getgroup, getuser): Consistently record a non-match via an empty
65232         "name" string, and map an empty string match to a NULL return value.
65233         * modules/idcache (Depends-on): Re-add flexmember.
65234
65235         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65236         (getuidbyname, getgroup, getgidbyname): Likewise.
65237
65238         Use cleaner syntax: NULL rather than 0.
65239         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65240
65241 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65242
65243         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65244         It mishandled the case where the group was missing.
65245         Problem reported by Greg Schafer.
65246         * modules/idcache: Likewise.
65247
65248 2006-11-18  Jim Meyering  <jim@meyering.net>
65249
65250         * check-module (%exempt_header): Add exception for some
65251         conditionally-included headers.
65252
65253         * modules/i-ring (Depends-on): Add verify.
65254         (License): Change to LGPL.
65255
65256 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65257
65258         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65259         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65260         and inttostr.h.  Use snprintf rather than uinttostr, so that
65261         LGPLed code doesn't depend on GPLed.
65262
65263 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65264
65265         * modules/inline (License): Change from GPL to LGPL.
65266
65267 2006-11-17  Jim Meyering  <jim@meyering.net>
65268
65269         * modules/d-type (License): Switch to LGPL.
65270
65271 2006-11-15  Bruno Haible  <bruno@clisp.org>
65272
65273         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65274
65275 2006-11-15  Eric Blake  <ebb9@byu.net>
65276
65277         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65278         the module dependency.
65279
65280 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65281             Bruno Haible  <bruno@clisp.org>
65282
65283         * gnulib-tool (func_create_testdir): Add license consistency check.
65284
65285 2006-11-15  Eric Blake  <ebb9@byu.net>
65286
65287         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65288         random "(cached)" in configure output.
65289
65290 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65291
65292         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65293         test for conforming inttypes.h is both announced and cached.
65294
65295         * MODULES.html.sh (seen_modules, seen_files): New variables.
65296         (func_module): Rewrite to use a few less gnulib-tool and sed
65297         invocations.  Avoid a couple of quadratic algorithms for ...
65298         (missed_modules, missed_files): ... these, with ...
65299         (func_append, func_tmpdir): ... these new functions, from
65300         gnulib-tool.  Analogously, install traps for cleanup.
65301
65302         * tests/test-gc.c (main): Remove unused variables.
65303         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65304
65305 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65306
65307         * modules/inttostr (License): Change to LGPL.
65308
65309 2006-11-14  Eric Blake  <ebb9@byu.net>
65310
65311         * modules/tempname (License): Change to LGPL.
65312
65313 2006-11-14  Eric Blake  <ebb9@byu.net>
65314
65315         * doc/functions.texi (Function Portability): *printf functions on
65316         Cygwin now understand all POSIX size specifiers.
65317
65318 2006-11-14  Bruno Haible  <bruno@clisp.org>
65319
65320         * modules/c-ctype (License): Change to LGPL.
65321
65322 2006-11-12  Bruno Haible  <bruno@clisp.org>
65323
65324         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65325         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65326         for GNOME libraries, for which the include files are installed in
65327         subdirectories of $prefix/include.
65328
65329 2006-11-12  Bruno Haible  <bruno@clisp.org>
65330
65331         * m4/lib-link.m4: Require at least autoconf-2.54.
65332         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65333         name to underscores for the --with option.
65334
65335 2006-11-13  Bruno Haible  <bruno@clisp.org>
65336
65337         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65338         the tests directory.
65339         Reported by Ralf Wildenhues.
65340
65341 2006-11-13  Bruno Haible  <bruno@clisp.org>
65342
65343         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65344         (func_emit_initmacro_end): Undo the override here.
65345         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65346         Works around the famous automake error in coreutils.
65347
65348 2006-11-13  Eric Blake  <ebb9@byu.net>
65349
65350         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65351         element, not its node.
65352
65353 2006-11-12  Bruno Haible  <bruno@clisp.org>
65354
65355         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
65356         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
65357
65358 2006-11-12  Bruno Haible  <bruno@clisp.org>
65359
65360         * gnulib-tool: New option --local-symlink.
65361         (func_usage): Document it.
65362         (lsymbolic): New variable.
65363         (func_import, func_create_testdir): If --symlink was not specified,
65364         test whether --local-symlink was specified and the file comes from
65365         the local_gnulib_dir.
65366
65367 2006-11-12  Bruno Haible  <bruno@clisp.org>
65368
65369         * gnulib-tool (func_ln): New function.
65370         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
65371
65372 2006-11-12  Bruno Haible  <bruno@clisp.org>
65373
65374         Finish support for source files in subdirectories.
65375         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
65376         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
65377         AUTOMAKE_OPTIONS.
65378         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
65379
65380 2006-11-12  Bruno Haible  <bruno@clisp.org>
65381
65382         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65383         EXTRA_lib_SOURCES augmentation.
65384         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
65385
65386 2006-11-12  Jim Meyering  <jim@meyering.net>
65387
65388         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
65389         file descriptors.  This also averts a failure on systems with
65390         native openat support when a traversed directory lacks "x" access.
65391         * lib/fts_.h: Include "i-ring.h"
65392         (struct FTS) [fts_fd_ring]: New member.
65393         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
65394         (FCHDIR): Add parentheses.
65395         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
65396         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
65397         When descending, rather than simply closing the previous
65398         fts_cwd_fd value, push that file descriptor onto the ring.
65399         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
65400         (fts_open): Initialize the new fd_ring member.
65401         (fts_close): Clear the ring.
65402         (fts_safe_changedir): When possible, use our new fd_ring to skip
65403         the diropen and fstat and dev/ino comparison that would normally
65404         accompany a virtual `chdir ("..")'.
65405
65406         * modules/fts (Depends-on): Add i-ring.
65407         * modules/i-ring: New module.
65408         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
65409         * m4/i-ring.m4: New file.
65410
65411 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65412
65413         * gnulib-tool (func_create_testdir): Fix replacement of
65414         `build-aux' in configure.ac.  Run autotools in gltests
65415         subdirectory.
65416         (func_create_testdir, func_create_megatestdir, test): There is
65417         no need for '--force' in most autotool invocations in a new
65418         tree.  Actually fail the whole test if any of the tools, or the
65419         configure or make stages fail.
65420
65421         Sync from Automake.
65422         * build-aux/gnupload: Revert last change.  Add pointer to upload
65423         instructions of the GNU Maintenance Instructions.
65424         Suggestion by Karl Berry.
65425
65426 2006-11-10  Jim Meyering  <jim@meyering.net>
65427
65428         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
65429
65430 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65431
65432         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
65433         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
65434         (bind_textdomain_codeset) [! ENABLE_NLS]:
65435         Evaluate all the arguments.  That way, callers get compatible behavior
65436         if the arguments have side effects.  Also, it avoids some GCC
65437         diagnostics in some cases; Joel E. Denny reported problems when Bison
65438         was configured with --enable-gcc-warnigs.
65439
65440 2006-11-10  Jim Meyering  <jim@meyering.net>
65441
65442         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
65443         relevant options in CFLAGS (like -O, -fno-inline) are taken into
65444         account.
65445
65446 2006-11-10  Jim Meyering  <jim@meyering.net>
65447
65448         * modules/inline: New file/module.
65449         * modules/xalloc (Files): Remove m4/inline.m4.
65450         (Depends-on): Add inline, instead.
65451         * modules/oset: Likewise.
65452         * modules/list: Likewise.
65453
65454 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65455
65456         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65457         Problem reported by Matthew Woehlke.
65458
65459 2006-11-09  Bruno Haible  <bruno@clisp.org>
65460
65461         * lib/tempname.c (gen_tempname): Remove variant that invokes
65462         __gen_tempname.
65463         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65464         __gen_tempname.
65465
65466 2006-11-08  Bruno Haible  <bruno@clisp.org>
65467
65468         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65469         to 'yes' instead of 'cross-compiling'.
65470
65471 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65472
65473         * lib/quotearg.h (quotearg_free): New decl.
65474         * lib/quotearg.c (quotearg_free): New function.
65475         (slot0, nslots, slotvec0, slotvec):
65476         Now file-scope so that quotearg_free can get at them.
65477
65478 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65479
65480         Sync from Automake.
65481         * build-aux/gnupload: Add missing 'gnu' to example URL.
65482         Report by Karl Berry.
65483
65484 2006-11-08  Bruno Haible  <bruno@clisp.org>
65485
65486         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
65487         Suggested by Paul Eggert.
65488
65489 2006-11-08  Jim Meyering  <jim@meyering.net>
65490
65491         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
65492         It's already included if !_LIBC.
65493         (fts_safe_changedir): Add a comment.
65494
65495 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65496
65497         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
65498         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
65499         Matthew Woehlke.
65500
65501         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
65502         definitions up, to avoid colliding with change below.
65503         (static_inline) [HAVE_INLINE]: New macro.
65504         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
65505         Provide extern decls when !HAVE_INLINE.  Do not define unless
65506         static_inline is defined, either by us or by xmalloc.c.  Use
65507         static_inline rather than static inline.
65508         (XCALLOC): Optimize sizeof(T) = 1 case.
65509         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
65510
65511 2006-11-07  Bruno Haible  <bruno@clisp.org>
65512
65513         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
65514         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
65515         AC_C_INLINE.
65516         * modules/xalloc (Files): Add m4/inline.m4.
65517
65518 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65519
65520         * README: Fix typo.
65521         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
65522         (Miscellanous Notes): ...from this.
65523
65524 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65525
65526         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
65527         Mention that offsetof should be used instead of sizeof.
65528         From Bruno Haible.
65529
65530 2006-11-07  Bruno Haible  <bruno@clisp.org>
65531
65532         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
65533
65534 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65535
65536         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65537         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
65538         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65539         (gl_tree_add_before, gl_tree_add_after):
65540         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
65541         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
65542         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65543         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
65544         (gl_linked_add_after, gl_linked_add_at): Likewise.
65545         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
65546         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65547         (gl_tree_add_before, gl_tree_add_after): Likewise.
65548         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
65549         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
65550         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65551
65552 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65553
65554         * lib/gl_oset.h: Use C comment style, not C++ comment style.
65555
65556 2006-11-06  Bruno Haible  <bruno@clisp.org>
65557
65558         * m4/inline.m4: New file.
65559         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
65560         * modules/list (Files): Add m4/inline.m4.
65561         * modules/oset (Files): Likewise.
65562
65563 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65564
65565         * lib/idcache.c: Include <stddef.h>, for offsetof.
65566         (struct userid.name): Change from char * to a flexible array member.
65567         All uses changed.
65568         * modules/idcache (Depends-on): Add flexmember.
65569
65570         * MODULES.html.sh (Core language properties): New module flexmember.
65571         * modules/flexmember, m4/flexmember.m4: New files.
65572
65573         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
65574         inline functions that are identical with the old xnmalloc_inline,
65575         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
65576         that we can avoid some unnecessary integer multiplications and
65577         divisions in the common case where the element size is known at
65578         compile time.
65579         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
65580         needed.
65581         (xnboundedmalloc): Remove.
65582         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
65583         arguments, for consistency with rest of this header.
65584         (xcharalloc): Rewrite using XNMALLOC.
65585         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
65586         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
65587         versions have been moved to lib/xalloc.h and renamed to be the
65588         non-*_inline versions.
65589         (xmalloc, xrealloc): Implement without reference to the xnmalloc
65590         and xnrealloc functions, since those functions are now inline and
65591         now call us.
65592         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
65593         renaming described above.
65594         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
65595         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
65596         captures the dependency in AC_C_INLINE.
65597
65598         New module canonicalize-lgpl, proposed by Charles Wilson in
65599         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
65600         with a few small changes afterwards.
65601         * MODULES.html.sh (File system functions): New module
65602         canonicalize-lgpl.
65603         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
65604         and canonicalize_file_name.
65605         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
65606         * modules/canonicalize-lgpl: New files.
65607
65608 2006-11-05  Bruno Haible  <bruno@clisp.org>
65609
65610         * gnulib-tool (func_import, func_create_testdir): Create directories
65611         also for files in subdirectories of lib/.
65612
65613 2006-11-05  Bruno Haible  <bruno@clisp.org>
65614
65615         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
65616         ANSI C compliant.
65617
65618 2006-11-03  Bruno Haible  <bruno@clisp.org>
65619
65620         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65621         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
65622         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
65623         (xnboundedmalloc): New inline function.
65624         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
65625         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
65626         xmalloc.
65627         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
65628         xmalloc.
65629         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
65630         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
65631         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
65632         xmalloc.
65633         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65634         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
65635         xmalloc.
65636         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
65637         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65638         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
65639         xmalloc.
65640         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65641         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
65642         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65643         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
65644         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
65645         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
65646         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
65647
65648 2006-11-03  Bruno Haible  <bruno@clisp.org>
65649
65650         * lib/c-ctype.h [C++]: Define functions without name mangling.
65651         * lib/fwriteerror.h [C++]: Likewise.
65652         * lib/gcd.h [C++]: Likewise.
65653         * lib/linebreak.h [C++]: Likewise.
65654
65655 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65656
65657         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
65658         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
65659         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
65660         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65661         Check for functions and headers just once.
65662         Check for declaration of canonicalize_file_name.
65663         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
65664
65665 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65666
65667         * gnulib-tool (func_import): Fix typo in actioncmd.
65668
65669 2006-11-02  Bruno Haible  <bruno@clisp.org>
65670
65671         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
65672         newline sequence in the Makefile.am snippet as a space, like "make"
65673         does.
65674         Reported by Roger Persson <perrog@gmail.com>.
65675
65676 2006-11-01  Bruno Haible  <bruno@clisp.org>
65677
65678         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
65679         already declared in <string.h>.
65680         * lib/strcase.h (strncasecmp): Don't declare it if yes.
65681
65682 2006-11-01  Bruno Haible  <bruno@clisp.org>
65683
65684         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
65685         * lib/strcase.h: Include <string.h>.
65686         (strcasecmp): Define to rpl_strcasecmp here.
65687
65688 2006-11-01  Bruno Haible  <bruno@clisp.org>
65689
65690         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
65691
65692 2006-11-01  Eric Blake  <ebb9@byu.net>
65693
65694         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
65695
65696         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
65697
65698 2006-10-29  Bruno Haible  <bruno@clisp.org>
65699
65700         Make it compile in C++ mode.
65701         * lib/full-write.c (full_rw): Add a cast.
65702
65703 2006-11-01  Bruno Haible  <bruno@clisp.org>
65704
65705         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
65706         be POSIX compliant.
65707         Reported by Roger Persson <perrog@gmail.com>.
65708
65709 2006-11-01  Eric Blake  <ebb9@byu.net>
65710
65711         * lib/getopt_.h: Fix comments.
65712
65713 2006-10-31  Eric Blake  <ebb9@byu.net>
65714
65715         * modules/tmpdir (Depends-on): Add sys_stat.
65716         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
65717         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
65718         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
65719         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
65720         tempname.
65721
65722 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
65723
65724         Avoid some C++ diagnostics reported by Bruno Haible.
65725         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
65726         xmalloc.
65727         (quotearg_alloc): Use xcharalloc rather than xmalloc.
65728         (struct slotvec): Move to top level.
65729         (quotearg_n_options): Rewrite to avoid xmalloc.
65730         * lib/xalloc.h (xcharalloc): New function.
65731         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
65732         [defined __cplusplus]: Add function template that provides result
65733         type propagation.  This part of the change is from Bruno Haible.
65734
65735 2006-10-29  Bruno Haible  <bruno@clisp.org>
65736
65737         Make it compile in C++ mode.
65738         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
65739         * lib/strnlen1.c (strnlen1): Cast memchr result.
65740         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
65741         * lib/clean-temp.c (string_equals, string_hash): Add casts.
65742         (create_temp_dir): Rename local variable 'template'.
65743         (compile_csharp_using_sscli): Add cast.
65744         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
65745         * lib/findprog.c (find_in_path): Likewise.
65746         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
65747         * lib/wait-process.c (register_slave_subprocess): Likewise.
65748
65749 2006-10-22  Bruno Haible  <bruno@clisp.org>
65750
65751         * modules/tsearch: New file.
65752         * lib/tsearch.h: New file.
65753         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
65754         * m4/tsearch.m4: New file.
65755         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
65756
65757 2006-10-29  Eric Blake  <ebb9@byu.net>
65758
65759         * lib/arcfour.c: Assume config.h.
65760         * lib/arctwo.c: Likewise.
65761         * lib/base64.c: Likewise.
65762         * lib/check-version.c: Likewise.
65763         * lib/crc.c: Likewise.
65764         * lib/des.c: Likewise.
65765         * lib/gc-gnulib.c: Likewise.
65766         * lib/gc-libgcrypt.c: Likewise.
65767         * lib/gc-pbkdf2-sha1.c: Likewise.
65768         * lib/getaddrinfo.c: Likewise.
65769         * lib/getdelim.c: Likewise.
65770         * lib/getline.c: Likewise.
65771         * lib/hmac-md5.c: Likewise.
65772         * lib/hmac-sha1.c: Likewise.
65773         * lib/iconvme.c: Likewise.
65774         * lib/md2.c: Likewise.
65775         * lib/md4.c: Likewise.
65776         * lib/memxor.c: Likewise.
65777         * lib/read-file.c: Likewise.
65778         * lib/readline.c: Likewise.
65779         * lib/rijndael-alg-fst.c: Likewise.
65780         * lib/rijndael-api-fst.c: Likewise.
65781         * lib/xgetdomainname.c: Likewise.
65782
65783 2006-10-28  Eric Blake  <ebb9@byu.net>
65784
65785         * lib/xstrndup.c: Assume config.h.
65786
65787 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65788
65789         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
65790         stat-macros.h is now for our own macros, whereas stat_h is for
65791         macros in the <sys/stat.h> name space.
65792         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
65793         (STAT_MACROS_H): Remove.
65794         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
65795         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
65796         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
65797         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
65798         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
65799         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
65800         Move these macros to ...
65801         * lib/stat_.h: here.  Don't include stat-macros.h.
65802         * lib/canonicalize.c: Don't include stat-macros.h.
65803         * lib/chown.c: Likewise.
65804         * lib/euidaccess.c: Likewise.
65805         * lib/file-type.c: Likewise.
65806         * lib/filemode.c: Likewise.
65807         * lib/glob.c: Likewise.
65808         * lib/isapipe.c: Likewise.
65809         * lib/lchown.c: Likewise.
65810         * lib/lstat.c: Likewise.
65811         * lib/mkdir-p.c: Likewise.
65812         * lib/rmdir.c: Likewise.
65813         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
65814         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
65815         unless mkdir isn't declared, to speed up 'configure'.
65816         Always create sys/stat.h, since it's unlikely any real sys/stat.h
65817         would define all the S_* symbols.
65818         * modules/canonicalize (Depends-on):
65819         Depend on sys_stat, not stat-macros.
65820         * modules/chown: Likewise.
65821         * modules/euidaccess: Likewise.
65822         * modules/filemode: Likewise.
65823         * modules/file-type: Likewise.
65824         * modules/glob: Likewise.
65825         * modules/isapipe: Likewise.
65826         * modules/lchown: Likewise.
65827         * modules/lstat: Likewise.
65828         * modules/mkancesdirs: Likewise.
65829         * modules/rmdir: Likewise.
65830         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
65831         * modules/modechange: Likewise.
65832         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
65833         (configure.ac): Remove gl_STAT_MACROS.
65834         * modules/sys_stat (Depends-on): Remove stat-macros.
65835
65836 2006-10-27  Bruno Haible  <bruno@clisp.org>
65837
65838         * m4/signed.m4: Remove file.
65839         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
65840         invocation.
65841         * modules/vasnprintf (Files): Remove m4/signed.m4.
65842
65843 2006-10-27  Bruno Haible  <bruno@clisp.org>
65844
65845         Update to GNU gettext 0.16.
65846         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
65847         m4/inttypes-h.m4, m4/signed.m4.
65848         * m4/gettext.m4: Update to GNU gettext 0.16.
65849         * m4/intl.m4: New file, from GNU gettext.
65850         * m4/intldir.m4: New file, from GNU gettext.
65851         * config/srclist.txt: Update
65852
65853 2006-10-27  Eric Blake  <ebb9@byu.net>
65854
65855         * MODULES.html.sh: Document tempname.
65856         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
65857         dependencies.
65858         (Files): Move lib/tempname.c...
65859         * modules/tempname: ...to this new module.
65860         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
65861         (gl_PREREQ_TEMPNAME): Move...
65862         * m4/tempname.m4: ...to this new file.
65863         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
65864         * modules/sys_stat (Depends-on): Add stat-macros.
65865         * lib/stat_.h (includes): Pick up stat macros.
65866         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
65867         if stat macros are broken.
65868         * lib/tempname.c (includes): No need to include "stat-macros.h".
65869         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
65870         (direxists, __path_search) [!_LIBC]: Don't compile these in
65871         gnulib; the tmpdir module covers that.
65872         * lib/tempname.h: New file.
65873
65874 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
65875
65876         * COPYING: Explain how gnulib-tool converts licence headers.
65877         Almost all wording by Eric Blake.
65878
65879 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
65880
65881         * lib/mbchar.h (is_basic_table): Make read-only.
65882         * lib/mbchar.c (is_basic_table): Likewise.
65883         Reported by John Darrington.
65884
65885 2006-10-25  Bruno Haible  <bruno@clisp.org>
65886
65887         * lib/progname.h (set_program_name): Undefine before defining.
65888
65889 2006-10-25  Bruno Haible  <bruno@clisp.org>
65890
65891         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
65892         false for non-gcc C++ compilers.
65893         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
65894
65895 2006-10-24  Bruno Haible  <bruno@clisp.org>
65896
65897         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
65898         iconv implementations like Irix iconv.
65899
65900 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65901
65902         * modules/vararrays: New file.
65903         * m4/vararrays.m4: New file, taken from diffutils.
65904         * MODULES.html.sh: New module vararrays.
65905
65906 2006-10-24  Karl Berry  <karl@gnu.org>
65907
65908         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
65909         Don't call GNU Unix.
65910
65911 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65912
65913         * users.txt: Add Libtool.
65914
65915         Sync from Libtool:
65916
65917         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65918
65919         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
65920         to gnulib's policy of including config.h unconditionally.
65921
65922 2006-10-24  Bruno Haible  <bruno@clisp.org>
65923
65924         * modules/wcwidth (Files): Add m4/wint_t.m4.
65925         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
65926         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
65927
65928 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65929
65930         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
65931         to pacify GCC with some -W flags enabled.  Problem reported by
65932         Bruno Haible.
65933
65934 2006-10-24  Jim Meyering  <jim@meyering.net>
65935
65936         * MODULES.html.sh: Remove uinttostr.  It's not a module.
65937         Reported by Karl Berry.
65938
65939 2006-10-23  Bruno Haible  <bruno@clisp.org>
65940
65941         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
65942
65943 2006-10-24  Bruno Haible  <bruno@clisp.org>
65944
65945         * lib/gl_list.h: Use C comment style, not C++ comment style.
65946
65947 2006-10-23  Eric Blake  <ebb9@byu.net>
65948
65949         * lib/getaddrinfo.c (includes): Add missing include.
65950
65951 2006-10-23  Bruno Haible  <bruno@clisp.org>
65952             Paul Eggert  <eggert@cs.ucla.edu>
65953
65954         Ability to rename obstack_free.
65955         * lib/obstack.h (__obstack_free): New macro. Declare instead of
65956         obstack_free.
65957         (obstack_free): Invoke the __obstack_free macro.
65958         * lib/obstack.c (obstack_free): Use __obstack_free macro.
65959
65960 2006-10-23  Bruno Haible  <bruno@clisp.org>
65961             Paul Eggert  <eggert@cs.ucla.edu>
65962
65963         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
65964         __argc, __argv from the declaration. (They are defined as macros on
65965         mingw.)
65966
65967 2006-10-22  Bruno Haible  <bruno@clisp.org>
65968
65969         * doc/gnulib-intro.texi: New file.
65970         * doc/gnulib.texi: Include it.
65971
65972 2006-10-21  Bruno Haible  <bruno@clisp.org>
65973
65974         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
65975         "Introduction", "Miscellanous Notes", "Particular Modules".
65976
65977 2006-10-21  Bruno Haible  <bruno@clisp.org>
65978
65979         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65980         Change mostlyclean-local rule to avoid sh syntax error from bash
65981         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
65982
65983 2006-10-23  Jim Meyering  <jim@meyering.net>
65984
65985         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
65986         in place of snprintf.
65987
65988         * modules/inttostr (Files): Add lib/uinttostr.c.
65989         * lib/uinttostr.c (inttostr): New file/function.
65990         * lib/inttostr.h (uinttostr): Declare.
65991         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
65992         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65993         Add uinttostr.
65994         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
65995
65996 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65997
65998         * lib/canonicalize.c (ELOOP): Define if not already defined.
65999         Problem reported by Bruno Haible in
66000         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66001
66002 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66003
66004         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66005         Problem reported by Perry Smith and Ville Laurikari.
66006
66007         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66008         uses.
66009
66010 2006-10-19  Bruno Haible  <bruno@clisp.org>
66011
66012         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66013         for mingw.
66014
66015 2006-10-19  Bruno Haible  <bruno@clisp.org>
66016
66017         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66018         Needed for mingw.
66019
66020 2006-10-19  Bruno Haible  <bruno@clisp.org>
66021
66022         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66023
66024 2006-10-19  Bruno Haible  <bruno@clisp.org>
66025
66026         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66027         it.
66028
66029 2006-10-19  Bruno Haible  <bruno@clisp.org>
66030
66031         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66032         invocation.
66033
66034 2006-10-19  Bruno Haible  <bruno@clisp.org>
66035
66036         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66037         mountlist by default.
66038
66039 2006-10-16  Bruno Haible  <bruno@clisp.org>
66040
66041         * lib/c-strstr.c: Include c-strstr.h.
66042
66043 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66044
66045         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66046         in a slash.
66047
66048 2006-10-18  Bruno Haible  <bruno@clisp.org>
66049
66050         * lib/lock.h [C++]: Wrap definitions in extern "C".
66051
66052 2006-10-18  Bruno Haible  <bruno@clisp.org>
66053
66054         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66055         gl_LIBOBJS list.
66056
66057 2006-10-18  Bruno Haible  <bruno@clisp.org>
66058
66059         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66060
66061 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66062
66063         * lib/xstrtol.h: Include gettext.h.
66064         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66065         Problem reported by Eric Blake.
66066         * modules/xstrtol (Depends-on): Add gettext-h.
66067
66068 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66069
66070         * lib/strftime.c (advance): New macro.
66071         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66072         incomplete type, so you can't add 0 to it.  Problem and patch
66073         reported by Eelco Dolstra for dietlibc.
66074
66075 2006-10-18  Jim Meyering  <jim@meyering.net>
66076
66077         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66078         type for a local, and rename it: s/up/user_proc/.
66079
66080 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66081
66082         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66083         READ_UTMP_USER_PROCESS.
66084         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66085
66086 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66087
66088         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66089         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66090
66091 2006-10-17  Eric Blake  <ebb9@byu.net>
66092
66093         * lib/sigprocmask.c (sigprocmask): Fix typo.
66094
66095         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66096
66097         * modules/clean-temp (Makefile.am): Don't add to make output...
66098         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66099         config.h.
66100
66101 2006-10-17  Bruno Haible  <bruno@clisp.org>
66102
66103         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66104         differently if DEFAULT_TEXT_DOMAIN is set.
66105
66106 2006-10-16  Bruno Haible  <bruno@clisp.org>
66107
66108         * lib/clean-temp.c: Include fwriteerror.h.
66109
66110 2006-10-16  Bruno Haible  <bruno@clisp.org>
66111
66112         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66113
66114 2006-10-16  Bruno Haible  <bruno@clisp.org>
66115
66116         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66117         * lib/sigprocmask.h: Include <sys/types.h>.
66118         (sigset_t): Use the system's definition if present.
66119
66120 2006-10-17  Eric Blake  <ebb9@byu.net>
66121
66122         * lib/xvasprintf.c (includes): Assume config.h.
66123         * lib/xasprintf.c (includes): Likewise.
66124
66125 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66126
66127         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66128         at least as wide as intmax_t.
66129
66130 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66131
66132         (Imported from Automake.)
66133         * build-aux/gnupload: Update to version 1.1 of directive file.
66134
66135 2006-10-16  Eric Blake  <ebb9@byu.net>
66136
66137         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66138         match Automake 1.10a.
66139
66140 2006-10-14  Bruno Haible  <bruno@clisp.org>
66141
66142         * modules/sigprocmask: New file.
66143         * lib/sigprocmask.h: New file.
66144         * lib/sigprocmask.c: New file.
66145         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66146         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66147         request sigprocmask.o.
66148         (gl_PREREQ_SIGPROCMASK): New macro.
66149         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66150         (Depends-on): Add sigprocmask.
66151         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66152         gt_SIGNALBLOCKING. Test for 'raise' only once.
66153         * lib/fatal-signal.c: Include sigprocmask.h.
66154         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66155         unblock_fatal_signals): Define always.
66156         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66157         sigprocmask.
66158
66159 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66160
66161         Sync from Automake.
66162         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66163         which incorrectly sets the mode of an existing destination
66164         directory.  In some cases the unpatched install-sh could do the
66165         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66166         system.  We hope this is rare in practice, but it's clearly worth
66167         fixing.  Problem reported by Alex Unleashed in
66168         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66169         Also, don't bother to check for -m bugs unless we're using -m;
66170         suggested by Stepan Kasal.
66171
66172 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66173
66174         Sync from Automake.
66175         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66176         `-c' flag, so they appear at the same position as in %FASTDEP%
66177         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66178         which ignores unknown options only after the first non-option.
66179         Bug report against M4 by Nelson H. F. Beebe.
66180
66181 2006-10-13  Jim Meyering  <jim@meyering.net>
66182
66183         Fix a bug in yesterday's change.
66184         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66185         p->fts_statp->st_dev would be used uninitialized.
66186         Ensures that we always call fts_stat on the very first entry.
66187         Miklos Szeredi reported that find -xdev stopped working.
66188
66189 2006-10-12  Bruno Haible  <bruno@clisp.org>
66190
66191         * gnulib-tool (func_get_automake_snippet): Append an automatically
66192         computed EXTRA_DIST augmentation.
66193         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66194         * modules/alloca-opt (Makefile.am): Likewise.
66195         * modules/allocsa (Makefile.am): Likewise.
66196         * modules/arcfour (Makefile.am): Likewise.
66197         * modules/arctwo (Makefile.am): Likewise.
66198         * modules/argmatch (Makefile.am): Likewise.
66199         * modules/argz (Makefile.am): Likewise.
66200         * modules/atexit (Makefile.am): Likewise.
66201         * modules/backupfile (Makefile.am): Likewise.
66202         * modules/byteswap (Makefile.am): Likewise.
66203         * modules/c-strtod (Makefile.am): Likewise.
66204         * modules/c-strtold (Makefile.am): Likewise.
66205         * modules/calloc (Makefile.am): Likewise.
66206         * modules/canon-host (Makefile.am): Likewise.
66207         * modules/canonicalize (Makefile.am): Likewise.
66208         * modules/chdir-long (Makefile.am): Likewise.
66209         * modules/chdir-safer (Makefile.am): Likewise.
66210         * modules/check-version (Makefile.am): Likewise.
66211         * modules/chown (Makefile.am): Likewise.
66212         * modules/cloexec (Makefile.am): Likewise.
66213         * modules/close-stream (Makefile.am): Likewise.
66214         * modules/closeout (Makefile.am): Likewise.
66215         * modules/crc (Makefile.am): Likewise.
66216         * modules/csharpexec (Makefile.am): Likewise.
66217         * modules/cycle-check (Makefile.am): Likewise.
66218         * modules/des (Makefile.am): Likewise.
66219         * modules/dev-ino (Makefile.am): Likewise.
66220         * modules/dirfd (Makefile.am): Likewise.
66221         * modules/dirname (Makefile.am): Likewise.
66222         * modules/dup2 (Makefile.am): Likewise.
66223         * modules/eealloc (Makefile.am): Likewise.
66224         * modules/error (Makefile.am): Likewise.
66225         * modules/euidaccess (Makefile.am): Likewise.
66226         * modules/exclude (Makefile.am): Likewise.
66227         * modules/exitfail (Makefile.am): Likewise.
66228         * modules/fcntl-safer (Makefile.am): Likewise.
66229         * modules/fcntl (Makefile.am): Likewise.
66230         * modules/file-type (Makefile.am): Likewise.
66231         * modules/fileblocks (Makefile.am): Likewise.
66232         * modules/filemode (Makefile.am): Likewise.
66233         * modules/filenamecat (Makefile.am): Likewise.
66234         * modules/fnmatch (Makefile.am): Likewise.
66235         * modules/fopen-safer (Makefile.am): Likewise.
66236         * modules/fpending (Makefile.am): Likewise.
66237         * modules/fprintftime (Makefile.am): Likewise.
66238         * modules/free (Makefile.am): Likewise.
66239         * modules/fsusage (Makefile.am): Likewise.
66240         * modules/ftruncate (Makefile.am): Likewise.
66241         * modules/fts (Makefile.am): Likewise.
66242         * modules/gc-arcfour (Makefile.am): Likewise.
66243         * modules/gc-des (Makefile.am): Likewise.
66244         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66245         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66246         * modules/gc-md4 (Makefile.am): Likewise.
66247         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66248         * modules/gc-sha1 (Makefile.am): Likewise.
66249         * modules/gc (Makefile.am): Likewise.
66250         * modules/getaddrinfo (Makefile.am): Likewise.
66251         * modules/getcwd (Makefile.am): Likewise.
66252         * modules/getdelim (Makefile.am): Likewise.
66253         * modules/getdomainname (Makefile.am): Likewise.
66254         * modules/getgroups (Makefile.am): Likewise.
66255         * modules/gethostname (Makefile.am): Likewise.
66256         * modules/gethrxtime (Makefile.am): Likewise.
66257         * modules/getline (Makefile.am): Likewise.
66258         * modules/getloadavg (Makefile.am): Likewise.
66259         * modules/getlogin_r (Makefile.am): Likewise.
66260         * modules/getndelim2 (Makefile.am): Likewise.
66261         * modules/getopt (Makefile.am): Likewise.
66262         * modules/getpagesize (Makefile.am): Likewise.
66263         * modules/getpass-gnu (Makefile.am): Likewise.
66264         * modules/getpass (Makefile.am): Likewise.
66265         * modules/getsubopt (Makefile.am): Likewise.
66266         * modules/gettime (Makefile.am): Likewise.
66267         * modules/gettimeofday (Makefile.am): Likewise.
66268         * modules/getugroups (Makefile.am): Likewise.
66269         * modules/getusershell (Makefile.am): Likewise.
66270         * modules/glob (Makefile.am): Likewise.
66271         * modules/group-member (Makefile.am): Likewise.
66272         * modules/hard-locale (Makefile.am): Likewise.
66273         * modules/hash (Makefile.am): Likewise.
66274         * modules/hmac-md5 (Makefile.am): Likewise.
66275         * modules/hmac-sha1 (Makefile.am): Likewise.
66276         * modules/human (Makefile.am): Likewise.
66277         * modules/idcache (Makefile.am): Likewise.
66278         * modules/imaxabs (Makefile.am): Likewise.
66279         * modules/imaxdiv (Makefile.am): Likewise.
66280         * modules/inet_ntop (Makefile.am): Likewise.
66281         * modules/inet_pton (Makefile.am): Likewise.
66282         * modules/intprops (Makefile.am): Likewise.
66283         * modules/inttostr (Makefile.am): Likewise.
66284         * modules/inttypes (Makefile.am): Likewise.
66285         * modules/isapipe (Makefile.am): Likewise.
66286         * modules/javaversion (Makefile.am): Likewise.
66287         * modules/lchmod (Makefile.am): Likewise.
66288         * modules/lchown (Makefile.am): Likewise.
66289         * modules/localcharset (Makefile.am): Likewise.
66290         * modules/long-options (Makefile.am): Likewise.
66291         * modules/lstat (Makefile.am): Likewise.
66292         * modules/malloc (Makefile.am): Likewise.
66293         * modules/mathl (Makefile.am): Likewise.
66294         * modules/mbchar (Makefile.am): Likewise.
66295         * modules/md2 (Makefile.am): Likewise.
66296         * modules/md4 (Makefile.am): Likewise.
66297         * modules/md5 (Makefile.am): Likewise.
66298         * modules/memcasecmp (Makefile.am): Likewise.
66299         * modules/memchr (Makefile.am): Likewise.
66300         * modules/memcmp (Makefile.am): Likewise.
66301         * modules/memcoll (Makefile.am): Likewise.
66302         * modules/memcpy (Makefile.am): Likewise.
66303         * modules/memmem (Makefile.am): Likewise.
66304         * modules/memmove (Makefile.am): Likewise.
66305         * modules/mempcpy (Makefile.am): Likewise.
66306         * modules/memrchr (Makefile.am): Likewise.
66307         * modules/memset (Makefile.am): Likewise.
66308         * modules/memxor (Makefile.am): Likewise.
66309         * modules/mkancesdirs (Makefile.am): Likewise.
66310         * modules/mkdir-p (Makefile.am): Likewise.
66311         * modules/mkdir (Makefile.am): Likewise.
66312         * modules/mkdtemp (Makefile.am): Likewise.
66313         * modules/mkstemp (Makefile.am): Likewise.
66314         * modules/mktime (Makefile.am): Likewise.
66315         * modules/modechange (Makefile.am): Likewise.
66316         * modules/mountlist (Makefile.am): Likewise.
66317         * modules/nanosleep (Makefile.am): Likewise.
66318         * modules/obstack (Makefile.am): Likewise.
66319         * modules/openat (Makefile.am): Likewise.
66320         * modules/pagealign_alloc (Makefile.am): Likewise.
66321         * modules/pathmax (Makefile.am): Likewise.
66322         * modules/physmem (Makefile.am): Likewise.
66323         * modules/poll (Makefile.am): Likewise.
66324         * modules/posixtm (Makefile.am): Likewise.
66325         * modules/posixver (Makefile.am): Likewise.
66326         * modules/putenv (Makefile.am): Likewise.
66327         * modules/quote (Makefile.am): Likewise.
66328         * modules/quotearg (Makefile.am): Likewise.
66329         * modules/raise (Makefile.am): Likewise.
66330         * modules/read-file (Makefile.am): Likewise.
66331         * modules/readline (Makefile.am): Likewise.
66332         * modules/readlink (Makefile.am): Likewise.
66333         * modules/readtokens (Makefile.am): Likewise.
66334         * modules/readutmp (Makefile.am): Likewise.
66335         * modules/realloc (Makefile.am): Likewise.
66336         * modules/regex (Makefile.am): Likewise.
66337         * modules/rename-dest-slash (Makefile.am): Likewise.
66338         * modules/rename (Makefile.am): Likewise.
66339         * modules/rijndael (Makefile.am): Likewise.
66340         * modules/rmdir (Makefile.am): Likewise.
66341         * modules/rpmatch (Makefile.am): Likewise.
66342         * modules/safe-read (Makefile.am): Likewise.
66343         * modules/safe-write (Makefile.am): Likewise.
66344         * modules/same-inode (Makefile.am): Likewise.
66345         * modules/same (Makefile.am): Likewise.
66346         * modules/save-cwd (Makefile.am): Likewise.
66347         * modules/savedir (Makefile.am): Likewise.
66348         * modules/setenv (Makefile.am): Likewise.
66349         * modules/settime (Makefile.am): Likewise.
66350         * modules/sha1 (Makefile.am): Likewise.
66351         * modules/sig2str (Makefile.am): Likewise.
66352         * modules/snprintf (Makefile.am): Likewise.
66353         * modules/stat-macros (Makefile.am): Likewise.
66354         * modules/stat-time (Makefile.am): Likewise.
66355         * modules/stdbool (Makefile.am): Likewise.
66356         * modules/stdint (Makefile.am): Likewise.
66357         * modules/stdlib-safer (Makefile.am): Likewise.
66358         * modules/stpcpy (Makefile.am): Likewise.
66359         * modules/stpncpy (Makefile.am): Likewise.
66360         * modules/strcase (Makefile.am): Likewise.
66361         * modules/strcasestr (Makefile.am): Likewise.
66362         * modules/strchrnul (Makefile.am): Likewise.
66363         * modules/strcspn (Makefile.am): Likewise.
66364         * modules/strdup (Makefile.am): Likewise.
66365         * modules/strerror (Makefile.am): Likewise.
66366         * modules/strftime (Makefile.am): Likewise.
66367         * modules/strndup (Makefile.am): Likewise.
66368         * modules/strnlen (Makefile.am): Likewise.
66369         * modules/strpbrk (Makefile.am): Likewise.
66370         * modules/strsep (Makefile.am): Likewise.
66371         * modules/strstr (Makefile.am): Likewise.
66372         * modules/strtod (Makefile.am): Likewise.
66373         * modules/strtoimax (Makefile.am): Likewise.
66374         * modules/strtok_r (Makefile.am): Likewise.
66375         * modules/strtol (Makefile.am): Likewise.
66376         * modules/strtoll (Makefile.am): Likewise.
66377         * modules/strtoul (Makefile.am): Likewise.
66378         * modules/strtoull (Makefile.am): Likewise.
66379         * modules/strtoumax (Makefile.am): Likewise.
66380         * modules/strverscmp (Makefile.am): Likewise.
66381         * modules/sys_socket (Makefile.am): Likewise.
66382         * modules/sys_stat (Makefile.am): Likewise.
66383         * modules/sysexits (Makefile.am): Likewise.
66384         * modules/time_r (Makefile.am): Likewise.
66385         * modules/timegm (Makefile.am): Likewise.
66386         * modules/timespec (Makefile.am): Likewise.
66387         * modules/tmpfile-safer (Makefile.am): Likewise.
66388         * modules/trim (Makefile.am): Likewise.
66389         * modules/unistd-safer (Makefile.am): Likewise.
66390         * modules/unlinkdir (Makefile.am): Likewise.
66391         * modules/unlocked-io (Makefile.am): Likewise.
66392         * modules/userspec (Makefile.am): Likewise.
66393         * modules/utime (Makefile.am): Likewise.
66394         * modules/utimecmp (Makefile.am): Likewise.
66395         * modules/utimens (Makefile.am): Likewise.
66396         * modules/vasnprintf (Makefile.am): Likewise.
66397         * modules/vasprintf (Makefile.am): Likewise.
66398         * modules/vsnprintf (Makefile.am): Likewise.
66399         * modules/xalloc (Makefile.am): Likewise.
66400         * modules/xgetcwd (Makefile.am): Likewise.
66401         * modules/xnanosleep (Makefile.am): Likewise.
66402         * modules/xreadlink (Makefile.am): Likewise.
66403         * modules/xstrtod (Makefile.am): Likewise.
66404         * modules/xstrtol (Makefile.am): Likewise.
66405         * modules/xstrtold (Makefile.am): Likewise.
66406         * modules/yesno (Makefile.am): Likewise.
66407         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
66408
66409 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66410
66411         * modules/error (Makefile.am): Distribute files through
66412         EXTRA_DIST, not lib_SOURCES.
66413
66414 2006-10-12  Eric Blake  <ebb9@byu.net>
66415
66416         * modules/error (Makefile.am): Distribute files in /lib.
66417         * modules/obstack (Makefile.am): Likewise.
66418
66419 2006-10-12  Bruno Haible  <bruno@clisp.org>
66420
66421         * modules/acl (Makefile.am): Distribute all files in lib/ through
66422         EXTRA_DIST.
66423         * modules/arcfour (Makefile.am): Likewise.
66424         * modules/arctwo (Makefile.am): Likewise.
66425         * modules/argmatch (Makefile.am): Likewise.
66426         * modules/argz (Makefile.am): Likewise.
66427         * modules/atexit (Makefile.am): Likewise.
66428         * modules/backupfile (Makefile.am): Likewise.
66429         * modules/c-strtod (Makefile.am): Likewise.
66430         * modules/c-strtold (Makefile.am): Likewise.
66431         * modules/calloc (Makefile.am): Likewise.
66432         * modules/canon-host (Makefile.am): Likewise.
66433         * modules/canonicalize (Makefile.am): Likewise.
66434         * modules/chdir-long (Makefile.am): Likewise.
66435         * modules/chdir-safer (Makefile.am): Likewise.
66436         * modules/check-version (Makefile.am): Likewise.
66437         * modules/chown (Makefile.am): Likewise.
66438         * modules/cloexec (Makefile.am): Likewise.
66439         * modules/close-stream (Makefile.am): Likewise.
66440         * modules/closeout (Makefile.am): Likewise.
66441         * modules/crc (Makefile.am): Likewise.
66442         * modules/cycle-check (Makefile.am): Likewise.
66443         * modules/des (Makefile.am): Likewise.
66444         * modules/dirfd (Makefile.am): Likewise.
66445         * modules/dirname (Makefile.am): Likewise.
66446         * modules/dup2 (Makefile.am): Likewise.
66447         * modules/euidaccess (Makefile.am): Likewise.
66448         * modules/exclude (Makefile.am): Likewise.
66449         * modules/exitfail (Makefile.am): Likewise.
66450         * modules/fcntl-safer (Makefile.am): Likewise.
66451         * modules/file-type (Makefile.am): Likewise.
66452         * modules/fileblocks (Makefile.am): Likewise.
66453         * modules/filemode (Makefile.am): Likewise.
66454         * modules/filenamecat (Makefile.am): Likewise.
66455         * modules/fnmatch (Makefile.am): Likewise.
66456         * modules/fopen-safer (Makefile.am): Likewise.
66457         * modules/fpending (Makefile.am): Likewise.
66458         * modules/fprintftime (Makefile.am): Likewise.
66459         * modules/free (Makefile.am): Likewise.
66460         * modules/fsusage (Makefile.am): Likewise.
66461         * modules/ftruncate (Makefile.am): Likewise.
66462         * modules/fts (Makefile.am): Likewise.
66463         * modules/gc (Makefile.am): Likewise.
66464         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66465         * modules/getaddrinfo (Makefile.am): Likewise.
66466         * modules/getcwd (Makefile.am): Likewise.
66467         * modules/getdelim (Makefile.am): Likewise.
66468         * modules/getdomainname (Makefile.am): Likewise.
66469         * modules/getgroups (Makefile.am): Likewise.
66470         * modules/gethostname (Makefile.am): Likewise.
66471         * modules/gethrxtime (Makefile.am): Likewise.
66472         * modules/getline (Makefile.am): Likewise.
66473         * modules/getloadavg (Makefile.am): Likewise.
66474         * modules/getlogin_r (Makefile.am): Likewise.
66475         * modules/getopt (Makefile.am): Likewise.
66476         * modules/getpass (Makefile.am): Likewise.
66477         * modules/getpass-gnu (Makefile.am): Likewise.
66478         * modules/getsubopt (Makefile.am): Likewise.
66479         * modules/gettime (Makefile.am): Likewise.
66480         * modules/gettimeofday (Makefile.am): Likewise.
66481         * modules/getugroups (Makefile.am): Likewise.
66482         * modules/getusershell (Makefile.am): Likewise.
66483         * modules/glob (Makefile.am): Likewise.
66484         * modules/group-member (Makefile.am): Likewise.
66485         * modules/hard-locale (Makefile.am): Likewise.
66486         * modules/hash (Makefile.am): Likewise.
66487         * modules/hmac-md5 (Makefile.am): Likewise.
66488         * modules/hmac-sha1 (Makefile.am): Likewise.
66489         * modules/human (Makefile.am): Likewise.
66490         * modules/idcache (Makefile.am): Likewise.
66491         * modules/imaxabs (Makefile.am): Likewise.
66492         * modules/imaxdiv (Makefile.am): Likewise.
66493         * modules/inet_ntop (Makefile.am): Likewise.
66494         * modules/inet_pton (Makefile.am): Likewise.
66495         * modules/inttostr (Makefile.am): Likewise.
66496         * modules/isapipe (Makefile.am): Likewise.
66497         * modules/lchown (Makefile.am): Likewise.
66498         * modules/long-options (Makefile.am): Likewise.
66499         * modules/lstat (Makefile.am): Likewise.
66500         * modules/malloc (Makefile.am): Likewise.
66501         * modules/mathl (Makefile.am): Likewise.
66502         * modules/mbchar (Makefile.am): Likewise.
66503         * modules/md2 (Makefile.am): Likewise.
66504         * modules/md4 (Makefile.am): Likewise.
66505         * modules/md5 (Makefile.am): Likewise.
66506         * modules/memcasecmp (Makefile.am): Likewise.
66507         * modules/memchr (Makefile.am): Likewise.
66508         * modules/memcmp (Makefile.am): Likewise.
66509         * modules/memcoll (Makefile.am): Likewise.
66510         * modules/memcpy (Makefile.am): Likewise.
66511         * modules/memmem (Makefile.am): Likewise.
66512         * modules/memmove (Makefile.am): Likewise.
66513         * modules/mempcpy (Makefile.am): Likewise.
66514         * modules/memrchr (Makefile.am): Likewise.
66515         * modules/memset (Makefile.am): Likewise.
66516         * modules/memxor (Makefile.am): Likewise.
66517         * modules/mkancesdirs (Makefile.am): Likewise.
66518         * modules/mkdir (Makefile.am): Likewise.
66519         * modules/mkdir-p (Makefile.am): Likewise.
66520         * modules/mkdtemp (Makefile.am): Likewise.
66521         * modules/mkstemp (Makefile.am): Likewise.
66522         * modules/mktime (Makefile.am): Likewise.
66523         * modules/modechange (Makefile.am): Likewise.
66524         * modules/mountlist (Makefile.am): Likewise.
66525         * modules/nanosleep (Makefile.am): Likewise.
66526         * modules/openat (Makefile.am): Likewise.
66527         * modules/pagealign_alloc (Makefile.am): Likewise.
66528         * modules/physmem (Makefile.am): Likewise.
66529         * modules/poll (Makefile.am): Likewise.
66530         * modules/posixtm (Makefile.am): Likewise.
66531         * modules/posixver (Makefile.am): Likewise.
66532         * modules/putenv (Makefile.am): Likewise.
66533         * modules/quote (Makefile.am): Likewise.
66534         * modules/quotearg (Makefile.am): Likewise.
66535         * modules/raise (Makefile.am): Likewise.
66536         * modules/read-file (Makefile.am): Likewise.
66537         * modules/readline (Makefile.am): Likewise.
66538         * modules/readlink (Makefile.am): Likewise.
66539         * modules/readtokens (Makefile.am): Likewise.
66540         * modules/readutmp (Makefile.am): Likewise.
66541         * modules/realloc (Makefile.am): Likewise.
66542         * modules/regex (Makefile.am): Likewise.
66543         * modules/rename (Makefile.am): Likewise.
66544         * modules/rename-dest-slash (Makefile.am): Likewise.
66545         * modules/rijndael (Makefile.am): Likewise.
66546         * modules/rmdir (Makefile.am): Likewise.
66547         * modules/rpmatch (Makefile.am): Likewise.
66548         * modules/safe-read (Makefile.am): Likewise.
66549         * modules/safe-write (Makefile.am): Likewise.
66550         * modules/same (Makefile.am): Likewise.
66551         * modules/save-cwd (Makefile.am): Likewise.
66552         * modules/savedir (Makefile.am): Likewise.
66553         * modules/setenv (Makefile.am): Likewise.
66554         * modules/settime (Makefile.am): Likewise.
66555         * modules/sha1 (Makefile.am): Likewise.
66556         * modules/sig2str (Makefile.am): Likewise.
66557         * modules/snprintf (Makefile.am): Likewise.
66558         * modules/stdlib-safer (Makefile.am): Likewise.
66559         * modules/stpcpy (Makefile.am): Likewise.
66560         * modules/stpncpy (Makefile.am): Likewise.
66561         * modules/strcase (Makefile.am): Likewise.
66562         * modules/strcasestr (Makefile.am): Likewise.
66563         * modules/strchrnul (Makefile.am): Likewise.
66564         * modules/strcspn (Makefile.am): Likewise.
66565         * modules/strdup (Makefile.am): Likewise.
66566         * modules/strerror (Makefile.am): Likewise.
66567         * modules/strftime (Makefile.am): Likewise.
66568         * modules/strndup (Makefile.am): Likewise.
66569         * modules/strnlen (Makefile.am): Likewise.
66570         * modules/strpbrk (Makefile.am): Likewise.
66571         * modules/strsep (Makefile.am): Likewise.
66572         * modules/strstr (Makefile.am): Likewise.
66573         * modules/strtod (Makefile.am): Likewise.
66574         * modules/strtoimax (Makefile.am): Likewise.
66575         * modules/strtok_r (Makefile.am): Likewise.
66576         * modules/strtol (Makefile.am): Likewise.
66577         * modules/strtoll (Makefile.am): Likewise.
66578         * modules/strtoul (Makefile.am): Likewise.
66579         * modules/strtoull (Makefile.am): Likewise.
66580         * modules/strtoumax (Makefile.am): Likewise.
66581         * modules/strverscmp (Makefile.am): Likewise.
66582         * modules/time_r (Makefile.am): Likewise.
66583         * modules/timegm (Makefile.am): Likewise.
66584         * modules/tmpfile-safer (Makefile.am): Likewise.
66585         * modules/unistd-safer (Makefile.am): Likewise.
66586         * modules/unlinkdir (Makefile.am): Likewise.
66587         * modules/userspec (Makefile.am): Likewise.
66588         * modules/utime (Makefile.am): Likewise.
66589         * modules/utimecmp (Makefile.am): Likewise.
66590         * modules/utimens (Makefile.am): Likewise.
66591         * modules/vasnprintf (Makefile.am): Likewise.
66592         * modules/vasprintf (Makefile.am): Likewise.
66593         * modules/vsnprintf (Makefile.am): Likewise.
66594         * modules/xalloc (Makefile.am): Likewise.
66595         * modules/xgetcwd (Makefile.am): Likewise.
66596         * modules/xnanosleep (Makefile.am): Likewise.
66597         * modules/xreadlink (Makefile.am): Likewise.
66598         * modules/xstrtod (Makefile.am): Likewise.
66599         * modules/xstrtol (Makefile.am): Likewise.
66600         * modules/xstrtold (Makefile.am): Likewise.
66601         * modules/yesno (Makefile.am): Likewise.
66602
66603 2006-10-12  Jim Meyering  <jim@meyering.net>
66604
66605         * m4/getloadavg.m4: Revert the change below.
66606
66607         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
66608         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
66609         fail with a symlink, which is what coreutils' ./bootstrap now
66610         creates by default.
66611
66612 2006-10-12  Bruno Haible  <bruno@clisp.org>
66613
66614         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
66615         mingw.
66616         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
66617         MSVC and mingw explicitly.
66618
66619 2006-10-11  Simon Josefsson  <jas@extundo.com>
66620             Bruno Haible  <bruno@clisp.org>
66621
66622         Add support for multiple gnulib-tool invocations in the scope of a
66623         single configure.ac file.
66624         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
66625         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
66626         with the same contents as the _LIBADD variable.
66627         (func_emit_initmacro_start, func_emit_initmacro_end,
66628         func_emit_initmacro_done): New functions.
66629         (func_import, func_create_testdir): Invoke them. Allow the identifiers
66630         gl_LIBOBJS and gl_LTLIBOBJS.
66631
66632 2006-10-11  Bruno Haible  <bruno@clisp.org>
66633
66634         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
66635         (func_create_testdir): Don't create po/Makefile.am, don't invoke
66636         autoreconf. Instead, invoke autopoint explicitly but move back the
66637         *.m4 files from gnulib.
66638
66639 2006-10-11  Bruno Haible  <bruno@clisp.org>
66640
66641         * gnulib-tool (func_usage): Make module names after --create-testdir
66642         optional.
66643         (func_create_testdir): If no module was specified, use nearly all
66644         modules.
66645
66646 2006-10-12  Jim Meyering  <jim@meyering.net>
66647
66648         Big performance improvement for fts-based tools that use FTS_NOSTAT.
66649         Avoid spurious inode-mismatch problems on non-POSIX file systems.
66650         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
66651         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
66652         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
66653         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
66654         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
66655         (fts_set_stat_required): New function.
66656         (fts_open): Defer the calls to fts_stat, if possible or requested.
66657         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
66658         into fts_stat itself.
66659         (fts_read): Perform any required (deferred) fts_stat call.
66660         (fts_build): Likewise, for the directory we're about to open and read.
66661         In the readdir loop, carefully decide whether each entry will require
66662         an eventual call to fts_stat, using dirent.d_type info if available.
66663         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
66664         a command line argument into this function.  Update all callers.
66665         Map a return value of FTS_DOT to FTS_D for a command line argument.
66666         * modules/fts (Depends-on): Add d-type.  Alphabetize.
66667         Thanks to Miklos Szeredi for his tenacity and for the initial
66668         bug report about "find" failing on a FUSE-based file system.
66669
66670         * lib/fts.c (fts_open): Use consistent indentation.
66671
66672 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66673
66674         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
66675         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
66676         reported by Jim Meyering.  All uses of cache variables renamed
66677         to match Autoconf's.
66678         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
66679         the other one.
66680
66681         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
66682         Fix misspelling in diagnostic.
66683
66684 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66685
66686         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
66687         defined.  Problem reported by Matthew Woehlke.
66688
66689         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
66690         Add support for Tandem NonStop R series.
66691         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
66692         Use new macro.
66693
66694         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
66695         (has_trailing_slash): Omit size arg; all callers changed.
66696         Omit 'inline', since it doesn't help performance and we'd
66697         need to configure it.
66698         Don't count //, ///, etc. as having a trailing slash.
66699         As a side effect, this removes a C99ism reported by Matthew Woehlke.
66700         (rpl_rename_dest_slash): On failure, use rename's errno rather
66701         than (in some cases) an incorrect or junk errno.
66702         Simplify code by removing need to compute length; this does
66703         cause it to make two passes instead of one over the file name,
66704         but it's worth it.
66705
66706         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
66707         change, since Autoconf's version may no longer be appropriate now
66708         that we are using CVS Autoconf's version.  Add support for Tandem.
66709
66710 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66711             Bruno Haible  <bruno@clisp.org>
66712
66713         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
66714         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
66715         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
66716         gl_AC_TYPE_LONG_LONG.
66717
66718         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
66719         instead of HAVE_LONG_LONG.
66720         * lib/printf-args.c (printf_fetchargs): Likewise.
66721         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
66722         * lib/vasnprintf.c (VASNPRINTF): Likewise.
66723         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
66724         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
66725         gl_AC_TYPE_LONG_LONG.
66726
66727 2006-10-11  Bruno Haible  <bruno@clisp.org>
66728
66729         * m4/longlong.m4: Add comments.
66730         * m4/ulonglong.m4: Likewise.
66731
66732 2006-10-10  Bruno Haible  <bruno@clisp.org>
66733
66734         Make it possible to #define stpcpy, strdup to aliases.
66735         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
66736         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
66737
66738 2006-10-10  Bruno Haible  <bruno@clisp.org>
66739
66740         Make it possible to #define gcd to an alias.
66741         * lib/gcd.c: Include config.h.
66742
66743 2006-10-10  Bruno Haible  <bruno@clisp.org>
66744
66745         Make it possible to #define c_isascii to an alias.
66746         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
66747         defined. Undefine the macros before defining them, to avoid gcc
66748         warnings.
66749         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
66750         define NO_C_CTYPE_MACROS early.
66751
66752 2006-10-10  Bruno Haible  <bruno@clisp.org>
66753
66754         Make it possible to #define set_program_name to an alias.
66755         * lib/progname.c: Don't undefine set_program_name; instead, undefine
66756         ENABLE_RELOCATABLE early.
66757
66758 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66759
66760         Port to Tandem NSK OSS, which has 64-bit signed int but at most
66761         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
66762         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
66763         More generally, don't assume that 64-bit signed int is available
66764         if unsigned int is, and vice versa.
66765         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
66766         unsigned symbols, not on their signed counterparts.
66767         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
66768         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
66769         (UINT64_C, UINTMAX_C):
66770         Likewise.
66771         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
66772         unsigned counterparts.
66773         (Have_long_long, Unsigned): New macros.
66774         (Int): Renamed from INT.
66775         (strtoimax): Use the new macros.
66776         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
66777         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
66778         * modules/inttypes (inttypes.h): Substitute
66779         HAVE_UNSIGNED_LONG_LONG_INT.
66780         * modules/stdint (stdint.h): Likewise.
66781         (Files): Add m4/ulonglong.m4.
66782
66783 2006-10-10  Bruno Haible  <bruno@clisp.org>
66784
66785         Fix a gcc -Wshadow warning.
66786         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
66787         to 'bucket'.
66788         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
66789         gl_linked_indexof_from_to): Likewise.
66790         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
66791         Likewise.
66792         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
66793         Likewise.
66794         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
66795         Reported by Eric Blake.
66796
66797 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
66798
66799         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
66800         for NetBSD.  Problem reported by Bruno Haible.
66801
66802 2006-10-09  Jim Meyering  <jim@meyering.net>
66803
66804         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
66805         Patch from Bruno Haible.
66806
66807 2006-10-09  Jim Meyering  <jim@meyering.net>
66808
66809         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
66810         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
66811         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
66812
66813 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66814
66815         Don't include <config.h> twice; this doesn't work in some cases,
66816         e.g., when config.h has "#define intmax_t long long int" and
66817         we include <config.h>, <inttypes.h>, <config.h> in that order.
66818         Problem reported by Matthew Woehlke in:
66819         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
66820         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
66821         * lib/fts-cycle.c: Don't include config.h.
66822         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
66823         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
66824         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
66825         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
66826         inttypes.h.
66827         * lib/xstrtoumax.c: Likewise.
66828         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
66829         __strtol and the like, so that this module is more like its siblings.
66830         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
66831         Remove; no longer needed now that we assume gnulib inttypes.h.
66832
66833 2006-10-08  Bruno Haible  <bruno@clisp.org>
66834
66835         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
66836         option.
66837
66838 2006-10-07  Jim Meyering  <jim@meyering.net>
66839
66840         * modules/inttypes (inttypes.h): Revert what seems to have been
66841         an inadvertent part of today's change: use "|", not "/" in the
66842         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
66843
66844 2006-10-07  Bruno Haible  <bruno@clisp.org>
66845
66846         * modules/sublist: New file.
66847
66848 2006-10-07  Bruno Haible  <bruno@clisp.org>
66849
66850         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
66851         * modules/argz (argz.h): Likewise.
66852         * modules/arpa_inet (arpa/inet.h): Likewise.
66853         * modules/byteswap (byteswap.h): Likewise.
66854         * modules/configmake (configmake.h): Likewise.
66855         * modules/fcntl (fcntl.h): Likewise.
66856         * modules/fnmatch (fnmatch.h): Likewise.
66857         * modules/getopt (getopt.h): Likewise.
66858         * modules/glob (glob.h): Likewise.
66859         * modules/inttypes (inttypes.h): Likewise.
66860         * modules/netinet_in (netinet/in.h): Likewise.
66861         * modules/poll (poll.h): Likewise.
66862         * modules/stdbool (stdbool.h): Likewise.
66863         * modules/stdint (stdint.h): Likewise.
66864         * modules/sys_select (sys/select.h): Likewise.
66865         * modules/sys_socket (sys/socket.h): Likewise.
66866         * modules/sys_stat (sys/stat.h): Likewise.
66867         * modules/sysexits (sysexits.h): Likewise.
66868         * modules/unistd (unistd.h): Likewise.
66869         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66870         Add a "DO NOT EDIT" comment to the generated file.
66871         (func_import): Likewise for gnulib-comp.m4.
66872
66873 2006-10-07  Bruno Haible  <bruno@clisp.org>
66874
66875         * lib/gl_sublist.h: New file.
66876         * lib/gl_sublist.c: New file.
66877
66878 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66879
66880         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
66881         name (relative to the original working directory) and the file
66882         name component (relative to the temporary working directory).  All
66883         callers changed.
66884         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
66885         * lib/mkdir-p.c (make_dir_parents): Likewise.
66886         * lib/mkdir-p.h (make_dir_parents): Likewise.
66887
66888 2006-10-06  Eric Blake  <ebb9@byu.net>
66889
66890         Define several macros for use by the clean-temp module.
66891         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
66892         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
66893         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
66894
66895         * lib/clean-temp.h (close_stream_temp): New declaration.
66896         * lib/clean-temp.c (includes): Pull in headers according to what
66897         other modules are in use.
66898         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
66899
66900 2006-10-06  Bruno Haible  <bruno@clisp.org>
66901
66902         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
66903         instead of fopen, fwriteerror.
66904
66905 2006-10-06  Bruno Haible  <bruno@clisp.org>
66906
66907         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
66908         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
66909         int.
66910         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
66911         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
66912         Return an error indicator.
66913         Suggested by Eric Blake.
66914
66915 2006-10-06  Bruno Haible  <bruno@clisp.org>
66916
66917         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
66918         Reported by Eric Blake.
66919
66920 2006-10-06  Bruno Haible  <bruno@clisp.org>
66921
66922         * modules/closeout (Description): Mention stderr too.
66923
66924 2006-10-06  Bruno Haible  <bruno@clisp.org>
66925         and Paul Eggert  <eggert@cs.ucla.edu>
66926
66927         * lib/closeout.c (close_stdout): Also close stderr.
66928         * lib/closeout.h: Update comment.
66929
66930 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66931
66932         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
66933         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
66934         * lib/dirchownmod.c: Include lchown.h.
66935         * lib/lchown.c: Don't include files that lchown.h now includes.
66936         Don't declare chown, since lchown.h now does that.
66937         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
66938         (lchown): Define to rpl_chown if lchown is declared but
66939         does not exist.  Declare using a prototype if lchown is not
66940         declared.  Add a copyright notice.
66941         * lib/mkstemp.h: Include <unistd.h>.
66942         * lib/openat.c: Include lchown.h.
66943
66944         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
66945         we now test for that separately.
66946         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
66947         rather than O_NOFOLLOW, when testing whether it's possible to
66948         avoid a race condition reliably.
66949         * lib/savewd.c (savewd_chdir): Likewise.
66950
66951         Remove macros that are no longer needed now that stdint.h is
66952         reliable.
66953         * lib/fsusage.c (UINTMAX_MAX): Remove.
66954         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
66955         * lib/utimecmp.c (SIZE_MAX): Remove.
66956
66957         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
66958
66959         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
66960         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
66961         O_NOATIME works.
66962
66963 2006-10-05  Bruno Haible  <bruno@clisp.org>
66964
66965         * lib/gl_list.h (gl_sortedlist_search_from_to,
66966         gl_sortedlist_indexof_from_to): New declarations.
66967         (gl_list_implementation): New fields sortedlist_search_from_to,
66968         sortedlist_indexof_from_to.
66969         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
66970         inline functions.
66971         * lib/gl_list.c (gl_sortedlist_search_from_to,
66972         gl_sortedlist_indexof_from_to): New functions.
66973         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
66974         function.
66975         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
66976         (gl_array_sortedlist_search_from_to): New function.
66977         (gl_array_list_implementation): Update.
66978         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
66979         function.
66980         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
66981         (gl_carray_sortedlist_search_from_to): New function.
66982         (gl_carray_list_implementation): Update.
66983         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
66984         gl_linked_sortedlist_indexof_from_to): New functions.
66985         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66986         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66987         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
66988         gl_tree_sortedlist_indexof_from_to): New functions.
66989         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66990         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66991         Update.
66992         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66993         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
66994         Update.
66995
66996 2006-10-05  Bruno Haible  <bruno@clisp.org>
66997
66998         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
66999         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67000         (struct gl_list_implementation): Add fields search_from_to,
67001         indexof_from_to. Remove fields search, indexof.
67002         (gl_list_search): Use the search_from_to method.
67003         (gl_list_search_from, gl_list_search_from_to): New functions.
67004         (gl_list_indexof): Use the indexof_from_to method.
67005         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67006         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67007         (gl_list_search_from, gl_list_search_from_to): New functions.
67008         (gl_list_indexof): Use the indexof_from_to method.
67009         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67010         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67011         gl_array_indexof. Add start_index, end_index arguments.
67012         (gl_array_search_from_to): Renamed from gl_array_search. Add
67013         start_index, end_index arguments.
67014         (gl_array_remove, gl_array_list_implementation): Update.
67015         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67016         gl_carray_indexof. Add start_index, end_index arguments.
67017         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67018         start_index, end_index arguments.
67019         (gl_carray_remove, gl_carray_list_implementation): Update.
67020         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67021         gl_linked_search. Add start_index, end_index arguments.
67022         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67023         start_index, end_index arguments.
67024         (gl_linked_remove): Update.
67025         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67026         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67027         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67028         field to 'size_t'.
67029         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67030         gl_tree_search. Add start_index, end_index arguments.
67031         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67032         start_index, end_index arguments.
67033         (gl_tree_remove): Update.
67034         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67035         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67036         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67037         function.
67038         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67039         gl_tree_search. Add start_index, end_index arguments.
67040         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67041         start_index, end_index arguments.
67042         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67043         Update.
67044         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67045
67046 2006-10-05  Bruno Haible  <bruno@clisp.org>
67047
67048         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67049
67050         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67051         fwriteerror_temp): New declarations.
67052         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67053         (descriptors): New variable.
67054         (cleanup): First, close the descriptors.
67055         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67056         fclose_temp, fwriteerror_temp): New functions.
67057
67058 2006-10-04  Jim Meyering  <jim@meyering.net>
67059
67060         * lib/fts.c (fts_open): Tiny comment change.
67061
67062 2006-10-04  Bruno Haible  <bruno@clisp.org>
67063
67064         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67065         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67066         gl_LOCK_BODY.
67067         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67068         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67069         gl_LOCK_EARLY_BODY.
67070         (gl_LOCK): Require gl_LOCK_BODY.
67071
67072 2006-10-04  Bruno Haible  <bruno@clisp.org>
67073
67074         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67075         (gl_oset_search_atleast): New declaration.
67076         (struct gl_oset_implementation): Add field 'search_atleast'.
67077         (gl_oset_search_atleast): New inline function.
67078         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67079         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67080         (gl_array_oset_implementation): Update.
67081         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67082         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67083         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67084
67085 2006-10-04  Bruno Haible  <bruno@clisp.org>
67086
67087         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67088
67089 2006-10-03  Bruno Haible  <bruno@clisp.org>
67090
67091         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67092         from gl_avltreehash_list_implementation.
67093
67094 2006-10-03  Bruno Haible  <bruno@clisp.org>
67095
67096         * lib/gl_oset.c (gl_oset_add): Fix return type.
67097
67098 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67099
67100         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67101
67102 2006-10-02  Eric Blake  <ebb9@byu.net>
67103
67104         * modules/strnlen (Depends-on): Add extensions.
67105
67106 2006-10-02  Eric Blake  <ebb9@byu.net>
67107
67108         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67109         definition in 2.60+.
67110
67111 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67112
67113         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67114         checks.
67115
67116 2006-10-02  Bruno Haible  <bruno@clisp.org>
67117
67118         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67119         to the AUTOMAKE_OPTIONS.
67120         Reported by Jim Meyering.
67121
67122 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67123
67124         Work around bug in Solaris 10 /proc file system:
67125         /proc/self/fd/NNN/.. isn't the parent directory of
67126         the directory whose file descriptor is NNN.  This needs to
67127         be worked around at run time, not compile time, since a
67128         program might be built on Solaris 8, where things work, and
67129         run on Solaris 10.
67130         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67131         to use the following interface instead:
67132         (OPENAT_BUFFER_SIZE): New macro.
67133         (openat_proc_name): New function.
67134         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67135         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67136         Likewise.
67137         * lib/openat-proc.c: New file.
67138         * modules/openat (Files): Add lib/openat-proc.c.
67139         (Depends-on): Add same-inode, stdbool.
67140         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67141
67142 2006-09-29  Bruno Haible  <bruno@clisp.org>
67143
67144         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67145         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67146         argument. Set stdout_closed before testing for ferror, not after.
67147         (fwriteerror, fwriteerror_no_ebadf): New functions.
67148
67149 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67150
67151         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67152
67153 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67154
67155         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67156         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67157
67158 2006-09-28  Jim Meyering  <jim@meyering.net>
67159
67160         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67161         Include <unistd.h>.
67162
67163 2006-09-28  Bruno Haible  <bruno@clisp.org>
67164
67165         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67166         * modules/linkedhash-list (Depends-on): Likewise.
67167         * modules/rbtreehash-list (Depends-on): Likewise.
67168
67169 2006-09-28  Bruno Haible  <bruno@clisp.org>
67170
67171         * lib/strndup.h: Simplify the redefinition of strndup.
67172         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67173         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67174
67175 2006-09-28  Bruno Haible  <bruno@clisp.org>
67176
67177         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67178         * lib/gl_linkedhash_list.c: Likewise.
67179         * lib/gl_rbtreehash_list.c: Likewise.
67180
67181 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67182
67183         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67184         getaddrinfo.
67185
67186         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67187         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67188         it causes <stdio_ext.h> to cause a compile-time error.
67189         Problem reported by Nelson H. F. Beebe.
67190         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67191         of HAVE_DECL___PENDING.
67192
67193         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67194         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67195         declaration.
67196
67197 2006-09-27  Jim Meyering  <jim@meyering.net>
67198
67199         This file could end up with a definition for a function
67200         named __strndup, rather than rpl_strndup on a system with
67201         incomplete weak_alias support.
67202         * lib/strndup.c (strndup): Rename from __strndup.
67203         Remove #defines that used to map __strndup to strndup.
67204         Don't use K&R prototypes.
67205         Remove LIBC-related code, since this file is not sync'd with glibc.
67206         * lib/strndup.h: Revamp, accordingly.
67207         * m4/strndup.m4: Modernize.
67208
67209 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67210
67211         * modules/savewd (Depends-on): Add 'raise'.
67212         * lib/savewd.c: Include <signal.h>, for 'raise'.
67213
67214 2006-09-26  Jim Meyering  <jim@meyering.net>
67215
67216         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67217         when we detect Darwin 8.7.0's acl_get_file bug.
67218         Rearrange to perform the new (below) run-test while $LIBS
67219         contains any acl-related library.  Set USE_ACL at the end.
67220         (gl_ACL_GET_FILE): New function.
67221
67222 2006-09-26  Eric Blake  <ebb9@byu.net>
67223
67224         * lib/verror.c: Include <config.h> unconditionally.
67225
67226 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67227
67228         * modules/clock-time (Maintainer): Add self.
67229         * modules/getlogin_r (Depends-on): Add extensions.
67230
67231 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67232
67233         * modules/clock-time: New module.
67234         * modules/nanosleep (Depends-on): Add clock-time.
67235         * modules/gethrxtime (Depends-on): Likewise.
67236         * modules/gettime (Depends-on): Likewise.
67237         * modules/settime (Depends-on): Likewise.
67238
67239         * modules/fts-lgpl: Depend on openat.
67240         * modules/mkancesdirs: Depend on savewd.
67241         * modules/mkdir-p: Likewise.
67242
67243 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67244
67245         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67246
67247         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67248         `gl_have_arbitrary_file_name_length_limit' to
67249         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67250         actually works between configure runs.
67251
67252 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67253             Bruno Haible  <bruno@clisp.org>
67254
67255         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67256
67257 2006-09-25  Jim Meyering  <jim@meyering.net>
67258
67259         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67260         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67261
67262 2006-09-25  Eric Blake  <ebb9@byu.net>
67263
67264         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67265         exec's in 2006-09-18 patch when shuffling fds.
67266
67267 2006-09-25  Bruno Haible  <bruno@clisp.org>
67268
67269         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67270         Reported by Jim Meyering.
67271
67272 2006-09-24  Jim Meyering  <jim@meyering.net>
67273
67274         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67275         compare a pointer against a literal "0".  That caused failures with
67276         at least HP-UX's hpcc.
67277
67278 2006-09-22  Simon Josefsson  <jas@extundo.com>
67279
67280         * modules/gc-sha1:
67281         * modules/gc-md4:
67282         * modules/gc-hmac-sha1:
67283         * modules/gc-hmac-md5:
67284         * modules/gc-des:
67285         * modules/gc-arcfour: Distribute more files.
67286
67287 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67288
67289         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67290         (gl_linked_iterator_from_to): Initialize struct completely.
67291         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67292         (gl_tree_iterator_from_to): Likewise
67293         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67294         * lib/gl_array_list.c [lint] (gl_array_iterator)
67295         (gl_array_iterator_from_to): Likewise.
67296         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67297         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67298         (gl_carray_iterator_from_to): Likewise.
67299
67300         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67301         * lib/md4.c (md4_process_block): Remove unused variable.
67302         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67303         parentheses for clarity.
67304
67305 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67306
67307         * modules/bison-i18n (Depends-on): Add gettext.
67308
67309 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67310
67311         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67312         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67313         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67314         also add missing comma that caused broken test.
67315         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67316         stdlib.h, for `abort'.
67317         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67318         variables.
67319         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67320         include unistd.h if present, for `rmdir'.
67321         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67322         variables.
67323         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67324         in the process include standard headers for prototypes.
67325         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67326         gets declared on GNU/Linux.
67327         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67328         unistd.h, for `rmdir'.
67329         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67330
67331         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67332         always true.
67333         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67334
67335         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67336
67337 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67338
67339         * gnulib-tool (func_version): Create output all at once.  This
67340         may help avoid triggering unnecessary SIGPIPEs, and at any
67341         rate it doesn't hurt.
67342
67343 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67344             Bruno Haible  <bruno@clisp.org>
67345
67346         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67347         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67348         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67349
67350         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67351         (gl_FUNC_VASPRINTF): Invoke it.
67352
67353 2006-09-22  Bruno Haible  <bruno@clisp.org>
67354
67355         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
67356         getloadavg.c as first argument.
67357
67358 2006-09-22  Bruno Haible  <bruno@clisp.org>
67359
67360         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
67361         at the beginning of the gl_INIT macro.
67362         * modules/getloadavg (configure.ac): Pass $gl_source_base to
67363         gl_GETLOADAVG.
67364
67365 2006-09-22  Bruno Haible  <bruno@clisp.org>
67366
67367         * gnulib-tool (func_create_megatestdir): Don't include the config-h
67368         module.
67369         Suggested by Ralf Wildenhues.
67370
67371 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67372
67373         Import this patch from libc:
67374
67375         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
67376
67377         * lib/regex_internal.c (re_string_reconstruct): Handle
67378         offset < pstr->valid_raw_len && pstr->offsets_needed case.
67379         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
67380         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
67381         re_string_context_at.
67382
67383         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
67384         now requires it.
67385         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
67386         gl_REGEX now does it for us.
67387         (gl_REGEX): Add test taken from
67388         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
67389
67390         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
67391         Check that large offsets work.  Modernize Autoconf usages.
67392         Prefer "yes" to mean a good thing rather than a bad.
67393         Don't put "#define mkstemp" in config.h, as this might interfere
67394         with standard system headers that "#define mkstemp mkstemp64".
67395
67396         * modules/mkstemp (Depends-on): Add extensions, so that
67397         mkstemp is visible on some platforms.
67398         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
67399         (Include): Change to "mkstemp.h" from <stdlib.h>.
67400         (Files): Add mkstemp.h.
67401
67402         * lib/mkstemp.h: New file, since some standard headers
67403         #define mkstemp.
67404         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
67405         Include "mkstemp.h".
67406         Make the _LIBC code resemble glibc original more,
67407         e.g., use K&R style.
67408         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
67409         (mkstemp): Remove, since mkstemp.h does this for us.
67410         * lib/stdlib--.h: Include mkstemp.h.
67411
67412         Import this patch from libc:
67413
67414         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67415
67416         * lib/tempname.c (__gen_tempname): Change attempts_min
67417         into a macro.  Use preprocessor to decide how to initialize
67418         attempts [Coverity CID 67].
67419
67420 2006-09-20  Bruno Haible  <bruno@clisp.org>
67421
67422         * lib/mkdtemp.c: Import from libc.
67423         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67424                 * sysdeps/posix/tempname.c (__gen_tempname): Change
67425                 attempts_min into a macro.  Use preprocessor to decide how to
67426                 initialize attempts [Coverity CID 67].
67427         2001-11-27  Paul Eggert  <eggert@twinsun.com>
67428                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
67429                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
67430
67431 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67432
67433         * gnulib-tool (func_exit): New function, to allow to pass the
67434         exit status portably through the trap.  Use everywhere.
67435         (--help, --version): Signal a write error.
67436         (trap): catch SIGPIPE, for write errors.
67437         Exit at the end of the trap, with the correct exit status.
67438
67439 2006-09-19  Karl Berry  <karl@gnu.org>
67440
67441         * doc/gnulib.texi: note about the license texinfo files.
67442
67443 2006-09-19  Eric Blake  <ebb9@byu.net>
67444
67445         * gnulib-tool: Avoid space-tab.
67446
67447 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67448
67449         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
67450         that prevented coreutils 6.1 from building.  Problem reported
67451         by Petter Reinholdtsen.
67452
67453 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67454
67455         * gnulib-tool (avoidlist): Fix typo that broke options like
67456         --avoid=lock that are used by coreutils bootstrap.
67457
67458 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67459
67460         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67461         more systematically.
67462
67463 2006-09-18  Jim Meyering  <jim@meyering.net>
67464
67465         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67466
67467 2006-09-18  Bruno Haible  <bruno@clisp.org>
67468
67469         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67470
67471 2006-09-18  Bruno Haible  <bruno@clisp.org>
67472
67473         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67474         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67475         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67476         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67477         * m4/gettext.m4: Require autoconf >= 2.52.
67478         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67479         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67480         of gl_cv_header_inttypes_h.
67481
67482 2006-09-18  Bruno Haible  <bruno@clisp.org>
67483
67484         * lib/javaversion.c: Include configmake.h.
67485
67486 2006-09-18  Bruno Haible  <bruno@clisp.org>
67487
67488         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
67489         avoid that the while loops be executed in a subshell.
67490
67491 2006-09-18  Bruno Haible  <bruno@clisp.org>
67492
67493         * MODULES.html.sh (func_module): Break long lines.
67494         Suggested by Bruce Korb <bkorb@gnu.org>.
67495
67496 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67497
67498         Speed up by a factor of 1.12.
67499         * gnulib-tool (nl): New variable.
67500         (func_import): Rewrite include directive extraction to only read each
67501         directive once.
67502
67503 2006-09-17  Bruno Haible  <bruno@clisp.org>
67504
67505         * modules/javaversion (Makefile.am): Remove DEFS setting.
67506         (Depends-on): Add configmake, for PKGDATADIR definition.
67507
67508 2006-09-17  Bruno Haible  <bruno@clisp.org>
67509
67510         * gnulib-tool (func_create_testdir): Rewrite all files at once.
67511
67512 2006-09-17  Bruno Haible  <bruno@clisp.org>
67513
67514         * gnulib-tool (func_append): New function, stolen from libtool.m4.
67515         (func_modules_transitive_closure, func_modules_add_dummy,
67516         func_modules_to_filelist, func_import, func_create_testdir,
67517         func_create_megatestdir, ...): Use it wherever possible.
67518         Suggested by Ralf Wildenhues.
67519
67520 2006-09-16  Karl Berry  <karl@gnu.org>
67521
67522         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67523         to avoid sectioning errors.
67524         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67525         [ifinfo]: blank line after @center-ed titles.
67526         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
67527         Spell FSF address consistently with others.
67528         (These changes approved by rms.)
67529
67530 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67531
67532         Speed up by a factor of 1.61.
67533         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
67534         already checked module names again.
67535
67536 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67537
67538         Speed up by a factor of 1.13.
67539         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
67540         for new_files, and the input to func_add_or_update.
67541
67542 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67543
67544         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
67545         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
67546
67547 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67548
67549         * modules/mkancesdirs (Depends-on): Add fcntl.
67550         * modules/savewd: New file.
67551         * MODULES.html.sh (File system functions): Add savewd.
67552
67553         * modules/configmake (Makefile.am): Add support for the
67554         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
67555
67556 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67557
67558         * m4/savewd.m4: New file.
67559
67560 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67561
67562         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
67563         (dirchownmod): New arg FD.  All callers changed.
67564         Use FD rather than opening the directory ourself, as opening is
67565         now the caller's responsibility.
67566         * lib/dirchownmod.h: Likewise.
67567         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
67568         hosts that require <sys/types.h> before <sys/stat.h>.  Include
67569         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
67570         (test_dir): Remove.
67571         (mkancesdirs): Return length of prefix of FILE that has already
67572         been made, or -2 if there is a child doing the work.  Redo
67573         algorithm so that it is O(N) rather than O(N**2).  Optimize away
67574         ".", and treat ".." specially since it might stray back into
67575         already-created areas.  Use a subprocess if necessary.  New arg
67576         WD; all users changed.  MAKE_DIR function should now return 1
67577         if it creates a directory that is not readable.  Return -2 if
67578         a child process is spun off.
67579         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
67580         Adjust signature to match code.
67581         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
67582         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
67583         all users changed.
67584         * lib/savewd.c, lib/savewd.h: New files.
67585
67586 2006-09-15  Jim Meyering  <jim@meyering.net>
67587
67588         * modules/rename-dest-slash: New module.
67589         * MODULES.html.sh (posix_compat): Add it here.
67590
67591         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
67592
67593 2006-09-15  Jim Meyering  <jim@meyering.net>
67594
67595         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
67596         file.
67597
67598         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
67599
67600 2006-09-15  Jim Meyering  <jim@meyering.net>
67601
67602         * lib/rename-dest-slash.c (has_trailing_slash): Use
67603         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
67604         (rpl_rename_dest_slash): Perform the cheaper trailing slash
67605         test before testing whether SRC is a directory.
67606         Suggestions from Bruno Haible.
67607
67608         Avoid a warning about an unused variable.
67609         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
67610         into the #ifdef block where it's used.
67611
67612         * lib/rename-dest-slash.c: New file.
67613
67614 2006-09-14  Bruno Haible  <bruno@clisp.org>
67615
67616         * lib/allocsa.c: Include <config.h> unconditionally.
67617         * lib/asnprintf.c: Likewise.
67618         * lib/asprintf.c: Likewise.
67619         * lib/c-strcasecmp.c: Likewise.
67620         * lib/c-strcasestr.c: Likewise.
67621         * lib/c-strncasecmp.c: Likewise.
67622         * lib/c-strstr.c: Likewise.
67623         * lib/classpath.c: Likewise.
67624         * lib/clean-temp.c: Likewise.
67625         * lib/concatpath.c: Likewise.
67626         * lib/copy-file.c: Likewise.
67627         * lib/csharpcomp.c: Likewise.
67628         * lib/csharpexec.c: Likewise.
67629         * lib/execute.c: Likewise.
67630         * lib/fatal-signal.c: Likewise.
67631         * lib/findprog.c: Likewise.
67632         * lib/fwriteerror.c: Likewise.
67633         * lib/gl_array_list.c: Likewise.
67634         * lib/gl_array_oset.c: Likewise.
67635         * lib/gl_avltree_list.c: Likewise.
67636         * lib/gl_avltree_oset.c: Likewise.
67637         * lib/gl_avltreehash_list.c: Likewise.
67638         * lib/gl_carray_list.c: Likewise.
67639         * lib/gl_linked_list.c: Likewise.
67640         * lib/gl_linkedhash_list.c: Likewise.
67641         * lib/gl_list.c: Likewise.
67642         * lib/gl_oset.c: Likewise.
67643         * lib/gl_rbtree_list.c: Likewise.
67644         * lib/gl_rbtree_oset.c: Likewise.
67645         * lib/gl_rbtreehash_list.c: Likewise.
67646         * lib/imaxabs.c: Likewise.
67647         * lib/imaxdiv.c: Likewise.
67648         * lib/javacomp.c: Likewise.
67649         * lib/javaexec.c: Likewise.
67650         * lib/javaversion.c: Likewise.
67651         * lib/linebreak.c: Likewise.
67652         * lib/localcharset.c: Likewise.
67653         * lib/lock.c: Likewise.
67654         * lib/mbchar.c: Likewise.
67655         * lib/mbswidth.c: Likewise.
67656         * lib/mkdtemp.c: Likewise.
67657         * lib/pipe.c: Likewise.
67658         * lib/printf-args.c: Likewise.
67659         * lib/printf-parse.c: Likewise.
67660         * lib/progname.c: Likewise.
67661         * lib/progreloc.c: Likewise.
67662         * lib/readlink.c: Likewise.
67663         * lib/sh-quote.c: Likewise.
67664         * lib/stpcpy.c: Likewise.
67665         * lib/stpncpy.c: Likewise.
67666         * lib/strcasecmp.c: Likewise.
67667         * lib/strcasestr.c: Likewise.
67668         * lib/strcspn.c: Likewise.
67669         * lib/striconv.c: Likewise.
67670         * lib/strncasecmp.c: Likewise.
67671         * lib/strnlen1.c: Likewise.
67672         * lib/strstr.c: Likewise.
67673         * lib/strtok_r.c: Likewise.
67674         * lib/tls.c: Likewise.
67675         * lib/tmpdir.c: Likewise.
67676         * lib/unicodeio.c: Likewise.
67677         * lib/unsetenv.c: Likewise.
67678         * lib/vasnprintf.c: Likewise.
67679         * lib/vasprintf.c: Likewise.
67680         * lib/wait-process.c: Likewise.
67681         * lib/xallocsa.c: Likewise.
67682         * lib/xsetenv.c: Likewise.
67683         * lib/xstriconv.c: Likewise.
67684
67685 2006-09-13  Simon Josefsson  <jas@extundo.com>
67686
67687         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
67688         that internally, suggested by Ralf Wildenhues
67689         <Ralf.Wildenhues@gmx.de>.
67690
67691 2006-09-13  Simon Josefsson  <jas@extundo.com>
67692
67693         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
67694         @LIBOBJS@.
67695         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67696
67697 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67698
67699         * lib/_fpending.c: Include <config.h> unconditionally, since we no
67700         longer worry about uses that don't define HAVE_CONFIG_H.
67701         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
67702         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
67703         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
67704         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
67705         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
67706         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
67707         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
67708         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
67709         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
67710         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
67711         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
67712         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
67713         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
67714         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
67715         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
67716         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
67717         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
67718         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
67719         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
67720         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
67721         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
67722         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
67723         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
67724         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
67725         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
67726         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
67727         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
67728         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
67729         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
67730         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
67731         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
67732         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
67733         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
67734         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
67735         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
67736         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
67737         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
67738         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
67739         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
67740         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
67741         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
67742         Likewise.
67743
67744 2006-09-13  Eric Blake  <ebb9@byu.net>
67745
67746         * lib/getopt.c: Fix typo in last commit.
67747
67748 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67749
67750         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
67751         dgettext.
67752
67753 2006-09-12  Jim Meyering  <jim@meyering.net>
67754
67755         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
67756         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
67757         Reported by Nelson H. F. Beebe.
67758
67759 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67760
67761         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
67762         program_invocation_name and program_invocation_short_name are
67763         initialized.
67764         * lib/argp-namefrob.h: Move declarations of program_invocation_name
67765         and program_invocation_short_name to argp.h, so they are visible
67766         to user programs.
67767         * lib/argp.h: Likewise
67768
67769 2006-09-10  Bruno Haible  <bruno@clisp.org>
67770
67771         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67772         m4/inttypes_h.m4, m4/uintmax_t.m4.
67773
67774 2006-09-10  Bruno Haible  <bruno@clisp.org>
67775
67776         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
67777         gl_AC_TYPE_UINTMAX_T.
67778
67779 2006-09-10  Bruno Haible  <bruno@clisp.org>
67780
67781         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
67782
67783 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67784
67785         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
67786         convention.  Text proposed by Bruno Haible.
67787         (struct argp_option): Document the use of N_() wrappers.
67788
67789         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
67790         '\v', and translate the two parts separately, instead of feeding
67791         the whole string to gettext.  This allows to exclude
67792         '\v' from the strings visible to the translator by writing doc
67793         strings as N_("..") "\v" N_("..").
67794
67795 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
67796
67797         * config/srclist.txt: Undo latest change; the bug was fixed.
67798
67799 2006-09-09  Bruno Haible  <bruno@clisp.org>
67800
67801         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
67802         assignments if building a library without libtool.
67803         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
67804         in func_emit_lib_Makefile_am.
67805         (func_import): When building a static library libfoo.a, arrange to
67806         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
67807         (func_create_testdir): Likewise.
67808         * modules/gc (configure.ac, Makefile.am): If building statically,
67809         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
67810         * modules/iconvme (configure.ac, Makefile.am): Likewise.
67811         * modules/striconv (configure.ac, Makefile.am): Likewise.
67812         Based on a suggestion by Ralf Wildenhues.
67813
67814 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67815
67816         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67817         Check for unistd.h too, since Autoconf doesn't assume POSIX.
67818         Also:
67819
67820         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67821         Add year_2050_test to catch glibc bug 2821
67822         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67823
67824         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67825         Prefer #ifdef to #if.
67826
67827         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
67828         Return from 'main' instead of calling 'exit'.
67829
67830 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67831
67832         * lib/mktime.c (guess_time_tm): Fix bug where mktime
67833         returned the maximum time_t value rather than (time_t) -1.
67834         Problem originally reported by William Bardwell
67835         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67836
67837         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67838         Moved to here ...
67839         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67840         ... from here.
67841
67842 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67843
67844         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
67845         2821 is fixed.
67846
67847 2006-09-08  Jim Meyering  <jim@meyering.net>
67848
67849         Don't make generated files read-only.  That would bother too many
67850         people.  However, do retain the ability to work when targets are
67851         read-only: remove the destination and temporary files before writing
67852         them (when generated via sed or echo), or by using the -f option for
67853         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
67854         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67855         * modules/byteswap, modules/configmake, modules/fcntl:
67856         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67857         * modules/localcharset, modules/netinet_in, modules/poll:
67858         * modules/stdbool, modules/stdint, modules/sys_select:
67859         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67860
67861 2006-09-08  Jim Meyering  <jim@meyering.net>
67862
67863         Avoid new build failure on FreeBSD 6.0.
67864         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
67865         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
67866         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
67867
67868 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67869
67870         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
67871
67872 2006-09-07  Jim Meyering  <jim@meyering.net>
67873
67874         Fix global typo in last change: use chmod u-w, not chmod u-x.
67875         Spotted by Paul Eggert and Bruce Korb.
67876         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67877         * modules/byteswap, modules/configmake, modules/fcntl:
67878         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67879         * modules/localcharset, modules/netinet_in, modules/poll:
67880         * modules/stdbool, modules/stdint, modules/sys_select:
67881         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67882
67883 2006-09-06  Jim Meyering  <jim@meyering.net>
67884
67885         Make generated files be read-only.
67886         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
67887         Ensure that each generated file is now read-only.
67888         * modules/argz: Likewise.
67889         * modules/arpa_inet: Likewise.
67890         * modules/byteswap: Likewise.
67891         * modules/configmake: Likewise.
67892         * modules/fcntl: Likewise.
67893         * modules/fnmatch: Likewise.
67894         * modules/getopt: Likewise.
67895         * modules/glob: Likewise.
67896         * modules/inttypes: Likewise.
67897         * modules/netinet_in: Likewise.
67898         * modules/poll: Likewise.
67899         * modules/stdbool: Likewise.
67900         * modules/stdint: Likewise.
67901         * modules/sys_select: Likewise.
67902         * modules/sys_socket: Likewise.
67903         * modules/sys_stat: Likewise.
67904         * modules/sysexits: Likewise.
67905         * modules/localcharset: Same as above, but continue using temporary
67906         file named "t-$@" (why different?) rather than the "$@-t" used
67907         everywhere else.
67908
67909         * modules/sysexits (Makefile.am): Replace literal occurrences
67910         of "sysexit.h" more readable, and more consistent, "$@".
67911
67912 2006-09-06  Bruno Haible  <bruno@clisp.org>
67913
67914         * modules/striconv: New file.
67915         * modules/xstriconv: New file.
67916         * MODULES.html.sh (Internationalization functions): Add striconv,
67917         xstriconv.
67918
67919 2006-09-06  Bruno Haible  <bruno@clisp.org>
67920
67921         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
67922         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
67923         not using libtool correctly.
67924
67925 2006-09-06  Bruno Haible  <bruno@clisp.org>
67926
67927         * lib/striconv.h: New file.
67928         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
67929         iconvstring.c.
67930         * lib/xstriconv.h: New file.
67931         * lib/xstriconv.c: New file.
67932
67933 2006-09-06  Bruno Haible  <bruno@clisp.org>
67934
67935         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67936         lib_..._LDFLAGS.
67937
67938 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67939
67940         * lib/argz_.h: Sync from Libtool.
67941
67942         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
67943                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67944
67945         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
67946
67947 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67948
67949         * modules/trim: New file.
67950
67951 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67952
67953         * lib/trim.h: New file.
67954         * lib/trim.c: New file.
67955
67956 2006-09-05  Bruno Haible  <bruno@clisp.org>
67957
67958         * MODULES.html.sh (String handling): Add trim.
67959
67960 2006-09-04  Karl Berry  <karl@gnu.org>
67961
67962         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
67963         until next release.
67964
67965 2006-09-03  Bruno Haible  <bruno@clisp.org>
67966
67967         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
67968         correctly.
67969
67970 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67971
67972         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
67973         not gl_GETLOADAVG.  Omit unneeded semicolons.
67974         Problems reported by Ralf Wildenhues in
67975         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67976         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
67977         at the end, which is the usual gnulib style.
67978
67979         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
67980         of doing all the work ourselves.
67981         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
67982         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
67983
67984 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67985
67986         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
67987         Problem reported by Ralf Wildenhues in
67988         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67989
67990         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
67991         HAVE_STRUCT_STATFS_F_FSTYPENAME.
67992
67993 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67994
67995         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
67996         yesterday's patch by changing test -n to test -z.
67997
67998 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67999
68000         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68001         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68002         the former is now obsolescent.
68003
68004         * modules/chdir-long (Depends-on): Add fcntl.
68005
68006 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68007
68008         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68009         obsolescent, and programs should use gnulib instead.
68010         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68011         but with prefixes changed.
68012
68013 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68014
68015         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68016         or stdbool.h, because they might not exist while configuring.
68017
68018         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68019         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68020         does that for us.
68021         (O_DIRECTORY): Remove.
68022
68023 2006-08-31  Eric Blake  <ebb9@byu.net>
68024
68025         * gnulib-tool: Don't let emacs change spaces to TAB.
68026
68027 2006-08-31  Bruno Haible  <bruno@clisp.org>
68028
68029         * gnulib-tool: When calling func_import more than once, do it in a
68030         subshell.
68031         Reported by Eric Blake <ebb9@byu.net>.
68032
68033 2006-08-31  Bruno Haible  <bruno@clisp.org>
68034
68035         * gnulib-tool (nl): Remove variable.
68036         (sed_transform_lib_file): Use more robust test for config-h module.
68037         (func_import): Fix typo in 2006-08-25 patch.
68038
68039 2006-08-31  Bruno Haible  <bruno@clisp.org>
68040
68041         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68042         specified, augment Makefile.am variables instead of assigning them.
68043
68044 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68045
68046         Work around a bug in both the Linux and SunOS 64-bit kernels:
68047         nanosleep mishandles sleeps for longer than 2**31 seconds.
68048         Problem reported by Frank v Waveren in
68049         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68050         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68051         Check for nanosleep bug.
68052         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68053
68054 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68055
68056         Work around a bug in both the Linux and SunOS 64-bit kernels:
68057         nanosleep mishandles sleeps for longer than 2**31 seconds.
68058         Problem reported by Frank v Waveren in
68059         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68060         * lib/nanosleep.c (BILLION): New constant.
68061         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68062         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68063         implementation.
68064
68065 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68066
68067         * modules/nanosleep (Depends-on): Add gettime.
68068
68069 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68070         and Simon Josefsson  <jas@extundo.com>
68071         and Oskar Liljeblad  <oskar@osk.mine.nu>
68072
68073         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68074         * gnulib-tool (func_import): New license type 'unmodifiable license
68075         text'.
68076         * modules/fdl: Use it.  Longer description.
68077         * module/gpl, module/lgpl: New files.
68078
68079 2006-08-30  Jim Meyering  <jim@meyering.net>
68080
68081         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68082         shadowing the parameter.
68083
68084 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68085
68086         Sync from Libtool:
68087
68088         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68089
68090         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68091         sharing with gnulib.  Report by Eric Blake.
68092
68093 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68094
68095         * modules/isapipe: New file.
68096         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68097
68098 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68099
68100         * modules/configmake (Makefile.am): Add a comment, and omit
68101         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68102         by Bruno Haible.
68103
68104 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68105
68106         * m4/isapipe.m4: New file.
68107
68108 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68109
68110         * lib/isapipe.c, lib/isapipe.h: New files.
68111
68112 2006-08-29  Jim Meyering  <jim@meyering.net>
68113
68114         * modules/configmake (Makefile.am): Make configmake.h depend on
68115         Makefile.  Otherwise, a stale configmake.h could hang around.
68116
68117 2006-08-29  Eric Blake  <ebb9@byu.net>
68118
68119         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68120         resolution of upstream bug 3044.
68121
68122 2006-08-29  Bruno Haible  <bruno@clisp.org>
68123
68124         * modules/localcharset (Depends-on): Add configmake.
68125         (Makefile.am): Remove setting of LIBDIR through DEFS.
68126
68127 2006-08-29  Bruno Haible  <bruno@clisp.org>
68128
68129         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68130         defined.
68131
68132 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68133
68134         * modules/fcntl: New file.
68135         * modules/chdir-safer (Depends-on): Add fcntl.
68136         * modules/fts: Likewise.
68137         * modules/mkdir-p: Likewise.
68138
68139         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68140         This undoes the most recent change, since we're now addressing the
68141         problem in a different way.
68142
68143         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68144         into output, since the output might be called Makefile.am even
68145         if $makefile_name is something different.
68146         (func_import): Use $makefile_am rather than
68147         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68148         empty.
68149
68150         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68151
68152 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68153
68154         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68155         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68156         recent change to stdint.m4, since we're now addressing the problem in a
68157         different way.
68158
68159 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68160
68161         * m4/fcntl_h.m4: New file.
68162
68163 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68164
68165         * lib/fcntl_.h: New file.
68166         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68167         the fcntl module.
68168         * lib/dirchownmod.c: Likewise.
68169         * lib/fts.c: Likewise.
68170
68171         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68172         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68173         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68174         just before including <inttypes.h>, to avoid circular inclusion.
68175
68176 2006-08-28  Jim Meyering  <jim@meyering.net>
68177
68178         * doc/visibility.texi: Actually read and correct the grammar of the
68179         sentence affected by yesterday's change.
68180
68181 2006-08-28  Eric Blake  <ebb9@byu.net>
68182
68183         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68184         needs wrapper.
68185
68186 2006-08-28  Eric Blake  <ebb9@byu.net>
68187
68188         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68189
68190 2006-08-28  Eric Blake  <ebb9@byu.net>
68191
68192         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68193
68194 2006-08-28  Bruno Haible  <bruno@clisp.org>
68195
68196         * modules/c-strstr: New file, from GNU gettext.
68197         * MODULES.html.sh (String handling): Add c-strstr.
68198
68199 2006-08-28  Bruno Haible  <bruno@clisp.org>
68200
68201         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68202         macros.
68203         Reported by Eric Blake.
68204
68205 2006-08-28  Bruno Haible  <bruno@clisp.org>
68206
68207         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68208         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68209         * lib/vasprintf.c: Include errno.h, limits.h.
68210         (EOVERFLOW): New fallback definition.
68211         (vasprintf): Test here whether the string length is > INT_MAX.
68212         * lib/vsnprintf.c: Include errno.h, limits.h.
68213         (EOVERFLOW): New fallback definition.
68214         (vsnprintf): Fix bug when generated string was too long for the buffer.
68215         Test here whether the string length is > INT_MAX.
68216
68217 2006-08-28  Bruno Haible  <bruno@clisp.org>
68218
68219         * lib/inttypes_.h (SCNX*): Remove definitions.
68220         Reported by Eric Blake.
68221
68222 2006-08-28  Bruno Haible  <bruno@clisp.org>
68223
68224         * lib/c-strstr.h: New file, from GNU gettext.
68225         * lib/c-strstr.c: New file, from GNU gettext.
68226
68227 2006-08-28  Bruno Haible  <bruno@clisp.org>
68228
68229         * gnulib-tool: Reorder some statements.
68230
68231 2006-08-28  Bruno Haible  <bruno@clisp.org>
68232
68233         * gnulib-tool: New option --makefile-name.
68234         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68235         $makefile_name.
68236         (func_import): Write $makefile_name to the cache file, and read it from
68237         there unless explicitly specified. Use $makefile_name as file name
68238         instead of Makefile.am. Adjust the recommendations accordingly.
68239
68240 2006-08-28  Bruno Haible  <bruno@clisp.org>
68241
68242         * gnulib-tool (func_verify_module): Check against misapplying patch.
68243
68244 2006-08-28  Bruno Haible  <bruno@clisp.org>
68245
68246         * gnulib-tool (func_relativize, func_relconcat): New functions.
68247         Give an error if --local-dir is given with --update.
68248         Remove trailing slashes from $local_gnulib_dir.
68249         (func_import): Store the relativized $local_gnulib_dir in
68250         gnulib-cache.m4, and read it from there if not specified explicitly.
68251
68252 2006-08-28  Bruno Haible  <bruno@clisp.org>
68253
68254         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68255         is the current directory. Respect also $local_gnulib_dir.
68256
68257 2006-08-28  Bruno Haible  <bruno@clisp.org>
68258             Simon Josefsson  <jas@extundo.com>
68259
68260         BeOS portability.
68261         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68262
68263 2006-08-27  Jim Meyering  <jim@meyering.net>
68264
68265         * doc/visibility.texi: Remove duplicate word: "pointer".
68266
68267 2006-08-26  Bruno Haible  <bruno@clisp.org>
68268
68269         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68270         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68271         (Makefile.am): Create inttypes.h from inttypes_.h.
68272         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68273
68274         * modules/imaxabs: New file.
68275
68276         * modules/imaxdiv: New file.
68277
68278 2006-08-26  Bruno Haible  <bruno@clisp.org>
68279
68280         * m4/inttypes.m4: New file.
68281         * m4/_inttypes_h.m4: Remove file.
68282         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68283         PRI_MACROS_BROKEN.
68284         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68285
68286         * m4/imaxabs.m4: New file.
68287
68288         * m4/imaxdiv.m4: New file.
68289
68290 2006-08-26  Bruno Haible  <bruno@clisp.org>
68291
68292         * lib/inttypes_.h: New file.
68293         * lib/inttypes.h: Remove file.
68294         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68295
68296         * lib/imaxabs.c: New file.
68297
68298         * lib/imaxdiv.c: New file.
68299
68300 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68301
68302         New config-h module, so that "make" output needn't be cluttered
68303         by -DHAVE_CONFIG_H.
68304         * MODULES.html.sh (Support for building libraries and executables):
68305         Add config-h.
68306         * modules/config-h: New file.
68307         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68308         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68309         the config-h module is used.
68310
68311         New configmake module, so that "make" output needn't be cluttered
68312         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68313         * MODULES.html.sh (Support for building libraries and executables):
68314         Add configmake.
68315         * modules/configmake: New file.
68316
68317 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68318
68319         * m4/config-h.m4: New file.
68320
68321 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68322
68323         * config/srclist.txt: Add elisp-comp.
68324
68325 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68326
68327         * MODULES.html.sh (Support for building libraries and executables):
68328         Add elisp-comp.
68329         * build-aux/elisp-comp: New file.
68330         * modules/elisp-comp: New file.
68331
68332 2006-08-24  Bruno Haible  <bruno@clisp.org>
68333
68334         * gnulib-tool (func_create_testdir): Use non-default values of
68335         sourcebase and m4base.
68336
68337 2006-08-24  Bruno Haible  <bruno@clisp.org>
68338
68339         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68340         HTML structure.
68341
68342 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68343
68344         * modules/openat (Depends-on): Add lchown.
68345
68346 2006-08-23  Bruno Haible  <bruno@clisp.org>
68347
68348         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68349         of gl_LOCK_EARLY instead of gl_LOCK.
68350
68351 2006-08-23  Bruno Haible  <bruno@clisp.org>
68352
68353         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
68354         on OSF/1 to no.
68355         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
68356
68357 2006-08-23  Bruno Haible  <bruno@clisp.org>
68358
68359         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
68360         as unusable.
68361
68362         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
68363         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
68364         (gl_LOCK): New macro.
68365
68366 2006-08-22  Simon Josefsson  <jas@extundo.com>
68367
68368         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
68369         to md5 module.
68370
68371 2006-08-22  Simon Josefsson  <jas@extundo.com>
68372
68373         * MODULES.html.sh: Add "Support for maintaining and release
68374         projects".
68375
68376         * build-aux/gnupload: New file, from coreutils.
68377
68378 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68379
68380         Avoid the need for AC_LIBSOURCES in m4 macros.
68381         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
68382         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
68383         * modules/check-version (EXTRA_DIST): Add check-version.h.
68384         * modules/crc (EXTRA_DIST): Add crc.h.
68385         * modules/des (EXTRA_DIST): Add des.h.
68386         * modules/gc (EXTRA_DIST): Add gc.h.
68387         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
68388         * modules/getline (EXTRA_DIST): Add getline.h.
68389         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
68390         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
68391         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
68392         * modules/md2 (EXTRA_DIST): Add md2.h.
68393         * modules/md4 (EXTRA_DIST): Add md4.h.
68394         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
68395         * modules/read-file (EXTRA_DIST): Add read-file.h.
68396         * modules/readline (EXTRA_DIST): Add readline.h.
68397         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
68398         rijndael-api-fst.h.
68399
68400 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68401
68402         * m4/rijndael.m4 (gl_ARCFOUR):
68403         * m4/arctwo.m4 (gl_ARCTWO):
68404         * m4/check-version.m4 (gl_CHECK_VERSION):
68405         * m4/crc.m4 (gl_CRC):
68406         * m4/des.m4 (gl_DES):
68407         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
68408         * m4/gc.m4 (gl_GC):
68409         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
68410         * m4/getline.m4 (gl_FUNC_GETLINE):
68411         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
68412         * m4/hmac-md5.m4 (gl_HMAC_MD5):
68413         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
68414         * m4/md2.m4 (gl_MD2):
68415         * m4/md4.m4 (gl_MD4):
68416         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
68417         * m4/read-file.m4 (gl_FUNC_READ_FILE):
68418         * m4/readline.m4 (gl_FUNC_READLINE):
68419         * m4/rijndael.m4 (gl_RIJNDAEL):
68420         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68421         to get the necessary .h files and whatnot.
68422
68423 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68424
68425         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
68426         gnulib rather than the other way around.
68427         * config/srclistvars.sh (COREUTILS): Remove.
68428
68429 2006-08-22  Jim Meyering  <jim@meyering.net>
68430
68431         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
68432
68433         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
68434
68435 2006-08-22  Eric Blake  <ebb9@byu.net>
68436
68437         * modules/regexprops-generic: New file.
68438         * MODULES.html.sh (Support for building documentation): List it.
68439
68440 2006-08-22  Eric Blake  <ebb9@byu.net>
68441
68442         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
68443         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68444         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
68445         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
68446
68447 2006-08-22  Bruno Haible  <bruno@clisp.org>
68448
68449         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
68450         and lib_LTLIBRARIES like the other lib_* variables.
68451
68452 2006-08-22  Bruno Haible  <bruno@clisp.org>
68453
68454         * build-aux/x-to-1.in: New file, from GNU gettext.
68455
68456 2006-08-22  Bruno Haible  <bruno@clisp.org>
68457
68458         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68459         <utmpx.h> exists.
68460
68461 2006-08-22  Bruno Haible  <bruno@clisp.org>
68462
68463         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68464         <utmpx.h> exists.
68465
68466 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68467
68468         BeOS portability.
68469         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68470         exist.
68471         Problem reported by Bruno Haible.
68472
68473 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68474
68475         Avoid the need for AC_LIBSOURCES in m4 macros.
68476         * modules/acl (EXTRA_DIST): Add acl.h.
68477         * modules/argmatch (Files): Add m4/argmatch.m4.
68478         (configure.ac): Add gl_ARGMATCH.
68479         (EXTRA_DIST): Renamed from lib_SOURCES, for
68480         consistency with the other modules.  Remove argmatch.c.
68481         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68482         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68483         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
68484         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
68485         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
68486         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
68487         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
68488         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
68489         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
68490         * modules/closeout (EXTRA_DIST): Add closeout.h.
68491         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
68492         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
68493         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
68494         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
68495         dirname.h; remove basename.c and stripslash.c.
68496         * modules/exclude (EXTRA_DIST): Add exclude.h.
68497         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
68498         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
68499         * modules/file-type (EXTRA_DIST): Add file-type.h.
68500         * modules/filemode (EXTRA_DIST): Add filemode.h.
68501         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
68502         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68503         * modules/fpending (EXTRA_DIST): Add __fpending.h.
68504         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
68505         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
68506         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
68507         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
68508         * modules/getdate (EXTRA_DIST): Add getdate.c.
68509         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
68510         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
68511         * modules/getpass (EXTRA_DIST): Add getpass.h.
68512         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
68513         * modules/group-member (EXTRA_DIST): Add group-member.h.
68514         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
68515         * modules/hash (EXTRA_DIST): Add hash.h.
68516         * modules/human (EXTRA_DIST): Add human.h.
68517         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
68518         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
68519         * modules/lchown (EXTRA_DIST): Add lchown.h.
68520         * modules/long-options (EXTRA_DIST): Add long-options.h.
68521         * modules/lstat (EXTRA_DIST): Add lstat.h.
68522         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68523         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68524         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68525         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68526         * modules/memxor (EXTRA_DIST): Add memxor.h.
68527         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
68528         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
68529         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
68530         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
68531         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
68532         * modules/physmem (EXTRA_DIST): Add physmem.h.
68533         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
68534         * modules/posixver (EXTRA_DIST): Add posixver.h.
68535         * modules/quote (EXTRA_DIST): Add quote.h.
68536         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
68537         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
68538         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
68539         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
68540         regex_internal.h regexec.c.
68541         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
68542         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
68543         * modules/same (EXTRA_DIST): Add same.h.
68544         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
68545         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
68546         * modules/savedir (EXTRA_DIST): Add savedir.h.
68547         * modules/sha1 (EXTRA_DIST): Add sha1.h.
68548         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
68549         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
68550         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
68551         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
68552         * modules/strdup (EXTRA_DIST): Add strdup.h.
68553         * modules/strftime (EXTRA_DIST): Add strftime.h.
68554         * modules/strndup (EXTRA_DIST): Add strndup.h.
68555         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
68556         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
68557         * modules/time_r (EXTRA_DIST): Add time_r.h.
68558         * modules/timespec (EXTRA_DIST): Add timespec.h.
68559         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68560         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
68561         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
68562         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
68563         * modules/userspec (EXTRA_DIST): Add userspec.h.
68564         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
68565         * modules/utimens (EXTRA_DIST): Add utimens.h.
68566         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
68567         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
68568         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
68569         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
68570         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
68571         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
68572         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
68573         * modules/yesno (EXTRA_DIST): Add yesno.h.
68574
68575 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68576
68577         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
68578
68579         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
68580         * m4/dev-ino.m4, same-inode.m4: Remove.
68581
68582         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
68583         * m4/acl.m4 (AC_FUNC_ACL):
68584         * m4/backupfile.m4 (gl_BACKUPFILE):
68585         * m4/c-strtod.m4 (gl_C99_STRTOLD):
68586         * m4/canon-host.m4 (gl_CANON_HOST):
68587         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68588         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
68589         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
68590         * m4/cloexec.m4 (gl_CLOEXEC):
68591         * m4/close-stream.m4 (gl_CLOSE_STREAM):
68592         * m4/closeout.m4 (gl_CLOSEOUT):
68593         * m4/dirfd.m4 (gl_FUNC_DIRFD):
68594         * m4/dirname.m4 (gl_DIRNAME):
68595         * m4/exclude.m4 (gl_EXCLUDE):
68596         * m4/exitfail.m4 (gl_EXITFAIL):
68597         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
68598         * m4/file-type.m4 (gl_FILE_TYPE):
68599         * m4/filemode.m4 (gl_FILEMODE):
68600         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
68601         * m4/fpending.m4 (gl_FUNC_FPENDING):
68602         * m4/fprintftime.m4 (gl_FPRINTFTIME):
68603         * m4/fts.m4 (gl_FUNC_FTS):
68604         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
68605         * m4/getdate.m4 (gl_GETDATE):
68606         * m4/gethrxtime.m4 (gl_GETHRXTIME):
68607         * m4/getpagesize.m4 (gl_GETPAGESIZE):
68608         * m4/getpass.m4 (gl_FUNC_GETPASS):
68609         * m4/gettime.m4 (gl_GETTIME):
68610         * m4/getugroups.m4 (gl_GETUGROUPS):
68611         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
68612         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
68613         * m4/hard-locale.m4 (gl_HARD_LOCALE):
68614         * m4/hash.m4 (gl_HASH):
68615         * m4/idcache.m4 (gl_IDCACHE):
68616         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
68617         * m4/lchown.m4 (gl_FUNC_LCHOWN):
68618         * m4/long-options.m4 (gl_LONG_OPTIONS):
68619         * m4/lstat.m4 (gl_FUNC_LSTAT):
68620         * m4/md5.m4 (gl_MD5):
68621         * m4/memcasecmp.m4 (gl_MEMCASECMP):
68622         * m4/memcoll.m4 (gl_MEMCOLL):
68623         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
68624         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
68625         * m4/memxor.m4 (gl_MEMXOR):
68626         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
68627         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
68628         * m4/modechange.m4 (gl_MODECHANGE):
68629         * m4/mountlist.m4 (gl_MOUNTLIST):
68630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68631         * m4/openat.m4 (gl_FUNC_OPENAT):
68632         * m4/pathmax.m4 (gl_PATHMAX):
68633         * m4/physmem.m4 (gl_PHYSMEM):
68634         * m4/posixtm.m4 (gl_POSIXTM):
68635         * m4/posixver.m4 (gl_POSIXVER):
68636         * m4/quote.m4 (gl_QUOTE):
68637         * m4/quotearg.m4 (gl_QUOTEARG):
68638         * m4/readtokens.m4 (gl_READTOKENS):
68639         * m4/readutmp.m4 (gl_READUTMP):
68640         * m4/regex.m4 (gl_REGEX):
68641         * m4/safe-read.m4 (gl_SAFE_READ):
68642         * m4/safe-write.m4 (gl_SAFE_WRITE):
68643         * m4/same.m4 (gl_SAME):
68644         * m4/save-cwd.m4 (gl_SAVE_CWD):
68645         * m4/savedir.m4 (gl_SAVEDIR):
68646         * m4/settime.m4 (gl_SETTIME):
68647         * m4/sha1.m4 (gl_SHA1):
68648         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
68649         * m4/stat-macros.m4 (gl_STAT_MACROS):
68650         * m4/stat-time.m4 (gl_STAT_TIME):
68651         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
68652         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
68653         * m4/strdup.m4 (gl_FUNC_STRDUP):
68654         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
68655         * m4/strndup.m4 (gl_FUNC_STRNDUP):
68656         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
68657         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
68658         * m4/time_r.m4 (gl_TIME_R):
68659         * m4/timespec.m4 (gl_TIMESPEC):
68660         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
68661         * m4/unlinkdir.m4 (gl_UNLINKDIR):
68662         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
68663         * m4/userspec.m4 (gl_USERSPEC):
68664         * m4/utimecmp.m4 (gl_UTIMECMP):
68665         * m4/utimens.m4 (gl_UTIMENS):
68666         * m4/xalloc.m4 (gl_XALLOC):
68667         * m4/xgetcwd.m4 (gl_XGETCWD):
68668         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
68669         * m4/xreadlink.m4 (gl_XREADLINK):
68670         * m4/xstrtod.m4 (gl_XSTRTOD):
68671         * m4/yesno.m4 (gl_YESNO):
68672         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68673         to get the necessary .h files and whatnot.
68674
68675 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
68676             Bruno Haible  <bruno@clisp.org>
68677
68678         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
68679         /bin/sh understanding of '!' conditional negation.
68680
68681 2006-08-21  Jim Meyering  <jim@meyering.net>
68682
68683         * modules/openat (Depends-on): Really alphabetize.
68684
68685         * modules/acl (Depends-on): Add error and quote.
68686
68687         * check-module (find_included_lib_files): Add at-func.c to the
68688         ok-to-include-more-than-once white list.
68689
68690         * modules/openat (Depends-on): Add lstat.  Alphabetize.
68691
68692 2006-08-21  Bruno Haible  <bruno@clisp.org>
68693
68694         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68695         Emit a pkgdata_DATA variable only if some snippets add contents to it.
68696         Reported by Martin Lambers <marlam@marlam.de>.
68697
68698 2006-08-21  Bruno Haible  <bruno@clisp.org>
68699
68700         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
68701         specify an installation location, don't emit a noinst_LIBRARIES or
68702         noinst_LTLIBRARIES assignment.
68703
68704 2006-08-21  Bruno Haible  <bruno@clisp.org>
68705
68706         BeOS portability.
68707         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
68708         BeOS has mbrtowc() but no <wctype.h>.
68709
68710 2006-08-21  Bruno Haible  <bruno@clisp.org>
68711
68712         BeOS portability.
68713         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
68714         exist.
68715
68716 2006-08-21  Bruno Haible  <bruno@clisp.org>
68717
68718         BeOS portability.
68719         * lib/mbchar.h: Include <wctype.h> only if it exists.
68720
68721 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68722
68723         Remove files that are no longer needed by their respective modules.
68724         * m4/obstack.m4: Remove.
68725         * m4/strerror_r.m4: Remove.
68726         * m4/uint32_t.m4: Remove.
68727         * m4/uintptr_t.m4: Remove.
68728         * m4/ullong_max.m4: Remove.
68729         * m4/xstrtoimax.m4: Remove.
68730         * m4/xstrtoumax.m4: Remove.
68731
68732         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
68733         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
68734         dependencies now capture this.
68735
68736         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
68737         Do not use AC_LIBSOURCES, since gnulib modules now do this.
68738         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
68739         * m4/human.m4 (gl_HUMAN): Likewise.
68740         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
68741         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
68742
68743         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
68744
68745         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
68746         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
68747         stdint.
68748         * m4/human.m4 (gl_HUMAN): Likewise.
68749         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
68750         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
68751         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68752         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68753         * m4/xstrtol (gl_XSTRTOL): Likewise.
68754
68755         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
68756         AC_TYPE_LONG_LONG_INT.
68757         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68758         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
68759         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
68760         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68761
68762         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
68763         on stdbool.
68764
68765         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
68766         (gl_PREREQ_XSTRTOUL): Remove.
68767
68768         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
68769
68770         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
68771         mode.
68772
68773 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68774
68775         Add and change modules to make it easier for coreutils to use
68776         gnulib-tool.
68777         * modules/backupfile (Files): Remove m4/d-ino.m4.
68778         (Depends-on): Add d-ino.
68779         * modules/cycle-check (Depends-on): Add stdint.
68780         (lib_SOURCES): Add cycle-check.h.
68781         * modules/d-ino: New module.
68782         * modules/d-type: New module.
68783         * modules/error (Files): Remove m4/strerror_r.m4.
68784         * modules/filemode (Files): Add m4/st_dm_mode.m4.
68785         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68786         m4/inttypes_h.m4, m4/uintmax_t.m4.
68787         (Depends-on): Add stdint.
68788         (lib_SOURCES): Add fsusage.h.
68789         * modules/getcwd (Files): Remove d-ino.m4.
68790         (Depends-on): Add d-ino.
68791         * modules/getndelim2 (Depends-on): Add stdint.
68792         * modules/glob (Files): Remove m4/d-type.m4.
68793         (Depends-on): Add d-type.
68794         * modules/host-os: New module.
68795         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
68796         m4/inttypes_h.m4, m4/uintmax_t.m4.
68797         * Depends-on: Add stdint.
68798         (lib_SOURCES): Add human.h.
68799         * modules/inttostr (Files): Remove m4/intmax_t.m4,
68800         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
68801         m4/uintmax_t.m4, m4/ulonglong.m4.
68802         (Depends-on): Add stdint.
68803         (EXTRA_DIST): Add inttostr.h.
68804         * modules/lchmod: New module.
68805         * modules/link-follow: New module.
68806         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
68807         (Depends-on): Add lchmod.
68808         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
68809         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
68810         (Depends-on): Add stdint.
68811         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
68812         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
68813         (Depends-on): Add stdint.
68814         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
68815         * modules/perl: New module.
68816         * modules/regex (Depends-on): Add stdint.
68817         * modules/rmdir-errno: New module.
68818         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68819         m4/intmax_t.m4.
68820         (Depends-on): Add stdint.
68821         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68822         m4/uintmax_t.m4.
68823         (Depends-on): Add stdint.
68824         * modules/unlink-busy: New module.
68825         * modules/utimecmp (Depends-on): Add stdint.
68826         * modules/uptime: New module.
68827         * modules/winsz-ioctl: New module.
68828         * modules/winsz-termios: New module.
68829         * modules/xnanosleep (Depends-on): Add nanosleep.
68830         * modules/ullong_max: Remove.
68831         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
68832         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
68833         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
68834         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
68835         (Depends-on): Add inttypes.
68836         (lib_SOURCES): Add xstrtol.h.
68837         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
68838         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
68839         * MODULES.html.sh: Move 'assert' into the assert section.
68840         Move 'dummy' into the linking section.
68841         Remove ullong_max.
68842         Add section for compatibility checks for POSIX:2001 functions,
68843         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
68844         winsz-ioctl, and winsz-termios into it.
68845         Add lchmod.
68846         Add top-level Misc section and put host-os, perl, and uptime
68847         into it.
68848
68849 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68850
68851         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
68852         now assume the stdint module.  Do not include inttypes.h.
68853         * lib/fsusage.h: Likewise.
68854         * lib/getndelim2.c: Likewise.
68855         * lib/human.h: Likewise.
68856         * lib/inttostr.h: Likewise.
68857         * lib/obstack.c: Likewise.
68858         * lib/regex_internal.h: Likewise.
68859         * lib/tempname.c: Likewise.
68860         * lib/utimecmp.c: Likewise.
68861         * lib/xstrtol.h: Likewise.
68862
68863         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
68864
68865         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
68866         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
68867         * lib/xtime.h: Likewise.
68868
68869 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68870
68871         * modules/openat (Files): Add lib/fchmodat.c.
68872         Fixes problem reported by Jay Youngman.
68873
68874 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68875
68876         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
68877         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
68878
68879 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
68880             Bruno Haible  <bruno@clisp.org>
68881
68882         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
68883         and is a script that invokes bison. Tighten the code. Add comments.
68884
68885 2006-08-18  Jim Meyering  <jim@meyering.net>
68886
68887         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
68888         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
68889         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
68890         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
68891
68892 2006-08-18  Bruno Haible  <bruno@clisp.org>
68893
68894         * modules/bison-i18n: New file.
68895         * MODULES.html.sh (Internationalization functions): Add it.
68896
68897 2006-08-18  Bruno Haible  <bruno@clisp.org>
68898
68899         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
68900         sys/statvfs.h. When getmntinfo was found, check its declaration and
68901         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
68902
68903 2006-08-18  Bruno Haible  <bruno@clisp.org>
68904
68905         * m4/bison-i18n.m4: New file, from bison.
68906
68907 2006-08-18  Bruno Haible  <bruno@clisp.org>
68908
68909         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
68910         (ME_DUMMY): Treat "kernfs" as a dummy.
68911         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
68912
68913 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68914
68915         Update from coreutils.
68916
68917         2006-08-15  Jim Meyering  <jim@meyering.net>
68918
68919         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
68920
68921         2006-01-17  Jim Meyering  <jim@meyering.net>
68922
68923         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
68924
68925         2006-01-11  Jim Meyering  <jim@meyering.net>
68926
68927         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
68928         Check for the lchmod function.
68929
68930 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68931
68932         Update from coreutils.
68933
68934         * lib/__fpending.h: Add copyright notice.
68935         * lib/fprintftime.h: Likewise.
68936         * lib/savedir.c: Use (C) in copyright notice.
68937         * lib/savedir.h: Likewise.
68938
68939         2006-08-15  Jim Meyering  <jim@meyering.net>
68940
68941         * lib/at-func.c: New file, with the logic of all emulated at-functions.
68942         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
68943         in support of the EXPECTED_ERRNO macro.
68944         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
68945         definitions.  Instead, define the appropriate symbols and include
68946         "at-func.c".
68947         * lib/mkdirat.c (mkdirat): Likewise.
68948         * lib/fchmodat.c (fchmodat): Likewise.
68949         (ENOSYS): Remove definition.
68950         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
68951         it.  Don't include "unistd--.h" -- it wasn't ever used.
68952
68953         2006-01-17  Jim Meyering  <jim@meyering.net>
68954
68955         Rewrite fts.c not to change the current working directory,
68956         by using openat, fstatat, fdopendir, etc..
68957
68958         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
68959         (HAVE_OPENAT_SUPPORT): Define.
68960         [_LIBC] (fchdir): Don't undef or define; no longer used.
68961         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
68962         Now, this `function' always succeeds, and consumes its file descriptor
68963         parameter -- so callers must not close such FDs.  Update callers.
68964         (diropen_fd, opendirat, cwd_advance_fd): New functions.
68965         (diropen): Add parameter, SP.  Adjust all callers.
68966         Implement using diropen_fd, rather than open.
68967         (fts_open): Initialize new member, fts_cwd_fd.
68968         Remove fts_rft-setting code.
68969         (fts_close): Close fts_cwd_fd, if necessary.
68970         (__opendir2): Define in terms of opendir or opendirat,
68971         depending on whether the FST_NOCHDIR flag is set.
68972         (fts_build): Since fts_safe_changedir consumes its FD, and since
68973         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
68974         and close the dup'd file descriptor upon failure.
68975         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
68976         (fts_safe_changedir): Tweak semantics to reflect that this function
68977         now calls cwd_advance_fd and hence consumes its FD argument.
68978         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
68979         [struct FTS] (fts_rft): Remove now-unused member.
68980         [struct FTS] (fts_cycle.state): Improve comment.
68981
68982         * lib/openat.c (openat_needs_fchdir): New function.
68983         * lib/openat.h (openat_needs_fchdir): Declare it.
68984
68985 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68986
68987         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
68988         Problem and fix reported by Pádraig Brady in
68989         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
68990
68991 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68992
68993         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
68994
68995 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68996
68997         * lib/memcoll.c (memcoll): Optimize for the common case where the
68998         arguments are bytewise equal.
68999
69000 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69001
69002         * doc/regexprops-generic.texi: Add a copyright notice.
69003
69004 2006-08-15  Bruno Haible  <bruno@clisp.org>
69005
69006         * modules/tmpdir (License): Change to LGPL.
69007
69008 2006-08-15  Bruno Haible  <bruno@clisp.org>
69009
69010         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69011         module.
69012
69013 2006-08-14  Simon Josefsson  <jas@extundo.com>
69014
69015         * config/srclist.txt: Add gnupload.
69016
69017 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69018
69019         Change copyright notice from LGPL 2 to GPL 2, since that's the
69020         standard form used in the gnulib repository.
69021         * tests/test-lock.c: Likewise.
69022         * tests/test-stdint.c: Likewise.
69023         * tests/test-tls.c: Likewise.
69024
69025         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69026         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69027         Add copyright notice.
69028
69029         * check-module: Add copyright notice.  Output a copyright
69030         notice if "--version" is specified.
69031         * modules/COPYING: New file.
69032         * tests/test-getaddrinfo.c: Add copyright notice.
69033         * tests/test-verify.c: Likewise.
69034
69035 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69036
69037         Change copyright notice from LGPL 2 to GPL 2, since that's the
69038         standard form used in the gnulib repository.
69039         * lib/lock.c: LGPL -> GPL.
69040         * lib/lock.h: Likewise.
69041         * lib/strnlen1.c: Likewise.
69042         * lib/strnlen1.h: Likewise.
69043         * lib/tls.c: Likewise.
69044         * lib/tls.h: Likewise.
69045         * lib/tmpdir.c: Likewise.
69046
69047         * lib/TODO: Remove; this belongs only in coreutils.
69048
69049 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69050
69051         Add copyright notices to long-enough files that lack them, since
69052         otherwise the files aren't clearly free.  Use the same notice that
69053         getdate.texi already uses.
69054         * doc/alloca-opt.texi: Add copyright notice.
69055         * doc/alloca.texi: Likewise.
69056         * doc/ctime.texi: Likewise.
69057         * doc/functions.texi: Likewise.
69058         * doc/gcd.texi: Likewise.
69059         * doc/gnulib-tool.texi: Likewise.
69060         * doc/inet_ntoa.texi: Likewise.
69061         * doc/visibility.texi: Likewise.
69062
69063         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69064         * doc/quote.texi: Add copyright notice.
69065
69066         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69067         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69068         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69069         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69070         is now obsolete, and give a pointer to the Sun list.
69071         Add copyright notice.
69072
69073 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69074
69075         * config/srclistvars.sh: Add copyright notice.
69076
69077 2006-08-14  Eric Blake  <ebb9@byu.net>
69078
69079         Import the following change from libc:
69080
69081         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69082
69083         Upstream bug 2997.
69084         * lib/misc/error.c: Add space between program name and message if file
69085         name is missing.
69086
69087 2006-08-12  Karl Berry  <karl@gnu.org>
69088
69089         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69090         remove, these originate in gnulib now.
69091
69092 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69093
69094         * doc/Makefile (standards.info standards.html standards.dvi):
69095         Also depend on make-stds.texi.
69096
69097 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69098
69099         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69100         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69101
69102         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69103         in wchar_t.  Problem reported by Eric Blake.
69104
69105         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69106         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69107         Also, help the compiler to keep LEN in a register.
69108
69109 2006-08-11  Eric Blake  <ebb9@byu.net>
69110
69111         * users.txt: Sort.  Add tar.
69112
69113 2006-08-11  Bruno Haible  <bruno@clisp.org>
69114
69115         * users.txt: New file.
69116
69117 2006-08-11  Bruno Haible  <bruno@clisp.org>
69118
69119         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69120         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69121
69122 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69123
69124         * modules/snprintf (Depends-on): Remove minmax.
69125         (Maintainer): Add self and Bruno.
69126
69127 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69128
69129         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69130         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69131         (EOVERFLOW): Define if the system does not.
69132         Do not include "minmax.h"; it wasn't used.
69133         (snprintf): Don't assume size_t promotes to an unsigned type.
69134         Fix bug when generated string was too long for the buffer: the
69135         buffer's contents are supposed to be the initial prefix of the
69136         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69137         exceeds INT_MAX; do the check ourselves.
69138
69139         Import the following changes from libc:
69140
69141         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69142
69143         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69144         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69145         set wc to the byte which couldn't be converted.
69146         (re_string_reconstruct): Don't clear valid_raw_len before calling
69147         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69148         tip_context using re_string_context_at.
69149
69150         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69151
69152         * lib/posix/regex.h: g++ still cannot handled [restrict].
69153
69154         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69155
69156         * lib/posix/regex.h: Remove special handling for VMS.
69157
69158 2006-08-10  Jim Meyering  <jim@meyering.net>
69159
69160         * modules/same-inode: New module.
69161         * modules/dev-ino: New module.
69162         * modules/cycle-check: Depend on these modules, rather than simply
69163         including their .h files.
69164         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69165         required via m4/cycle-check.m4.
69166         * modules/same: Depend on new same-inode module, rather than
69167         including same-inode.h.
69168         * modules/chdir-safer: New file.
69169
69170         * modules/chown (Depends-on): Add stat-macros.
69171
69172 2006-08-10  Jim Meyering  <jim@meyering.net>
69173
69174         * m4/cycle-check.m4: New file.
69175         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69176         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69177
69178 2006-08-10  Eric Blake  <ebb9@byu.net>
69179
69180         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69181         in from original proposal.
69182
69183 2006-08-10  Eric Blake  <ebb9@byu.net>
69184         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69185
69186         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69187         namespace.
69188
69189 2006-08-10  Bruno Haible  <bruno@clisp.org>
69190
69191         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69192         as well.
69193
69194 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69195
69196         Sync from coreutils.
69197
69198         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69199
69200         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69201         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69202
69203 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69204
69205         * modules/restrict: Remove; no longer needed now that we assume
69206         Autoconf 2.59 or later.
69207         * MODULES.html.sh: Remove 'restrict'.
69208         * modules/argp (Depends-on): Remove 'restrict'.
69209         * modules/base64 (Depends-on): Likewise.
69210         * modules/gc (Depends-on): Likewise.
69211         * modules/getaddrinfo (Depends-on): Likewise.
69212         * modules/glob (Depends-on): Likewise.
69213         * modules/inet_ntop (Depends-on): Likewise.
69214         * modules/inet_pton (Depends-on): Likewise.
69215         * modules/memxor (Depends-on): Likewise.
69216         * modules/regex (Depends-on): Likewise.
69217         * modules/strtok_r (Depends-on): Likewise.
69218         * modules/time_r (Depends-on): Likewise.
69219
69220 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69221
69222         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69223         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69224         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69225         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69226         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69227         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69228         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69229         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69230
69231         Merge from coreutils.
69232         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69233         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69234         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69235         * m4/time_r.m4 (gl_TIME_R): Likewise.
69236
69237 2006-08-09  Karl Berry  <karl@gnu.org>
69238
69239         * config/srclist.txt: no more gettext-tools, per Bruno.
69240
69241 2006-08-08  Eric Blake  <ebb9@byu.net>
69242
69243         * modules/verror: New module.
69244         * MODULES.html.sh: Document it.
69245
69246 2006-08-08  Eric Blake  <ebb9@byu.net>
69247
69248         * lib/verror.h, lib/verror.c: New files.
69249
69250 2006-08-08  Eric Blake  <ebb9@byu.net>
69251
69252         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69253         verror_at_line output complies with GNU Coding Standards even when
69254         file is NULL.
69255
69256 2006-08-07  Bruno Haible  <bruno@clisp.org>
69257
69258         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69259         versions of AIX.
69260         Reported by Ralf Wildenhues.
69261
69262 2006-08-07  Bruno Haible  <bruno@clisp.org>
69263
69264         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69265         in an AC_DEFUN. Needed so that the autoconf snippets can use
69266         AC_REQUIRE.
69267
69268 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69269
69270         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69271         Initialize pkgdata_DATA.
69272         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69273         overriding it.
69274
69275 2006-08-06  Eric Blake  <ebb9@byu.net>
69276
69277         * lib/error.h: Fold in some upstream changes from glibc.
69278         * lib/error.c: Likewise.
69279
69280 2006-08-04  Bruno Haible  <bruno@clisp.org>
69281
69282         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69283         Make the mostlyclean-local rule depend on mostlyclean-generic.
69284         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69285
69286 2006-07-31  Bruno Haible  <bruno@clisp.org>
69287
69288         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69289         <stdlib.h>, <string.h>.
69290
69291 2006-07-30  Bruno Haible  <bruno@clisp.org>
69292
69293         * modules/readlink (License): Change to LGPL.
69294
69295 2006-07-30  Bruno Haible  <bruno@clisp.org>
69296
69297         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69298         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69299         set PKGDATADIR to point to it.
69300
69301 2006-07-30  Bruno Haible  <bruno@clisp.org>
69302
69303         * modules/csharpexec (configure.ac): Comment out macro invocation.
69304         * modules/javaexec (configure.ac): Likewise.
69305         * modules/javacomp-script (configure.ac): Likewise.
69306
69307         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69308
69309 2006-07-30  Bruno Haible  <bruno@clisp.org>
69310
69311         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69312         linked-list.
69313
69314 2006-07-30  Bruno Haible  <bruno@clisp.org>
69315
69316         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69317
69318 2006-07-30  Bruno Haible  <bruno@clisp.org>
69319
69320         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69321         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69322         get removed.
69323
69324 2006-07-29  Bruno Haible  <bruno@clisp.org>
69325
69326         Make it possible for gnulib-tool to work with locally modified or
69327         augmented gnulib repositories.
69328         * gnulib-tool (func_usage): Document --local-dir option.
69329         (local_gnulib_dir): New variable.
69330         Handle --local-dir option.
69331         (func_lookup_file): New function.
69332         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69333         (func_get_description, func_get_filelist, func_get_description,
69334         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69335         func_get_automake_snippet, func_get_include_directive,
69336         func_get_license, func_get_maintainer): Use func_lookup_file.
69337         (func_import, func_create_testdir): Use func_lookup_file.
69338
69339 2006-07-29  Bruno Haible  <bruno@clisp.org>
69340
69341         * modules/setenv (Depends-on): Add unistd.
69342
69343 2006-07-29  Bruno Haible  <bruno@clisp.org>
69344
69345         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69346
69347 2006-07-29  Bruno Haible  <bruno@clisp.org>
69348
69349         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69350
69351 2006-07-29  Bruno Haible  <bruno@clisp.org>
69352
69353         * gnulib-tool (import, update): If there is no Makefile.am, look at
69354         aclocal.m4, instead of bailing out.
69355
69356 2006-07-29  Bruno Haible  <bruno@clisp.org>
69357
69358         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
69359         Categorize the options by when they are useful.
69360
69361 2006-07-29  Bruno Haible  <bruno@clisp.org>
69362
69363         * gnulib-tool (func_usage): Document option --no-libtool.
69364         Handle option --no-libtool.
69365         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
69366         for changed semantics of $libtool variable.
69367         (func_import): Likewise. If libtool is not used, show this through
69368         an option --no-libtool.
69369         (func_create_testdir): Update.
69370
69371 2006-07-29  Bruno Haible  <bruno@clisp.org>
69372
69373         * gnulib-tool (func_import): Extend error message about missing
69374         --doc-base.
69375
69376 2006-07-29  Bruno Haible  <bruno@clisp.org>
69377
69378         * gnulib-tool (func_import): Don't create the $docbase directory if
69379         there is no file to store there.
69380
69381 2006-07-29  Bruno Haible  <bruno@clisp.org>
69382
69383         * gnulib-tool (autoconf_minversion): If a --dir option is given and
69384         relevant, look for configure.ac there, not in the current directory.
69385         Also use a simple search for AC_PREREQ, not "autoconf --trace".
69386
69387 2006-07-29  Bruno Haible  <bruno@clisp.org>
69388
69389         * gnulib-tool (SORT): New variable.
69390         (func_usage): Undocument --assume-autoconf option.
69391         Remove --assume-autoconf option handling.
69392         (autoconf_minversion): Determine from the contents of configure.ac.
69393         (func_import): Remove autoconf_minversion handling.
69394         Suggested by Eric Blake.
69395
69396 2006-07-29  Bruno Haible  <bruno@clisp.org>
69397
69398         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
69399
69400 2006-07-29  Bruno Haible  <bruno@clisp.org>
69401
69402         * config/srclist.txt (*setenv.[ch]): Remove rules.
69403
69404 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69405
69406         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
69407
69408 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69409
69410         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
69411         arpa/inet.h.
69412
69413 2006-07-28  Simon Josefsson  <jas@extundo.com>
69414
69415         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
69416         * modules/inet_pton (Depends-on): Likewise.
69417
69418 2006-07-28  Simon Josefsson  <jas@extundo.com>
69419
69420         * m4/netinet_in_h.m4: New file.
69421
69422 2006-07-28  Simon Josefsson  <jas@extundo.com>
69423
69424         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
69425         #include's.
69426
69427 2006-07-28  Simon Josefsson  <jas@extundo.com>
69428
69429         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
69430         #include's.
69431
69432 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
69433
69434         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
69435         setgid on directories only if they set these bits.
69436         * lib/modechange.h: Remove obsolete comment about masks.
69437
69438 2006-07-28  Eric Blake  <ebb9@byu.net>
69439
69440         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
69441         macro expansion.
69442
69443 2006-07-28  Bruno Haible  <bruno@clisp.org>
69444
69445         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
69446
69447 2006-07-28  Bruno Haible  <bruno@clisp.org>
69448
69449         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
69450
69451 2006-07-28  Bruno Haible  <bruno@clisp.org>
69452
69453         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69454         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69455         Define fallbacks.
69456         Avoids link error on FreeBSD 4.x.
69457         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69458
69459         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69460         encoding.
69461         * lib/mbswidth.c (iswcntrl): Likewise.
69462
69463 2006-07-27  Bruno Haible  <bruno@clisp.org>
69464
69465         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69466         test.
69467
69468 2006-07-27  Bruno Haible  <bruno@clisp.org>
69469
69470         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69471         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69472         defined.
69473
69474 2006-07-26  Eric Blake  <ebb9@byu.net>
69475
69476         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69477
69478 2006-07-26  Eric Blake  <ebb9@byu.net>
69479
69480         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69481         like mingw that lack mkstemp.
69482         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69483         avoid compilation warning on mingw.
69484
69485 2006-07-26  Bruno Haible  <bruno@clisp.org>
69486
69487         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
69488         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
69489         INT_FAST*_MIN, INTPTR_MIN.
69490
69491 2006-07-25  Bruno Haible  <bruno@clisp.org>
69492
69493         * modules/version-etc (Depends-on): Add stdarg.
69494
69495 2006-07-25  Bruno Haible  <bruno@clisp.org>
69496
69497         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
69498         complex commands.
69499
69500 2006-07-25  Bruno Haible  <bruno@clisp.org>
69501
69502         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
69503         defined in <stdarg.h> or config.h.
69504
69505 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69506
69507         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
69508         (gl_STDIO_SAFER): Remove.
69509
69510 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69511
69512         * MODULES.html.sh (File stream based Input/Output):
69513         Add fopen-safer, tmpfile-safer; remove stdio-safer.
69514         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
69515         * modules/fopen-safer, modules/tmpfile-safer: New files.
69516         * modules/stdio-safer: Remove.
69517
69518 2006-07-24  Bruno Haible  <bruno@clisp.org>
69519
69520         * modules/tmpdir: New file.
69521         * MODULES.html.sh (File system functions): Add it.
69522
69523 2006-07-24  Bruno Haible  <bruno@clisp.org>
69524
69525         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69526         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
69527
69528 2006-07-24  Bruno Haible  <bruno@clisp.org>
69529
69530         * modules/clean-temp: New file.
69531
69532 2006-07-24  Bruno Haible  <bruno@clisp.org>
69533
69534         * m4/tmpdir.m4: New file, from GNU gettext.
69535
69536 2006-07-24  Bruno Haible  <bruno@clisp.org>
69537
69538         * lib/tmpdir.h: New file, from GNU gettext.
69539         * lib/tmpdir.c: New file, from GNU gettext.
69540
69541 2006-07-24  Bruno Haible  <bruno@clisp.org>
69542
69543         * lib/clean-temp.h: New file, from GNU gettext.
69544         * lib/clean-temp.c: New file, from GNU gettext.
69545
69546 2006-07-23  Eric Blake  <ebb9@byu.net>
69547
69548         * modules/stdio-safer (Files): Add tmpfile-safer.c.
69549         (Depends-on): Add binary-io.
69550
69551 2006-07-23  Eric Blake  <ebb9@byu.net>
69552
69553         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
69554
69555 2006-07-23  Eric Blake  <ebb9@byu.net>
69556
69557         * lib/tmpfile-safer.c: New file.
69558         * lib/stdio-safer.h (fopen_safer): Add prototype.
69559         * lib/stdio--.h (tmpfile): Make safer.
69560
69561 2006-07-23  Bruno Haible  <bruno@clisp.org>
69562
69563         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
69564         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
69565         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
69566         gl_linked_remove_at): Use it.
69567
69568 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69569         and Simon Josefsson <jas@extundo.com>
69570
69571         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
69572
69573         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
69574
69575 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69576
69577         * modules/close-stream: New file.
69578         * modules/closeout (Description): Make it clear that it exits
69579         with a diagnostic on error.
69580         (Depends-on): Add close-stream.  Remove fpending, stdbool.
69581         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
69582
69583 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69584
69585         * m4/close-stream.m4: New file.
69586
69587 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69588
69589         * lib/close-stream.c, lib/close-stream.h: New files.
69590
69591 2006-07-22  Bruno Haible  <bruno@clisp.org>
69592
69593         Merge from GNU gettext 0.15.
69594
69595         2006-05-01  Bruno Haible  <bruno@clisp.org>
69596
69597                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
69598
69599         2006-07-22  Bruno Haible  <bruno@clisp.org>
69600
69601                 * modules/javaversion: New file.
69602                 * MODULES.html.sh (Java): Add javaversion.
69603
69604         2006-03-12  Bruno Haible  <bruno@clisp.org>
69605
69606                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
69607
69608         2005-12-04  Bruno Haible  <bruno@clisp.org>
69609
69610                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
69611                 (untested).
69612
69613         2006-06-21  Bruno Haible  <bruno@clisp.org>
69614
69615                 Avoid warnings from recent versions of mcs.
69616                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
69617                 -o, -L, -r any more. Use options documented since mcs-1.0
69618                 instead. Similarly for -g.
69619
69620         2005-12-04  Bruno Haible  <bruno@clisp.org>
69621
69622                 * build-aux/csharpcomp.sh.in: Suffix for resources is
69623                 .resources, not .resource.
69624
69625         2005-07-09  Bruno Haible  <bruno@clisp.org>
69626
69627                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
69628                 add a .dll suffix.
69629                 Reported by Mark Junker <mjscod@gmx.de>.
69630
69631         2006-07-22  Bruno Haible  <bruno@clisp.org>
69632
69633                 * modules/gettext: Upgrade to gettext-0.15.
69634                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
69635                 m4/visibility.m4.
69636                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
69637
69638 2006-07-22  Bruno Haible  <bruno@clisp.org>
69639
69640         Merge from GNU gettext 0.15.
69641
69642         2006-03-25  Bruno Haible  <bruno@clisp.org>
69643
69644                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
69645
69646         2006-07-21  Bruno Haible  <bruno@clisp.org>
69647
69648                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
69649                 "1.1".
69650
69651         2006-05-09  Bruno Haible  <bruno@clisp.org>
69652
69653                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
69654                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
69655                 for the conftestver execution.
69656
69657         2006-05-01  Bruno Haible  <bruno@clisp.org>
69658
69659                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
69660                 optional target-version argument. Verify that the compiler
69661                 groks source of the specified source-version, or add -source
69662                 option as necessary. Verify that the compiler produces
69663                 bytecode in the specified target-version, or add -target and
69664                 -source options as necessary. Make the result of the test
69665                 available as variable CONF_JAVAC. Also log error output in
69666                 config.log.
69667
69668         2006-03-11  Bruno Haible  <bruno@clisp.org>
69669
69670                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
69671
69672         2006-05-09  Bruno Haible  <bruno@clisp.org>
69673
69674                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
69675                 CLASSPATH_SEPARATOR to a semicolon.
69676
69677         2006-03-12  Bruno Haible  <bruno@clisp.org>
69678
69679                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
69680                 available as variable CONF_JAVA, for subsequent autoconf
69681                 tests. Also log error output in config.log.
69682
69683         2006-07-19  Bruno Haible  <bruno@clisp.org>
69684
69685                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
69686                 that getline works on glibc2 systems. Needed to avoid trouble
69687                 in relocatable.c.
69688                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
69689
69690         2005-12-04  Bruno Haible  <bruno@clisp.org>
69691
69692                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
69693                 launcher (untested).
69694
69695         2005-12-04  Bruno Haible  <bruno@clisp.org>
69696
69697                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
69698
69699         2006-07-22  Bruno Haible  <bruno@clisp.org>
69700
69701                 * gettext.m4: Update from GNU gettext-0.15.
69702                 * nls.m4: Likewise.
69703                 * po.m4: Likewise.
69704                 * inttypes-pri.m4: Likewise.
69705                 * inttypes-h.m4: Renamed from inttypes.m4.
69706                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
69707
69708 2006-07-22  Bruno Haible  <bruno@clisp.org>
69709
69710         Merge from GNU gettext 0.15.
69711
69712         2005-07-05  Bruno Haible  <bruno@clisp.org>
69713
69714                 * printf-args.c (printf_fetchargs): Work around broken
69715                 definition of wint_t on mingw.
69716
69717         2005-02-12  Bruno Haible  <bruno@clisp.org>
69718
69719                 * xallocsa.h: Add extern "C" for C++.
69720
69721         2006-05-17  Bruno Haible  <bruno@clisp.org>
69722
69723                 Cygwin portability.
69724                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
69725
69726         2006-04-30  Bruno Haible  <bruno@clisp.org>
69727
69728                 * progreloc.c: Include <mach-o/dyld.h> if available.
69729                 (find_executable): Use _NSGetExecutablePath when possible.
69730
69731         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69732
69733                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
69734                 function.
69735
69736         2005-12-29  Bruno Haible  <bruno@clisp.org>
69737
69738                 * progreloc.c (set_program_name_and_installdir): Fix
69739                 compilation error.
69740
69741         2005-12-04  Bruno Haible  <bruno@clisp.org>
69742
69743                 Cygwin portability.
69744                 * progreloc.c: Include <windows.h> also on Cygwin.
69745                 (find_executable): Add support for Cygwin.
69746                 (set_program_name_and_installdir): Handle also platforms with
69747                 nonempty EXEEXT.
69748
69749         2006-07-11  Bruno Haible  <bruno@clisp.org>
69750
69751                 * javacomp.c: Fix a comment.
69752                 Reported by Jim Meyering.
69753
69754         2006-04-30  Bruno Haible  <bruno@clisp.org>
69755
69756                 * javacomp.h (compile_java_class): Add source_version,
69757                 target_version arguments.
69758                 * javacomp.c: Rewritten to choose only a compiler that
69759                 respects the specified source_version and target_version.
69760
69761         2006-06-27  Bruno Haible  <bruno@clisp.org>
69762
69763                 Assume correct S_ISDIR macro.
69764                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
69765
69766         2006-07-22  Bruno Haible  <bruno@clisp.org>
69767
69768                 * javaversion.h: New file, from GNU gettext.
69769                 * javaversion.c: New file, from GNU gettext.
69770                 * javaversion.java: New file, from GNU gettext.
69771                 * javaversion.class: New file, from GNU gettext.
69772
69773         2006-05-17  Bruno Haible  <bruno@clisp.org>
69774
69775                 Cygwin portability.
69776                 * javaexec.c (execute_java_class): Test for jview program
69777                 also on Cygwin.
69778
69779         2006-04-09  Bruno Haible  <bruno@clisp.org>
69780
69781                 * fatal-signal.c: Don't include string.h.
69782                 (at_fatal_signal): Use a copying loop instead of memcpy.
69783
69784         2005-12-04  Bruno Haible  <bruno@clisp.org>
69785
69786                 * csharpexec.c: Add support for 'clix' launcher (untested).
69787                 (execute_csharp_using_sscli): New function.
69788                 (execute_csharp_program): Call it.
69789
69790         2006-06-21  Bruno Haible  <bruno@clisp.org>
69791
69792                 Avoid warnings from recent versions of mcs.
69793                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
69794                 -o, -L, -r any more. Use options documented since mcs-1.0
69795                 instead. Similarly for -g.
69796
69797         2005-07-09  Bruno Haible  <bruno@clisp.org>
69798
69799                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
69800                 add a .dll suffix.
69801                 Reported by Mark Junker <mjscod@gmx.de>.
69802
69803         2006-06-17  Bruno Haible  <bruno@clisp.org>
69804
69805                 * config.charset: Update for NetBSD 3.0.
69806
69807         2006-05-17  Bruno Haible  <bruno@clisp.org>
69808
69809                 Cygwin portability.
69810                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
69811
69812         2006-05-16  Bruno Haible  <bruno@clisp.org>
69813
69814                 * localcharset.c [CYGWIN]: Include <windows.h>.
69815                 (get_charset_aliases): For Cygwin, return the same CPxxx
69816                 aliases list as under WIN32.
69817                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
69818                 the environment variables. Fall back to GetACP().
69819
69820         2006-04-05  Bruno Haible  <bruno@clisp.org>
69821
69822                 * config.charset: Update Juan Manuel Guerrero's address.
69823
69824         2005-02-12  Bruno Haible  <bruno@clisp.org>
69825
69826                 * allocsa.h: Add extern "C" for C++.
69827
69828         2005-02-10  Bruno Haible  <bruno@clisp.org>
69829
69830                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
69831                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
69832
69833         2006-07-22  Bruno Haible  <bruno@clisp.org>
69834
69835                 * gettext.h: Update to GNU gettext-0.15.
69836
69837 2006-07-22  Bruno Haible  <bruno@clisp.org>
69838
69839         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
69840         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
69841         lib-prefix.m4, longdouble.m4, ssize_t.m4.
69842
69843 2006-07-21  Eric Blake  <ebb9@byu.net>
69844
69845         * modules/stdlib-safer: New file.
69846         * MODULES.html.sh (File stream based Input/Output): Add
69847         stdlib-safer.
69848
69849 2006-07-21  Eric Blake  <ebb9@byu.net>
69850
69851         * lib/stdlib-safer.h: New file from coreutils, required by
69852         stdlib--.h.
69853
69854 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
69855
69856         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
69857
69858 2006-07-20  Bruno Haible  <bruno@clisp.org>
69859
69860         * gnulib-tool: Recognize new option --assume-autoconf.
69861         (autoconf_minversion): New variable.
69862         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
69863
69864 2006-07-20  Bruno Haible  <bruno@clisp.org>
69865
69866         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
69867
69868 2006-07-19  Derek R. Price  <derek@ximbiot.com>
69869
69870         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
69871         Reindent and repaginate.
69872
69873 2006-07-19  Derek Price  <derek@ximbiot.com>
69874
69875         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
69876         Correct grammar.
69877
69878 2006-07-17  Bruno Haible  <bruno@clisp.org>
69879
69880         * modules/list: New file.
69881         * modules/array-list: New file.
69882         * modules/carray-list, modules/carray-list-tests: New files.
69883         * modules/linked-list, modules/linked-list-tests: New files.
69884         * modules/avltree-list, modules/avltree-list-tests: New files.
69885         * modules/rbtree-list, modules/rbtree-list-tests: New files.
69886         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
69887         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
69888         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
69889         * modules/oset: New file.
69890         * modules/array-oset: New file.
69891         * modules/avltree-oset, modules/avltree-oset-tests: New files.
69892         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
69893         * tests/test-carray_list.c: New file.
69894         * tests/test-linked_list.c: New file.
69895         * tests/test-avltree_list.c: New file.
69896         * tests/test-rbtree_list.c: New file.
69897         * tests/test-linkedhash_list.c: New file.
69898         * tests/test-avltreehash_list.c: New file.
69899         * tests/test-rbtreehash_list.c: New file.
69900         * tests/test-avltree_oset.c: New file.
69901         * tests/test-rbtree_oset.c: New file.
69902         * MODULES.html.sh (Container data structures): New section.
69903
69904 2006-07-17  Bruno Haible  <bruno@clisp.org>
69905
69906         * m4/gl_list.m4: New file.
69907
69908 2006-07-17  Bruno Haible  <bruno@clisp.org>
69909
69910         * lib/gl_list.h: New file.
69911         * lib/gl_list.c: New file.
69912         * lib/gl_array_list.h: New file.
69913         * lib/gl_array_list.c: New file.
69914         * lib/gl_carray_list.h: New file.
69915         * lib/gl_carray_list.c: New file.
69916         * lib/gl_linked_list.h: New file.
69917         * lib/gl_linked_list.c: New file.
69918         * lib/gl_anylinked_list1.h: New file.
69919         * lib/gl_anylinked_list2.h: New file.
69920         * lib/gl_avltree_list.h: New file.
69921         * lib/gl_avltree_list.c: New file.
69922         * lib/gl_anyavltree_list1.h: New file.
69923         * lib/gl_anyavltree_list2.h: New file.
69924         * lib/gl_rbtree_list.h: New file.
69925         * lib/gl_rbtree_list.c: New file.
69926         * lib/gl_anyrbtree_list1.h: New file.
69927         * lib/gl_anyrbtree_list2.h: New file.
69928         * lib/gl_anytree_list1.h: New file.
69929         * lib/gl_anytree_list2.h: New file.
69930         * lib/gl_linkedhash_list.h: New file.
69931         * lib/gl_linkedhash_list.c: New file.
69932         * lib/gl_anyhash_list1.h: New file.
69933         * lib/gl_anyhash_list2.h: New file.
69934         * lib/gl_avltreehash_list.h: New file.
69935         * lib/gl_avltreehash_list.c: New file.
69936         * lib/gl_rbtreehash_list.h: New file.
69937         * lib/gl_rbtreehash_list.c: New file.
69938         * lib/gl_anytreehash_list1.h: New file.
69939         * lib/gl_anytreehash_list2.h: New file.
69940
69941         * lib/gl_oset.h: New file.
69942         * lib/gl_oset.c: New file.
69943         * lib/gl_array_oset.h: New file.
69944         * lib/gl_array_oset.c: New file.
69945         * lib/gl_avltree_oset.h: New file.
69946         * lib/gl_avltree_oset.c: New file.
69947         * lib/gl_rbtree_oset.h: New file.
69948         * lib/gl_rbtree_oset.c: New file.
69949         * lib/gl_anytree_oset.h: New file.
69950
69951 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69952
69953         * m4/mkancesdirs.m4: New file.
69954         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
69955         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
69956         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
69957         it.
69958
69959 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69960
69961         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
69962         * lib/mkancesdirs.h: New files.
69963         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
69964         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
69965         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
69966         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
69967         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
69968         callers changed.  Revamp internals significantly, by not
69969         attempting to create directories that are temporarily more
69970         permissive than the final results.  Do not attempt to use
69971         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
69972         This removes some race conditions, fixes some bugs, and simplifies
69973         things.  Use new dirchownmod function to do owner and mode changes.
69974         * lib/mkdir-p.h: Likewise.
69975         * lib/modechange.c (octal_to_mode): New function.
69976         (struct mode_change): New member mentioned.
69977         (make_node_op_equals): New arg mentioned.  All callers changed.
69978         (mode_compile): Keep track of which mode bits the user has explicitly
69979         mentioned.
69980         (mode_adjust): New arg DIR, so that we implement the X op correctly.
69981         New arg PMODE_BITS, to keep track of which mode bits the user
69982         mentioned; it treats S_ISUID and S_ISGID speciall.
69983         All callers changed.
69984         * lib/modechange.h: Likewise.
69985
69986 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69987
69988         * MODULES.html.sh: Add mkancestors.
69989         * modules/mkancesdirs: New module.
69990         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
69991         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
69992         The chdir-safer and afs files are now orphans; I'll remove them
69993         unless someone speaks up.
69994         Add lib/dirchownmod.c, lib/dirchownmod.h.
69995         (Depends-on): Remove alloca, chown, save-cwd, dirname.
69996         Add lchown, mkancesdirs.
69997         (Maintainer): Add self.
69998
69999 2006-07-15  Karl Berry  <karl@gnu.org>
70000
70001         * gnulib-tool: help message wording/arrangement.
70002
70003 2006-07-14  Simon Josefsson  <jas@extundo.com>
70004
70005         * doc/gnulib.texi (Libtool and Windows): New section.
70006
70007 2006-07-12  Simon Josefsson  <jas@extundo.com>
70008
70009         * modules/gendocs (License): Fix license, approved by Karl.
70010
70011 2006-07-12  Eric Blake  <ebb9@byu.net>
70012
70013         * MODULES.html.sh: Add gendocs.
70014
70015 2006-07-11  Eric Blake  <ebb9@byu.net>
70016
70017         * modules/fdl: New module, to install doc/fdl.texi.
70018         * MODULES.html.sh: Add new section for documentation modules.
70019         * gnulib-tool: Avoid space-tab.
70020         (--doc-base): New option, to manage files from doc.
70021
70022 2006-07-11  Eric Blake  <ebb9@byu.net>
70023
70024         * m4/absolute-header.m4: Fix comments to match recent change.
70025
70026 2006-07-11  Eric Blake  <ebb9@byu.net>
70027
70028         * gnulib-tool: List --doc-base before --tests-base.
70029
70030 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70031
70032         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70033
70034 2006-07-11  Bruno Haible  <bruno@clisp.org>
70035
70036         * README: Mention where to put documentation.
70037
70038 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70039
70040         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70041
70042 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70043
70044         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70045         to stdint.m4.
70046
70047 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70048
70049         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70050         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70051         "no/such/file/stdint.h" when there is no such file, so that
70052         the resulting C code can be parsed by dodgy compilers.
70053         Problems reported by Bob Proulx.
70054
70055 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70056
70057         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70058         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70059         macros into the GNU _D_EXACT_NAMLEN.
70060         * lib/savedir.c:  Likewise.
70061         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70062
70063 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70064         and Paul Eggert  <eggert@cs.ucla.edu>
70065
70066         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70067         * m4/savedir.m4:
70068         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70069         macros into the GNU _D_EXACT_NAMLEN.
70070
70071 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70072
70073         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70074         around the absolute name, to work around a problem with the HP-UX
70075         11.23 native C compiler, reported by Bob Proulx.
70076
70077 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70078
70079         * doc/maintain.texi, make-stds.texi: Sync from
70080         <http://savannah.gnu.org/projects/gnustandards>.
70081
70082 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70083
70084         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70085
70086 2006-07-09  Jim Meyering  <jim@meyering.net>
70087
70088         * m4/glob.m4: Remove a doubled word in a comment.
70089
70090 2006-07-09  Jim Meyering  <jim@meyering.net>
70091
70092         * lib/argp-pv.c: Remove a doubled word in a comment.
70093         * lib/check-version.c (check_version): Likewise.
70094         * lib/javacomp.c (compile_java_class): Likewise.
70095
70096 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70097
70098         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70099         for the benefit of people using Autoconf 2.60.  If you want to
70100         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70101         (or m4/onceonly.m4, if pre-2.57) manually.
70102
70103 2006-07-08  Jim Meyering  <jim@meyering.net>
70104
70105         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70106         comment.
70107         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70108         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70109         comment.
70110
70111 2006-07-08  Jim Meyering  <jim@meyering.net>
70112
70113         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70114
70115 2006-07-07  Simon Josefsson  <jas@extundo.com>
70116
70117         * tests/test-crc.c: Change expected crc value, the test vector
70118         were probably computed using the old broken crc.c?
70119
70120 2006-07-06  Simon Josefsson  <jas@extundo.com>
70121
70122         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70123         now the canonical place for the M4 file).
70124
70125         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70126         from the sys_socket dependency now.
70127
70128         * modules/inet_pton (Files): Ditto.
70129
70130         * modules/inet_ntop (Files): Ditto.
70131
70132 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70133
70134         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70135         not gl_PREREQ_GETUSERSHELL.
70136
70137 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70138
70139         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70140         with only one argument, for Autoconf 2.60.
70141         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70142         expand to nothing, so add a shell command to avoid syntax error.
70143         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70144
70145 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70146
70147         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70148
70149 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70150
70151         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70152         no longer needed.  Check for isblank decl.
70153         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70154         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70155         of existence.
70156
70157 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70158
70159         * lib/getloadavg.c: Use __VMS, not VMS.
70160         * lib/getopt.c: Likewise.
70161         * lib/getpagesize.h: Likewise.
70162         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70163         and probably does not work.
70164
70165 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70166
70167         * lib/.cppi-disable: Add wcwidth.
70168         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70169         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70170         (ISGRAPH): Remove.  All uses changed to isgraph.
70171         (FOLD) [!defined _LIBC]: Remove special case.
70172         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70173         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70174         HAVE_ISBLANK.
70175         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70176         case.
70177
70178 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70179
70180         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70181         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70182         brackets.  Other minor changes to suppress some compiler
70183         warnings.
70184
70185 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70186         and Paul Eggert  <eggert@cs.ucla.edu>
70187
70188         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70189         of invoking obsolescent AC_HEADER_DIRENT macro.
70190         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70191         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70192         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70193         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70194         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70195         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70196         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70197         * m4/readdir.m4: Remove; no longer needed.
70198
70199 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70200         and Paul Eggert  <eggert@cs.ucla.edu>
70201
70202         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70203         Don't worry about this obsolete case any more.
70204         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70205         directories.
70206         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70207         worry about this obsolete case any more.
70208         * lib/fts.c: Likewise.
70209         * lib/getcwd.c: Likewise.
70210         * lib/glob.h: Likewise.
70211         * lib/savedir.c: Likewise.
70212
70213 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70214
70215         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70216         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70217         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70218         needed.
70219         All uses removed.
70220         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70221         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70222         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70223         needed.
70224         * m4/getdate.m4 (gl_GETDATE): Likewise.
70225         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70226         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70227         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70228         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70229         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70230         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70231         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70232         needed.
70233
70234 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70235
70236         * lib/memcasecmp.c: Include <limits.h>.
70237         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70238         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70239         Don't assume isdigit succeeds only on '0' through '9'.
70240
70241 2006-07-05  Eric Blake  <ebb9@byu.net>
70242
70243         * modules/getaddrinfo (Depends-on): Add snprintf.
70244
70245 2006-07-05  Eric Blake  <ebb9@byu.net>
70246
70247         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70248         to avoid 'header present but could not be compiled' on cygwin.
70249
70250 2006-07-05  Eric Blake  <ebb9@byu.net>
70251
70252         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70253         missing from netdb.h.
70254         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70255
70256 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70257
70258         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70259         no longer needed.
70260         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70261         * m4/getdate.m4 (gl_GETDATE): Likewise.
70262         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70263         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70264         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70265         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70266         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70267
70268 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70269
70270         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70271         All uses of is_space replaced by isspace.
70272         * lib/exit.h: Don't talk about STDC_HEADERS.
70273         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70274         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70275         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70276         replaced by isprint etc.
70277         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70278         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70279         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70280         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70281         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70282         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70283
70284 2006-07-05  Bruno Haible  <bruno@clisp.org>
70285
70286         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70287         the function exists, before testing against AIX.
70288         Reported by Martin Lambers <marlam@marlam.de>.
70289
70290 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70291
70292         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70293         From Mark D. Baushke.
70294
70295 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70296
70297         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70298         to the absolute name, not just one, to bypass Sun C 5.8's
70299         "warning: #include of /usr/include/... may be non-portable".
70300
70301 2006-07-04  Eric Blake  <ebb9@byu.net>
70302
70303         * modules/dirname-tests: New test module.
70304         * tests/test-dirname.c: New file, replacing dirname.c
70305         TEST_DIRNAME section that was recently deleted.
70306
70307 2006-07-04  Bruno Haible  <bruno@clisp.org>
70308
70309         Assume ANSI C header files and <ctype.h> functions.
70310         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70311         (mbsnwidth): Use isprint, iscntrl instead.
70312
70313 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70314
70315         Merge from coreutils.
70316         * MODULES.html.sh: Add xstrtold.
70317         * modules/xstrtold: New file.
70318         * modules/cycle-check (Files): Add lib/same-inode.h.
70319         * modules/dirname (Files): Add m4/double-slash-root.m4.
70320         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70321         * modules/mkdir-p (Files): Add lib/same-inode.h.
70322         * modules/same (Files): Add lib/same-inode.h.
70323
70324 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70325
70326         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70327         This is to keep the terminology clean; POSIX talks about
70328         "absolute pathnames", not "full pathnames", but the GNU
70329         Coding Standards say to use "path" for something else;
70330         so use "absolute" to keep both sides happy.
70331         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70332         Set gl_absolute_header, not gl_full_header_path.
70333         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70334         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70335         All uses changed.
70336
70337         Merge from coreutils.
70338
70339         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70340
70341         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70342         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70343         want to require the building of c-strtod.o.
70344         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70345         needs -lm directly.
70346         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70347
70348         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70349
70350         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70351         --as-needed option if available.  Problem reported by Albert Chin in
70352         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70353         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
70354         cc merely issues a bunch of annoying warnings for --as-needed
70355         (this problem was reported by Bob Proulx).  Also, try linking with
70356         -lm to detect a bug in binutils 2.16 (this problem was reported
70357         by Ralf Wildenhues).
70358
70359         2006-06-18  Jim Meyering  <jim@meyering.net>
70360
70361         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
70362         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
70363         macro.
70364         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
70365         also check for glibc-2.4's abort-inducing bug.
70366
70367         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
70368         Low-probability clean-up should be to use rmdir to get rid of
70369         the just-created directory, not unlink.
70370
70371         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
70372         configure fail, and request a bug report to inform us about it.
70373         Add a comment that, barring reports to the contrary, in 2007 we'll
70374         assume ftruncate is universally available.
70375
70376         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70377
70378         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
70379
70380         2006-03-12  Jim Meyering  <jim@meyering.net>
70381
70382         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
70383         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
70384         * m4/same.m4 (gl_SAME): Likewise.
70385         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
70386
70387         2006-03-11  Eric Blake  <ebb9@byu.net>
70388
70389         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
70390         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
70391         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
70392         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
70393
70394 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70395
70396         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
70397         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
70398         reported by Mark D. Baushke, one in
70399         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
70400
70401         Merge from coreutils.
70402
70403         * lib/.cppi-disable: Add stdint_.h.
70404         * lib/.cvsignore: Add stdint.h.
70405
70406         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70407
70408         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
70409         both double and long double versions.
70410         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
70411         * lib/xstrtold.c: New file.
70412         * lib/xstrtod.h (xstrtold): New decl.
70413
70414         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70415
70416         * lib/filemode.c (setst): Remove.
70417         (strmode): Rewrite to avoid setst.  This makes the code shorter,
70418         (arguably) clearer, and the generated code is a bit smaller on my
70419         Debian GNU/Linux stable x86 host.
70420
70421         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70422
70423         * lib/filemode.c: Include "filemode.h" first, to test the interface.
70424         Assume that filemode.h includes sys/types.h and sys/stat.h.
70425         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
70426         (ftypelet): Reorder to put common cases first, for efficiency.
70427         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
70428         to do 'M'.
70429         (strmode): Renamed from mode_string, and now stores 12 bytes instead
70430         of 10, for compatibility with FreeBSD.  All callers changed.
70431         (filemodestring): Now stores 12 bytes instead of 10, and sets file
70432         types that can't be deduced solely from st_mode.  First arg is now a
70433         const pointer.
70434         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
70435         (strmode): Renamed from mode_string.
70436         (filemodestring): New decl.
70437         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
70438         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
70439         needed.
70440         (S_ISPORT, S_ISWHT): New macros, if not already defined.
70441
70442         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70443
70444         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
70445         fsusage.h now does that.  Include fsusage.h first, to test interface.
70446         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
70447         at most one method (the old code could have generated decls that
70448         didn't conform to C89, not that this was ever exercised).
70449         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
70450
70451         2006-03-19  Jim Meyering  <jim@meyering.net>
70452
70453         Work even in a chroot where d_ino values for entries in "/"
70454         don't match the stat.st_ino values for the same names.
70455         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70456         number, iterate through all entries again, using lstat instead.
70457         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70458         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70459
70460         * lib/getcwd.c (__getcwd): Clarify a comment.
70461         Use memcpy in place of a call to strcpy.
70462
70463         2006-03-12  Jim Meyering  <jim@meyering.net>
70464
70465         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70466         matches that of the current directory (which we're about to chdir ".."
70467         out of), then save the dev-ino of the parent, instead.
70468
70469         * lib/same-inode.h (SAME_INODE): New file/macro.
70470         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70471         Include "same-inode.h", instead.
70472         * lib/same.c: Likewise.
70473         * lib/cycle-check.h: Include "same-inode.h".
70474         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70475         * lib/cycle-check.c (SAME_INODE): Remove definition.
70476         * lib/root-dev-ino.h: Include "same-inode.h".
70477
70478         2006-03-11  Eric Blake  <ebb9@byu.net>
70479
70480         * lib/same.c (same_name): s/base_name/last_component/
70481         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70482         * lib/filenamecat.c (file_name_concat): Likewise.
70483
70484         2006-03-11  Eric Blake  <ebb9@byu.net>,
70485                     Paul Eggert  <eggert@cs.ucla.edu>
70486
70487         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
70488         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
70489         drive prefix.
70490         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
70491         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
70492         (last_component): New method.
70493         * lib/dirname.c (dir_len): Determine when drive letters need a
70494         subsequent slash.  Preserve // when it is special.
70495         (dir_name): Don't append dot when drive letter is absolute.
70496         [TEST_DIRNAME]: Move into a full-blown gnulib test.
70497         * lib/basename.c (base_name): New semantics - malloc the result.
70498         Preserve // when it is special.  Preserve relative files that look
70499         like drive letters.
70500         (base_len): Preserve // when it is special.
70501         (last_component): New method, similar to old base_name semantics.
70502         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
70503         base_name.  Strip redundant slashes from ///.
70504
70505 2006-07-03  Jim Meyering  <jim@meyering.net>
70506
70507         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
70508         macro is used before the first cycle_check call.
70509
70510 2006-07-03  Eric Blake  <ebb9@byu.net>
70511
70512         * modules/dirname (Depends-on): Add xstrndup.
70513
70514 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70515
70516         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
70517         test cases, so that config.log is a bit easier to follow.
70518
70519 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70520
70521         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
70522         both are 64 bits, since this seems to be the tradition, and this
70523         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70524         we ever run into a host that prefers long long to long in this
70525         case, we'll need another configure-time test.  Problem reported by
70526         Jim Meyering.
70527
70528 2006-07-02  Eric Blake  <ebb9@byu.net>
70529
70530         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
70531
70532 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70533
70534         * modules/inttypes (Depends-on): No longer depends on stdint.
70535         * modules/stdint (Description): Say more about assumptions.
70536         Say that the fast types might differ.  Say macros are used.
70537         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
70538         (Makefile.am): Revise list of substituted symbols to match
70539         new stdint.m4.
70540         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
70541         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
70542         * tests/test-stdint.c (verify_same_types)
70543         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
70544         the code conforms to C99/C89.
70545         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
70546         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
70547
70548 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70549
70550         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
70551         but fix a bug, by requiring at least 64 bits.
70552         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
70553         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
70554         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
70555         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70556
70557         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
70558         changes.  Make 2.59 a prerequisite.  Check and substitute for
70559         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
70560         inttypes.h.  Do not use special include files; just use the
70561         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
70562         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
70563         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
70564         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
70565         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
70566         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
70567         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
70568         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
70569         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
70570         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
70571         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
70572         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
70573         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
70574         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
70575         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
70576         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
70577         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
70578         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
70579         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
70580         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
70581         WINT_MAX.  Check for C99 conformance more strictly, by detecting
70582         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
70583         not check for things that C99 does not require, e.g., int8_t.  If
70584         a test isn't needed unless <stdint.h> isn't working, and is
70585         unlikely to be needed for any other reason, then don't do it
70586         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
70587         size_t, since we assume C89 freestanding at least.  Do not check
70588         for sig_atomic_t, wchar_t, or wint_t, since the code now does
70589         the right thing even if the types are not defined.  Instead use:
70590         (gl_STDINT_TYPE_PROPERTIES): New macro.
70591         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
70592         testing whether <sys/types.h> clashes, as Autoconf does this for
70593         us now.  All uses removed.
70594         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
70595         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
70596         (gl_CHECK_TYPE_SAME):
70597         Remove; no longer needed.
70598         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
70599         exists, since we'll return 0 anyway in that case.
70600         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
70601
70602 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70603
70604         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
70605         possible collision with system files.
70606         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
70607         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
70608         WCHAR_MIN and WCHAR_MAX in this case.
70609         (<stddef.h>): Do not include; no longer needed.
70610         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
70611         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
70612         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
70613         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
70614         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
70615         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
70616         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
70617         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
70618         !defined(__c99))]: Include in this case too, since it's harmless
70619         now.
70620         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
70621         dangerous to do so.
70622         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
70623         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
70624         (_STDINT_MIN, _STDINT_MAX): New macros.
70625         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
70626         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
70627         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
70628         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
70629         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
70630         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
70631         macros, not typedefs; this simplifies things quite a bit.
70632         Use long int for all types narrower than int64_t.
70633         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
70634         Define in terms of long long int or int64_t or long int,
70635         not int64_t or int32_t.  This saves some compile-time testing.
70636         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
70637         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
70638         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
70639         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
70640         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
70641         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
70642         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
70643         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
70644         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
70645         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
70646         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70647         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70648         undef any previous version and define our own version, for
70649         simplicity and consistency with the new macros for types.
70650         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70651         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70652         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
70653         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
70654         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
70655         @WINT_T_SUFFIX@ to keep things simple here.
70656         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
70657         Simplify by assuming typical 8/16/32/64 host, since we're
70658         already doing that elsewhere anyway.
70659         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
70660         and assume long long int is 64 bits if available.  This
70661         speeds up 'configure'.
70662
70663 2006-07-01  Eric Blake  <ebb9@byu.net>
70664
70665         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
70666         Reported by Andreas Buening.
70667
70668 2006-07-01  Eric Blake  <ebb9@byu.net>
70669
70670         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
70671
70672 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70673
70674         * lib/getaddrinfo.c: fixed typo
70675
70676 2006-06-29  Jim Meyering  <jim@meyering.net>
70677
70678         * modules/strftime (Maintainer): Add my name, since with the
70679         FPRINTFTIME changes strftime.c has forked from glibc.
70680
70681 2006-06-29  Eric Blake  <ebb9@byu.net>
70682
70683         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
70684
70685 2006-06-29  Eric Blake  <ebb9@byu.net>
70686
70687         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
70688
70689 2006-06-29  Eric Blake  <ebb9@byu.net>
70690
70691         * lib/stat_.h: New file.
70692
70693 2006-06-29  Eric Blake  <ebb9@byu.net>
70694
70695         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
70696         unused static function.
70697
70698 2006-06-29  Eric Blake  <ebb9@byu.net>
70699
70700         * doc/functions.texi (Function Portability): Document missing lstat
70701         on mingw.
70702
70703 2006-06-29  Eric Blake  <ebb9@byu.net>
70704
70705         * MODULES.html.sh: Add sys_stat.
70706         * modules/sys_stat: New module.
70707         * modules/mkstemp (Depends-on): Add sys_stat.
70708
70709 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70710
70711         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
70712
70713 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70714
70715         * m4/c-bs-a.m4: Removed.
70716
70717 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70718
70719         * lib/strftime.c: Assume strftime() exists.
70720
70721 2006-06-29  Derek Price  <derek@ximbiot.com>
70722
70723         * modules/c-bs-a: Removed - \a is C89.
70724         * MODULES.html.sh: Remove c-bs-a.
70725
70726 2006-06-29  Bruno Haible  <bruno@clisp.org>
70727
70728         * modules/wcwidth (License): Change to LGPL.
70729
70730 2006-06-28  Simon Josefsson  <jas@extundo.com>
70731
70732         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
70733         on _WIN32.
70734
70735         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
70736         getnameinfo.
70737
70738 2006-06-28  Simon Josefsson  <jas@extundo.com>
70739
70740         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
70741
70742 2006-06-28  Simon Josefsson  <jas@extundo.com>
70743
70744         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
70745         functions there.  It will succeed on Windows XP, but on Windows
70746         2000 and (presumably) earlier, it will fail, and use the internal
70747         re-implementation.
70748         (use_win32_p): New function.
70749         (getaddrinfo): Use strtoul on servname, to support numeric ports.
70750         Support AI_NUMERICSERV to disable getservbyname.
70751         (getnameinfo): New function, only supports
70752         NI_NUMERICHOST|NI_NUMERICSERV for now.
70753
70754         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
70755         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
70756         getnameinfo.
70757
70758 2006-06-28  Eric Blake  <ebb9@byu.net>
70759
70760         * modules/wcwidth: New file.
70761         * modules/mbchar (Depends-on): Add wcwidth.
70762         * modules/mbswidth (Depends-on): Add wcwidth.
70763         * MODULES.html.sh: Add wcwidth.
70764
70765 2006-06-28  Eric Blake  <ebb9@byu.net>
70766
70767         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
70768         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
70769
70770 2006-06-28  Eric Blake  <ebb9@byu.net>
70771
70772         * lib/xvasprintf.h: Fix comments.
70773
70774 2006-06-28  Eric Blake  <ebb9@byu.net>
70775
70776         * lib/mbchar.h (wcwidth): Include wcwidth.h.
70777         * lib/mbswidth.c (wcwidth): Move from here...
70778         * lib/wcwidth.h: ...to this new file.
70779
70780 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70781
70782         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
70783
70784         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
70785         it's obsolete.
70786         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
70787
70788 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70789
70790         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
70791         Autoconf 2.60 says this stuff was obsolete.
70792
70793 2006-06-28  Bruno Haible  <bruno@clisp.org>
70794
70795         * modules/wcwidth (Files): Add m4/wchar_t.m4.
70796
70797 2006-06-28  Bruno Haible  <bruno@clisp.org>
70798
70799         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
70800         gt_TYPE_WCHAR_T.
70801
70802 2006-06-28  Bruno Haible  <bruno@clisp.org>
70803
70804         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
70805         declaration for wcwidth.
70806         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
70807
70808 2006-06-28  Bruno Haible  <bruno@clisp.org>
70809
70810         * lib/mkdtemp.c [MINGW]: Include <io.h>.
70811         (mkdir): Define using _mkdir.
70812
70813 2006-06-28  Bruno Haible  <bruno@clisp.org>
70814
70815         * lib/getaddrinfo.h: Fix POSIX URL.
70816         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
70817         _WIN32.
70818         (use_win32_p): Make static.
70819         (getaddrinfo): Reject service name if it is empty or does not consist
70820         solely of decimal digits, or if its value is > 65535.
70821         (getnameinfo): Remove useless casts.
70822
70823 2006-06-27  Simon Josefsson  <jas@extundo.com>
70824
70825         * modules/sys_select: New file, suggested by Bruno Haible, Paul
70826         Eggert and Martin Lambers.
70827
70828 2006-06-27  Simon Josefsson  <jas@extundo.com>
70829
70830         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
70831         Eggert and Martin Lambers.
70832
70833 2006-06-27  Bruno Haible  <bruno@clisp.org>
70834
70835         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
70836         result to 0, not to empty.
70837         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
70838
70839 2006-06-27  Bruno Haible  <bruno@clisp.org>
70840
70841         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
70842
70843 2006-06-26  Simon Josefsson  <jas@extundo.com>
70844
70845         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
70846         present.
70847
70848 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
70849
70850         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
70851         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
70852         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
70853
70854 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
70855
70856         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
70857
70858 2006-06-26  Bruno Haible  <bruno@clisp.org>
70859
70860         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
70861
70862 2006-06-26  Bruno Haible  <bruno@clisp.org>
70863
70864         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
70865
70866 2006-06-26  Bruno Haible  <bruno@clisp.org>
70867
70868         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
70869         SGI C compiler in pre-C99 mode.
70870         Suggested by Mark D. Baushke and Larry Jones.
70871
70872 2006-06-26  Bruno Haible  <bruno@clisp.org>
70873
70874         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
70875         WCHAR_MAX.
70876         Reported by Mark D. Baushke and Larry Jones.
70877
70878 2006-06-26  Bruno Haible  <bruno@clisp.org>
70879
70880         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
70881         in pre-C99 mode.
70882         Suggested by Mark D. Baushke and Larry Jones.
70883
70884 2006-06-23  Simon Josefsson  <jas@extundo.com>
70885             Bruno Haible  <bruno@clisp.org>
70886
70887         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
70888         Emit mostlyclean-local rule.
70889         (func_emit_tests_Makefile_am): Likewise.
70890         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
70891
70892 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
70893
70894         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
70895
70896 2006-06-23  Bruno Haible  <bruno@clisp.org>
70897
70898         * tests/test-stdint.c: Update to match ISO C 99 Technical
70899         Corrigendum 1.
70900
70901 2006-06-23  Bruno Haible  <bruno@clisp.org>
70902
70903         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
70904
70905 2006-06-23  Bruno Haible  <bruno@clisp.org>
70906
70907         * lib/stdint_.h: Treat IRIX like OpenBSD.
70908
70909 2006-06-23  Bruno Haible  <bruno@clisp.org>
70910
70911         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
70912         ISO C 99 Technical Corrigendum 1.
70913
70914 2006-06-22  Simon Josefsson  <jas@extundo.com>
70915
70916         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
70917         MinGW.
70918
70919 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70920
70921         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
70922         needed.  Some compiler complained about some of them.  Problem reported
70923         by Larry Jones in
70924         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
70925
70926 2006-06-21  Simon Josefsson  <jas@extundo.com>
70927
70928         * tests/test-getaddrinfo.c: New file.
70929
70930         * modules/getaddrinfo-tests: New file.
70931
70932         * MODULES.html.sh: Add inet_pton.
70933
70934         * modules/inet_pton: New file.
70935
70936 2006-06-21  Simon Josefsson  <jas@extundo.com>
70937
70938         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
70939         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
70940         of using the (limited) gnulib implementation on Windows XP.
70941
70942         * m4/inet_pton.m4: New file.
70943
70944 2006-06-21  Simon Josefsson  <jas@extundo.com>
70945
70946         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
70947         variable.
70948
70949         * lib/socket_.h: Don't define WINVER.
70950
70951         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
70952         slightly modified to work in gnulib.
70953
70954 2006-06-21  Simon Josefsson  <jas@extundo.com>
70955
70956         * doc/gnulib.texi (Windows sockets): Add.
70957
70958 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
70959
70960         * lib/read-file.c (fread_file): Start with buffer allocation of
70961         0 bytes rather than 1 byte; this simplifies the code.
70962         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
70963         code to free buffer and save/restore errno.
70964         (internal_read_file): Remove unused local.
70965
70966 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
70967
70968         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
70969         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
70970         Problem reported by Denis Excoffier in
70971         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
70972
70973 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70974
70975         * modules/sys_socket, modules/socklen: Include sys/types since
70976         FreeBSD 4.x's sys/socket.h needs it.
70977
70978 2006-06-19  Simon Josefsson  <jas@extundo.com>
70979
70980         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
70981
70982 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70983
70984         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
70985
70986 2006-06-19  Bruno Haible  <bruno@clisp.org>
70987
70988         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
70989         and FULL_PATH_INTTYPES_H in angle brackets.
70990         Reported by Mark D. Baushke <mdb@gnu.org>.
70991
70992 2006-06-17  Eric Blake  <ebb9@byu.net>
70993
70994         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
70995         errno.
70996
70997 2006-06-17  Bruno Haible  <bruno@clisp.org>
70998
70999         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71000         <sys/inttypes.h>.
71001
71002 2006-06-17  Bruno Haible  <bruno@clisp.org>
71003
71004         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71005         whether errno is declared. Assume <errno.h> declares errno.
71006
71007 2006-06-17  Bruno Haible  <bruno@clisp.org>
71008
71009         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71010
71011 2006-06-17  Bruno Haible  <bruno@clisp.org>
71012
71013         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71014         problem on Solaris 2.5.1.
71015
71016 2006-06-16  Eric Blake  <ebb9@byu.net>
71017
71018         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71019         * lib/unicodeio.c [!defined errno]: Likewise.
71020         * lib/strtol.c [!defined errno]: Likewise.
71021         * lib/strtod.c [!defined errno]: Likewise.
71022
71023 2006-06-15  Eric Blake  <ebb9@byu.net>
71024
71025         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71026
71027 2006-06-15  Eric Blake  <ebb9@byu.net>
71028
71029         * config/srclist.txt (ssize_t.m4): Lose sync.
71030
71031 2006-06-15  Bruno Haible  <bruno@clisp.org>
71032
71033         * modules/stdint (Files): Include m4/full-header-path.m4,
71034         m4/size_max.m4, m4/wchar_t.m4.
71035         (Makefile.am): Many more substitutions.
71036         * modules/stdint-tests: New file.
71037         * tests/test-stdint.c: New file.
71038
71039 2006-06-15  Bruno Haible  <bruno@clisp.org>
71040
71041         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71042         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71043         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71044         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71045         gl_CHECK_TYPE_SAME): New macros.
71046
71047 2006-06-15  Bruno Haible  <bruno@clisp.org>
71048
71049         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71050
71051 2006-06-15  Bruno Haible  <bruno@clisp.org>
71052
71053         * lib/stdint_.h: Rewritten to be fully auto-configured.
71054         Fixes bug on HP-UX/IA64.
71055
71056 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71057
71058         * lib/getdate.y (__attribute__): Don't define if already defined.
71059         Problem reported by Larry Jones.
71060         * lib/utimens.c (__attribute__): Likewise.
71061
71062 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71063
71064         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71065         reported by Andreas Schwab.
71066
71067 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71068             Bruno Haible  <bruno@clisp.org>
71069
71070         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71071         check for the declaration of strnlen and a run test that exposes the
71072         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71073         rpl_strndup.
71074
71075 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71076             Bruno Haible  <bruno@clisp.org>
71077
71078         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71079
71080 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71081
71082         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71083         compile test, for Tru64 4.0D.
71084
71085 2006-05-28  Karl Berry  <karl@gnu.org>
71086
71087         * config/srclist.txt (printf-args.c): lose sync.
71088
71089 2006-05-26  Martin Lambers  <marlam@marlam.de>
71090
71091         * lib/getpass.c: Updates the test for the native W32 API, and adds
71092         missing includes, thus fixing compilation warnings.
71093
71094 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71095
71096         * lib/exclude.c (exclude_fnmatch): New function.
71097         (excluded_file_name): Call exclude_fnmatch.
71098         * lib/exclude.h (excluded_file_name): New prototype
71099
71100 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71101
71102         * lib/tempname.c (small_open, large_open): New macros.
71103         (__open, __open64) [!_LIBC]: Remove.
71104         (__gen_tempname): Use small_open and large_open instead of __open
71105         and __open64.  This fixes a portability bug on HP-UX 11.11i
71106         reported by Simon Wing-Tang in
71107         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71108
71109 2006-05-24  Bruno Haible  <bruno@clisp.org>
71110
71111         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71112         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71113         Reported by Thorsten Maerz <torte@netztorte.de> via
71114         Aaron Stone <aaron@serendipity.cx>.
71115
71116 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71117
71118         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71119         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71120         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71121         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71122         not really conditional on the cache.
71123         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71124
71125 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71126
71127         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71128         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71129         (my_usleep): Don't mishandle maximum value.
71130
71131 2006-05-19  Jim Meyering  <jim@meyering.net>
71132
71133         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71134
71135 2006-05-17  Bruno Haible  <bruno@clisp.org>
71136
71137         Cygwin portability.
71138         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71139
71140 2006-05-17  Bruno Haible  <bruno@clisp.org>
71141
71142         * lib/stdint_.h: Fix recognition of Cygwin.
71143
71144 2006-05-15  Bruno Haible  <bruno@clisp.org>
71145
71146         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71147         on libtool patch by Ralf Wildenhues.
71148
71149 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71150
71151         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71152         test for C99 conformance; (bool) 0.5 is an integer constant
71153         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71154         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71155
71156 2006-05-11  Simon Josefsson  <jas@extundo.com>
71157
71158         * m4/xvasprintf.m4: Fix obvious typo.
71159
71160 2006-05-11  Jim Meyering  <jim@meyering.net>
71161
71162         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71163         James Lemley.
71164
71165 2006-05-10  Simon Josefsson  <jas@extundo.com>
71166
71167         * lib/md4.c: Typo fix, update copyright years.
71168         (K1, K2): Don't use L because it turn computations into 64-bit on
71169         64-bit platforms.
71170
71171 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71172
71173         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71174         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71175         unwanted sign propagation, e.g., on hosts with 64-bit int.
71176         There still are some problems with reeelly weird theoretical hosts
71177         (e.g., 33-bit int) but it's not worth worrying about now.
71178         * lib/sha1.c (rol): Likewise.
71179         (K1, K2, K3, K4): Remove unnecessary L suffix.
71180
71181 2006-05-10  Bruno Haible  <bruno@clisp.org>
71182
71183         * lib/des.c: Cast to avoid warnings.
71184
71185 2006-05-09  Bruno Haible  <bruno@clisp.org>
71186
71187         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71188         (Depends-on): Depend also on xsize, stdarg.
71189         (configure.ac): Add gl_XVASPRINTF.
71190
71191 2006-05-09  Bruno Haible  <bruno@clisp.org>
71192
71193         * m4/xvasprintf.m4: New file.
71194
71195 2006-05-09  Bruno Haible  <bruno@clisp.org>
71196
71197         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71198         (EOVERFLOW): Define fallback value.
71199         (xstrcat): New function.
71200         (xvasprintf): Recognize the special case of a string concatenation.
71201
71202 2006-05-08  Eric Blake  <ebb9@byu.net>
71203
71204         * gnulib-tool (func_version): Base copyright year on CVS date.
71205         (func_emit_copyright_notice): New function.
71206         (func_emit_lib_Makefile_am): Use it.
71207         (func_emit_tests_Makefile_am): Likewise.
71208         (func_import): Likewise.
71209
71210 2006-05-08  Bruno Haible  <bruno@clisp.org>
71211
71212         * modules/stdarg: New file.
71213         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71214
71215 2006-05-08  Bruno Haible  <bruno@clisp.org>
71216
71217         * m4/stdarg.m4: New file, from GNU gettext.
71218
71219 2006-05-08  Bruno Haible  <bruno@clisp.org>
71220
71221         * config/srclist.txt (build-aux/config.rpath): different from latest
71222         release.
71223
71224 2006-05-08  Bruno Haible  <bruno@clisp.org>
71225
71226         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71227
71228 2006-05-05  Jim Meyering  <jim@meyering.net>
71229
71230         * m4/warning.m4: New file, derived from bison's file by the same name.
71231
71232 2006-05-03  Bruno Haible  <bruno@clisp.org>
71233
71234         * lib/stdint_.h: Shorter URL.
71235         * lib/inttypes.h: Likewise.
71236
71237 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71238
71239         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71240
71241 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71242
71243         * lib/verify.h: Document the internals better.  Most of this change
71244         was written by Bruno Haible.
71245
71246 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71247
71248         * doc/verify.texi: New file, partly based on a proposal by
71249         Bruno Haible.
71250
71251 2006-05-02  Bruno Haible  <bruno@clisp.org>
71252
71253         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71254         test from here...
71255         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71256
71257 2006-04-29  Bruno Haible  <bruno@clisp.org>
71258
71259         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71260         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71261
71262 2006-04-29  Bruno Haible  <bruno@clisp.org>
71263
71264         * gnulib-tool: Make --update option actually work.
71265
71266 2006-04-29  Bruno Haible  <bruno@clisp.org>
71267
71268         * doc/gcd.texi: New file.
71269         * doc/gnulib.texi: Include it.
71270
71271 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71272
71273         * lib/getdate.y (get_date): When adding relative date, start with the
71274         initial time, not with the result of the first mktime call.
71275
71276 2006-04-25  Bruno Haible  <bruno@clisp.org>
71277
71278         * gnulib-tool (func_import): Output the include directives in three
71279         blocks, sorted separately.
71280         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71281
71282 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71283
71284         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71285         to define main with arguments, for C++.  Reported by Eric Blake.
71286         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71287         Prefer 'int main ()' to 'int main (void)', for C++.
71288         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71289         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71290         for 'main', for C99 and C++.
71291
71292 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71293
71294         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71295         Don't assume that exit status -1 is valid.
71296         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71297         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71298         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71299         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71300         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71301         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71302         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71303         functions can be used without declaring them, or that you can
71304         exit with status -1.
71305         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71306
71307 2006-04-24  Karl Berry  <karl@gnu.org>
71308
71309         * config/srclist.txt (longdouble.m4): sync lost.
71310
71311 2006-04-24  Eric Blake  <ebb9@byu.net>
71312
71313         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71314
71315 2006-04-24  Bruno Haible  <bruno@clisp.org>
71316
71317         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71318         poll() implementation in AIX.
71319         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71320
71321 2006-04-24  Bruno Haible  <bruno@clisp.org>
71322
71323         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71324         assigned exactly once.
71325
71326 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71327             Bruno Haible  <bruno@clisp.org>
71328
71329         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71330         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71331         for AM_CPPFLAGS.
71332
71333 2006-04-23  Bruno Haible  <bruno@clisp.org>
71334
71335         * modules/copy-file: Depend on unistd.
71336         * modules/execute: Likewise.
71337         * modules/fatal-signal: Likewise.
71338         * modules/findprog: Likewise.
71339         * modules/mkdtemp : Likewise.
71340         * modules/pipe: Likewise.
71341         * modules/wait-process: Likewise.
71342
71343 2006-04-23  Bruno Haible  <bruno@clisp.org>
71344
71345         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71346         condition was already detected.
71347         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71348
71349 2006-04-23  Bruno Haible  <bruno@clisp.org>
71350
71351         * lib/copy-file.c: Include <unistd.h> unconditionally.
71352         * lib/execute.c: Likewise.
71353         * lib/fatal-signal.c: Likewise.
71354         * lib/findprog.c: Likewise.
71355         * lib/mkdtemp.c: Likewise.
71356         * lib/pipe.h: Likewise.
71357         * lib/pipe.c: Likewise.
71358         * lib/wait-process.h: Likewise.
71359
71360 2006-04-23  Bruno Haible  <bruno@clisp.org>
71361
71362         * gnulib-tool (func_usage): Fix --import description. Document
71363         --update.
71364         (func_import): Create temporary file in a temporary directory, if
71365         --dry-run is specified. Silence errors from 'grep' when there are no
71366         m4 files in $m4dir.
71367         (func_create_testdir): Silence errors from 'grep' when there are no
71368         m4 files in $m4dir.
71369         Reported by Karl Berry <karl@freefriends.org>.
71370
71371 2006-04-20  Bruno Haible  <bruno@clisp.org>
71372
71373         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
71374         one argument, so that the code will be portable to Autoconf 2.60.
71375         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
71376         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71377         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
71378
71379 2006-04-19  Derek Price  <derek@ximbiot.com>
71380             Eric Blake  <ebb9@byu.net>
71381
71382         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
71383         rather than "/full/path.h".  Update comment to match.  Shorten &
71384         generalize m4_translit call via AS_TR_CPP.
71385
71386 2006-04-19  Derek Price  <derek@ximbiot.com>
71387             Eric Blake  <ebb9@byu.net>
71388
71389         * lib/inttypes.h: Correct grammar in comment.
71390
71391 2006-04-18  Derek Price  <derek@ximbiot.com>
71392             Paul Eggert  <eggert@cs.ucla.edu>
71393
71394         * modules/inttypes: New file.
71395         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
71396
71397 2006-04-18  Derek Price  <derek@ximbiot.com>
71398             Paul Eggert  <eggert@cs.ucla.edu>
71399
71400         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
71401         New files.
71402
71403 2006-04-18  Derek Price  <derek@ximbiot.com>
71404             Paul Eggert  <eggert@cs.ucla.edu>
71405
71406         * lib/inttypes.h: New file.
71407         * lib/strtoimax.c: Assume <inttypes.h>.
71408
71409 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
71410
71411         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
71412         isn't mounted.  Problem reported by Kir Kolyshkin.
71413
71414 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71415
71416         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
71417         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
71418         Derek R. Price.
71419         * lib/regex.h (RE_DUP_MAX): Update comment to match current
71420         implementation.
71421
71422 2006-04-12  Eric Blake  <ebb9@byu.net>
71423
71424         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
71425         is now done automatically by the corresponding Autoconf macro.
71426
71427 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
71428
71429         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
71430         time_r.h.
71431
71432 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71433
71434         Merge regex changes from libc, removing some of our
71435         POSIX-conformance changes that were rejected and redoing them in a
71436         less-intrusive way.
71437
71438         * lib/regcomp.c (re_compile_internal, init_dfa):
71439         Length arg is now size_t, not Idx.  All uses changed.
71440         (peek_token): Forward decl now says internal_function.
71441         (__re_error_msgid, __re_error_msgid_idx):
71442         Now static rather than extern with attribute_hidden.
71443         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
71444         For some reason libc prefers K&R style defns for external functions.
71445         (regerror) [!defined _LIBC]: Likewise.
71446         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
71447         (seek_collating_symbol_entry, lookup_collation_sequence_value):
71448         (build_range_exp, build_collating_symbol):
71449         Use K&R-style defn.
71450         (re_compile_fastmap): Use '\0' to memset, not 0.
71451         (utf8_sb_map): Make the calculations more obvious.
71452         (init_dfa, parse_bracket_exp, build_charclass_op):
71453         Call calloc and cast result, as glibc does.
71454         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71455         (build_range_exp, build_collating_symbol):
71456         Now internal functions.
71457
71458         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71459
71460         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71461         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71462         Don't depend on VMS; depend on __VMS instead, for POSIX
71463         namespace cleanness.
71464         (regoff_t): Define to ssize_t, not long int.
71465
71466         Remove the REG_ macros named below.  Instead, make the old names
71467         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71468         __USE_GNU_REGEX.
71469         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71470         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71471         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71472         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71473         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71474         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71475         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71476         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71477         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71478         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71479         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71480         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71481         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71482         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71483         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
71484         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
71485         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
71486         (REG_NREGS):
71487         Remove.  All uses replaced by the old RE_* names.
71488         (RE_BACKSLASH_ESCAPE_IN_LISTS):
71489         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
71490         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
71491         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
71492         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
71493         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
71494         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
71495         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
71496         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
71497         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
71498         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
71499         Don't bother having these macros be independent of each others'
71500         values, since they no longer exist in the POSIX name space.
71501
71502         Rename the following member names back to their old names,
71503         unless !__USE_GNU_REGEX.  All uses changed back.
71504         (buffer): Renamed from re_buffer.
71505         (allocated): Renamed from re_allocated.
71506         (used): Renamed from re_used.
71507         (syntax): Renamed from re_syntax.
71508         (fastmap): Renamed from re_fastmap.
71509         (translate): Renamed from re_translate.
71510         (can_be_null): Renamed from re_can_be_null.
71511         (regs_allocated): Renamed from re_regs_allocated.
71512         (fastmap_accurate): Renamed from re_fastmap_accurate.
71513         (no_sub): Renamed from re_no_sub.
71514         (not_bol): Renamed from re_not_bol.
71515         (not_eol): Renamed from re_not_eol.
71516         (newline_anchor): Renamed from re_newline_anchor.
71517         (num_regs): Renamed from rm_num_regs.
71518         (start): Renamed from rm_start.
71519         (end): Renamed from rm_end.
71520
71521         (free_state): Move up a bit.
71522
71523         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71524         #define to be empty.
71525         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71526         when that is what is intended.
71527         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
71528         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
71529         (MAX): New macro.
71530         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
71531         All uses changed back to re_malloc, etc.  It's now the caller's
71532         responsibility to check for overflow; all callers changed.
71533         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
71534         (re_x2nrealloc): Remove.
71535         (free_state): Remove decl.
71536
71537         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
71538         (re_set_registers, re_exec):
71539         Use K&R-style defn.
71540
71541         2006-01-31  Roland McGrath  <roland@redhat.com>
71542
71543         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
71544         Reported by Mike Frysinger <vapier@gentoo.org>.
71545
71546         2006-01-15  Andreas Jaeger  <aj@suse.de>
71547
71548         [BZ #1950]
71549         * lib/regex_internal.c (re_string_reconstruct): Adjust for
71550         build_wcs_upper_buffer change.
71551         (build_wcs_upper_buffer): Change return type.
71552
71553         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
71554
71555         * lib/regex_internal.h: Include <stdint.h> if available.
71556
71557         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
71558
71559         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
71560
71561         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71562
71563         * lib/regcomp.c: Adjust for changed secondary hash function.
71564
71565         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
71566
71567         * lib/regex.h: Pretty printing.
71568         Clean up namespace a bit.
71569
71570         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
71571
71572         * lib/regexec.c (update_cur_sifted_state, check_arrival,
71573         check_arrival_add_next_nodes): Avoid using uninitialized variable.
71574
71575         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71576                     Ulrich Drepper  <drepper@redhat.com>
71577
71578         [BZ #1302]
71579         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
71580         changed.
71581         (bitset_word_t): Renamed from bitset_word.  All uses changed.
71582
71583         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
71584
71585         [BZ #281]
71586         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
71587         * lib/regcomp.c: Remove unnecessary uses of
71588         unsigned RE_TRANSLATE_TYPE.
71589         * lib/regex_internal.h: Likewise.
71590         * lib/regex_internal.c: Likewise.
71591         * lib/regexec.c: Likewise.
71592         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
71593
71594         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
71595
71596         * lib/regexec.c (find_recover_state): Remove unnecessary
71597         initialization.
71598         (transit_state_bkref): Make DFA a const pointer.
71599         (get_subexp): Likewise.
71600         (check_arrival): Likewise.
71601         (update_cur_sifted_state): Likewise.
71602         (re_search_internal): Likewise.
71603         (prune_impossible_nodes): Likewise.
71604         (acquire_init_state_context): Likewise.
71605         (proceed_next_node): Likewise.
71606         (set_regs): Likewise.
71607         (free_fail_stack_return): Likewise.
71608         (check_arrival_expand_ecl): Mark DFA parameter as const.
71609         (check_arrival_expand_ecl_sub): Likewise.
71610         (check_subexp_limits): Likewise.
71611         (sub_epsilon_src_nodes):  Likewise.
71612         (add_epsilon_src_nodes):  Likewise.
71613         (merge_state_array): Likewise.
71614         (update_regs): Likewise.
71615         (build_trtable): Likewise.
71616         (sift_states_backward): Mark MCTX parameter as const.
71617         (build_sifted_states): Likewise.
71618         (update_cur_sifted_state): Likewise.
71619         (sift_states_mkref): Likewise.
71620         (check_arrival_expand_ecl): Mark eclosure as const.
71621         (check_dst_limits_calc_pos_1): Likewise.
71622         * lib/regex_internal.h (re_match_context_t): Make dfa a const
71623         pointer.
71624
71625         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
71626
71627         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
71628         (transit_state_sb): Likewise.
71629         (transit_state_mb): Likewise.
71630         (sift_states_iter_mb): Likewise.
71631         (check_arrival_add_next_nodes): Likewise.
71632         (check_node_accept_bytes): Change first parameter to pointer-to-const.
71633         [_LIBC] (re_search_2_stub): Use mempcpy.
71634
71635         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
71636         mbrtowc for very simple UTF-8 case.
71637
71638         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
71639         a pointer-to-const.
71640         (re_acquire_state_context): Likewise.
71641         * lib/regex_internal.h: Adjust prototypes.
71642
71643         * lib/regex.c: Prevent using C++ compilers.
71644
71645         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
71646         (re_acquire_state_context): Likewise.
71647
71648 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71649
71650         * modules/regex (Depends-on): Add ssize_t.
71651
71652 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71653
71654         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
71655         translation table.
71656
71657 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71658
71659         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
71660
71661 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
71662             Bruno Haible  <bruno@clisp.org>
71663
71664         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
71665         <sys/types.h> and <inttypes.h>.
71666
71667 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71668
71669         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
71670         `__error_t_defined', so argp.h will not typedef the former.
71671
71672 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
71673
71674         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
71675         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
71676         glibc names.  Even if glibc is changed to conform to POSIX, the
71677         traditional names will be available anyway, since regex depends on
71678         the extensions module.  Also, fix a longstanding typo in the
71679         implementation of Spencer ERE test #75 from grep 2.3.  Problems
71680         reported by Emanuele Giaquinta.  Also, change sense of cached
71681         variable, so that the message makes sense.
71682
71683 2006-03-24  Simon Josefsson  <jas@extundo.com>
71684
71685         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
71686         including some doc fixes.
71687         (base64_encode_alloc): Fix +1 bug on allocation failures.
71688
71689 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71690
71691         * lib/base64.c (base64_encode): Do not read past end of array with
71692         unsanitized input on systems with CHAR_BIT > 8.
71693
71694 2006-03-24  Eric Blake  <ebb9@byu.net>
71695
71696         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
71697
71698 2006-03-22  Karl Berry  <karl@gnu.org>
71699
71700         * config/srclist.txt (*setenv.[ch]): get from coreutils.
71701         * config/srclistvars.sh (COREUTILS): new var.
71702
71703 2006-03-17  Jim Meyering  <jim@meyering.net>
71704
71705         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
71706         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
71707
71708 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71709
71710         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
71711         no longer needs it.  Instead, check that regoff_t is as least
71712         as wide as ptrdiff_t.
71713
71714         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
71715         so that our regex.h stays compatible with the installed regex.
71716         This is helpful for installers who configure --without-included-regex.
71717         Problem reported by Emanuele Giaquinta.
71718
71719 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71720
71721         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
71722         Typedef to long int, not to off_, as POSIX will likely change
71723         in that direction.
71724
71725 2006-03-15  Eric Blake  <ebb9@byu.net>
71726
71727         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
71728
71729 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71730
71731         * lib/argp-help.c (validate_uparams): Fix typo
71732         * lib/argp-parse.c (argp_default_options): Consistently begin help
71733         messages with a lowercase letter.
71734
71735 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
71736
71737         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
71738         overrun buffers and shouldn't be used (much as gets shouldn't be
71739         used).
71740         * lib/time_r.c (asctime_r, ctime_r): Likewise.
71741
71742 2006-03-08  Simon Josefsson  <jas@extundo.com>
71743
71744         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
71745         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71746
71747 2006-03-08  Simon Josefsson  <jas@extundo.com>
71748
71749         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
71750         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71751
71752 2006-03-08  Simon Josefsson  <jas@extundo.com>
71753
71754         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
71755         signal that configure disabled the device.
71756
71757 2006-03-08  Simon Josefsson  <jas@extundo.com>
71758
71759         * build-aux/maint.mk: Fix refresh-po, to handle no translated
71760         languages.
71761
71762 2006-03-07  Simon Josefsson  <jas@extundo.com>
71763
71764         * modules/getopt (Depends-on): Add unistd.
71765
71766         * modules/unistd: New file.
71767
71768 2006-03-07  Simon Josefsson  <jas@extundo.com>
71769
71770         * modules/gc-random: New file.
71771
71772 2006-03-07  Simon Josefsson  <jas@extundo.com>
71773
71774         * m4/unistd_h.m4: New file.
71775
71776 2006-03-07  Simon Josefsson  <jas@extundo.com>
71777
71778         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
71779         test to be side-effect free by storing the result in the cache
71780         variable gl_cv_lib_readline, and moving the assignment of
71781         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
71782         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71783
71784 2006-03-07  Simon Josefsson  <jas@extundo.com>
71785
71786         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
71787         error on missing devices (the functions will return an error).
71788
71789         * m4/gc.m4: Move random stuff to gc-random.m4
71790
71791 2006-03-07  Simon Josefsson  <jas@extundo.com>
71792
71793         * lib/unistd_.h: New file.
71794
71795 2006-03-07  Simon Josefsson  <jas@extundo.com>
71796
71797         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
71798
71799 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71800
71801         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
71802         Problem reported by Juan Manuel Guerrero.
71803
71804 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71805
71806         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
71807         the unistd module.
71808         * lib/getlogin_r.c: Likewise.
71809         * lib/getlogin_r.h: Likewise.
71810         * lib/glob.c: Likewise.
71811         * lib/pagealign_alloc.c: Likewise.
71812         * lib/unistd_.h: Remove; no longer needed.
71813
71814 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71815
71816         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71817         Add unistd.
71818         * modules/c-stack (Depends-on): Add unistd.
71819         * modules/getlogin_r: Likewise.
71820         * modules/glob: Likewise.
71821         * modules/pagealign_alloc: Likewise.
71822         * modules/unistd (Files): Remove lib/unistd_.h.
71823         (EXTRA_DIST): Remove.
71824         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
71825         need unistd_.h.
71826         (MOSTLYCLEANFILES): Remove unistd.h-t.
71827
71828 2006-03-03  Simon Josefsson  <jas@extundo.com>
71829
71830         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
71831
71832 2006-03-03  Simon Josefsson  <jas@extundo.com>
71833
71834         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
71835         libidn and bison.
71836
71837 2006-03-03  Simon Josefsson  <jas@extundo.com>
71838
71839         * build-aux/maint.mk: Add indent target.
71840
71841 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
71842
71843         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
71844         our replacement poll.h in any case, to avoid a differing
71845         declaration from a system header.  Seen on AIX.
71846
71847 2006-03-01  Simon Josefsson  <jas@extundo.com>
71848
71849         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
71850         <kasal@ucw.cz>.
71851
71852 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71853
71854         * modules/gettime (Depends-on): Add extensions module.
71855         * modules/nanosleep (Depends-on): Likewise.
71856         * modules/settime (Depends-on): Likewise.
71857
71858 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71859
71860         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
71861         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
71862         pedantically.
71863         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71864         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
71865
71866         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
71867         not "==".  Reported by Ralf Wildenhues.
71868
71869 2006-03-01  Karl Berry  <karl@gnu.org>
71870
71871         * doc/Copyright/request-*: new files, synced from gnuorg.
71872
71873 2006-03-01  Karl Berry  <karl@gnu.org>
71874
71875         * config/srclist.txt (Copyright/*): new entries.
71876
71877 2006-02-28  Simon Josefsson  <jas@extundo.com>
71878
71879         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
71880
71881 2006-02-27  Simon Josefsson  <jas@extundo.com>
71882
71883         * lib/base64.h: Indent #define's.  From Jim Meyering
71884         <jim@meyering.net>.
71885
71886 2006-02-27  Jim Meyering  <jim@meyering.net>
71887
71888         Revert the change of 2006-02-24, so these files can continue
71889         to be sync'd from gettext.
71890         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
71891         of `config.h'.
71892
71893 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71894
71895         * modules/intprops: New file.
71896         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71897         Add intprops.
71898         * modules/getloadavg (Files): Remove lib/intprops.h.
71899         (Depends-on): Add intprops.
71900         * modules/human: Likewise.
71901         * modules/inttostr: Likewise.
71902         * modules/openat: Likewise.
71903         * modules/sig2str: Likewise.
71904         * modules/userspec: Likewise.
71905         * modules/utimecmp: Likewise.
71906         * modules/xnanosleep: Likewise.
71907         * modules/xstrtol: Likewise.
71908
71909 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
71910
71911         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
71912         * modules/lock-tests (TESTS): Use $(EXEEXT).
71913         * modules/tls-tests: Likewise.
71914         * modules/argp-tests: Likewise.
71915         (check_PROGRAMS): New var, replacing...
71916         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
71917
71918 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71919
71920         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
71921         `config.h'.
71922
71923 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71924
71925         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
71926
71927 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71928
71929         Sync from coreutils.
71930         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
71931         gl_CHDIR_SAFER.
71932
71933 2006-02-22  Jim Meyering  <jim@meyering.net>
71934
71935         Sync from coreutils.
71936         * m4/chdir-safer.m4: New file.
71937
71938 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71939
71940         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
71941         AT_FDCWD exceeds INT_MAX.
71942         * lib/openat.h (AT_FDCWD): Likewise.
71943
71944 2006-02-17  Eric Blake  <address@hidden>
71945
71946         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
71947
71948 2006-02-16  Simon Josefsson  <jas@extundo.com>
71949
71950         * modules/getaddrinfo (Depends-on): Add sys_socket.
71951
71952 2006-02-15  Simon Josefsson  <jas@extundo.com>
71953
71954         * build-aux/maint.mk: Add dsyntax-check rule.
71955
71956 2006-02-15  Eric Blake  <ebb9@byu.net>
71957
71958         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
71959         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
71960         'present but cannot compile' warnings on cygwin.
71961         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
71962         use ws2tcpip.h if sys/socket.h works.
71963         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
71964         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
71965
71966 2006-02-14  Simon Josefsson  <jas@extundo.com>
71967
71968         * modules/maintainer-makefile (Files): Rename.
71969
71970         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
71971         and (the local) Makefile.cfg to maint-cfg.mk.
71972
71973         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
71974         to the latter.
71975
71976         * modules/maintainer-makefile: New module.
71977
71978         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
71979         severaly stripped to make it possible to build it up from scratch
71980         with reliable tests.
71981
71982         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
71983         fixes to permit overriding the default actions when configure and
71984         makefile are not available.
71985
71986 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71987
71988         Sync from coreutils.
71989         * modules/lstat (Depends-on): Don't depend on xalloc.
71990         (License): Change from GPL to LGPL, since this is now simply a
71991         replacement for a libc function.
71992
71993 2006-02-14  Jim Meyering  <jim@meyering.net>
71994
71995         Sync from coreutils.
71996
71997         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
71998         failure on deficient systems, and simplify gnulib lgpl dependencies.
71999         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72000         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72001
72002         * lib/xalloc-die.c: Remove unused definition of N_.
72003
72004 2006-02-14  Jim Meyering  <jim@meyering.net>
72005
72006         Sync from coreutils.
72007         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72008         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72009         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72010         double-quote uses of that variable, to accommodate the rare case in
72011         which getmntent is available in none of the libraries checked.  This
72012         happens at least on FreeBSD 5.0.
72013
72014 2006-02-13  Simon Josefsson  <jas@extundo.com>
72015
72016         * gnulib-tool (Usage): Fix --import, from
72017         karl@freefriends.org (Karl Berry).
72018
72019 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72020
72021         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72022
72023 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72024
72025         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72026         "autoupdate" on 2005-12-12.
72027
72028 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72029
72030         * modules/closeout (Depends-on): Remove atexit.
72031
72032 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72033
72034         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72035         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72036
72037 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72038
72039         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72040         __EXTENSIONS__ if this causes compilation to fail.  Problem
72041         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72042         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72043
72044 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72045
72046         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72047         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72048         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72049         All uses changed.
72050
72051 2006-01-26  Simon Josefsson  <jas@extundo.com>
72052
72053         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72054         prototype is visible on mingw32.
72055
72056         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72057         for mingw32.
72058
72059         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72060         mingw32).
72061
72062 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72063
72064         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72065         attempt to open for write; this always fails, at least on POSIX
72066         hosts.  This reinstates the 2006-01-09 change, which was
72067         inadvertently removed.
72068
72069 2006-01-26  Bruno Haible  <bruno@clisp.org>
72070
72071         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72072         Reported by Paul Eggert.
72073
72074 2006-01-26  Bruno Haible  <bruno@clisp.org>
72075             Paul Eggert  <eggert@cs.ucla.edu>
72076
72077         * lib/stdbool_.h (_Bool)
72078         [(! (defined __cplusplus || defined __BEOS__)
72079           && !defined __GNUC__
72080           && !(defined __HP_cc || defined __xlc__
72081                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72082                || defined __sgi))]:
72083         #define to signed char in these cases too; this simplifies
72084         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72085         etc., separately) and makes it more conservative.
72086
72087 2006-01-25  Simon Josefsson  <jas@extundo.com>
72088
72089         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72090         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72091         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72092
72093 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72094
72095         * lib/argp-namefrob.h: Bugfix. Remove stray #
72096
72097 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72098
72099         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72100         so that we test the test.
72101         Check for yet another HP-UX cc bug involving *bool |= bool.
72102
72103 2006-01-25  Karl Berry  <karl@gnu.org>
72104
72105         * config/srclist.txt (vasnprintf.c): sync lost.
72106
72107 2006-01-25  Jim Meyering  <jim@meyering.net>
72108
72109         Sync from the stable (b5) branch of coreutils:
72110
72111         * lib/fts.c (fts_children): Don't let close() clobber errno from
72112         failed fchdir().
72113
72114         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72115         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72116         a dangling symlink.  That can also happen at least for ELOOP.
72117         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72118         FYI, this bug predates the inclusion of fts.c in coreutils.
72119
72120         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72121         in their own block, so pre-c99 compilers don't object.
72122
72123         Avoid the double-free (first in fts_read, second in fts_close) that
72124         would occur when an `active' directory is made inaccessible (e.g.,
72125         via chmod a-x) during a traversal.
72126         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72127         before returning.  Reproduce this failure by
72128         mkdir -p a/b; cd a; chmod a-x . b
72129         Reported by Stavros Passas.
72130
72131 2006-01-25  Jim Meyering  <jim@meyering.net>
72132
72133         * lib/fileblocks.c: Remove more useless parentheses.
72134         * lib/readutmp.h: Likewise.
72135
72136 2006-01-25  Bruno Haible  <bruno@clisp.org>
72137
72138         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72139         warnings.
72140         Reported by Paul Eggert.
72141
72142 2006-01-25  Bruno Haible  <bruno@clisp.org>
72143
72144         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72145         rid of a trap command. For Solaris sh.
72146         Reported by Mark D. Baushke <mdb@gnu.org>.
72147
72148 2006-01-24  Simon Josefsson  <jas@extundo.com>
72149
72150         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72151         Bruno.
72152
72153 2006-01-24  Karl Berry  <karl@gnu.org>
72154
72155         * config/srclist.txt (argp-namefrob.h): sync lost.
72156
72157 2006-01-24  Jim Meyering  <jim@meyering.net>
72158
72159         * modules/openat (Files): Add lib/intprops.h.
72160         From Mark D. Baushke.
72161
72162 2006-01-24  Jim Meyering  <jim@meyering.net>
72163
72164         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72165         Reported by Mark D. Baushke.
72166
72167 2006-01-24  Jim Meyering  <jim@meyering.net>
72168
72169         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72170
72171 2006-01-24  Bruno Haible  <bruno@clisp.org>
72172
72173         * modules/strnlen (Maintainer): Change from glibc to all.
72174
72175 2006-01-24  Bruno Haible  <bruno@clisp.org>
72176
72177         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72178         Patch by Paul Eggert.
72179
72180 2006-01-24  Bruno Haible  <bruno@clisp.org>
72181
72182         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72183         already has it.
72184         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72185         2005-11-26.
72186
72187         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72188         'signed char' to avoid problems with the built-in _Bool type.
72189         Reported by Paul Eggert on 2005-11-26.
72190
72191 2006-01-24  Bruno Haible  <bruno@clisp.org>
72192
72193         * gnulib-tool (func_import): Avoid constructing complicated sed
72194         expressions inside backquote.
72195         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72196
72197 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72198
72199         These changes imported from libc.
72200         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72201         test and two separate function calls.
72202         * lib/strndup.c (__strndup): Add libc_hidden_def.
72203
72204 2006-01-23  Simon Josefsson  <jas@extundo.com>
72205
72206         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72207         Remove the test_*_SOURCES variable: automake infers it by default.
72208         * modules/tls-tests: Likewise.
72209
72210 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72211
72212         Work around porting bugs reported by Dieter in
72213         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72214         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72215         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72216         Include "getopt.h" first, to check interface.
72217         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72218         !HAVE_DECL_GETENV.
72219         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72220         (__strndup): Revert to K&R-style function dfns, the glibc style.
72221         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72222         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72223         Include strnlen.h first, to get prototype properly.
72224         (strnlen): Renamed from __strnlen.
72225         Remove weak alias.
72226
72227 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72228
72229         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72230
72231 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72232
72233         * config/srclist.txt: Adjust to reflect glibc reorganization.
72234         This affects only comments.
72235
72236 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72237
72238          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72239          Reported by Bruce Korb <bkorb@gnu.org>.
72240
72241 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72242
72243         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72244         to pacify gcc -Wswitch-default.
72245
72246 2006-01-22  Bruno Haible  <bruno@clisp.org>
72247
72248         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72249         temporary buffer for sprintf, take into account the precision also
72250         for 'd', 'i', 'u', 'o', 'x', 'X'.
72251
72252 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72253
72254         * modules/argp-tests: New module
72255         * tests/test-argp.c: New file
72256         * tests/test-argp-2.sh: New file
72257
72258 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72259
72260         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72261         (__argp_base_name): Removed
72262         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72263         typo.
72264         (__argp_base_name): Provide macro definition or extern declaration
72265         depending on the configuration
72266
72267 2006-01-20  Simon Josefsson  <jas@extundo.com>
72268
72269         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72270
72271 2006-01-20  Simon Josefsson  <jas@extundo.com>
72272
72273         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72274
72275 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72276
72277         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72278         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72279         Suggested by Bruno Haible.
72280
72281 2006-01-20  Karl Berry  <karl@gnu.org>
72282
72283         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72284         until changes propagate, I guess.
72285
72286 2006-01-19  Simon Josefsson  <jas@extundo.com>
72287
72288         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72289
72290 2006-01-19  Simon Josefsson  <jas@extundo.com>
72291
72292         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72293
72294 2006-01-19  Simon Josefsson  <jas@extundo.com>
72295
72296         * gnulib-tool: Set check_PROGRAMS.
72297
72298         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72299         modules/des-tests, modules/gc-arcfour-tests,
72300         modules/gc-arctwo-tests, modules/gc-des-tests,
72301         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72302         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72303         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72304         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72305         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72306         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72307         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72308         test_*_SOURCES.
72309
72310 2006-01-18  Simon Josefsson  <jas@extundo.com>
72311
72312         * modules/socklen (Depends-on): Depend on sys_socket.
72313
72314 2006-01-18  Simon Josefsson  <jas@extundo.com>
72315
72316         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72317         modules/des-tests, modules/gc-arcfour-tests,
72318         modules/gc-arctwo-tests, modules/gc-des-tests,
72319         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72320         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72321         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72322         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72323         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72324         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72325         $(EXEEXT) to automake TESTS variable, for mingw32.
72326
72327 2006-01-17  Simon Josefsson  <jas@extundo.com>
72328
72329         * modules/socklen (Include): Need sys/socket.h.
72330
72331 2006-01-17  Bruno Haible  <bruno@clisp.org>
72332
72333         * modules/ssize_t (Include): Add <sys/types.h>.
72334
72335 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72336
72337         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72338         it's not portable and it doesn't work with cross-compiles.
72339         Problem reported by Bruno Haible.  Fix missing-$ typo in
72340         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72341         -zignore from being used with Sun's C compiler.
72342
72343 2006-01-12  Simon Josefsson  <jas@extundo.com>
72344
72345         * lib/base64.c: Fix warning, reported by Bruno Haible
72346         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72347
72348 2006-01-12  Bruno Haible  <bruno@clisp.org>
72349
72350         * modules/ldd: New file.
72351         * build-aux/ldd.sh.in: New file.
72352         * MODULES.html.sh (Support for building libraries and executables): Add
72353         ldd.
72354
72355 2006-01-12  Bruno Haible  <bruno@clisp.org>
72356
72357         * m4/ldd.m4: New file.
72358
72359 2006-01-12  Bruno Haible  <bruno@clisp.org>
72360
72361         * gnulib-tool (func_import, func_create_testdir): Don't go into an
72362         endless loop while replacing $auxdir with build-aux.
72363
72364 2006-01-11  Simon Josefsson  <jas@extundo.com>
72365
72366         * lib/stdint_.h (SIZE_MAX): Add missing (.
72367
72368 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
72369
72370         Sync from coreutils.
72371         * lib/md5.c: Fix commentary typos.
72372         (alignof, UNALIGNED_P): No need for a GCC-specific version.
72373         * lib/md5.h (__attribute__): Remove; unused.
72374         * lib/sha1.c: Fix commentary to match md5 better.
72375         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
72376         so that we don't need to worry about alignment.  All uses changed.
72377         This merges the 2005-10-28 md5 change into sha1.
72378
72379 2006-01-11  Jim Meyering  <jim@meyering.net>
72380
72381         Sync from coreutils.
72382         * lib/md5.c (OP): Fix spacing.
72383
72384 2006-01-11  Bruno Haible  <bruno@clisp.org>
72385
72386         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72387         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
72388         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
72389
72390 2006-01-11  Bruno Haible  <bruno@clisp.org>
72391
72392         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72393         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
72394         the "early" section as well.
72395
72396 2006-01-11  Bruno Haible  <bruno@clisp.org>
72397
72398         Avoid "ar: no archive members specified" error on MacOS X.
72399         * gnulib-tool (func_modules_add_dummy): New function.
72400         (func_import, func_create_testdir): Invoke it.
72401
72402 2006-01-11  Bruno Haible  <bruno@clisp.org>
72403
72404         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
72405         with $auxdir in AC_CONFIG_FILES statements.
72406
72407 2006-01-11  Bruno Haible  <bruno@clisp.org>
72408
72409         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72410         Initialize also noinst_HEADERS to empty.
72411
72412 2006-01-11  Bruno Haible  <bruno@clisp.org>
72413
72414         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
72415         variables.
72416         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
72417         autoreconf.
72418
72419 2006-01-11  Bruno Haible  <bruno@clisp.org>
72420
72421         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
72422         overridable by the user.
72423         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72424
72425 2006-01-10  Simon Josefsson  <jas@extundo.com>
72426
72427         * modules/sys_socket: New file.
72428
72429 2006-01-10  Simon Josefsson  <jas@extundo.com>
72430
72431         * m4/sys_socket_h.m4: New file.
72432
72433 2006-01-10  Simon Josefsson  <jas@extundo.com>
72434
72435         * lib/socket_.h: New file.
72436
72437 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72438
72439         * modules/readutmp (Maintainer): Add myself.
72440
72441 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72442
72443         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
72444         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
72445         People who are still concerned with buggy memcmp implementations
72446         can invoke gl_FUNC_MEMCMP themselves.
72447
72448 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72449
72450         * lib/regex_internal.h (BITSET_WORD_BITS):
72451         Work around a bug in 64-bit PGC (before version 6.1-2), where the
72452         preprocessor mishandles large unsigned values as if they were signed.
72453         Problem reported by Claudio Fontana in
72454         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72455
72456 2006-01-10  Jim Meyering  <jim@meyering.net>
72457
72458         Avoid the double-free (first in fts_read, second in fts_close) that
72459         would occur when an `active' directory is made inaccessible (e.g.,
72460         via chmod a-x) during a traversal.
72461         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72462         before returning.  Reproduce this failure by
72463         mkdir -p a/b; cd a; chmod a-x . b
72464         Reported by Stavros Passas.
72465
72466         Sync from coreutils.
72467         * lib/sha1.c: Tweak grammar in a comment.
72468
72469 2006-01-10  Jim Meyering  <jim@meyering.net>
72470
72471         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72472         Patch by Joerg Sonnenberger.
72473
72474 2006-01-10  Bruno Haible  <bruno@clisp.org>
72475
72476         * modules/readutmp: Depend on module free.
72477         * modules/strtok_r: Depend on module restrict.
72478
72479 2006-01-10  Bruno Haible  <bruno@clisp.org>
72480
72481         * modules/gettext (configure.ac): Add an invocation of
72482         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72483
72484 2006-01-10  Bruno Haible  <bruno@clisp.org>
72485
72486         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
72487         Reported by Werner Lemberg <wl@gnu.org>.
72488
72489 2006-01-10  Bruno Haible  <bruno@clisp.org>
72490
72491         * lib/localcharset.c: Update from GNU gettext.
72492
72493 2006-01-10  Bruno Haible  <bruno@clisp.org>
72494
72495         * lib/argp.h (__const): Remove macro. Use const instead.
72496         * lib/argp-fmtstream.h (__const): Likewise.
72497         * lib/glob_.h (__const): Remove macro.
72498         * lib/glob-libc.h: Use const instead of __const.
72499
72500 2006-01-10  Bruno Haible  <bruno@clisp.org>
72501
72502         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
72503         variable.
72504         Needed to avoid an automake error regarding the 'gettext' module.
72505
72506 2006-01-09  Simon Josefsson  <jas@extundo.com>
72507
72508         * modules/inet_ntop (Depends-on): Add restrict.
72509
72510 2006-01-09  Simon Josefsson  <jas@extundo.com>
72511
72512         * modules/gc-rijndael-tests (License): Put under LGPL.
72513
72514         * modules/gc-des-tests (License): Likewise.
72515
72516         * modules/gc-arcfour-tests (License): Likewise.
72517
72518         * modules/gc-arctwo-tests (License): Likewise.
72519
72520         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
72521
72522         * modules/gc-hmac-sha1-tests (Files): Likewise.
72523
72524         * modules/gc-hmac-md5-tests (License): Likewise.
72525
72526         * modules/gc-sha1-tests (License): Likewise.
72527
72528         * modules/gc-md5-tests (License): Likewise.
72529
72530         * modules/gc-md4-tests (License): Likewise.
72531
72532         * modules/gc-md2-tests (License): Likewise.
72533
72534         * modules/gc-tests (License): Likewise.
72535
72536         * modules/des-tests (License): Likewise.
72537
72538         * modules/md4-tests (License): Likewise.
72539
72540         * modules/md2-tests (License): Likewise.
72541
72542 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72543
72544         Sync from coreutils:
72545
72546         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
72547         * modules/lib-ignore: New file.
72548         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
72549         chdir-safer.m4, lchmod.m4.
72550         * modules/openat: Add mkdirat.c, openat-priv.h.
72551
72552 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72553
72554         Sync from coreutils.
72555         * m4/lib-ignore.m4: New file.
72556         * m4/lchmod.m4: New file.
72557
72558 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72559
72560         Sync from coreutils.
72561         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
72562         for write access: POSIX says that must fail.
72563         * lib/fts.c (diropen): Likewise.
72564         * lib/save-cwd.c (save_cwd): Likewise.
72565         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
72566         well, for minor improvements on hosts that lack O_DIRECTORY.
72567         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
72568         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
72569         Fall back on chown if open failed with EACCES.
72570
72571         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
72572         Report an error at compile-time if only a 1-second nominal clock
72573         resolution is found.
72574
72575         * lib/lchmod.h: New file.
72576         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
72577         (make_dir_parents): Use lchown rather than chown, and
72578         lchmod rather than chmod.
72579
72580         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
72581         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
72582         "proc" reported by n0dalus.
72583
72584         * lib/mountlist.c: Include <limits.h>.
72585         (dev_from_mount_options)
72586         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
72587         New function.  It no longer assumes "dev=" has the System V meaning
72588         on Linux (since it doesn't).  It also parses "dev=" more carefully.
72589         (read_file_system_list)
72590         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
72591         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
72592         dev= in that case.
72593
72594         * lib/posixtm.h (PDS_PRE_2000): New macro.
72595         * lib/posixtm.c (year): Arg is now syntax_bits rather than
72596         allow_century.  All usages changed.  Reject dates outside the range
72597         1969-1999 if PDS_PRE_2000 is used.
72598
72599 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72600
72601         Sync from coreutils.
72602         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
72603         (Time of day items): Mention the possibility of leap seconds.
72604         Problem reported by Dr. David Alan Gilbert.
72605
72606 2006-01-09  Jim Meyering  <jim@meyering.net>
72607
72608         Sync from coreutils.
72609
72610         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
72611
72612         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
72613
72614         * lib/modechange.c (mode_compile): Reject an invalid mode string
72615         that starts with an octal digit.  From Andreas Gruenbacher.
72616
72617         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
72618         and dup to open_safer and dup_safer, respectively.
72619         (openat_permissive): Fix typo in comment.
72620
72621         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
72622         "gettext.h"; either no longer needed or are guaranteed by openat.h.
72623         (_): Remove; no longer needed.
72624         (openat): Renamed from rpl_openat; no need for rpl_openat
72625         since openat.h renames openat for us.
72626         Replace most of the body with a call to openat_permissive,
72627         to avoid duplicate code.
72628         Port to (probably hypothetical) environments were mode_t is
72629         wider than int.
72630         (openat_permissive): Require mode arg, so that we can check
72631         types better.  Put it just after flags.  Change cwd failure
72632         indicator from pointer-to-bool to pointer-to-errno-value.
72633         All callers changed.
72634         Invoke openat_save_fail and/or openat_restore_fail if
72635         cwd_errno is null, so that openat can call us.
72636         (openat_permissive, fdopendir, fstatat, unlinkat):
72637         Simplify errno handling to avoid some duplicate code,
72638         as it's OK to set errno on success.
72639         * lib/openat.h: Revamp code so that function macros depend on
72640         __OPENAT_PREFIX only, not also on AT_FDCWD.
72641         (openat_ro): Remove.  Caller changed to use openat_permissive.
72642         (openat_permissive): Now a macro, if not a function.
72643         (openat_restore_fail, openat_save_fail): Now always functions,
72644         since mkdirat needs them even if __OPENAT_PREFIX is defined.
72645
72646         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
72647         and openat.c.
72648         * lib/mkdirat.c: Include openat-priv.h.
72649         Remove definitions of macros defined therein.
72650         * lib/openat.c: Likewise.
72651
72652         * lib/mkdirat.c (mkdirat): New file and function.
72653         * lib/openat.h (mkdirat): Declare.
72654
72655         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
72656
72657         * lib/openat.h (openat_permissive): Declare.
72658         (openat_ro): Define.
72659
72660         * lib/openat.c (EXPECTED_ERRNO): New macro.
72661         (openat_permissive): New function -- used in remove.c rewrite.
72662         (all functions): Set errno just before returning, only if there
72663         was an actual failure.
72664         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
72665
72666         Emulate openat-family functions using Linux's procfs, if possible.
72667         Idea and some code based on Ulrich Drepper's glibc changes.
72668
72669         * lib/openat.c: (BUILD_PROC_NAME): New macro.
72670         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
72671         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
72672         before falling back on save_cwd and restore_cwd.
72673         (fdopendir, fstatat, unlinkat): Likewise.
72674
72675         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
72676         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
72677
72678         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
72679         as second argument to va_arg.  Otherwise, some versions of gcc
72680         warn that `if this code is reached, the program will abort'.
72681
72682 2006-01-09  Jim Meyering  <jim@meyering.net>
72683
72684         Sync from coreutils.
72685         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
72686         Require openat-priv.h.
72687
72688 2006-01-09  Bruno Haible  <bruno@clisp.org>
72689
72690         * modules/strnlen (Include): Use strnlen.h.
72691
72692 2006-01-09  Bruno Haible  <bruno@clisp.org>
72693
72694         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
72695
72696 2006-01-09  Bruno Haible  <bruno@clisp.org>
72697
72698         * lib/sysexit_.h (EX_OK): New macro.
72699         Suggested by Martin Lambers <marlam@marlam.de>.
72700
72701 2006-01-09  Bruno Haible  <bruno@clisp.org>
72702
72703         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
72704         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
72705
72706 2006-01-09  Bruno Haible  <bruno@clisp.org>
72707
72708         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
72709         numbers.
72710
72711 2006-01-09  Bruno Haible  <bruno@clisp.org>
72712
72713         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
72714         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
72715         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
72716         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
72717
72718 2006-01-09  Bruno Haible  <bruno@clisp.org>
72719
72720         * build-aux/javacomp.sh.in: New file, moved from lib/.
72721         * modules/javacomp-script (Files): Update.
72722         (configure.ac): Add AC_CONFIG_FILES invocation.
72723         (EXTRA_DIST): Remove variable.
72724
72725         * build-aux/javaexec.sh.in: New file, moved from lib/.
72726         * modules/javaexec (Files): Update.
72727         (configure.ac): Add AC_CONFIG_FILES invocation.
72728         (EXTRA_DIST): Remove javaexec.sh.in.
72729
72730         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
72731         * modules/csharpcomp-script (Files): Update.
72732         (configure.ac): Add AC_CONFIG_FILES invocation.
72733         (EXTRA_DIST): Remove variable.
72734
72735         * build-aux/csharpexec.sh.in: New file, moved from lib/.
72736         * modules/csharpexec (Files): Update.
72737         (configure.ac): Add AC_CONFIG_FILES invocation.
72738         (EXTRA_DIST): Remove csharpexec.sh.in.
72739
72740 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72741
72742         Sync from coreutils.
72743
72744         Add POSIX ACL support
72745         * lib/acl.h (copy_acl, set_acl): Add declarations.
72746         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
72747         systems other than Linux.
72748         (chmod_or_fchmod): New function: use fchmod when possible,
72749         and chmod otherwise.
72750         (file_has_acl): Add a POSIX ACL implementation, with a
72751         Linux-specific subcase.
72752         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
72753         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
72754         acls are unsupported.
72755         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
72756         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
72757         are unsupported.
72758
72759 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72760
72761         Sync from coreutils.
72762         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
72763
72764 2006-01-07  Bruno Haible  <bruno@clisp.org>
72765
72766         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
72767         gl_EARLY.
72768
72769 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72770
72771         * lib/strftime.c (tzname): Don't declare if it is already #defined.
72772         Problem reported for Mingw by Mark Junker.
72773
72774 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72775
72776         * README: Gnulib normally doesn't generate a tarball.
72777
72778 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
72779
72780         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
72781         long int, not int, for nanosecond counts, so that people who are
72782         used to POSIX struct timespec won't be surprised.  Reported by Jim
72783         Meyering.
72784
72785 2005-12-28  Bruno Haible  <bruno@clisp.org>
72786
72787         * build-aux/config.rpath: Update from GNU gettext.
72788
72789 2005-12-16  Jim Meyering  <jim@meyering.net>
72790
72791         * modules/fprintftime: New module.
72792         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
72793
72794 2005-12-16  Jim Meyering  <jim@meyering.net>
72795
72796         * m4/fprintftime.m4: New file.
72797
72798 2005-12-16  Jim Meyering  <jim@meyering.net>
72799
72800         * lib/fprintftime.c, lib/fprintftime.h: New files.
72801
72802 2005-12-15  Simon Josefsson  <jas@extundo.com>
72803
72804         * modules/socklen (configure.ac): Fix M4 macro name, to align with
72805         new m4/socklen.m4.
72806
72807 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72808
72809         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
72810         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
72811
72812 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72813
72814         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
72815         * lib/argp-help.c (fill_in_uparams): Check if the constructed
72816         struct uparams is valid. Fall back to the default values if it is
72817         not.
72818
72819 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72820
72821         * modules/argp (Files): Add argp-pin.c
72822         (Depends-on): dirname
72823         (lib_SOURCES): Add argp-pin.c
72824
72825 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72826
72827         * m4/argp.m4:  Check if program_invocation_name and
72828         program_invocation_short_name are declared and define appropriate
72829         macros if they are not.
72830
72831 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72832
72833         * lib/argp-help.c (__argp_base_name): New function
72834         (__argp_short_program_name): Rewrite using __argp_base_name
72835         * lib/argp-namefrob.h: Define program_invocation_name and
72836         program_invocation_short_name if requested
72837         (__argp_base_name): Add prototype
72838         * lib/argp-parse.c (argp_def): Use gettext wrappers
72839         (argp_default_parser): Use __argp_base_name
72840         * lib/argp-pin.c: New file. Defines program_invocation_name and
72841         program_invocation_short_name on systems that lack them.
72842
72843 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72844
72845         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
72846         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72847         porting problem reported by Georg Schwarz in
72848         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72849
72850 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72851
72852         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
72853         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72854         porting problem reported by Georg Schwarz in
72855         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72856
72857 2005-12-05  Bruno Haible  <bruno@clisp.org>
72858
72859         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
72860         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
72861         Reported by Mark Junker <mjscod@gmx.de>.
72862
72863 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
72864
72865         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
72866         Use implementation from Albert Chin, with some
72867         comments/corrections by Stepan Kasal and myself.
72868
72869 2005-12-02  Bruno Haible  <bruno@clisp.org>
72870
72871         * gnulib-tool (func_import): Accept GPLed build tool modules when
72872         --lgpl is given.
72873         * modules/csharpcomp-script: New file.
72874         * modules/csharpcomp: Depend on it.
72875         * modules/javacomp-script: New file.
72876         * modules/javacomp: Depend on it.
72877         Suggested by Simon Josefsson.
72878
72879 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
72880
72881         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
72882         statement, to work around an HP-UX 10.20 compiler bug reported by
72883         Peter O'Gorman.
72884
72885 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72886
72887         * modules/savedir (Depends-on): Add openat.
72888
72889 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72890
72891         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
72892         (uintmax_t) [defined uintmax_t]: Do not declare.
72893         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
72894         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
72895         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
72896         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
72897         sake of portability to weird hosts that C allows (though we don't
72898         know of any practical examples).
72899
72900         * lib/savedir.h (fdsavedir): New decl.
72901         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
72902         contains most of the former guts of savedir.
72903         (savedir): Use savedirstream.
72904         Include "openat.h".
72905
72906 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72907
72908         * modules/obstack (Files): Add m4/ulonglong.m4.
72909         Problem reported by Davide Angelocola.
72910
72911 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
72912
72913         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
72914         coreutils no longer futzes with rounding modes.
72915
72916 2005-11-14  Jim Meyering  <jim@meyering.net>
72917
72918         * lib/mkstemp-safer.c: Include <config.h>, required for possible
72919         replacement of mkstemp.
72920
72921 2005-11-10  Simon Josefsson  <jas@extundo.com>
72922
72923         * lib/readline.c: Remove EOL.
72924
72925 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72926
72927         * modules/gethrxtime (Depends-on): Add gettime.
72928
72929 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72930
72931         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
72932         or gettimeofday; no longer needed.
72933
72934 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72935
72936         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
72937         time business.
72938         (gethrxtime) [! (HAVE_NANOUPTIME
72939         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
72940         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
72941         our own approximation.
72942
72943 2005-11-08  Eric Blake  <ebb9@byu.net>
72944
72945         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72946
72947 2005-11-08  Eric Blake  <ebb9@byu.net>
72948
72949         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72950
72951 2005-11-04  Bruno Haible  <bruno@clisp.org>
72952
72953         * gnulib-tool: Implement --update mode.
72954
72955 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72956
72957         Fix porting problem reported by Theodoros V. Kalamatianos.
72958         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
72959         Don't assume that futimes failing means we must fail.
72960
72961 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72962
72963         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
72964         variables to suggest the intended function of the PATH_MAX check.
72965
72966 2005-10-30  Kean Johnston  <jkj@sco.com>
72967
72968         Trivial changes to support SCO systems.
72969         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
72970         as PATH_MAX.
72971         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
72972         where __ptr is null when no I/O is pending.
72973
72974 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72975
72976         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
72977         leave errno alone.  Problem reported by Dmitry V. Levin.
72978
72979 2005-10-28  Simon Josefsson  <jas@extundo.com>
72980
72981         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
72982         Test more.
72983
72984         * tests/test-gc-md2.c, tests/test-md2.c: New files.
72985
72986         * modules/md2, modules/md2-tests: New files.
72987
72988 2005-10-28  Simon Josefsson  <jas@extundo.com>
72989
72990         * m4/inet_ntop.m4: More tests.
72991
72992         * m4/gc-md2.m4, md2.m4: New file.
72993
72994 2005-10-28  Simon Josefsson  <jas@extundo.com>
72995
72996         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
72997         "restrict" keywords, as per POSIX.  Protect the function
72998         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
72999         Don't use K&R prototypes.  Check the sprintf return values.
73000         Re-define EAFNOSUPPORT if not present.  Indent.
73001
73002         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73003         suggested by Bruno Haible <bruno@clisp.org>.
73004
73005         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73006
73007         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73008
73009         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73010         libgcrypt).
73011
73012         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73013
73014         * lib/md2.h, lib/md2.c: New files.
73015
73016 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73017
73018         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73019         errno alone.  Problem reported by Frederic Jolliton.
73020
73021 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73022
73023         * modules/verify (License): Change from GPL to LGPL.  This is a
73024         tiny module and there are apparently near-equivalents that are
73025         under the BSD license.
73026
73027 2005-10-24  Simon Josefsson  <jas@extundo.com>
73028
73029         * modules/sha1: Relicense to LGPL.
73030
73031 2005-10-24  Simon Josefsson  <jas@extundo.com>
73032
73033         * lib/md4.h: Shrink buffer size, now that we changed the type.
73034
73035 2005-10-23  Simon Josefsson  <jas@extundo.com>
73036
73037         * gnulib-tool (func_import): Fix --tests-base.
73038
73039 2005-10-22  Simon Josefsson  <jas@extundo.com>
73040
73041         * modules/arcfour (Depends-on): Need stdint.
73042
73043 2005-10-22  Simon Josefsson  <jas@extundo.com>
73044
73045         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73046         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73047
73048 2005-10-22  Simon Josefsson  <jas@extundo.com>
73049
73050         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73051         suggested by Bruno Haible <bruno@clisp.org>.
73052
73053 2005-10-22  Simon Josefsson  <jas@extundo.com>
73054
73055         * lib/crc.h: Include stddef.h, for size_t.
73056
73057 2005-10-22  Simon Josefsson  <jas@extundo.com>
73058
73059         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73060         arcfour_context struct (simplify test vector testing in GNU
73061         Shishi).
73062
73063 2005-10-21  Simon Josefsson  <jas@extundo.com>
73064
73065         * modules/des, modules/des-tests: New files.
73066
73067         * modules/gc-des, modules/gc-des-tests: New files.
73068
73069         * tests/test-des.c, tests/test-gc-des.c: New file.
73070
73071 2005-10-21  Simon Josefsson  <jas@extundo.com>
73072
73073         * modules/arctwo, modules/arctwo-tests: New files.
73074
73075         * tests/test-arctwo.c: New file.
73076
73077         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73078
73079         * tests/test-gc-arctwo.c: New file.
73080
73081 2005-10-21  Simon Josefsson  <jas@extundo.com>
73082
73083         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73084         Bruno Haible <bruno@clisp.org>.
73085
73086         * m4/gc-des.m4: New file.
73087
73088 2005-10-21  Simon Josefsson  <jas@extundo.com>
73089
73090         * m4/arctwo.m4: New file.
73091
73092         * m4/gc-arctwo.m4: New file.
73093
73094 2005-10-21  Simon Josefsson  <jas@extundo.com>
73095
73096         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73097         block.
73098
73099 2005-10-21  Simon Josefsson  <jas@extundo.com>
73100
73101         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73102         <bruno@clisp.org>.
73103
73104         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73105
73106         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73107         Bruno Haible <bruno@clisp.org>.
73108
73109         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73110         <bruno@clisp.org>.
73111
73112 2005-10-21  Simon Josefsson  <jas@extundo.com>
73113
73114         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73115
73116 2005-10-21  Simon Josefsson  <jas@extundo.com>
73117
73118         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73119
73120 2005-10-21  Simon Josefsson  <jas@extundo.com>
73121
73122         * lib/des.h, lib/des.c: New files.
73123
73124         * lib/gc-gnulib.c: Support DES.c
73125
73126 2005-10-21  Simon Josefsson  <jas@extundo.com>
73127
73128         * lib/arctwo.h, lib/arctwo.c: New files.
73129
73130         * lib/gc-gnulib.c: Support ARCTWO.
73131
73132 2005-10-21  Simon Josefsson  <jas@extundo.com>
73133
73134         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73135         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73136
73137 2005-10-21  Simon Josefsson  <jas@extundo.com>
73138
73139         * gnulib-tool (func_import, func_create_testdir): Define automake
73140         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73141         Makefile.am snippet),
73142         suggested by Bruno Haible <bruno@clisp.org>.
73143
73144         * modules/gc (Makefile.am): Use it.
73145
73146 2005-10-21  Bruno Haible  <bruno@clisp.org>
73147
73148         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73149         patch.
73150
73151 2005-10-19  Simon Josefsson  <jas@extundo.com>
73152
73153         * tests/test-gc-rijndael.c: New file.
73154
73155         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73156
73157 2005-10-19  Simon Josefsson  <jas@extundo.com>
73158
73159         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73160         interface too.
73161
73162 2005-10-19  Simon Josefsson  <jas@extundo.com>
73163
73164         * tests/test-gc-arcfour.c: New file.
73165
73166         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73167
73168 2005-10-19  Simon Josefsson  <jas@extundo.com>
73169
73170         * modules/gc-md4, modules/gc-md4-tests: New file.
73171
73172         * tests/test-gc-md4.c: New file.
73173
73174 2005-10-19  Simon Josefsson  <jas@extundo.com>
73175
73176         * m4/gc-md4.m4: New file.
73177
73178 2005-10-19  Simon Josefsson  <jas@extundo.com>
73179
73180         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73181         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73182         <kasal@ucw.cz>.
73183
73184 2005-10-19  Simon Josefsson  <jas@extundo.com>
73185
73186         * m4/gc-arcfour.m4: New file.
73187
73188         * m4/gc-rijndael.m4: New file.
73189
73190 2005-10-19  Simon Josefsson  <jas@extundo.com>
73191
73192         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73193
73194 2005-10-19  Simon Josefsson  <jas@extundo.com>
73195
73196         * lib/gc-gnulib.c: Support ARCFOUR.
73197
73198 2005-10-19  Simon Josefsson  <jas@extundo.com>
73199
73200         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73201         support.
73202
73203         * lib/gc.h: Add ECB enum type.
73204
73205         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73206
73207 2005-10-18  Simon Josefsson  <jas@extundo.com>
73208
73209         * tests/test-md5.c: New file.
73210
73211         * modules/md5-tests: New file.
73212
73213 2005-10-18  Simon Josefsson  <jas@extundo.com>
73214
73215         * tests/test-md4.c: New file.
73216
73217         * modules/md4, modules/md4-tests: New files.
73218
73219 2005-10-18  Simon Josefsson  <jas@extundo.com>
73220
73221         * m4/md4.m4: New file.
73222
73223 2005-10-18  Simon Josefsson  <jas@extundo.com>
73224
73225         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73226
73227 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73228
73229         * gnulib-tool (func_create_testdir): Omit the second check whether
73230         BUILT_SOURCES in nonempty.
73231
73232 2005-10-17  Simon Josefsson  <jas@extundo.com>
73233
73234         * tests/test-rijndael.c: New file.
73235
73236 2005-10-17  Simon Josefsson  <jas@extundo.com>
73237
73238         * modules/sha1: Depend on stdint instead of md5.
73239
73240         * modules/md5: Depend on stdint, remove uint32_t.
73241
73242 2005-10-17  Simon Josefsson  <jas@extundo.com>
73243
73244         * modules/gc-sha1-tests: New file.
73245
73246         * tests/test-gc-sha1.c: New file.
73247
73248 2005-10-17  Simon Josefsson  <jas@extundo.com>
73249
73250         * m4/md5.m4: Remove call to uint32_t.m4.
73251
73252 2005-10-17  Simon Josefsson  <jas@extundo.com>
73253
73254         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73255
73256         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73257         md5.h.
73258
73259         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73260
73261         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73262
73263 2005-10-17  Simon Josefsson  <jas@extundo.com>
73264
73265         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73266
73267 2005-10-17  Simon Josefsson  <jas@extundo.com>
73268
73269         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73270
73271 2005-10-17  Simon Josefsson  <jas@extundo.com>
73272
73273         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73274
73275         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73276
73277 2005-10-17  Bruno Haible  <bruno@clisp.org>
73278
73279         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73280         that it can also be used in a test.
73281
73282 2005-10-16  Bruno Haible  <bruno@clisp.org>
73283
73284         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73285         TESTS_ENVIRONMENT, so that individual tests can augment it.
73286
73287         * gnulib-tool (func_create_testdir): Use an intermediate target for
73288         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73289         macros, like $(ALLOCA_H), which cannot be passed through the command
73290         line.
73291
73292 2005-10-15  Simon Josefsson  <jas@extundo.com>
73293
73294         * modules/rijndael-tests: New file.
73295
73296         * modules/rijndael: New file.
73297
73298 2005-10-15  Simon Josefsson  <jas@extundo.com>
73299
73300         * m4/rijndael.m4: New file.
73301
73302 2005-10-15  Simon Josefsson  <jas@extundo.com>
73303
73304         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73305
73306         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73307
73308 2005-10-14  Simon Josefsson  <jas@extundo.com>
73309
73310         * tests/test-arcfour.c: New file.
73311
73312         * modules/arcfour, modules/arcfour-tests: New files.
73313
73314 2005-10-14  Simon Josefsson  <jas@extundo.com>
73315
73316         * m4/arcfour.m4: New file.
73317
73318 2005-10-14  Simon Josefsson  <jas@extundo.com>
73319
73320         * lib/arcfour.h, lib/arcfour.c: New files.
73321
73322 2005-10-14  Roland McGrath  <roland@redhat.com>
73323
73324         Import from libc.  [BZ #1331]
73325         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73326         macro argument.
73327         Reported by Matej Vela <vela@debian.org>.
73328
73329 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73330
73331         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73332         include <wchar.h>; no longer needed.
73333
73334 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73335
73336         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73337
73338 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73339         and  Ulrich Drepper  <drepper@redhat.com>
73340
73341         Import from libc.
73342         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73343         instead of inline stream orientation test and two separate
73344         function calls.  Pay no attention to USE_IN_LIBIO.
73345
73346 2005-10-13  Simon Josefsson  <jas@extundo.com>
73347
73348         * modules/gc-hmac-md5-tests: New file.
73349
73350         * tests/test-gc-hmac-sha1.c: New file.
73351
73352         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73353
73354         * modules/gc-hmac-md5-tests: New file.
73355
73356         * tests/test-gc-md5.c: New file.
73357
73358         * modules/gc-md5-tests: New file.
73359
73360 2005-10-13  Simon Josefsson  <jas@extundo.com>
73361
73362         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
73363         Move memory allocation outside of loop.
73364
73365 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
73366
73367         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
73368         intermediate directory is in a read-only file system.  Problem
73369         reported by Eric Blake.
73370
73371 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
73372
73373         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
73374
73375 2005-10-12  Simon Josefsson  <jas@extundo.com>
73376
73377         * tests/test-hmac-sha1.c: New file.
73378
73379         * modules/hmac-sha1-tests: New file.
73380
73381         * modules/hmac-sha1: New file.
73382
73383 2005-10-12  Simon Josefsson  <jas@extundo.com>
73384
73385         * modules/gc-sha1: New file.
73386
73387 2005-10-12  Simon Josefsson  <jas@extundo.com>
73388
73389         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
73390
73391         * tests/test-gc-pbkdf2-sha1.c: New file.
73392
73393 2005-10-12  Simon Josefsson  <jas@extundo.com>
73394
73395         * modules/gc-md5, modules/gc-hmac-md5: New files.
73396
73397         * modules/gc (Files): Remove md5, memxor and hmac files.
73398
73399 2005-10-12  Simon Josefsson  <jas@extundo.com>
73400
73401         * m4/gc-pbkdf2-sha1.m4: New file.
73402
73403         * m4/gc-hmac-sha1.m4: New file.
73404
73405         * m4/gc-sha1: New file.
73406
73407         * m4/hmac-sha1.m4: New file.
73408
73409 2005-10-12  Simon Josefsson  <jas@extundo.com>
73410
73411         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
73412
73413         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
73414
73415 2005-10-12  Simon Josefsson  <jas@extundo.com>
73416
73417         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
73418         suggested by Bruno Haible <bruno@clisp.org>.
73419
73420 2005-10-12  Simon Josefsson  <jas@extundo.com>
73421
73422         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
73423
73424 2005-10-12  Simon Josefsson  <jas@extundo.com>
73425
73426         * lib/gc-pbkdf2-sha1.c: New file.
73427
73428         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
73429
73430 2005-10-12  Simon Josefsson  <jas@extundo.com>
73431
73432         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
73433
73434         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
73435
73436 2005-10-12  Simon Josefsson  <jas@extundo.com>
73437
73438         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
73439         GC_USE_HMAC_MD5, respectively.
73440
73441         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
73442         (gc_md5): Fix typo.
73443
73444         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
73445
73446         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
73447
73448         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
73449
73450 2005-10-12  Bruno Haible  <bruno@clisp.org>
73451
73452         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73453         Reported by Stepan Kasal <kasal@ucw.cz>.
73454
73455 2005-10-11  Simon Josefsson  <jas@extundo.com>
73456
73457         * tests/test-crc.c: New file.
73458
73459         * modules/crc, modules/crc-tests: New files.
73460
73461 2005-10-11  Simon Josefsson  <jas@extundo.com>
73462
73463         * m4/crc.m4: New file.
73464
73465 2005-10-11  Simon Josefsson  <jas@extundo.com>
73466
73467         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73468
73469         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73470
73471         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73472
73473 2005-10-11  Simon Josefsson  <jas@extundo.com>
73474
73475         * lib/crc.h, lib/crc.c: New files.
73476
73477         * lib/gc.h (gc_hash_buffer): Add doc.
73478
73479 2005-10-11  Bruno Haible  <bruno@clisp.org>
73480
73481         * modules/c-strcasestr: New file.
73482         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73483
73484 2005-10-11  Bruno Haible  <bruno@clisp.org>
73485
73486         * modules/c-strcase: New file.
73487         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
73488
73489 2005-10-11  Bruno Haible  <bruno@clisp.org>
73490
73491         * lib/strcasecmp.c: Include limits.h.
73492         (strcasecmp): Avoid integer overflow on exotic platforms.
73493         * lib/strncasecmp.c: Include limits.h.
73494         (strncasecmp): Avoid integer overflow on exotic platforms.
73495         Reported by Paul Eggert.
73496
73497 2005-10-11  Bruno Haible  <bruno@clisp.org>
73498
73499         * lib/c-strcasestr.h: New file, from GNU gettext.
73500         * lib/c-strcasestr.c: New file, from GNU gettext.
73501
73502 2005-10-11  Bruno Haible  <bruno@clisp.org>
73503
73504         * lib/c-strcase.h: New file, from GNU gettext.
73505         * lib/c-strcasecmp.c: New file, from GNU gettext.
73506         * lib/c-strncasecmp.c: New file, from GNU gettext.
73507
73508 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73509
73510         * modules/mempcpy (License): GPL -> LGPL.
73511         * modules/strchrnul (License): Likewise.
73512         * modules/sysexits (License): Likewise.
73513
73514 2005-10-08  Simon Josefsson  <jas@extundo.com>
73515
73516         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
73517
73518 2005-10-07  Simon Josefsson  <jas@extundo.com>
73519
73520         * m4/memxor.m4: Remove gl_C_RESTRICT call.
73521
73522 2005-10-06  Simon Josefsson  <jas@extundo.com>
73523
73524         * tests/test-hmac-md5.c: New file.
73525
73526         * modules/hmac-md5-tests: New file.
73527
73528         * modules/hmac-md5: New file.
73529
73530 2005-10-06  Simon Josefsson  <jas@extundo.com>
73531
73532         * m4/hmac-md5.m4: New file.
73533
73534         * m4/memxor.m4: Require gl_C_RESTRICT.
73535
73536 2005-10-06  Simon Josefsson  <jas@extundo.com>
73537
73538         * lib/memxor.c (memxor): Avoid casts and warnings.
73539
73540 2005-10-06  Simon Josefsson  <jas@extundo.com>
73541
73542         * lib/hmac-md5.c: New file.
73543
73544         * lib/hmac.h: New file.
73545
73546 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73547
73548         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
73549         promotes to int, not unsigned int, to catch the AIX 5.3
73550         compiler bug.
73551
73552 2005-10-05  Simon Josefsson  <jas@extundo.com>
73553
73554         * modules/memxor: New file.
73555
73556         * modules/iconv (Files): Move config.rpath to havelib, it is used
73557         there.
73558
73559         * modules/havelib (Files): Add config.rpath.
73560
73561 2005-10-05  Simon Josefsson  <jas@extundo.com>
73562
73563         * m4/memxor.m4: New file.
73564
73565 2005-10-05  Simon Josefsson  <jas@extundo.com>
73566
73567         * lib/memxor.c (memxor): Fix compiler error.
73568
73569         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
73570         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
73571
73572         * lib/memxor.h, lib/memxor.c: New files.
73573
73574         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
73575         we assume all systems have it, suggested by Jim Meyering
73576         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
73577         any systems lack sys/socket.h; mingw32 is known to lack it, but we
73578         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
73579         same reasons.
73580
73581 2005-10-05  Simon Josefsson  <jas@extundo.com>
73582
73583         * config/srclist.txt: Add glibc bug 1423 for md5.h.
73584
73585 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73586
73587         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
73588         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
73589         needed, since the source code now assumes these .h files.
73590
73591 2005-10-05  Derek Price  <derek@ximbiot.com>
73592
73593         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
73594
73595 2005-10-05  Bruno Haible  <bruno@clisp.org>
73596
73597         * modules/stdint (License): Change to LGPL.
73598
73599 2005-10-04  Simon Josefsson  <jas@extundo.com>
73600
73601         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
73602         D. Baushke" <mdb@gnu.org>.
73603
73604 2005-10-04  Bruno Haible  <bruno@clisp.org>
73605
73606         * lib/verify.h (verify_true): Provide alternative definition for C++.
73607
73608 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
73609
73610         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
73611         (SSIZE_MAX): New macro, if not already defined.
73612         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
73613         than 2 GiB.
73614
73615 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73616
73617         Sync from coreutils.
73618         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
73619         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
73620         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
73621         ULLONG_MAX doesn't work with 2.7.2.1.
73622
73623 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73624
73625         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
73626         From Ben Pfaff.
73627
73628         * modules/exclude (Depends-on): Depend on verify.
73629         * modules/strtoimax (Depends-on): Likewise.
73630         * modules/utimecmp (Depends-on): Likewise.
73631
73632 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73633
73634         * lib/exclude.c: Include verify.h.
73635         (verify): Remove.  All callers changed to use verify.h's version.
73636         * lib/strtoimax.c: Likewise.
73637         * lib/utimecmp.c: Likewis.e
73638
73639         Sync from coreutils.
73640         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
73641         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
73642         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
73643         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
73644         bother returning ENOSYS if settimeofday or stime fails; just let
73645         them return whatever errno they want to return.
73646         * lib/utimens.c: Include unistd.h, for dup2.
73647         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
73648         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
73649
73650 2005-10-02  Jim Meyering  <jim@meyering.net>
73651
73652         Sync from coreutils.
73653         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
73654         from glibc-2.2.5 that fails for read-only files.
73655
73656 2005-10-02  Jim Meyering  <jim@meyering.net>
73657
73658         Sync from coreutils.
73659         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
73660         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
73661         `#if HAVE_CONFIG_H'.
73662         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
73663         Remove AT_FDCWD test.
73664         Do not consume the fd unless successful.
73665         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
73666         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
73667         block, so that we don't even try to compile it if settimeofday is
73668         available.  This works around a compilation failure on OSF1 V5.1,
73669         due to stime requiring a `long int*' while tv_sec is `int'.
73670
73671 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
73672
73673         Sync from coreutils.
73674         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
73675         against `yes', rather than just testing for nonempty.
73676
73677 2005-10-01  Simon Josefsson  <jas@extundo.com>
73678
73679         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
73680         and Darwin.
73681
73682         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
73683         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
73684         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
73685         freeaddrinfo and gai_strerror are declared by the POSIX headers.
73686         Check if struct addrinfo is declared.
73687
73688 2005-10-01  Simon Josefsson  <jas@extundo.com>
73689
73690         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
73691         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
73692         AI_* and EAI_* definitions.  Protect function declarations.
73693
73694 2005-10-01  Jim Meyering  <jim@meyering.net>
73695
73696         Sync from coreutils.
73697
73698         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
73699         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
73700         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
73701         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73702         in the inet and nsl libraries.  Required on Solaris 5.7.
73703
73704 2005-10-01  Jim Meyering  <jim@meyering.net>
73705
73706         Sync from coreutils.
73707         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73708         in the inet and nsl libraries.  Required on Solaris 5.7.
73709
73710 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
73711
73712         * lib/getdelim.c (getdelim): Remove unused variables.
73713
73714 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73715
73716         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
73717         so that the code works even with ancient cpp.  Portability problem
73718         with GCC 2.7.2.1 reported by Thomas M.Ott.
73719
73720 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73721
73722         * modules/regex (Depends-on): Add strcase.
73723
73724         * modules/gethostname (Licence): Change from GPL to LGPL, since
73725         gethostname.c is a trivial implementation of a standard library
73726         function.
73727         * modules/poll (License): Change from GPL to LGPL, since it's
73728         derived from LGPL code.
73729
73730 2005-09-27  Jim Meyering  <jim@meyering.net>
73731
73732         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
73733         HAVE_CONFIG_H.
73734
73735         * lib/intprops.h (signed_type_or_expr__): Define.
73736         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
73737         for unsigned types.
73738
73739 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73740
73741         * lib/verify.h (verify_expr): Remove, replacing with:
73742         (verify_true): New macro that returns true instead of void.
73743         (verify_type__): Remove.
73744         (verify): Use verify_true rather than verify_type__.
73745
73746 2005-09-26  Bruno Haible  <bruno@clisp.org>
73747
73748         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
73749         is necessary.
73750         (lib_SOURCES): Remove mbchar.c.
73751         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
73752         (Files): Add m4/mbrtowc.m4.
73753         * modules/mbiter: Likewise.
73754         * modules/mbuiter: Likewise.
73755
73756 2005-09-26  Bruno Haible  <bruno@clisp.org>
73757
73758         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
73759         compile mbchar.c if they are not both present.
73760         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
73761         * m4/mbiter.m4 (gl_MBITER): Likewise.
73762         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
73763         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
73764         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
73765
73766 2005-09-25  Jim Meyering  <jim@meyering.net>
73767
73768         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
73769         also uses socklen_t.
73770
73771 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
73772
73773         * lib/utimens.c (ENOSYS): Define if not already defined.
73774         (futimens): Support having a null PATH if the file descriptor
73775         is nonnegative.
73776
73777         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
73778         Remove.
73779         (__attribute): Define to empty unless GCC 3.1 or later.
73780         This works around a core dump on OpenBSD 3.4, which has GCC
73781         2.95.3, which dumps core when given __attribute__(()).  It also
73782         simplifies other tests, since we really don't want to bother with
73783         worrying about which ancient version of GCC supported what.
73784         Original problem reported by Yoann Vandoorselaere, with part of
73785         the fix suggested by Derek Price.
73786
73787 2005-09-24  Jim Meyering  <jim@meyering.net>
73788
73789         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
73790         so we can once again use a positive bitfield width of 1 -- now we
73791         don't have to explain why we were using a bitfield width of 2.
73792
73793 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73794
73795         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
73796         and similarly for the other external symbols.  Problem reported
73797         by James Gallager.
73798
73799         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
73800         bug reported by Jim Meyering.
73801
73802         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
73803         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
73804         not needed, since socklen is a prerequisite module.
73805
73806 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73807
73808         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
73809         Problem reported by Eric Blake.
73810         (getaddrinfo): Initialize se so that it's not garbage.
73811         Redo internal storage allocation so that it doesn't make unportable
73812         assumptions about alignment.
73813         Fix a memory leak.
73814
73815         * lib/utimens.c (futimens): Use futimesat if available.
73816         Prefer it to futimes since it doesn't have the futimes bug.
73817
73818         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
73819         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
73820         Instead, declare a function that returns a pointer to an array,
73821         and use verify_type__ to declare the size of the array.
73822         Problem and germ of a solution reported by Bruno Haible.
73823         (verify_type__): Use 2, not 1, for bitfield size, to avoid
73824         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
73825
73826 2005-09-23  Jim Meyering  <jim@meyering.net>
73827
73828         Sync from coreutils.
73829         Correct build failure (socklen_t not defined) on at least
73830         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
73831         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
73832
73833 2005-09-23  Jim Meyering  <jim@meyering.net>
73834
73835         * modules/getaddrinfo (Depends-on): Add socklen.
73836
73837 2005-09-23  Bruno Haible  <bruno@clisp.org>
73838
73839         * tests/test-verify.c: New file.
73840
73841 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73842
73843         Sync from coreutils.
73844
73845         * modules/argmatch (Depends-on): Add verify.
73846         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
73847         unistd-safer.
73848         * modules/save-cwd (Depends-on): Likewise.
73849
73850         * modules/openat (Files): Add lib/openat-die.c.
73851         (Depends-on): Remove error, exitfail.
73852         Add dirname.
73853
73854         * modules/verify: New file.
73855         * MODULES.html.sh (Diagnostics <assert.h>): New section,
73856         with "verify" module.
73857
73858 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73859
73860         Sync from coreutils.
73861
73862         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
73863         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
73864         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
73865         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
73866         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
73867         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
73868         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
73869         Don't bother checking for string.h, stdlib.h, unistd.h.
73870         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
73871         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
73872         module's job.
73873         * m4/jm-macros.m4 (gl_MACROS): Likewise.
73874         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
73875
73876         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
73877         (gl_GETDATE): Use it.
73878
73879         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
73880
73881 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73882
73883         Sync from coreutils.
73884
73885         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
73886         stat-time.h.
73887         * lib/argmatch.h: Include verify.h
73888         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
73889         (ARGMATCH_ASSERT): Remove; unused.
73890         * lib/canonicalize.c: Assume STDC_HEADERS.
73891         * lib/exclude.c: Include "strcase.h".
73892         * lib/regex_internal.h [!defined _LIBC]: Likewise.
73893         * lib/getusershell.c: Include stdio--.h rather than stdio.h
73894         and stdio-safer.h.
73895         (getusershell): Call fopen, not fopen_safer.
73896         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
73897         Do not include unistd-safer.h.
73898         (save_cwd): Don't call fd_safer; no longer needed
73899         now that we include fcntl--.h.
73900
73901         * lib/getdate.y (relative_time): New type.
73902         (RELATIVE_TIME_0): New constant.
73903         (parser_control): Use relative_time instead of doing it ourselves.
73904         (%union): Add new relative_time rel member.
73905         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
73906         Now typeless.
73907         (relunit, relunit_snumber): Now of type rel.
73908         (zone, rel, relunit, get_date): Adjust to above changes.
73909
73910         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
73911         Do not include unistd-safer.h.
73912         (getloadavg): Don't call fd_safer; no longer needed
73913         now that we include fcntl--.h.
73914
73915         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
73916         (make_dir_parents): Treat ENOSYS like EEXIST.
73917
73918         Improve quality of diagnostics on restore_cwd failure.
73919         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
73920         (make_dir_parents): Last arg is now int * (for errno), not bool *.
73921         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
73922         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
73923         each time through the loop.  Do not diagnose restore_cwd failure;
73924         that is the caller's job (and perhaps the caller does not care).
73925
73926         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
73927         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
73928         If the file already exists but is not a directory, don't bother
73929         to try to make its parents.
73930         Close potential file descriptor leak if we can't chdir("/") (!).
73931         Don't always return true if chdir($PWD) fails; return true only
73932         if the requested action was done successfully (except for the
73933         chdir($PWD)).
73934         Don't log final directory unless we actually made it.
73935         Refactor to avoid duplicate code to fix up permissions.
73936         Don't attempt to fix up parent permissions if chdir($PWD) fails.
73937
73938         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
73939         to make it a bit faster and (I hope) clearer.
73940         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
73941         Fix bug in formats like %2N.
73942
73943         * lib/verify.h: New file.
73944
73945 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73946
73947         Sync from coreutils.
73948         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
73949
73950 2005-09-22  Jim Meyering  <jim@meyering.net>
73951
73952         Sync from coreutils.
73953
73954         * m4/lstat.m4 (gl_FUNC_LSTAT):
73955         Use AC_LIBSOURCES to require lstat.c and lstat.h.
73956         Remove obsolete comment.
73957         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
73958         * m4/xstrtod.m4: Likewise.
73959
73960         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
73961
73962 2005-09-22  Jim Meyering  <jim@meyering.net>
73963
73964         Sync from coreutils.
73965
73966         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
73967
73968         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
73969         the .tm_year member, since otherwise gcc-4.0 would now warn about
73970         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
73971
73972         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
73973         order to avoid an unsuppressible warning from gcc on 64-bit systems.
73974
73975         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
73976         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
73977         when run in a time zone for which daylight savings time is in effect
73978         for the starting date.
73979
73980         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
73981         stop us from restricting permissions of just-created absolute-named
73982         directories.
73983         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
73984         to restore initial working directory.
73985         * lib/mkdir-p.c (make_dir_parents): New parameter:
73986         different_working_dir, to tell caller if/when we change the working
73987         directory and are unable to return to the initial one.
73988         * lib/mkdir-p.h (make_dir_parents): Update prototype.
73989         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
73990         `return false'.  This fixes a bug introduced on 2004-07-30.
73991
73992         * lib/openat.c (fdopendir): Be sure to close the supplied
73993         file descriptor before returning.  This makes our replacement
73994         implementation a little closer to Solaris's, where fdopendir
73995         ties the file descriptor to the returned DIR* pointer.
73996         * lib/openat.c (unlinkat): New function.
73997         * lib/openat.h (unlinkat): Add prototype.
73998         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
73999         (openat_restore_fail): Rename from openat_restore_die.
74000         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74001
74002         Provide an alternative to exiting immediately upon save_cwd or
74003         restore_cwd failure.  Now, an application can arrange e.g.,
74004         to perform a longjump in that case.
74005         * lib/openat.c: Include dirname.h.
74006         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74007         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74008         and openat_restore_die rather than calling error directly.
74009         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74010
74011         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74012         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74013         define.
74014
74015         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74016         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74017                             int utc, int nanoseconds);
74018         Background:
74019         date should not have to allocate a megabyte of virtual memory to
74020         handle a format argument like +%1048575T.  When implemented with
74021         strftime, it must allocate such a buffer, use strftime to fill it
74022         in, print it, then free it.
74023         With fprintftime, it simply prints everything and exits.
74024         With no need for memory allocation, that's one fewer way to fail.
74025         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74026         optional field width, not before, so we accept %9:z, not %:9z.
74027         (my_strftime): Be sure to use L_('x') for literals.
74028
74029         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74030         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74031         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74032         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74033         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74034         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74035         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74036         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74037         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74038         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74039         * lib/xgethostname.c, lib/xreadlink.c:
74040         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74041
74042         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74043         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74044         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74045         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74046         and don't include <sys/file.h>).
74047
74048 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74049
74050         Sync from coreutils.
74051
74052         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74053         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74054         [!LDAV_DONE]: Avoid unused variable warning.
74055
74056 2005-09-21  Bruno Haible  <bruno@clisp.org>
74057
74058         * lib/unicodeio.h (unicode_to_mb): New declaration.
74059
74060 2005-09-20  Derek Price  <derek@ximbiot.com>
74061
74062         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74063         getaddrinfo.h.
74064
74065 2005-09-20  Bruno Haible  <bruno@clisp.org>
74066
74067         * gnulib-tool: Remove trailing slashes from the values specified for
74068         --source-base, --m4-base, --tests-base, --aux-dir.
74069         Suggested by Simon Josefsson <jas@extundo.com>.
74070
74071 2005-09-20  Bruno Haible  <bruno@clisp.org>
74072
74073         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74074         func_modules_to_filelist, func_import, func_create_testdir): Make all
74075         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74076         change when gnulib-tool is invoked in a different locale.
74077
74078 2005-09-19  Simon Josefsson  <jas@extundo.com>
74079
74080         * m4/socklen.m4: Fix typo.
74081
74082 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74083
74084         Use a consistent style for including <config.h>.
74085         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74086         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74087         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74088         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74089         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74090         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74091         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74092         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74093         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74094         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74095         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74096         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74097         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74098         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74099         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74100         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74101         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74102         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74103         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74104         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74105         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74106         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74107         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74108         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74109         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74110         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74111         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74112         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74113         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74114         lib/xstrtoumax.c, lib/yesno.c:
74115         Standardize inclusion of config.h.
74116         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74117         lib/inttostr.h:  Removed inclusion of config.h from header files.
74118         * lib/inttostr.c:  Adjusted in-tree users.
74119         * lib/timespec.h: Remove superfluous warning to include config.h.
74120         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74121         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74122         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74123         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74124         config.h with HAVE_CONFIG_H.
74125
74126 2005-09-19  Jim Meyering  <jim@meyering.net>
74127
74128         * modules/pathmax (License): Change to LGPL.
74129
74130 2005-09-19  Derek Price  <derek@ximbiot.com>
74131
74132         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74133
74134 2005-09-19  Bruno Haible  <bruno@clisp.org>
74135
74136         * gnulib-tool (import): Provide default for --tests-base.
74137
74138 2005-09-19  Bruno Haible  <bruno@clisp.org>
74139
74140         * doc/quote.texi: New file, extracted from gnulib.texi.
74141         * doc/ctime.texi: New file, extracted from gnulib.texi.
74142         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74143         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74144         * doc/gnulib.texi: Include them.
74145
74146 2005-09-18  Bruno Haible  <bruno@clisp.org>
74147
74148         Portability fix.
74149         * gnulib-tool (func_readlink): New function.
74150         (func_ln_if_changed): Use it.
74151
74152 2005-09-18  Bruno Haible  <bruno@clisp.org>
74153
74154         * gnulib-tool: Support --with-tests also with --import.
74155         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74156         (func_import): Use variables $testsbase and $inctests. Emit a
74157         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74158         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74159         SUBDIRS += $testsdir.
74160         (func_create_testdir): Update.
74161
74162 2005-09-18  Bruno Haible  <bruno@clisp.org>
74163
74164         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74165         instead of $dry_run.
74166         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74167         (func_ln_if_changed): Don't handle dry-run here.
74168         (func_import): In dry-run mode, detect more precisely which actions
74169         would be performed, and don't use "...ing" verbs.
74170
74171 2005-09-18  Bruno Haible  <bruno@clisp.org>
74172
74173         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74174         (func_import): Use join on two temporary files instead of three nested
74175         loops, in order to determine which files are new or old.
74176
74177 2005-09-18  Bruno Haible  <bruno@clisp.org>
74178
74179         * gnulib-tool (func_import): Comment out code that spits out the
74180         new files with --dry-run.
74181
74182 2005-09-18  Bruno Haible  <bruno@clisp.org>
74183
74184         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74185
74186 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74187
74188         * lib/stat-time.h: New file.
74189         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74190         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74191         in a different way.
74192         (timespec_cmp): New function.
74193         * lib/utimecmp.c: Include stat-time.h.
74194         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74195         members exist, not on the obsolescent ST_MTIM_NSEC.
74196         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74197
74198 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74199
74200         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74201
74202 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74203
74204         * MODULES.html.sh (File system functions): Add stat-time.
74205         * modules/stat-time: New file.
74206         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74207         is now done in a different way, by the stat-time module.
74208         * modules/utimecmp (Depends-on): Add stat-time.
74209
74210 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74211
74212         * m4/st_mtim.m4: Remove.  Superseded by...
74213         * m4/stat-time.m4: New file.
74214         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74215         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74216
74217 2005-09-15  Derek Price  <derek@ximbiot.com>
74218
74219         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74220
74221 2005-09-15  Derek Price  <derek@ximbiot.com>
74222
74223         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74224         * lib/regex_internal.c: Ditto, using this...
74225         (__GNUC_PREREQ): ...new macro.
74226         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74227         using...
74228         (__GNUC_PREREQ): ...this new macro.
74229
74230         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74231
74232 2005-09-15  Derek Price  <derek@ximbiot.com>
74233             Paul Eggert  <eggert@cs.ucla.edu>
74234
74235         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74236         changes, consolidating in...
74237         * lib/regex_internal.h: ...this file.
74238
74239 2005-09-13  Jim Meyering  <jim@meyering.net>
74240
74241         * lib/canon-host.c: Filter through gnu indent and reword comments
74242         slightly.
74243         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74244
74245 2005-09-13  Derek Price  <derek@ximbiot.com>
74246
74247         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74248         failure.
74249         Reported by Jim Meyering  <jim@meyering.net>.
74250
74251 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74252
74253         * lib/base64.c: Typo.
74254         (base64_encode): Put b64str in initialized data section.
74255
74256 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74257
74258         Merge glibc and coreutils changes into gnulib, plus a few
74259         extra fixes.
74260         * lib/md5.c: Use #error rather than a string.
74261         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74262         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74263         (__attribute__): Define to empty for non recent-GCC.
74264         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74265         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74266         Renamed from their non-__ counterparts, with new macros replacing
74267         them if not _LIBC.  Add __THROW attribute.
74268         (rol): Remove.
74269         (struct md5_ctx): Align buffer if using GCC.
74270         * lib/sha1.h (struct sha1_ctx): Likewise.
74271         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74272         The old name was backwards.
74273         (NOTSWAP): Remove; not used.
74274         (rol): New macro, moved here from md5.h.
74275         (sha1_process_block): Remove a FIXME that doesn't make sense.
74276
74277 2005-09-12  Derek Price  <derek@ximbiot.com>
74278
74279         Return usable errors from canon-host.
74280         * lib/canon-host.h: New file.
74281         * lib/canon-host.c (canon_host): Wrap...
74282         (canon_host_r): ...this new function, which now relies exclusively on
74283         getaddrinfo.
74284         (ch_strerror): New function.
74285         (last_cherror): New global.
74286         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74287         interface.
74288         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74289         void *.
74290         (freeaddrinfo): Free ai->ai_canonname when set.
74291
74292 2005-09-12  Derek Price  <derek@ximbiot.com>
74293
74294         Make canon-host require getaddrinfo.
74295         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74296         AC_LIBSOURCE canon-host.h.  Call...
74297         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74298         gl_GETADDRINFO.
74299         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74300
74301 2005-09-12  Derek Price  <derek@ximbiot.com>
74302
74303         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74304         LGPL.
74305         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74306
74307 2005-09-12  Derek Price  <derek@ximbiot.com>
74308
74309         * lib/gai_strerror.c: Include config.h when available.  Include
74310         getaddrinfo.h before other headers to test interface.
74311         Reported by Larry Jones <lawrence.jones@ugs.com>.
74312
74313 2005-09-12  Derek Price  <derek@ximbiot.com>
74314             Paul Eggert  <eggert@cs.ucla.edu>
74315
74316         * modules/glob (Files): Add glob-libc.h.
74317
74318 2005-09-12  Derek Price  <derek@ximbiot.com>
74319             Paul Eggert  <eggert@cs.ucla.edu>
74320
74321         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74322         glob_.h, glob-libc.h.
74323         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74324
74325 2005-09-12  Derek Price  <derek@ximbiot.com>
74326             Paul Eggert  <eggert@cs.ucla.edu>
74327
74328         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74329         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74330         protecting things that should be done only in gnulib contexts.
74331         * lib/glob_.h: New file, containing only the glob things needed for
74332         gnulib.
74333         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74334         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74335         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74336         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74337         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74338         and to respect the namespace rules better.
74339
74340 2005-09-08  Simon Josefsson  <jas@extundo.com>
74341
74342         * modules/socklen: New file.
74343
74344 2005-09-08  Simon Josefsson  <jas@extundo.com>
74345
74346         * m4/socklen.m4: New file.
74347
74348 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74349
74350         * modules/utimens (Files): Add m4/utimbuf.m4, since
74351         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74352         Reported by Sergey Poznyakoff.
74353
74354 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74355
74356         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
74357         definitions, since that's the preferred style in glibc.
74358         Fix a minor spacing issue, and update copyright notice to match
74359         glibc's.
74360
74361 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74362
74363         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
74364
74365 2005-09-06  Simon Josefsson  <jas@extundo.com>
74366
74367         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
74368         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
74369
74370 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74371
74372         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
74373         warning.
74374
74375 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74376
74377         * config/srclist.txt: Add glibc bug 1302.
74378
74379 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
74380
74381         Change bitset word type from unsigned int to unsigned long int,
74382         as this has better performance on typical 64-bit hosts.
74383         Port bitset code to hosts with unusual word sizes.
74384         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
74385         (build_collating_symbol):
74386         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
74387         argument is a bitset.  This is merely a style issue, but it makes
74388         it clearer that an entire array is expected.
74389         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
74390         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
74391         Port to the case where bitset_word is not the same as unsigned int.
74392         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74393         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
74394         Likewise.
74395         * lib/regexec.c (check_dst_limits_calc_pos_1,
74396         check_subexp_matching_top):
74397         (build_trtable, group_nodes_into_DFAstates):
74398         Likewise.
74399         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
74400         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
74401         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
74402         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
74403         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
74404         * lib/regcomp.c (optimize_subexps, lower_subexp):
74405         Work even if bitset_word has holes in its bitwise representation.
74406         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
74407         * lib/regexec.c (check_dst_limits_calc_pos_1,
74408         check_subexp_matching_top):
74409         Likewise.
74410         * lib/regex_internal.c (re_string_reconstruct):
74411         Don't assume UCHAR_MAX == 255.
74412         * lib/regex_internal.h (bitset_set_all): Likewise.
74413         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
74414         All uses changed.
74415         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
74416         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
74417         All uses changed.
74418         (BITSET_WORD_MAX): New macro.
74419         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
74420         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
74421         (bitset_empty, bitset_copy):
74422         Prefer sizeof (bitset) to multiplying it out ourselves.
74423         (bitset_not_merge): Remove; unused.
74424         (bitset_contain): Return bool, not unsigned int with one bit on.
74425         All callers changed.
74426         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
74427         alignment than re_node_set; do this by defining a new internal
74428         type struct dests_alloc and using it to allocate memory.
74429
74430 2005-09-05  Bruno Haible  <bruno@clisp.org>
74431
74432         * gnulib-tool (func_import): Fix comparison in handling of symbolic
74433         links.
74434
74435 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
74436
74437         * modules/size_max (Makefile.am): Add size_max.h
74438
74439 2005-09-04  Derek Price  <derek@ximbiot.com>
74440
74441         * gnulib-tool (func_import): Fix reversed $symbolic logic.
74442
74443 2005-09-03  Simon Josefsson  <jas@extundo.com>
74444
74445         * gnulib-tool: Fix typo.
74446
74447 2005-09-03  Simon Josefsson  <jas@extundo.com>
74448
74449         * config/srclist.txt: Add glibc bug 1293.
74450
74451 2005-09-03  Derek Price  <derek@ximbiot.com>
74452
74453         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74454         From Larry Jones <lawrence.jones@ugs.com>.
74455
74456 2005-09-02  Simon Josefsson  <jas@extundo.com>
74457
74458         * modules/socklen: New file.
74459
74460 2005-09-02  Simon Josefsson  <jas@extundo.com>
74461
74462         * modules/havelib: New module.
74463
74464         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74465         Use havelib.
74466
74467 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74468
74469         Check for arithmetic overflow when calculating sizes, to prevent
74470         some buffer-overflow issues.  These patches are conservative, in the
74471         sense that when I couldn't determine whether an overflow was possible,
74472         I inserted a run-time check.
74473         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74474         macros.
74475         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74476         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74477         (re_xnrealloc, re_x2nrealloc): New inline functions.
74478         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74479         parse_bracket_exp):
74480         (build_equiv_class, build_charclass): Check for arithmetic overflow
74481         in size expression calculations.
74482         * lib/regex_internal.c (re_string_realloc_buffers):
74483         (build_wcs_upper_buffer, re_node_set_add_intersect):
74484         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
74485         (re_dfa_add_node, register_state): Likewise.
74486         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
74487         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
74488         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
74489         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
74490
74491 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74492
74493         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74494         m4/ulonglong.m4.  Problem reported by Martin Lambers.
74495
74496 2005-09-02  Bruno Haible  <bruno@clisp.org>
74497
74498         Support for lib vs. lib64 distinction on biarch platforms.
74499         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
74500         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
74501         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
74502
74503 2005-09-02  Bruno Haible  <bruno@clisp.org>
74504
74505         * gnulib-tool (import): In the other first-use case, provide defaults
74506         as well.
74507
74508 2005-09-02  Bruno Haible  <bruno@clisp.org>
74509
74510         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
74511         patches not yet found in the latest gettext release.
74512
74513 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74514
74515         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
74516         to avoid a collision with bits/local_lim.h in glibc.
74517         All uses changed.  Problem reported by Dmitry V. Levin in
74518         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
74519
74520         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
74521         bugs in int versus size_t comparisons.
74522         (re_string_context_at): Fix bug where the code assumed that
74523         Idx is signed.
74524
74525         Use bool where appropriate.
74526         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
74527         All callers changed.
74528         (calc_eclosure_iter): Likewise, for ROOT arg.
74529         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
74530         (build_charclass_op): Likewise, for NON_MATCH arg.
74531         * lib/regex_internal.c (re_string_allocate, re_string_construct):
74532         (re_string_construct_common): Likewise, for ICASE arg.
74533         * lib/regexec.c (re_search_2_stub, re_search_stub):
74534         Likewise, for RET_LEN arg.
74535         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
74536         (set_regs): Likewise, for FL_BACKTRACK arg.
74537         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
74538         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
74539         (calc_eclosure_iter, parse_bracket_exp):
74540         Use bool for internal variables that are booleans.
74541         * lib/regexec.c (re_search_internal, check_matching,
74542         proceed_next_node):
74543         (set_regs, build_sifted_states, sift_states_bkref):
74544         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
74545         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74546         (find_collation_sequence_value):
74547         Likewise.
74548         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
74549         (re_node_set_compare):
74550         Return bool, not int. All callers changed.
74551         * lib/regexec.c (check_halt_node_context, check_dst_limits):
74552         (build_trtable, check_node_accept): Likewise.
74553         * lib/regex_internal.h: Include stdbool.h.
74554
74555         Fix bugs uncovered when converting to bool.
74556         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
74557         failure instead of charging ahead blindly.
74558         * lib/regex_internal.c (register_state): Likewise.
74559         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
74560         for freeing internal storage.
74561         (group_nodes_into_DFA_states): Use unsigned int, not int, for
74562         bitset pieces used as boolean, to avoid undefined behavior
74563         on hosts that do int overflow checking.
74564
74565 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74566
74567         * config/srclist.txt: Add glibc bugs 1285-1287.
74568
74569 2005-09-01  Jim Meyering  <jim@meyering.net>
74570
74571         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
74572         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
74573         Require gl_STAT_MACROS, too.
74574
74575 2005-09-01  Bruno Haible  <bruno@clisp.org>
74576
74577         * gnulib-tool (import): In the first-use case, provide defaults.
74578
74579 2005-09-01  Bruno Haible  <bruno@clisp.org>
74580
74581         * gnulib-tool (func_import): Remove the .tmp files.
74582
74583 2005-09-01  Bruno Haible  <bruno@clisp.org>
74584
74585         * gnulib-tool (func_import): Fix handling of symbolic links.
74586
74587 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74588
74589         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
74590         old glibc regex code mishandles strings longer than 2**31 bytes.
74591         This patch fixes this when the regex code is used in gnulib
74592         (i.e., outside glibc).
74593
74594         This patch should not affect the use of the regex code inside
74595         glibc.  No doubt this problem also needs to be handled for glibc
74596         as well, but the result will be an incompatible change to the
74597         glibc ABI, and the old ABI will have to be supported too.  That
74598         can be the the subject for another patch.
74599
74600         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
74601         governing whether the rest of this patch is active.  By default,
74602         the macro is disabled and the patch has no effect.
74603         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
74604         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
74605         (struct re_pattern_buffer, re_search, re_search_2, re_match):
74606         (re_match_2, re_set_registers): Use the new types.
74607         * lib/regex_internal.h (Idx, re_hashval_t): New types.
74608         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
74609         New macros.
74610         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
74611         (re_string_context_at, bin_tree_t, re_dfastate_t):
74612         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
74613         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
74614         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
74615         (re_string_char_size_at, re_string_wchar_at):
74616         (re_string_elem_size_at):
74617         Use the new types and macros to port to 64-bit hosts.
74618         Use unsigned types for internal values, so that the code
74619         mostly works even for arrays larger than SSIZE_MAX.
74620         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
74621         (search_duplicated_node, calc_eclosure_iter, fetch_number):
74622         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
74623         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
74624         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
74625         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
74626         (calc_inveclosure, parse_dup_op, build_range_exp):
74627         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
74628         (fetch_number, create_token_tree, mark_opt_subexp):
74629         Likewise.
74630         * lib/regex_internal.c (re_string_construct_common,
74631         create_ci_newstate):
74632         (create_cd_newstate, re_string_allocate, re_string_construct):
74633         (re_string_realloc_buffers, build_wcs_upper_buffer):
74634         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74635         (re_string_reconstruct, re_string_peek_byte_case):
74636         (re_string_fetch_byte_case, re_string_context_at):
74637         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74638         (re_node_set_init_copy, re_node_set_add_intersect):
74639         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74640         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74641         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74642         (re_acquire_state, re_acquire_state_context, register_state):
74643         Likewise.
74644         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
74645         search_cur_bkref_entry):
74646         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
74647         (re_search_internal, re_search_2_stub, re_search_stub)
74648         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
74649         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
74650         (update_cur_sifted_state, check_dst_limits):
74651         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74652         (check_subexp_limits, sift_states_bkref, merge_state_array):
74653         (check_subexp_matching_top, get_subexp, get_subexp_sub):
74654         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
74655         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74656         (expand_bkref_cache, check_node_accept_bytes):
74657         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
74658         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
74659         (acquire_init_state_context, check_halt_node_context):
74660         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
74661         (sift_states_backward, clean_state_log_if_needed):
74662         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
74663         (find_recover_state, transit_state_sb, transit_state_mb):
74664         (transit_state_bkref, build_trtable, match_ctx_clean):
74665         Likewise.
74666         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
74667         to work around an assumption that REG_MISSING is negative.
74668
74669         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
74670         (seek_collating_symbol_entry) [defined _LIBC]:
74671         (lookup_collation_sequence_value) [defined _LIBC]:
74672         (build_range_exp, build_collating_symbol) [defined _LIBC]:
74673         Use prototypes rather than old-style function definitions.
74674         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
74675         (transit_state_sb) [0]:
74676         (find_collation_sequence_value) [defined _LIBC]: Likewise.
74677
74678         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
74679         rm_eo.
74680
74681         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
74682         (optimize_subexps, lower_subexp):
74683         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
74684         since the signed shift might overflow.  Use 1u<<31 instead.
74685         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74686         Likewise.
74687         * lib/regexec.c (check_dst_limits_calc_pos_1,
74688         check_subexp_matching_top): Likewise.
74689
74690         * lib/regcomp.c (optimize_subexps, lower_subexp):
74691         Use CHAR_BIT rather than 8, for clarity.
74692         * lib/regexec.c (check_dst_limits_calc_pos_1):
74693         (check_subexp_matching_top): Likewise.
74694         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
74695         have to worry about portability issues when shifting it left.
74696         Remove no-longer-needed test for table_size > 0.
74697         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
74698         in a word, as the resulting behavior is undefined.
74699         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
74700         in one case, a <= should have been an <, and in another case the
74701         whole test was missing.
74702         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
74703         the standard name CHAR_BIT.
74704         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
74705         this is not true on one's complement and signed-magnitude hosts.
74706
74707         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
74708         next_last_offset.
74709         (struct re_dfa_t): Remove unused member states_alloc.
74710         * lib/regcomp.c (init_dfa): Don't initialize unused members.
74711
74712 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74713
74714         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
74715         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
74716         and large-file glibc and in 32-bit large-file Solaris.
74717
74718 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74719
74720         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
74721         lengths fit in regoff_t; this isn't true if regoff_t is the same
74722         width as size_t.
74723         * lib/regex.c (re_search_internal): 5th arg is LAST_START
74724         (= START + RANGE) instead of RANGE.  This avoids overflow
74725         problems when regoff_t is the same width as size_t.
74726         All callers changed.
74727         (re_search_2_stub): Check for overflow when adding the
74728         sizes of the two strings.
74729         (re_search_stub): Check for overflow when adding START
74730         to RANGE; if it occurs, substitute the extreme value.
74731
74732 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74733
74734         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
74735
74736 2005-08-31  Jim Meyering  <jim@meyering.net>
74737
74738         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
74739         a pointer-to-const.
74740         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
74741         (register_state): Likewise.
74742         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
74743         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74744         (group_nodes_into_DFAstates): Likewise.
74745
74746 2005-08-31  Jim Meyering  <jim@meyering.net>
74747
74748         * check-module: Add a FIXME comment.
74749
74750 2005-08-31  Eric Blake  <ebb9@byu.net>
74751
74752         * modules/unistd-safer (Files): Add unistd--.h.
74753         * modules/stdio-safer (Files): Add stdio--.h.
74754
74755 2005-08-31  Derek Price  <derek@ximbiot.com>
74756
74757         * lib/getdelim.c (getdelim): Return EOF on EOF.
74758         Reported by Larry Jones <lawrence.jones@ugs.com>.
74759
74760 2005-08-31  Bruno Haible  <bruno@clisp.org>
74761
74762         Avoid unnecessary diffs in the generated lib/Makefile.am.
74763         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
74764         the generated files.
74765         (func_import): Don't set cmd.
74766
74767 2005-08-31  Bruno Haible  <bruno@clisp.org>
74768
74769         * lib/strstr.c: Include <stddef.h>, for NULL.
74770         * lib/strcasestr.c: Likewise.
74771         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74772
74773 2005-08-31  Bruno Haible  <bruno@clisp.org>
74774
74775         * gnulib-tool: New option --macro-prefix.
74776         (func_import): Use macro_prefix.
74777         (import): Handle option --macro-prefix.
74778
74779 2005-08-31  Bruno Haible  <bruno@clisp.org>
74780
74781         * gnulib-tool (import): Rename most ac_* variables to cached_*.
74782         Also use new variables cached_lgpl, cached_libtool.
74783
74784 2005-08-31  Bruno Haible  <bruno@clisp.org>
74785
74786         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
74787         always instantiating them.
74788
74789 2005-08-31  Bruno Haible  <bruno@clisp.org>
74790
74791         * gnulib-tool (func_import): Read the previous cached settings
74792         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
74793         earlier added by gnulib but are now dropped. Warn when a gnulib file
74794         overwrites a non-gnulib file.
74795
74796 2005-08-31  Bruno Haible  <bruno@clisp.org>
74797
74798         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
74799         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
74800         projects that don't keep autogenerated files in CVS. Put into
74801         actioncmd only the specified modules, not the transitive closure.
74802
74803 2005-08-31  Bruno Haible  <bruno@clisp.org>
74804
74805         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
74806         Create directories that shall be filled.
74807         (import): Don't look for gl_* macros in configure.ac. Recurse across
74808         all directories containing a gnulib-cache.m4 files, if meaningful.
74809
74810 2005-08-31  Bruno Haible  <bruno@clisp.org>
74811
74812         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
74813         (import): Set seen_libtool when we see gl_LIBTOOL.
74814
74815 2005-08-31  Bruno Haible  <bruno@clisp.org>
74816
74817         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
74818         declaration macro definitions from generated gnulib.m4.
74819
74820 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
74821
74822         * lib/iconvme.h: Add prototype for iconv_alloc.
74823
74824 2005-08-29  Simon Josefsson  <jas@extundo.com>
74825
74826         * lib/iconvme.c: Fix errno.
74827
74828 2005-08-29  Bruno Haible  <bruno@clisp.org>
74829
74830         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
74831         that it works when the directory contains spaces.
74832
74833 2005-08-29  Bruno Haible  <bruno@clisp.org>
74834
74835         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
74836
74837 2005-08-29  Bruno Haible  <bruno@clisp.org>
74838
74839         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
74840         Emit more advice.
74841
74842 2005-08-29  Bruno Haible  <bruno@clisp.org>
74843         and Stepan Kasal  <kasal@ucw.cz>
74844
74845         * check-module: If more parameters are given, check each of them
74846         separately; add more exceptions, as noted by Jim Meyering.
74847         (check_module): New procedure.
74848         (%exempt_header): Now contains all exceptions.
74849
74850 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
74851
74852         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
74853
74854 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74855
74856         * lib/iconvme.c: Split iconv_string into iconv_alloc.
74857
74858 2005-08-28  Bruno Haible  <bruno@clisp.org>
74859
74860         * m4/gnulib-tool.m4: New file.
74861
74862 2005-08-27  Jim Meyering  <jim@meyering.net>
74863
74864         * modules/unistd-safer (Files): Add pipe-safer.c.
74865         * modules/fcntl-safer (Files): Add creat-safer.c.
74866
74867 2005-08-27  Jim Meyering  <jim@meyering.net>
74868
74869         * m4/stdlib-safer.m4: New file.  From coreutils.
74870         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
74871         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
74872         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
74873         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
74874         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
74875
74876 2005-08-27  Jim Meyering  <jim@meyering.net>
74877
74878         * lib/fopen-safer.c: Merge minor changes from coreutils.
74879         * lib/dup-safer.c: Likewise.
74880         * lib/fd-safer.c: Likewise.
74881
74882         Merge from coreutils.
74883         * lib/stdio--.h: New file.
74884         * lib/stdlib--.h: New file.
74885         * lib/mkstemp-safer.c: New file.
74886
74887         GNU tar needs these.
74888         * lib/pipe-safer.c: New file.
74889         * lib/creat-safer.c: New file.
74890         * lib/fcntl--.h (creat): Define to creat_safer.
74891         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
74892         * lib/unistd--.h (pipe): Define to pipe_safer.
74893         * lib/unistd-safer.h: Declare pipe_safer.
74894
74895 2005-08-26  Simon Josefsson  <jas@extundo.com>
74896
74897         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
74898         Haible <bruno@clisp.org>.
74899
74900 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
74901
74902         * lib/regex_internal.h: Remove all references to
74903         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
74904         or better.
74905         (bitset_not, bitset_merge, bitset_not_merge):
74906         (bitset_mask, re_string_allocate, re_string_construct):
74907         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
74908         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
74909         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
74910         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
74911         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74912         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74913         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
74914         (re_acquire_state_context):
74915         Remove unnecessary forward decls.
74916         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
74917         Put __attribute at function definition,
74918         now that the function decl has been removed.
74919         * lib/regex_internal.c (re_string_peek_byte_case):
74920         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
74921         Likewise.
74922
74923 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
74924
74925         * m4/regex.m4: Add AC_PREREQ(2.50).
74926         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
74927
74928 2005-08-25  Simon Josefsson  <jas@extundo.com>
74929
74930         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
74931         __fsetlocking.
74932
74933 2005-08-25  Simon Josefsson  <jas@extundo.com>
74934
74935         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
74936         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
74937         GLIBC specific code.
74938
74939 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74940
74941         Make regex safe for g++.  This fixes one real bug (an "err"
74942         that should have been "*err").  g++ problem reported by
74943         Sam Steingold.
74944         * lib/regex_internal.h (re_calloc): New macro, consistent with
74945         re_malloc etc.  All callers of calloc changed to use re_calloc.
74946         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
74947         not int.  All callers changed.
74948         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
74949         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
74950         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
74951         (find_recover_state): Change "err" to "*err"; this fixes what
74952         appears to be a real bug.
74953         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
74954         versus int.
74955
74956 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74957
74958         * modules/regex (Depends-on): Add malloc, since the code
74959         assumes that !malloc(0) means failure.
74960
74961 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74962
74963         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
74964
74965         alloca modernization/simplification for regex.
74966         * lib/regex.c: Remove portability cruft for alloca.  This no longer
74967         needs to be at the start of the file, and can be moved into
74968         regex_internal.h and simplified.
74969         * lib/regex_internal.h: Include <alloca.h>.
74970         (__libc_use_alloca) [!defined _LIBC]: New macro.
74971         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
74972         now works outside glibc.
74973
74974 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74975
74976         * config/srclist.txt: Add glibc bugs 1241, 1245.
74977
74978 2005-08-25  Jim Meyering  <jim@meyering.net>
74979
74980         * lib/open-safer.c: Include <config.h>.
74981         Otherwise, we'd lose LARGEFILE support in any file using
74982         e.g. "fcntl--.h"
74983
74984 2005-08-25  Bruno Haible  <bruno@clisp.org>
74985
74986         * m4/minmax.m4: Require autoconf 2.52.
74987         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
74988         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
74989         alternatives of translit over the alphabet.
74990         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
74991
74992 2005-08-24  Simon Josefsson  <jas@extundo.com>
74993
74994         * tests/test-getpass.c: New file.
74995
74996 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74997
74998         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
74999         for GNU regex features.
75000
75001 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75002
75003         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75004         * lib/regex.h (regerror): Likewise.
75005
75006         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75007         requires this.  (The code never needed it.)
75008
75009         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75010         All uses of recently-renamed identifiers changed to use the new,
75011         POSIX-compliant names.  The code will build and run just fine
75012         without these changes, but it's better to eat our own dog food
75013         and use the standard-conforming names.
75014
75015         * lib/regex.h: Fix a multitude of POSIX name space violations.
75016         These changes have an effect only for programs that define
75017         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75018         do not change anything for programs compiled in the normal way.
75019         Also, there is no effect on the ABI.
75020
75021         (_REGEX_SOURCE): New macro.
75022         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75023         defined and _GNU_SOURCE is not; this fixes a name space violation.
75024
75025         Rename the following macros to obey POSIX requirements.
75026         The old names are still visible as macros if _REGEX_SOURCE is defined.
75027         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75028         RE_BACKSLASH_ESCAPE_IN_LISTS.
75029         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75030         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75031         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75032         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75033         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75034         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75035         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75036         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75037         (REG_INTERVALS): renamed from RE_INTERVALS.
75038         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75039         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75040         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75041         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75042         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75043         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75044         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75045         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75046         RE_UNMATCHED_RIGHT_PAREN_ORD.
75047         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75048         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75049         (REG_DEBUG): renamed from RE_DEBUG.
75050         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75051         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75052         unusual, since we can't clash with the POSIX REG_ICASE.
75053         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75054         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75055         (REG_NO_SUB): renamed from RE_NO_SUB.
75056         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75057         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75058         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75059         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75060         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75061         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75062         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75063         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75064         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75065         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75066         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75067         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75068         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75069         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75070         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75071         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75072         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75073         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75074         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75075         (REG_FIXED): Renamed from REGS_FIXED.
75076         (REG_NREGS): Renamed from RE_NREGS.
75077
75078         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75079         of other REG_* macros, since POSIX says the user is allowed to
75080         #undef these macros selectively.
75081
75082         (reg_errcode_t): Update comment stating what other tables need
75083         to be consistent.
75084
75085         Rename the following enum values to obey POSIX requirements.
75086         The old names are still visible as macros.
75087         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75088         is not defined, since GNU is supposed to be a superset of POSIX as
75089         much as possible, and since we want reg_errcode_t to be a signed
75090         type for implementation consistency.
75091         (_REG_NOERROR): Renamed from REG_NOERROR.
75092         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75093         (_REG_BADPAT): Renamed from REG_BADPAT.
75094         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75095         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75096         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75097         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75098         (_REG_EBRACK): Renamed from REG_EBRACK.
75099         (_REG_EPAREN): Renamed from REG_EPAREN.
75100         (_REG_EBRACE): Renamed from REG_EBRACE.
75101         (_REG_BADBR): Renamed from REG_BADBR.
75102         (_REG_ERANGE): Renamed from REG_ERANGE.
75103         (_REG_ESPACE): Renamed from REG_ESPACE.
75104         (_REG_BADRPT): Renamed from REG_BADRPT.
75105         (_REG_EEND): Renamed from REG_EEND.
75106         (_REG_ESIZE): Renamed from REG_ESIZE.
75107         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75108         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75109         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75110         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75111         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75112
75113         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75114         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75115         changed.  But support the old name if the new one is not defined
75116         and if _REGEX_SOURCE.
75117
75118         Change the following member names in struct re_pattern_buffer.
75119         The old names are still supported if !_REGEX_SOURCE.
75120         The new names are always supported, regardless of _REGEX_SOURCE.
75121         (re_buffer): Renamed from buffer.
75122         (re_allocated): Renamed from allocated.
75123         (re_used): Renamed from used.
75124         (re_syntax): Renamed from syntax.
75125         (re_fastmap): Renamed from fastmap.
75126         (re_translate): Renamed from translate.
75127         (re_can_be_null): Renamed from can_be_null.
75128         (re_regs_allocated): Renamed from regs_allocated.
75129         (re_fastmap_accurate): Renamed from fastmap_accurate.
75130         (re_no_sub): Renamed from no_sub.
75131         (re_not_bol): Renamed from not_bol.
75132         (re_not_eol): Renamed from not_eol.
75133         (re_newline_anchor): Renamed from newline_anchor.
75134
75135         Change the following member names in struct re_registers.
75136         The old names are still supported if !_REGEX_SOURCE.
75137         The new names are always supported, regardless of _REGEX_SOURCE.
75138         (rm_num_regs): Renamed from num_regs.
75139         (rm_start): Renamed from start.
75140         (rm_end): Renamed from end.
75141
75142         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75143         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75144         Prepend __ to parameter names.
75145
75146         Undo yesterday's changes.
75147
75148 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75149
75150         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75151         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75152         lib/regex.c.
75153
75154 2005-08-24  Jim Meyering  <jim@meyering.net>
75155
75156         Sync from coreutils.
75157         * m4/fcntl-safer.m4: New file.
75158
75159         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75160         and object files for this module.
75161
75162 2005-08-24  Jim Meyering  <jim@meyering.net>
75163
75164         Sync from coreutils.
75165         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75166
75167 2005-08-24  Jim Meyering  <jim@meyering.net>
75168
75169         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75170         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75171
75172 2005-08-24  Jim Meyering  <jim@meyering.net>
75173
75174         * modules/fcntl-safer: New module.
75175         * modules/fts (Depends-on): Add fcntl-safer.
75176         * MODULES.html.sh (File descriptor based Input/Output):
75177         Add fcntl-safer.
75178
75179 2005-08-24  Bruno Haible  <bruno@clisp.org>
75180
75181         Support for unit test modules.
75182         * modules/README: Mention tests modules.
75183         * modules/TEMPLATE-TESTS: New file.
75184         * gnulib-tool: New options --extract-tests-module, --with-tests and
75185         --tests-base (unused for the moment).
75186         (testsbase, inctests): New variables.
75187         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75188         (func_verify_module): Exclude TEMPLATE-TESTS.
75189         (func_verify_nontests_module, func_verify_tests_module): New functions.
75190         (func_get_dependencies): Add implicit dependency for tests modules.
75191         (func_get_tests_module): New function.
75192         (func_modules_transitive_closure): When --with-tests was specified,
75193         include the unit tests as well, unless explicitly avoided.
75194         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75195         (func_emit_tests_Makefile_am): New function.
75196         (func_create_testdir): When --with-tests was specified, emit a
75197         tests/ directory.
75198         * MODULES.html.sh (Future developments): Update.
75199
75200 2005-08-24  Bruno Haible  <bruno@clisp.org>
75201
75202         * modules/tls-tests: New file.
75203         * tests/test-tls.c: New file, from GNU gettext.
75204
75205 2005-08-24  Bruno Haible  <bruno@clisp.org>
75206
75207         * modules/lock-tests: New file.
75208         * tests/test-lock.c: New file, from GNU gettext.
75209
75210 2005-08-24  Bruno Haible  <bruno@clisp.org>
75211
75212         * lib/lock.h: Add multiple inclusion guard.
75213         * lib/tls.h: Add multiple inclusion guard.
75214
75215 2005-08-24  Bruno Haible  <bruno@clisp.org>
75216
75217         * gnulib-tool: Add support for the --aux-dir option to
75218         --create-testdir, --create-megatestdir, --test, --megatest.
75219         (func_create_testdir, func_create_megatestdir): Optionally emit a
75220         AC_CONFIG_AUX_DIR directive.
75221         (create-testdir, create-megatestdir, test, megatest): Provide a
75222         default value for $auxdir.
75223
75224 2005-08-24  Bruno Haible  <bruno@clisp.org>
75225
75226         * gnulib-tool (import): Use compound statement instead of subshell
75227         where possible.
75228
75229 2005-08-24  Bruno Haible  <bruno@clisp.org>
75230
75231         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75232
75233 2005-08-24  Bruno Haible  <bruno@clisp.org>
75234
75235         * gnulib-tool (func_version): Update.
75236
75237 2005-08-24  Bruno Haible  <bruno@clisp.org>
75238
75239         * gnulib-tool (func_import, func_create_testdir,
75240         func_create_megatestdir): Quote all autoconf macro arguments.
75241
75242 2005-08-24  Bruno Haible  <bruno@clisp.org>
75243
75244         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75245         option --force, because --force causes the aclocal.m4 of each
75246         subdirectory to be newer than the corresponding config.h.in.
75247
75248 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75249
75250         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75251         All contents moved to gl_REGEX.
75252         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75253         assume that it does.
75254
75255 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75256
75257         * lib/regex.h (REG_NOSYS)
75258         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75259         Define, since POSIX requires it as of 2001.
75260         (_REG_ENOSYS)
75261         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75262         New private symbol, used to keep the enum signed in all cases.
75263         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75264         Youngman in
75265         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75266
75267         * lib/regex_internal.c (re_string_skip_chars, register_state):
75268         (calc_state_hash):
75269         Remove forward decls; no longer needed now that we use prototypes.
75270         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75271         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75272         (clean_state_log_if_needed): Likewise.
75273
75274 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75275
75276         * config/srclist.txt: Add glibc bugs 1231-1233.
75277
75278 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75279
75280         Fix problems reported by Sam Steingold in
75281         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75282         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75283         assumed that reg_errcode_t is a signed type, which is not
75284         necessarily true if _XOPEN_SOURCE is not defined.
75285         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75286         since some compilers warn about it otherwise.
75287
75288 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75289
75290         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75291         (init_word_char, create_initial_state, duplicate_node_closure):
75292         (fetch_token, peek_token_bracket, build_range_exp):
75293         (build_collating_symbol): Remove forward decls; no longer needed
75294         now that we use prototypes.
75295
75296         * lib/regcomp.c:
75297         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75298         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75299         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75300         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75301         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75302         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75303         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75304         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75305         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75306         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75307         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75308         (build_charclass, build_charclass_op, fetch_number, create_tree):
75309         (create_token_tree, mark_opt_subexp, duplicate_tree):
75310         Use prototypes rather than old-style definitions.
75311
75312         * lib/regex_internal.c:
75313         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75314         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75315         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75316         (re_string_reconstruct, re_string_peek_byte_case):
75317         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75318         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75319         (re_node_set_init_copy, re_node_set_add_intersect):
75320         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75321         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75322         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75323         (re_acquire_state, re_acquire_state_context, register_state):
75324         (create_ci_newstate, create_cd_newstate, free_state):
75325         Likewise.
75326         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75327         re_search_2):
75328         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75329         (re_search_internal, prune_impossible_nodes):
75330         (acquire_init_state_context, check_matching, static):
75331         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75332         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75333         (update_regs, sift_states_backward, build_sifted_states):
75334         (clean_state_log_if_needed, merge_state_array):
75335         (update_cur_sifted_state, add_epsilon_src_nodes):
75336         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75337         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75338         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75339         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75340         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75341         (check_arrival, check_arrival_add_next_nodes):
75342         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75343         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75344         (check_node_accept_bytes, check_node_accept, extend_buffers):
75345         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75346         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75347         (sift_ctx_init):
75348         Likewise.
75349
75350         * lib/regex_internal.h:
75351         (re_string_allocate, re_string_construct, re_string_reconstruct):
75352         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75353         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
75354         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
75355         (re_string_context_at, re_string_peek_byte_case):
75356         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
75357         is defined, since we now use prototypes always.
75358
75359         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
75360         C89 or better.  All uses removed.
75361
75362 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75363
75364         * config/srclist.txt: Add glibc bugs 1220-1227.
75365
75366 2005-08-20  Jim Meyering  <jim@meyering.net>
75367
75368         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
75369         of unused local, dfa.
75370
75371 2005-08-20  Bruno Haible  <bruno@clisp.org>
75372
75373         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
75374
75375 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75376
75377         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
75378         (re_node_set_insert_last, re_dfa_add_node):
75379         Rename local variables to avoid GCC shadowing warnings.
75380
75381 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75382
75383         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
75384         [defined lint]: Suppress bogus uninitialized-variable warnings.
75385
75386         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
75387         and let the caller return REG_ESPACE if out of space.  This
75388         removes an uninitialied-variable warning with GCC 4.0.1, and also
75389         avoids taking the address of a local variable.  All callers
75390         changed.
75391
75392 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75393
75394         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
75395         $LIBCSRC/posix/regexec.c.
75396         Add glibc bug 1217 for regcomp.c.
75397
75398 2005-08-19  Jim Meyering  <jim@meyering.net>
75399
75400         * lib/regexec.c (proceed_next_node): Redo local variables to
75401         avoid GCC shadowing warnings.
75402
75403 2005-08-18  Bruno Haible  <bruno@clisp.org>
75404
75405         * lib/strstr.c (strstr): Fix return value in multibyte case.
75406         * lib/strcasestr.c (strcasestr): Likewise.
75407
75408 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75409
75410         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
75411
75412 2005-08-17  Jim Meyering  <jim@meyering.net>
75413
75414         Make the %s format (seconds since the epoch) work for a negative
75415         number and when used with a zero-padded field width, e.g. %015s.
75416
75417         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
75418         label so that it precedes the code to set `digits'.  Otherwise,
75419         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
75420         print `00-22'.  Now, it prints `-0022', as it should.
75421
75422 2005-08-17  Bruno Haible  <bruno@clisp.org>
75423
75424         * modules/strstr (Files): Add m4/mbrtowc.m4.
75425         (Depends-on): Add mbuiter.
75426
75427 2005-08-17  Bruno Haible  <bruno@clisp.org>
75428
75429         * modules/strcasestr: New file.
75430         * MODULES.html.sh (String handling, based on ANSI C 89): Add
75431         strcasestr.
75432
75433 2005-08-17  Bruno Haible  <bruno@clisp.org>
75434
75435         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
75436
75437 2005-08-17  Bruno Haible  <bruno@clisp.org>
75438
75439         * modules/mbuiter: New file.
75440         * MODULES.html.sh (Extended multibyte and wide character utilities):
75441         Add mbuiter.
75442
75443 2005-08-17  Bruno Haible  <bruno@clisp.org>
75444
75445         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
75446         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
75447
75448 2005-08-17  Bruno Haible  <bruno@clisp.org>
75449
75450         * m4/strcasestr.m4: New file.
75451
75452 2005-08-17  Bruno Haible  <bruno@clisp.org>
75453
75454         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75455         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75456
75457 2005-08-17  Bruno Haible  <bruno@clisp.org>
75458
75459         * lib/strcasestr.h: New file.
75460         * lib/strcasestr.c: New file.
75461
75462 2005-08-17  Bruno Haible  <bruno@clisp.org>
75463
75464         * lib/strcasecmp.c: Use mbuiter.h.
75465
75466 2005-08-17  Bruno Haible  <bruno@clisp.org>
75467
75468         * lib/mbuiter.h: New file.
75469
75470 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75471
75472         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75473         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75474         and gl_GETOPT are both invoked via different paths (as happens
75475         with GNU tar CVS because it uses both argp and getopt), the former
75476         wins.
75477
75478 2005-08-16  Bruno Haible  <bruno@clisp.org>
75479
75480         * modules/tls: New file.
75481         * MODULES.html.sh (Multithreading): Add tls.
75482
75483 2005-08-16  Bruno Haible  <bruno@clisp.org>
75484
75485         * modules/strnlen1: New file.
75486         * MODULES.html.sh (String handling): Add strnlen1.
75487
75488 2005-08-16  Bruno Haible  <bruno@clisp.org>
75489
75490         * modules/strcase (Files): Add m4/mbrtowc.m4.
75491         (Depends-on): Add strnlen1, mbchar.
75492
75493 2005-08-16  Bruno Haible  <bruno@clisp.org>
75494
75495         * modules/mbiter: New file.
75496         * MODULES.html.sh (Extended multibyte and wide character utilities):
75497         Add mbiter.
75498
75499 2005-08-16  Bruno Haible  <bruno@clisp.org>
75500
75501         * modules/mbfile: New file.
75502         * MODULES.html.sh (Extended multibyte and wide character utilities):
75503         Add mbfile.
75504
75505 2005-08-16  Bruno Haible  <bruno@clisp.org>
75506
75507         * modules/mbchar: New file.
75508         * MODULES.html.sh (Extended multibyte and wide character utilities):
75509         New section.
75510
75511 2005-08-16  Bruno Haible  <bruno@clisp.org>
75512
75513         * m4/tls.m4: New file, from GNU gettext.
75514
75515 2005-08-16  Bruno Haible  <bruno@clisp.org>
75516
75517         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
75518         always.
75519         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
75520
75521 2005-08-16  Bruno Haible  <bruno@clisp.org>
75522
75523         * m4/mbiter.m4: New file.
75524
75525 2005-08-16  Bruno Haible  <bruno@clisp.org>
75526
75527         * m4/mbfile.m4: New file.
75528
75529 2005-08-16  Bruno Haible  <bruno@clisp.org>
75530
75531         * m4/mbchar.m4: New file.
75532
75533 2005-08-16  Bruno Haible  <bruno@clisp.org>
75534
75535         * lib/tls.h: New file, from GNU gettext.
75536         * lib/tls.c: New file, from GNU gettext.
75537
75538 2005-08-16  Bruno Haible  <bruno@clisp.org>
75539
75540         * lib/strnlen1.h: New file.
75541         * lib/strnlen1.c: New file.
75542
75543 2005-08-16  Bruno Haible  <bruno@clisp.org>
75544
75545         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
75546         (mbi_init): Update.
75547         (mbi_avail, mbi_advance): Let the iteration end before the terminating
75548         NUL byte, not after it.
75549
75550 2005-08-16  Bruno Haible  <bruno@clisp.org>
75551
75552         * lib/strcase.h (strcasecmp): Add note in comments.
75553         * lib/strncasecmp.c: Use code from strcasecmp.c.
75554         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
75555         (strcasecmp): Work correctly in multibyte locales.
75556
75557 2005-08-16  Bruno Haible  <bruno@clisp.org>
75558
75559         * lib/mbiter.h: New file.
75560
75561 2005-08-16  Bruno Haible  <bruno@clisp.org>
75562
75563         * lib/mbfile.h: New file.
75564
75565 2005-08-16  Bruno Haible  <bruno@clisp.org>
75566
75567         * lib/mbchar.h: New file.
75568         * lib/mbchar.c: New file.
75569
75570 2005-08-16  Bruno Haible  <bruno@clisp.org>
75571
75572         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
75573         the valid ones. Makes the comparison operations transitive:
75574         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
75575         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
75576
75577 2005-08-15  Simon Josefsson  <jas@extundo.com>
75578
75579         * modules/ssize_t (License): Change to 'unlimited'.
75580
75581         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
75582
75583 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75584
75585         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
75586         Add comments for each pending glibc patch.
75587
75588 2005-08-15  Bruno Haible  <bruno@clisp.org>
75589
75590         * lib/regex.h (__restrict_arr): Don't define to __restrict if
75591         __cplusplus is defined.
75592
75593 2005-08-14  Jim Meyering  <jim@meyering.net>
75594
75595         Sync from coreutils.
75596
75597         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
75598         Use the hash-table-based cycle-detection code not just when
75599         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
75600         Reported by James Youngman in
75601         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
75602         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
75603         FTS_TIGHT_CYCLE_CHECK.
75604         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
75605         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
75606         once again.
75607         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
75608         * lib/fts.c (fd_safer): Remove decl.
75609         Include fcntl--.h rather than unistd-safer.h
75610         (fts_safe_changedir): Don't call fd_safer; no longer needed
75611         now that we include fcntl--.h.
75612
75613 2005-08-12  Simon Josefsson  <jas@extundo.com>
75614
75615         * modules/getndelim2: Use ssize_t module.
75616         * modules/getnline: Likewise.
75617         * modules/safe-read: Likewise.
75618         * modules/xreadlink: Likewise.
75619
75620         * modules/ssize_t: New file.
75621
75622 2005-08-12  Simon Josefsson  <jas@extundo.com>
75623
75624         * m4/readline.m4: Look for termcap, curses or ncurses if required.
75625
75626 2005-08-12  Simon Josefsson  <jas@extundo.com>
75627
75628         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75629         ssize_t.
75630
75631 2005-08-12  Simon Josefsson  <jas@extundo.com>
75632
75633         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
75634         readline, getdelim and check_version.
75635         (Support for systems lacking ISO C 99: Sizes of integer types):
75636         Add size_max.
75637
75638 2005-08-12  Bruno Haible  <bruno@clisp.org>
75639
75640         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
75641
75642 2005-08-11  Simon Josefsson  <jas@extundo.com>
75643
75644         * modules/readline: New file.
75645
75646         * modules/strnlen (Files): Add strnlen.h.
75647
75648 2005-08-11  Simon Josefsson  <jas@extundo.com>
75649
75650         * m4/readline.m4: New file.
75651
75652 2005-08-11  Simon Josefsson  <jas@extundo.com>
75653
75654         * lib/readline.h, readline.c: New file.
75655
75656 2005-08-11  Simon Josefsson  <jas@extundo.com>
75657
75658         * doc/gnulib.texi (Initial import, Finishing touches): Mention
75659         gl_AVOID.
75660
75661 2005-08-11  Bruno Haible  <bruno@clisp.org>
75662
75663         * lib/strnlen.h (strnlen): Change parameter name to match comment.
75664
75665 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
75666
75667         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
75668
75669 2005-08-10  Simon Josefsson  <jas@extundo.com>
75670
75671         * tests/test-iconvme.c: New file.
75672
75673 2005-08-10  Simon Josefsson  <jas@extundo.com>
75674
75675         * m4/strnlen.m4: New file.
75676
75677         * m4/strndup.m4: Don't check for strnlen declaration, done in
75678         strnlen.m4.
75679
75680 2005-08-10  Simon Josefsson  <jas@extundo.com>
75681
75682         * lib/strndup.c: Use strnlen.h.
75683
75684         * lib/strnlen.h: New file.
75685
75686 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75687
75688         * README: Typos.
75689
75690 2005-08-02  Simon Josefsson  <jas@extundo.com>
75691
75692         * modules/readline: New file.
75693
75694 2005-08-02  Simon Josefsson  <jas@extundo.com>
75695
75696         * modules/getdelim: New file.
75697
75698         * modules/getline: Rewrite, don't use getndelim2.
75699
75700 2005-08-02  Simon Josefsson  <jas@extundo.com>
75701
75702         * m4/getline.m4: Separate out getdelim stuff into separate module.
75703
75704         * m4/getdelim.m4: New file.
75705
75706 2005-08-02  Simon Josefsson  <jas@extundo.com>
75707
75708         * lib/getline.h, getline.c: Rewrite.
75709
75710         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
75711
75712 2005-07-31  Bruno Haible  <bruno@clisp.org>
75713
75714         * lib/lock.h (gl_lock_initializer): New macro.
75715         (gl_lock_define_initialized): Use it.
75716         (gl_rwlock_initializer): New macro.
75717         (gl_rwlock_define_initialized): Use it.
75718         (gl_recursive_lock_initializer): New macro.
75719         (gl_recursive_lock_define_initialized): Use it.
75720
75721 2005-07-30  Karl Berry  <karl@gnu.org>
75722
75723         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
75724         Report from Ben Pfaff, regarding getopt.
75725
75726 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
75727
75728         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
75729         normal way.
75730         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
75731         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
75732         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
75733         (gl_GETOPT): Use the new macros.  Most of the implementation
75734         is moved to the new macros.  This is for programs like Emacs
75735         that don't want all the functionality of gl_GETOPT.
75736
75737 2005-07-26  Bruno Haible  <bruno@clisp.org>
75738
75739         * m4/lock.m4: Update from GNU gettext.
75740
75741 2005-07-26  Bruno Haible  <bruno@clisp.org>
75742
75743         * lib/lock.h: Update from GNU gettext.
75744         * lib/lock.c: Update from GNU gettext.
75745
75746 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
75747
75748         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
75749         obsolescent AC_TRY_RUN.  Include the default includes files, for
75750         'exit'.
75751
75752 2005-07-24  Bruno Haible  <bruno@clisp.org>
75753
75754         * modules/visibility: New file.
75755         * MODULES.html.sh (Misc): Add visibility.
75756
75757 2005-07-24  Bruno Haible  <bruno@clisp.org>
75758
75759         * m4/visibility.m4: New file.
75760
75761 2005-07-24  Bruno Haible  <bruno@clisp.org>
75762
75763         * doc/visibility.texi: New file.
75764
75765 2005-07-22  Bruno Haible  <bruno@clisp.org>
75766
75767         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
75768         $(ALLOCA_H), redundant through BUILT_SOURCES.
75769         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
75770         redundant through BUILT_SOURCES.
75771         * modules/byteswap (Makefile.am): Remove explicit dependency on
75772         $(BYTESWAP_H), redundant through BUILT_SOURCES.
75773         * modules/fnmatch (Makefile.am): Remove explicit dependency on
75774         $(FNMATCH_H), redundant through BUILT_SOURCES.
75775         * modules/getopt (Makefile.am): Remove explicit dependency on
75776         $(GETOPT_H), redundant through BUILT_SOURCES.
75777         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
75778         redundant through BUILT_SOURCES.
75779         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
75780         redundant through BUILT_SOURCES.
75781         * modules/stdbool (Makefile.am): Remove explicit dependency on
75782         $(STDBOOL_H), redundant through BUILT_SOURCES.
75783         * modules/stdint (Makefile.am): Remove explicit dependency on
75784         $(STDINT_H), redundant through BUILT_SOURCES.
75785         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
75786         Remove explicit dependency on $(SYSEXITS_H).
75787         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
75788
75789 2005-07-18  Simon Josefsson  <jas@extundo.com>
75790
75791         * lib/check-version.c (check_version): Accept identical versions too.
75792
75793 2005-07-18  Bruno Haible  <bruno@clisp.org>
75794
75795         * modules/lock: New file.
75796         * MODULES.html.sh (Multithreading): New section.
75797
75798 2005-07-18  Bruno Haible  <bruno@clisp.org>
75799
75800         * m4/lock.m4: New file, from GNU gettext.
75801
75802 2005-07-18  Bruno Haible  <bruno@clisp.org>
75803
75804         * lib/lock.h: New file, from GNU gettext.
75805         * lib/lock.c: New file, from GNU gettext.
75806
75807 2005-07-18  Bruno Haible  <bruno@clisp.org>
75808
75809         * lib/lock.h (gl_once_t): New type.
75810         (gl_once_define, gl_once): New macros.
75811         * lib/lock.c (fresh_once): New variable.
75812         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
75813         functions.
75814
75815 2005-07-16  Simon Josefsson  <jas@extundo.com>
75816
75817         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
75818         workaround, suggested by Bruno.
75819
75820 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75821
75822         * modules/xalloc (Depends-on): Add xalloc-die.
75823         * modules/xvasprintf (Depends-on): Add xalloc-die.
75824
75825 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75826
75827         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
75828         with a minor change.
75829
75830 2005-07-15  Bruno Haible  <bruno@clisp.org>
75831
75832         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
75833         When using lib/poll.c, define poll as rpl_poll.
75834
75835 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
75836
75837         * modules/argp (Depends-on): Remove unlocked-io.
75838
75839 2005-07-14  Derek Price  <derek@ximbiot.com>
75840
75841         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
75842         for glob symlink bug.
75843
75844 2005-07-14  Bruno Haible  <bruno@clisp.org>
75845
75846         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
75847         Instead, test for *_unlocked function declarations directly.
75848
75849 2005-07-11  Simon Josefsson  <jas@extundo.com>
75850
75851         * modules/size_max: New file.
75852
75853         * modules/xsize: Depend on size_max module for size_max.m4.
75854
75855 2005-07-11  Simon Josefsson  <jas@extundo.com>
75856
75857         * lib/size_max.h: New file.
75858
75859 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
75860
75861         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
75862         copyright symbol and the year.
75863         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
75864         (version_etc_va): Use parameterized copyright notice.
75865         Reword to conform to the current GNU coding standards.
75866
75867 2005-07-11  Karl Berry  <karl@gnu.org>
75868
75869         * doc/gnulib.texi (Quoting): new node.
75870         (Initial import): more info, from Patrice.
75871
75872 2005-07-11  Bruno Haible  <bruno@clisp.org>
75873
75874         * gnulib-tool (func_usage): Document option --avoid.
75875         (Command line options): Handle --avoid.
75876         (func_acceptable): New function.
75877         (func_modules_transitive_closure): Use it.
75878
75879 2005-07-11  Bruno Haible  <bruno@clisp.org>
75880
75881         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
75882         Reported by Jim Meyering.
75883
75884 2005-07-10  Bruno Haible  <bruno@clisp.org>
75885
75886         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
75887         Needed when size_t is smaller than 'unsigned int'.
75888         Reported by Paul Eggert.
75889
75890 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75891
75892         * modules/argp (Depends-on): Add unlocked-io
75893
75894 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75895
75896         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
75897         block of defines.
75898
75899 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75900
75901         * config/srclist.txt: Comment out regcomp.c, since we have a porting
75902         fix now.
75903
75904 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
75905         and Paul Eggert  <eggert@cs.ucla.edu>
75906
75907         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
75908         in wint_t, not wchar_t.  Remove now-unnecessary cast.
75909
75910 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75911
75912         * modules/regex (Files): Add lib/regex_internal.c,
75913         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
75914         (Depends-on): Add extensions.
75915         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
75916
75917 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75918
75919         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
75920         pathconf.
75921         * m4/same.m4 (gl_SAME): Likewise.
75922         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
75923
75924         * m4/regex.m4: Adjust to new libc regex implementation.
75925         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
75926         all the .c and .h parts of (the new) regex.
75927         Quote the m4 stuff better.
75928         Check for RE_ICASE bug of old gnulib.
75929         Check for REG_STARTEND of recent libc.
75930         Rename local variables from jm_* to gl_*.
75931         Quote operand of "test -f".
75932         Say "recent enough" version of libc, not "version 2".
75933         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
75934         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
75935         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
75936         Remove check for btowc, isascii.
75937         Require AM_LANGINFO_CODESET.
75938
75939 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75940
75941         * lib/regex.c, regex.h: Sync from libc.
75942         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
75943         * lib/regexec.c:
75944         New files, synced from libc, except that regex_internal.h
75945         currently has a small porting fix.
75946
75947 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75948
75949         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
75950         regex_internal.c, regexec.c.
75951         Add regex_internal.h too, but as a comment, since the libc version
75952         is currently broken in gnulib mode.
75953
75954 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75955
75956         Support programs like Emacs that use gnulib but not gettext.
75957         * MODULES.html.sh (Internationalization functions): Add gettext-h.
75958         * modules/gettext-h: New file.
75959         * modules/gettext (Files): Remove lib/gettext.h.
75960         (Depends-on): Add gettext-h.
75961         (Makefile.am): Remove lib_SOURCES.
75962         * modules/argmatch, modules/c-stack, modules/closeout:
75963         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
75964         * modules/execute, modules/file-type, modules/getaddrinfo:
75965         * modules/getopt, modules/human, modules/javacomp:
75966         * modules/javaexec, modules/mkdir-p, modules/obstack:
75967         * modules/openat, modules/pagealign_alloc, modules/pipe:
75968         * modules/quotearg, modules/regex, modules/rpmatch:
75969         * modules/unicodeio, modules/userspec, modules/version-etc:
75970         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
75971         * modules/xsetenv:
75972         Depend on gettext-h, not gettext.
75973
75974 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75975
75976         * gnulib-tool (func_import): Add support for 'public domain' license.
75977         * modules/alloca, modules/atexit, modules/memmove:
75978         Now public domain, not GPL.
75979         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
75980         * modules/realloc, modules/strerror, modules/strtod:
75981         Now LGPL, not GPL.
75982
75983 2005-07-05  Bruno Haible  <bruno@clisp.org>
75984
75985         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
75986         autoconf CVS. Needed for mingw.
75987
75988 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75989
75990         Remove the dependency of the strftime module on the tzset module.
75991         * modules/strftime (Depends-on): Remove dependency on tzset.
75992
75993 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75994
75995         Remove the dependency of the strftime module on the tzset module.
75996         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
75997         gl_FUNC_TZSET_CLOBBER.
75998
75999 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76000
76001         Remove the dependency of the strftime module on the tzset module.
76002         * lib/strftime.c (my_strftime)
76003         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76004         Copy the input structure, to work around some of the bug with
76005         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76006         Solaris releases, you should also use the tzset module, but we won't
76007         require it as a dependency any more since we don't want LGPLed code
76008         to depend on GPLed code.
76009
76010 2005-07-02  Jim Meyering  <jim@meyering.net>
76011
76012         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76013         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76014         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76015         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76016
76017 2005-07-02  Jim Meyering  <jim@meyering.net>
76018
76019         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76020
76021 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76022
76023         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76024         declares only 'struct timespec;' (!).
76025
76026 2005-07-01  Jim Meyering  <jim@meyering.net>
76027
76028         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76029         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76030         * lib/save-cwd.c, tempname.c:
76031         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76032         and don't include <sys/file.h>).
76033
76034 2005-06-29  Jim Meyering  <jim@meyering.net>
76035
76036         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76037         type name.  Use the variable name instead.
76038         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76039         Likewise.
76040
76041 2005-06-28  Simon Josefsson  <jas@extundo.com>
76042
76043         * modules/check-version (Files): Add check-version.m4.
76044
76045 2005-06-28  Simon Josefsson  <jas@extundo.com>
76046
76047         * m4/check-version.m4: New file, suggested by Jim Meyering
76048         <jim@meyering.net>.
76049
76050 2005-06-28  Simon Josefsson  <jas@extundo.com>
76051
76052         * lib/check-version.h, lib/check-version.c: New files.
76053
76054 2005-06-28  Simon Josefsson  <jas@extundo.com>
76055
76056         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76057         collision with global variable.  Better indentation.  Don't
76058         increment buffer pointer beyond buffer end.  Based on comments
76059         from Paul Eggert <eggert@cs.ucla.edu>.
76060
76061         * lib/base64.h: Indent.
76062
76063 2005-06-28  Simon Josefsson  <jas@extundo.com>
76064
76065         * doc/gnulib.texi (Library version handling): New section.
76066
76067 2005-06-28  Jim Meyering  <jim@meyering.net>
76068
76069         * check-module (find_included_lib_files): Hard-code another
76070         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76071         but modules/fts-lgpl (correctly) does not list those files.
76072
76073         * modules/canonicalize (Files): Add lib/pathmax.h.
76074
76075 2005-06-25  Simon Josefsson  <jas@extundo.com>
76076
76077         * modules/check-version: New file.
76078
76079 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76080
76081         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76082         initializer of struct addrinfo, as an indication that we don't
76083         care how many members the structure has.
76084
76085 2005-06-24  Derek Price  <derek@ximbiot.com>
76086         and Bruno Haible  <bruno@clisp.org>
76087
76088         Remove stat module & update lstat.
76089         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76090         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76091         * m4/stat.m4: Remove this file.
76092
76093 2005-06-24  Derek Price  <derek@ximbiot.com>
76094         and Bruno Haible  <bruno@clisp.org>
76095
76096         Remove stat module & update lstat.
76097         * lib/stat.c: Remove this file...
76098         (slash_aware_lstat): ...moving this content and its support...
76099         * lib/lstat.c (rpl_lstat): ...into here.
76100         * lib/lstat.h: New file.
76101
76102 2005-06-24  Derek Price  <derek@ximbiot.com>
76103         and Bruno Haible  <bruno@clisp.org>
76104
76105         Remove stat module & update lstat.
76106         * config/srclist.txt (libc sources): Remove stat.
76107
76108 2005-06-24  Derek Price  <derek@ximbiot.com>
76109         and Bruno Haible  <bruno@clisp.org>
76110
76111         Remove stat module & update lstat.
76112         * MODULES.html.sh (stat): Remove.
76113         * MODULES.html: Regenerated.
76114         * modules/lstat (Description): Correct function name.
76115         (Files): Add "lstat.h".
76116         (Depends-on): Remove stat, add xalloc, stat-macros.
76117         * modules/stat: Remove this file.
76118         (Include): Add "lstat.h", remove <sys/stat.h>.
76119
76120 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76121
76122         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76123         (ranged_convert): Don't save conversion in a temporary struct.
76124         This causes a warning with GCC 4.0.0, and anyway in the typical
76125         case it's not worth the extra 100 bytes or so of code.
76126         (ranged_convert, __mktime_internal): When calling a function via a
76127         pointer P, use P () rather than (*P) (), as we now assume C89 or
76128         better.
76129
76130 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76131
76132         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76133         "who -r" failed to give output.  Problem reported by Tim Waugh.
76134
76135         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76136         (xcalloc): Use it to avoid needless tests.
76137         Problem reported by Jim Meyering.
76138
76139 2005-06-20  Derek Price  <derek@ximbiot.com>
76140
76141         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76142         unnecessary for Autoconfs > 2.59c.
76143
76144 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76145
76146         * lib/argp.h (__option_is_short): Check upper limit of
76147         __key. Isprint() requires its argument to have the value
76148         of an unsigned char or EOF.
76149
76150 2005-06-16  Jim Meyering  <jim@meyering.net>
76151
76152         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76153         when either N or S is zero.
76154
76155 2005-06-16  Derek Price  <derek@ximbiot.com>
76156
76157         * m4/bison.m4: Declare YACC & YFLAGS precious.
76158
76159 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76160
76161         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76162         multibyte string or pattern, fall back on unibyte matching.
76163         Problem reported by James Youngman.
76164
76165 2005-06-08  Bruno Haible  <bruno@clisp.org>
76166
76167         * modules/csharpcomp: New file.
76168         * MODULES.html.sh (C#): Add csharpcomp.
76169
76170 2005-06-08  Bruno Haible  <bruno@clisp.org>
76171
76172         * m4/csharpcomp.m4: New file, from GNU gettext.
76173
76174 2005-06-08  Bruno Haible  <bruno@clisp.org>
76175
76176         * lib/csharpcomp.h: New file, from GNU gettext.
76177         * lib/csharpcomp.c: New file, from GNU gettext.
76178         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76179
76180 2005-06-08  Bruno Haible  <bruno@clisp.org>
76181
76182         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76183         warning on mingw.
76184
76185 2005-06-07  Derek Price  <derek@ximbiot.com>
76186
76187         Sync from CVS.
76188         * lib/glob_.h: Indent nested #ifdef.
76189
76190 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76191
76192         Sync from coreutils.
76193         Use "file name" when talking about file names, instead of "filename"
76194         or "path", as per the GNU coding standards.
76195         * lib/mkdir-p.c: Renamed from makepath.c.
76196         (make_dir_parents): Renamed from make_path.  All callers changed.
76197         * lib/mkdir-p.h: Likewise.  All includers changed.
76198         * lib/filenamecat.c: Renamed from path-concat.c.
76199         (file_name_concat): Renamed from path_concat.  All callers changed.
76200         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76201         * lib/filenamecat.h: Likewise.  All includers changed.
76202         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76203         in comments or local variable names.
76204         * lib/basename.c: Likewise.
76205         * lib/canonicalize.c, canonicalize.h: Likewise.
76206         * lib/dirname.c, dirname.h: Likewise.
76207         * lib/euidaccess.c: Likewise.
76208         * lib/exclude.c: Likewise
76209         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76210         * lib/fsusage.c, fsuage.h: Likewise.
76211         * lib/fts.c, fts_.h: Likewise.
76212         * lib/getcwd.c: Likewise.
76213         * lib/getloadavg.c: Likewise.
76214         * lib/mkstemp.c: Likewise.
76215         * lib/mountlist.c, mountlist.h: Likewise.
76216         * lib/openat.c, openat.h: Likewise.
76217         * lib/readlink-stub.c: Likewise.
76218         * lib/readutmp.c, readutmp.h: Likewise.
76219         * lib/rename.c: Likewise.
76220         * lib/rmdir.c: Likewise.
76221         * lib/same.c: Likewise.
76222         * lib/savedir.c: Likewise.
76223         * lib/stripslash.c: Likewise.
76224         * lib/tempname.c: Likewise.
76225         * lib/xreadlink.c: Likewise.
76226         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76227         All uses changed.
76228         * lib/exclude.h: Likewise.
76229
76230         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76231         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76232         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76233         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76234         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76235         files have been getting away with it for years (MORE/BSD 4.3
76236         is extinct now).
76237         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76238         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76239
76240         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76241         Define to 256, not 255, as per modern POSIX.
76242
76243 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76244
76245         Sync from coreutils.
76246         Use "file name" when talking about file names, instead of "filename"
76247         or "path", as per the GNU coding standards.
76248         * MODULES.html.sh: mkdir-p renamed from makepath.
76249         filenamecat renamed from path-concat.
76250         * modules/filenamecat: Renamed from modules/path-concat.
76251         (Files): filenamecat.h and filenamecat.c renamed from
76252         path-concat.h and path-concat.c.
76253         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76254         (Include): filenamecat.h, not path-concat.h.
76255         * modules/mkdir-p: Renamed from modules/makepath.
76256         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76257         makepath.c.
76258         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76259         (Include): mkdir-p.h, not makepath.h.
76260
76261 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76262
76263         Sync from coreutils.
76264         * m4/mkdir-p.m4: Renamed from makepath.m4.
76265         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76266         Rename files from makepath.c to mkdir-p.c, and from
76267         makepath.h to mkdir-p.h.
76268         * m4/filenamecat.m4: Renamed from path-concat.m4.
76269         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76270         Rename files from path-concat.c to filenamecat.c,
76271         and from path-concat.h to filenamecat.h.
76272         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76273         "file name" in local variables or comments.
76274         * m4/rename.m4: Likewise.
76275
76276 2005-06-01  Bruno Haible  <bruno@clisp.org>
76277
76278         * modules/csharpexec: New file.
76279         * MODULES.html.sh (C#): New section.
76280
76281 2005-06-01  Bruno Haible  <bruno@clisp.org>
76282
76283         * m4/csharp.m4: New file, from GNU gettext.
76284         * m4/csharpexec.m4: New file, from GNU gettext.
76285
76286 2005-06-01  Bruno Haible  <bruno@clisp.org>
76287
76288         * lib/csharpexec.h: New file, from GNU gettext.
76289         * lib/csharpexec.c: New file, from GNU gettext.
76290         * lib/csharpexec.sh.in: New file, from GNU gettext.
76291
76292 2005-05-31  Derek Price  <derek@ximbiot.com>
76293             Paul Eggert  <eggert@cs.ucla.edu>
76294
76295         Sync from cvs.
76296         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76297
76298 2005-05-31  Derek Price  <derek@ximbiot.com>
76299             Paul Eggert  <eggert@cs.ucla.edu>
76300
76301         Sync from cvs.
76302         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76303
76304 2005-05-29  Derek Price  <derek@ximbiot.com>
76305
76306         * config/srclist.txt (glob_.h, glob.c): Add these files.
76307
76308 2005-05-29  Derek Price  <derek@ximbiot.com>
76309
76310         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76311         * modules/glob: New file.
76312         * modules/getlogin_r: Add link to POSIX spec in description.
76313
76314 2005-05-29  Derek Price  <derek@ximbiot.com>
76315             Paul Eggert  <eggert@cs.ucla.edu>
76316
76317         * m4/glob.m4: New file.
76318
76319 2005-05-29  Derek Price  <derek@ximbiot.com>
76320             Paul Eggert  <eggert@cs.ucla.edu>
76321
76322         * lib/glob_.h, lib/glob.c: New files.
76323
76324 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76325
76326         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76327         * modules/fts-lgpl (Depends-on): Remove gettext.
76328
76329 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76330
76331         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76332         and don't require gt_INTTYPES_PRI.
76333
76334 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76335
76336         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76337
76338         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76339         the configuration hassle isn't worth it.
76340         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76341         (LONGEST_MODIFIER, PRIuMAX): Remove.
76342
76343 2005-05-27  Bruno Haible  <bruno@clisp.org>
76344
76345         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76346
76347 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76348
76349         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76350         _POSIX_PTHREAD_SEMANTICS for Solaris.
76351
76352 2005-05-25  Derek Price  <derek@ximbiot.com>
76353
76354         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
76355
76356 2005-05-25  Derek Price  <derek@ximbiot.com>
76357             Paul Eggert  <eggert@cs.ucla.edu>
76358
76359         * modules/getlogin_r, m4/getlogin_r.m4: New files.
76360         * lib/getlogin_r.c, getlogin_r.h: New files.
76361
76362 2005-05-25  Bruno Haible  <bruno@clisp.org>
76363             Derek Price  <derek@ximbiot.com>
76364
76365         * lib/getlogin_r.h: Simplify API documentation.
76366
76367 2005-05-23  Derek Price  <derek@ximbiot.com>
76368
76369         * modules/minmax (Files): Add m4/minmax.m4.
76370         (configure.ac): Add gl_MINMAX.
76371
76372 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76373
76374         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
76375         so that unistd-safer.h (GPL'ed code) need not be included.
76376
76377 2005-05-22  Bruno Haible  <bruno@clisp.org>
76378
76379         * m4/minmax.m4: New file.
76380         Based on a patch by Derek Price <derek@ximbiot.com>.
76381
76382 2005-05-22  Bruno Haible  <bruno@clisp.org>
76383
76384         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
76385         (INT64_MIN): Fix definition.
76386         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
76387
76388         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
76389         NEED_SIGNED_INT_TYPES.
76390
76391         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
76392         HAVE_SYSTEM_INTTYPES.
76393
76394 2005-05-22  Bruno Haible  <bruno@clisp.org>
76395
76396         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
76397         Also include <sys/param.h> if it defines MIN, MAX.
76398         Based on a patch by Derek Price <derek@ximbiot.com>.
76399
76400 2005-05-21  Jim Meyering  <jim@meyering.net>
76401
76402         * modules/fts (Files): Add m4/inttypes-pri.m4.
76403         (Depends-on): Add lstat and remove gettext.  Alphabetize.
76404
76405 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76406
76407         New fts module.
76408         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
76409         (setup_dir, free_dir): New functions.
76410         (enter_dir, leave_dir): Define trivial
76411         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
76412         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
76413         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
76414         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
76415         Move to fts-cycle.c.
76416         (fts_open): Use setup_dir.
76417         (fts_close): Use free_dir.
76418         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
76419         This adds a label and some gotos, but the alternatives were messier.
76420         Check for memory allocation failure when entering a dir.
76421         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
76422         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
76423         (FTS): New member fts_cycle, that is a union that contains the
76424         old active_dir_ht and cycle_state.  All uses changed to mention
76425         fts_cycle.ht and fts_cycle.state.
76426         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
76427         fts.c, with the following changes:
76428         (setup_dir, free_dir): New functions.
76429         (enter_dir): Now returns bool.  Return true if successful, false
76430         if memory exhausted.  All callers changed.
76431         Do not bother partly cleaning up on
76432         memory allocation failure; that is free_dir's job.
76433         However, free ad if hash_insert fails, to avoid memory leak.
76434         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
76435         fts->fts_options to see which union member to use.
76436
76437 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76438
76439         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
76440         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
76441
76442 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76443
76444         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
76445
76446 2005-05-20  Jim Meyering  <jim@meyering.net>
76447
76448         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
76449         Now a macro, to pacify GCC.
76450
76451 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76452
76453         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76454         of -1.
76455
76456 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76457
76458         * lib/chown.c (rpl_chown): Return -1 on failure.
76459
76460 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76461
76462         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76463         Don't check for stddef.h.
76464         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76465         don't use its results.
76466         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76467         since we include them unconditionally.  Don't require
76468         AM_STDBOOL_H, since stdbool is a prerequisite.
76469         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76470         since we assume C89 or better.
76471         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76472         as we don't use their results.
76473         Don't check for fchdir, memmove, memset, strrchr, as we use
76474         them unconditionally.
76475         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76476         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76477
76478 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76479
76480         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76481         Include <stddef.h> unconditionally, since we assume C89 now.
76482         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76483         * lib/fts.c: Include fts_.h first, to check interface.
76484         Do not include intprops.h; no longer needed.
76485         Include cycle-check.h and hash.h, since fts_.h no longer does.
76486         Remove unnecessary casts of closedir to void.
76487         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
76488         decide whether to decrement nlinks.
76489         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
76490         (FTS): Use struct hash_table * instead of Hash_table, so that
76491         we no longer need to include hash.h here.
76492
76493 2005-05-18  Jim Meyering  <jim@meyering.net>
76494
76495         * modules/dirfd (License): Change to LGPL.  Most of the code
76496         is already in the public domain.
76497
76498 2005-05-18  Jim Meyering  <jim@meyering.net>
76499
76500         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
76501         Reported by Yoann Vandoorselaere.
76502
76503 2005-05-17  Jim Meyering  <jim@meyering.net>
76504
76505         * m4/fts.m4: New file, from coreutils.
76506
76507 2005-05-17  Jim Meyering  <jim@meyering.net>
76508
76509         * lib/fts.c, lib/fts_.h: New files, from coreutils.
76510
76511 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76512
76513         Sync from coreutils.
76514         * m4/unlinkdir.m4: New file.
76515
76516 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76517
76518         Sync from coreutils.
76519         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
76520         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
76521         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
76522         White space changes only.
76523         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76524         special.
76525         * lib/yesno.c: Include getline.h, not ctype.h.
76526         (yesno): Don't remove leading white space; POSIX doesn't allow it.
76527         Use getline to remove arbitrary restriction on response length.
76528
76529 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76530
76531         * config/srclist-update: Spell out "Street" in FSF postal
76532         mail address; this is the style the FSF seems to prefer.
76533
76534         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
76535         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
76536         this updates FSF postal mail address.
76537
76538         Sync from coreutils.
76539         * modules/unlinkdir: New file.
76540         * modules/yesno (Depends-on): Add getline.
76541         * MODULES.html.sh (File system functions): Add unlinkdir.
76542
76543 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76544
76545         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
76546         lib/strsep.h:
76547         Change the initial comment to refer to GPL, not LGPL.
76548         gnulib-tool will change it to LGPL as needed.
76549
76550         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
76551         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
76552         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
76553         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
76554         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
76555         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
76556         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
76557         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
76558         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
76559         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
76560         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
76561         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
76562         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
76563         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
76564         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
76565         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
76566         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
76567         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
76568         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
76569         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
76570         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
76571         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
76572         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
76573         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
76574         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
76575         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
76576         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
76577         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
76578         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
76579         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
76580         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
76581         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
76582         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
76583         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
76584         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
76585         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
76586         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
76587         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
76588         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
76589         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
76590         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
76591         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
76592         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
76593         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
76594         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
76595         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
76596         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
76597         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
76598         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
76599         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
76600         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76601         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
76602         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
76603         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
76604         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
76605         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
76606         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
76607         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
76608         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
76609         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
76610         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
76611         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
76612         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
76613         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
76614         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
76615         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
76616         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
76617         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
76618         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
76619         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
76620         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
76621         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
76622         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
76623         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
76624         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
76625         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
76626         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
76627         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
76628         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
76629         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
76630         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
76631         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
76632         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
76633         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
76634         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
76635         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
76636         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
76637         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
76638         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
76639         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
76640         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
76641         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
76642         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
76643         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
76644         lib/yesno.c, lib/yesno.h:
76645         Update FSF postal mail address.
76646
76647 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76648
76649         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
76650         tests/test-memmem.c, tests/test-stpncpy.c:
76651         Update FSF postal mail address.
76652
76653 2005-05-13  Bruno Haible  <bruno@clisp.org>
76654
76655         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
76656         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
76657         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
76658         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
76659         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
76660         Add support for 64-bit integers in the MSVC compiler.
76661
76662 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76663
76664         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
76665
76666 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
76667
76668         * gnulib-tool (func_import): Sort and uniquify recommended includes.
76669
76670 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
76671
76672         * doc/getdate.texi (General date syntax): Don't say that date
76673         date --iso-8601=ns generates acceptable dates; it doesn't yet.
76674         Problem reported by Nic Ferrier.
76675
76676 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76677
76678         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
76679         specified in ai_socktype. Fix invalid ai_protocol
76680         check. ai_protocol is usually set to 0 or depending on
76681         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
76682         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
76683         ai_socktype / ai_protocol in the returned addrinfo structure.
76684
76685 2005-05-10  Simon Josefsson  <jas@extundo.com>
76686
76687         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
76688         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76689
76690 2005-05-10  Karl Berry  <karl@gnu.org>
76691
76692         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
76693         (from http://www.gnu.org/licenses).
76694         * doc/COPYING.LIB: also rename to COPYING.LESSER.
76695         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
76696         fdl.texi suffices.
76697
76698 2005-05-10  Karl Berry  <karl@gnu.org>
76699
76700         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
76701         (COPYING.DOC): remove.
76702
76703         * config/srclist-update: new FSF address.
76704
76705 2005-05-10  Derek Price  <derek@ximbiot.com>
76706
76707         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
76708         possible.
76709
76710 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76711             Bruno Haible  <bruno@clisp.org>
76712
76713         * modules/inet_ntop: New file.
76714         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76715         inet_ntop.
76716
76717 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76718             Bruno Haible  <bruno@clisp.org>
76719
76720         * m4/inet_ntop.m4: New file.
76721
76722 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76723             Bruno Haible  <bruno@clisp.org>
76724
76725         * lib/inet_ntop.h: New file.
76726         * lib/inet_ntop.c: New file, from glibc with modifications.
76727
76728 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
76729
76730         * modules/time_r (License): Change to LGPL.
76731         * modules/extensions (License): Change to LGPL.  Actually,
76732         the license is more permissive than that, but currently gnulib-tool
76733         doesn't know how to handle more-permissive licenses.
76734
76735         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
76736         Problem reported by Dave Love.
76737
76738 2005-05-08  Jim Meyering  <jim@meyering.net>
76739
76740         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
76741         blank.
76742
76743 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76744
76745         * modules/argmatch (Depends-on): Add stdbool.
76746         * modules/backupfile (Depends-on): Likewise.
76747         * modules/chdir-long (Depends-on): Likewise.
76748         * modules/closeout (Depends-on): Likewise.
76749         * modules/cycle-check (Depends-on): Likewise.
76750         * modules/dirname (Depends-on): Likewise.
76751         * modules/fnmatch (Depends-on): Likewise.
76752         * modules/fsusage (Depends-on): Likewise.
76753         * modules/fwriteerror (Depends-on): Likewise.
76754         * modules/getcwd (Depends-on): Likewise.
76755         * modules/getloadavg (Depends-on): Likewise.
76756         * modules/hard-locale (Depends-on): Likewise.
76757         * modules/makepath (Depends-on): Likewise.
76758         * modules/mountlist (Depends-on): Likewise.
76759         * modules/nanosleep (Depends-on): Likewise.
76760         * modules/posixtm (Depends-on): Likewise.
76761         * modules/quotearg (Depends-on): Likewise.
76762         * modules/readtokens (Depends-on): Likewise.
76763         * modules/readtokens0 (Depends-on): Likewise.
76764         * modules/readutmp (Depends-on): Likewise.
76765         * modules/save-cwd (Depends-on): Likewise.
76766         * modules/strftime (Depends-on): Likewise.
76767         * modules/userspec (Depends-on): Likewise.
76768         * modules/utimecmp (Depends-on): Likewise.
76769         * modules/xgetcwd (Depends-on): Likewise.
76770         * modules/xnanosleep (Depends-on): Likewise.
76771         * modules/xstrtod (Depends-on): Likewise.
76772         * modules/yesno (Depends-on): Likewise.
76773
76774 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
76775
76776         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
76777         needless checks.
76778
76779 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76780
76781         Merge from coreutils.  Among other things,
76782         add bulletproofing for cases where stdin, stdout, or stderr are closed.
76783         * lib/fd-safer.c: New file.
76784         * lib/fcntl-safer.h, open-safer.c: Remove.
76785         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
76786         * lib/dup-safer.c: Include unistd-safer.h first.
76787         Don't include errno.h.
76788         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
76789         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
76790         * lib/file-type.c: Rely on file-type.h change.
76791         * lib/getloadavg.c: Include unistd-safer.h.
76792         (getloadavg): Use safer open.
76793         * lib/getusershell.c: Include "stdio-safer.h".
76794         (getusershell): Use safer fopen.
76795         * lib/long-options.c (long_options): Use NULL rather than 0.
76796         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
76797         'free'.
76798         * lib/modechange.c: Likewise.
76799         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
76800         (MODE_DONE): New constant.
76801         (struct mode_change): Remove 'next' member.
76802         (make_node_op_equals): New function; like the old one of the
76803         same name, except it allocates an array.
76804         (mode_compile, mode_create_from_ref): Use it.
76805         (mode_compile): Allocate result as an array, not a linked list.
76806         Parse octal string ourself, so that we catch mistakes like "+0".
76807         (mode_adjust): Arg is an array, not a linked list.
76808         * lib/modechange.c: Include stat-macros.h, xalloc.h.
76809         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
76810         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
76811         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
76812         Remove.  This is now stat-macros.h's job.
76813         (talloc): Remove.  All callers replaced by xalloc, so that
76814         our invokers don't have to worry about reporting memory failures.
76815         (make_node_op_equals): Remove.
76816         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76817         New constants.
76818         (struct mode_change): Moved here from modechange.h.
76819         (mode_append_entry): Remove.
76820         (mode_compile): Remove MASKED_OPS arg, since it encouraged
76821         apps to have incorrect behavior.  Use simpler algorithm for head
76822         and tail.  Don't futz with umask; that's now the job of mode_adjust.
76823         Detect more invalid usages rather than having somewhat-random behavior.
76824         Don't insert an "a=" action, as that leads to incorrect behavior.
76825         (mode_compile, mode_create_from_ref): Return NULL on error instead
76826         of an enum, since now there's only one way to have an error.  All
76827         callers changed.
76828         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
76829         at the correct time.  Simplify calculation of "+u" and its ilk.
76830         Don't mishandle "+X".
76831         (mode_free): Remove "register" and localize decls.
76832         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76833         (struct mode_change): Move to modechange.c; callers don't
76834         need to see this stuff.
76835         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
76836         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
76837         (mode_change, mode_adjust): Reflect the new signatures noted above.
76838         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
76839         that might redefine system include files.
76840         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
76841         (my_usleep): Use NULL rather than (void *) 0.
76842         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
76843         Use siginterrupt to specify that system calls should be interrupted.
76844         (rpl_nanosleep): Move initialization of suspended closer to call of
76845         my_usleep.
76846         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
76847         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
76848         (desirable_utmp_entry): New function.
76849         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
76850         using x2nrealloc, to simplify logic.
76851         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
76852         size calculation.  Do not assume utmp file is a regular file.
76853         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
76854         (READ_UTMP_CHECK_PIDS): New constant.
76855         * lib/save-cwd.c: Include unistd-safer.h.
76856         (save_cwd): Use fd_safer.
76857         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
76858         [!_LIBC] Include "stat-macros.h" instead.
76859         * lib/unistd-safer.h (fd_safer): New decl.
76860
76861 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76862
76863         * modules/getloadavg (Depends-on): Add unistd-safer.
76864         * modules/getusershell (Depends-on): Add stdio-safer.
76865         * modules/lstat (Depends-on): Remove xalloc.
76866         * modules/mkstemp (Depends-on): Add stat-macros.
76867         * modules/modechange (Depends-on): Remove xstrtol.
76868         Add stat-macros, xalloc.
76869         * modules/save-cwd (Depends-on): Add unistd-safer.
76870         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
76871         * modules/unistd-safer (Files): Add lib/fd-safer.c
76872         (Makefile.am): Remove lib_SOURCES.
76873
76874         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
76875         Remove fcntl-safer; unistd-safer supersedes it.
76876
76877 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76878
76879         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
76880         AC_HEADER_STAT.
76881         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
76882         (gl_PREREQ_CHOWN): Remove.
76883         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
76884         it.  Don't require AC_HEADER_STAT.
76885         (gl_PREREQ_LSTAT): Remove.
76886         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
76887         Don't require AC_HEADER_STAT.
76888         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
76889         (gl_PREREQ_RMDIR): Remove.
76890         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
76891         mention stat-macros.h or AC_HEADER_STAT, since we'll make
76892         the stat-macros module a prerequisite.
76893         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
76894         * m4/filemode.m4 (gl_FILEMODE): Likewise.
76895         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
76896         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
76897         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
76898         variable names.
76899         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
76900         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
76901         variable prefixes.
76902         * m4/fcntl-safer.m4: Remove.
76903         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
76904         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
76905         Invoke gl_PREREQ_FD_SAFER.
76906         (gl_PREREQ_FD_SAFER): New macro.
76907         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
76908         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
76909         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
76910         Remove duplicate call to AC_LIBOBJ(readutmp).
76911         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
76912
76913         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
76914         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
76915
76916 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76917
76918         * MODULES.html.sh (Misc): Add byteswap.
76919
76920 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76921
76922         * modules/getcwd (Depends-on): Add extensions.
76923         * modules/openat (Depends-on): Likewise.
76924
76925 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76926
76927         * modules/byteswap: New file.
76928
76929 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76930
76931         * m4/byteswap.m4: New file.
76932
76933 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76934
76935         * lib/byteswap_.h: New file.
76936
76937 2005-04-25  Karl Berry  <karl@gnu.org>
76938
76939         * m4/gettext.m4: Update from GNU gettext 0.14.4.
76940
76941 2005-04-25  Albert Chin  <china@thewrittenword.com>
76942
76943         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
76944         Toolkit C bug.
76945
76946 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
76947
76948         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
76949         (func_ln_if_changed): Remove forcibly for no error message
76950         in case file does not exist.
76951
76952 2005-04-19  Simon Josefsson  <jas@extundo.com>
76953
76954         * gnulib-tool (Options): Make --symlink mean --symbolic.
76955
76956 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
76957
76958         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
76959
76960 2005-04-16  Simon Josefsson  <jas@extundo.com>
76961
76962         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
76963
76964 2005-04-15  Simon Josefsson  <jas@extundo.com>
76965
76966         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
76967
76968 2005-04-15  Simon Josefsson  <jas@extundo.com>
76969
76970         * gnulib-tool: Rename --symlink to --symbolic.
76971
76972 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
76973
76974         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
76975         symbolic links to files instead of copying/moving.  Add --aux-dir,
76976         specifying directory relative --dir where auxiliary build tools
76977         are placed.
76978
76979 2005-04-14  Bruno Haible  <bruno@clisp.org>
76980
76981         * modules/allocsa (License): Change to LGPL.
76982         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76983
76984 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76985
76986         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
76987         that "UTC +1 second" continues to work.  Problem reported
76988         by Dmitry V. Levin.
76989         (relunit_snumber): New rule.
76990         (relunit): Use it.
76991
76992 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76993
76994         * lib/getdate.y (universal_time_zone_table): New constant.
76995         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
76996         universal_time_zone_table.
76997         (lookup_zone): Prefer universal_time_zone_table to
76998         local_time_zone_table, so that "GMT" time stamps are allowed in
76999         London during the summer.  Problem reported by Ian Abbott.
77000
77001 2005-04-12  Jim Meyering  <jim@meyering.net>
77002
77003         * lib/human.c (humblock): Set *options even when returning due to
77004         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77005         warning from gcc-4.
77006
77007 2005-04-09  Jim Meyering  <jim@meyering.net>
77008
77009         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77010         -Wuninitialized: initialize tm0.tm_year.
77011
77012 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77013
77014         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77015         count, since there's no maximum.  All uses changed.
77016         Add member dsts_seen.
77017         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77018         not being INT_MAX.
77019         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77020         Use pc_rels_seen to decide whther a date is absolute.
77021
77022         * lib/getdate.y (number): Don't overwrite year.
77023         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77024         check.
77025
77026 2005-04-02  Simon Josefsson  <jas@extundo.com>
77027
77028         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77029         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77030
77031 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77032
77033         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77034         where no absolute path name can be longer than PATH_MAX.
77035
77036 2005-03-27  Jim Meyering  <jim@meyering.net>
77037
77038         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77039
77040 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77041
77042         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77043         "one's complement" -> "ones' complement" in comment, as per Knuth.
77044         "value of type" -> "type or expression" in comment.
77045         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77046
77047 2005-03-26  Jim Meyering  <jim@meyering.net>
77048
77049         Comment nits.
77050         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77051         Correct typos: s/or/of/.
77052
77053 2005-03-26  Jim Meyering  <jim@meyering.net>
77054
77055         * modules/check-include-files: Move to ../ and rename to...
77056         * check-module: ...this.
77057
77058 2005-03-25  Jim Meyering  <jim@meyering.net>
77059
77060         * modules/xvasprintf (Files): Add xalloc.h.
77061
77062 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77063
77064         * modules/gettext (Files): config/config.rpath ->
77065         build-aux/config.rpath
77066         * modules/iconv (Files): Likewise.
77067         Problem reported by Oskar Liljeblad.
77068
77069 2005-03-23  Jim Meyering  <jim@meyering.net>
77070
77071         * modules/check-include-files: New script to check for
77072         missing dependencies, multiple includes, etc.
77073
77074         * modules/c-strtold (Depends-on): Add xalloc.
77075         * modules/c-strtod (Depends-on): Add xalloc.
77076         * modules/hash (Depends-on): Add xalloc.
77077         (Files): Remove lib/xalloc.h.
77078
77079         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77080         * modules/userspec (Files): Add lib/inttostr.h.
77081
77082 2005-03-23  Jim Meyering  <jim@meyering.net>
77083
77084         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77085
77086 2005-03-22  Jim Meyering  <jim@meyering.net>
77087
77088         * modules/stat-macros: New module.
77089         * modules/canonicalize, modules/euidaccess, modules/file-type,
77090         * modules/filemode, modules/lchown, modules/makepath,
77091         * modules/rmdir, modules/stat: Depend on new stat-macros module
77092         rather than listing lib/stat-macros.h manually.
77093         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77094
77095 2005-03-22  Jim Meyering  <jim@meyering.net>
77096
77097         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77098
77099 2005-03-22  Bruno Haible  <bruno@clisp.org>
77100
77101         * config/srclist.txt: Replace target directory 'config' with
77102         'build-aux'.
77103         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77104         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77105         ../build-aux/.
77106
77107 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77108
77109         * modules/chdir-long (Depends-on): Add mempcpy.
77110
77111         * modules/acl, modules/backupfile, modules/c-strtod,
77112         modules/c-strtold, modules/canon-host, modules/canonicalize,
77113         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77114         modules/exclude, modules/exitfail, modules/file-type,
77115         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77116         modules/getdate, modules/getline, modules/getpagesize,
77117         modules/getpass, modules/getugroups, modules/group-member,
77118         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77119         modules/inttostr, modules/long-options, modules/makepath,
77120         modules/md5, modules/memcasecmp, modules/memcoll,
77121         modules/modechange, modules/mountlist, modules/path-concat,
77122         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77123         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77124         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77125         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77126         modules/strftime, modules/strndup, modules/strverscmp,
77127         modules/timespec, modules/unlocked-io, modules/userspec,
77128         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77129         modules/yesno:
77130         Remove lib_SOURCES line from Makefile.am section, as this is now
77131         done automatically by the corresponding Autoconf macro.
77132
77133 2005-03-21  Jim Meyering  <jim@meyering.net>
77134
77135         Changes imported from coreutils.
77136
77137         * lib/cycle-check.c: Don't include xalloc.h.
77138
77139         * lib/path-concat.c: Don't include assert.h.
77140         (path_concat): Remove assertion that would have triggered
77141         for ABASE starting with more than one slash.
77142         Reported by Andreas Schwab.
77143
77144         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77145         properly when ABASE is an absolute file name.
77146         Correct the description of this function.
77147         Include <assert.h>.
77148         Add an assertion and a test driver.
77149         This fixes a bug introduced on 2004-07-02.
77150         Andreas Schwab reported the resulting failure of cp --parents:
77151         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77152
77153 2005-03-21  Jim Meyering  <jim@meyering.net>
77154
77155         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77156         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77157
77158 2005-03-21  Jim Meyering  <jim@meyering.net>
77159         and  Paul Eggert  <eggert@cs.ucla.edu>
77160
77161         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77162         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77163         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77164         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77165         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77166         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77167         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77168         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77169         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77170         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77171         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77172         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77173         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77174         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77175         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77176         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77177         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77178         for these modules.
77179
77180 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77181
77182         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77183         (which shouldn't happen), generate nothing instead of returning 0
77184         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77185
77186 2005-03-16  Bruno Haible  <bruno@clisp.org>
77187
77188         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77189         HAVE_LONGLONG_64BIT.
77190
77191 2005-03-16  Bruno Haible  <bruno@clisp.org>
77192
77193         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77194         HAVE_LONGLONG_64BIT.
77195
77196 2005-03-16  Bruno Haible  <bruno@clisp.org>
77197
77198         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77199         HAVE_LONGLONG_64BIT.
77200
77201 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77202
77203         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77204         reliably distinguish strftime failure from empty output on POSIX
77205         hosts.
77206
77207 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77208
77209         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77210         (iconv_string): Don't guess a size-zero buffer, as that might cause
77211         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77212         result would be 'too large', where 'too large' is (heuristically)
77213         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77214         overflow concerns.  This will prevent some unwanted malloc failures
77215         when the inputs are very large.
77216
77217 2005-03-15  Karl Berry  <karl@gnu.org>
77218
77219         * config/srclist.txt (config.rpath): from gettext.
77220         * config/config.rpath: update.
77221
77222 2005-03-15  Bruno Haible  <bruno@clisp.org>
77223
77224         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77225         to 'negate'.
77226
77227         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77228         variable.
77229
77230         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77231         results.
77232
77233 2005-03-14  Simon Josefsson  <jas@extundo.com>
77234
77235         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77236         <fx@gnu.org>.
77237
77238 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77239
77240         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77241         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77242         intprops.h.
77243         * lib/strtol.c: Likewise.
77244
77245 2005-03-14  Jim Meyering  <jim@meyering.net>
77246
77247         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77248         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77249         to be nonzero so that we (and caller) can detect the difference
77250         between a valid zero-length expansion and an error return, even
77251         when the underlying strftime fails before writing anything into
77252         that location.
77253
77254 2005-03-14  Bruno Haible  <bruno@clisp.org>
77255
77256         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77257         Update from GNU gettext 0.14.3.
77258
77259 2005-03-10  Jim Meyering  <jim@meyering.net>
77260
77261         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77262
77263 2005-03-10  Jim Meyering  <jim@meyering.net>
77264
77265         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77266         so that this module works on systems without fchdir.
77267
77268 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77269
77270         Factor int-properties macros into a single file, except for
77271         glibc-related files.
77272         * lib/intprops.h: New file.
77273         * lib/getloadavg.c: Include it instead of limits.h.
77274         (INT_STRLEN_BOUND): Remove.
77275         * lib/human.c: Include intprops.h.
77276         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77277         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77278         302/1000.
77279         * lib/inttostr.h: Include intprops.h instead of limits.h.
77280         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77281         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77282         for consistency with intprops.h.
77283         (time_t_is_integer, twos_complement_arithmetic): Use them.
77284         * lib/sig2str.h: Include <signal.h>, intprops.h.
77285         (INT_STRLEN_BOUND): Remove.
77286         * lib/strftime.c (TYPE_SIGNED): Remove.
77287         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77288         * lib/strtol.c: Adjust comments to match intprops.h.
77289         * lib/userspec.c: Include intprops.h.
77290         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77291         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77292         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77293         instead of rolling our own expressions.
77294         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77295
77296         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77297         instead of int.
77298         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77299         the right thing even if adding 1900 would overflow.  Similarly
77300         for tm_mon + 1 and tm_yday + 1.
77301         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77302         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77303         (DO_SIGNED_NUMBER): New macro.
77304         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77305
77306 2005-03-07  Bruno Haible  <bruno@clisp.org>
77307
77308         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77309
77310 2005-03-07  Bruno Haible  <bruno@clisp.org>
77311
77312         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77313
77314 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77315
77316         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77317         (func_import): Only replace files via --import when they have actually
77318         changed.
77319
77320 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77321
77322         * m4/mmap-anon.m4: New file.
77323         * m4/pagealign_alloc.m4: New file.
77324
77325 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77326             Bruno Haible  <bruno@clisp.org>
77327
77328         * modules/pagealign_alloc: New file.
77329         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77330
77331 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77332             Bruno Haible  <bruno@clisp.org>
77333
77334         * lib/pagealign_alloc.h: New file.
77335         * lib/pagealign_alloc.c: New file.
77336
77337 2005-03-03  Bruno Haible  <bruno@clisp.org>
77338
77339         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77340         Use an all-permissive copyright notice, recommended by RMS.
77341
77342 2005-03-02  Bruno Haible  <bruno@clisp.org>
77343
77344         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77345         of AIX, the replacement has to be done only after <string.h> is
77346         included, therefore not in config.h. stpncpy.h does the replacement,
77347         and stpncpy.c uses it.
77348
77349 2005-03-02  Bruno Haible  <bruno@clisp.org>
77350
77351         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77352         stpncpy.c uses it.
77353
77354 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77355
77356         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
77357         The workaround isn't strictly needed for POSIX conformance, and
77358         it's too much of a pain to configure and maintain.  We'll ask
77359         people to fix their kernels instead.
77360         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
77361         (NANOSLEEP_BUG_WORKAROUND): Remove.
77362         (xnanosleep): Remove the workaround.
77363
77364 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77365
77366         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
77367         Reported by Derek Price.
77368         (Include): Add "timespec.h".
77369
77370         * modules/xnanosleep (Depends-on): Remove gethrxtime.
77371
77372 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77373
77374         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
77375         to detect nanosleep bug.
77376
77377 2005-03-01  Bruno Haible  <bruno@clisp.org>
77378
77379         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
77380
77381 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77382
77383         * modules/gethrxtime: New file.
77384         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
77385         (Depends-on): Add gethrxtime.
77386         (configure.ac): Add gl_XNANOSLEEP.
77387         (Makefile.am): Remove lib_SOURCES line.
77388
77389 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77390
77391         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
77392         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
77393
77394 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77395
77396         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
77397         * lib/timespec.h (gettime): Return void, since it always
77398         succeeds now.  All uses changed.
77399         * lib/gettime.c (gettime): Likewise.
77400         [HAVE_NANOTIME]: Prefer nanotime.
77401         Assume gettimeofday succeeds, as POSIX requires.
77402         Assime time () succeeds, since other code already does.
77403         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
77404         (timespec_subtract): Remove.
77405         (NANOSLEEP_BUG_WORKAROUND): New constant.
77406         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
77407         things considerably.  Use it only on GNU/Linux hosts, since the
77408         workaround shouldn't be needed elsewhere.
77409
77410 2005-02-24  Bruno Haible  <bruno@clisp.org>
77411
77412         * modules/gettext (Files): Add m4/glibc2.m4.
77413
77414 2005-02-24  Bruno Haible  <bruno@clisp.org>
77415
77416         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
77417         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
77418         * m4/progtest.m4:
77419         Update from GNU gettext 0.14.2.
77420         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
77421
77422 2005-02-24  Bruno Haible  <bruno@clisp.org>
77423
77424         * lib/localcharset.c: Update from GNU gettext 0.14.2.
77425         * lib/config.charset: Update from GNU gettext 0.14.2.
77426
77427 2005-02-24  Bruno Haible  <bruno@clisp.org>
77428
77429         * lib/gettext.h: Update from GNU gettext 0.14.2.
77430
77431 2005-02-23  Simon Josefsson  <jas@extundo.com>
77432
77433         * m4/iconvme.m4: New file.
77434
77435 2005-02-23  Jim Meyering  <jim@meyering.net>
77436
77437         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
77438         change.
77439         Thanks to Bruno Haible for catching it.
77440
77441 2005-02-22  Simon Josefsson  <jas@extundo.com>
77442
77443         * modules/iconvme: New file.
77444
77445         * MODULES.html.sh: Add iconvme.
77446
77447 2005-02-22  Simon Josefsson  <jas@extundo.com>
77448
77449         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
77450
77451 2005-02-22  Simon Josefsson  <jas@extundo.com>
77452
77453         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77454
77455 2005-02-22  Jim Meyering  <jim@meyering.net>
77456
77457         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77458         s/ifndef/ifdef/.
77459
77460 2005-02-20  Neil Conway  <neilc@samurai.com>
77461
77462         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77463         returned by OSX/Darwin if the specified buffer is not large
77464         enough for the hostname.
77465
77466 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77467
77468         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77469         pass it to _help, otherwise the latter coredumps trying to
77470         dereference state.root_argp.
77471
77472 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77473
77474         * modules/chdir-long (Depends-on): Add memrchr.
77475         * modules/memrchr (Files): Add lib/memrchr.h.
77476         (Include): "memrchr.h".
77477
77478 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77479
77480         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77481
77482 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77483
77484         * lib/memrchr.h: New file.
77485         * lib/chdir-long.c: Include it.
77486         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
77487         Don't bother including stddef.h.
77488
77489 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
77490
77491         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
77492         inclusion.
77493         Include <sys/types.h>, for dev_t.
77494         (ME_DUMMY, ME_REMOTE): Move from here....
77495         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
77496         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
77497         Dmitry V. Levin.
77498         Include mountlist.h first, to test the interface.
77499
77500 2005-01-29  Bruno Haible  <bruno@clisp.org>
77501
77502         * lib/progname.c (program_name): Initialize.
77503         Needed when linking statically on MacOS X.
77504
77505 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77506
77507         Sync from coreutils.
77508         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
77509         (Depends-on): Add c-strtod.
77510         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
77511
77512 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77513
77514         Sync from coreutils.
77515         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
77516
77517         Remove files that are specific to coreutils.
77518         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
77519
77520 2005-01-28  Bruno Haible  <bruno@clisp.org>
77521
77522         * modules/javacomp: New file.
77523         * MODULES.html.sh (Java): Add javacomp.
77524
77525 2005-01-28  Bruno Haible  <bruno@clisp.org>
77526
77527         * m4/javacomp.m4: New file, from GNU gettext.
77528
77529 2005-01-28  Bruno Haible  <bruno@clisp.org>
77530
77531         * lib/javacomp.sh.in: New file, from GNU gettext.
77532         * lib/javacomp.h: New file, from GNU gettext.
77533         * lib/javacomp.c: New file, from GNU gettext.
77534
77535 2005-01-26  Simon Josefsson  <jas@extundo.com>
77536
77537         * lib/gai_strerror.c: Use GPL in header.
77538
77539 2005-01-26  Bruno Haible  <bruno@clisp.org>
77540
77541         * modules/javaexec: New file.
77542         * MODULES.html.sh (Java): Add javaexec.
77543
77544 2005-01-26  Bruno Haible  <bruno@clisp.org>
77545
77546         * m4/javaexec.m4: New file, from GNU gettext.
77547
77548 2005-01-26  Bruno Haible  <bruno@clisp.org>
77549
77550         * lib/javaexec.sh.in: New file, from GNU gettext.
77551         * lib/javaexec.h: New file, from GNU gettext.
77552         * lib/javaexec.c: New file, from GNU gettext.
77553
77554 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77555
77556         * modules/lchown (Depends-on): Remove lchown.h
77557
77558 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77559
77560         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
77561         must be defined if the header file was not found, in order
77562         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
77563
77564 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77565
77566         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
77567         initializers for struct pentry_state.
77568         (__argp_error): Check return value of __asprintf
77569         (__argp_failure): Translate error message
77570
77571         * lib/argp-parse.c: Removed braces around the expansion of N_()
77572
77573 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77574
77575         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
77576         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
77577         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
77578         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
77579         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
77580         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
77581         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
77582         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
77583         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
77584         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
77585         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
77586         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
77587         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
77588         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
77589         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
77590         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
77591         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
77592         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
77593         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
77594         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
77595         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
77596         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
77597         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
77598         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
77599         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
77600         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
77601         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
77602         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
77603         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
77604         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
77605         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
77606         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
77607         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
77608         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
77609         xstrtol.m4, xstrtoumax.m4, yesno.m4:
77610         Use an all-permissive copyright notice, recommended by RMS.
77611
77612 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
77613
77614         * modules/chdir-long (Depends-on): Remove mempcpy.
77615
77616 2005-01-21  Jim Meyering  <jim@meyering.net>
77617
77618         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
77619         same value as for Solaris 9.
77620
77621         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
77622         component length.  This included changing the parameter to be
77623         of type `char *' rather than `char const *'.
77624         * lib/chdir-long.h (chdir_long): Update prototype.
77625
77626         * lib/openat.c (fdopendir, fstatat): New functions.
77627         * lib/openat.h: Include headers required for use of DIR and struct
77628         stat.
77629         [AT_SYMLINK_NOFOLLOW]: Define.
77630         (fdopendir, fstatat): Add prototypes.
77631
77632 2005-01-21  Bruno Haible  <bruno@clisp.org>
77633
77634         * modules/classpath: New file.
77635         * MODULES.html.sh (Java): Add classpath.
77636
77637 2005-01-21  Bruno Haible  <bruno@clisp.org>
77638
77639         * lib/classpath.h: New file, from GNU gettext.
77640         * lib/classpath.c: New file, from GNU gettext.
77641
77642 2005-01-20  Simon Josefsson  <jas@extundo.com>
77643
77644         * modules/version-etc-fsf: New file.
77645
77646 2005-01-20  Simon Josefsson  <jas@extundo.com>
77647
77648         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
77649         * lib/version-etc.c: Remove version_etc_copyright.
77650         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
77651         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
77652
77653 2005-01-20  Simon Josefsson  <jas@extundo.com>
77654
77655         * lib/base64.h (isbase64): Add.
77656
77657         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
77658         using a unsigned prototype, don't inline.
77659         (base64_decode): Use it.
77660
77661 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77662
77663         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
77664         it.
77665
77666 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77667
77668         * lib/save-cwd.c (save_cwd): Remove code to support the case
77669         where fchdir is missing or flaky.
77670
77671 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77672
77673         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
77674
77675 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
77676
77677         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
77678         AC_LIBSOURCES now does this.
77679         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
77680         with new ullong_max module.
77681
77682 2005-01-19  Bruno Haible  <bruno@clisp.org>
77683
77684         * modules/sh-quote: New file.
77685         * MODULES.html.sh (Executing programs): Add sh-quote.
77686
77687 2005-01-19  Bruno Haible  <bruno@clisp.org>
77688
77689         * lib/sh-quote.h: New file, from GNU gettext.
77690         * lib/sh-quote.c: New file, from GNU gettext.
77691
77692 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77693
77694         Merge from coreutils.
77695         * m4/ullong_max.m4: New file.
77696         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
77697         (gl_MACROS): Assume localeconv exists.
77698
77699 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77700
77701         Merge changes from coreutils, as described below in several
77702         changelogs dated today.
77703
77704         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
77705         (O_DIRECTORY): Remove; not needed here, since "." must be
77706         a directory.  All uses removed.
77707         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
77708         universal on Suns, and we also need to test for IRIX.
77709         Revamp code to use 'if' rather than '#if'.
77710         Avoid unnecessary comparison of cwd->desc to 0.
77711
77712         * lib/utimens.c (futimens): Robustify the previous patch, by checking
77713         for known valid error numbers rather than observed invalid ones.
77714
77715 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77716
77717         * modules/ullong_max: New file.
77718
77719         * modules/chdir-long, modules/openat: New files.
77720         * modules/save-cwd (Depends-on): Depend on chdir-long.
77721         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
77722
77723 2005-01-18  Jim Meyering  <jim@meyering.net>
77724
77725         Merge from coreutils.
77726         * m4/chdir-long.m4, m4/openat.m4: New files.
77727         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
77728         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
77729         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
77730         is sane and DOES follow symlinks.  Besides, testing 20 different
77731         systems found no broken chown implementations.
77732         Prompted by a change in rsync's copy of this macro.
77733         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
77734
77735         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
77736
77737         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
77738         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
77739         NULL-means-set-to-current-time semantics.
77740         Remove temporary file immediately, rather than waiting
77741         for configure's at-exit trap code to do it.
77742
77743 2005-01-18  Jim Meyering  <jim@meyering.net>
77744
77745         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77746
77747         * lib/utimens.c (futimens): Account for the fact that futimes
77748         can also fail with errno == ENOSYS or errno == ENOENT.
77749         Patch from Dmitry V. Levin.
77750
77751         Change the name of the robust chdir function from chdir to chdir_long.
77752         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
77753         (restore_cwd): Use chdir_long, not chdir.
77754         * lib/chdir-long.c: Renamed from chdir.c.
77755         * lib/chdir-long.h: Renamed from chdir.h.
77756         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
77757         Hurd.
77758
77759 2005-01-18  Bruno Haible  <bruno@clisp.org>
77760
77761         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
77762         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
77763         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
77764         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
77765         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
77766         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
77767         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
77768         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
77769         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
77770         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
77771         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
77772         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
77773         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
77774         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
77775         Use an all-permissive copyright notice, recommended by RMS.
77776
77777 2005-01-18  Bob Proulx  <bob@proulx.com>
77778
77779         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
77780         simplify offsetof() macro construct to avoid compile failure with
77781         native HP-UX 11.0 ANSI C compiler.
77782
77783 2005-01-17  Bruno Haible  <bruno@clisp.org>
77784
77785         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
77786         redundant because stpncpy.m4 takes care of it.
77787
77788 2005-01-17  Bruno Haible  <bruno@clisp.org>
77789
77790         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
77791
77792 2005-01-17  Bruno Haible  <bruno@clisp.org>
77793
77794         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
77795         used.
77796
77797 2005-01-17  Bruno Haible  <bruno@clisp.org>
77798
77799         * lib/fwriteerror.h (fwriteerror): Change specification to include
77800         fclose.
77801         * lib/fwriteerror.c: Include <stdbool.h>.
77802         (fwriteerror): At the end, close the file stream. Record whether
77803         stdout was already closed.
77804
77805 2005-01-17  Bruno Haible  <bruno@clisp.org>
77806
77807         * lib/execute.c (environ): Declare if needed.
77808         * lib/pipe.c (environ): Likewise.
77809         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
77810
77811 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77812
77813         * modules/argp: Depend on vsnprintf
77814
77815 2005-01-10  Jim Meyering  <jim@meyering.net>
77816
77817         * modules/closeout (Depends-on): Add atexit.
77818
77819 2005-01-06  Bruno Haible  <bruno@clisp.org>
77820
77821         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
77822
77823 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77824
77825         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
77826         definitions to be after all include files, to avoid collisions.
77827         Problem reported by Bob Proulx.
77828
77829 2005-01-04  Jim Meyering  <jim@meyering.net>
77830
77831         Changes imported from coreutils.
77832         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
77833         as the mkstemp template, use a temporary directory and an
77834         8.3-friendly template to avoid trouble on systems like DJGPP.
77835         Reported by Juan M. Guerrero via Stepan Kasal.
77836         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
77837         close. Remove the temporary directory right away, rather than waiting
77838         for configure's at-exit trap code to do it.
77839         Suggestion from Stepan Kasal.
77840
77841 2005-01-01  Simon Josefsson  <jas@extundo.com>
77842
77843         * gnulib-tool: Print #include directives when --import'ing.
77844
77845 2004-12-28  Simon Josefsson  <jas@extundo.com>
77846
77847         * tests/test-base64.c: Include required header files.  Remove
77848         unused variables.
77849
77850 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77851
77852         * modules/error (Depends-on): Remove gettext.
77853
77854 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77855
77856         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
77857         not needed.  This removes a dependency on the gettext module.
77858         [defined _LIBC]: Do not include <libintl.h>; not needed.
77859
77860 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77861
77862         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
77863         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
77864
77865 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77866
77867         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
77868         HAVE_DECL_STRTOLD.
77869
77870 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77871
77872         * modules/getdate (Depends-on): Remove alloca-opt.
77873
77874 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77875
77876         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
77877
77878 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77879
77880         * lib/argp-parse.c: Include <stddef.h>.
77881         (alignof, alignto): New macros.
77882         (parser_init): Don't assume that void * is aligned sufficiently
77883         for struct option.
77884
77885         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
77886         need to extend the stack.
77887         (YYINITDEPTH): New macro, so that the initial stack isn't overly
77888         large.
77889
77890 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77891
77892         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
77893
77894 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77895
77896         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
77897         (2004-10-24) change.  Apparently this was a false alarm.
77898
77899         * modules/getdate: Depend on alloca-opt, not alloca.
77900
77901 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77902
77903         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
77904         Remove now-obsolete comment about AIX.
77905         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
77906         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
77907         (YYMAXDEPTH): New macro.
77908
77909 2004-12-18  Simon Josefsson  <jas@extundo.com>
77910
77911         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
77912
77913 2004-12-18  Bruno Haible  <bruno@clisp.org>
77914
77915         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
77916
77917 2004-12-18  Bruno Haible  <bruno@clisp.org>
77918
77919         * lib/fatal-signal.c (fatal_signals): Make non-const.
77920         (init_fatal_signals): New function.
77921         (uninstall_handlers, install_handlers): Ignore signals that were set to
77922         SIG_IGN.
77923         (at_fatal_signal): Call init_fatal_signals.
77924         (init_fatal_signal_set): Likewise. Ignore signals that were set to
77925         SIG_IGN.
77926         Reported by Paul Eggert.
77927
77928 2004-12-18  Bruno Haible  <bruno@clisp.org>
77929
77930         * doc/alloca.texi: New file.
77931         * doc/alloca-opt.texi: New file.
77932
77933 2004-12-17  Jim Meyering  <jim@meyering.net>
77934
77935         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
77936         Otherwise, install-sh could exit with improper exit status when
77937         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
77938
77939 2004-12-16  Simon Josefsson  <jas@extundo.com>
77940
77941         * tests/test-base64.c: Add license.
77942
77943 2004-12-15  Stepan Kasal  <address@hidden>
77944
77945         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
77946
77947 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
77948
77949         * modules/getcwd (Files): Add m4/d-ino.m4.
77950         Suggested by Mark D. Baushke.
77951
77952 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77953
77954         * lib/getdate.y (textint): New member "negative".
77955         (time_zone_hhmm): New function.
77956         Expect 14 shift-reduce conflicts, not 13.
77957         (o_colon_minutes): New rule.
77958         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
77959         (yylex): Set the "negative" member of signed numbers.
77960
77961 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77962
77963         * doc/getdate.texi (Time of day items, Time zone items):
77964         Describe new formats +00:00, UTC+00:00.
77965
77966 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77967
77968         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
77969         spurious "-l"s.  Problem reported by Stepan Kasal.
77970
77971 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
77972
77973         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
77974         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
77975
77976 2004-12-04  Simon Josefsson  <jas@extundo.com>
77977
77978         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
77979         Vandoorselaere <yoann@prelude-ids.org>.
77980
77981 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77982
77983         Changes imported from coreutils.
77984         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
77985         exist.
77986         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
77987
77988 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77989
77990         Changes imported from coreutils.
77991         * lib/hard-locale.c: Assume <locale.h> exists.
77992         Include "strdup.h".
77993         (GLIBC_VERSION): New macro.
77994         (hard_locale): Assume setlocale exists.
77995         Rewrite to avoid #ifdef.
77996         Use strdup rather than malloc + strcpy.
77997         * lib/human.c: Assume <locale.h> exists.
77998         (human_readable): Assume localeconv exists.
77999
78000 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78001
78002         * modules/hard-locale (Depends-on): Add strdup.
78003
78004 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78005
78006         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78007         convert T2, not T.  (Imported from libc.)
78008
78009 2004-11-30  Simon Josefsson  <jas@extundo.com>
78010
78011         * modules/restrict (License): Change to LGPL.
78012
78013 2004-11-30  Simon Josefsson  <jas@extundo.com>
78014
78015         * m4/restrict.m4: Add copyright and copying conditions.
78016
78017 2004-11-30  Simon Josefsson  <jas@extundo.com>
78018
78019         * m4/base64.m4: New file.
78020
78021 2004-11-30  Simon Josefsson  <jas@extundo.com>
78022
78023         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78024         base64.
78025
78026         * tests/test-base64.c: New file.
78027
78028         * modules/base64: New file.
78029
78030 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78031
78032         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78033         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78034
78035         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78036
78037 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78038
78039         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78040         (__getcwd.c): Don't restore errno; glibc doesn't.
78041         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78042         first, falling back to our code only if its results look suspicious.
78043         Ensure that the resulting buffer is only as large as necessary.
78044
78045         * lib/readutmp.c: Include readutmp.h first.
78046         Include <errno.h>, since readutmp.h no longer does that.
78047         * lib/readutmp.h: Don't include <errno.h>,
78048         <sys/param.h>, <time.h>; not needed to establish interface.
78049         (errno): Remove decl.
78050         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78051         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78052         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78053
78054 2004-11-28  Simon Josefsson  <jas@extundo.com>
78055
78056         * lib/base64.h, base64.c: New file.
78057
78058 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78059
78060         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78061
78062 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78063
78064         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78065         (Depends-on): Remove pathmax, same.  Add mempcpy.
78066         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78067         (Makefile.am): Append getcwd.h to lib_SOURCES.
78068         (Include): Add getcwd.h.
78069         (Maintainer): Change from Jim Meyering to "all, glibc",
78070         since getdate now uses intended-for-glibc code.
78071         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78072         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78073
78074 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78075
78076         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78077         HP's ANSI C compiler.
78078         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78079         Declaring int functions causes warnings on some modern systems and
78080         shouldn't be needed to compile on ancient ones.
78081         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78082         defined.
78083
78084         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78085         with the following changes.
78086         (__set_errno): Parenthesize properly.
78087         Include <stdbool.h>.
78088         (MIN, MAX, MATCHING_INO): New macros.
78089         (__getcwd): Define with prototype, not K&R form.
78090         Use heuristics to allocate default buffer on stack if possible.
78091         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78092         behavior, and to avoid the PATH_MAX limit when computing
78093         ../../../../...
78094         Use MATCHING_INO to compare inode number to file.
78095         Check for arithmetic overflow in size calculations.
78096         Fix bug in reallocation of dot array that caused getcwd to fail
78097         on directories nested deeper than 75.
78098         Be more careful about saving errno on error.
78099         Do not use realloc; use only free+malloc, as this is a bit
78100         more flexible and avoids a needless copy operation.
78101         Do not inspect st_dev and st_ino for symbolic links; POSIX
78102         doesn't specify the latter.
78103         Check for closedir errors.
78104         Avoid needless casts.
78105         Use "#ifdef weak_alias" around weak_alias, to be like other
78106         glibc code.
78107         The following changes to getcwd.c have effect only when used in
78108         gnulib; they have no effect inside glibc proper.
78109         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78110         as alloca isn't used.
78111         (alloca, __alloca): Likewise.
78112         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78113         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78114         unconditionally, as gnulib assumes C89 or better.
78115         Do not include <sys/param.h>.
78116         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78117         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78118         better.
78119         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78120         Include <dirent.h> in a way that is compatible with modern Autoconf.
78121         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78122         New macros, if not already defined.
78123         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78124         Use "_LIBC", not "defined _LIBC", for consistency.
78125         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78126         a mempcpy module.
78127         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78128         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78129         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78130         credit only to Jim Meyering and adjust the copyright dates.
78131         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78132         <stdlib.h>, <unistd.h>, "pathmax.h".
78133         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78134         (INITIAL_BUFFER_SIZE): Remove.
78135         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78136
78137 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78138
78139         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78140         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78141         Use the _ONCE methods, for efficiency.
78142         Check for fcntl.h.  In test program, include <errno.h>
78143         and <fcntl.h> if available.  Remove old K&R cruft from
78144         test program.  Check for common errors in GNU/Linux,
78145         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78146         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78147         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78148         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78149         name accordingly.
78150         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78151         accommodate new getcwd.c.
78152         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78153         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78154         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78155         that's all we need now.
78156
78157 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78158
78159         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78160         argp-parse.c depends on getopt internals, that means we should
78161         always use our getopt, to be on the safe side.
78162         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78163         order not to spoil the result of an eventual previous invocation
78164         of gl_GETOPT_SUBSTITUTE.
78165
78166 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78167
78168         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78169         redefinition warnings. To avoid them, include the defines
78170         in `#if !defined __need_getopt ... #endif'. The only place
78171         where __getopt_argv_const is used is in definitions
78172         of getopt_long and getopt_long_only below, which are as well
78173         protected by `#ifndef __need_getopt'.
78174         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78175         __need_getopt after including <stdio.h> and <unistd.h> These
78176         headers might have defined it.
78177
78178 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78179
78180         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78181
78182 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78183
78184         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78185         (futimens): New function, which uses futimes if available.
78186         (futimens, utimens): Support timespec==NULL, with same semantics
78187         as utime and utimens.
78188         * lib/utimens.h (futimens): New decl.
78189
78190 2004-11-23  Jim Meyering  <jim@meyering.net>
78191
78192         * lib/getopt_.h: Remove trailing blanks.
78193
78194 2004-11-23  Jim Meyering  <jim@meyering.net>
78195
78196         * lib/__fpending.c: Add comment.
78197
78198 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78199
78200         * modules/canonicalize (Depends-on): Add xreadlink.
78201         Problem reported by James Youngman.
78202
78203 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78204
78205         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78206         New macros.
78207         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78208         optopt): Use them instead of invoking ## directly; otherwise, the
78209         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78210
78211 2004-11-19  Bruno Haible  <bruno@clisp.org>
78212
78213         * lib/strtok_r.c: Move comments from here...
78214         * lib/strtok_r.h: ... to here.
78215
78216 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78217
78218         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78219         implementations that mishandle size_t overflow.
78220
78221 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78222
78223         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78224         might fail.  Problem reported by Yoann Vandoorselaere.
78225         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78226         implementations that mishandle size_t overflow.
78227
78228 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78229
78230         * modules/canon-host (Depends-on): Add strdup.
78231
78232 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78233
78234         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78235
78236 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78237
78238         * lib/canon-host.c: Include "strdup.h".
78239         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78240         Use strdup instead of malloc/strcpy to duplicate strings.
78241
78242         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78243         (human_space_before_unit): New constant.
78244         * lib/human.c (human_readable): Support it.
78245
78246         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78247         (xgetcwd): Set errno correctly when failing.
78248         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78249         the failure is actually due to a PATH_MAX problem.
78250
78251         Further getopt changes to make it more likely that glibc will
78252         buy the changes back.
78253         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78254         (getopt): Use it, so to preserve glibc semantic
78255         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78256         when compiling for libc.
78257         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78258         (getopt_long, getopt_long_only): Use it.
78259
78260         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78261         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78262         (getopt): Argv is now char * const *, as per standard.
78263         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78264         not char *__getopt_argv_const *.
78265         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78266         _getopt_long_only_r): Likewise.
78267         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78268         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78269         _getopt_long_r, _getopt_long_only_r): Likewise.
78270         * lib/getopt_.h (__getopt_argv_const): Remove.
78271         (getopt): Argv is now char * const *, as per standard.
78272
78273         * lib/getdate.y (tORDINAL): New token.
78274         (day, relunit): Allow it for relative times.
78275         (relative_time_table): Use tORDINAL for ordinals.
78276
78277 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78278
78279         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78280         Document that "second" isn't allowed as an ordinal number.
78281
78282 2004-11-16  Jim Meyering  <jim@meyering.net>
78283
78284         * modules/closeout (Depends-on): Add fpending.
78285
78286 2004-11-15  Jim Meyering  <jim@meyering.net>
78287
78288         * lib/closeout.c: Include "__fpending.h" once again.
78289         Include <stdbool.h>.
78290         (close_stdout): Don't fail just because stdout was closed initially,
78291         since some programs don't write to stdout in the normal course of
78292         operation (other than --version and --help), and we don't want this
78293         function to make e.g. `touch file >&-' fail.
78294         But do fail if it was closed and someone has tried to write to it.
78295         E.g., `printf foo >&-' must fail.
78296
78297 2004-11-13  Jim Meyering  <jim@meyering.net>
78298
78299         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78300
78301 2004-11-12  Simon Josefsson  <jas@extundo.com>
78302
78303         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78304         small doc fix is still pending.
78305
78306 2004-11-11  Simon Josefsson  <jas@extundo.com>
78307
78308         * modules/strtok_r: New file.
78309
78310         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78311         strtok_r.
78312
78313 2004-11-11  Simon Josefsson  <jas@extundo.com>
78314
78315         * m4/strtok_r.m4: New file.
78316
78317         * m4/getopt.m4: Replace opterr.
78318
78319 2004-11-11  Simon Josefsson  <jas@extundo.com>
78320
78321         * lib/strtok_r.h, strtok_r.c: New file.
78322
78323 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78324
78325         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78326         of replacing opterr, getopt, etc.  This should handle the
78327         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78328
78329 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78330
78331         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78332         we can stop lying to compilers about the constness of argv when we
78333         are compiled outside glibc.
78334         (getopt, getopt_long, getopt_long_only): Use it.
78335         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78336         _getopt_internal, getopt): Likewise.
78337         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78338         _getopt_long_only_r): Likewise.
78339         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78340         _getopt_long_r, _getopt_long_only_r): Likewise.
78341
78342         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78343         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78344         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78345         the other external symbols.
78346         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78347         declaration, since the above renaming now works around collisions.
78348
78349 2004-11-11  Jim Meyering  <jim@meyering.net>
78350
78351         * lib/linebreak.c: Remove trailing blanks.
78352         * lib/alloca_.h: Likewise.
78353         * lib/acosl.c: Likewise.
78354         * lib/euidaccess.c: Likewise.
78355         * lib/allocsa.h: Likewise.
78356
78357 2004-11-10  Simon Josefsson  <jas@extundo.com>
78358
78359         * m4/getaddrinfo.m4: New file.
78360
78361 2004-11-10  Simon Josefsson  <jas@extundo.com>
78362
78363         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
78364
78365 2004-11-10  Simon Josefsson  <jas@extundo.com>
78366
78367         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78368         getaddrinfo.
78369
78370         * modules/getaddrinfo: New file.
78371
78372 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78373
78374         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
78375
78376 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78377
78378         * lib/mktime.c (SHR): New macro, which is a portable
78379         substitute for >> that should work even on Crays.
78380         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
78381         Problem reported by Mark D. Baushke in
78382         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
78383         * lib/getdate.y (SHR): Likewise.
78384         (tm_diff): Use it.
78385         * lib/strftime.c (SHR): Likewise.
78386         (tm_diff): Use it.
78387         * lib/quotearg.c (struct quoting_options): Use unsigned int for
78388         quote_these_too, so that right shifts are well defined.  All uses
78389         changed.
78390
78391 2004-11-10  Jim Meyering  <jim@meyering.net>
78392
78393         Ensure that no close failure goes unreported.
78394         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
78395         return early when it seems there's nothing to flush.
78396         Don't include __fpending.h.
78397
78398 2004-11-10  Jim Meyering  <jim@meyering.net>
78399
78400         * modules/closeout (Depends-on): Remove fpending.
78401
78402 2004-11-10  Jim Meyering  <jim@meyering.net>
78403
78404         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
78405
78406 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78407
78408         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
78409         gl_FUNC_STRFTIME.
78410         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
78411         and AC_REQUIRE when possible, to avoid duplicate checks.
78412         Check for <wchar.h>.
78413
78414 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78415
78416         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
78417
78418 2004-11-09  Bruno Haible  <bruno@clisp.org>
78419
78420         * m4/sockpfaf.m4: New file.
78421
78422 2004-11-05  Bruno Haible  <bruno@clisp.org>
78423
78424         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
78425         Reported by Mark D. Baushke <mdb@cvshome.org>.
78426
78427 2004-11-04  Bruno Haible  <bruno@clisp.org>
78428
78429         2004-09-11  Bruno Haible  <bruno@clisp.org>
78430                 * allocsa.valgrind: New file.
78431         2004-02-06  Bruno Haible  <bruno@clisp.org>
78432                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
78433                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
78434                 Reported by Christopher Seip <chris.seip@hp.com>.
78435
78436 2004-11-04  Bruno Haible  <bruno@clisp.org>
78437
78438         * modules/allocsa (Files): Add lib/allocsa.valgrind.
78439         (Makefile.am): Distribute it.
78440
78441 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
78442
78443         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
78444         with errno == ERANGE if the buffer is too small.
78445         Problem reported by Mark D. Baushke.
78446
78447 2004-11-03  Albert Chin  <china@thewrittenword.com>
78448             Paul Eggert  <eggert@cs.ucla.edu>
78449
78450         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
78451         equivalent, substitute $ac_type for equivalent type rather than
78452         blindly using uint32_t *always* which won't work if uint32_t is not
78453         available.  Define _UINT32_T to work around typedef of uint32_t if
78454         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78455         2.5.1.
78456
78457 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78458
78459         * m4/jm-macros.m4: Sync from coreutils.
78460         (gl_MACROS): Check for mbrlen, for pathchk.
78461         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78462
78463 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78464
78465         * lib/xreadlink.c (MAXSIZE): New macro.
78466         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78467         size does not exceed MAXSIZE.  Avoid cast.
78468         As suggested by Mark D. Baushke in
78469         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78470         if readlink fails with buffer size just under MAXSIZE, try again
78471         with MAXSIZE.
78472
78473 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78474
78475         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78476
78477 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78478         and  Paul Eggert  <eggert@cs.ucla.edu>
78479
78480         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78481         (get_date): Overparenthesize to avoid GCC warning.
78482
78483 2004-11-02  Bruno Haible  <bruno@clisp.org>
78484
78485         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
78486         returns void.
78487
78488 2004-11-02  Bruno Haible  <bruno@clisp.org>
78489
78490         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
78491         function returns void.
78492
78493 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78494
78495         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
78496         fflush_unlocked, flockfile, funlockfile, funlockfile,
78497         fputs_unlocked, putc_unlocked.
78498
78499 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78500
78501         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78502         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
78503         already declared.
78504
78505 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78506
78507         * modules/getdate (Files): Add doc/getdate.texi.
78508         (Depends-on): Add setenv, xalloc.
78509
78510 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78511
78512         * lib/getdate.y: Add support for TZ="foo" within a date string.
78513         Fix some bugs near time_t boundaries.  Reject dates with
78514         out-of-range components, e.g., "Sept 31".
78515         Include <stdlib.h>, "setenv.h", "xalloc.h".
78516         (ISDIGIT_LOCALE): Remove; unused.
78517         Note that the TZ and time functions used here are not reentrant.
78518         (mktime_ok, get_tz): New functions.
78519         (TZBUFSIZE): New constant.
78520         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
78521         This requires that we sometimes generate our own TZ="XXX..." setting.
78522
78523 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78524
78525         * doc/getdate.texi: New file, from coreutils with modifications for
78526         the new TZ parsing.
78527
78528 2004-10-27  Derek R. Price  <derek@ximbiot.com>
78529
78530         * lib/mktime.c (not_equal_tm): Remove redundant check.
78531
78532 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78533
78534         * modules/regex (lib_SOURCES): Add regex.c.
78535         Reported by James Youngman in
78536         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
78537
78538 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78539
78540         * lib/getdate.y: Use Bison 1.875 features, and some minor
78541         code cleanups.  This change does not affect semantics.
78542         Don't include <stdlib.h>; no longer needed.
78543         Don't include unlocked-io.h; only the "#if TEST" code uses
78544         stdio, and performance isn't crucial there.
78545         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
78546         Bison 1.875 features as described below.
78547         All uses of "PC." replaced by "pc->".
78548         (YYSTYPE): Add a forward declaration.
78549         (yylex, yyerror): Use full prototypes in forward decls.
78550         Use "%pure-parser" rather than obsolescent "%pure_parser".
78551         Use %parse-param and %lex-param instead of obsolescent
78552         YYPARSE_PARAM and YYLEX_PARAM.
78553         (meridian_table, month_and_day_table, time_units_table,
78554         relative_time_table, time_zone_table, military_table,
78555         lookup_zone, lookup_word, get_date):
78556         Use NULL instead of 0 where appropriate.
78557         (to_hour): Avoid abort (), to avoid a dependency on
78558         stdlib.h.
78559         (yyerror, yylex): Now accepts parser_control * arg.
78560         (main) [TEST]: Use '\0' rather than 0 for char.
78561
78562 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78563
78564         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
78565
78566 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78567
78568         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
78569         It's now the caller's responsibility to handle the case where
78570         !HAVE_GETPAGESIZE && !defined getpagesize.
78571
78572         * lib/mktime.c (leapyear): Arg is long int, not int.
78573
78574 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
78575
78576         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
78577
78578 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78579
78580         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
78581         missing.  Problem reported by James Youngman.
78582
78583 2004-10-16  Simon Josefsson  <jas@extundo.com>
78584
78585         * gnulib-tool: Fix comments.  Fix parse problem.
78586         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
78587
78588 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
78589
78590         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
78591         implementation of getopt_long.  Problem reported by Alexander Taler in:
78592         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
78593
78594 2004-10-15  Bruno Haible  <bruno@clisp.org>
78595
78596         * gnulib-tool: Untabify. Initialize supplied_libname.
78597         (func_usage): More homogenous output.
78598         (func_modules_transitive_closure, func_modules_to_filelist,
78599         func_emit_lib_Makefile_am): New functions.
78600         (func_import): New function, extracted from big case statement. Use
78601         func_get_license, func_modules_transitive_closure,
78602         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
78603         opt_lgpl. Don't use test -a, as it's not portable.
78604         (func_create_testdir): Use func_modules_transitive_closure,
78605         func_modules_to_filelist, func_emit_lib_Makefile_am.
78606
78607 2004-10-15  Bruno Haible  <bruno@clisp.org>
78608
78609         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
78610
78611 2004-10-15  Bruno Haible  <bruno@clisp.org>
78612
78613         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
78614         the portions belonging to each module.
78615         Suggested by Derek Robert Price <derek@ximbiot.com>.
78616
78617 2004-10-12  Simon Josefsson  <jas@extundo.com>
78618
78619         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78620         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
78621         to real functions.
78622
78623 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78624
78625         * modules/vsnprintf: New file.
78626
78627 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78628
78629         * m4/vsnprintf.m4: New file.
78630
78631 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78632
78633         * lib/vsnprintf.h: New file.
78634         * lib/vsnprintf.c: New file.
78635
78636 2004-10-11  Bruno Haible  <bruno@clisp.org>
78637
78638         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
78639         vsnprintf.
78640
78641 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78642
78643         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
78644
78645 2004-10-07  Bruno Haible  <bruno@clisp.org>
78646
78647         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
78648         fits into the provided buffer.
78649
78650 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78651
78652         * lib/diacrit.c, diacrit.h: Add GPL notice.
78653
78654         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
78655         notice.
78656         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
78657         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
78658         This avoids a potential constant-folding bug.
78659
78660 2004-10-05  Bruno Haible  <bruno@clisp.org>
78661
78662         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
78663         for the declaration of strsep.
78664
78665 2004-10-05  Bruno Haible  <bruno@clisp.org>
78666
78667         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
78668
78669 2004-10-04  Simon Josefsson  <jas@extundo.com>
78670
78671         * modules/memmem: New file.
78672         * tests/test-memmem.c: New file.
78673         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
78674
78675 2004-10-04  Simon Josefsson  <jas@extundo.com>
78676
78677         * m4/memmem.m4: New file.
78678
78679 2004-10-04  Simon Josefsson  <jas@extundo.com>
78680
78681         * lib/memmem.h: New file.
78682         * lib/memmem.c: New file, taken from glibc.
78683
78684 2004-10-04  Simon Josefsson  <jas@extundo.com>
78685
78686         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
78687         '#ifdef USE_UNLOCKED_IO'.
78688
78689 2004-10-04  Simon Josefsson  <jas@extundo.com>
78690
78691         * config/srclist.txt: Add memmem from glibc.
78692
78693 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78694
78695         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
78696
78697         * modules/argmatch, modules/argp, modules/closeout, modules/error,
78698         modules/exclude, modules/getdate, modules/getline,
78699         modules/getndelim2, modules/getpass, modules/getpass-gnu,
78700         modules/getusershell, modules/linebuffer, modules/md5,
78701         modules/mountlist, modules/posixtm, modules/readtokens,
78702         modules/readutmp, modules/regex, modules/sha1,
78703         modules/version-etc, modules/yesno:
78704         Remove dependency on unlocked-io.
78705
78706 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78707
78708         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
78709
78710         * m4/unlocked-io.m4: Add copyright notice.
78711         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
78712
78713 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78714
78715         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
78716         * lib/xmalloc.c (xmemdup): Likewise.
78717         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
78718         XFREE): Remove these long-obsolescent macros.
78719         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
78720         * lib/xstrdup.c: Remove.
78721
78722         * lib/regex.c (re_comp): Cast gettext return value to char *,
78723         Problem reported by Martin Neitzel via Mark D. Baushke.
78724
78725 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78726
78727         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
78728         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
78729         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
78730         regex.c, sha1.c, version-etc.c, yesno.c:
78731         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
78732         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
78733         the includer's responsibility.
78734
78735         Sync from coreutils.
78736
78737         * lib/modechange.c (mode_compile): Don't decrement a pointer that
78738         points to the start of a string, as the C Standard says the
78739         resulting behavior is undefined.
78740
78741         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
78742         simple -> simple_backups, numbered_existing ->
78743         numbered_existing_backups, numbered -> numbered_backups
78744         to avoid shadowing problems.  All uses changed.
78745         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
78746         * lib/backupfile.c (check_extension, numbered_backup):
78747         Rename locals to avoid shadowing 'basename'.
78748         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
78749         once.
78750
78751         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
78752         * lib/.cvsignore: Add getopt.h.
78753
78754 2004-10-04  Bruno Haible  <bruno@clisp.org>
78755
78756         * modules/README: New file.
78757         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
78758         not a module.
78759
78760 2004-10-02  Jim Meyering  <jim@meyering.net>
78761
78762         * lib/dirfd.h, getpagesize.h: Add copyright notice.
78763
78764 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78765
78766         * modules/strsep: New file.
78767
78768 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78769
78770         * m4/strsep.m4: New file.
78771
78772 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78773
78774         * lib/strsep.h: New file.
78775         * lib/strsep.c: New file.
78776
78777 2004-10-01  Simon Josefsson  <jas@extundo.com>
78778
78779         * lib/snprintf.c (snprintf): Handle size==0.
78780
78781 2004-10-01  Simon Josefsson  <jas@extundo.com>
78782             Bruno Haible  <bruno@clisp.org>
78783
78784         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
78785         (snprintf): Declare 'args'.
78786
78787 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
78788
78789         * lib/snprintf.c: Remove comments as to why each header is needed.
78790
78791 2004-10-01  Bruno Haible  <bruno@clisp.org>
78792
78793         * MODULES.html.sh: Add strsep.
78794
78795 2004-09-30  Simon Josefsson  <jas@extundo.com>
78796
78797         * modules/snprintf: New file.
78798
78799 2004-09-30  Simon Josefsson  <jas@extundo.com>
78800
78801         * m4/snprintf.m4: New file.
78802
78803 2004-09-30  Simon Josefsson  <jas@extundo.com>
78804
78805         * lib/snprintf.h, lib/snprintf.c: New files.
78806
78807 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78808
78809         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
78810         (hol_entry_help): Never translate an empty string.
78811         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
78812         * lib/argp.h (OPTION_NO_TRANS): New option.
78813
78814 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78815
78816         * modules/argp (Maintainer): Replace Simon Josefsson
78817         by Sergey Poznyakoff.
78818
78819 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78820
78821         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
78822         changes merged back into glibc.
78823
78824 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78825
78826         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
78827
78828 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78829
78830         * lib/xvasprintf.c: Include xalloc.h.
78831         (xvasprintf): Use xalloc_die, not xmalloc_die.
78832
78833 2004-09-29  Bruno Haible  <bruno@clisp.org>
78834
78835         * modules/alloca-opt: New file, derived from modules/alloca.
78836         * modules/allocsa: Depend on alloca-opt instead of alloca.
78837         * modules/setenv: Likewise.
78838         * modules/vasnprintf: Likewise.
78839         * MODULES.html.sh: Add alloca-opt.
78840
78841 2004-09-28  Simon Josefsson  <jas@extundo.com>
78842
78843         * gnulib-tool: New parameter --lgpl, to asseert that modules are
78844         LGPL, and to replace license template from GPL to LGPL.
78845
78846 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78847
78848         * modules/dummy: Change license to LGPL.
78849
78850 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78851
78852         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
78853
78854 2004-09-24  Simon Josefsson  <jas@extundo.com>
78855
78856         * modules/minmax (License): Change from GPL to LGPL.
78857
78858 2004-09-23  Simon Josefsson  <jas@extundo.com>
78859
78860         * gnulib-tool (--import): Typo.
78861
78862 2004-09-23  Simon Josefsson  <jas@extundo.com>
78863
78864         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
78865
78866 2004-09-22  Bruno Haible  <bruno@clisp.org>
78867
78868         * modules/*: Add 'License' field.
78869         * gnulib-tool: Accept --extract-license option.
78870         (func_get_license): New function.
78871
78872 2004-09-21  Bruno Haible  <bruno@clisp.org>
78873
78874         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
78875         Reported by Simon Josefsson.
78876
78877 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78878
78879         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
78880         gl_AC_TYPE_LONG_LONG.
78881
78882 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78883
78884         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
78885
78886 2004-09-18  Simon Josefsson  <jas@extundo.com>
78887         and  Paul Eggert  <eggert@cs.ucla.edu>
78888
78889         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
78890         calls with autoreconf.  Define GL_LIB.
78891
78892 2004-09-14  Karl Berry  <karl@gnu.org>
78893
78894         * config/srclist.txt: unsync setenv.c, sigh.
78895
78896 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78897
78898         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
78899         Problem reported by Bruno Haible in:
78900         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
78901
78902 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78903
78904         * config/srclist.txt: Comment out argp-pvh.c.
78905
78906 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
78907
78908         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
78909         in case some system header has #define'd it.  Problem reported by
78910         Soeren D. Schulze in
78911         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
78912
78913 2004-09-09  Karl Berry  <karl@gnu.org>
78914
78915         * regex.[ch]: delete from the root.  These were supposed to be
78916                 synced with emacs cvs, but this has not happened for about
78917                 a year, and anyway nothing else uses emacs regex.[ch].
78918                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
78919                 lib/regex[.ch] is untouched.
78920
78921 2004-09-09  Bruno Haible  <bruno@clisp.org>
78922
78923         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
78924
78925 2004-09-09  Bruno Haible  <bruno@clisp.org>
78926
78927         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
78928         modifications.
78929         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
78930
78931 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78932
78933         * modules/xvasprintf: New file.
78934         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
78935
78936 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78937
78938         * lib/xvasprintf.h: New file.
78939         * lib/xvasprintf.c: New file.
78940         * lib/xasprintf.c: New file.
78941
78942 2004-09-08  Bruno Haible  <bruno@clisp.org>
78943
78944         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
78945
78946 2004-09-08  Bruno Haible  <bruno@clisp.org>
78947
78948         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
78949         length is > INT_MAX.
78950         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
78951         more.
78952
78953 2004-09-08  Bruno Haible  <bruno@clisp.org>
78954
78955         * lib/stdint_.h: New file, taken from GNU clisp.
78956
78957 2004-09-08  Bruno Haible  <bruno@clisp.org>
78958             Oskar Liljeblad  <oskar@osk.mine.nu>
78959
78960         * modules/stdint: New file.
78961         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
78962
78963 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78964
78965         Import from coreutils.
78966         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
78967         strings on unbounded length.  alloca's performance benefits aren't
78968         that important here.
78969         (V_STRDUP): Remove.
78970         (parse_with_separator): New function, with most of the internals
78971         of the old parse_user_spec.  Allow user to omit both user and group,
78972         for compatibility with FreeBSD.
78973         Clone only the user name, not the entire spec.
78974         Do not set *uid, *gid unless entirely successful.
78975         Avoid memory leak in some failing cases.
78976         Fix regression for USER.GROUP reported by Dmitry V. Levin in
78977         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
78978         (parse_user_spec): Rewrite to use parse_with_separator.
78979
78980 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78981
78982         * modules/userspec: Don't depend on alloca.
78983
78984 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78985
78986         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
78987
78988 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78989
78990         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
78991         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
78992         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
78993
78994 2004-08-16  Simon Josefsson  <jas@extundo.com>
78995
78996         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
78997         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
78998         Add --dry-run for --import.
78999         Let user provided command line parameters override configure.ac
79000         settings.
79001
79002 2004-08-12  Simon Josefsson  <jas@extundo.com>
79003
79004         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79005         as discussed with Paul Eggert in threads rooted at
79006         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79007         and
79008         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79009         Before, the test was empty, and relied on ELIDE_CODE in source
79010         code.)
79011         (gl_PREREQ_GETOPT): New macro.
79012         (gl_GETOPT): Use them.
79013
79014 2004-08-12  Simon Josefsson  <jas@extundo.com>
79015
79016         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79017         * lib/getopt_.h: Renamed from getopt.h.
79018
79019 2004-08-12  Simon Josefsson  <jas@extundo.com>
79020
79021         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79022         Change default library name from libfoo to libgnu.
79023         Now, if you have a configure.ac that says:
79024                 gl_SOURCE_BASE(gl)
79025                 gl_M4_BASE(gl/m4)
79026                 gl_MODULES(error getopt etcetera)
79027                 gl_INIT
79028         you can import all you need by running:
79029                 ../gnulib/gnulib-tool --import
79030
79031         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79032         (Makefile.am): Rewrite, use logic from argz.
79033         (Include): Use <getopt.h> instead of "getopt.h".
79034
79035 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79036
79037         * modules/argp (Files): Add m4/unlocked-io.m4.
79038         (Depends-on): Add extensions.
79039
79040 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79041
79042         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79043         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79044         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79045         Check for program_invocation_name, program_invocation_short_name,
79046         flockfile, funlockfile, features.h, _getopt_long_only_r.
79047
79048 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79049
79050         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79051         its complicated substitute.
79052         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79053         and program_invocation_name.
79054         (__argp_basename) [!_LIBC]: Remove; the only use was
79055         replaced by its body.
79056         (__argp_short_program_name): Change condition from
79057         !defined __argp_short_program_name to
79058         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79059         to match argp-namefrob.h.
79060         (__argp_failure): Don't assume strerror_r returns char *.
79061         * lib/argp-parse.c (N_): Define unconditionally.
79062         (argp_default_options): Fill out initializers with 0 to avoid
79063         gcc warnings.
79064
79065 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79066
79067         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79068         getopt1.c.
79069
79070 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79071
79072         Merge from coreutils.
79073
79074         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79075
79076         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79077         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79078
79079 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79080
79081         Merge from coreutils.
79082
79083         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79084         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79085         for Reliant Unix 5.43.
79086
79087         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79088         (union fooround): Use uintmax_t, not long int.
79089         The rest is a merge from libc:
79090         [defined _LIBC]: Include <shlib-compat.h>.
79091         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79092
79093         * lib/settime.c (settime): Recode to avoid warning with
79094         Sun Forte C 6U2.
79095
79096         * lib/strverscmp.c: Convert to UTF-8.
79097
79098 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79099
79100         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79101         m4/uintmax_t.m4.
79102
79103 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79104
79105         * modules/xalloc-die: New file.
79106         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79107
79108         * modules/md5 (Files): Add m4/uint32_t.m4.
79109         * modules/sha1: Renamed from modules/sha.
79110         (Files):
79111         Rename lib/sha.h to lib/sha1.h.
79112         Rename lib/sha.c to lib/sha1.c.
79113         Rename m4/sha.m4 to m4/sha1.m4.
79114         (lib_SOURCES): Likewise.
79115         (configure.ac): Rename gl_SHA to gl_SHA1.
79116         (Include): sha.h -> sha1.h.
79117
79118 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79119
79120         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79121         * m4/sha1.m4: Renamed from sha.m4.
79122         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79123
79124 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79125
79126         * lib/obstack.h (obstack_empty_p):
79127         Don't assume that chunk->contents is suitably aligned.
79128         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79129         Likewise. Problem reported by Benno in
79130         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79131
79132         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79133         readable.  This could be improved further but it'd take some work.
79134
79135 2004-08-08  Simon Josefsson  <jas@extundo.com>
79136
79137         * modules/xgethostname (Depends-on): Remove exit and error (not
79138         used).
79139
79140         * modules/getpass-gnu: Add getpass.h.
79141         (Depends-on): Add stdbool.
79142         * modules/getpass: Add getpass.h.
79143
79144 2004-08-08  Simon Josefsson  <jas@extundo.com>
79145
79146         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79147         Check getpass declaration.
79148
79149 2004-08-08  Simon Josefsson  <jas@extundo.com>
79150
79151         * lib/xgethostname.c: Don't include error.h (not used).
79152
79153         * lib/getpass.h: Add.
79154         * lib/getpass.c: Include getpass.h first.
79155
79156 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79157
79158         * lib/xalloc-die.c: New file.
79159         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79160         All uses removed.
79161         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79162         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79163         xalloc-die.c.
79164         (_, N_, xalloc_die): Move to xalloc-die.c.
79165         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79166         so that we needn't mess with xalloc_msg_memory_exhausted.
79167
79168         * lib/sha1.h: Renamed from sha.h.
79169         (SHA1_H): Renamed from _SHA_H.
79170         (sha1_ctx): Renamed from sha_ctx.
79171         (sha1_init_ctx): Renamed from sha_init_ctx.
79172         (sha1_process_block): Renamed from sha_process_block.
79173         (sha1_process_bytes): Renamed from sha_process_bytes.
79174         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79175         (sha1_read_ctx): Renamed from sha_read_ctx.
79176         (sha1_stream): Renamed from sha_stream.
79177         (sha1_buffer): Renamed from sha_buffer.
79178         * lib/sha1.c: Likewise; renamed from sha.c.
79179         Do not include <sys/types.h>.
79180         Include <stddef.h> rather than <stdlib.h>.
79181
79182 2004-08-08  Bruno Haible  <bruno@clisp.org>
79183
79184         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79185         FILESYSTEM_PREFIX_LEN.
79186         * lib/progreloc.c: Likewise.
79187         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79188
79189 2004-08-06  Simon Josefsson  <jas@extundo.com>
79190
79191         * modules/progname (Depends-on): Don't depend on stdbool.
79192
79193 2004-08-06  Simon Josefsson  <jas@extundo.com>
79194
79195         * modules/getsubopt: New file.
79196         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79197         getsubopt.
79198
79199 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79200
79201         More merge from coreutils.
79202
79203         * m4/utimens.m4, m4/utimecmp.m4: New files.
79204         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79205         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79206         prereq.m4, sha.m4: Import changes from coreutils.
79207
79208 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79209
79210         More merge from coreutils.
79211         * modules/raise, modules/readtokens0, modules/utimens:
79212         * modules/utimecmp, module/xnanosleep: New files.
79213         * modules/strftime: Add lib/strftime.h.
79214         Change include from <time.h> to "strftime.h".
79215         * modules/yesno: Add lib/yesno.h.
79216         * modules/backupfile: Remove lib/addext.c.
79217         * modules/euidaccess: Add stat-macros.h.
79218         * modules/canonicalize, modules/euidaccess,
79219         modules/filemode, modules/lchown, modules/makepath,
79220         modules/rmdir, modules/stat: Likewise.
79221
79222 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79223
79224         Merge from tar.
79225         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79226         SIZE_MAX is a valid preprocessor constant.
79227         (__argp_basename): Change from "#ifndef _LIBC"
79228         to "#ifndef __argp_short_program_name", so that
79229         we don't compile these functions for tar.
79230
79231         More merges from coreutils.
79232         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79233         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79234         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79235         * lib/addext.c: Remove; no longer needed.
79236         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79237         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79238         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79239         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79240         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79241         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79242         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79243         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79244         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79245         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79246         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79247         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79248         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79249         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79250         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79251         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79252         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79253         Import changes from coreutils.
79254
79255 2004-08-05  Simon Josefsson  <jas@extundo.com>
79256
79257         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79258
79259 2004-08-05  Simon Josefsson  <jas@extundo.com>
79260
79261         * m4/getsubopt.m4: New file.
79262
79263 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79264
79265         Merge from coreutils.
79266
79267         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79268         * m4/getcwd-path-max.m4: New files.
79269
79270         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79271         FILESYSTEM_PREFIX_LEN ->
79272         FILE_SYSTEM_PREFIX_LEN.
79273         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79274         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79275         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79276         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79277
79278         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79279         prerequisite modules now handle the DOS stuff.
79280         Don't check for unistd.h.
79281
79282 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79283
79284         Merge from coreutils.
79285
79286         * lib/.gdb-history: Remove; this doesn't belong here.
79287
79288         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79289         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79290         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79291         * lib/getcwd.c: New files.
79292
79293         * lib/dirname.h: Include <stdbool.h>.
79294         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79295         for consistency with POSIX terminology.  All uses changed.
79296         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79297         (strip_trailing_slashes): Use bool for booleans.
79298         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79299
79300         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79301         sometimes returns a positive errno value even when it succeeds.
79302         (print_errno_message) [!LIBC]: Fall back on strerror if
79303         __strerror_r fails.
79304
79305         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79306         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79307         (longest_relative_suffix): New function.
79308         (path_concat): Use it.  Assume first argument is not NULL.
79309         Port to DOS.  Omit redundant separators.
79310         Report an error instead of returning NULL.
79311         Use mempcpy instead of memcpy.
79312         (xpath_concat): Remove: not declared or used.
79313
79314         * lib/same.h: Include <stdbool.h>
79315         (same_name): Return bool, not int.
79316         * lib/same.c (same_name): Likewise.
79317         (errno): Don't declare; we assume C89 or better now.
79318
79319         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79320         if not already defined.
79321
79322         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79323         * lib/dup-safer.c (errno): Likewise.
79324
79325 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79326
79327         Merge from coreutils.
79328         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79329         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79330         * modules/path-concat: Don't depend on strdup.
79331
79332 2004-08-03  Simon Josefsson  <jas@extundo.com>
79333
79334         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79335         * lib/progname.h: Don't include stdbool.h.
79336
79337 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79338
79339         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79340         * MODULES.html.sh (func_all_modules): Remove fatal.
79341
79342 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79343
79344         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79345
79346 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79347
79348         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79349         working.
79350
79351 2004-08-02  Simon Josefsson  <jas@extundo.com>
79352
79353         * lib/getsubopt.h: New file, with comments from Bruno Haible.
79354         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
79355         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
79356
79357 2004-08-01  Simon Josefsson  <jas@extundo.com>
79358
79359         * lib/xgetdomainname.c: Include stdlib.h, for free().
79360
79361 2004-07-19  Bruno Haible  <bruno@clisp.org>
79362
79363         * MODULES.html.sh (func_all_modules): Add dummy.
79364
79365 2004-07-16  Simon Josefsson  <jas@extundo.com>
79366
79367         * modules/dummy: New file.
79368
79369 2004-07-16  Simon Josefsson  <jas@extundo.com>
79370
79371         * lib/dummy.c: New file.
79372
79373 2004-07-16  Bruno Haible  <bruno@clisp.org>
79374
79375         * lib/backupfile.h: Add extern "C" for C++.
79376         * lib/closeout.h: Likewise.
79377         * lib/copy-file.h: Likewise.
79378         * lib/findprog.h: Likewise.
79379         * lib/full-write.h: Likewise.
79380         * lib/pathname.h: Likewise.
79381         * lib/progname.h: Likewise.
79382         * lib/stpcpy.h: Likewise.
79383         * lib/stpncpy.h: Likewise.
79384         * lib/strcase.h: Likewise.
79385         * lib/strstr.h: Likewise.
79386         * lib/xalloc.h: Likewise.
79387
79388         * lib/mbswidth.h: Add extern "C" for C++.
79389         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
79390
79391 2004-07-13  Robert Millan  <robertmh@gnu.org>
79392
79393         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
79394
79395 2004-07-09  Simon Josefsson  <jas@extundo.com>
79396
79397         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
79398         failed without this.)
79399
79400 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79401
79402         * modules/chown (Files): Add lib/fchown-stub.c, since
79403         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
79404
79405 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79406
79407         * lib/fchown-stub.c: New file.
79408
79409 2004-06-24  Jim Meyering  <jim@meyering.net>
79410
79411         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
79412
79413 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79414
79415         * modules/argz: Omit "#include".
79416
79417         * MODULES.html.sh (func_all_modules): Add calloc, to match
79418         2004-06-01 addition of calloc module.
79419
79420 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79421
79422         * m4/argz.m4: New file, which is autoupdated from libtool.
79423
79424 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79425
79426         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
79427         libtool.
79428
79429 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79430
79431         * config/srclist-update: Don't insist on "USA." before the
79432         close-comment, as libtool omits the period and puts the */ on a
79433         separate line.
79434         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
79435         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
79436
79437 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
79438
79439         * modules/argz: New file.
79440         * MODULES.html.sh (func_all_modules): Add argz.
79441
79442 2004-06-12  Jim Meyering  <jim@meyering.net>
79443         and  Paul Eggert  <eggert@cs.ucla.edu>
79444
79445         * modules/hash (Files): Add lib/xalloc.h.
79446         * modules/pipe (Depends-on): Add wait-process.
79447         * modules/stat (Depends-on): Add xalloc.
79448         * modules/userspec (Files): Add lib/userspec.h.
79449         * modules/xstrto
79450
79451         Upgrade from gettext-0.13.
79452         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79453         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79454         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79455
79456 2004-06-10  Jim Meyering  <jim@meyering.net>
79457
79458         * lib/calloc.c: New file.
79459
79460 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79461
79462         * lib/getdate.y (yylex): Allow space between sign and number.
79463         Problem reported by Dan Jacobson.
79464
79465 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79466
79467         Merge from coreutils CVS.
79468
79469         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79470         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79471         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79472         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79473         xstrtol.m4: Fix copyright date and/or serial number.
79474
79475         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79476         See if we need an fchown replacement.
79477         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79478         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79479         and use the replacement function if we detect either defect.
79480
79481         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79482         gl_UTIMECMP.
79483
79484 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79485         and  Jim Meyering  <jim@meyering.net>
79486
79487         Merge from coreutils CVS.
79488
79489         * lib/stat-macros.h: New file, with contents from file-type.h
79490         and coreutils' system.h.
79491         * lib/file-type.c: Include "stat-macros.h".
79492         * lib/file-type.h (file_type): Move all macro definitions to new file,
79493         stat-macros.h.
79494
79495         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
79496         Wrap old code with this conditional.
79497         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
79498         function that does not dereference symlinks.
79499         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
79500
79501         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
79502         dependency problems.
79503         (xreadlink): Accept new arg SIZE, for efficiency.
79504         All decls and uses changed.
79505         * lib/xreadlink.h: Include <stddef.h>, for size_t.
79506
79507         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
79508         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
79509
79510         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
79511         sysexits.h.
79512
79513 2004-06-01  Jim Meyering  <jim@meyering.net>
79514
79515         * m4/calloc.m4: New file.
79516
79517 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
79518
79519         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
79520         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
79521         Also, fix a typo in a diagnostic.
79522
79523 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79524
79525         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79526         or AC_FUNC_REALLOC.
79527
79528 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79529
79530         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
79531         macros to be defined.
79532         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
79533         the allocator returns NULL because the requested size is zero.
79534
79535 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79536
79537         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
79538         var.  Add comment explaining why libc still defines it.  This
79539         merges the following patch from glibc:
79540         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
79541
79542 2004-05-20  Andreas Schwab  <schwab@suse.de>
79543
79544         * m4/free.m4: Replace free if it not known to work, not the other
79545         way round.
79546
79547 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79548
79549         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
79550         present in glibc since revision 1.1 of this file.
79551         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
79552         obstack_alignment_mask, obstack_alloc, obstack_base,
79553         obstack_blank, obstack_blank_fast, obstack_chunk_size,
79554         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
79555         obstack_grow0, obstack_init, obstack_int_grow,
79556         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
79557         obstack_next_free, obstack_object_size, obstack_ptr_grow,
79558         obstack_ptr_grow_fast, obstack_room): Remove declarations of
79559         nonexistent functions.
79560
79561 2004-05-18  Karl Berry  <karl@gnu.org>
79562
79563         * config/srclist.txt: break link for vasnprintf.c.
79564
79565 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79566
79567         Port obstack to the AS/400, where pointers are 16 bytes wide and
79568         you cannot cast an integer to a valid pointer.  This patch is
79569         currently waiting to be integrated into glibc; see
79570         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
79571
79572         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
79573         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
79574         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
79575         (struct obstack): temp member is now a union of a pointer and
79576         an integer, instead of an integer.  All integer uses changed.
79577         This does not affect the physical layout of struct obstack,
79578         except on hosts (like the AS/400) where the size or alignment of
79579         void * is greater than that of ptrdiff_t.
79580         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
79581         __STDC__)]: Store temporary in pointer member of union, not
79582         integer member.
79583         * lib/obstack.c: Include <stddef.h>, for offsetof.
79584         (struct fooalign): Remove; it doesn't need a name.
79585         (union fooround): Change double to long double, and add void *.
79586         (DEFAULT_ALIGNMENT): Use offsetof to compute.
79587         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
79588         not a macro.  Hence the values are always int; so remove all
79589         casts-to-int in uses.
79590
79591 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79592
79593         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
79594         we can get this patch merged into glibc.
79595
79596 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79597             Paul Eggert  <eggert@cs.ucla.edu>
79598
79599         * m4/argp: Depend on alloca.
79600
79601 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79602             Paul Eggert  <eggert@cs.ucla.edu>
79603
79604         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
79605         freecoding.
79606
79607 2004-05-17  Bruno Haible  <bruno@clisp.org>
79608
79609         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
79610         precision that consists of a '.' followed by an empty digit string.
79611         Patch by Tor Lillqvist <tml@iki.fi>.
79612
79613 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79614
79615         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
79616         for backward compatibility with older code.  We need our own
79617         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
79618         it under some other name, and our alloca.h will define it.
79619
79620 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79621             Derek Price  <derek@ximbiot.com>
79622
79623         * lib/alloca.c: Include <alloca.h>, to get our interface.
79624         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
79625         include <alloca.h> first.  Use C89 prototype for alloca; this
79626         requires including <stddef.h> for size_t.  Use extern "C" if C++.
79627         Use #elif for simplicity, since we can assume C89 now.
79628         Don't try to source the system alloca.h since it will not be found
79629         and to prevent recursively including its replacement.
79630         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
79631         * lib/regex.c: Likewise.
79632
79633 2004-05-16  Derek Price  <derek@ximbiot.com>
79634             Paul Eggert  <eggert@cs.ucla.edu>
79635
79636         getline cleanup.  This changes the getndelim2 API: both order of
79637         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
79638         no delimiter).
79639
79640         * lib/getline.c: Don't include stddef.h or stdio.h, since our
79641         interface does that.
79642         (getline): Always use getdelim, so that we don't have two
79643         copies of this code.
79644         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
79645         if available.
79646         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
79647         (GETNDELIM2_MAXIMUM): New macro.
79648         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
79649         instead of the old practice of delim2==0.  All callers changed.
79650         Return -1 on overflow, instead of returning junk.
79651         Do not set *linesize unless allocation succeeds.
79652         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
79653         that we include sys/types.h.
79654         * lib/getnline.h: Likewise.
79655         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
79656         (getndelim2): Reorder arguments.
79657         * lib/getnline.c (getnline, getndelim):
79658         Don't discard the NMAX argument.
79659         (getnline): Invoke getndelim, to avoid code duplication.
79660         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
79661         of (size_t) -1 by callers of the getnline family.
79662
79663 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79664
79665         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
79666         Check for gettimeofday.
79667         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
79668         Check for settimeofday, stime.
79669
79670 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79671
79672         * lib/nanosleep.c (suspended): Change its type from int to
79673         sig_atomic_t volatile.
79674         (first_call): Make it private to rpl_nanosleep, and have it
79675         be zero initially as that's a bit faster.
79676         (my_usleep): Round up fractional times instead of truncating them,
79677         as this is the usual meaning for 'sleep'.
79678
79679         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
79680         doesn't work.
79681         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
79682         (ENOSYS): Define if not defined.
79683         (settime): Fall back on stime if it exists and settimeofday fails.
79684         But don't bother with fallbacks if a method fails with errno == EPERM.
79685
79686 2004-05-11  Jim Meyering  <jim@meyering.net>
79687
79688         Prior to this change, the save_cwd caller required read access to the
79689         current directory on most systems (ones with the fchdir function).
79690
79691         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
79692         fails, try write-only, and finally, resort to using xgetcwd.
79693
79694 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79695
79696         * lib/obstack.c, obstack.h: Import changes from libc.
79697
79698 2004-04-28  Bruno Haible  <bruno@clisp.org>
79699
79700         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
79701         also implicitly appends .exe to executables.
79702         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
79703         accepts Windows pathnames.
79704         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79705         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79706         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79707         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79708         Reported by Derek Robert Price <derek@ximbiot.com>.
79709
79710 2004-04-21  Karl Berry  <karl@gnu.org>
79711
79712         * config/srclist.txt (localcharset.c): break sync.
79713
79714 2004-04-20  Paul Eggert  <eggert@twinsun.com>
79715
79716         * m4/host-os.m4: Add a copyright notice.
79717
79718 2004-04-20  Jim Meyering  <jim@meyering.net>
79719
79720         Change UTILS_ to gl_ in AC_DEFINE'd names.
79721         Change utils_- and jm_-prefixed variables, too.
79722         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
79723         UTILS_FUNC_MKDIR_TRAILING_SLASH.
79724         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
79725
79726         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
79727         Don't emit trailing blanks.
79728         Also rename jm_-prefixed variables to have gl_ prefix.
79729
79730         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
79731         Also rename jm_-prefixed variables to have gl_ prefix.
79732
79733         * m4/jm-macros.m4: Reflect the renamings.
79734         * m4/prereq.m4: Likewise.
79735
79736 2004-04-20  Jim Meyering  <jim@meyering.net>
79737
79738         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
79739         memory.
79740
79741 2004-04-20  Jim Meyering  <jim@meyering.net>
79742             Bruno Haible  <bruno@clisp.org>
79743
79744         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
79745         memory when realloc fails.
79746
79747 2004-04-19  Jim Meyering  <jim@meyering.net>
79748
79749         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
79750         now that readutmp.c may call `free (0)'.
79751
79752 2004-04-19  Bruno Haible  <bruno@clisp.org>
79753
79754         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
79755         * m4/inttypes_h.m4: Likewise.
79756         * m4/stdint_h.m4: Likewise.
79757         * m4/intmax_t.m4: Likewise.
79758         * m4/uintmax_t.m4: Likewise.
79759
79760 2004-04-18  Jim Meyering  <jim@meyering.net>
79761
79762         * m4/prereq.m4: Don't forbid jm_ prefix.
79763
79764         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
79765         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
79766         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
79767         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
79768         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
79769         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
79770         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
79771         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
79772         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
79773         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
79774         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
79775         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
79776         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
79777         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
79778         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
79779         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
79780         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
79781         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
79782         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
79783
79784 2004-04-18  Jim Meyering  <jim@meyering.net>
79785
79786         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
79787         failure, don't leak memory and do call END_UTMP_ENT.
79788
79789 2004-04-16  Jim Meyering  <jim@meyering.net>
79790
79791         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
79792         coreutils' stat program.
79793         (gl_PREREQ): Don't require jm_PREREQ_STAT.
79794
79795 2004-04-11  Paul Eggert  <eggert@twinsun.com>
79796
79797         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
79798         C89.
79799         (CHAR_BIT): Remove, since we assume C89.
79800         Include <stdint.h> if available, as per current Autoconf CVS advice.
79801
79802 2004-03-31  Jim Meyering  <jim@meyering.net>
79803
79804         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
79805         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
79806         * m4/xalloc.m4: Likewise.
79807
79808 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79809
79810         Merge from coreutils.
79811
79812         * m4/inttostr.m4: New file.
79813         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
79814         Require AM_STDBOOL_H and gl_TIMESPEC instead.
79815         Require gl_CLOCK_TIME.
79816         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
79817
79818 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79819
79820         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
79821         not bool, to be more consistent with Unix conventions.
79822         Suggested by Bruno Haible.
79823
79824         Merge from coreutils.
79825
79826         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
79827         * lib/umaxtostr.c: New files.
79828
79829         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
79830         the usual <time.h> dance.
79831         (get_date): Change signature to support fractional time stamps.
79832         All callers changed.
79833         * lib/getdate.y: Include "getdate.h" first, as we can now
79834         assume C89 and don't need to worry about 'const'.
79835         Similarly, include "unlocked-io.h" near start, not in middle.
79836         Include <limits.h>.
79837         (textint.value): Use long int rather than int.
79838         (textint.digits): Use size_t rather than int.
79839         (BILLION, LOG10_BILLION): New constants.
79840         (parser_control): New member rel_ns.  Members day_ordinal,
79841         time_zone, month, day, hour, minutes, rel_year, rel_month,
79842         rel_day, rel_hour, rel_minutes, rel_seconds
79843         are now long int, not int.  Member seconds is now struct timespec,
79844         not int.  New member timespec_seen.  Members dates_seen, days_seen,
79845         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
79846         not int.
79847         (%union.intval): Now long int, not int.
79848         New member timespec.
79849         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
79850         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
79851         (spec): Now is a timespec or an item list.
79852         (timespec, items): New nonterminals.
79853         (time, rel, relunit, number, get_date):
79854         Add support for fractional seconds.
79855         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
79856         (gmtime, localtime, mktime): Remove decls; not needed with C89.
79857         (to_hour): First arg is now long int, not int.
79858         (to_year): Returns long int, not int.
79859         Don't treat year -70 like 70.
79860         (tm_diff): Returns long int, not int.
79861         (lookup_word): Use bool instead of int when appropriate.
79862         (yylex): Use size_t for count, not int.
79863         Detect overflow when parsing large integer constants.
79864         Add support for fractions.
79865         (get_date): Make pointers 'const' if possible.
79866         Use more-portable code to detect integer overflow.
79867         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
79868         Don't use ctime; it's not reliable if the year has >4 digits.
79869
79870         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
79871         This is for compatibility with BSD.
79872
79873         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
79874         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
79875         From coreutils' system.h.
79876
79877         * lib/userspec.c: Don't include "posixver.h".
79878         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
79879         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
79880         compatible extension.  Simplify code by removing a boolean int
79881         that was always nonzero if a string was nonnull.
79882
79883 2004-03-30  Jim Meyering  <jim@meyering.net>
79884
79885         Merge from coreutils.
79886
79887         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
79888         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
79889         on some systems one must include <grp.h> before it.
79890         Reported by Christian Krackowizer.
79891
79892 2004-03-30  Jim Meyering  <jim@meyering.net>
79893
79894         Merge from coreutils.
79895
79896         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
79897
79898         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
79899         an empty input stream.
79900
79901         * lib/readtokens.c: Include <stdbool.h>.
79902         (readtoken): Use `size_t' rather than int/long.
79903         All callers adjusted.
79904         Use `bool' rather than `int' where appropriate.
79905         Use memset rather than an explicit loop.
79906         Use x2nrealloc rather than xrealloc.
79907         Allow the use of `\0' as a delimiter.
79908         (readtokens): Likewise.
79909         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
79910
79911 2004-03-30  Jim Meyering  <jim@meyering.net>
79912
79913         * m4/realloc.m4: Remove file, since now it does no more than
79914         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
79915         the `configure.ac' section of module/realloc.
79916         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
79917
79918 2004-03-30  Bruno Haible  <bruno@clisp.org>
79919
79920         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
79921         nonnull.
79922
79923 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79924
79925         Merge changes to getloadavg.c from coreutils and Emacs.
79926
79927         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
79928         Define to an expression, not to the empty string.
79929         Include cloexec.h and xalloc.h.
79930         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
79931         Use set_cloexec_flag rather than rolling our own.
79932         * lib/cloexec.c, lib/cloexec.h: New files.
79933
79934 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79935
79936         * m4/cloexec.m4: New file.
79937
79938 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79939
79940         * lib/getopt.h: Sync with libc CVS.
79941
79942 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79943             Bruno Haible  <bruno@clisp.org>
79944
79945         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
79946         mbswidth.
79947
79948 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79949             Bruno Haible  <bruno@clisp.org>
79950
79951         * lib/mbswidth.h: Include <wchar.h> only if
79952         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
79953         <wchar.h>.
79954         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
79955
79956 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79957
79958         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
79959         Sync with libc CVS.
79960         * lib/getopt_int.h: New file, also synced from libc.
79961
79962 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79963
79964         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
79965         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
79966         Bring back getopt.c, getopt.h, getopt1.c.
79967
79968 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79969
79970         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
79971         All uses changed.  Check for sa_sigaction member; this fixes
79972         a bug first reported by Jason Andrade in
79973         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79974
79975 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79976
79977         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
79978         '#if' expressions.  Unlike the code it replaces, it does not
79979         depend on (defined _SC_PAGESIZE).  However, it does depend on
79980         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
79981         first reported by Jason Andrade in
79982         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79983
79984 2004-02-25  Simon Josefsson  <jas@extundo.com>
79985
79986         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
79987
79988 2004-02-25  Simon Josefsson  <jas@extundo.com>
79989
79990         * lib/strdup.h: New file.
79991         * lib/strdup.c: Include it.
79992         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
79993         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
79994
79995 2004-02-23  Karl Berry  <karl@gnu.org>
79996
79997         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
79998         (from fencepost.gnu.org:/gd/gnuorg).
79999
80000 2004-02-23  Karl Berry  <karl@gnu.org>
80001
80002         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80003         * config/srclist.txt: add maintain/standards documents.
80004
80005 2004-02-18  Bruno Haible  <bruno@clisp.org>
80006
80007         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80008         Reported by Derek Robert Price <derek@ximbiot.com>.
80009
80010 2004-02-16  Karl Berry  <karl@gnu.org>
80011
80012         * config/mkinstalldirs, install-sh: update from automake.
80013
80014 2004-02-06  Karl Berry  <karl@gnu.org>
80015
80016         * m4/po.m4: update from gettext 0.14.1.
80017
80018 2004-02-06  Karl Berry  <karl@gnu.org>
80019
80020         * lib/config.charset: update from gettext 0.14.1.
80021
80022 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80023
80024         Add comments and code, prompted by suggestions from Bruno Haible
80025         for sh-quote.
80026         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80027         describing the enum quoting_style values.
80028         * lib/quotearg.c (quotearg_alloc): New function.
80029         (quotearg_buffer_restyled): Treat lone { and } as special.
80030         Treat = as special.  Work around bug with older shells
80031         that "see" a '\' that is really the 2nd byte of a multibyte char.
80032         Quote empty string with shell_quoting_style.
80033
80034 2004-02-03  Bruno Haible  <bruno@clisp.org>
80035
80036         * m4/pipe.m4: New file, from GNU gettext.
80037
80038 2004-02-03  Bruno Haible  <bruno@clisp.org>
80039
80040         * lib/pipe.h: New file, from GNU gettext.
80041         * lib/pipe.c: New file, from GNU gettext.
80042
80043 2004-01-27  Bruno Haible  <bruno@clisp.org>
80044
80045         * m4/execute.m4: New file, from GNU gettext.
80046
80047 2004-01-27  Bruno Haible  <bruno@clisp.org>
80048
80049         * lib/execute.h: New file, from GNU gettext.
80050         * lib/execute.c: New file, from GNU gettext.
80051         * lib/w32spawn.h: New file, from GNU gettext.
80052
80053 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80054
80055         Merge from diffutils.
80056
80057         * lib/file-type.c (file_type): Add typed memory objects.
80058         * lib/file-type.h (S_TYPEISTMO): New macro.
80059
80060         * lib/c-stack.h (c_stack_action): Remove argv argument.
80061         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80062         (die): Don't calculate message unless segv_action returns.
80063         (get_stack_location, min_address_from_argv, max_address_from_argv,
80064         volatile stack_base, volatile_stack_size): Remove.
80065         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80066         that every segmentation violation is a stack overflow.  (Ouch!)
80067         See Debian bug 136249 (still outstanding) for more info about why
80068         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80069
80070 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80071
80072         Exit-status fix from coreutils.
80073
80074         Use exit_failure consistently in place of EXIT_FAILURE,
80075         so that program exit statuses are consistent on failure.
80076
80077         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80078         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80079         * lib/argmatch.h: Comment fix to match the above.
80080         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80081         Now a macro referring to exit_failure, instead of a separate
80082         variable.  Include "exitfail.h" to get it.
80083         * lib/xstrtol.h: Include "exitfail.h".
80084         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80085
80086         * lib/long-options.c (parse_long_options): Use prototype
80087         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80088         for clarity.
80089
80090 2004-01-21  Jim Meyering  <jim@meyering.net>
80091
80092         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80093         so as not to conflict with a different-sized __mktime_internal
80094         function in GNU libc.
80095         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80096         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80097
80098 2004-01-20  Karl Berry  <karl@gnu.org>
80099
80100         * config/config.guess: update from config.
80101
80102         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80103
80104 2004-01-20  Bruno Haible  <bruno@clisp.org>
80105
80106         Safer stack allocation.
80107         * lib/setenv.c: Include allocsa.h.
80108         (alloca): Remove fallback definition.
80109         (freea): Remove macro.
80110         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80111         instead of freea.
80112
80113 2004-01-20  Bruno Haible  <bruno@clisp.org>
80114
80115         * m4/eealloc.m4: New file, from GNU gettext.
80116
80117 2004-01-20  Bruno Haible  <bruno@clisp.org>
80118
80119         * m4/allocsa.m4: New file, from GNU gettext.
80120
80121 2004-01-20  Bruno Haible  <bruno@clisp.org>
80122
80123         * lib/xallocsa.h: New file, from GNU gettext.
80124         * lib/xallocsa.c: New file, from GNU gettext.
80125
80126 2004-01-20  Bruno Haible  <bruno@clisp.org>
80127
80128         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80129
80130 2004-01-20  Bruno Haible  <bruno@clisp.org>
80131
80132         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80133         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80134         specially.
80135
80136 2004-01-20  Bruno Haible  <bruno@clisp.org>
80137
80138         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80139         patch.
80140
80141 2004-01-20  Bruno Haible  <bruno@clisp.org>
80142
80143         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80144
80145 2004-01-20  Bruno Haible  <bruno@clisp.org>
80146
80147         * lib/eealloc.h: New file.
80148
80149 2004-01-20  Bruno Haible  <bruno@clisp.org>
80150
80151         * lib/binary-io.h: Avoid warnings on Cygwin.
80152
80153 2004-01-20  Bruno Haible  <bruno@clisp.org>
80154
80155         * lib/allocsa.h: New file, from GNU gettext.
80156         * lib/allocsa.c: New file, from GNU gettext.
80157
80158 2004-01-18  Karl Berry  <karl@gnu.org>
80159
80160         * doc/gpl.texi, doc/lgpl.texi: new files.
80161
80162 2004-01-18  Karl Berry  <karl@gnu.org>
80163
80164         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80165         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80166
80167 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80168
80169         Merge from coreutils.
80170
80171         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80172         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80173         (gl_DEFAULT_POSIX2_VERSION): Move
80174         the documentation from 'configure' into 'config.hin',
80175         so that 'configure --help' isn't burdened by it and
80176         we don't have to worry about its formatting there.
80177         Reword the documentation so that it's more succinct
80178         and can be run together into a single paragraph.
80179         * m4/same.m4 (gl_SAME): Check for pathconf.
80180
80181 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80182
80183         Merge from coreutils.
80184
80185         * lib/posixver.c: Include posixver.h.
80186
80187         * lib/same.c: Include <stdbool.h>, <limits.h>.
80188         (_POSIX_NAME_MAX): Define if not defined.
80189         (MIN): New macro.
80190         (same_name): If file names are silently truncated, report
80191         that the file names are the same if they are the same after
80192         the silent truncation.
80193
80194         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80195         conversion function.
80196         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80197         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80198         longer needed.
80199
80200 2004-01-15  Jim Meyering  <jim@meyering.net>
80201
80202         Merge from coreutils.
80203
80204         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80205         if no library is required.
80206         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80207         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80208         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80209         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80210         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80211         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80212         value, $ac_cv_search_crypt, if it's "none required".
80213         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80214         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80215         not gl_FUNC_GETLOADAVG.
80216         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80217         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80218
80219 2004-01-15  Jim Meyering  <jim@meyering.net>
80220
80221         Merge from coreutils.
80222
80223         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80224         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80225         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80226
80227         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80228         optional configure-time default.
80229
80230         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80231
80232         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80233
80234 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80235
80236         Merge from coreutils.
80237
80238         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80239         value, $ac_cv_search_nanosleep, if it's "none required".
80240
80241 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80242
80243         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80244         with like-named macro in fnmatch.c.
80245         (EXT): Use an internal constant instead.
80246
80247         Merge fnmatch patches from glibc.
80248         * lib/fnmatch.c (mbsinit): Remove define.
80249         Add libc_hidden_ver (__fnmatch, fnmatch).
80250         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80251         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80252
80253 2004-01-14  Karl Berry  <karl@gnu.org>
80254
80255         * config/install-sh: update from automake.
80256
80257 2004-01-13  Karl Berry  <karl@gnu.org>
80258
80259         * config/install-sh: update from automake.
80260
80261 2004-01-09  Karl Berry  <karl@gnu.org>
80262
80263         * config/install-sh: update from automake.
80264
80265 2004-01-05  Karl Berry  <karl@gnu.org>
80266
80267         * config/config.{sub,guess}: update from config.
80268
80269 2003-12-31  Karl Berry  <karl@gnu.org>
80270
80271         * config/depcomp: update from automake.
80272
80273 2003-12-14  Karl Berry  <karl@gnu.org>
80274
80275         * lib/config.charset: update from gettext-runtime.
80276
80277 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80278
80279         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80280         Bug reported by Alfred M. Szmidt.
80281
80282 2003-12-03  Bruno Haible  <bruno@clisp.org>
80283
80284         * m4/gettext.m4: Upgrade from gettext-0.13.
80285         * m4/po.m4: Upgrade from gettext-0.13.
80286         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80287         * m4/intmax.m4: New file, from gettext-0.13.
80288         * m4/printf-posix.m4: New file, from gettext-0.13.
80289
80290 2003-11-29  Karl Berry  <karl@gnu.org>
80291
80292         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80293
80294 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80295             Bruno Haible  <bruno@clisp.org>
80296
80297         * lib/printf-parse.h: Don't include sys/types.h.
80298         (ARG_NONE): New macro.
80299         (char_directive): Change type of *arg_index fields to size_t.
80300         * lib/printf-parse.c: Don't include sys/types.h.
80301         (SSIZE_MAX): Remove macro.
80302         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80303         Remove unnecessary overflow check.
80304         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80305         fields.
80306
80307 2003-11-25  Bruno Haible  <bruno@clisp.org>
80308
80309         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80310
80311 2003-11-25  Bruno Haible  <bruno@clisp.org>
80312
80313         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80314         gt_TYPE_SSIZE_T.
80315
80316 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80317
80318         * modules/alloca: Remove dependency on xalloc.
80319
80320 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80321
80322         * lib/alloca.c: Remove dependency on xalloc module.
80323         (xalloc_die): Remove.
80324         (memory_full) [!defined emacs]: New macro.
80325         [!defined emacs]: Don't include xalloc.h.
80326         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80327         address arithmetic overflows.  Change datatypes a bit to avoid
80328         unnecessary casts.
80329
80330 2003-11-22  Jim Meyering  <jim@meyering.net>
80331
80332         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80333         s/size/size_t/.
80334
80335 2003-11-21  Karl Berry  <karl@gnu.org>
80336
80337         * config/config.{sub,guess}: update from config.
80338
80339 2003-11-18  Karl Berry  <karl@gnu.org>
80340
80341         * config/config.{sub,guess}: update from config.
80342
80343         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80344
80345 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80346
80347         * README: Mention that S+T cannot overflow if S is the size of
80348         an existing object and T is sufficiently small.
80349
80350 2003-11-17  Jim Meyering  <jim@meyering.net>
80351
80352         On systems without utime and without a utimes function capable of
80353         dealing with a NULL struct utimbuf* argument, this utime replacement
80354         could -- in unusual circumstances -- leak a file descriptor.
80355         * lib/utime.c: Include <unistd.h> and <errno.h>.
80356         (utime_null): Be sure to close `fd' and to preserve errno.
80357         Reported by Geoff Collyer via Arnold Robbins.
80358
80359 2003-11-17  Bruno Haible  <bruno@clisp.org>
80360
80361         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
80362         (Depends-on): Add xsize.
80363
80364 2003-11-17  Bruno Haible  <bruno@clisp.org>
80365
80366         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
80367
80368 2003-11-17  Bruno Haible  <bruno@clisp.org>
80369
80370         * lib/vasnprintf.c (alloca): Remove fallback definition.
80371         (freea): Remove definition.
80372         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
80373         Reported by Paul Eggert.
80374
80375 2003-11-16  Paul Eggert  <eggert@twinsun.com>
80376             Bruno Haible  <bruno@clisp.org>
80377
80378         Protect against address arithmetic overflow.
80379         * lib/printf-args.h: Include stddef.h.
80380         (arguments): Change type of field 'count' to size_t.
80381         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
80382         'unsigned int' where appropriate.
80383         * lib/printf-parse.h: Include sys/types.h.
80384         (char_directive): Change type of *arg_index fields to ssize_t.
80385         (char_directives): Change type of fields 'count', max_*_length to
80386         size_t.
80387         * lib/printf-parse.c: Include sys/types.h and xsize.h.
80388         (SSIZE_MAX): Define fallback value.
80389         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
80390         instead of 'int' where appropriate. Check a_allocated, d_allocated
80391         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
80392         * lib/vasnprintf.c: Include xsize.h.
80393         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
80394         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
80395         overflow. Avoid wraparound when converting a width or precision from
80396         decimal to binary.
80397
80398 2003-11-16  Bruno Haible  <bruno@clisp.org>
80399
80400         Update from GNU gettext.
80401         * lib/printf-parse.c: Generalize to it can be compiled for wide
80402         strings.
80403         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
80404         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
80405         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
80406         SNPRINTF): New macros.
80407         Don't include <alloca.h> if the file is used inside libintl.
80408         (local_wcslen): New function, for Solaris 2.5.1.
80409         (VASNPRINTF): Use it instead of wcslen.
80410
80411 2003-11-16  Bruno Haible  <bruno@clisp.org>
80412
80413         * lib/xsize.h (xmax): New function.
80414         (xsum, xsum3, xsum4): Declare as "pure" functions.
80415
80416 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80417
80418         * modules/xalloc (Files): Undo latest change, since xalloc.h
80419         no longer needs SIZE_MAX or PTRDIFF_MAX.
80420
80421 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80422
80423         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
80424         gl_PTRDIFF_MAX.
80425
80426 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80427
80428         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
80429         "return", to pacify some unknown compiler.  Problem reported
80430         by Joerg Schilling.
80431
80432 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80433
80434         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
80435         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
80436         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
80437         heuristic is just as accurate as far as we know, and it removes a
80438         dependency on size_max.m4 and ptrdiff_max.m4.
80439
80440 2003-11-11  Bruno Haible  <bruno@clisp.org>
80441
80442         * modules/xsize (Files): Add m4/size_max.m4.
80443         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
80444
80445 2003-11-11  Bruno Haible  <bruno@clisp.org>
80446
80447         * m4/size_max.m4: New file.
80448         * m4/ptrdiff_max.m4: New file.
80449         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
80450         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
80451         (gl_XALLOC): Invoke it.
80452
80453 2003-11-11  Bruno Haible  <bruno@clisp.org>
80454
80455         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80456         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80457         defined.
80458
80459 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80460
80461         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80462         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80463         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80464         From Bruno Haible.
80465         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80466         not (size_t) -1, since it's defined here.
80467
80468 2003-11-09  Karl Berry  <karl@gnu.org>
80469
80470         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80471
80472 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80473
80474         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80475         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80476         Reject sizes of exactly SIZE_MAX bytes.
80477         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80478         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80479
80480 2003-11-05  Bruno Haible  <bruno@clisp.org>
80481
80482         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80483         SIZE_MAX defined in <limits.h> on Solaris.
80484
80485 2003-11-04  Jim Meyering  <jim@meyering.net>
80486
80487         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
80488         variable names, rather than @VAR@.
80489         * modules/poll: Likewise.
80490
80491 2003-11-04  Bruno Haible  <bruno@clisp.org>
80492
80493         * modules/xsize: New file.
80494         * modules/linebreak: Depend on xsize.
80495         * MODULES.html.sh (func_all_modules): Add xsize.
80496
80497 2003-11-04  Bruno Haible  <bruno@clisp.org>
80498
80499         * m4/xsize.m4: New file.
80500
80501 2003-11-04  Bruno Haible  <bruno@clisp.org>
80502
80503         * lib/xsize.h: New file.
80504         * lib/linebreak.c: Include xsize.h.
80505         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
80506         argument for overflow.
80507         Suggested by Paul Eggert.
80508
80509 2003-11-03  Karl Berry  <karl@gnu.org>
80510
80511         * config/config.{guess,sub}: update from config.
80512
80513 2003-11-03  Jim Meyering  <jim@meyering.net>
80514
80515         * modules/userspec (lib_SOURCES): Add userspec.h.
80516         (Include): Add "userspec.h".
80517         Improve description.
80518
80519 2003-11-03  Jim Meyering  <jim@meyering.net>
80520
80521         * lib/userspec.c: Include "userspec.h".
80522         * lib/userspec.h: New file.
80523
80524 2003-11-03  Bruno Haible  <bruno@clisp.org>
80525
80526         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
80527
80528 2003-11-03  Bruno Haible  <bruno@clisp.org>
80529
80530         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
80531         available, to avoid (extremely rare) race condition.
80532         Suggested by Paul Eggert.
80533
80534 2003-11-02  Karl Berry  <karl@gnu.org>
80535
80536         * config/srclist.txt (vasprintf.c): sync broken, sigh.
80537
80538 2003-10-31  Paul Eggert  <eggert@twinsun.com>
80539
80540         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
80541         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
80542         (read_filesystem_list): Set and use me_type_malloced.
80543         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
80544         whatever the type happens to be), for brevity and consistency.
80545         Check for size calculation overflow on Alphas running OSF/1.
80546
80547 2003-10-31  Jim Meyering  <jim@meyering.net>
80548
80549         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
80550
80551         * lib/linebuffer.c: Include <string.h> for declaration of memset.
80552
80553 2003-10-30  Paul Eggert  <eggert@twinsun.com>
80554             Bruno Haible  <bruno@clisp.org>
80555
80556         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
80557         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
80558
80559 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80560
80561         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
80562         netbsd*-gnu*.  Suggested by Robert Millan.
80563
80564 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80565
80566         * modules/group-member: Depend on stdbool.
80567
80568 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80569
80570         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
80571
80572 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80573
80574         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
80575         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
80576         after the 'gnu' in these cases.  This fixes some bugs in the
80577         previous change, and is based on suggestions by Robert Millan.
80578
80579 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80580
80581         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
80582         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
80583         no longer needed.
80584         * lib/quotearg.c (quotearg_n_options): Use it.
80585         * lib/group-member.c: Include <stdbool.h>.
80586         (free_group_info): Arg is now const *; don't free arg.
80587         (get_group_info): Now returns bool and accepts struct group_info *,
80588         rather than returning a malloc'ed struct group_info *.
80589         All uses changed.  Check for overflow in internal size calculation.
80590
80591         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
80592         rather than xmalloc/xrealloc.
80593         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
80594         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
80595         conformance bug: the old code used a pointer after freeing the
80596         storage that it addressed.
80597         * lib/hash.c (hash_initialize): Simplify the code by using
80598         xalloc_oversized rather than doing it by hand.
80599         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
80600         the buffer preserved.  Use free and xmalloc instead.
80601         * lib/quotearg.c (quotearg_n_options): Likewise.
80602         Use a simpler test for size overflow.  Don't use xalloc_oversized
80603         because unsigned int might be wider than size_t (!); this suggests
80604         that we should switch from unsigned int to size_t for slot numbers.
80605
80606 2003-10-28  Paul Eggert  <eggert@twinsun.com>
80607
80608         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
80609         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
80610         NetBSD kernels.  Requested by Richard Stallman.
80611
80612 2003-10-27  Paul Eggert  <eggert@twinsun.com>
80613
80614         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
80615         to allocate the returned structure.  Do not allocate a subarray,
80616         as x2nrealloc will do that.
80617         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
80618         instead of xnrealloc.
80619         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
80620
80621 2003-10-27  Bruno Haible  <bruno@clisp.org>
80622
80623         * lib/stdbool_.h: Better support for BeOS.
80624
80625 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80626
80627         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
80628         now uses inline.
80629
80630 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80631
80632         * lib/xalloc.h (xalloc_oversized): New static inline function, for
80633         callers that want to do their own size-overflow checking.  Include
80634         <stdbool.h>, since xalloc_oversized returns bool.
80635         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
80636         to use xalloc_oversized.
80637
80638         Add two functions x2realloc, x2nrealloc, for programs that grow
80639         arrays dynamically by doubling their sizes.
80640         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
80641         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
80642         New functions.
80643
80644         Port to C99 semantics for 'inline' of external functions.
80645         Bug reported by Bruno Haible.
80646         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
80647         with the old contents of xnmalloc.
80648         (xnmalloc, xmalloc): Use it.
80649         (xnrealloc_inline): New static inline function,
80650         with the old contents of xnrealloc.
80651         (xnrealloc, xrealloc): Use it.
80652
80653         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
80654         that.
80655
80656 2003-10-26  Karl Berry  <karl@gnu.org>
80657
80658         * config/srclist.txt (COPYING.DOC): no longer available from
80659         /gd/gnuorg; don't know where the ultimate source is.
80660
80661 2003-10-25  Paul Eggert  <eggert@twinsun.com>
80662
80663         Fix several address-calculation bugs in the hash modules,
80664         plus some minor code cleanup.
80665
80666         * lib/hash.h: Include <stdbool.h>, for bool.
80667         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
80668         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
80669         hash_get_n_entries, hash_get_max_bucket_length,
80670         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
80671         hash_rehash): Use size_t rather than unsigned.
80672         * lib/hash.c (struct hash_table, hash_get_n_buckets,
80673         hash_get_n_buckets_used, hash_get_n_entries,
80674         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
80675         hash_get_entries, hash_do_for_each, hash_string, is_prime,
80676         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
80677         Likewise.
80678         (SIZE_MAX): Define if not defined.
80679         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
80680         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
80681         hash_print):
80682         Use const * when possible.
80683         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
80684         (check_tuning): Fix bug: if tuning parameters were very close to
80685         0 or 1, rounding errors could have caused subscript violations.
80686         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
80687         (hash_initialize): Add 'fail:' label
80688         to free table and return NULL, and use it to simplify code.
80689         Use calloc rather than clearing the storage ourself.
80690         (hash_initialize, hash_rehash): Check for arithmetic overflow in
80691         buffer size calculations.
80692         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
80693         Include <stddef.h>, for size_t.
80694         * lib/hash-pjw.c (hash_pjw): Likewise.
80695         Switch to method described by Bruno Haible.
80696         Include <limits.h>, for CHAR_BIT.
80697         (SIZE_BITS): New macro.
80698
80699 2003-10-23  Paul Eggert  <eggert@twinsun.com>
80700
80701         * m4/getline.m4 (AM_FUNC_GETLINE):
80702         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
80703         hosts.  Problem reported by Derek Robert Price in
80704         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
80705         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
80706         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
80707
80708 2003-10-21  Paul Eggert  <eggert@twinsun.com>
80709
80710         * lib/getndelim2.c (getndelim2): When size calculation overflows,
80711         ceiling the allocation at NMAX bytes rather than silently
80712         discarding input bytes before NMAX is reached.  This makes
80713         a difference only if NMAX exceeds SIZE_MAX / 2.
80714
80715         * lib/obstack.c: Merge from glibc.
80716         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
80717         Add libc_hidden_def (_obstack_newchunk).
80718         (_obstack_free) [! defined _LIBC]: Remove.
80719         [defined _LIBC]: Make a strong alias from obstack_free, rather than
80720         a clone of the function body.
80721         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
80722         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
80723
80724         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
80725         glibc.
80726         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
80727         arg to memcpy.
80728
80729         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
80730         (obstack_ptr_grow_fast, obstack_int_grow_fast):
80731         Don't use lvalue casts, as GCC plans to remove support for them
80732         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
80733         was also present in the non-GCC version, indicating that this
80734         code had always been buggy and had never been widely used.
80735         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
80736         Use the fast variant of each macro, rather than copying the
80737         definiens of the fast variant; that way, we'll be more likely to
80738         catch future bugs in the fast variants.
80739
80740 2003-10-20  Bruno Haible  <bruno@clisp.org>
80741
80742         * modules/wait-process: New file.
80743         * MODULES.html.sh (func_all_modules): Add wait-process.
80744
80745 2003-10-20  Bruno Haible  <bruno@clisp.org>
80746
80747         * m4/wait-process.m4: New file.
80748
80749 2003-10-20  Bruno Haible  <bruno@clisp.org>
80750
80751         * lib/wait-process.h: New file, from GNU gettext.
80752         * lib/wait-process.c: New file, from GNU gettext.
80753
80754 2003-10-19  Jim Meyering  <jim@meyering.net>
80755
80756         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
80757         HPUX 10.20.
80758
80759 2003-10-18  Karl Berry  <karl@gnu.org>
80760
80761         * config/config.guess: update from config.
80762
80763 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80764
80765         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
80766         (getgroups): First arg is int, not size_t.
80767         Don't let 'free' mangle errno.
80768
80769 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80770
80771         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
80772
80773 2003-10-16  Karl Berry  <karl@gnu.org>
80774
80775         * config/config.{guess,sub}: update from config.
80776
80777 2003-10-16  Jim Meyering  <jim@meyering.net>
80778
80779         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
80780         memcpy.
80781
80782 2003-10-15  Paul Eggert  <eggert@twinsun.com>
80783
80784         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
80785         (SIZE_MAX): Remove.
80786         (new_exclude, add_exclude_file): Initial size no longer needs to
80787         be a power of 2.
80788         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
80789         our own address arithmetic overflow checking.
80790
80791         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
80792         (fnmatch): Do not alloca more than 2000 wide characters;
80793         instead, use malloc for large buffers.
80794         Check for address arithmetic overflow, and return -1
80795         with errno set to ENOMEM in that case.
80796         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
80797         (NEW_PATTERN): Do not alloca more than 8000 bytes;
80798         instead, return -1.  Check for address arithmetic overflow.
80799
80800 2003-10-14  Paul Eggert  <eggert@twinsun.com>
80801
80802         Handle invalid suffixes and overflow independently, so that
80803         callers can treat them independently as needed.  Fix some bugs in
80804         suffix handling, e.g., "100k@" was not diagnosed as an invalid
80805         suffix for a human-readable blocksize.  The major caller-visible
80806         change is the addition of a new
80807         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
80808         that both overflow and suffix chars were found.
80809
80810         * lib/human.c (humblock): Don't check separately for invalid suffix
80811         char; that is xstrtoumax's job (now that its bug is fixed).
80812         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
80813         INTMAX_MAX]: New macros.
80814         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
80815         TYPE_MAXIMUM): New macros.
80816         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
80817         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
80818         if overflow occurs, as it's what __strtol does and it's more useful
80819         in practice.
80820         (__xstrtol): If __strtol reports some error other than ERANGE,
80821         reflect it to the caller as LONGINT_INVALID.  If it reports
80822         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
80823         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
80824         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
80825         value.
80826         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
80827         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
80828         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
80829         [defined UINTMAX_MAX]: New macros.
80830
80831 2003-10-14  Bruno Haible  <bruno@clisp.org>
80832
80833         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
80834
80835 2003-10-14  Bruno Haible  <bruno@clisp.org>
80836
80837         * m4/sig_atomic_t: New file, from GNU gettext.
80838         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
80839
80840 2003-10-14  Bruno Haible  <bruno@clisp.org>
80841
80842         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
80843         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
80844         Also use volatile where needed.
80845
80846 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80847
80848         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
80849         Change maintainer from Bruno Haible to 'all'.
80850
80851 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80852
80853         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
80854
80855 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80856
80857         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
80858         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
80859         and define in terms of the other primitives.
80860         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
80861         (SIZE_MAX): Define if not already defined.
80862         (array_size_overflow): New function.
80863         (xalloc_die): Abort instead of exiting if 'error' returns.
80864         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
80865         (xmalloc, xrealloc): Use them.
80866         (xcalloc): Check for address arithmetic overflow.
80867         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
80868         a bit faster than strcpy.
80869
80870 2003-10-10  Simon Josefsson  <jas@extundo.com>
80871
80872         * modules/argp (Depends-on): Add restrict and strcase.
80873
80874 2003-10-10  Simon Josefsson  <jas@extundo.com>
80875
80876         * m4/argp.m4: Add AC_C_INLINE.
80877
80878 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80879
80880         Merge getpass from libc, plus a few fixes.
80881
80882         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
80883         Include <stdbool.h>.
80884         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
80885         __fsetlocking to empty.
80886         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
80887         do include <bits/libc-lock.h>.
80888         Do not include <fcntl.h>; not needed.
80889         [_LIBC]: Include <wchar.h>.
80890         (NOTCANCEL_MODE): New macro.
80891         (flockfile, funlockfile) [_LIBC]: New macros.
80892         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
80893         [!_LIBC]: New macros.
80894         (call_fclose): New function.
80895         (getpass): Use it.  Save tty stream separately; this simplifies the
80896         code and makes it more reliable if stdin happens to equal stdout.
80897         Invoke __fsetlocking on tty.
80898         Handle thread cancellation if needed.
80899         Namespace cleanup (use __tcgetattr, __getline).
80900         Use bool for Booleans.
80901         [USE_IN_LIBIO]: Handle wide streams.
80902         [!_LIBC]: Unconditionally do the fseek, since we don't know what
80903         stream might go where.
80904
80905         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
80906         doesn't have to include <stdio.h> before us.
80907         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
80908         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
80909         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
80910         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
80911         if not declared, so that we can use getpass.c code from libc without
80912         rewriting it.
80913         (flockfile, ftrylockfile, funlockfile): New macros.
80914
80915 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80916
80917         * modules/getpass: Depend on stdbool.
80918
80919 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80920
80921         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
80922
80923 2003-10-07  Karl Berry  <karl@gnu.org>
80924
80925         * config/config.{guess,sub}: update from config.
80926
80927 2003-10-06  Jim Meyering  <jim@meyering.net>
80928             Bruno Haible  <bruno@clisp.org>
80929
80930         This lets translators provide better translations for the
80931         "Written by ..." part of --version output.
80932         * lib/version-etc.h: Include stdarg.h.
80933         (version_etc_copyright): Declare as readonly.
80934         (version_etc): Make this function variadic with a NULL-terminated list
80935         of author name strings.
80936         (version_etc_va): New declaration.
80937         * lib/version-etc.c: Include stdarg.h, stdlib.h.
80938         (version_etc_copyright): Declare as readonly.
80939         (version_etc_va): New function. Provide a different translatable string
80940         for each possible number of authors < 10. Abbreviate when there are 10
80941         authors or more.
80942         (version_etc): Make this function variadic. Call version_etc_va.
80943         Suggestion from Gary V. Vaughan.
80944
80945         * lib/long-options.h (parse_long_options): Change prototype: the
80946         authors string is moved to the end and becomes variadic.
80947         * lib/long-options.c: Include stdarg.h.
80948         (parse_long_options): Make this function variadic, too.
80949         Call version_etc_va, not version_etc.
80950
80951 2003-10-06  Bruno Haible  <bruno@clisp.org>
80952
80953         * modules/version-etc-2: Remove file.
80954         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
80955
80956 2003-10-06  Bruno Haible  <bruno@clisp.org>
80957
80958         * modules/fatal-signal: New file.
80959         * MODULES.html.sh (func_all_modules): Add fatal-signal.
80960
80961 2003-10-06  Bruno Haible  <bruno@clisp.org>
80962
80963         * m4/fatal-signal.m4: New file.
80964         * m4/signalblocking.m4: New file, from GNU gettext.
80965
80966 2003-10-06  Bruno Haible  <bruno@clisp.org>
80967
80968         * lib/version-etc-2.h: Remove file.
80969         * lib/version-etc-2.c: Remove file.
80970
80971 2003-10-06  Bruno Haible  <bruno@clisp.org>
80972
80973         * lib/fatal-signal.h: New file, from GNU gettext.
80974         * lib/fatal-signal.c: New file, from GNU gettext.
80975
80976 2003-10-05  Paul Eggert  <eggert@twinsun.com>
80977
80978         * README: Rework advice for preventing empty .o files.
80979         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
80980         not <sys/types.h>.
80981
80982 2003-10-04  Karl Berry  <karl@gnu.org>
80983
80984         * lib/argp*: update from libc.
80985
80986 2003-10-04  Karl Berry  <karl@gnu.org>
80987
80988         * config/config.{guess,sub}: update from config.
80989
80990 2003-10-02  Bruno Haible  <bruno@clisp.org>
80991
80992         * modules/lchown (Include): Add lchown.h.
80993         * modules/time_r (Include): Use "..." syntax.
80994         * modules/xgetdomainname (Include): Add xgetdomainname.h.
80995
80996 2003-10-01  Simon Josefsson  <jas@extundo.com>
80997
80998         * MODULES.html.sh (func_all_modules): Move gethostname from section
80999         'based on' to section 'lacking' POSIX:2001.
81000
81001 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81002
81003         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81004         to output mode on the same stream.
81005
81006 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81007
81008         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81009         Fix arg typo in previous patch.
81010
81011 2003-09-28  Jim Meyering  <jim@meyering.net>
81012
81013         * lib/error.c: Correct cpp indentation.
81014
81015 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81016
81017         * modules/free: New file.
81018
81019 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81020
81021         * m4/free.m4: New file.
81022
81023 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81024
81025         * lib/minmax.h (MIN, MAX)
81026         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81027         Omit the special code that used __typeof__, since we worry that
81028         it could be more trouble than it's worth.  See:
81029         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81030         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81031
81032         * lib/free.c: New file.
81033
81034 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81035
81036         Trivial fixes to Makefile.am parts of module listings.
81037         * modules/strstr: Append strstr.h to lib_SOURCES.
81038         * modules/strcase: Likewise, for strcase.h.
81039
81040 2003-09-27  Karl Berry  <karl@gnu.org>
81041
81042         * config/mkinstalldirs: update from automake.
81043
81044 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81045
81046         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81047         (error_tail): Do not loop, reallocating temporary buffer, since
81048         the output cannot contain more wide characters than the input
81049         contains bytes, the size must be big enough already.  This avoids
81050         one potential size overflow calculation.  Check for size overflow
81051         when calculating temporary buffer size.  Free temporary buffer
81052         when done, if it was allocated with malloc; this plugs a memory
81053         leak.  Remove casts from void * to pointers, that are no longer
81054         needed now that we're assuming C89 or better.
81055
81056         Merge error changes from glibc.
81057
81058         * lib/error.c, error.h: Update copyright notice header to match glibc.
81059         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81060         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81061         Disable cancellation while printing error.
81062         * lib/error.h: Prepend __ to parameter names.
81063
81064 2003-09-26  Jim Meyering  <jim@meyering.net>
81065
81066         * lib/error.c (error_tail): Move some declarations
81067         into inner scope where the local variables are used.
81068
81069 2003-09-26  Bruno Haible  <bruno@clisp.org>
81070
81071         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81072         stpncpy().
81073         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81074
81075 2003-09-26  Bruno Haible  <bruno@clisp.org>
81076
81077         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81078         (stpncpy): Define as alias for gnu_stpncpy.
81079         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81080
81081 2003-09-25  Simon Josefsson  <jas@extundo.com>
81082
81083         * lib/xgetdomainname.h: New file.
81084         * lib/xgetdomainname.c: New file.
81085
81086 2003-09-25  Simon Josefsson  <jas@extundo.com>
81087             Bruno Haible  <bruno@clisp.org>
81088
81089         * modules/getdomainname: New file.
81090         * modules/xgetdomainname: New file.
81091         * MODULES.html.sh (func_all_modules): Add getdomainname,
81092         xgetdomainname.
81093
81094 2003-09-25  Simon Josefsson  <jas@extundo.com>
81095             Bruno Haible  <bruno@clisp.org>
81096
81097         * m4/getdomainname.m4: New file.
81098
81099 2003-09-25  Simon Josefsson  <jas@extundo.com>
81100             Bruno Haible  <bruno@clisp.org>
81101
81102         * lib/getdomainname.h: New file.
81103         * lib/getdomainname.c: New file.
81104
81105 2003-09-25  Karl Berry  <karl@gnu.org>
81106
81107         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81108
81109 2003-09-25  Karl Berry  <karl@gnu.org>
81110
81111         * config/install-sh: update from automake.
81112
81113 2003-09-25  Bruno Haible  <bruno@clisp.org>
81114
81115         * modules/version-etc-2: New file, from modules/version-etc with
81116         modifications.
81117         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81118
81119 2003-09-25  Bruno Haible  <bruno@clisp.org>
81120
81121         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81122         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81123
81124 2003-09-24  Simon Josefsson  <jas@extundo.com>
81125
81126         * modules/xgethostname: Add xgethostname.h.
81127
81128 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81129
81130         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81131         the buffer associated with the argument.  Bug reported by
81132         Simon Josefsson.
81133
81134 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81135
81136         * README: Document assumptions that 'int' is at least 32 bits
81137         wide, that integer arithmetic is 2's complement without overflow,
81138         that there are no holes in integer values, that adding sizes of
81139         two nonoverlapping objects can't overflow, and that all-bits-zero
81140         yields scalar zero.  Fix spelling and capitalization typos.
81141
81142 2003-09-19  Karl Berry  <karl@gnu.org>
81143
81144         * lib/argp.h: update from libc.
81145
81146 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81147
81148         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81149         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81150         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81151
81152 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81153
81154         * gnulib-tool: Use "test -h", not "test -L", for portability
81155         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81156         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81157         (sed_extract_prog): Issue s commands one-by-one, rather than
81158         using \| in one s command.
81159
81160 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81161
81162         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81163         input error, instead of returning NULL the next time we are called
81164         (and therefore losing track of errno).
81165
81166 2003-09-16  Bruno Haible  <bruno@clisp.org>
81167
81168         * gnulib-tool (func_create_testdir): Warn about duplicated
81169         dependencies.
81170
81171 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81172
81173         * modules/argmatch, modules/fatal, modules/obstack,
81174         modules/xalloc, modules/xgethostname: Sort dependencies by
81175         importance, not alphabetically.
81176
81177 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81178
81179         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81180         fails, so that the caller gets the proper errno.
81181
81182         * lib/readutmp.c (read_utmp): Likewise.
81183         Check for fstat error.  Close stream and free storage
81184         when failing.
81185
81186 2003-09-14  Karl Berry  <karl@gnu.org>
81187
81188         * config/srclist.txt (strdup.c): disable for c89 changes.
81189
81190 2003-09-14  Jim Meyering  <jim@meyering.net>
81191
81192         * lib/getloadavg.c: Correct cpp indentation.
81193         * lib/strdup.c: Likewise.
81194         * lib/vasnprintf.c: Likewise.
81195
81196 2003-09-14  Bruno Haible  <bruno@clisp.org>
81197
81198         * modules/fwriteerror: New file.
81199         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81200
81201 2003-09-14  Bruno Haible  <bruno@clisp.org>
81202
81203         * lib/fwriteerror.h: New file.
81204         * lib/fwriteerror.c: New file.
81205
81206 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81207
81208         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81209         modules/xgethostname, modules/xalloc: Depend on exit.
81210
81211 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81212
81213         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81214
81215         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81216         and AC_MINIX, too, so that their extensions are available.
81217
81218         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81219         This macro has been superseded by gl_BACKUPFILE.
81220
81221         More patches to assume C89 or better.
81222
81223         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81224
81225         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81226         unconditionally.
81227         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81228         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81229         Include <string.h>, <stdlib.h> unconditionally.
81230         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81231         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81232         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81233         headers or for string.h.
81234         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81235         or strtoul.
81236
81237         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81238         headers.
81239         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81240         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81241         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81242         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81243         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81244         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81245         memcpy, memset.
81246         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81247         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81248         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81249         strtol.
81250         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81251         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81252         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81253         strtoul.
81254
81255 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81256
81257         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81258         * lib/obstack.c [!defined _LIBC]: Likewise.
81259         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81260         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81261         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81262
81263         More changes to assume C89 or better.
81264
81265         * lib/error.c (error_tail): Assume vprintf.
81266
81267         * lib/argmatch.c (getenv): Remove decl.
81268         * lib/progreloc.c (get_full_program_name): Define via prototype.
81269         * lib/setenv.c (clearenv): Likewise.
81270         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81271         needed.
81272         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81273         (malloc, memcpy): Remove decls.
81274         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81275         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81276         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81277         (memcpy): Remove macro.
81278         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81279         (__P): Remove.  All uses removed.
81280         (PTR): Remove.  All uses changed to void *.
81281         (CHAR_BIT, NULL): Remove.
81282         (spaces, zeros, memset_space, memset_zero)
81283         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81284         Remove.
81285         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81286         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81287         Define with prototype.
81288         Remove now-unnecessary prototype decl.
81289         (extra_args_spec): Assume ANSI C.  All uses changed.
81290         (extra_args_spec_iso): Remove.
81291         (my_strftime, emacs_strftimeu): Define via prototype.
81292         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81293         unconditionally.
81294         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81295         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81296         (strtoul, strtol): Remove decls.
81297         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81298         LONG_MAX): Remove.
81299         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81300         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81301         (LOCALE_PARAM_PROTO): New macro.
81302         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81303         (INTERNAL (strtol), strtol): Define with a prototype.
81304         (PARAMS): Remove.  All uses removed.
81305         * lib/tempname.c: Include <string.h> unconditionally.
81306         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81307         * lib/xgethostname.c (main): Define with a prototype.
81308         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81309         Include <stdlib.h> unconditionally.
81310         (calloc, malloc, realloc, free): Remove decls.
81311         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81312         Include <stdlib.h> unconditionally.  Sort include file names.
81313         (strtod): Remove.
81314         (xstrtod): Define with a prototype.
81315         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81316         (strtol, strtoul): Remove decls.
81317
81318 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81319
81320         More patches to assume C89 or better.
81321         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81322         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81323         string.h, memchr, STDC_HEADERS.
81324
81325 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81326
81327         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81328         Include <stdlib.h>, <string.h> unconditionally.
81329         Remove now-unnecessary cast to char *.
81330         * lib/strnlen.c: Include <string.h> unconditionally.
81331         * lib/yesno.c (yesno): Define with a prototype.
81332
81333 2003-09-11  Bruno Haible  <bruno@clisp.org>
81334
81335         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81336
81337 2003-09-10  Jim Meyering  <jim@meyering.net>
81338
81339         * lib/error.c: Correct indentation of cpp directives.
81340
81341 2003-09-10  Bruno Haible  <bruno@clisp.org>
81342
81343         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81344         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81345         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81346         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81347         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81348         <stdlib.h> and <string.h> checks.
81349         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81350         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81351
81352 2003-09-10  Bruno Haible  <bruno@clisp.org>
81353
81354         * lib/strcspn.c: Include <string.h> unconditionally.
81355         * lib/strpbrk.c: Include <string.h> unconditionally.
81356         * lib/strstr.c: Include <string.h> unconditionally.
81357         * lib/unicodeio.c: Include <string.h> unconditionally.
81358         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
81359         * lib/unsetenv.c: Likewise.
81360         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
81361         * lib/yesno.c: Include <stdlib.h> unconditionally.
81362         (rpmatch): Add prototype.
81363
81364 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81365
81366         More patches to assume C89 or better.
81367         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
81368         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
81369         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
81370         or for string.h.
81371         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
81372         stdlib.h.
81373         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
81374         C headers.
81375         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
81376         string.h.
81377         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
81378         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
81379         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
81380         or for string.h.
81381         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
81382         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
81383         C headers.
81384         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
81385         memcpy.
81386         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
81387         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
81388         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
81389         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
81390         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
81391         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
81392         string.h, free.
81393         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
81394         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
81395         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
81396         C headers, or for string.h.
81397         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
81398         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
81399         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
81400         headers, memory.h, stdlib.h, string.h, strings.h.
81401         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
81402         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
81403         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
81404         strchr.
81405         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
81406         headers, memory.h, string.h.
81407         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
81408         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
81409         free.
81410         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
81411         headers.
81412         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
81413         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
81414         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
81415         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
81416         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
81417
81418 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81419
81420         More K&R removal.
81421
81422         * lib/acosl.c (main): Use a prototype.
81423         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
81424         tanl.c: Likewise.
81425
81426         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
81427
81428         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
81429         (getopt, etopt_long, getopt_long_only, _getopt_internal)
81430         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
81431         with a prototype.
81432         * lib/getopt.c (const): Remove macro.
81433         Include <string.h> unconditionally.
81434         (my_index): Remove; all uses changed to strchr.
81435         (strlen): Remove decl.
81436         (exchange): Remove forward decl; no longer needed.
81437         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
81438         Define with prototype.
81439         * lib/getopt1.c (const): Remove macro.
81440         (getopt_long, getopt_long_only, main): Define with prototype.
81441
81442         * lib/getugroups.c: Include <string.h> unconditionally.
81443
81444         * lib/getusershell.c: Include <stdlib.h> unconditionally.
81445         (getusershell, setusershell, endusershell, readname, main):
81446         Define with prototypes.
81447
81448         * lib/group-member.c: Include group-member.h first.
81449         Include <stdlib.h> unconditionally.
81450
81451         * lib/hard-locale.c: Include hard-locale.h first.
81452         Include <stdlib.h>, <string.h> unconditionally.
81453
81454         * lib/hash.c (free, malloc): Remove decls.
81455         Include <stdlib.h> unconditionally.
81456
81457         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81458         (getenv): Do not declare.
81459
81460         * lib/idcache.c: Include <string.h> unconditionally.
81461
81462         * lib/long-options.c: Include long-options.h first, to test interface.
81463         Include <stdlib.h> unconditionally.
81464
81465         * lib/makepath.c: Include makepath.h first, to test interface.
81466         Include <stdlib.h> and <string.h> unconditionally.
81467
81468         * lib/linebuffer.c: Include <stdlib.h>.
81469         (free): Remove decl.
81470
81471         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81472         stddef.h. rpl_malloc returns void *, not char *.
81473         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81474         prototype.
81475
81476         * lib/md5.h: Include <limits.h> unconditionally.
81477         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81478         (__P): Remove; all uses removed.
81479         * lib/md5.c: Include "md5.h" first.
81480         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81481         md5_buffer, md5_process_bytes, md5_process_block):
81482         Define with prototypes.
81483         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
81484         * lib/sha.c: Include "sha.h" first.
81485         Include <stdlib.h>, <string.h> unconditionally.
81486
81487         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
81488         * lib/memcmp.c (__ptr_t): Likewise.
81489         * lib/memrchr.c (__ptr_t): Likewise.
81490         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
81491         Include <string.h> unconditionally.
81492         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
81493         * lib/memchr.c: Include <stdlib.h> unconditionally.
81494         * lib/memchr.c (LONG_MAX): Remove.
81495         * lib/memrchr.c (LONG_MAX): Likewise.
81496         * lib/memchr.c (__memchr): Define via a prototype.
81497         * lib/memrchr.c (__memrchr): Likewise.
81498         * lib/memcmp.c (__P): Remove, and remove all uses.
81499         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
81500         Remove forward decls; no longer needed.
81501         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
81502         Use types required by C89 in prototype.
81503
81504         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
81505         * lib/savedir.c: Likewise.
81506         * lib/mkdir.c (free): Remove decl.
81507         * lib/rmdir.c (rmdir): Define with a prototype.
81508         * lib/savedir.c: Include savedir.h first, to test interface.
81509
81510         * lib/mktime.c (STDC_HEADERS): Remove.
81511         Include <stdlib.h>, <string.h> unconditionally.
81512
81513         * lib/modechange.c: Include <stdlib.h> unconditionally.
81514         (malloc): Remove decl.
81515
81516         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
81517         (free): Remove decl.
81518
81519         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
81520         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
81521         (This type really should be intptr_t, but that's a C99ism.)
81522         (_obstack_memcpy): Remove: all uses changed to memcpy.
81523         Include <string.h> unconditionally.
81524         (struct obstack): Assume __STDC__ for types of members
81525         chunkfun, freefun, extra_arg.
81526         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
81527         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
81528         obstack_begin, obstack_specify_allocation,
81529         obstack_specify_allocation_with_arg, obstack_chunkfun,
81530         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
81531         Remove unprototyped decls and the macros that use them.
81532         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
81533         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
81534         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
81535         (defined __STDC__ && __STDC__)]:
81536         Remove nonprototyped code.
81537         Include <stdlib.h> unconditionally.
81538         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
81539         _obstack_allocated_p, _obstack_free, obstack_free,
81540         _obstack_memory_used, print_and_abort):
81541         Define using prototypes.
81542         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
81543         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
81544         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
81545         obstack_next_free, obstack_object_size, obstack_room) [0]:
81546         Remove unused, unprototyped code.
81547
81548         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
81549
81550         * lib/physmem.c (physmem_total, physmem_available, main): Define
81551         with prototypes.
81552
81553         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
81554         (main): Define with a prototype.
81555
81556         * lib/posixver.c (getenv): Remove decl.
81557
81558         * lib/putenv.c (malloc): Returns void *, not char *.
81559         Include <string.h> unconditionally.
81560         (strchr, memcpy, NULL): Do not define.
81561
81562         * lib/readtokens.c: Include readtokens.h first, to test interface.
81563         Include <stdlib.h>, <string.h> unconditionally.
81564         (init_tokenbuffer): Define with a prototype.
81565
81566         * lib/regex.c (PARAMS): Remove.  All uses removed.
81567         All uses of _RE_ARGS removed, too.
81568         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81569         unconditionally.
81570         (bzero): Assume memset exists.
81571         (memcmp, memcpy, NULL): Remove.
81572         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
81573         char, or assignments to local vars of type signed char.
81574         (init_syntax_once, PREFIX(extract_number_and_incr),
81575         PREFIX(print_partial_compiled_pattern),
81576         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
81577         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
81578         PREFIX(regex_grow_registers), PREFIX(regex_compile),
81579         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
81580         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
81581         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
81582         wcs_compile_range, byte_compile_range, truncate_wchar,
81583         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
81584         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
81585         count_mbs_length, wcs_re_match_2_internal,
81586         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
81587         PREFIX(alt_match_null_string_p),
81588         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
81589         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
81590         regfree, PREFIX(extract_number)): Define with prototype.  Remove
81591         now-unnecessary declaration, if any.
81592         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
81593         regcomp, regexec):
81594         Remove now-unnecessary casts among pointer types.
81595         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
81596
81597         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
81598         (free): Remove decl.
81599
81600         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
81601
81602         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
81603         (free): Remove decl.
81604
81605         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
81606         * lib/xgetcwd.c: Likewise.
81607
81608         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
81609         (free): Remove decl.
81610
81611         * lib/strchrnul.c (strchrnul): Define with a prototype.
81612         Fix bug: c_in was not converted to char before searching.
81613
81614         The following changes are not K&R related:
81615
81616         * lib/group-member.h: Include <sys/types.h>, so that this file is
81617         self-contained.
81618         * lib/makepath.h: Likewise.
81619
81620         * lib/getusershell.c (readname, default_index, line_size, readname):
81621         Use size_t, not int, for sizes.
81622         (readname): If the size overflows, report an error instead of
81623         looping forever.
81624
81625 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81626
81627         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
81628         libc.
81629
81630 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81631
81632         * README: New section: portability guidelines.
81633
81634 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81635
81636         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
81637         C89 spec.
81638
81639 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81640
81641         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
81642
81643 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81644
81645         Assume C89 or better; remove K&R cruft.
81646         A few of these changes were first proposed by Derek Robert Price
81647         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
81648
81649         * lib/addext.c: Include <string.h> unconditionally.
81650         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
81651         Don't declare getenv or malloc.
81652
81653         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
81654         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
81655         (NULL): Remove.
81656         (find_stack_direction, alloca): Use prototypes.
81657
81658         * lib/atexit.c (atexit): Define using a prototype.
81659
81660         * lib/basename.c, dirname.c, stripslash.c:
81661         Include <string.h> unconditionally.
81662
81663         * lib/bcopy.c: Include <stddef.h>.
81664         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
81665
81666         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
81667
81668         * lib/error.h (error, error_at_line, error_print_progname)
81669         [! (defined (__STDC__) && __STDC__)]: Remove decls.
81670         * lib/error.c: Include error.h first, to check interface.
81671         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81672         (VA_START): Remove; all uses changeed to va_start.
81673         (exit, strerror): Remove decls.
81674         (error_print_progname): Prototype uncondionally.
81675         Don't include <errno.h>; no longer needed.
81676         (private_strerror): Remove.
81677         (error_tail): Always define.
81678         (error, error_at_line): Assume C89 or better; always use prototypes.
81679         * lib/fatal.c: Include "fatal.h" first, to test interface.
81680         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81681         (VA_START): Remove; all uses changed to va_start.
81682         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
81683         this case.
81684         (exit): Remove decl.
81685         (fatal): Prototype unconditionally.  Assume va_start works.
81686         Abort at end, to pacify gcc.
81687
81688         * lib/euidaccess.c (main): Define with a prototype.
81689
81690         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
81691
81692         * lib/exitfail.c: Include <stdlib.h> unconditionally.
81693
81694         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
81695         prototypes.
81696         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
81697         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
81698         (getenv): Remove decl.
81699         (fnmatch): Define using a prototype.
81700         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
81701         (FCT): Define using a prototype.
81702
81703         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
81704
81705         * lib/gethostname.c: Include <stddef.h>.
81706         (gethostname): Define with prototype.  Length is size_t, not int.
81707
81708 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81709
81710         Assume C89 or better; remove K&R cruft.
81711         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
81712         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
81713         string.h, getenv, malloc.
81714         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
81715         headers.
81716         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
81717         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
81718         do not check for strerror.
81719         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
81720         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
81721         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
81722         do not check for doprnt or vprintf.
81723         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
81724         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
81725
81726 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81727
81728         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
81729         getversion.c should have been removed then, but was accidentally
81730         preserved.
81731
81732         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
81733         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
81734
81735 2003-09-08  Karl Berry  <karl@gnu.org>
81736
81737         * config/config.sub, config.guess, srclistvars.sh: update from savannah
81738                 config, forget about prep.
81739
81740         * config/depcomp, missing: update from automake.
81741
81742 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81743
81744         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
81745         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81746
81747 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81748
81749         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
81750         copy_tm_result.  Bug reported by Simon Josefsson in
81751         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81752
81753 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81754
81755         * m4/time_r.m4: New file.
81756         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
81757         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
81758         is. Check for timegm declaration.
81759         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
81760         Do not check for gmtime_r.
81761         Replace mktime if __mktime_internal does not exist and if mktime
81762         hasn't been replaced already.
81763
81764 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81765
81766         * lib/time_r.c, lib/time_r.h: New files.
81767
81768         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
81769         __localtime_r.
81770         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
81771         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
81772
81773         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
81774         __gmtime_r.
81775         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
81776         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
81777         Include <time_r.h>.
81778
81779         * lib/timegm.c: Switch to glibc implementation, with the following
81780         changes:
81781         [defined HAVE_CONFIG_H]: Include <config.h>.
81782         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
81783         (__mktime_internal) [!defined _LIBC]: New decl.
81784         (__gmtime_r) [!defined _LIBC]: New macro and function.
81785         (timegm): Use a prototype, since gnulib assumes C89.
81786         Do not bother declaring tmp to be const, as it's not really usefu.
81787         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
81788         (timegm): Declare only if HAVE_DECL_TIMEGM.
81789
81790 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81791
81792         * MODULES.html.sh (func_all_modules): Add time_r.
81793         * modules/time_r: New file.
81794         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
81795         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
81796
81797 2003-09-03  Paul Eggert  <eggert@twinsun.com>
81798
81799         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
81800         Bug reported by Lute Kamstra in
81801         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
81802
81803         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
81804         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
81805         course with correspondingly smaller numbers for tomorrow and
81806         yesterday.  From Tadayoshi Funaba.  Originally installed into
81807         sh-utils on 1999-08-07, but the patch got lost (I guess during the
81808         coreutils merge?).
81809
81810 2003-08-31  Simon Josefsson  <jas@extundo.com>
81811
81812         * modules/timegm: New file.
81813         * MODULES.html.sh (func_all_modules): Add timegm.
81814
81815 2003-08-31  Simon Josefsson  <jas@extundo.com>
81816
81817         * m4/timegm.m4: New file.
81818
81819 2003-08-31  Simon Josefsson  <jas@extundo.com>
81820
81821         * lib/timegm.h: New file.
81822         * lib/timegm.c: New file.  Based on
81823         wget-1.8.2/src/http.c:mktime_from_utc.
81824
81825 2003-08-31  Karl Berry  <karl@gnu.org>
81826
81827         * lib/argp.h: update from libc.
81828
81829 2003-08-28  Bruno Haible  <bruno@clisp.org>
81830
81831         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
81832         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
81833         followed by '#define fnmatch fnmatch_posix' gives an error.
81834
81835 2003-08-28  Bruno Haible  <bruno@clisp.org>
81836
81837         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
81838         warning on QNX, which defines O_BINARY to 000000.
81839
81840 2003-08-27  Jim Meyering  <jim@meyering.net>
81841
81842         * m4/mkstemp.m4: Require that the system mkstemp be able to create
81843         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
81844         would fail after 32.  Reported by Danny Levinson.  Details here:
81845         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
81846
81847 2003-08-24  Bruno Haible  <bruno@clisp.org>
81848
81849         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
81850         MSVC7 <stdio.h> is included later.
81851
81852 2003-08-22  Simon Josefsson  <jas@extundo.com>
81853
81854         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
81855
81856 2003-08-20  Karl Berry  <karl@gnu.org>
81857
81858         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
81859
81860 2003-08-20  Bruno Haible  <bruno@clisp.org>
81861
81862         * modules/progname: New file.
81863         * MODULES.html.sh (func_all_modules): Add progname.
81864
81865 2003-08-20  Bruno Haible  <bruno@clisp.org>
81866
81867         * lib/progname.h: New file, from GNU gettext.
81868         * lib/progname.c: New file, from GNU gettext.
81869         * lib/progreloc.c: New file, from GNU gettext.
81870
81871 2003-08-19  Jim Meyering  <jim@meyering.net>
81872
81873         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
81874         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
81875
81876 2003-08-19  Bruno Haible  <bruno@clisp.org>
81877
81878         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
81879         more.
81880
81881 2003-08-19  Bruno Haible  <bruno@clisp.org>
81882
81883         * lib/xstrdup.c: Assume <string.h> exists.
81884
81885 2003-08-18  Paul Eggert  <eggert@twinsun.com>
81886
81887         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
81888         in makefile rules.
81889
81890 2003-08-18  Jim Meyering  <jim@meyering.net>
81891
81892         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
81893         * m4/lib-ld.m4: Likewise.
81894
81895 2003-08-18  Jim Meyering  <jim@meyering.net>
81896
81897         * lib/setenv.h: Indent nested cpp directive.
81898         * lib/vasnprintf.c: Remove trailing blanks.
81899
81900 2003-08-17  Simon Josefsson  <jas@extundo.com>
81901
81902         * modules/xstrndup: New file.
81903         * MODULES.html.sh (func_all_modules): Add xstrndup.
81904
81905 2003-08-17  Simon Josefsson  <jas@extundo.com>
81906
81907         * modules/argp: Fix autoconf macro name. Add more dependencies.
81908
81909 2003-08-17  Simon Josefsson  <jas@extundo.com>
81910
81911         * m4/xstrndup.m4: New file.
81912
81913 2003-08-17  Simon Josefsson  <jas@extundo.com>
81914
81915         * m4/argp.m4: New file.
81916
81917 2003-08-17  Simon Josefsson  <jas@extundo.com>
81918             Bruno Haible  <bruno@clisp.org>
81919
81920         * lib/xstrndup.h: New file.
81921         * lib/xstrndup.c: New file.
81922
81923 2003-08-17  Bruno Haible  <bruno@clisp.org>
81924
81925         * modules/strndup (Files, Include): Add lib/strndup.h.
81926
81927 2003-08-17  Bruno Haible  <bruno@clisp.org>
81928
81929         * modules/euidaccess (Files): Add lib/euidaccess.h.
81930
81931 2003-08-17  Bruno Haible  <bruno@clisp.org>
81932
81933         * lib/strndup.h: New file.
81934
81935 2003-08-17  Bruno Haible  <bruno@clisp.org>
81936
81937         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
81938         like AC_GNU_SOURCE.
81939         * modules/extensions (configure.ac): Comment out the invocation of
81940         gl_USE_SYSTEM_EXTENSIONS.
81941
81942 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81943
81944         Merges from coreutils, etc.
81945         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
81946         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
81947         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
81948         fixing a typo.
81949         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
81950         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
81951
81952 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81953
81954         Document merge from coreutils.
81955         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
81956         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
81957         * modules/utime: Add m4/utimes-null.m4.
81958
81959 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81960
81961         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
81962         space, undoing this 2003-08-12 change:
81963         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81964
81965 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81966
81967         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
81968         strtoul.c from libc, undoing this 2003-08-12 change:
81969         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81970
81971 2003-08-16  Jim Meyering  <jim@meyering.net>
81972
81973         Merges from coreutils.
81974         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
81975         prefix.  Adjust cache variables similarly.  Create 500 rather than
81976         just 300 files, to exercise bug on Darwin6.5, too.
81977         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
81978         $missing_dir.
81979         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
81980         AM_SYS_POSIX_TERMIOS.
81981         Reported by mkc@mathdogs.com.
81982         Also change use of $am_cv_sys_posix_termios
81983         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
81984         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
81985         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
81986         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
81987         in /proc/mounts until it finds one with matching device number.  This
81988         is unnecessary when the FILE argument *is* a mount point.  No stat call
81989         is necessary in that case.  So, disable the statvfs-testing code on
81990         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
81991         as RedHat bug# 84846.
81992         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81993         to 1MB, so as not to render systems with no stack size limit (e.g.,
81994         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81995         Include <unistd.h>.  On some systems,
81996         it is required for the definition of _SC_PAGESIZE.
81997
81998 2003-08-16  Jim Meyering  <jim@meyering.net>
81999
82000         Merge from coreutils.
82001         * lib/xstrtoimax.c: #else #if -> #elif.
82002         * lib/xstrtoumax.c: Likewise.
82003
82004 2003-08-16  Jim Meyering  <jim@meyering.net>
82005
82006         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82007         * m4/utimes.m4: Removed.
82008         * m4/utimes-null.m4: Renamed from utimes.m4.
82009
82010         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82011         to 1MB, so as not to render systems with no stack size limit (e.g.,
82012         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82013         Include <unistd.h>.  On some systems,
82014         it is required for the definition of _SC_PAGESIZE.
82015
82016 2003-08-16  Jim Meyering  <jim@meyering.net>
82017         and Paul Eggert  <eggert@cs.ucla.edu>
82018
82019         Merges from coreutils, etc.
82020
82021         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82022         using the latest version from cvs.  This avoids problems with #line
82023         directives using a vendor (Sun) compiler.
82024         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82025         Don't set GETGROUPS_LIB here; now it's
82026         done via getgroups.m4's wrapper function.
82027         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82028         rather than just in sh-util/configure.in, so that the
82029         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82030         same.
82031         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82032         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82033         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82034         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82035         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82036         Remove code that is now done by the newly-required macros.
82037         Append $(EXEEXT) to DF_PROG.
82038         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82039         Do not invoke or require the following here,
82040         since prereq.m4 or some gnulib .m4 now does this for us:
82041         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82042         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82043         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82044         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82045         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82046         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82047         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82048         AC_FUNC_OBSTACK.
82049         Do not replace the following functions, as this is now the job
82050         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82051         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82052         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82053         atexit getpass, strdup, getpagesize.
82054         Replace 'raise'.
82055         Do not check for the following functions, as this is now the job
82056         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82057         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82058         setregid.
82059         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82060         Check for sys/sysctl.h.
82061         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82062         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82063         of checking for ssize_t ourselves.
82064
82065         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82066         Require every macro that gnulib/modules/* suggests for us.
82067         (jm_PREREQ_ADDEXT): New macro.
82068         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82069         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82070
82071         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82072         (gl_PHYSMEM): Use it.
82073         Also check for `table' function.
82074         Check for new headers and functions.
82075         Add check for sys/sysmp.h.
82076         With suggestions from Kaveh Ghazi.
82077         Ignore headers that are present but cannot be compiled.  This
82078         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82079         C 5.4.
82080
82081 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82082
82083         Document merge from coreutils.
82084         * modules/userspec: Depend on posixver.
82085         * modules/strftime: Depend on tzset.
82086
82087 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82088
82089         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82090         rather than tab, after '#' in shell-script copyright notices.
82091         Suggested by Bruno Haible.
82092
82093 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82094
82095         * config/srclist-update: Use three spaces, rather than tab, after '#'
82096         in shell-script copyright notices.  Suggested by Bruno Haible.
82097         Remove unnecessary parenthesization in regular expression.
82098
82099 2003-08-15  Jim Meyering  <jim@meyering.net>
82100
82101         Merge from coreutils.
82102         * lib/xgethostname.c: Include <stdlib.h>.
82103         (xghostname): Don't exit for anything other than memory-related
82104         failure; just return NULL.
82105         * lib/userspec.c: Include "posixver.h".
82106         (parse_user_spec): Accept `.' as a separator only
82107         in pre-POSIX-200112 mode.
82108         * lib/strtoimax.c: Use #elif rather than #else #if.
82109         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82110         Remove function, now that we can rely on a working tzset function.
82111         [!_LIBC]: Ensure that the required autoconf test has been run.
82112         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82113         Use underlying_strftime for %r.
82114         * lib/sha.c: Merge in some clean-up and optimization changes from
82115         glibc.
82116         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82117         Ensure that it is a multiple of 64.
82118         Rearrange loop exit tests so as to avoid performing an
82119         additional fread after encountering an error or EOF.
82120         * lib/realloc.c: Update copyright date.
82121
82122 2003-08-15  Jim Meyering  <jim@meyering.net>
82123         and Paul Eggert  <eggert@twinsun.com>
82124
82125         Merge from coreutils.
82126         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82127         member but strut utmpx does not.  Needed for AIX 4.3.3.
82128         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82129
82130 2003-08-15  Jim Meyering  <jim@meyering.net>
82131         and Paul Eggert  <eggert@cs.ucla.edu>
82132
82133         Merges from coreutils, etc.
82134         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82135         Require gl_FUNC_TZSET_CLOBBER.
82136         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82137         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82138         members.
82139
82140 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82141
82142         Help the merge from coreutils.
82143         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82144         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82145         * m4/tzset.m4: Use it too.
82146
82147 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82148
82149         * modules/tzset: New file.
82150
82151 2003-08-14  Jim Meyering  <jim@meyering.net>
82152
82153         Merges from coreutils.
82154         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82155         variable names, rather than @FNMATCH_H@.
82156         * modules/alloca: Likewise for $(ALLOCA_H).
82157
82158         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82159         the three copies of the literal target, `fnmatch.h'.
82160         * modules/alloca (alloca.h): Likewise.
82161
82162 2003-08-14  Jim Meyering  <jim@meyering.net>
82163
82164         Merge from coreutils.
82165         * m4/tzset.m4: New file.
82166         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82167         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82168         otherwise, AIX 5.1 systems would end up using the latter.
82169         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82170         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82171         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82172         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82173
82174 2003-08-14  Jim Meyering  <jim@meyering.net>
82175
82176         Merge from coreutils.
82177         * lib/obstack.h: Whitespace changes.
82178         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82179         and xcalloc return values.
82180         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82181         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82182         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82183         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82184         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82185         error from mntctl.
82186         Use mntctl's return value to drive the entry-processing loop, since
82187         we can't rely on the value of the vmt_length member in the last
82188         entry.  On some systems doing so could result in exhausting
82189         virtual memory.  Based in part on a patch from Mike Jetzer.
82190
82191 2003-08-14  Jim Meyering  <jim@meyering.net>
82192         and Paul Eggert  <eggert@twinsun.com>
82193
82194         Merges from coreutils, plus other fixes.
82195         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82196         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82197         for credits and details.  Thanks to Kaveh Ghazi for helping
82198         to keep these files in sync.
82199         (ARRAY_SIZE): Define it.
82200         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82201         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82202         (memcasecmp): Don't assume size_t fits in unsigned int.
82203         Remove casts and duplicate code.
82204         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82205         (memcpy): Remove definition.
82206         Merge in some clean-up and optimization changes from glibc.
82207         [BLOCKSIZE]: Move definition to top of file.
82208         Ensure that it is a multiple of 64.
82209         Rearrange loop exit tests so as to avoid performing an
82210         additional fread after encountering an error or EOF.
82211         * lib/md5.h (md5_uintptr): Define.
82212         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82213         return to the initial working directory.  Preserve errno
82214         for caller.
82215         * lib/idcache.c: Include "xalloc.h".
82216         (xmalloc, xrealloc): Remove decls.
82217         (getuser): Remove casts no longer required in C89.
82218         * lib/human.c: Include stdio.h, for sprintf.
82219         * lib/group-member.c: Include "xalloc.h".
82220         (xmalloc, xrealloc): Remove decls.
82221         (get_group_info): Remove casts no longer required in C89.
82222         * lib/getusershell.c (readname): Remove casts no longer required in
82223         C89.
82224         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82225         * lib/getline.c: Whitespace fix, from coreutils.
82226
82227 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82228
82229         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82230         Check for isascii.
82231
82232         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82233         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82234         Undo previous (whitespace-only) change.
82235
82236 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82237
82238         * lib/exclude.c: Include <ctype.h>
82239         (IN_CTYPE_DOMAIN): New macro.
82240         (is_space): New fn.
82241         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82242         and empty lines.
82243
82244         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82245         Undo previous (whitespace-only) change.
82246
82247 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82248
82249         * config/srclist-update: Change update back to the old behavior,
82250         leaving whitespace alone.  Use one 'sed' command rather than a
82251         pipeline.
82252         (fixlicense): Now a variable, not a function.
82253         (remove_trailing_blanks): Remove.
82254         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82255         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82256         Undo previous (whitespace-only) change.
82257
82258 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82259
82260         Merge from coreutils.
82261         * modules/euidaccess: Add lib_SOURCES, include for new
82262         file euidaccess.h
82263
82264 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82265
82266         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82267         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82268         Normalize leading white space and remove trailing white space.
82269
82270         Merge from coreutils
82271         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82272
82273         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82274         0.12.1.  These files are now being upgraded automatically by
82275         ../config/srclist-update.
82276
82277 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82278
82279         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82280         Normalize leading white space and remove trailing white space.
82281         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82282         notice, as per ../config/srclist-update.
82283
82284         Merge from coreutils.
82285         * lib/euidaccess.h: New file.
82286         * lib/euidaccess.c: Include it.
82287         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82288         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82289         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82290
82291 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82292
82293         * config/srclist-update: Add copyright notice.
82294         (remove_id_lines, remove_trailing_blanks): New constants.
82295         (fixfile): Use them to normalize spacing a bit in copied files.
82296         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82297         Normalize leading white space and remove trailing white space.
82298
82299         * config/texinfo.tex: Sync with texinfo.
82300
82301         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82302         strtoul.c from libc, to merge coreutils whitespace changes.
82303
82304         * config/srclist.txt: Get the following m4 files from gettext:
82305         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82306         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82307         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82308         wint_t.m4.
82309
82310 2003-08-12  Karl Berry  <karl@gnu.org>
82311
82312         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82313         been made.
82314
82315 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82316
82317         * modules/gnu-source, m4/gnu-source.m4:
82318         Remove; we're assuming Autoconf 2.54 or later now.
82319         Suggested by Bruno Haible.
82320         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82321
82322 2003-08-11  Bruno Haible  <bruno@clisp.org>
82323
82324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82325
82326 2003-08-11  Bruno Haible  <bruno@clisp.org>
82327
82328         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82329         (vasnprintf): Use it instead of wcslen.
82330
82331 2003-08-11  Bruno Haible  <bruno@clisp.org>
82332
82333         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82334         value to ensure that _Bool promotes to int. Use #define for _Bool when
82335         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82336
82337 2003-08-10  Karl Berry  <karl@gnu.org>
82338
82339         * lib/regex.h: update from libc (whitespace fix).
82340
82341 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82342
82343         Merge some files from coreutils.  These changes were
82344         originally made by Jim Meyering.
82345         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82346         many older Unixes require this.
82347         * lib/alloca.c (alloca): Remove cast to argument of free;
82348         no longer needed in C89.
82349         * lib/alloca_.h, regex.h: Fix white space to match
82350         what GNU indent does.
82351
82352 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82353
82354         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
82355         apparently Emacs's Unicode mode got confused before my 2003-08-05
82356         checkin.
82357
82358 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82359
82360         * m4/extensions.m4: New file.
82361         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
82362         Require gl_USE_SYSTEM_EXTENSIONS.
82363         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
82364         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
82365
82366 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82367
82368         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
82369         * modules/extensions, modules/gnu-source: New files.
82370         * modules/timespec, modules/unlocked-io: Depend on extensions.
82371
82372 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82373
82374         * modules/restrict: New file.
82375         * MODULES.html.sh (func_all_modules): Add restrict.
82376         * modules/regex: Depend on restrict.
82377
82378 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82379
82380         * m4/restrict.m4: New file.
82381         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
82382
82383 2003-08-07  Bruno Haible  <bruno@clisp.org>
82384
82385         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
82386         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
82387
82388 2003-08-07  Bruno Haible  <bruno@clisp.org>
82389
82390         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
82391         makes the module 'getndelim2' compatible with the module 'getline'.
82392
82393 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82394
82395         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
82396         byte with "\201" to avoid glitches when editing that source file
82397         with multi-gnome-terminal.
82398
82399 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82400
82401         * lib/bumpalloc.h: Remove.
82402
82403 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82404
82405         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
82406         * modules/bumpalloc: Remove.
82407
82408 2003-08-04  Paul Eggert  <eggert@twinsun.com>
82409
82410         * lib/getloadavg.c: Change copyright notice and spacing to conform to
82411         GNU coding style.
82412
82413         Merge from coreutils.
82414         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
82415         1. From glibc.
82416         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
82417         from Karl Berry, implemented by Jim Meyering.
82418         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
82419         from Dmitry V. Levin.
82420         Remove anachronistic cast of xrealloc.
82421         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
82422         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
82423         type. Otherwise, it wouldn't compile with at least /bin/cc on
82424         ymp-cray-unicos9.0.2.X.
82425         Combine two mostly-identical uses of alloca into one.
82426         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
82427
82428 2003-08-04  Dave Love  <d.love@dl.ac.uk>
82429
82430         [From Emacs.]
82431
82432         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
82433         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
82434         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
82435         obsolete NLIST_NAME_UNION.
82436         [__GNU__]: Undef BSD and FSCALE.
82437         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
82438
82439 2003-08-03  Paul Eggert  <eggert@twinsun.com>
82440
82441         * lib/stdbool_.h (_Bool): Make it signed char, instead of
82442         an enum type, so that it's guaranteed to promote to int.  See:
82443         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
82444
82445 2003-08-03  Karl Berry  <karl@gnu.org>
82446
82447         * config/depcomp: update from automake.
82448
82449 2003-07-31  Paul Eggert  <eggert@twinsun.com>
82450
82451         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
82452         (strerror): Don't assume that a printable int fits in 14 bytes.
82453
82454 2003-07-31  Bruno Haible  <bruno@clisp.org>
82455
82456         * modules/getpass-gnu: New file.
82457         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82458
82459 2003-07-31  Bruno Haible  <bruno@clisp.org>
82460
82461         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82462
82463 2003-07-24  Karl Berry  <karl@gnu.org>
82464
82465         * config/missing: update from automake.
82466
82467 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82468             Bruno Haible  <bruno@clisp.org>
82469
82470         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82471         * lib/getline.c (getline, getdelim): Likewise.
82472         Remove _GNU_SOURCE define; now it's defined in config.h through
82473         m4/getline.m4.
82474
82475 2003-07-23  Karl Berry  <karl@gnu.org>
82476
82477         * config/config.sub: update from prep.
82478
82479 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82480
82481         * modules/xalloc (Depends-on): Add exitfail.
82482         * modules/xmemcoll: Likewise.
82483
82484 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82485
82486         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
82487         over-parenthesization in macros.
82488
82489         Sync with coreutils.
82490
82491         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
82492         required by C99.
82493
82494         Use `exit_failure' for xalloc and xmemcoll instead of their own
82495         private exit-failure variables.
82496         * lib/xalloc.h (xalloc_exit_failure): Remove.
82497         * lib/xmalloc.c: Likewise.  Include exitfail.h.
82498         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
82499         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
82500         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
82501         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
82502
82503 2003-07-20  Jim Meyering  <jim@meyering.net>
82504
82505         * modules/closeout (Depends-on): Add exitfail.
82506         Suggestion from Bruno Haible.
82507
82508 2003-07-19  Karl Berry  <karl@gnu.org>
82509
82510         * config/config.sub: update from prep.
82511
82512 2003-07-18  Paul Eggert  <eggert@twinsun.com>
82513
82514         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
82515         Remove.
82516         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
82517         to test that it can stand by itself.  Include "exitfail.h".
82518         Clients should set exit_failure instead.
82519         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
82520
82521 2003-07-18  Bruno Haible  <bruno@clisp.org>
82522
82523         * modules/getndelim2: New file.
82524         * modules/getline: Share files with module getndelim2.
82525         * modules/getnline: Depend on getndelim2 instead of sharing files with
82526         it. Add getnline.c to lib_SOURCES.
82527         * MODULES.html.sh (func_all_modules): Add getndelim2.
82528
82529 2003-07-18  Bruno Haible  <bruno@clisp.org>
82530
82531         * m4/getndelim2.m4: New file.
82532         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
82533         invoke gl_PREREQ_GETNDELIM2.
82534         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
82535         gl_PREREQ_GETNDELIM2.
82536         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
82537         gl_GETNDELIM2.
82538
82539 2003-07-18  Bruno Haible  <bruno@clisp.org>
82540
82541         * lib/getndelim2.h: New file.
82542         * lib/getndelim2.c: Make into a module of its own. Include config.h,
82543         getndelim2.h.
82544         (getndelim2): Make non-static. Change return type to ssize_t.
82545         * lib/getline.h: Change argument names.
82546         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
82547         * lib/getnline.c: Include getndelim2.h.
82548
82549 2003-07-18  Andreas Schwab  <schwab@suse.de>
82550
82551         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
82552
82553 2003-07-17  Karl Berry  <karl@gnu.org>
82554
82555         * config/config.sub: update from prep.
82556
82557 2003-07-17  Bruno Haible  <bruno@clisp.org>
82558
82559         * modules/getnline: New file.
82560         * modules/getline: Add lib/getndelim2.c to source file list.
82561         * MODULES.html.sh (func_all_modules): Add getnline.
82562
82563 2003-07-17  Bruno Haible  <bruno@clisp.org>
82564
82565         * m4/getnline.m4: New file.
82566
82567 2003-07-17  Bruno Haible  <bruno@clisp.org>
82568
82569         * m4/Makefile.am.in: Remove file.
82570         * m4/Makefile.am: Remove file.
82571         * m4/Makefile.in: Remove file.
82572
82573 2003-07-17  Bruno Haible  <bruno@clisp.org>
82574
82575         * lib/getnline.h: New file.
82576         * lib/getnline.c: New file.
82577         * lib/getndelim2.c: New file, extracted from getline.c.
82578         (getndelim2): Renamed from getdelim2, with added nmax argument.
82579         * lib/getline.c: Include getndelim2.c.
82580         (getdelim2): Moved out to getndelim2.c.
82581         (getline, getdelim): Update.
82582
82583 2003-07-17  Bruno Haible  <bruno@clisp.org>
82584
82585         * lib/Makefile.am: Remove file.
82586         * lib/Makefile.in: Remove file.
82587
82588 2003-07-17  Bruno Haible  <bruno@clisp.org>
82589
82590         * configure.in: Remove file.
82591         * Makefile.in: Remove file.
82592
82593 2003-07-17  Bruno Haible  <bruno@clisp.org>
82594
82595         * MODULES.html.sh: Put the </BODY> right before </HTML>.
82596
82597 2003-07-16  Karl Berry  <karl@gnu.org>
82598
82599         * config/srclist-update: was running fixlicense twice, which caused
82600                 texinfo.tex to be nullified for some reason.  Simplify,
82601                 $gplsrc is no longer needed as far as I can see?
82602
82603 2003-07-16  Jim Meyering  <jim@meyering.net>
82604
82605         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
82606
82607 2003-07-15  Paul Eggert  <eggert@twinsun.com>
82608
82609         * config/srclist.txt: Get the following files from gettext-runtime/intl
82610         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
82611         ref-del.sin.  From Bruno Haible.
82612         * config/srclist-update (fixfile): Change grep pattern again, since the
82613         previous fix didn't work (there was another trailing $).  Use
82614         '[$]' to escape the $s.
82615
82616 2003-07-15  Karl Berry  <karl@gnu.org>
82617
82618         * lib/vasnprintf.c: update from gettext.
82619
82620 2003-07-15  Karl Berry  <karl@gnu.org>
82621
82622         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
82623         gets expanded when surrounded by '$'.
82624
82625 2003-07-15  Jim Meyering  <jim@meyering.net>
82626
82627         * modules/save-cwd: Don't depend on error.  From Derek Price.
82628
82629 2003-07-15  Jim Meyering  <jim@meyering.net>
82630
82631         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
82632
82633 2003-07-14  Simon Josefsson  <jas@extundo.com>
82634
82635         * modules/mempcpy: New file.
82636         * MODULES.html.sh (func_all_modules): Add mempcpy.
82637
82638 2003-07-14  Simon Josefsson  <jas@extundo.com>
82639
82640         * m4/mempcpy.m4: New file.
82641
82642 2003-07-14  Simon Josefsson  <jas@extundo.com>
82643
82644         * lib/mempcpy.h: New file.
82645         * lib/mempcpy.c: New file.
82646
82647 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82648
82649         * modules/getdate, modules/posixtm: Depend on mktime.
82650
82651 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82652
82653         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
82654         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
82655         unicodeio.c, unicodeio.h, unlocked-io.h:
82656         Switch from LGPL to GPL.
82657
82658 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82659
82660         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
82661         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
82662         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
82663         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
82664         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
82665         updated automatically by ../config/srclist-update.  This changes
82666         their license from LPGL to GPL.
82667
82668 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82669
82670         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
82671         assumed to refer to the root of the most recent stable gettext version.
82672         * config/srclistvars.sh: Add defaults for eggert.
82673         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
82674         Match "This program" as well as "The program".  This is needed
82675         for gettext.
82676
82677 2003-07-14  Jim Meyering  <jim@meyering.net>
82678
82679         Don't emit diagnostics.  Let callers do that.
82680         * lib/save-cwd.c: Don't include "error.h".
82681         (save_cwd): Don't call error.  Ensure that errno is valid
82682         when returning nonzero.
82683
82684         * lib/save-cwd.h (restore_cwd): Update prototype.
82685         * lib/save-cwd.c (restore_cwd): Remove two parameters.
82686         Simplify.  Don't call error upon failure.  Let callers do that.
82687         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
82688         when auditing is enabled.  But don't bother updating the #if.
82689
82690 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
82691
82692         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
82693         it breaks C++ compilation.
82694         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
82695
82696 2003-07-10  Simon Josefsson  <jas@extundo.com>
82697
82698         * modules/strchrnul (Makefile.am): Add strchrnul.h.
82699
82700 2003-07-10  Jim Meyering  <jim@meyering.net>
82701
82702         * m4/clock_time.m4: Remove trailing blank.
82703         * m4/intmax_t.m4: Likewise.
82704
82705 2003-07-10  Jim Meyering  <jim@meyering.net>
82706
82707         * lib/vasnprintf.c: Remove trailing blanks.
82708         Make cpp indentation consistent.
82709
82710 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82711
82712         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
82713         posixver.c, strftime.c, strnlen.c, strverscmp.c:
82714         Switch from LGPL to GPL.
82715
82716 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82717
82718         * config/srclist.txt: Sort sublists.  Add
82719         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
82720         that differ from gnulib for one reason or another; we'd like this list
82721         to be smaller but for now let's document what we have.
82722
82723 2003-07-08  Paul Eggert  <eggert@twinsun.com>
82724
82725         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
82726         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
82727         and sweeter "eval x=$x".
82728         * config/srclist.txt: Get lib/argp* from glibc.
82729
82730 2003-07-07  Paul Eggert  <eggert@twinsun.com>
82731
82732         * lib/mktime.c: Fix some boundary cases and remove need for floating
82733         point.
82734
82735         Issue a compile-time diagnostic if time_t is floating point, or if
82736         two's complement arithmetic is not in effect, or if arithmetic
82737         right shift does not propagate the sign.  These assumptions were
82738         all in the original code but they weren't checked.
82739
82740         (TIME_T_MIDPOINT, verify): New macros.
82741         (__isleap): Remove; it has integer overflow problems.
82742         (leapyear): New function, without those problems.
82743         (ydhms_tm_diff): Remove; splitting into two parts.
82744         (ydhms_diff): New function, containing the arithmetic part of
82745         the old ydhms_tm_diff function.  Issue a compile-time
82746         diagnostic if we are not using C99 integer division.
82747         Avoid casts when possible.
82748         (guess_time_tm): New function, containing the checking part of
82749         the old ydhms_tm_diff function.  Return the new value, rather than
82750         the difference between it and the old.  Accept a new argument T
82751         so that *T specifies the old value.  Check for overflow in the result.
82752
82753         (__mktime_internal): Use a time_t offset, not a long int offset.
82754         This undoes the 2003-06-04 change, which is no longer needed now
82755         that we have better overflow checking.
82756         (localtime_offset): Likewise.
82757
82758         (__mktime_internal): Avoid harmful overflow on hosts where time_t
82759         and long are 64-bit but int is only 32-bit.
82760         (ydhms_diff): Use long int to store year1 and yday1.
82761         Issue a compile-time diagnostic if long int is not wide enough.
82762
82763         (__mktime_internal): Use long int to store adjusted year and yday.
82764         Use plain C rather than preprocessor commands, if that doesn't
82765         affect efficiency.
82766         Check for overflow (and try to repair) after each probe
82767         rather than checking only at the very end.  This avoids some bugs
82768         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
82769         does not equal GMT offset at maximum time).
82770         Use integer to check for overflow rather than floating point; this
82771         is more portable to non-IEEE hosts, and is a tad faster.
82772         When we detect that we are oscillating between two values,
82773         don't check whether tm_isdst has the requested value, since
82774         we already know the answer.  When tm_isdst has the wrong value,
82775         use a different heuristic to find the right one, based on the
82776         extreme values actually observed in practice in tz2003a,
82777         rather than the (overly optimistic) "previous 3 calendar quarters".
82778
82779         (not_equal_tm, print_tm, check_result): Use "const T" rather than
82780         "T const" to accommodate glibc style.
82781         (check_result): Use less-confusing report format.  "long" -> "long int.
82782         (main): Likewise.
82783         Don't loop if the iteration overflows time_t.
82784         Allow a negative step in the iteration.
82785
82786 2003-07-06  Karl Berry  <karl@gnu.org>
82787
82788         * config/depcomp: update from automake.
82789         * config/config.sub: update from prep.
82790
82791 2003-07-03  Karl Berry  <karl@gnu.org>
82792
82793         * config/config.guess: update from prep.
82794
82795 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82796
82797         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
82798         xreadlink.c now includes it unconditionally.
82799
82800 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82801
82802         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
82803         having it depend on HAVE_SYS_TYPES_H.
82804
82805 2003-07-01  Bruno Haible  <bruno@clisp.org>
82806
82807         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
82808         <sys/types.h> should be sufficient.
82809         Reported by Paul Eggert.
82810
82811 2003-06-26  Karl Berry  <karl@gnu.org>
82812
82813         * config/depcomp: update from automake.
82814
82815 2003-06-26  Bruno Haible  <bruno@clisp.org>
82816
82817         * modules/human: Depend on module stdbool.
82818
82819 2003-06-25  Bruno Haible  <bruno@clisp.org>
82820
82821         * modules/readlink: New file.
82822         * modules/xreadlink: Depend on it.
82823         * MODULES.html.sh (func_all_modules): Add readlink.
82824
82825 2003-06-25  Bruno Haible  <bruno@clisp.org>
82826
82827         * m4/readlink.m4: New file.
82828
82829 2003-06-25  Bruno Haible  <bruno@clisp.org>
82830
82831         * lib/readlink.c: New file.
82832
82833 2003-06-22  Karl Berry  <karl@gnu.org>
82834
82835         * config/srclist.txt: update mkinstalldirs from automake.
82836         * config/mkinstalldirs: update.
82837
82838 2003-06-22  Bruno Haible  <bruno@clisp.org>
82839
82840         Portability to mingw32.
82841         * m4/ssize_t.m4: New file, from GNU gettext.
82842         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
82843         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
82844
82845 2003-06-22  Bruno Haible  <bruno@clisp.org>
82846
82847         * modules/safe-read: Add m4/ssize_t.m4.
82848         * modules/xreadlink: Add m4/ssize_t.m4.
82849
82850 2003-06-20  Bruno Haible  <bruno@clisp.org>
82851
82852         Assume C89, so PARAMS isn't needed.
82853         * lib/unicodeio.h (PARAMS): Remove.
82854         * lib/unicodeio.c: Don't use PARAMS.
82855
82856 2003-06-18  Karl Berry  <karl@gnu.org>
82857
82858         * config/config.{guess,sub}: update from prep.
82859
82860 2003-06-18  Jim Meyering  <jim@meyering.net>
82861
82862         Merge changes from coreutils.
82863         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
82864         Remove explicit declarations of xmalloc and realloc.
82865         Include xalloc.h.
82866         (read_utmp): Remove anachronistic cast of xmalloc.
82867
82868 2003-06-17  Paul Eggert  <eggert@twinsun.com>
82869
82870         Assume C89, so PARAMS isn't needed.
82871         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
82872         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
82873         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
82874         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
82875         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
82876         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
82877         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
82878         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
82879         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
82880         lib/xstrtod.h, lib/xstrtol.h: Likewise.
82881         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
82882         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
82883         no longer needed. Anyway, config.h should always be included before any
82884         other file.
82885
82886 2003-06-11  Simon Josefsson  <jas@extundo.com>
82887
82888         * modules/sysexits: New file.
82889         * MODULES.html.sh (func_all_modules): Add sysexits.
82890
82891 2003-06-11  Simon Josefsson  <jas@extundo.com>
82892
82893         * lib/sysexit_.h: New file.
82894
82895 2003-06-11  Derek Price  <derek@ximbiot.com>
82896
82897         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
82898         necessary.
82899
82900 2003-06-11  Bruno Haible  <bruno@clisp.org>
82901
82902         * m4/sysexits.m4: New file.
82903
82904 2003-06-10  Simon Josefsson  <jas@extundo.com>
82905
82906         * lib/argp.h: New file, from glibc.
82907         * lib/argp-ba.c: New file, from glibc.
82908         * lib/argp-eexst.c: New file, from glibc.
82909         * lib/argp-fmtstream.c: New file, from glibc.
82910         * lib/argp-fmtstream.h: New file, from glibc.
82911         * lib/argp-fs-xinl.c: New file, from glibc.
82912         * lib/argp-help.c: New file, from glibc.
82913         * lib/argp-namefrob.h: New file, from glibc.
82914         * lib/argp-parse.c: New file, from glibc.
82915         * lib/argp-pv.c: New file, from glibc.
82916         * lib/argp-pvh.c: New file, from glibc.
82917         * lib/argp-xinl.c: New file, from glibc.
82918
82919 2003-06-10  Simon Josefsson  <jas@extundo.com>
82920
82921         * modules/strchrnul: New file.
82922
82923 2003-06-10  Simon Josefsson  <jas@extundo.com>
82924
82925         * modules/argp: New file.
82926
82927 2003-06-10  Simon Josefsson  <jas@extundo.com>
82928
82929         * m4/strchrnul.m4: New file.
82930
82931 2003-06-10  Simon Josefsson  <jas@extundo.com>
82932
82933         * lib/strchrnul.h: New file.
82934         * lib/strchrnul.c: New file.
82935
82936 2003-06-10  Bruno Haible  <bruno@clisp.org>
82937
82938         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
82939
82940 2003-06-07  Karl Berry  <karl@gnu.org>
82941
82942         * config/config.{guess,sub}: update from prep.
82943
82944 2003-06-07  Jim Meyering  <jim@meyering.net>
82945
82946         * modules/strtod: Use $(...) notation, not @...@ for
82947         AC_REPLACE'd variables.
82948         * modules/localcharset: Likewise.
82949
82950 2003-06-07  Jim Meyering  <jim@meyering.net>
82951
82952         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
82953         in place of my name in the copyright comment.
82954         Remove definition and uses of __P.
82955
82956         From coreutils.
82957         * lib/stat.c: Don't declare xmalloc explicitly.
82958         Instead, include "xalloc.h".
82959         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
82960         xrealloc, and xcalloc return values.
82961         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
82962         Improve comment.
82963         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
82964
82965 2003-06-07  Bruno Haible  <bruno@clisp.org>
82966
82967         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
82968         avoid AC_CONFIG_LINKS.
82969         * modules/fnmatch (Makefile.am): Use explicit creation rule for
82970         fnmatch.h, to avoid AC_CONFIG_LINKS.
82971         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
82972
82973 2003-06-07  Bruno Haible  <bruno@clisp.org>
82974
82975         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
82976         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
82977         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82978         directory.
82979         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
82980         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82981         directory.
82982
82983 2003-06-06  Jim Meyering  <jim@meyering.net>
82984
82985         Merge from coreutils.
82986         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
82987         Consolidate declarations and initializations of *_base* locals.
82988
82989         Merge from coreutils.
82990         This avoids a core dump on systems without GNU putenv,
82991         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
82992         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
82993         (unsetenv): New static function, from GNU libc.
82994         (rpl_putenv): Use it.
82995
82996         * lib/modechange.c: Remove trailing blanks.
82997
82998         Merge from coreutils.
82999         * lib/fsusage.c: Remove declaration of statfs.
83000         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83001
83002         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83003
83004 2003-06-06  Jim Meyering  <jim@meyering.net>
83005
83006         * lib/stdbool_.h: Renamed from stdbool.h.in.
83007
83008 2003-06-06  Jim Meyering  <jim@meyering.net>
83009             Bruno Haible  <bruno@clisp.org>
83010
83011         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83012         Adjust Makefile.am snippet not to redirect directly to target.
83013         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83014
83015 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83016
83017         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83018         mismatch, look in future quarters as well as past.  This fixes a
83019         bug when processing fall-backwards gaps immediately after a long
83020         period of daylight-saving time.
83021
83022         * lib/mktime.c: Assume freestanding C89 or better.
83023         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83024         (__P): Remove; not used.
83025         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83026         (mktime, not_equal_tm, print_tm, check_result,
83027         main): Use prototypes.  Use const * where appropriate.
83028         (main): Fix typo in testing code that uncovered by above changes.
83029         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83030
83031 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83032
83033         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83034         locale.h, localeconv.  This merges changes from coreutils.
83035
83036         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83037         It can be removed after the next Autoconf is released.
83038         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83039         needed.
83040
83041 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83042
83043         * lib/mktime.c: Fix Debian bug 177940
83044         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83045         (localtime_offset): Now long int, not time_t, because we want it
83046         to be guaranteed to be signed.  All uses changed.
83047         (__mktime_internal): If overflow would occur when adding offset,
83048         don't add it.
83049
83050         Merge 'human' changes from coreutils.  Rewrite to support
83051         locale-specific notations like thousands separators.
83052         * lib/human.c: Simplify authorship notice.
83053         Include human.h immediately after config.h.
83054         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83055         <limits.h>: Do not include, since human.h does.
83056         (SIZE_MAX, UINTMAX_MAX): New macros.
83057         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83058         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83059         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83060         (power_letter): Renamed from suffixes.
83061         (generate_suffix_backwards): Remove.
83062         (adjust_value): Now takes int style (because of human.h changes)
83063         and long double value (for greater precision on some platforms).
83064         (group_number): New function.
83065         (human_readable): Use it.  Use integer options, not enum.
83066         Put the options before the sizes in the arg list.
83067         Support all the new options.
83068         The old human_readable function has been removed;
83069         use inttostr.h instead.
83070         (human_readable, default_block_size, humblock):
83071         Use uintmax_t, not int, for block sizes.
83072         (human_readable_inexact, block_size_types): Remove.
83073         (block_size_opts): New constant.
83074         (human_options): Renamed from human_block_size, with new signature
83075         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83076         * lib/human.h: Add copyright and authorship notice.
83077         Include <limits.h> and <stdbool.h> unconditionally.
83078         (PARAMS): Remove.  All uses removed.
83079         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83080         (enum human_inexact_style): Remove tag; now a nameless enum.
83081         (human_floor, human_ceiling, human_round_to_even): Now have
83082         values 2, 0, 1 rather than -1, 1, 0.
83083         (human_group_digits, human_suppress_point_zero, human_autoscale,
83084         human_base_1024, human_SI, human_B): New constants.
83085         (human_readable_inexact, human_block_size): Remove.
83086         (human_readable): Size args are now uintmax_t, not int.
83087         (human_options): New decl.
83088
83089         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83090         unnecessary now that we assume C89 or better.  This change
83091         imported from coreutils.
83092
83093         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83094         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83095         in the 2003-05-30 sync from glibc.
83096
83097         .h files should stand alone, but we shouldn't include <sys/types.h>
83098         if we can get away with just <stddef.h>.
83099
83100         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83101         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83102         rather than <sys/types.h>, as we merely need size_t.
83103         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83104         to get size_t.
83105         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83106         Include <stdio.h>, to get FILE.
83107         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83108         memcasecmp.h has included <stddef.h> and all we need is size_t.
83109         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83110         our interface, instead of including <sys/types.h>
83111
83112 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83113
83114         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83115         now, as glibc mktime is buggy on non-glibc systems.
83116
83117 2003-06-03  Karl Berry  <karl@gnu.org>
83118
83119         * config/config.sub: update from prep.
83120
83121 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83122
83123         [from coreutils]
83124         Fix some minor time-related bugs with POSIX time arguments.
83125         Some valid time stamps were being rejected (notably -1, and
83126         time stamps before 1900 on 64-bit hosts).  And some invalid
83127         time stamps were being accepted, e.g. September 31.
83128
83129         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83130         that we can return (time_t) -1 successfully.
83131         * lib/posixtm.c: Likewise.
83132         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83133         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83134         (t): Remove static var.
83135         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83136         of static var.  All uses changed.
83137         (year): Do not reject years before 1900; they can occur with
83138         64-bit time_t.
83139         (posix_time_parse): Do not check for out-of-range components;
83140         that is now the caller's responsibility, since our checks were
83141         only approximations.
83142         (posixtime): Use mktime to check for out-of-range components,
83143         since it knows them exactly.
83144         If mktime returns (time_t) -1, check whether an error actually occurred
83145         by invoking localtime on -1.
83146         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83147         posixtime failures better.
83148         Improve the test data (in comments only).
83149
83150 2003-06-02  Karl Berry  <karl@gnu.org>
83151
83152         * config/mkinstalldirs (version): new variable.
83153         (--version): new option.
83154         (usage): improve message.
83155
83156 2003-05-30  Karl Berry  <karl@gnu.org>
83157
83158         * lib/mktime.c: update from libc.
83159
83160 2003-05-30  Bruno Haible  <bruno@clisp.org>
83161
83162         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83163         * config/config.rpath: Upgrade to gettext-0.12.1.
83164
83165 2003-05-30  Bruno Haible  <bruno@clisp.org>
83166
83167         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83168         * m4/nls.m4: New file, from gettext-0.12.1.
83169         * m4/po.m4: New file, from gettext-0.12.1.
83170         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83171
83172 2003-05-30  Bruno Haible  <bruno@clisp.org>
83173
83174         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83175         * lib/localcharset.h: Likewise.
83176         * lib/localcharset.c: Likewise.
83177
83178 2003-05-29  Karl Berry  <karl@gnu.org>
83179
83180         * config/config.rpath: update from gettext.
83181
83182 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83183
83184         Assume the headers required for C89 freestanding compilers.
83185         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83186         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83187         * m4/human.m4 (gl_HUMAN): Likewise.
83188         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83189         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83190         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83191         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83192         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83193         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83194
83195 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83196
83197         Assume the headers required for C89 freestanding compilers.
83198         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83199         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83200         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83201         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83202         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83203         define, since <limits.h> is guaranteed to do that.
83204         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83205         * lib/exclude.c: Include <stdbool.h> unconditionally.
83206         * lib/tempname.c: Include <stddef.h> unconditionally.
83207         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83208         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83209         <stddef.h> does that.
83210         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83211         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83212         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83213         needed.
83214         * lib/xstrtol.c: Likewise.
83215         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83216         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83217
83218         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83219         warnings on some platforms.
83220
83221         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83222         arbitrarily.
83223
83224 2003-05-26  Jim Meyering  <jim@meyering.net>
83225
83226         Merge in a change from coreutils:
83227         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83228         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83229         that condition, rather than `-1' which is slightly misleading.
83230         Change the name of the cache variable to have the gl_ prefix.
83231         Prompted by a patch from Richard Dawe for DJGPP.
83232
83233 2003-05-24  Karl Berry  <karl@gnu.org>
83234
83235         * config/config.guess: update from prep.
83236
83237 2003-05-22  Karl Berry  <karl@gnu.org>
83238
83239         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83240
83241 2003-05-20  Karl Berry  <karl@gnu.org>
83242
83243         * config/config.guess: update from prep.
83244
83245 2003-05-18  Karl Berry  <karl@gnu.org>
83246
83247         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83248         might actually be set by the user.
83249
83250         * config/depcomp, install-sh, mdate-sh: update from automake.
83251
83252 2003-05-17  Bruno Haible  <bruno@clisp.org>
83253
83254         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83255         invalid expansion for AC_EGREP_CPP.
83256         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83257         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83258         Suggested by Akim Demaille <akim@epita.fr> in
83259         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83260
83261 2003-05-12  Jim Meyering  <jim@meyering.net>
83262
83263         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83264         the space-padded-by-default conversion specifiers, %e, %k, %l.
83265
83266 2003-05-12  Bruno Haible  <bruno@clisp.org>
83267
83268         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83269         the string is longer than 4 KB.
83270
83271 2003-05-11  Karl Berry  <karl@gnu.org>
83272
83273         * config/config.{guess,sub}: update from prep.
83274
83275 2003-05-09  Bruno Haible  <bruno@clisp.org>
83276
83277         * modules/error: Add m4/strerror_r.m4 to file list.
83278
83279 2003-05-03  Bruno Haible  <bruno@clisp.org>
83280
83281         Upgrade to Unicode-4.0.
83282         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83283         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83284         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83285         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83286         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83287         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83288         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83289         Change width of U+E0100..U+E01EF from 1 to 0.
83290
83291 2003-04-25  Jim Meyering  <jim@meyering.net>
83292
83293         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83294         of type size_t, not int.
83295
83296 2003-04-25  Bruno Haible  <bruno@clisp.org>
83297
83298         * lib/copy-file.c: Include <stddef.h>, for size_t.
83299
83300 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83301
83302         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83303         code which expansion is under static control.  Patch imported from
83304         Akim Demaille's patch to Bison; see
83305         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83306
83307 2003-04-14  Bruno Haible  <bruno@clisp.org>
83308
83309         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83310
83311 2003-04-11  Jim Meyering  <jim@meyering.net>
83312
83313         Merge changes from Coreutils.
83314
83315         2003-03-22  Jim Meyering  <jim@meyering.net>
83316
83317         * lib/strftime.c (widen): Cast alloca return value to proper type.
83318
83319         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83320
83321         From GNU libc.
83322         * lib/strftime.c (my_strftime): Handle very large width
83323         specifications for numeric values correctly.  Improve checks for
83324         overflow.
83325
83326         2003-01-19  Jim Meyering  <jim@meyering.net>
83327
83328         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83329         definitions.
83330         (nl_get_alt_digit) [! defined my_strftime]: Define.
83331         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83332         _nl_get_alt_digit and _nl_get_walt_digit.
83333
83334         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83335         libc. These changes have no effect outside of _LIBC.
83336
83337 2003-04-10  Bruno Haible  <bruno@clisp.org>
83338
83339         * modules/findprog: New file.
83340         * MODULES.html.sh (func_all_modules): Add it.
83341
83342 2003-04-10  Bruno Haible  <bruno@clisp.org>
83343
83344         * m4/findprog.m4: New file.
83345         * m4/eaccess.m4: New file.
83346
83347 2003-04-10  Bruno Haible  <bruno@clisp.org>
83348
83349         * lib/findprog.h: New file, from GNU gettext.
83350         * lib/findprog.c: New file, from GNU gettext.
83351
83352 2003-04-05  Jim Meyering  <jim@meyering.net>
83353
83354         Merge changes from Coreutils.
83355
83356         * lib/exclude.h (PARAMS): Remove definition and uses.
83357         * lib/exclude.c: Remove uses of `PARAMS'.
83358
83359         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
83360         Add test-cases for DOS filenames. Declare program_name.
83361         (main): Set up program_name.  Patch by Rich Dawe.
83362
83363         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83364         error from mntctl.
83365         Use mntctl's return value to drive the entry-processing loop, since
83366         we can't rely on the value of the vmt_length member in the last
83367         entry.  On some systems doing so could result in exhausting
83368         virtual memory.  Based in part on a patch from Mike Jetzer.
83369
83370 2003-04-04  Bruno Haible  <bruno@clisp.org>
83371
83372         * modules/linebreak: New file.
83373         * MODULES.html.sh (func_all_modules): Add it.
83374
83375 2003-04-04  Bruno Haible  <bruno@clisp.org>
83376
83377         * m4/linebreak.m4: New file.
83378
83379 2003-04-04  Bruno Haible  <bruno@clisp.org>
83380
83381         * lib/linebreak.h: New file, from GNU gettext.
83382         * lib/linebreak.c: New file, from GNU gettext with slight
83383         modifications.
83384         * lib/lbrkprop.h: New file, from GNU gettext.
83385
83386 2003-04-03  Bruno Haible  <bruno@clisp.org>
83387
83388         * modules/utf8-ucs4: New file.
83389         * modules/utf16-ucs4: New file.
83390         * modules/ucs4-utf8: New file.
83391         * modules/ucs4-utf16: New file.
83392         * MODULES.html.sh (func_all_modules): Add them.
83393
83394 2003-04-03  Bruno Haible  <bruno@clisp.org>
83395
83396         * m4/utf-ucs4.m4: New file.
83397         * m4/ucs4-utf.m4: New file.
83398
83399 2003-04-03  Bruno Haible  <bruno@clisp.org>
83400
83401         * lib/utf8-ucs4.h: New file, from GNU gettext.
83402         * lib/utf16-ucs4.h: New file, from GNU gettext.
83403         * lib/ucs4-utf8.h: New file, from GNU gettext.
83404         * lib/ucs4-utf16.h: New file, from GNU gettext.
83405
83406 2003-04-02  Bruno Haible  <bruno@clisp.org>
83407
83408         * modules/binary-io: New file.
83409         * MODULES.html.sh (func_all_modules): Add it.
83410
83411 2003-04-02  Bruno Haible  <bruno@clisp.org>
83412
83413         * lib/binary-io.h: New file, from GNU gettext.
83414
83415 2003-04-01  Bruno Haible  <bruno@clisp.org>
83416
83417         * modules/pathname: New file.
83418         * MODULES.html.sh (func_all_modules): Add it.
83419
83420 2003-04-01  Bruno Haible  <bruno@clisp.org>
83421
83422         * lib/pathname.h: New file, from GNU gettext.
83423         * lib/concatpath.c: New file, from GNU gettext.
83424
83425 2003-03-30  Bruno Haible  <bruno@clisp.org>
83426
83427         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
83428
83429 2003-03-30  Bruno Haible  <bruno@clisp.org>
83430
83431         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
83432         function chown() doesn't exist.
83433
83434 2003-03-28  Bruno Haible  <bruno@clisp.org>
83435
83436         * modules/copy-file: New file.
83437         * MODULES.html.sh (func_all_modules): Add it.
83438
83439 2003-03-28  Bruno Haible  <bruno@clisp.org>
83440
83441         * m4/copy-file.m4: New file.
83442
83443 2003-03-28  Bruno Haible  <bruno@clisp.org>
83444
83445         * lib/copy-file.h: New file, from GNU gettext.
83446         * lib/copy-file.c: New file, from GNU gettext.
83447
83448 2003-03-18  Jim Meyering  <jim@meyering.net>
83449
83450         * lib/quote.c (quote_n): Fix typo in comment.
83451
83452 2003-03-18  Bruno Haible  <bruno@clisp.org>
83453
83454         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83455         checking.
83456         * m4/onceonly_2_57.m4: Likewise.
83457
83458 2003-03-17  Bruno Haible  <bruno@clisp.org>
83459
83460         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83461         (m4_quote): Remove macro.
83462         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83463
83464 2003-03-14  Jim Meyering  <jim@meyering.net>
83465
83466         Merge changes from Coreutils.
83467         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83468         to be const, in order to avoid warnings.
83469         (obstack_room): Likewise.
83470         (obstack_empty_p): Likewise.
83471
83472 2003-03-14  Bruno Haible  <bruno@clisp.org>
83473
83474         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83475         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83476
83477 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83478
83479         Merge changes from Bison.
83480         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83481         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83482         when compiling Bison 1.875's `bitset bset = obstack_alloc
83483         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
83484         * lib/hash.c: Include <stdbool.h> unconditionally.
83485
83486 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83487
83488         * m4/onceonly.m4 (m4_quote): New macro.
83489         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
83490         Quote AC_FOREACH variable-expansions properly.
83491
83492 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83493
83494         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
83495
83496 2003-03-09  Paul Eggert  <eggert@twinsun.com>
83497
83498         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
83499         Reported by Bruce Becker; see:
83500         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
83501
83502 2003-03-03  Paul Eggert  <eggert@twinsun.com>
83503             Bruno Haible  <bruno@clisp.org>
83504
83505         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
83506         Reported by John Hughes, see
83507         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
83508
83509 2003-02-20  Bruno Haible  <bruno@clisp.org>
83510
83511         * MODULES.html.sh (func_all_modules): Add poll.
83512
83513 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83514
83515         * modules/poll: New file.
83516
83517 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83518
83519         * lib/poll_.h: New file.
83520         * lib/poll.c: New file.
83521
83522 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83523
83524         * m4/poll.m4: New file.
83525
83526 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83527
83528         * modules/mathl: New file.
83529
83530 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83531
83532         * lib/mathl.h: New file.
83533         * lib/acosl.c: New file.
83534         * lib/asinl.c: New file.
83535         * lib/atanl.c: New file.
83536         * lib/ceill.c: New file.
83537         * lib/cosl.c: New file.
83538         * lib/expl.c: New file.
83539         * lib/floorl.c: New file.
83540         * lib/frexpl.c: New file.
83541         * lib/ldexpl.c: New file.
83542         * lib/logl.c: New file.
83543         * lib/sincosl.c: New file.
83544         * lib/sinl.c: New file.
83545         * lib/sqrtl.c: New file.
83546         * lib/tanl.c: New file.
83547         * lib/trigl.c: New file.
83548         * lib/trigl.h: New file.
83549
83550 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83551
83552         * m4/mathl.m4: New file.
83553
83554 2003-02-18  Bruno Haible  <bruno@clisp.org>
83555
83556         * MODULES.html.sh (func_all_modules): Add mathl.
83557
83558 2003-02-17  Bruno Haible  <bruno@clisp.org>
83559
83560         * modules/mkdtemp: New module.
83561         * MODULES.html.sh (func_all_modules): Add it.
83562
83563 2003-02-17  Bruno Haible  <bruno@clisp.org>
83564
83565         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
83566
83567 2003-02-17  Bruno Haible  <bruno@clisp.org>
83568
83569         * lib/mkdtemp.h: New file, from GNU gettext.
83570         * lib/mkdtemp.c: New file, from GNU gettext.
83571
83572 2003-02-02  Jim Meyering  <jim@meyering.net>
83573
83574         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
83575         e.g. glibc-2.2.93.
83576
83577 2003-01-31  Bruno Haible  <bruno@clisp.org>
83578
83579         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
83580         'rpl_rename'.
83581         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
83582         'rpl_strnlen'.
83583         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
83584         'rpl_strtod'.
83585         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
83586         'rpl_utime'.
83587
83588 2003-01-31  Bruno Haible  <bruno@clisp.org>
83589
83590         * lib/rename.c: #undef rename before defining rpl_rename.
83591         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
83592
83593 2003-01-30  Bruno Haible  <bruno@clisp.org>
83594
83595         * modules/vasnprintf, modules/vasprintf: New modules.
83596         * MODULES.html.sh (func_all_modules): Add them.
83597
83598 2003-01-30  Bruno Haible  <bruno@clisp.org>
83599
83600         * m4/signed.m4: New file, from GNU gettext.
83601         * m4/longdouble.m4: New file, from GNU gettext.
83602         * m4/wchar_t.m4: New file, from GNU gettext.
83603         * m4/wint_t.m4: New file, from GNU gettext.
83604         * m4/vasnprintf.m4: New file.
83605         * m4/vasprintf.m4: New file.
83606
83607 2003-01-30  Bruno Haible  <bruno@clisp.org>
83608
83609         * lib/printf-args.h: New file, from GNU gettext.
83610         * lib/printf-args.c: New file, from GNU gettext.
83611         * lib/printf-parse.h: New file, from GNU gettext.
83612         * lib/printf-parse.c: New file, from GNU gettext.
83613         * lib/vasnprintf.h: New file, from GNU gettext.
83614         * lib/vasnprintf.c: New file, from GNU gettext.
83615         * lib/asnprintf.c: New file, from GNU gettext.
83616         * lib/vasprintf.h: New file, from GNU gettext with modifications.
83617         * lib/vasprintf.c: New file, from GNU gettext.
83618         * lib/asprintf.c: New file, from GNU gettext.
83619
83620 2003-01-29  Bruno Haible  <bruno@clisp.org>
83621
83622         * modules/stpncpy: New module.
83623         * MODULES.html.sh (func_all_modules): Add it.
83624
83625 2003-01-29  Bruno Haible  <bruno@clisp.org>
83626
83627         * m4/stpncpy.m4: New file.
83628
83629 2003-01-29  Bruno Haible  <bruno@clisp.org>
83630
83631         * lib/stpncpy.h: New file, from GNU gettext with modifications.
83632         * lib/stpncpy.c: New file, from GNU gettext with modifications.
83633
83634 2003-01-28  Bruno Haible  <bruno@clisp.org>
83635
83636         * modules/c-ctype: New module.
83637         * MODULES.html.sh (func_all_modules): Add it.
83638
83639 2003-01-28  Bruno Haible  <bruno@clisp.org>
83640
83641         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
83642         Paul Eggert.
83643         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
83644         Paul Eggert.
83645
83646 2003-01-27  Bruno Haible  <bruno@clisp.org>
83647
83648         * modules/xsetenv: New module.
83649         * MODULES.html.sh (func_all_modules): Add it.
83650
83651 2003-01-27  Bruno Haible  <bruno@clisp.org>
83652
83653         * lib/xsetenv.h: New file, from GNU gettext.
83654         * lib/xsetenv.c: New file, from GNU gettext.
83655
83656 2003-01-23  Jim Meyering  <jim@meyering.net>
83657
83658         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
83659         from working on systems without dirfd (at least Irix and OSF1/Tru64).
83660
83661 2003-01-23  Bruno Haible  <bruno@clisp.org>
83662
83663         * modules/minmax: New module.
83664         * MODULES.html.sh (func_all_modules): Add it.
83665
83666 2003-01-23  Bruno Haible  <bruno@clisp.org>
83667
83668         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
83669         Eggert.
83670
83671 2003-01-22  Bruno Haible  <bruno@clisp.org>
83672
83673         * modules/exit: New module.
83674         * MODULES.html.sh (func_all_modules): Add it.
83675
83676 2003-01-22  Bruno Haible  <bruno@clisp.org>
83677
83678         * lib/exit.h: New file, from GNU gettext.
83679
83680 2003-01-19  Bruno Haible  <bruno@clisp.org>
83681
83682         * gnulib-tool: Recognize option --extract-maintainer.
83683         (func_get_maintainer): New function.
83684         * modules/*: Add Maintainer entry.
83685
83686 2003-01-16  Jim Meyering  <jim@meyering.net>
83687
83688         * m4/regex.m4: The `regex' struct is both input and output.
83689         Initialize it before each use.  Patch by Tim Waugh.
83690
83691 2003-01-16  Bruno Haible  <bruno@clisp.org>
83692
83693         * MODULES.html.sh: Add a table of contents. Add the module name as
83694         leftmost column. Add hyperlinks.
83695
83696 2003-01-15  Bruno Haible  <bruno@clisp.org>
83697
83698         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
83699
83700 2003-01-15  Bruno Haible  <bruno@clisp.org>
83701
83702         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
83703         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
83704         suffix.
83705
83706 2003-01-15  Bruno Haible  <bruno@clisp.org>
83707
83708         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
83709
83710 2003-01-15  Bruno Haible  <bruno@clisp.org>
83711
83712         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
83713         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
83714
83715 2003-01-14  Jim Meyering  <jim@meyering.net>
83716
83717         * lib/same.c (same_name): Tweak a comment.
83718
83719 2003-01-14  Bruno Haible  <bruno@clisp.org>
83720
83721         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
83722         when a string comparison is sufficient.
83723
83724 2003-01-14  Bruno Haible  <bruno@clisp.org>
83725
83726         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
83727         'unsigned int'.
83728
83729 2003-01-14  Bruno Haible  <bruno@clisp.org>
83730
83731         * lib/hash-pjw.c: Add comment about low quality of this function.
83732
83733 2003-01-13  Bruno Haible  <bruno@clisp.org>
83734
83735         * modules/stpcpy: Distribute lib/stpcpy.h.
83736         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
83737
83738 2003-01-13  Bruno Haible  <bruno@clisp.org>
83739
83740         * modules/*: Add a description.
83741         * modules/strpbrk: Fix Makefile.am snippet.
83742         * modules/strtoimax: Fix dependencies.
83743         * modules/strtoumax: Likewise.
83744
83745 2003-01-13  Bruno Haible  <bruno@clisp.org>
83746
83747         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
83748         * modules/alloca (Makefile.am): All object files depend on alloca.h.
83749         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
83750
83751 2003-01-13  Bruno Haible  <bruno@clisp.org>
83752
83753         * gnulib-tool (func_create_testdir): Store config/* files in the main
83754         directory.
83755         * config.rpath: Move to ...
83756         * config/config.rpath: ... here.
83757         * modules/gettext: Contains config/config.rpath, not config.rpath.
83758         * modules/iconv: Likewise.
83759
83760 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83761
83762         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83763         to avoid collisions with libcurses and libreadline.
83764
83765         * m4/getstr.m4: Remove.
83766         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
83767
83768 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83769
83770         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83771         to avoid collisions with libcurses and libreadline.
83772
83773         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
83774         * lib/getstr.h, getstr.c: Remove.
83775         * lib/getline.c: Include "getline.h", to check interface.
83776         Move body of old getstr.c here: this defines MIN_CHUNK and
83777         declares getdelim2, which is renamed from getstr.
83778         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
83779
83780         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
83781         All uses changed.
83782         * lib/linebuffer.h: Likewise.
83783         (readline): Remove backward-compatibility macro.
83784
83785 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83786
83787         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83788         to avoid collisions with libcurses and libreadline.
83789         * getstr: Remove.
83790         * MODULES.html.sh: Remove getstr.
83791         * modules/getline: Depend on unlocked-io, not getstr.
83792
83793 2003-01-12  Jim Meyering  <jim@meyering.net>
83794
83795         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
83796
83797 2003-01-10  Bruno Haible  <bruno@clisp.org>
83798
83799         * modules/alloca: Change Makefile.am requirements. Simplify Include
83800         requirements. Add lib/alloca_.h to file list.
83801
83802 2003-01-10  Bruno Haible  <bruno@clisp.org>
83803
83804         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
83805
83806 2003-01-10  Bruno Haible  <bruno@clisp.org>
83807
83808         * lib/alloca_.h: New file.
83809         * lib/getdate.y: Unconditionally include alloca.h.
83810         * lib/makepath.c: Likewise.
83811         * lib/setenv.c: Likewise.
83812         * lib/userspec.c: Likewise.
83813
83814 2003-01-09  Karl Berry  <karl@gnu.org>
83815
83816         * MODULES.html.sh: include `dirname $0` in PATH, to find
83817         gnulib-tool.
83818
83819 2003-01-09  Bruno Haible  <bruno@clisp.org>
83820
83821         * modules/stdbool: Change configure.ac, Makefile.am requirements.
83822         Simplify Include requirements. Add lib/stdbool.h.in to file list.
83823
83824 2003-01-09  Bruno Haible  <bruno@clisp.org>
83825
83826         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
83827
83828 2003-01-09  Bruno Haible  <bruno@clisp.org>
83829
83830         * lib/stdbool.h.in: New file.
83831
83832 2003-01-09  Bruno Haible  <bruno@clisp.org>
83833
83834         * gnulib-tool (func_all_modules): Ignore files ending in ~.
83835         * MODULES.html.sh: Likewise.
83836
83837 2003-01-08  Jim Meyering  <jim@meyering.net>
83838
83839         * lib/full-write.c: Undefine and define-away `const' after inclusion
83840         of errno.h, not before.  Suggestion from Bruno Haible.
83841
83842 2003-01-08  Bruno Haible  <bruno@clisp.org>
83843
83844         * modules/full-read: Depend on full-write.
83845
83846 2003-01-08  Bruno Haible  <bruno@clisp.org>
83847
83848         * lib/safe-read.c: Include specification header first, to ensure its
83849         selfcontainedness.
83850         * lib/full-write.c: Likewise.
83851
83852 2003-01-07  Jim Meyering  <jim@meyering.net>
83853
83854         * lib/full-write.c: Rework so that it may serve to define full_read,
83855         too.
83856         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
83857
83858 2003-01-07  Bruno Haible  <bruno@clisp.org>
83859
83860         * lib/strtoimax.c: Include <stdint.h> as an alternative to
83861         <inttypes.h>.
83862         * lib/xstrtol.h: Likewise.
83863         * lib/xstrtoimax.c: Likewise.
83864         * lib/xstrtoumax.c: Likewise.
83865         * lib/human.h: Likewise.
83866
83867         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
83868         on systems that have <inttypes.h> but not <stdint.h>.
83869
83870 2003-01-07  Bruno Haible  <bruno@clisp.org>
83871
83872         * MODULES.html.sh: Add copyright notice.
83873         (missed_files): Omit CVS directory entries.
83874         (func_module): Make it work with sed-3.02.
83875         * MODULES.txt: Remove file.
83876
83877 2003-01-06  Jim Meyering  <jim@meyering.net>
83878
83879         * lib/version-etc.c: Update year in translatable copyright string.
83880
83881 2003-01-03  Karl Berry  <karl@gnu.org>
83882
83883         * config/config.{guess,sub}: update from prep.
83884
83885 2003-01-02  Karl Berry  <karl@gnu.org>
83886
83887         * doc/COPYING.DOC: belatedly updated to 1.2.
83888
83889 2003-01-01  Karl Berry  <karl@gnu.org>
83890
83891         * gnulib-tool (func_verify_module): report module name $module in
83892         error message, not $1.
83893         * gnulib-tool (create-testdir): don't complain if destdir couldn't
83894         be created, only if it doesn't exist.
83895         * gnulib-tool (last_checkin_date): don't expand the $Date here.
83896
83897 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83898
83899         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
83900
83901 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83902
83903         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
83904         memcmp if strcoll doesn't work.
83905
83906 2002-12-31  Bruno Haible  <bruno@clisp.org>
83907
83908         * lib/utime.c (utime_null): No need to call ftruncate if the file was
83909         nonempty.
83910
83911 2002-12-31  Bruno Haible  <bruno@clisp.org>
83912
83913         * lib/memcoll.c (STRCOLL): New macro.
83914         (memcoll): Use it.
83915
83916 2002-12-31  Bruno Haible  <bruno@clisp.org>
83917
83918         * lib/localcharset.h: New file.
83919         * lib/localcharset.c: Include it.
83920         * lib/unicodeio.c: Likewise.
83921
83922 2002-12-31  Bruno Haible  <bruno@clisp.org>
83923
83924         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
83925         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
83926
83927 2002-12-31  Bruno Haible  <bruno@clisp.org>
83928
83929         * lib/getline.h: Include <stddef.h>, for size_t.
83930
83931         * lib/unicodeio.h: Include <stddef.h>, for size_t.
83932         * lib/unicodeio.c: Don't include <stddef.h>.
83933
83934 2002-12-31  Bruno Haible  <bruno@clisp.org>
83935
83936         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
83937         HAVE_TM_ZONE.
83938
83939 2002-12-24  Karl Berry  <karl@gnu.org>
83940
83941         * config/config.guess: update from prep.
83942
83943 2002-12-24  Bruno Haible  <bruno@clisp.org>
83944
83945         General infrasructure.
83946         * m4/README: Rewritten.
83947         * m4/onceonly.m4: New file.
83948         * m4/onceonly_2_57.m4: New file.
83949
83950         Module atexit.
83951         * m4/atexit.m4: New file.
83952
83953         Module strtod.
83954         * m4/strtod.m4: New file.
83955
83956         Module strtol.
83957         * m4/strtol.m4: New file.
83958
83959         Module strtoul.
83960         * m4/strtoul.m4: New file.
83961
83962         Module memchr.
83963         * m4/memchr.m4: New file.
83964
83965         Module memcmp.
83966         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
83967         (jm_FUNC_MEMCMP): Invoke it.
83968
83969         Module memcpy.
83970         * m4/memcpy.m4: New file.
83971
83972         Module memmove.
83973         * m4/memmove.m4: New file.
83974
83975         Module memset.
83976         * m4/memset.m4: New file.
83977
83978         Module strcspn.
83979         * m4/strcspn.m4: New file.
83980
83981         Module strpbrk.
83982         * m4/strpbrk.m4: New file.
83983
83984         Module strstr.
83985         * m4/strstr.m4: New file.
83986
83987         Module strerror.
83988         * m4/strerror.m4: New file.
83989
83990         Module mktime.
83991         * m4/mktime.m4: Renamed from jm-mktime.m4.
83992         (gl_PREREQ_MKTIME): New macro.
83993         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
83994
83995         Module malloc.
83996         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
83997         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
83998         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
83999
84000         Module realloc.
84001         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84002         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84003         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84004
84005         Module strftime.
84006         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84007         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84008         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84009         gl_TM_GMTOFF.
84010         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84011
84012         Module xalloc.
84013         * m4/xalloc.m4: New file.
84014
84015         Module alloca.
84016         * m4/alloca.m4: New file.
84017
84018         Module putenv.
84019         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84020         (jm_FUNC_PUTENV): Invoke it.
84021
84022         Module setenv.
84023         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84024         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84025         when invoked twice.
84026         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84027         gt_FUNC_SETENV.
84028
84029         Module memrchr.
84030         * m4/memrchr.m4: New file.
84031
84032         Module stpcpy.
84033         * m4/stpcpy.m4: New file.
84034
84035         Module strcase.
84036         * m4/strcase.m4: New file.
84037
84038         Module strdup.
84039         * m4/strdup.m4: New file.
84040
84041         Module strnlen.
84042         * m4/strnlen.m4: New file.
84043
84044         Module strndup.
84045         * m4/strndup.m4: New file.
84046
84047         Module xstrtod.
84048         * m4/xstrtod.m4: New file.
84049
84050         Module xstrtol.
84051         * m4/xstrtol.m4: New file.
84052
84053         Module getdate.
84054         * m4/getdate.m4: New file.
84055
84056         Module unlocked-io.
84057         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84058         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84059         * m4/jm-glibc-io.m4n: Remove file.
84060
84061         Module long-options.
84062         * m4/long-options.m4: New file.
84063
84064         Module md5.
84065         * m4/md5.m4: New file.
84066
84067         Module sha.
84068         * m4/sha.m4: New file.
84069
84070         Module getstr.
84071         * m4/getstr.m4: New file.
84072
84073         Module getline.
84074         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84075         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84076         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84077         simply getline. Infoke gl_PREREQ_GETLINE.
84078
84079         Module obstack.
84080         * m4/obstack.m4: New file.
84081
84082         Module hash.
84083         * m4/hash.m4: New file.
84084
84085         Module readtokens.
84086         * m4/readtokens.m4: New file.
84087
84088         Module strverscmp.
84089         * m4/strverscmp.m4: New file.
84090
84091         Module stdbool.
84092         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84093         OSF/1.
84094
84095         Module strtoll.
84096         * m4/strtoll.m4: New file.
84097
84098         Module strtoull.
84099         * m4/strtoull.m4: New file.
84100
84101         Module strtoimax.
84102         * m4/strtoimax.m4: New file.
84103
84104         Module strtoumax.
84105         * m4/strtoumax.m4: New file.
84106
84107         Module xstrtoimax.
84108         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84109         jm_AC_PREREQ_XSTRTOIMAX.
84110         Moved the strtol prerequisites to strtol.m4.
84111         Moved the strtoll prerequisites to strtoll.m4.
84112         Moved the strtoimax prerequisites to strtoimax.m4.
84113
84114         Module xstrtoumax.
84115         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84116         jm_AC_PREREQ_XSTRTOUMAX.
84117         Moved the strtoul prerequisites to strtoul.m4.
84118         Moved the strtoull prerequisites to strtoull.m4.
84119         Moved the strtoumax prerequisites to strtoumax.m4.
84120
84121         Module chown.
84122         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84123         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84124
84125         Module dup2.
84126         * m4/dup2.m4: New file.
84127
84128         Module ftruncate.
84129         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84130         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84131
84132         Module getgroups.
84133         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84134         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84135
84136         Module gettimeofday.
84137         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84138         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84139         gl_PREREQ_GETTIMEOFDAY.
84140
84141         Module mkdir.
84142         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84143         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84144
84145         Module mkstemp.
84146         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84147         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84148         jm_AC_TYPE_UINTMAX_T.
84149         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84150
84151         Module stat.
84152         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84153         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84154
84155         Module lstat.
84156         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84157         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84158
84159         Module timespec.
84160         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84161         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84162         * m4/st_mtim.m4: Indentation.
84163
84164         Module nanosleep.
84165         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84166         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84167         gl_PREREQ_NANOSLEEP.
84168
84169         Module regex.
84170         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84171         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84172         (gl_REGEX): New macro.
84173
84174         Module rename.
84175         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84176         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84177
84178         Module rmdir.
84179         * m4/rmdir.m4: New file.
84180
84181         Module utime.
84182         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84183         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84184         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84185
84186         Module dirname.
84187         * m4/dirname.m4: New file.
84188
84189         Module getopt.
84190         * m4/getopt.m4: New file.
84191
84192         Module unistd-safer.
84193         * m4/unistd-safer.m4: New file.
84194
84195         Module fnmatch.
84196         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84197         declaration.
84198         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84199         (gl_FUNC_FNMATCH_POSIX): New macro.
84200         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84201         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84202         simply fnmatch.
84203
84204         Module exclude.
84205         * m4/exclude.m4: New file.
84206
84207         Module human.
84208         * m4/human.m4: New file.
84209
84210         Module acl.
84211         * m4/acl.m4: Nop.
84212
84213         Module backupfile.
84214         * m4/backupfile.m4: New file.
84215         * m4/d-ino.m4: Indentation.
84216
84217         Module fsusage.
84218         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84219         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84220         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84221
84222         Module dirfd.
84223         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84224         requirements.
84225
84226         Module euidaccess.
84227         * m4/euidaccess.m4: New file.
84228
84229         Module file-type.
84230         * m4/file-type.m4: New file.
84231
84232         Module fileblocks.
84233         * m4/fileblocks.m4: New file.
84234
84235         Module filemode.
84236         * m4/filemode.m4: New file.
84237
84238         Module isdir.
84239         * m4/isdir.m4: New file.
84240
84241         Module lchown.
84242         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84243         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84244
84245         Module makepath.
84246         * m4/makepath.m4: New file.
84247
84248         Module modechange.
84249         * m4/modechange.m4: New file.
84250
84251         Module mountlist.
84252         * m4/mountlist.m4: New file.
84253         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84254         Indentation.
84255
84256         Module path-concat.
84257         * m4/path-concat.m4: New file.
84258
84259         Module pathmax.
84260         * m4/pathmax.m4: New file.
84261
84262         Module same.
84263         * m4/same.m4: New file.
84264
84265         Module save-cwd.
84266         * m4/save-cwd.m4: New file.
84267
84268         Module savedir.
84269         * m4/savedir.m4: New file.
84270
84271         Module xgetcwd.
84272         * m4/xgetcwd.m4: New file.
84273         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84274
84275         Module xreadlink.
84276         * m4/xreadlink.m4: New file.
84277
84278         Module safe-read.
84279         * m4/safe-read.m4: New file.
84280
84281         Module safe-write.
84282         * m4/safe-write.m4: New file.
84283
84284         Module closeout.
84285         * m4/closeout.m4: New file.
84286
84287         Module stdio-safer.
84288         * m4/stdio-safer.m4: New file.
84289
84290         Module getpass.
84291         * m4/getpass.m4: New file.
84292
84293         Module getugroups.
84294         * m4/getugroups.m4: New file.
84295
84296         Module group-member.
84297         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84298         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84299
84300         Module idcache.
84301         * m4/idcache.m4: New file.
84302
84303         Module userspec.
84304         * m4/userspec.m4: New file.
84305
84306         Module gettime.
84307         * m4/clock_time.m4: New file.
84308         * m4/gettime.m4: New file.
84309
84310         Module settime.
84311         * m4/settime.m4: New file.
84312
84313         Module posixtm.
84314         * m4/posixtm.m4: New file.
84315
84316         Module gethostname.
84317         * m4/gethostname.m4: New file.
84318
84319         Module canon-host.
84320         * m4/canon-host.m4: New file.
84321
84322         Module gettext.
84323         * m4/codeset.m4: New file, from gettext-0.11.5.
84324         * m4/gettext.m4: New file, from gettext-0.11.5.
84325         * m4/glibc21.m4: New file, from gettext-0.11.5.
84326         * m4/iconv.m4: New file, from gettext-0.11.5.
84327         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84328         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84329         * m4/inttypes.m4: New file, from gettext-0.11.5.
84330         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84331         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84332         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84333         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84334         * m4/lib-link.m4: New file, from gettext-0.11.5.
84335         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84336         * m4/progtest.m4: New file, from gettext-0.11.5.
84337         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84338         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84339         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84340
84341         Module localcharset.
84342         * m4/localcharset.m4: New file.
84343
84344         Module hard-locale.
84345         * m4/hard-locale.m4: New file.
84346
84347         Module mbswidth.
84348         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84349         onceonly macros.
84350         * m4/mbrtowc.m4: Add comment.
84351
84352         Module memcasecmp.
84353         * m4/memcasecmp.m4: New file.
84354
84355         Module memcoll.
84356         * m4/memcoll.m4: New file.
84357
84358         Module unicodeio.
84359         * m4/unicodeio.m4: New file.
84360
84361         Module rpmatch.
84362         * m4/rpmatch.m4: New file.
84363
84364         Module yesno.
84365         * m4/yesno.m4: New file.
84366
84367         Module exitfail.
84368         * m4/exitfail.m4: New file.
84369
84370         Module c-stack.
84371         * m4/c-stack.m4 (gl_C_STACK): New macro.
84372         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
84373
84374         Module error.
84375         * m4/error.m4 (gl_ERROR): New macro.
84376         (jm_PREREQ_ERROR): Use onceonly macros.
84377
84378         Module fatal.
84379         * m4/fatal.m4: New file.
84380
84381         Module getloadavg.
84382         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
84383         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
84384
84385         Module getpagesize.
84386         * m4/getpagesize.m4: New file.
84387
84388         Module getusershell.
84389         * m4/getusershell.m4: New file.
84390
84391         Module physmem.
84392         * m4/physmem.m4: New file.
84393
84394         Module posixver.
84395         * m4/posixver.m4: New file.
84396
84397         Module quotearg.
84398         * m4/quotearg.m4: New file.
84399
84400         Module quote.
84401         * m4/quote.m4: New file.
84402
84403         Module readutmp.
84404         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
84405
84406         Module sig2str.
84407         * m4/sig2str.m4: New file.
84408
84409         Other.
84410         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
84411         ulonglong.m4.
84412         * m4/intmax_t.m4: New file.
84413         * m4/d-type.m4: Indentation.
84414         * m4/jm-macros.m4: Update.
84415         * m4/prereq.m4 (jm_PREREQ): Update.
84416         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
84417         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
84418         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
84419         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
84420         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
84421         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
84422         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
84423         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
84424         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
84425         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
84426         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
84427         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
84428         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
84429         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
84430         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
84431         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
84432         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
84433         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
84434         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
84435
84436 2002-12-24  Bruno Haible  <bruno@clisp.org>
84437
84438         * MODULES.txt: Update according to m4/ changes.
84439
84440         Module gettext.
84441         * config.rpath: New file, from gettext-0.11.5.
84442
84443         * modules/*: New module descriptions.
84444         * gnulib-tool: New file.
84445         * MODULES.html.sh: New file.
84446
84447 2002-12-21  Karl Berry  <karl@gnu.org>
84448
84449         * doc/fdl.texi: update to version 1.2.
84450
84451 2002-12-19  Karl Berry  <karl@gnu.org>
84452
84453         * config/config.guess: update from prep.
84454
84455 2002-12-18  Bruno Haible  <bruno@clisp.org>
84456
84457         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84458         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84459
84460 2002-12-17  Bruno Haible  <bruno@clisp.org>
84461
84462         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84463         stdlib.h, string.h.
84464
84465 2002-12-17  Bruno Haible  <bruno@clisp.org>
84466
84467         * lib/canon-host.c (strdup): Remove unused declaration.
84468
84469         * lib/fsusage.c: Include full_read.h.
84470         (get_fs_usage): Use full_read instead of safe_read.
84471
84472         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84473
84474 2002-12-12  Karl Berry  <karl@gnu.org>
84475
84476         * config/config.guess: update from prep.
84477
84478 2002-12-11  Bruno Haible  <bruno@clisp.org>
84479
84480         * m4/setenv.m4: New file, from gettext-0.11.5.
84481
84482 2002-12-11  Bruno Haible  <bruno@clisp.org>
84483
84484         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
84485         not unsetenv().
84486         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
84487         modifications:
84488
84489         2002-12-11  Bruno Haible  <bruno@clisp.org>
84490
84491                 * setenv.c (alloca): Fall back to malloc.
84492                 (freea): New macro.
84493                 (setenv): Use freea() to free memory allocated with alloca().
84494
84495         2002-11-13  Bruno Haible  <bruno@clisp.org>
84496
84497                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
84498                 function declarations.
84499                 * unsetenv.c (unsetenv): Likewise.
84500
84501         2002-03-04  Bruno Haible  <bruno@clisp.org>
84502
84503                 Portability to AIX 4.3.3.
84504                 * unsetenv.c: New file, extracted from setenv.c.
84505                 * setenv.c: Move the unsetenv() function to unsetenv.c.
84506
84507         2001-12-20  Bruno Haible  <bruno@clisp.org>
84508
84509                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
84510                 use malloc instead. For SunOS 4.
84511
84512         2001-12-11  Bruno Haible  <bruno@clisp.org>
84513
84514                 * setenv.c: Declare alloca.
84515                 (compar_fn_t): New typedef.
84516                 (KNOWN_VALUE, STORE_VALUE): Use it.
84517
84518         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
84519         setenv.h.
84520
84521 2002-12-10  Paul Eggert  <eggert@twinsun.com>
84522
84523         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84524         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84525         Choose values that are less likely to collide with system fnmatch
84526         options.
84527         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
84528         defined (e.g., a pure POSIX system).
84529         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
84530         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
84531
84532 2002-12-06  Paul Eggert  <eggert@twinsun.com>
84533
84534         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
84535         a pain in practice to deal with generated m4 files.  This change
84536         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
84537
84538         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
84539         and jm-glibc-io.m4, as they are no longer a special case.
84540         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
84541         kludge and the auto-generation stuff.  Check only whether the
84542         functions are declared, not whether they exist, since older hosts
84543         that don't declare the functions can't use the optimization anyway.
84544
84545 2002-12-06  Jim Meyering  <jim@meyering.net>
84546
84547         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
84548
84549         Merge in changes from libc's misc/error.c, in preparation
84550         for the merge of gnulib's changes back into libc.
84551
84552         * lib/error.c (_): Define only if not already defined.
84553         Move definition to follow all #include directives.
84554         Include unlocked-io.h only if !_LIBC.
84555         [_LIBC]: Include <libio/libioP.h>.
84556         [USE_IN_LIBIO]: Include <libio/iolibio.h>
84557         (fflush): Tweak definition to use INTUSE.
84558         (putc): Define.
84559
84560 2002-12-05  Paul Eggert  <eggert@twinsun.com>
84561
84562         * lib/alloca.c [defined emacs]: Include "lisp.h".
84563         (xalloc_die) [defined emacs]: New macro.
84564         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
84565         [! defined emacs]: Include <xalloc.h>.
84566         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
84567         (pointer): Typedef to POINTER_TYPE *.
84568         (malloc): Remove decl; we now always use xmalloc.
84569         (alloca): Use old-style definition, since Emacs needs this.
84570         Check for arithmetic overflow when computing combined size.
84571
84572 2002-12-04  Paul Eggert  <eggert@twinsun.com>
84573
84574         Do not generate unlocked-io.h automatically, since it's easier to
84575         maintain it by hand.
84576
84577         * lib/unlocked-io.h: New file, from GNU diffutils,
84578         but with proper copyright notice and attribution.
84579         * lib/gen-uio: Remove.
84580         * lib/Makefile.am: Add copyright notice.
84581         (libfetish_a_SOURCES): Add unlocked-io.h.
84582         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
84583         (DISTCLEANFILES, io_functions): Remove macros.
84584         (EXTRA_DIST): Remove gen_uio.
84585         (unlocked-io.h): Remove rule.
84586
84587 2002-12-04  Jim Meyering  <jim@meyering.net>
84588
84589         Reflect the fact that stat.c and lstat.c are no longer generated.
84590         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
84591         (DISTCLEANFILES): Likewise.
84592         (EXTRA_DIST): Likewise.
84593         (all_local): Don't depend on stat.c or lstat.c.
84594         (stat.c, lstat.c): Remove rules.
84595         (EXTRA_DIST): Remove xstat.in.
84596
84597         * lib/xstat.in: Remove file.  Contents moved into stat.c.
84598         * lib/stat.c: New file.  Contents mostly from xstat.in.
84599         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
84600         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
84601
84602         * lib/safe-read.c: Rework so that it may serve to define safe_write,
84603         too.
84604         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
84605
84606 2002-12-03  Jim Meyering  <jim@meyering.net>
84607
84608         * lib/safe-read.c, safe-write.c: Change variable names and comments,
84609         but not semantics, to minimize the differences between these two files.
84610         (safe_read): Change comment to mention SAFE_READ_ERROR.
84611
84612         * lib/safe-read.c (IS_EINTR): Define.
84613         (safe_read): Use IS_EINTR in place of in-function cpp directives.
84614
84615 2002-12-02  Jim Meyering  <jim@meyering.net>
84616
84617         * lib/safe-read.c (EINTR): Define.
84618         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84619         (INT_MAX): Provide fallback.
84620         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
84621
84622         * lib/safe-read.h (SAFE_READ_ERROR): Define.
84623
84624 2002-12-02  Bruno Haible  <bruno@clisp.org>
84625
84626         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
84627         Define, taken from safe-read.c.
84628         (INT_MAX): Provide fallback.
84629         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
84630         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
84631
84632         * lib/safe-read.c (EINTR): Remove definition.
84633         (safe_read): Don't use EINTR if it is absent.
84634
84635 2002-12-01  Jim Meyering  <jim@meyering.net>
84636
84637         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
84638         zero.
84639         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
84640
84641 2002-11-27  Paul Eggert  <eggert@twinsun.com>
84642
84643         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
84644         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
84645         with `if (! (value < limit)) abort ();', for readability.
84646
84647 2002-11-26  Karl Berry  <karl@gnu.org>
84648
84649         * lib/strdup.c: copy from libc again, with jim's ok.
84650         * lib/.cppi-disable: re-add strdup.c
84651
84652 2002-11-25  Karl Berry  <karl@gnu.org>
84653
84654         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
84655         instead of "strtol.c".
84656
84657 2002-11-25  Karl Berry  <karl@gnu.org>
84658
84659         * config/install-sh: update from automake for variable quoting, $0 in
84660         error msgs, etc.
84661
84662         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
84663         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
84664         entry.
84665
84666 2002-11-25  Jim Meyering  <jim@meyering.net>
84667
84668         * lib/mktime.c: Sync from libc, now that it has the latest fix.
84669
84670 2002-11-24  Karl Berry  <karl@gnu.org>
84671
84672         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
84673         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
84674
84675 2002-11-24  Jim Meyering  <jim@meyering.net>
84676
84677         Update from coreutils:
84678
84679         * lib/mktime.c: Merge in changes from libc.
84680
84681         Avoid a link-time failure on some Linux systems.
84682         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
84683         (otherwise).
84684         (__mon_yday): Declare with the STATIC attribute.
84685         (__mktime_internal): Likewise.
84686         Based on a report from Greg Schafer.
84687
84688 2002-11-23  Jim Meyering  <jim@meyering.net>
84689
84690         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
84691         Use `unsigned', not `int', as type of index.
84692
84693         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
84694
84695         * lib/fsusage.c: Remove unneeded parentheses around operands of
84696         `defined'.
84697
84698 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84699
84700         * lib/quotearg.h: Allow multiple inclusion by surrounding with
84701         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
84702         so that we can be included first.
84703         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
84704         * lib/quotearg.c: Include quotearg.h immediately after config.h.
84705         No need to include stddef.h or sys/types.h any more.
84706         Surround local include files with "", not "<>".
84707         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
84708         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
84709         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
84710         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
84711         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
84712         (ISPRINT): Remove; no longer needed now that we assume C89.
84713
84714         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
84715         Preserve errno.
84716
84717         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
84718         quotearg_char): Use SIZE_MAX rather than
84719         (size_t) -1 when we are talking about "infinity".
84720
84721         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
84722
84723 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84724
84725         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
84726         hint that one should use `if (! x) abort ();' rather than `assert
84727         (x);', and anyway it's one less thing to worry about configuring.
84728         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
84729         hash_rehash, hash_insert): Use abort rather than assert.
84730
84731 2002-11-22  Bruno Haible  <bruno@clisp.org>
84732
84733         * lib/safe-read.h: Assume C89. Add comments.
84734         (safe_read): Change return type to size_t.
84735         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
84736         byte counts > SSIZE_MAX correctly.
84737         * lib/safe-write.h: New file.
84738         * lib/safe-write.c: New file.
84739         * lib/full-read.h: New file.
84740         * lib/full-read.c: New file.
84741         * lib/full-write.h: Assume C89. Add comments.
84742         * lib/full-write.c: Include safe-write.h.
84743         (full_write): Rewritten to use safe_write.
84744         Suggested by Jim Meyering and Paul Eggert.
84745
84746 2002-11-21  Jim Meyering  <jim@meyering.net>
84747
84748         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
84749
84750         Merge in changes from the coreutils.
84751
84752         2002-09-25  Paul Eggert  <eggert@twinsun.com>
84753         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
84754         <stdint.h>.
84755         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
84756         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
84757         int.  Work more efficiently if X is the same width as uintmax_t.
84758         Do not compare X to -1, to avoid bogus compiler warning.
84759         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
84760         Don't assume that f_frsize and f_bsize are the same type.
84761
84762         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
84763         warning on FreeBSD.
84764
84765         * lib/makepath.c (make_path): Restore umask *before* creating the final
84766         component.
84767         (make_path): Minor reformatting.
84768
84769         * lib/xmalloc.c: Adjust to work with new autoconf macros,
84770         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
84771         HAVE_MALLOC/HAVE_REALLOC.
84772
84773         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
84774         dummy ones.  At least on GNU/Linux systems, `auto' means something
84775         else.
84776         From Michael Stone.
84777
84778 2002-11-21  Bruno Haible  <bruno@clisp.org>
84779
84780         Remove case insensitive option matching.
84781         * lib/argmatch.h (argcasematch): Remove declaration.
84782         (ARGCASEMATCH): Remove macro.
84783         (__xargmatch_internal): Remove case_sensitive argument.
84784         (XARGMATCH): Update.
84785         (XARGCASEMATCH): Remove macro.
84786         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
84787         case_sensitive argument.
84788         (argcasematch): Remove function.
84789         (__xargmatch_internal): Remove case_sensitive argument.
84790         (main): Use XARGMATCH instead of XARGCASEMATCH.
84791
84792         * lib/xmalloc.c: Change compile-time error message. Add comment about
84793         required autoconf version.
84794
84795 2002-11-20  Paul Eggert  <eggert@twinsun.com>
84796
84797         Merge argmatch cleanups from Bison.  Assume C89.
84798
84799         * lib/argmatch.c: Include config.h here, not in argmatch.h.
84800         Include stdlib.h, for EXIT_FAILURE.
84801         Always include <string.h>, since we assume C89.
84802         (EXIT_FAILURE): Remove pre-C89 bug workaround.
84803         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
84804         Include <stddef.h> instead, since it's all we need for size_t.
84805         (PARAMS): Remove.  All uses removed.
84806         (ARRAY_CARDINALITY): Do not bother to #undef.
84807         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
84808         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84809         Remove unnecessary parentheses.
84810         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84811         Insert necessary parentheses.
84812         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
84813         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
84814
84815 2002-11-19  Bruno Haible  <bruno@clisp.org>
84816
84817         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
84818         * lib/mbswidth.h: Include <stddef.h>, for size_t.
84819
84820         * lib/mbswidth.h (PARAMS): Remove macro.
84821         (mbswidth, mbsnwidth): Use ANSI C function declarations.
84822         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
84823
84824         * lib/gcd.h (PARAMS): Remove macro.
84825         (gcd): Use ANSI C function declarations.
84826         * lib/gcd.c (gcd): Likewise.
84827
84828 2002-11-15  Bruno Haible  <bruno@clisp.org>
84829
84830         * lib/strcspn.c: Include <stddef.h>.
84831         (strcspn): Use ANSI C function declaration. Change return type to
84832         size_t. Use NULL.
84833         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
84834         (strpbrk): Use NULL.
84835         * lib/strpbrk.h (PARAMS): Remove macro.
84836         (strpbrk): Use ANSI C function declaration.
84837         * lib/strstr.c: Don't include <sys/types.h>.
84838         * lib/strstr.h (PARAMS): Remove macro.
84839         (strstr): Use ANSI C function declarations.
84840
84841 2002-11-14  Karl Berry  <karl@gnu.org>
84842
84843         * config/mkinstalldirs: `do' on separate line, instead of
84844         `for var; do'.
84845
84846 2002-11-06  Bruno Haible  <bruno@clisp.org>
84847
84848         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
84849         * lib/gcd.c (gcd): Likewise.
84850
84851 2002-11-05  Bruno Haible  <bruno@clisp.org>
84852
84853         * lib/gcd.h: New file, from gettext-0.11.5.
84854         * lib/gcd.c: New file, from gettext-0.11.5.
84855
84856 2002-11-05  Bruno Haible  <bruno@clisp.org>
84857
84858         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84859         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84860         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84861         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84862
84863         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
84864         <libintl.h>.
84865         * lib/makepath.c: Include gettext.h instead of <locale.h> and
84866         <libintl.h>.
84867
84868         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
84869         * lib/human.c: Include gettext.h instead of <libintl.h>.
84870         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
84871         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
84872         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
84873         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
84874         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
84875         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
84876         (textdomain): Remove definition.
84877         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
84878
84879         * lib/long-options.c: Remove include of <libintl.h> and definition of
84880         _.
84881         * lib/same.c: Remove include of <libintl.h> and definition of _.
84882
84883 2002-11-04  Owen Taylor  <otaylor@redhat.com>
84884
84885         * lib/config.charset: A few additions for Solaris.
84886
84887 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84888
84889         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
84890         * lib/localcharset.c (locale_charset): Declare as extern "C".
84891
84892 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84893
84894         * lib/config.charset: msdos in uk_UA uses CP1125.
84895
84896 2002-11-04  Bruno Haible  <bruno@clisp.org>
84897
84898         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
84899         * lib/strcase.h: New file, from GNU gettext-0.11.5.
84900         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
84901         * lib/strstr.h: New file, from GNU gettext-0.11.5.
84902         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
84903
84904 2002-11-04  Bruno Haible  <bruno@clisp.org>
84905
84906         * lib/localcharset.c (locale_charset): Don't return an empty string.
84907
84908 2002-11-04  Bruno Haible  <bruno@clisp.org>
84909
84910         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
84911         aliases.
84912
84913 2002-11-04  Bruno Haible  <bruno@clisp.org>
84914
84915         * lib/config.charset: Update for newest glibc. Add canonical names
84916         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
84917
84918 2002-11-04  Bruno Haible  <bruno@clisp.org>
84919
84920         * lib/config.charset: Add support for NetBSD.
84921
84922 2002-11-04  Bruno Haible  <bruno@clisp.org>
84923
84924         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
84925
84926 2002-11-01  Bruno Haible  <bruno@clisp.org>
84927
84928         * configure.in: Add AC_CONFIG_AUX_DIR call.
84929         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
84930         test/Makefile.
84931         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
84932
84933 2002-09-28  Karl Berry  <karl@gnu.org>
84934
84935         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
84936         installed automake until the next release, since changes have been
84937         made.
84938
84939 2002-09-25  Karl Berry  <karl@gnu.org>
84940
84941         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
84942         * lib/getopt*: copy from libc/posix.
84943         * lib/gettext.h: copy from gettext.
84944         * lib/.cppi-disable: add strdup.c, gettext.h.
84945
84946 2002-09-25  Karl Berry  <karl@gnu.org>
84947
84948         * config/srclist.txt: enable gettext.h check.
84949         * config/config.{guess,sub}: update from prep.
84950         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
84951                 from automake 1.6.3.
84952         See srclist*.
84953
84954 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
84955
84956         * regex.c (PATFETCH): Remove the translating fetch.
84957         (PATFETCH_RAW): Rename to PATFETCH.
84958         (set_image_of_range): New fun.
84959         (SET_RANGE_TABLE_WORK_AREA): Use it.
84960         (regex_compile): Don't translate the pattern chars so eagerly.
84961         Only do it when inserting an `exactn' bytecode or when handling
84962         a char-range.
84963         (mutually_exclusive_p): Avoid empty statement.
84964
84965 2002-07-06  Jim Meyering  <meyering@lucent.com>
84966
84967         * m4/README: Don't mention Makefile.am.in.
84968         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
84969
84970 2002-07-01  Jim Meyering  <meyering@lucent.com>
84971
84972         * lib/c-stack.c: Include sys/time.h.
84973         From Volker Borchert.
84974
84975 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84976
84977         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
84978
84979 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84980
84981         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
84982         New macro.  Use it uniformly instead of
84983         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
84984         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
84985         reported by Vin Shelton.
84986
84987 2002-06-22  Paul Eggert  <eggert@twinsun.com>
84988
84989         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
84990         Do not assume SA_SIGINFO behavior.
84991         Bug reported by Jim Meyering on NetBSD 1.5.2.
84992
84993 2002-06-22  Jim Meyering  <meyering@lucent.com>
84994
84995         * m4/c-stack.m4: New file, from diffutils-2.8.2.
84996         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
84997
84998         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
84999         now that configure.ac uses AC_GNU_SOURCE.
85000         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85001         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85002
85003         Update to latest tools.  Suggestions from Paul Eggert.
85004         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85005         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85006         * m4/fnmatch.m4: Likewise.
85007         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85008         to AC_HEADER_STDBOOL
85009
85010 2002-06-22  Jim Meyering  <meyering@lucent.com>
85011
85012         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85013         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85014
85015 2002-06-22  Jim Meyering  <meyering@lucent.com>
85016
85017         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85018
85019         * lib/exitfail.c, exitfail.h: Likewise.
85020         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85021
85022         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85023         of fnmatch.h.
85024         (EXTRA_DIST): Add fnmatch_loop.c.
85025         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85026
85027         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85028         * lib/fnmatch.c: Update from diffutils-2.8.2.
85029         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85030         * lib/fnmatch.h: Remove file.
85031
85032 2002-06-21  Jim Meyering  <meyering@lucent.com>
85033
85034         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85035         * m4/mbrtowc.m4: Likewise.
85036
85037         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85038         * m4/mbswidth.m4: Reflect name change:
85039         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85040         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85041
85042         * m4/lib-link.m4: Update from gettext-0.11.2.
85043         * m4/gettext.m4: Likewise.
85044
85045         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85046         From Alfred M. Szmidt.
85047
85048 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85049
85050         * lib/file-type.h: Report an error if neither S_ISREG nor
85051         S_IFREG is defined, instead of using a test specific to glibc
85052         2.2.  This should be safe, since POSIX requires S_ISREG and
85053         Unix Version 7 had S_IFREG.  We don't need to check for
85054         <sys/types.h> since we don't use any symbols that it defines.
85055
85056 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85057
85058         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85059         $@-t, so that each temporary file name is unique and valid in the first
85060         8 characters, for operation under DOS.
85061
85062 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85063
85064         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85065
85066 2002-06-15  Jim Meyering  <meyering@lucent.com>
85067
85068         Work even with DJGPP 2.03, which lacks support for symlinks.
85069         From Richard Dawe.
85070         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85071         is defined.
85072         * lib/lchown.c (S_ISLNK): Likewise.
85073
85074 2002-06-15  Jim Meyering  <meyering@lucent.com>
85075
85076         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85077         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85078         have been included before this file.
85079
85080 2002-06-14  Jim Meyering  <meyering@lucent.com>
85081
85082         * lib/file-type.h: Use the version from diffutils-2.8.2.
85083         * lib/file-type.c: Likewise.
85084
85085 2002-06-07  Jim Meyering  <meyering@lucent.com>
85086
85087         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85088         They're needed at least for NetBSD 1.5.2.
85089         ($statxfs_includes): Include those same headers.
85090         ($statxfs_includes): Include sys/vfs.h if available.
85091         ($statxfs_includes): Likewise for sys/statvfs.h.
85092         Check for the following members in both structs statfs and statvfs:
85093         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85094
85095 2002-06-01  Jim Meyering  <meyering@lucent.com>
85096
85097         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85098         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85099
85100 2002-05-28  Jim Meyering  <meyering@lucent.com>
85101
85102         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85103         Reported by Volker Borchert.
85104
85105 2002-05-27  Jim Meyering  <meyering@lucent.com>
85106
85107         Fix a problem seen only on nonconforming systems whereby ls.c's
85108         use of localtime, and then of gettimeofday would cause trouble:
85109         the localtime call used to initialize rpl_gettimeofday's save
85110         mechanism would clobber ls's current local time information so
85111         that in any long listing the first file would always be listed
85112         with date 1970-01-01.  Analysis by Volker Borchert.
85113
85114         * lib/gettimeofday.c (localtime): Undefine.
85115         (rpl_localtime): New function.
85116
85117 2002-05-27  Jim Meyering  <meyering@lucent.com>
85118
85119         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85120         localtime.
85121
85122         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85123         use the replacement function; it wouldn't resolve at link time.
85124         Reported by Volker Borchert.
85125
85126 2002-05-22  Jim Meyering  <meyering@lucent.com>
85127
85128         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85129         file-type.h.
85130         * lib/file-type.h: New file.
85131         * lib/file-type.c (file_type): New file/function.  Extracted from
85132         diffutils.
85133
85134 2002-04-30  Jim Meyering  <meyering@lucent.com>
85135
85136         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85137
85138 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85139
85140         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85141
85142 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85143
85144         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85145         Do not check for alloca.h (no longer used) or stdbool.h (was never
85146         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85147
85148 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85149
85150         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85151
85152 2002-04-29  Jim Meyering  <meyering@lucent.com>
85153
85154         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85155         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85156         Use AC_FUNC_STRNLEN here instead.
85157
85158         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85159         With autoconf-2.53a, it's part of AC_PROG_CC.
85160
85161 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85162
85163         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85164         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85165
85166 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85167
85168         * lib/sig2str.h, lib/sig2str.c: New files.
85169         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85170
85171 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85172
85173         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85174         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85175         of 127, since 64 is the largest conceivable number for ancient
85176         nonstandard hosts.
85177         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85178
85179 2002-04-28  Jim Meyering  <meyering@lucent.com>
85180
85181         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85182
85183 2002-04-24  Jim Meyering  <meyering@lucent.com>
85184
85185         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85186         (jm_PREREQ): Use it.
85187
85188         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85189         mach/mach.h fcntl.h.
85190         Check for this function: setlocale.
85191
85192 2002-04-24  Jim Meyering  <meyering@lucent.com>
85193
85194         * lib/gettext.h: New file, from Gettext.
85195         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85196         (libfetish_a_SOURCES): Add gettext.h.
85197
85198 2002-04-16  Jim Meyering  <meyering@lucent.com>
85199
85200         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85201         ut_pid, ut_id, ut_exit.
85202
85203 2002-04-16  Jim Meyering  <meyering@lucent.com>
85204
85205         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85206         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85207         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85208
85209 2002-04-12  Jim Meyering  <meyering@lucent.com>
85210
85211         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85212         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85213         existence of the getmntinfo function.  Needed for Darwin 5.3.
85214
85215         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85216         This is necessary at least on Darwin 5.3.
85217
85218         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85219         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85220         strnlen.o in the library, and that makes some versions of ranlib
85221         object.
85222
85223 2002-04-12  Jim Meyering  <meyering@lucent.com>
85224
85225         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85226
85227 2002-04-09  Jim Meyering  <meyering@lucent.com>
85228
85229         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85230         to be more precise.  Rather than saying we're checking whether the
85231         function `works', say what we're testing.
85232         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85233         Reported by Bruno Haible.
85234
85235 2002-03-10  Jim Meyering  <meyering@lucent.com>
85236
85237         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85238         Suggestion from Santiago Vila.
85239
85240 2002-03-08  Jim Meyering  <meyering@lucent.com>
85241
85242         * lib/rename.c: Mention that this wrapper is needed also on
85243         mips-dec-ultrix4.4 systems.
85244
85245 2002-03-02  Jim Meyering  <meyering@lucent.com>
85246
85247         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85248         not HAVE_CLOCK_SETTIME.
85249
85250 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85251
85252         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85253         Check for clock_settime.
85254
85255 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85256
85257         * lib/nanosleep.h: Rename to....
85258         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85259
85260         * lib/gettime.c: New file.
85261         * lib/settime.c: New file.
85262         * lib/stime.c: Remove.
85263
85264         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85265         timespec.h.  Remove nanosleep.h.
85266
85267 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85268
85269         * m4/acl.m4: New file.
85270         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85271         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85272
85273 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85274
85275         * lib/acl.c, lib/acl.h: New files.
85276         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85277
85278 2002-02-24  Jim Meyering  <meyering@lucent.com>
85279
85280         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85281         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85282         cause trouble.  Reported by Nelson Beebe.
85283
85284 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85285
85286         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85287         compilers that don't know that xalloc_die never returns.
85288
85289 2002-02-20  Jim Meyering  <meyering@lucent.com>
85290
85291         * lib/getdate.c: Regenerate using bison-1.33.
85292
85293 2002-02-17  Jim Meyering  <meyering@lucent.com>
85294
85295         * config/config.guess (main): Don't use `head -1'; it's no longer
85296         portable. Use `sed 1q' instead.
85297
85298 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85299
85300         * m4/codeset.m4: Upgrade to gettext-0.11.
85301         * m4/gettext.m4: Upgrade to gettext-0.11.
85302         * m4/glibc21.m4: Upgrade to gettext-0.11.
85303         * m4/iconv.m4: Upgrade to gettext-0.11.
85304         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85305         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85306         * m4/lib-ld.m4: New file, from gettext-0.11.
85307         * m4/lib-link.m4: New file, from gettext-0.11.
85308         * m4/lib-prefix.m4: New file, from gettext-0.11.
85309         * m4/progtest.m4: Upgrade to gettext-0.11.
85310
85311 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85312
85313         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85314         (jm_PREREQ): Use it.
85315
85316 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85317
85318         * lib/posixver.c, lib/posixver.h: New files.
85319         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85320
85321 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85322             Bruno Haible  <bruno@clisp.org>
85323
85324         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85325         (fwrite_success_callback): New declaration.
85326         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85327         print_unicode_char. Call failure callback instead of error.
85328         (fwrite_success_callback): New function.
85329         (exit_failure_callback): New function.
85330         (fallback_failure_callback): New function.
85331         (print_unicode_char): Call unicode_to_mb.
85332
85333 2002-01-26  Jim Meyering  <meyering@lucent.com>
85334
85335         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85336         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85337
85338 2002-01-26  Jim Meyering  <meyering@lucent.com>
85339
85340         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85341
85342 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85343
85344         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85345
85346 2002-01-22  Jim Meyering  <meyering@lucent.com>
85347
85348         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85349         Otherwise, some versions of automake would omit the rule that makes
85350         Makefile from Makefile.in.
85351
85352 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85353
85354         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
85355         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85356         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
85357         (memcoll): Set errno to zero if there is no error.
85358
85359         * lib/quotearg.c (quotearg_buffer_restyled):
85360         Fix bug with quoting buffers containing NUL when backslashing escapes.
85361         This bug was exposed by the other changes in this patch.
85362         (quotearg_n_options): New arg ARGSIZE.
85363         All callers changed.
85364         (quoting_options_from_style): New function.
85365         (quotearg_n_style): Use it.
85366         (quotearg_n_style_mem): New function.
85367
85368         * lib/quotearg.h (quotearg_n_style_mem): New function.
85369
85370 2002-01-19  Jim Meyering  <meyering@lucent.com>
85371
85372         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
85373         Remove useless quotes: DF_PROG="df".
85374         * m4/strnlen.m4: New file.
85375
85376 2002-01-16  Paul Eggert  <eggert@twinsun.com>
85377
85378         * lib/backupfile.c (ISDIGIT): Comment fix.
85379         * lib/getdate.y (ISDIGIT): Likewise.
85380         * lib/posixtm.c (ISDIGIT, year): Likewise.
85381         * lib/strverscmp.c (ISDIGIT): Likewise.
85382         * lib/userspec.c (ISDIGIT): Likewise.
85383
85384 2002-01-16  Jim Meyering  <meyering@lucent.com>
85385
85386         * lib/getdate.y: Add three semicolons, each just before a closing
85387         brace. Bison (as of version 1.31) no longer papers over that mistake.
85388
85389 2002-01-05  Jim Meyering  <meyering@lucent.com>
85390
85391         * lib/version-etc.c (version_etc_copyright): Update copyright year.
85392
85393 2001-12-19  Paul Eggert  <eggert@twinsun.com>
85394
85395         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
85396         not silently exit merely because the output buffer happens to
85397         have nothing pending.
85398
85399 2001-12-18  Paul Eggert  <eggert@twinsun.com>
85400
85401         See the big note in ../ChangeLog.
85402         * lib/human.c (suffixes): Prefer K to k for 1024.
85403         (generate_suffix_backwards): New function.
85404         (human_readable_inexact): Use it.
85405         * lib/xstrtol.c (__xstrtol): If there is no number but there
85406         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
85407         Accept 'K' as well as 'k'.
85408
85409 2001-12-15  Jim Meyering  <meyering@lucent.com>
85410
85411         * lib/regex.h (__restrict_arr): Update from libc.
85412
85413         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
85414         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
85415         (STREQ): Define.
85416
85417 2001-12-14  Jim Meyering  <meyering@lucent.com>
85418
85419         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
85420         Suggestion from Bruno Haible.
85421
85422 2001-12-10  Jim Meyering  <meyering@lucent.com>
85423
85424         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
85425         xrealloc, Instead, include "xalloc.h".
85426         (initbuffer): Don't cast xmalloc return value to char*.
85427         (readline): Reword comment.
85428         Don't cast xrealloc return value to char*
85429         Return NULL, not 0.
85430
85431 2001-12-09  Jim Meyering  <meyering@lucent.com>
85432
85433         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
85434         about `signed and unsigned type in conditional expression'.
85435         * lib/posixtm.c (posix_time_parse): Likewise.
85436
85437         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
85438
85439         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
85440         to avoid a pedantic warning.
85441
85442         * lib/getstr.c: Don't include assert.h.
85443         (getstr): Remove warning-evoking assertions.
85444         Return -1 if offset parameter is out of bounds.
85445         Change the type of a local from int to size_t.
85446
85447         * lib/strftime.c (my_strftime_localtime_r): Include this function
85448         definition in the `#if ! HAVE_TM_GMTOFF' block.
85449
85450         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
85451         Include xalloc.h instead.
85452
85453 2001-12-02  Jim Meyering  <meyering@lucent.com>
85454
85455         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85456         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85457         included.
85458
85459         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85460         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85461
85462 2001-11-30  Akim Demaille  <akim@epita.fr>
85463
85464         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85465         before being defined.
85466
85467 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85468
85469         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85470         First arg is int, not unsigned.
85471         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85472         (SIZE_MAX, UINT_MAX): New macros.
85473         (quotearg_n_options): Abort if N is negative.
85474         Avoid overflow check on hosts where size_t is 64 bits and int
85475         is 32 bits, as overflow is impossible there.
85476         Fix off-by-one typo that caused unnecessary reallocation.
85477
85478 2001-11-27  Jim Meyering  <meyering@lucent.com>
85479
85480         * lib/tempname.c: Merge with version from libc.
85481         * lib/regex.c: Likewise.
85482
85483         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
85484         systems for which STDC_HEADERS is 0, it was not included, resulting in
85485         a warning about an integer-to-pointer conversion problem with getenv.
85486         Reported by Volker Borchert.
85487
85488 2001-11-26  Jim Meyering  <meyering@lucent.com>
85489
85490         * lib/gtod.h: Remove file.
85491         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
85492         * lib/gettimeofday.c: Don't include gtod.h.
85493         (GTOD_init): Remove function.
85494         (rpl_gettimeofday): Do its job here instead, rather than aborting.
85495         Suggestion from Volker Borchert.
85496
85497 2001-11-23  Jim Meyering  <meyering@lucent.com>
85498
85499         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
85500         it.
85501         * lib/hash.c (struct hash_table): Define it here instead.
85502
85503 2001-11-22  Jim Meyering  <meyering@lucent.com>
85504
85505         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
85506
85507 2001-11-20  Jim Meyering  <meyering@lucent.com>
85508
85509         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
85510         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
85511
85512 2001-11-19  Jim Meyering  <meyering@lucent.com>
85513
85514         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
85515         directory.  Use "conftestXXXXXX" as the template.
85516         Suggestion from Paul Eggert.
85517
85518         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
85519         immediately, so the test doesn't mistakenly hit the max-open-files
85520         limit.
85521
85522 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85523
85524         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85525         (TEMPORARIES): New macro.
85526         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
85527         removes an artificial limitation (e.g. HP-UX 10.20, where
85528         TMP_MAX is 17576).
85529
85530 2001-11-18  Jim Meyering  <meyering@lucent.com>
85531
85532         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
85533
85534 2001-11-18  Jim Meyering  <meyering@lucent.com>
85535
85536         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
85537         on SunOS 4.
85538
85539         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
85540         files will be created before anything else.
85541
85542 2001-11-17  Paul Eggert  <eggert@twinsun.com>
85543
85544         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
85545         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
85546
85547 2001-11-17  Jim Meyering  <meyering@lucent.com>
85548
85549         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
85550         Prompted by a report from Bob Proulx.
85551
85552         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
85553         Instead, require UTILS_FUNC_MKSTEMP.
85554
85555 2001-11-17  Jim Meyering  <meyering@lucent.com>
85556
85557         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
85558         Now, that's done as part of AC_FUNC_STRTOD.
85559
85560 2001-11-17  Jim Meyering  <meyering@lucent.com>
85561
85562         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
85563         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
85564         rather than group writable.  Patch by Juan F. Codagnone.
85565
85566         * lib/readtokens.c: Remove explicit declarations of xmalloc and
85567         xrealloc, Instead, include "xalloc.h".
85568
85569         * lib/mountlist.c: Include unlocked-io.h after all system headers.
85570         Remove explicit declarations of xmalloc, xrealloc,
85571         and xstrdup.  Instead, include "xalloc.h".
85572
85573         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
85574         unlocked-io.h.
85575         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
85576         Likewise.
85577         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
85578
85579         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
85580         Reported by Padraig Brady.
85581
85582         * lib/mkstemp.c: #undef mkstemp.
85583         Include config.h.
85584         (rpl_mkstemp): Rename from mkstemp.
85585         Protoize.
85586
85587 2001-11-16  Jim Meyering  <meyering@lucent.com>
85588
85589         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
85590         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
85591         determine the amount of total physical memory, use pstat_getstatic.
85592         HPUX-11 doesn't define _SC_PHYS_PAGES.
85593         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
85594         If sysconf couldn't be used to determine the amount of available
85595         physical memory, use both pstat_getstatic and pstat_getdynamic.
85596         Based on a patch from Bob Proulx.
85597
85598 2001-11-10  Jim Meyering  <meyering@lucent.com>
85599
85600         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
85601         (jm_PREREQ): Use it.
85602
85603 2001-11-09  Jim Meyering  <meyering@lucent.com>
85604
85605         * m4/jm-macros.m4: Require autoconf-2.52f.
85606         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
85607         Use these AC_-prefixed names, not the AM_-prefixed ones.
85608
85609         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
85610
85611 2001-11-05  Jim Meyering  <meyering@lucent.com>
85612
85613         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
85614
85615 2001-11-04  Jim Meyering  <meyering@lucent.com>
85616
85617         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
85618         $DEFS.
85619
85620 2001-11-03  Jim Meyering  <meyering@lucent.com>
85621
85622         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
85623         of AC_DEFUN.
85624
85625         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
85626         know the name of the variable in the macro definition.
85627
85628 2001-11-03  Jim Meyering  <meyering@lucent.com>
85629
85630         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
85631         in argmatch_to_argument call.
85632
85633         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
85634         argument.
85635
85636         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
85637         e.g., a fault due to an attempt to free a NULL pointer.
85638
85639 2001-11-01  Jim Meyering  <meyering@lucent.com>
85640
85641         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
85642         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
85643
85644 2001-11-01  Jim Meyering  <meyering@lucent.com>
85645
85646         * lib/dirfd.c, lib/dirfd.h: New files.
85647         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
85648
85649         * lib/hash.c (hash_print) [TESTING]: Clean up.
85650
85651 2001-10-22  Paul Eggert  <eggert@twinsun.com>
85652
85653         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
85654         to avoid a warning if -Wall.
85655
85656 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
85657
85658         * README: New file
85659         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
85660         (per RMS's instructions, this is now the canonical source)
85661         * lgpl/, gpl/: New directories.
85662
85663 2001-10-21  Paul Eggert  <eggert@twinsun.com>
85664
85665         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
85666
85667 2001-10-21  Jim Meyering  <meyering@lucent.com>
85668
85669         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
85670         this code would end up calling gettext even in packages built
85671         with --disable-nls.
85672         * lib/getopt.c (_): Likewise.
85673         * lib/regex.c (_): Likewise.
85674
85675 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85676
85677         * m4/error.m4 (jm_PREREQ_ERROR):
85678         Do not invoke AC_CHECK_FUNCS with strerror_r, as
85679         AC_FUNC_STRERROR_R does that.
85680         Check for strerror declaration.
85681
85682         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
85683         are supposed to have them these days.
85684         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
85685         Merge changes from latest Autoconf CVS.
85686         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
85687         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
85688         POSIX decided to standardize on the int flavor of strerror_r.
85689
85690 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85691
85692         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
85693         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
85694         Use strerror_r that is only a macro, even if it is not a function.
85695         (strerror): Check for HAVE_DECL_STRERROR before declaring.
85696         (private_strerror): Use prototypes, not old-style function definition.
85697         (print_errno_message): New function.
85698         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
85699         char*-flavored one.
85700         (error_tail, error, error_at_line): Use it.
85701
85702 2001-10-11  Jim Meyering  <meyering@lucent.com>
85703
85704         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
85705         and quote_n (1, ... to avoid clobbering a buffer.
85706
85707 2001-10-05  Jim Meyering  <meyering@lucent.com>
85708
85709         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
85710         hash-pjw.h.
85711         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
85712         * lib/hash-pjw.h: New file.
85713
85714 2001-09-30  Jim Meyering  <meyering@lucent.com>
85715
85716         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
85717         `struct fsstat' has the `f_fstypename' member.
85718         Use that to define FS_TYPE, which is now used to make
85719         the getfsstat link test tighter.
85720
85721 2001-09-30  Jim Meyering  <meyering@lucent.com>
85722
85723         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
85724         Include <sys/ucred.h>, for Apple Darwin.
85725         Include sys/mount.h and sys/fs_types.h only if available.
85726         (FS_TYPE): Define.
85727         (read_filesystem_list): Use FS_TYPE.
85728
85729 2001-09-29  Paul Eggert  <eggert@twinsun.com>
85730
85731         * lib/exclude.c (excluded_filename): 0 -> false, since it's
85732         a boolean context.
85733
85734 2001-09-29  Jim Meyering  <meyering@lucent.com>
85735
85736         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85737         [one-argument getmntent function]): Include stdio.h before mntent.h.
85738         SunOS 4.1.x needs it for the declaration of `FILE'.
85739         Patch by Volker Borchert.
85740
85741         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85742         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
85743         sys/fs_types.h, and make the link-test for getfsstat guard #include
85744         directives with appropriate #if HAVE_*_H tests so that we can
85745         detect getfsstat on Apple Darwin1.3.7 systems.
85746         Reported by Nelson Beebe.
85747         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
85748
85749 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85750
85751         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85752         #defines strtoimax.  Also treat the other strto* functions
85753         like strtoimax.
85754
85755         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85756         Check for strtoul and strtoumax,
85757         as those declarations are made even in the signed case.
85758         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
85759         Likewise, for strtol and strtoimax.
85760
85761 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85762
85763         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85764         #defines strtoimax.  Also treat the other strto* functions
85765         like strtoimax.
85766
85767         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
85768         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
85769         (strtoimax, strtoumax): Do not declare if already defined as a macro.
85770
85771 2001-09-26  Jim Meyering  <meyering@lucent.com>
85772
85773         Most macros in unlocked-io.h had the wrong number of arguments.
85774         * lib/gen-uio: New script.
85775         (USE_UNLOCKED_IO): Define to 1 if not already defined.
85776         * lib/unlocked-io.hin: Remove file.
85777         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
85778         rather than trying to embed it here.
85779         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
85780         Reported by Padraig Brady.
85781
85782 2001-09-25  Volker Borchert  <bt@teknon.de>
85783
85784         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
85785         `result'.
85786
85787 2001-09-24  Jim Meyering  <meyering@lucent.com>
85788
85789         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
85790
85791 2001-09-23  Jim Meyering  <meyering@lucent.com>
85792
85793         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
85794         instead of the mere test for existence of mntent.h.  The latter
85795         would get a false-positive on AIX 3.4 systems.
85796         In the outer getmntent if-block, don't die if neither of the getmntent
85797         tests succeeds.  Instead, just fall through and continue with the
85798         remaining tests.
85799
85800 2001-09-23  Jim Meyering  <meyering@lucent.com>
85801
85802         * lib/mountlist.c: Remove useless parentheses in #if directives.
85803         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
85804         the deprecated MOUNTED symbol is no longer defined in mntent.h.
85805
85806 2001-09-22  Jim Meyering  <meyering@lucent.com>
85807
85808         * m4/gettext.m4: New file.  From gettext.
85809         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
85810         * m4/progtest.m4: Likewise
85811         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
85812         * m4/glibc21.m4: Likewise.
85813
85814         * m4/libintl.m4: Remove.  No longer used.
85815
85816 2001-09-22  Jim Meyering  <meyering@lucent.com>
85817
85818         * lib/localcharset.c: Update from latest gettext.
85819         * lib/config.charset: Likewise.
85820
85821 2001-09-20  Jim Meyering  <meyering@lucent.com>
85822
85823         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
85824         strtoimax.
85825         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
85826         strtoumax.
85827
85828 2001-09-20  Jim Meyering  <meyering@lucent.com>
85829
85830         * lib/xstrtol.c (strtoimax): Guard declaration with
85831         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
85832         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
85833         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
85834         (strtoumax): Likewise, for completeness (it wasn't necessary).
85835
85836 2001-09-17  Paul Eggert  <eggert@twinsun.com>
85837
85838         * lib/strtoimax.c (HAVE_LONG_LONG):
85839         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
85840         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
85841         to work around bug in IBM C compiler.
85842
85843 2001-09-17  Jim Meyering  <meyering@lucent.com>
85844
85845         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
85846         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
85847         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
85848         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
85849         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
85850         whenever the right hand side need not be expanded by the shell.
85851
85852 2001-09-16  Paul Eggert  <eggert@twinsun.com>
85853
85854         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
85855         library.  It's not correct, as some older glibcs are buggy.
85856         fnmatch wasn't fixed until glibc 2.2.
85857
85858         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
85859         special shell magic here.
85860
85861 2001-09-16  Jim Meyering  <meyering@lucent.com>
85862
85863         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
85864         * m4/jm-macros.m4: Require it.
85865
85866 2001-09-16  Jim Meyering  <meyering@lucent.com>
85867
85868         * lib/mkdir.c: New file.
85869
85870 2001-09-15  Jim Meyering  <meyering@lucent.com>
85871
85872         * m4/jm-macros.m4: Check for help2man.
85873
85874 2001-09-11  Jim Meyering  <meyering@lucent.com>
85875
85876         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
85877         The body, by Paul Eggert, was moved here from configure.in.
85878         * m4/jm-macros.m4: Require UTILS_HOST_OS.
85879
85880 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85881
85882         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
85883         (jm_PREREQ): Use it.
85884
85885 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85886
85887         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
85888         Use ssize_t, not int, to store result of readlink.
85889         Check for ssize_t overflow as well as size_t overflow,
85890         as POSIX says the result of readlink is implementation-defined
85891         when ssize_t overflows.
85892         Remove unnecessary cast to char*.
85893         Use free+malloc instead of realloc, as the storage doesn't need
85894         to be preserved and it's clearer and can be more efficient that way.
85895         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
85896         * lib/xreadlink.h (xreadlink): Update prototype.
85897
85898 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85899
85900         * lib/xgetcwd.c: Revert some of the previous change; intead,
85901         fix the HAVE_GETCWD_NULL code to behave more like the
85902         !HAVE_GETCWD_NULL code used to.
85903
85904         Include "xalloc.h".
85905         (xgetcwd): Do not return NULL when memory is exhausted; instead,
85906         invoke xalloc_die.
85907
85908 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85909
85910         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
85911         sys/param.h, as pathmax.h includes them.
85912
85913 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85914
85915         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
85916         (jm_PREREQ_XGETCWD): New macro.
85917
85918         * m4/getcwd.m4: New file.
85919
85920 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85921
85922         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
85923         like the HAVE_GETCWD_NULL code.
85924         Include pathmax.h if not HAVE_GETCWD.
85925         Do not include xalloc.h.
85926         (INITIAL_BUFFER_SIZE): New symbol.
85927         Do not use xmalloc / xrealloc, since the caller is responsible for
85928         handling errors.  Preserve errno around `free' during failure.
85929         Do not overrun buffer when using getwd.
85930
85931 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85932
85933         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
85934         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
85935         getcwd (NULL, 0).
85936
85937 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85938
85939         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
85940         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
85941         spotted by Jim Meyering.
85942
85943 2001-09-03  Jim Meyering  <meyering@lucent.com>
85944
85945         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
85946         failure.
85947
85948 2001-09-02  Jim Meyering  <meyering@lucent.com>
85949
85950         * lib/error.c: Update from GNU libc.
85951
85952 2001-09-01  Jim Meyering  <meyering@lucent.com>
85953
85954         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
85955         Used by df.
85956
85957 2001-09-01  Jim Meyering  <meyering@lucent.com>
85958
85959         * lib/xreadlink.c: New file.
85960         * lib/xreadlink.h: New file.
85961         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
85962         xreadlink.h.
85963
85964         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
85965         doesn't conflict with sparc Solaris 7's definition in
85966         /usr/include/sys/int_types.h.
85967
85968         * lib/exclude.c: Use `""', not `<>' to #include non-system header
85969         files.
85970         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
85971         and strncasecmp as r-values.  Unixware didn't have declarations.
85972
85973 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85974
85975         * lib/xstrtol.h: Add copyright notice.
85976         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
85977         LONGINT_INVALID_SUFFIX_CHAR.
85978
85979 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85980
85981         * lib/xstrtol.c (strtoimax): New decl.
85982
85983 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85984
85985         * lib/xgetcwd.c: Don't include pathmax.h.
85986         Include stdlib.h and unistd.h if available.
85987         Include xalloc.h.
85988         (xmalloc, xstrdup, free): Remove decls.
85989         (xgetcwd): Don't assume sizes fit in unsigned.
85990         Check for overflow when computing sizes.
85991         Simplify reallocation code.
85992
85993 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85994
85995         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
85996         a directory's st_size can have an arbitrary value, so the old
85997         usage could waste an arbitrary amount of memory.  All uses
85998         changed.
85999         * lib/savedir.h: Update prototype.
86000
86001 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86002
86003         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86004
86005         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86006         old strtoimax.c.
86007
86008         Also, make the following further changes to make this file's
86009         configuration more similar to that of strtol.c:
86010         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86011         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86012         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86013         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86014         changed to signed values.
86015
86016         And make the following changes as well:
86017         Fix copyright notice, as 1999 was missing.
86018         (verify): New macro.
86019         (strtoimax): Check sizes at compile-time, not run-time.
86020         Prefer strtol to strtoll if both work.
86021         (main): Remove; it was not that useful and was a pain to maintain.
86022
86023         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86024
86025 2001-08-31  Jim Meyering  <meyering@lucent.com>
86026
86027         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86028         Use an initial, malloc'd, buffer of length 128 rather than
86029         a statically allocated one of length 1024.
86030
86031 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86032
86033         Simplify code, partly by assuming autoconf 2.52 semantics.
86034
86035         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86036
86037         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86038         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86039         All uses removed.
86040         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86041         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86042         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86043         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86044         jm_AC_HEADER_INTTYPES_H.
86045         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86046
86047         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86048
86049         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86050         Quote first arg of AC_DEFUN.
86051         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86052         since they are needed to parse the include file even if we need
86053         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86054         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86055         but with opposite signedness.
86056
86057 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86058
86059         Merge 'exclude' changes from tar 1.13.22.
86060         This fixes one or two unlikely storage allocation overflow bugs,
86061         but doesn't change user-visible behavior otherwise.
86062
86063 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86064
86065         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86066         (jm_PREREQ_EXCLUDE): New macro.
86067
86068 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86069
86070         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86071         tm to be declared.
86072
86073 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86074
86075         * lib/hash.c: Remove '2001' from copyright notice.
86076
86077 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86078
86079         * lib/full-write.h: New file.
86080         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86081         * lib/full-write.c: Correct credits, as cccp.c no longer
86082         exists and anyway it was so heavily changed from the old cccp
86083         code as to be unrecognizable.  Include full-write.h.
86084         (full_write): Return size_t, with short writes meaning failure.
86085         All callers changed.  This fixes a bug with large buffers
86086         on 64-bit hosts.
86087         * lib/utime.c: Include full-write.h.
86088
86089 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86090
86091         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86092         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86093         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86094         Include if available.
86095         (<xalloc.h>): Include
86096         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86097         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86098         collide with FNM macros.
86099         (struct patopts): New struct.
86100         (struct exclude): Use it, as exclude patterns now come with options.
86101         (new_exclude): Support above changes.
86102         (new_exclude, add_exclude_file):
86103         Initial size must now be a power of two to simplify overflow checking.
86104         (free_exclude, fnmatch_no_wildcards): New function.
86105         (excluded_filename): No longer requires options arg, as the options
86106         are determined by add_exclude.  Now returns bool, not int.
86107         (excluded_filename, add_exclude):
86108         Add support for the fancy new exclusion options.
86109         (add_exclude, add_exclude_file): Now takes int options arg.
86110         Check for arithmetic overflow when computing sizes.
86111         (add_exclude_file): xrealloc might modify errno, so don't
86112         realloc until after errno might be used.
86113
86114         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86115         New macros.
86116         (free_exclude): New decl.
86117         (add_exclude, add_exclude_file): Now takes int options arg.
86118         (excluded_filename): No longer requires options arg, as the options
86119         are determined by add_exclude.  Now returns bool, not int.
86120
86121 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86122
86123         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86124
86125 2001-08-27  Jim Meyering  <meyering@lucent.com>
86126
86127         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86128
86129         * lib/version-etc.c (N_): Remove definition.
86130         Revert most of last change.
86131         Instead, simply don't mark the `Copyright...' string for translation.
86132         Based on advice from Paul Eggert.
86133
86134         * lib/strtoxmax.c: Tweak comment.
86135
86136 2001-08-26  Jim Meyering  <meyering@lucent.com>
86137
86138         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86139
86140         * m4/xstrtoimax.m4: New file.
86141         * m4/xstrtoumax.m4: Add comments explaining why we
86142         AC_REPLACE_FUNCS(strtol).
86143
86144 2001-08-26  Jim Meyering  <meyering@lucent.com>
86145
86146         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86147         of copyright with `%s' so translators don't get an untranslated
86148         message in 2002.
86149         (COPYRIGHT_YEAR): Define.
86150         (version_etc): Use fprintf rather than fputs.
86151         Suggestion from Ulrich Drepper.
86152
86153         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86154
86155         * lib/strtoll.c: New file, from GNU libc.
86156         * lib/xstrtoimax.c: New file.
86157
86158         * lib/xstrtol.h: Add xstrtoimax.
86159         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86160         * lib/strtoimax.c: New file.  Likewise, but first define
86161         STRTOUXMAX_SIGNED.
86162
86163         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86164         ...
86165         * lib/strtoxmax.c: ... then renamed to this.
86166
86167 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86168
86169         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86170         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86171         (jm_AC_TYPE_INTMAX_T): New macro.
86172         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86173
86174         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86175
86176         * m4/longlong.m4: Renamed from ulonglong.m4.
86177         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86178         * m4/uintmax_t.m4: Removed.
86179
86180 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86181
86182         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86183         Port to Solaris 8, where 'sed' requires a space after the 'r'
86184         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86185         Redirect output to $tmp just once.
86186
86187 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86188
86189         * lib/addext.c (<errno.h>): Include.
86190         (errno): Declare if not defined.
86191         (addext): Work correctly when pathconf returns -1 and leaves
86192         errno alone because there is no limit.  Also, work even if
86193         pathconf returns a value greater than SIZE_MAX.
86194
86195 2001-08-12  Jim Meyering  <meyering@lucent.com>
86196
86197         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86198         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86199         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86200         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86201         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86202         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86203         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86204         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86205         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86206         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86207         utime.m4, utimes.m4, xstrtoumax.m4:
86208         Quote the first argument in each use of AC_DEFUN.
86209
86210 2001-08-12  Jim Meyering  <meyering@lucent.com>
86211
86212         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86213         Simply `return getcwd (NULL, 0);'.
86214         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86215         Use 1300 as initial value for length, not PATH_MAX.
86216
86217         * lib/pathmax.h: Clean up cpp syntax.
86218
86219 2001-08-12  Jim Meyering  <meyering@lucent.com>
86220
86221         * lib/gettimeofday.c: New file.
86222         * lib/gtod.h: New file.
86223         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86224
86225 2001-08-05  Jim Meyering  <meyering@lucent.com>
86226
86227         * m4/jm-macros.m4: Require autoconf-2.52.
86228
86229 2001-08-04  Jim Meyering  <meyering@lucent.com>
86230
86231         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86232         stmt, to get in sync with glibc.
86233
86234 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86235
86236         The following changes are from gettext 0.10.39 as maintained by
86237         Bruno Haible.
86238
86239         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86240         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86241         with inverted sense.  All uses changed.
86242
86243         * lib/mbswidth.c: Don't include <limits.h>.
86244         Include <stdlib.h> and <string.h> unconditionally.
86245         (iswcntrl, mbsinit, ISCNTRL): New macros.
86246         (mbsnwidth): Use K&R style function declarations.
86247         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86248         can optimize it when MB_CUR_MAX == 1.
86249         The width of control characters is zero, not 1.
86250
86251 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86252
86253         The following changes are from gettext 0.10.39 as maintained by
86254         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86255
86256         * m4/codeset.m4: Upgrade to serial AM1.
86257         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86258         all uses changed.  Quote first arg of AC_DEFUN.
86259         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86260
86261         * m4/iconv.m4: Upgrade to serial AM2.
86262         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86263         Add --with-libconv-prefix.
86264         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86265         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86266         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86267         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86268         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86269
86270         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86271         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86272         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86273         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86274         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86275         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86276         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86277         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86278         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86279
86280         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86281         string.h any more.
86282
86283         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86284         not the default value.
86285
86286         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86287         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86288         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86289         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86290         Also check for iswcntrl, used for wcwidth fallback.
86291         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86292         to Autoconf 2.13.
86293
86294 2001-08-03  Jim Meyering  <meyering@lucent.com>
86295
86296         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86297         as it was in the original.  Reported by Paul Eggert.
86298
86299 2001-07-16  Jim Meyering  <meyering@lucent.com>
86300
86301         * m4/gettimeofday.m4: New file.
86302         Prompted by a report from Bernhard Baehr.
86303
86304 2001-07-15  Jim Meyering  <meyering@lucent.com>
86305
86306         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86307         stuff. Now it's in ../Makefile.cfg.
86308
86309 2001-07-15  Jim Meyering  <meyering@lucent.com>
86310
86311         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86312         (BUILT_SOURCES): Add unlocked-io.h.
86313         (io_functions): Define.
86314         (unlocked-io.h): New rule.
86315         (DISTCLEANFILES): Add unlocked-io.h.
86316         (all-local): Depend on unlocked-io.h, to ensure it is created.
86317
86318         * lib/unlocked-io.hin: New file
86319
86320         * lib/regex.c: Update from glibc.
86321
86322 2001-07-05  Jim Meyering  <meyering@lucent.com>
86323
86324         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86325         recommendation.
86326         (libfetish_a_SOURCES): Put all .h files here instead.
86327         Remove a thus-exposed (better checks in automake) duplicate and
86328         two unnecessary .h files.
86329
86330 2001-07-04  Jim Meyering  <meyering@lucent.com>
86331
86332         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86333         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86334         distcheck failure.
86335
86336 2001-07-02  Jim Meyering  <meyering@lucent.com>
86337
86338         The following changes were prompted by suggestions from Bruno Haible.
86339
86340         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86341         is now generated.
86342         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86343         definition of EXTRA_DIST.
86344         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86345         ensure that the generated file is created/updated whenever the list
86346         of $(unlocked_functions) is changed.
86347         (jm-glibc-io.m4): New rule.
86348         (unlocked-io.h): New rule -- currently unused.
86349
86350 2001-06-24  Jim Meyering  <meyering@lucent.com>
86351
86352         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86353         unmatched right bracket, rather than kludging it with an extra,
86354         falsely-matching quote in a comment.  Patch by Akim Demaille.
86355
86356 2001-06-11  Jim Meyering  <meyering@lucent.com>
86357
86358         * lib/regex.c: Update from GNU libc.
86359
86360 2001-05-27  Jim Meyering  <meyering@lucent.com>
86361
86362         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
86363         Check for ut_type in struct utmp.
86364
86365 2001-05-27  Jim Meyering  <meyering@lucent.com>
86366
86367         * lib/readutmp.h (UT_TYPE): Define.
86368
86369 2001-05-24  Jim Meyering  <meyering@lucent.com>
86370
86371         * lib/argmatch.c: Include "quote.h".
86372         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
86373         quote function.  Reported by Göran Uddeborg.
86374
86375 2001-05-22  Jim Meyering  <meyering@lucent.com>
86376
86377         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
86378         now that we use the package-supplied version unconditionally.
86379         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
86380
86381 2001-05-21  Jim Meyering  <meyering@lucent.com>
86382
86383         * m4/regex.m4: Change a couple backticks to single quotes to avoid
86384         shell syntax errors.
86385
86386 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86387
86388         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
86389
86390 2001-05-20  Paul Eggert  <eggert@twinsun.com>
86391
86392         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
86393         Don't bother to check library strftime, since
86394         we'll be using our own my_strftime function anyway.
86395         Define my_strftime instead of strftime.
86396
86397 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
86398
86399         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
86400         which is not yet declared.
86401
86402 2001-05-15  Jim Meyering  <meyering@lucent.com>
86403
86404         * m4/regex.m4: Use proper quoting so brackets appear in the test
86405         program.
86406         Reported by, and with help from, Bruno Haible.
86407
86408 2001-05-13  Jim Meyering  <meyering@lucent.com>
86409
86410         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
86411         undefined.
86412
86413 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86414
86415         dirname code cleanup.  base_name now behaves more compatibly
86416         with POSIX basename when given file names that have trailing
86417         slashes, and similarly for dir_name.  Add new primitives
86418         base_len and dir_len.  Put the directory-name-related decls
86419         into dirname.h.
86420
86421         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
86422         * lib/backupfile.c (base_name): Likewise.
86423         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
86424         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
86425         * lib/makepath.c (strip_trailing_slashes): Likewise.
86426         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
86427         ISSLASH): Likewise.
86428         * lib/rename.c (strip_trailing_slashes): Likewise.
86429         * lib/same.c (base_name): Likewise.
86430         * lib/stripslash.c (ISSLASH): Likewise.
86431
86432         * lib/addext.c: Include <dirname.h> after size_t is defined.
86433         * lib/backupfile.c: Likewise.
86434
86435         * lib/addext.c (addext): Use base_len to trim redundant
86436         trailing slashes instead of doing it ourselves.
86437         But do not trim the last slash if it is not redundant.
86438
86439         * lib/backupfile.c (find_backup_file_name,
86440         max_backup_version): Use base_len instead of rolling it ourselves.
86441         Handle the case of "" and (on DOS) "C:" correctly.
86442
86443         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
86444         needed. Include <string.h>, <dirname.h>.
86445         (base_name): Allow file names ending in slashes, other than names
86446         that are all slashes.  In this case, return the basename followed
86447         by the slashes.  This is more general, and can be used in places
86448         where the original base_name purposely had an assertion failure.
86449         (base_len): New function.
86450
86451         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
86452         Do not include <assert.h>; no longer needed.
86453         Include xalloc.h.
86454         (memrchr): Remove decl.
86455         (dir_name_r): Remove.
86456         (dir_len): Renamed from dirlen.  All callers changed.
86457         Rewrite in terms of base_name, for simplicity and consistency.
86458         (dir_name): Never return NULL.  All callers changed.
86459         Do not include <stdlib.h> in test program; no longer needed.
86460         return 0; is fine for test program.
86461
86462         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86463         New macros.
86464         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86465
86466         * lib/path-concat.c (path_concat): Use base_len to compute
86467         base length, not strlen; this means we cannot rely on memcpy
86468         to null-terminate.
86469
86470         * lib/same.c (STREQ): Remove.
86471         (same_name): Handle the case where the basename ends in trailing '/'.
86472
86473         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86474         a slash was stripped.  Do not strip the last slash after a
86475         file system prefix.
86476
86477 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86478
86479         * lib/Makefile.am (libfetish_a_SOURCES):
86480         Add strftime.c, since we now compile it on all hosts.
86481
86482         * lib/strftime.c (my_strftime):
86483         Define to nstrftime if emacs, but only if my_strftime is not defined.
86484         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
86485         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
86486         Add one more extra argument: a nanoseconds value.
86487         All uses changed.
86488         (ns): New macro.
86489         (my_strftime function): Add %N format.
86490         (emacs_strftimeu): Renamed from emacs_strftime,
86491         with extra ut argument.
86492
86493 2001-05-09  Paul Eggert  <eggert@twinsun.com>
86494
86495         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
86496
86497 2001-04-21  Jim Meyering  <meyering@lucent.com>
86498
86499         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
86500         doesn't interfere.
86501
86502 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86503
86504         * m4/ftruncate.m4: Check for chsize.
86505         Link with ftruncate.o unconditionally if ftruncate is missing.
86506         This was required when cross-compiling to i586-mingw32msvc.
86507
86508 2001-04-08  Jim Meyering  <meyering@lucent.com>
86509
86510         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
86511         recomputed; that's necessary when the offset spans a DST transition.
86512         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
86513
86514 2001-04-02  Jim Meyering  <meyering@lucent.com>
86515
86516         * lib/regex.h, regex.c: Update from GNU libc.
86517
86518 2001-03-24  Jim Meyering  <meyering@lucent.com>
86519
86520         * m4/jm-macros.m4: Require autoconf-2.49d.
86521
86522 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86523
86524         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86525
86526 2001-03-19  Paul Eggert  <eggert@twinsun.com>
86527
86528         * lib/version-etc.c (version_etc_copyright): Update to 2001.
86529
86530 2001-03-17  Jim Meyering  <meyering@lucent.com>
86531
86532         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
86533         now that the version in autoconf is equivalent.
86534         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
86535
86536         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
86537         Suggestion from Akim Demaille.
86538
86539         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
86540         (jm_PREREQ_TEMPNAME): New function.
86541
86542 2001-03-16  Paul Eggert  <eggert@twinsun.com>
86543
86544         * lib/tempname.c (uint64_t): Define to uintmax_t if
86545         not defined, and if UINT64_MAX is not defined.
86546         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
86547         Reported by John David Anglin.
86548
86549 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
86550
86551         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
86552         resolve alias if codeset is empty.
86553         * lib/config.charset (BeOS): Use wildcard syntax.
86554
86555 2001-03-13  Jim Meyering  <meyering@lucent.com>
86556
86557         * lib/path-concat.c (path_concat)
86558         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
86559         concatenating e.g., `C:' and `foo'.
86560         From Bruno Haible.
86561
86562 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86563
86564         * lib/localcharset.c (locale_charset): Don't use
86565         setlocale(LC_CTYPE,NULL). Don't return NULL.
86566         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
86567
86568 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86569
86570         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
86571         support for DOS/DJGPP.
86572
86573 2001-03-01  Paul Eggert  <eggert@twinsun.com>
86574
86575         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
86576         lacks mkstemp.  Compile our own tempname.c if we compile our own
86577         mkstemp.c, as mkstemp relies on tempname.
86578
86579 2001-03-01  Jim Meyering  <meyering@lucent.com>
86580
86581         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
86582         AH_VERBATIM really does output its argument verbatim.
86583
86584 2001-02-28  Paul Eggert  <eggert@twinsun.com>
86585
86586         * lib/Makefile.am (libfetish_a_SOURCES):
86587         Add dup-safer.c, fopen-safer.c.
86588         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
86589
86590         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
86591         * lib/unistd-safer.h: New files.
86592
86593 2001-02-25  Paul Eggert  <eggert@twinsun.com>
86594
86595         The mkstemp replacement is taken from glibc 2.2.2, with some
86596         portability fixes for use outside glibc, as follows:
86597
86598         * lib/tempname.c (struct_stat64): New macro.
86599         (direxists, __gen_tempname): Use it.
86600         This avoids a portability problem with Solaris 8.
86601
86602         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
86603         (<stddef.h>, <stdint.h>, <string.h>):
86604         Include only if STDC_HEADERS || _LIBC.
86605         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
86606         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
86607         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
86608         (__set_errno): Define this macro if <errno.h> doesn't.
86609         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
86610         Define these macros if <stdio.h> doesn't.
86611         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
86612         Define these macros if <sys/stat.h>
86613         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
86614         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
86615         __xstat64): Define if not _LIBC.
86616         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
86617         (__gen_tempname): Invoke gettimeofday only if
86618         HAVE_GETTIMEOFDAY || _LIBC;
86619         otherwise, fall back on plain "time".
86620         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
86621
86622         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
86623
86624         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
86625
86626 2001-02-18  Paul Eggert  <eggert@twinsun.com>
86627
86628         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
86629
86630 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86631
86632         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
86633         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
86634         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
86635         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86636
86637 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86638
86639         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
86640         Remove workaround macros for hosts that have mbrtowc but not
86641         mbstate_t, as we now insist on proper declarations for both
86642         before using mbrtowc.
86643
86644 2001-02-17  Jim Meyering  <meyering@lucent.com>
86645
86646         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
86647         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
86648         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
86649         UnixWare 7.1.1.
86650
86651         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
86652         rather than AC_CACHE_VAL.
86653
86654 2001-02-17  Jim Meyering  <meyering@lucent.com>
86655
86656         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
86657         around included file name.
86658
86659         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
86660
86661         * lib/strftime.c: Update from GNU libc (the only changes were to
86662         comments).
86663
86664 2001-02-17  Jim Meyering  <meyering@lucent.com>
86665
86666         * lib/regex.c: Update from libc.
86667
86668 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
86669
86670         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
86671         clash.
86672
86673 2001-02-16  Paul Eggert  <eggert@twinsun.com>
86674
86675         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
86676         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
86677         Reported by Mark Hounschell via Paul Eggert.
86678
86679 2001-02-07  Jim Meyering  <meyering@lucent.com>
86680
86681         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
86682
86683 2001-02-05  Jim Meyering  <meyering@lucent.com>
86684
86685         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
86686         it includes the patch required for `large file' support with at least
86687         HP-UX's 10.20 /bin/cc.
86688
86689 2001-02-03  Jim Meyering  <meyering@lucent.com>
86690
86691         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
86692         AS_IF, now that it works once again (mysteriously).
86693         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86694
86695 2001-01-30  Jim Meyering  <meyering@lucent.com>
86696
86697         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
86698         * m4/chown.m4: Rename conftestchown to conftest.chown.
86699         * m4/rename.m4: s/conftestdir/conftest.d1/ and
86700         s/conftestdir2/conftest.d2/.
86701         * m4/utimes.m4: s/conftestdata/conftest.data/
86702         Inspired by Pavel Roskin's change in autoconf.
86703
86704 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
86705
86706         * lib/config.charset: Update for FreeBSD 4.2.
86707
86708 2001-01-27  Jim Meyering  <meyering@lucent.com>
86709
86710         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
86711         a use of AS_IF.
86712         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86713
86714 2001-01-26  Jim Meyering  <meyering@lucent.com>
86715
86716         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
86717         quotearg.c includes it.
86718
86719 2001-01-26  Jim Meyering  <meyering@lucent.com>
86720
86721         * lib/quotearg.c: Include stddef.h.
86722         * lib/quote.c: Include stddef.h.
86723         Reported by Axel Kittenberger.
86724
86725         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
86726         line in double quotes so that it evokes a better diagnostic.
86727         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
86728         Reported by Axel Kittenberger.
86729
86730 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
86731
86732         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
86733         as if it was a `charset'.
86734
86735 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86736
86737         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
86738         has const.
86739
86740 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86741
86742         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
86743         to avoid a warning.  Add back 'const' to inptr.
86744
86745 2001-01-20  Jim Meyering  <meyering@lucent.com>
86746
86747         Be sure that headers are checked before used in code compiled
86748         for the type checks.
86749         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
86750         In place of that, invoke jm_CHECK_ALL_TYPES.
86751         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
86752         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
86753         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
86754         The check for ssize_t was mistakenly run before the test for unistd.h.
86755
86756         The configure-time check for stdbool.h was missing.
86757         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
86758         (jm_PREREQ_HASH): New function.
86759
86760 2001-01-17  Jim Meyering  <meyering@lucent.com>
86761
86762         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
86763         for autoconf-2.49c.
86764         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
86765
86766 2001-01-16  Jim Meyering  <meyering@lucent.com>
86767
86768         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
86769         From Bruno Haible.
86770
86771 2001-01-14  Jim Meyering  <meyering@lucent.com>
86772
86773         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
86774         foo and bar.  Create conftestdir/ in the script, not in the C code.
86775         Remove directories in the script, not in the C code.
86776         Remove conftestdir{,2} before trying to create the directory.
86777         Make the entire configure script fail if the mkdir fails.
86778
86779 2001-01-14  Jim Meyering  <meyering@lucent.com>
86780
86781         * lib/rename.c: New file.  From Volker Borchert.
86782         Include stdlib.h, string.h or strings.h, and xalloc.h.
86783         Use strip_trailing_slashes rather than open-coding it.
86784
86785 2001-01-03  Paul Eggert  <eggert@twinsun.com>
86786
86787         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
86788
86789 2001-01-03  Jim Meyering  <meyering@lucent.com>
86790
86791         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
86792         of local `inptr' to avoid warning with some system declarations of
86793         iconv.
86794
86795 2001-01-02  Volker Borchert  <bt@teknon.de>
86796
86797         * m4/rename.m4: New file.
86798         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
86799
86800 2001-01-01  Jim Meyering  <meyering@lucent.com>
86801
86802         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
86803         even on systems with utmpx.h.  It's necessary for the declaration of
86804         utmp's ut_user member.  Reported by Andreas Jaeger.
86805
86806         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
86807         available. They are required for the declarations of getgrgid and
86808         getpwuid resp.
86809         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
86810         Reported by Andreas Jaeger.
86811
86812 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
86813
86814         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
86815         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
86816         so `make install' also works in VPATH builds.
86817
86818 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
86819
86820         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
86821         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
86822         can be used in subdirectories.
86823
86824 2000-12-29  Paul Eggert  <eggert@twinsun.com>
86825
86826         * lib/modechange.c: Do not assume that mode_t uses the
86827         traditional octal encoding.  E.g. "chmod 1 FOO" should set
86828         the other-execute bit of FOO even if S_IXOTH != 1.
86829
86830         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
86831         WOTH, XOTH, ALLM): New macros.
86832         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
86833          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
86834         Use them.
86835         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
86836         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
86837         (mode_compile):
86838         No need to use uintmax_t; unsigned long is long enough.
86839         Don't bother to get suffix since we don't use it.
86840
86841 2000-12-26  Jim Meyering  <meyering@lucent.com>
86842
86843         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
86844         better with autoheader.
86845
86846 2000-12-24  Jim Meyering  <meyering@lucent.com>
86847
86848         * lib/hash.c (is_prime): Return explicit boolean values.
86849         (hash_get_first): Return NULL to appease Irix5.6's 89.
86850         Reported by Nelson Beebe.
86851
86852 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
86853
86854         * lib/localcharset.c (locale_charset): Add support for Win32.
86855
86856 2000-12-18  Paul Eggert  <eggert@twinsun.com>
86857
86858         * lib/physmem.h, lib/physmem.c: New files.
86859
86860         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
86861         (noinst_HEADERS): Add physmem.h.
86862
86863         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
86864         't' for compatibility with Solaris 8 sort.
86865
86866 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
86867
86868         * lib/config.charset: Add support for BeOS.
86869
86870 2000-12-17  Jim Meyering  <meyering@lucent.com>
86871
86872         * m4/dos.m4 (jm_AC_DOS): New file and macro.
86873         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
86874
86875 2000-12-16  Jim Meyering  <meyering@lucent.com>
86876
86877         This bug had a serious impact on chown: `chown N:M FILE' (for integer
86878         N and M) would have treated it like `chown N:N FILE'.
86879
86880         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
86881
86882 2000-12-16  Jim Meyering  <meyering@lucent.com>
86883
86884         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
86885         SHELLS_FILE to a file name that's useful on djgpp systems.
86886         Include stdlib.h.
86887         (ADDITIONAL_DEFAULT_SHELLS): Define.
86888         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
86889         Based mostly on a patch from Prashant TR.
86890
86891 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
86892
86893         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
86894         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
86895         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
86896
86897 2000-12-08  Andreas Schwab  <schwab@suse.de>
86898
86899         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
86900         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
86901
86902 2000-12-07  Jim Meyering  <meyering@lucent.com>
86903
86904         * lib/stripslash.c (ISSLASH): Define.
86905         (strip_trailing_slashes): Use ISSLASH rather than comparing against
86906         `/'.
86907         From Prashant TR.
86908
86909         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
86910         (dir_name_r): Declare this function as static.
86911         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
86912         manifest itself on a name containing a mix of slashes and
86913         backslashes.
86914         Make this function work with names starting with a DOS-style
86915         drive letter and colon prefix.
86916         (dir_name): Append `.' if necessary.
86917         Based mostly on patches from Prashant TR and Eli Zaretskii.
86918
86919         * lib/dirname.h (dir_name_r): Remove prototype.
86920
86921 2000-12-06  Paul Eggert  <eggert@twinsun.com>
86922
86923         * m4/off_t-format.m4: Remove this file.
86924         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
86925
86926 2000-12-06  Jim Meyering  <meyering@lucent.com>
86927
86928         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
86929         replacement strtoull, we may well need the replacement strtoul, too.
86930         Check for declarations of strtoul and strtoull.
86931         Check for strtol.  Mainly as a cue to cause automake to include
86932         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
86933         Check for limits.h -- strtol.c needs it.
86934
86935 2000-12-05  Jim Meyering  <meyering@lucent.com>
86936
86937         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
86938
86939 2000-12-04  Jim Meyering  <meyering@lucent.com>
86940
86941         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
86942         Also include memory.h, stdlib.h, unistd.h if appropriate.
86943         Reported by Andreas Jaeger (conflicting declaration of malloc).
86944
86945 2000-12-02  Jim Meyering  <meyering@lucent.com>
86946
86947         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
86948         * m4/jm-macros.m4 (jm_MACROS): require it.
86949
86950 2000-12-02  Jim Meyering  <meyering@lucent.com>
86951
86952         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
86953
86954 2000-12-01  Paul Eggert  <eggert@twinsun.com>
86955
86956         * lib/memrchr.c: Include <config.h> before any system include file.
86957
86958 2000-11-30  Jim Meyering  <meyering@lucent.com>
86959
86960         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
86961
86962 2000-11-30  Jim Meyering  <meyering@lucent.com>
86963
86964         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
86965
86966 2000-11-29  Paul Eggert  <eggert@twinsun.com>
86967
86968         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
86969
86970 2000-11-26  Jim Meyering  <meyering@lucent.com>
86971
86972         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
86973
86974 2000-11-22  Paul Eggert  <eggert@twinsun.com>
86975
86976         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
86977         size of (size_t) -1; it's not portable.
86978
86979 2000-11-17  Jim Meyering  <meyering@lucent.com>
86980
86981         * lib/strstr.c: Update from GNU libc.
86982
86983 2000-11-17  Akim Demaille  <akim@epita.fr>
86984
86985         * lib/obstack.h: Formatting changes.
86986         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
86987         prevent type checking.
86988         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
86989         cast the value to (void *): assigning a `foo *' to a `void *'
86990         variable is valid.
86991         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
86992
86993 2000-11-16  Jim Meyering  <meyering@lucent.com>
86994
86995         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
86996
86997 2000-11-11  Jim Meyering  <meyering@lucent.com>
86998
86999         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87000
87001 2000-11-10  Jim Meyering  <meyering@lucent.com>
87002
87003         * lib/obstack.h: Update from GNU libc.
87004         * lib/obstack.c: Likewise.
87005
87006 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87007
87008         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87009
87010 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87011
87012         * lib/getusershell.c (setusershell): Use rewind rather than
87013         fseek/fseeko, to avoid configuration hassles with fseeko.
87014         Don't bother opening SHELLS_FILE if shellstream is NULL;
87015         it's not necessary.
87016
87017 2000-11-05  Jim Meyering  <meyering@lucent.com>
87018
87019         * lib/makepath.h (make_dir): Declare.
87020         * lib/makepath.c (make_dir): Remove `static' attribute.
87021         Tweak a comment.
87022
87023 2000-11-04  Jim Meyering  <meyering@lucent.com>
87024
87025         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87026
87027 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87028
87029         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87030         last one in a bucket, advance to the next bucket.
87031
87032 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87033
87034         * lib/fnmatch.c: Do not comment out all the code if we are using
87035         the GNU C library, because in some cases we are replacing buggy
87036         code in the GNU C library itself.
87037
87038 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87039
87040         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87041         (regex_compile): Catch bogus \(\1\).
87042
87043 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87044
87045         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87046         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87047         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87048
87049 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87050
87051         * lib/error.h, getline.h, modechange.h:
87052         Remove "2000" from Copyright line, as the file hasn't been
87053         changed this year other than in the copyright notice.
87054
87055         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87056         was changed this year.
87057
87058 2000-10-29  Jim Meyering  <meyering@lucent.com>
87059
87060         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87061         renaming.
87062         * m4/ls-mntd-fs.m4: Likewise
87063
87064 2000-10-29  Jim Meyering  <meyering@lucent.com>
87065
87066         * lib/xstat.in: Fix grammar in comment.
87067
87068 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87069
87070         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87071         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87072         doesn't define __restrict_arr.
87073
87074 2000-10-28  Jim Meyering  <meyering@lucent.com>
87075
87076         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87077         (jm_PREREQ_MEMCHR): New function.
87078
87079 2000-10-28  Jim Meyering  <meyering@lucent.com>
87080
87081         * lib/memchr.c: Update from libc.
87082         Adjust for portability:
87083         [HAVE_STDLIB_H]: Include stdlib.h.
87084         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87085         Undef __memchr, too.
87086         [!weak_alias]: Define __memchr to memchr.
87087
87088         * lib/regex.c: Update from libc.
87089         * lib/regex.h: Likewise.
87090         * lib/getopt1.c: Likewise.
87091         * lib/memcmp.c: Likewise.
87092
87093         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87094         Avoid using fseek, when possible -- it's broken by design.
87095         Patch by Ulrich Drepper.
87096
87097 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87098
87099         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87100         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87101         Giving in to popular pressure to shut up the compiler with casts.
87102
87103 2000-10-26  Jim Meyering  <meyering@lucent.com>
87104
87105         * lib/strftime.c: Update from libc.
87106
87107 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87108
87109         * regex.c: More `unsigned char' -> `re_char' changes.
87110         Also change several `int' into `re_wchar_t'.
87111         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87112         (PUSH_FAILURE_POINTER): Don't cast any more.
87113         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87114         We want GCC to complain, since this piece of code makes
87115         re_match non-reentrant, which *should* be fixed.
87116         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87117         (EXTEND_BUFFER): Use RETALLOC.
87118         (SET_LIST_BIT): Don't cast.
87119         (re_wchar_t): New type.
87120         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87121         that those two functions will always properly return.
87122         (IMMEDIATE_QUIT_CHECK): Cast to void.
87123         (analyse_first): Use recursion rather than an explicit stack.
87124         (re_compile_fastmap): Can't fail anymore.
87125         (re_search_2): Don't check re_compile_fastmap for failure.
87126         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87127         Now also sets the new value (passed in a new argument).
87128         (re_match_2_internal): Use it.
87129         Also, use a new var `reg' of type size_t when looping through regs
87130         rather than reuse the inappropriate `mcnt'.
87131
87132 2000-10-25  Jim Meyering  <meyering@lucent.com>
87133
87134         * lib/obstack.c: Update from libc.
87135
87136 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87137
87138         * regex.c (regex_compile): Change the way of handling a range from
87139         a char less than 256 to a char not less than 256.
87140
87141 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87142
87143         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87144         NT-Emacs only.
87145         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87146         so that re_search functions only quit when callers expect them to.
87147
87148 2000-10-23  Jim Meyering  <meyering@lucent.com>
87149
87150         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87151         wrong.  That set_locale call must not have any side effects.
87152         From Paul Eggert.
87153
87154 2000-10-22  Jim Meyering  <meyering@lucent.com>
87155
87156         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87157         [CYCLIC]: Remove now-unused definition.
87158
87159         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87160         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87161         Suggestion from Ulrich Drepper.
87162
87163 2000-10-21  Jim Meyering  <meyering@lucent.com>
87164
87165         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87166         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87167         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87168
87169 2000-10-21  Jim Meyering  <meyering@lucent.com>
87170
87171         * lib/dirname.c (memrchr): Declare if necessary.
87172         (dir_name): Remove the restriction that there be no
87173         trailing slashes.  Now, this code skips past them, effectively
87174         ignoring them.
87175         [TEST_DIRNAME] (main): New unit tests.
87176
87177         * lib/memrchr.c: New file from GNU libc.
87178         Undef __memrchr, too.
87179         [!weak_alias]: Define __memrchr to memrchr.
87180         Guard weak_alias use with `#ifdef weak_alias'.
87181
87182 2000-10-21  Jim Meyering  <meyering@lucent.com>
87183
87184         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87185         (dir_name): Use dir_name_r.
87186         * lib/dirname.h (dir_name_r): Declare it.
87187
87188 2000-10-17  Jim Meyering  <meyering@lucent.com>
87189
87190         * lib/quote.h (PARAMS): Define and use.
87191         Reported by Akim Demaille.
87192
87193         * lib/getopt.c: Update from libc.
87194
87195 2000-10-16  Jim Meyering  <meyering@lucent.com>
87196
87197         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87198         setlocale.
87199         From Jan Fedak.
87200
87201 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87202
87203         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87204
87205 2000-09-25  Jim Meyering  <meyering@lucent.com>
87206
87207         * lib/md5.h (rol): Define (from GnuPG).
87208
87209         * lib/sha.c: Give credit (GnuPG) where due.
87210         (M): Use rol rather than open-coding it.
87211         Add a FIXME comment.
87212
87213 2000-09-21  Jim Meyering  <meyering@lucent.com>
87214
87215         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87216         Reported by Michael Stone.
87217
87218 2000-09-20  Jim Meyering  <meyering@lucent.com>
87219
87220         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87221         (noinst_HEADERS): Add sha.h.
87222         Based on code from Scott G. Miller and from GnuPG.
87223
87224 2000-09-18  Jim Meyering  <meyering@lucent.com>
87225
87226         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87227         LIBS. Otherwise, everyone ends up linking with -lelf for some
87228         configurations.
87229         Reported by Mike Stone.
87230
87231 2000-09-15  Jim Meyering  <meyering@lucent.com>
87232
87233         * lib/regex.c: Update from libc.
87234
87235 2000-09-10  Jim Meyering  <meyering@lucent.com>
87236
87237         * lib/getopt.c (_getopt_internal): Update from glibc.
87238
87239 2000-09-09  Jim Meyering  <meyering@lucent.com>
87240
87241         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87242         think it should be used as a general replacement for isascii.
87243         * lib/fnmatch.c: Likewise.
87244         * lib/mbswidth.c: Likewise
87245         * lib/regex.c: Likewise.
87246
87247         Don't use atoi.
87248         * lib/userspec.c: Include sys/param.h and limits.h.
87249         Include xstrtol.h.
87250         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87251         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87252         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87253         UID, GID.  Check range.
87254
87255 2000-09-06  Jim Meyering  <meyering@lucent.com>
87256
87257         * lib/getopt.c (_getopt_internal): Update from glibc.
87258
87259 2000-08-30  Jim Meyering  <meyering@lucent.com>
87260
87261         * lib/strftime.c: Merge in changes from GNU libc.
87262
87263 2000-08-26  Jim Meyering  <meyering@lucent.com>
87264
87265         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87266         * m4/fpending.m4: New file.
87267
87268 2000-08-26  Jim Meyering  <meyering@lucent.com>
87269
87270         * lib/closeout.c: Include "__fpending.h".
87271         (close_stdout_status): Return right away if there's nothing to flush.
87272
87273         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87274         * lib/__fpending.c: New file.
87275         * lib/__fpending.h: New file.
87276
87277 2000-08-20  Jim Meyering  <meyering@lucent.com>
87278
87279         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87280         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87281         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87282
87283 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87284
87285         Improve fileutils installation on systems where running
87286         programs (like install) can't be unlinked.
87287         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87288         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87289
87290 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87291
87292         Standardize on "memory exhausted" instead of "Memory exhausted"
87293         or "virtual memory exhausted".
87294         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87295         "virtual memory exhausted".
87296         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87297         our own message.
87298         * lib/userspec.c (parse_user_spec): Likewise.
87299         * lib/bumpalloc.h: comment fix
87300         * lib/same.c, userspec.c: Include xalloc.h.
87301
87302         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87303         not char *const and pointing to a constant array.
87304         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87305         (xrealloc): Comment fix.
87306
87307         * lib/userspec.c (parse_user_spec):
87308         Don't translate a message until just before returning,
87309         to avoid unnecessary translation.
87310
87311 2000-08-07  Jim Meyering  <meyering@lucent.com>
87312
87313         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87314         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87315         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87316         getgroups.c, gethostname.c, getopt.h, group-member.c,
87317         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87318         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87319         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87320         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87321         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87322         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87323         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87324         yesno.c: Back out Copyright date changes for each file with no change
87325         this year.  This eases coordination with other programs using the same
87326         source code modules.  From Paul Eggert.
87327
87328 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87329
87330         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87331         not char, for compatibility with glibc 2.1.3 strftime.c.
87332
87333 2000-08-03  Greg McGary  <greg@mcgary.org>
87334
87335         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87336         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87337         (EXTEND_BUFFER): Use them.
87338
87339 2000-08-01  Jim Meyering  <meyering@lucent.com>
87340
87341         * lib/dirname.c (ISSLASH): Define.
87342         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87343         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87344         both `\' and `/' may be use as path separators.
87345         Based on a patch from Prashant TR.
87346
87347 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87348
87349         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87350         slot vector a constant, since it might get modified.
87351
87352 2000-07-31  Jim Meyering  <meyering@lucent.com>
87353
87354         * lib/xmalloc.c: Use `virtual memory exhausted', not
87355         `Memory exhausted'.
87356         * lib/obstack.c (print_and_abort): Likewise.
87357
87358 2000-07-30  Paul Eggert  <eggert@twinsun.com>
87359
87360         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
87361         buffer, so that the caller can always quote one small
87362         component of a "memory exhausted" message in slot 0.
87363         From a suggestion by Jim Meyering.
87364
87365 2000-07-30  Jim Meyering  <meyering@lucent.com>
87366
87367         * lib/makepath.c (make_path): Quote the other instance, too.
87368
87369         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
87370         (STATIC_BUF_SIZE): Define.
87371         (quotearg_n_options): Use only statically allocated storage when
87372         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
87373         than STATIC_BUF_SIZE.
87374
87375 2000-07-29  Jim Meyering  <meyering@lucent.com>
87376
87377         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
87378         * lib/dirname.c (dir_name): Likewise.
87379
87380         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
87381         `/'.
87382
87383         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
87384         (dir_name): Assert that there are no trailing slashes.
87385
87386 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
87387
87388         * lib/mbswidth.h (mbswidth): Add a flags argument.
87389         (mbswidth): New declaration.
87390         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
87391         * lib/mbswidth.c (mbswidth): Add a flags argument.
87392         (mbsnwidth): New function.
87393
87394 2000-07-24  Jim Meyering  <meyering@lucent.com>
87395
87396         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
87397
87398 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87399
87400         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
87401
87402 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87403
87404         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
87405         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
87406         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
87407         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
87408         invoke multibyte primitives.
87409
87410 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87411
87412         * lib/quotearg.c:
87413         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
87414         so that mbstate_t is always defined.
87415
87416         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
87417         be 1 in at least one GCC installation, and this configuration
87418         error is likely to be common.  Ignoring MB_LEN_MAX hurts
87419         performance on hosts that have mbrtowc but have only unibyte
87420         locales, but I assume these hosts are rare.
87421
87422 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87423
87424         * lib/mbswidth.c (_XOPEN_SOURCE):
87425         Don't define; this causes problems on Solaris 7.
87426         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
87427
87428 2000-07-23  Jim Meyering  <meyering@lucent.com>
87429
87430         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
87431         too: getgrgid, getpwuid, getuid.
87432
87433 2000-07-23  Jim Meyering  <meyering@lucent.com>
87434
87435         * lib/basename.c (base_name): Add an assertion.
87436
87437 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
87438
87439         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
87440         shadow its mbsinit function.
87441
87442 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87443
87444         * lib/mbswidth.h: New file.
87445         * lib/mbswidth.c: New file.
87446         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
87447         (noinst_HEADERS): Add mbswidth.h.
87448
87449 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87450
87451         * lib/config.charset: Add support for FreeBSD. Improve support for
87452         HP-UX and IRIX 6.
87453
87454 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87455
87456         * m4/mbswidth.m4: New file.
87457         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87458
87459 2000-07-15  Jim Meyering  <meyering@lucent.com>
87460
87461         * lib/makepath.c: Include quote.h.
87462         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87463         corresponding argument in a `quote (...)' call.
87464         Give better diagnostics.
87465
87466         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87467         (noinst_HEADERS): Add quote.h.
87468
87469         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87470         from tar's src/misc.c.
87471         * lib/quote.h: New file.  Prototypes for same.
87472
87473 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87474
87475         From a suggestion by Bruno Haible.
87476         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87477         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87478         to decide whether to define the BeOS workaround macro;
87479         this adjusts to the change to AC_MBSTATE_T.
87480
87481 2000-07-14  Jim Meyering  <meyering@lucent.com>
87482
87483         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
87484         jm_AC_TYPE_UINTMAX_T.
87485
87486 2000-07-13  Paul Eggert  <eggert@twinsun.com>
87487
87488         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
87489
87490         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
87491         quotearg_buffer_restyled): Add support for
87492         clocale_quoting_style.  Undo previous change to
87493         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
87494         and "{RIGHT QUOTATION MARK}" msgids.
87495
87496 2000-07-10  Paul Eggert  <eggert@twinsun.com>
87497
87498         From a suggestion by Bruno Haible.
87499         * m4/mbstate_t.m4 (AC_MBSTATE_T):
87500         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
87501         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
87502         and mbstate_t, to a single-part test that simply defines mbstate_t.
87503         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
87504         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
87505
87506 2000-07-10  Jim Meyering  <meyering@lucent.com>
87507
87508         * m4/strerror_r.m4: Mirror the correction made in autoconf.
87509
87510         * m4/gnu-source.m4: Output to confdefs.h directly.
87511         Suggestion from Akim Demaille.
87512
87513 2000-07-09  Paul Eggert  <eggert@twinsun.com>
87514
87515         The old behavior of quoting `like this' doesn't look good with
87516         newer, ISO-style fonts.  See:
87517         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
87518
87519         Instead, quote "like this" by default.  Let the translator
87520         tailor the locale-specific quoting behavior by providing
87521         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
87522
87523         * lib/quotearg.c (N_): New macro.
87524         (gettext_default): New function.
87525         (quotearg_buffer_restyled): Use
87526         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
87527         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
87528
87529 2000-07-09  Jim Meyering  <meyering@lucent.com>
87530
87531         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
87532         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
87533
87534         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
87535         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
87536
87537 2000-07-09  Jim Meyering  <meyering@lucent.com>
87538
87539         * lib/Most files: Update copyright dates to include 2000.
87540
87541 2000-07-08  Jim Meyering  <meyering@lucent.com>
87542
87543         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
87544         if not defined.
87545         (xgethostname): Remove now-unnecessary #ifdef.
87546         Move declaration of `err' into loop where it's used.
87547
87548 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87549         and Bruno Haible  <haible@clisp.cons.org>
87550
87551         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
87552         only if the test for an object-type mbstate_t fails.  This
87553         prevents us from mistakenly reporting that mbstate_t is a
87554         system object type after we "#define mbstate_t int" to work
87555         around its lack.
87556
87557 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87558         and Bruno Haible  <haible@clisp.cons.org>
87559
87560         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
87561
87562 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87563
87564         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
87565         to strerror_r.
87566         Include <ctype.h> for use of isalpha.
87567
87568 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87569
87570         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
87571         by allocating a larger buffer. Test the gethostname return value for
87572         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
87573         returns an error and ENAMETOOLONG isn't defined.
87574
87575 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87576
87577         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
87578         dimension.
87579
87580 2000-07-04  Jim Meyering  <meyering@lucent.com>
87581
87582         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
87583         of the deprecated AC_CHECKING.
87584
87585 2000-07-04  Jim Meyering  <meyering@lucent.com>
87586
87587         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
87588         Reported by Bruno Haible.
87589
87590 2000-07-04  Jim Meyering  <meyering@lucent.com>
87591
87592         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
87593         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
87594         lacks mbrtowc.
87595
87596 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87597
87598         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
87599         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
87600
87601 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87602         and Bruno Haible  <haible@clisp.cons.org>
87603
87604         * lib/quotearg.c (mbrtowc):
87605         Assign to *pwc, and return 1 only if result is nonzero.
87606         (iswprint): Use ISPRINT when substituting our own mbrtowc.
87607
87608 2000-07-03  Jim Meyering  <meyering@lucent.com>
87609
87610         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
87611
87612 2000-07-03  Jim Meyering  <meyering@lucent.com>
87613
87614         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
87615         This is necessary to get a definition of e.g., UTMP_FILE on
87616         HP-UX 10.20.
87617         From Bob Proulx.
87618
87619 2000-07-02  Jim Meyering  <meyering@lucent.com>
87620
87621         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
87622
87623         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
87624         AC_LIBOBJ(function_name).
87625         * m4/chown.m4: Likewise.
87626         * m4/fnmatch.m4: Likewise.
87627         * m4/ftruncate.m4: Likewise.
87628         * m4/getgroups.m4: Likewise.
87629         * m4/getline.m4: Likewise.
87630         * m4/group-member.m4: Likewise.
87631         * m4/jm-macros.m4: Likewise.
87632         * m4/lstat.m4: Likewise.
87633         * m4/malloc.m4: Likewise.
87634         * m4/memcmp.m4: Likewise.
87635         * m4/nanosleep.m4: Likewise.
87636         * m4/putenv.m4: Likewise.
87637         * m4/realloc.m4: Likewise.
87638         * m4/regex.m4: Likewise.
87639         * m4/stat.m4: Likewise.
87640         * m4/strftime.m4: Likewise.
87641
87642 2000-07-02  Jim Meyering  <meyering@lucent.com>
87643
87644         * lib/quotearg.c (mbstate_t): Don't define here.
87645
87646 2000-07-02  Jim Meyering  <meyering@lucent.com>
87647
87648         * lib/nanosleep.c (SIGCONT): Define if not already defined.
87649
87650 2000-07-01  Jim Meyering  <meyering@lucent.com>
87651
87652         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
87653
87654 2000-07-01  Jim Meyering  <meyering@lucent.com>
87655
87656         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
87657         problem.
87658
87659 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87660
87661         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
87662         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
87663
87664 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87665
87666         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
87667         per change in ../m4/ls-mntd-fs.m4.
87668         (read_filesystem_list): Ignore symbolic links.
87669
87670 2000-06-29  Jim Meyering  <meyering@lucent.com>
87671
87672         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
87673         for declaration of strcmp.
87674
87675         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
87676
87677         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
87678         Avoid warning by casting result to `char *' to remove `const'.
87679
87680 2000-06-28  Jim Meyering  <meyering@lucent.com>
87681
87682         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
87683         included by quotearg.c, for which we perform this test.  From
87684         Bruno Haible.
87685
87686 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87687
87688         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
87689         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
87690         <utmpx.h> exists, put readutmp.o into LIBOBJS.
87691
87692 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87693
87694         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
87695
87696 2000-06-26  Paul Eggert  <eggert@twinsun.com>
87697
87698         savedir now sets errno on failure and invokes xmalloc to get memory.
87699         Fix a couple of other minor bugs while we're at it.
87700
87701         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
87702         (NAMLEN): Remove macro.
87703         (malloc, realloc): Remove decls.
87704         (stpcpy): Likewise.
87705         ("xalloc.h"): Include.
87706         (NAME_SIZE_DEFAULT): New macro.
87707         (savedir): Use xmalloc / xrealloc to allocate memory.
87708         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
87709         Skip "" directory entries.
87710         Use strlen to calculate directory entry length, since the old method
87711         is rarely used these days and isn't worth supporting.
87712         Don't use a pointer after freeing it.
87713         Check for integer overflow when calculating allocation size.
87714         Use memcpy to copy entries, instead of stpcpy.
87715         Set errno properly when returning NULL.
87716         Check for readdir error.
87717
87718 2000-06-26  Jim Meyering  <meyering@lucent.com>
87719
87720         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
87721
87722 2000-06-25  Jim Meyering  <meyering@lucent.com>
87723
87724         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
87725         Linux header bug when _XOPEN_SOURCE is defined to 500.
87726
87727 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87728
87729         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
87730         deficiency.
87731
87732 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87733
87734         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
87735         Include xalloc.h.
87736         Don't include <stdlib.h>.  Don't declare malloc, realloc.
87737
87738 2000-06-24  Jim Meyering  <meyering@lucent.com>
87739
87740         * m4/strerror_r.m4: Revive this file -- to try out an experimental
87741         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
87742         for which strerror does return char*, but which lacks a conveniently
87743         accessible declaration of the function.  If the compile-test says
87744         strerror_r doesn't work, then resort to a `run'-test that works on
87745         BeOS and segfaults on DEC Unix.
87746
87747 2000-06-24  Jim Meyering  <meyering@lucent.com>
87748
87749         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
87750
87751 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87752
87753         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
87754         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
87755
87756 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87757
87758         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
87759         (mbrtowc, mbstate_t): Define substitutes if
87760         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
87761         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
87762         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
87763
87764 2000-06-23  Jim Meyering  <meyering@lucent.com>
87765
87766         * m4/afs.m4: Add missing AC_MSG_RESULT.
87767         Reported by Bruno Haible.
87768
87769         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
87770         Suggestion from Bruno Haible.
87771
87772 2000-06-23  Jim Meyering  <meyering@lucent.com>
87773
87774         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
87775
87776 2000-06-21  Jim Meyering  <meyering@lucent.com>
87777
87778         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
87779
87780 2000-06-21  Jim Meyering  <meyering@lucent.com>
87781
87782         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
87783         (noinst_HEADERS): Add getstr.h.
87784
87785         * lib/getline.c (getstr): Move into a separate file.
87786         * lib/getstr.c (getstr): New file, extracted from getline.c, with
87787         the following changes: new parameter, delim2; both delim[12]
87788         parameters have type `int', not `char'.  The latter would lose
87789         with 8-bit delimiters.
87790         * lib/getstr.h: New file.
87791
87792 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87793
87794         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
87795         than 1024, return a memory chunk of least possible size, instead
87796         of size PATH_MAX + 2. In the loop, increment the size proportionally.
87797         Use free/xmalloc instead of xrealloc to avoid copying for very long
87798         paths.
87799
87800 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87801
87802         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
87803         the empty string.
87804
87805 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87806
87807         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
87808         address, not strdup.  Include <stdlib.h> and don't declare free().
87809
87810 2000-06-19  Jim Meyering  <meyering@lucent.com>
87811
87812         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
87813
87814 2000-06-18  Jim Meyering  <meyering@lucent.com>
87815
87816         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
87817
87818         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
87819         `checking whether...' message to be consistent with that of the
87820         lstat test.
87821
87822 2000-06-18  Jim Meyering  <meyering@lucent.com>
87823
87824         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
87825         Besides, these days every porting target provides a mkdir function.
87826
87827         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
87828         needed. (this snippet comes from src/system.h).
87829
87830 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
87831
87832         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
87833
87834 2000-06-15  Paul Eggert  <eggert@twinsun.com>
87835
87836         * lib/human.c (adjust_value): New function.
87837         (human_readable_inexact): Apply rounding style even when
87838         printing approximate values.
87839
87840 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87841
87842         * lib/human.c (human_readable_inexact): Allow an input block
87843         size that is not a multiple of the output block size, and vice versa.
87844         Reported by Piergiorgio Sartor.
87845
87846 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87847
87848         * lib/getdate.y (get_date): Apply relative times after time
87849         zone indicator, not before.  Reported by Todd A. Jacobs.
87850
87851 2000-06-13  Jim Meyering  <meyering@lucent.com>
87852
87853         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
87854
87855         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
87856
87857 2000-06-12  Paul Eggert  <eggert@twinsun.com>
87858
87859         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
87860
87861 2000-06-12  Jim Meyering  <meyering@lucent.com>
87862
87863         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
87864         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
87865         optional argument.
87866         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
87867         the optional argument, `lib'.
87868
87869 2000-06-08  Jim Meyering  <meyering@lucent.com>
87870
87871         * m4/largefile.m4: Remove file (now that it's part of autoconf).
87872
87873 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87874
87875         Rewrite largefile configuration so that we don't need to run
87876         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
87877         AC_CANONICAL_HOST in configure.in -- jmm]
87878
87879         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
87880         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
87881         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
87882         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
87883         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
87884         All uses changed.
87885         Instead of inspecting the output of getconf, try to compile the
87886         test program without and with the macro definition.
87887         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
87888         for getconf.  Instead, check for the needed flags by compiling
87889         test programs.
87890
87891 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87892
87893         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
87894
87895 2000-06-04  Jim Meyering  <meyering@lucent.com>
87896
87897         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
87898         SunOS 4.1.4 for which gid_t is an unsigned type.
87899
87900 2000-06-03  Jim Meyering  <meyering@lucent.com>
87901
87902         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
87903         now that autoconf requires that.
87904
87905         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
87906         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
87907         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
87908
87909 2000-06-03  Jim Meyering  <meyering@lucent.com>
87910
87911         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
87912
87913 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87914
87915         * m4/glibc21.m4: New file.
87916         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
87917
87918 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87919
87920         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
87921         newer, don't install charset.alias.
87922         * lib/config.charset: Change the Linux/glibc rules so they become empty
87923         on glibc-2.1 or newer.
87924
87925 2000-06-02  Jim Meyering  <meyering@lucent.com>
87926
87927         * lib/mountlist.c: Back out last change.  Instead, do this...
87928         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
87929         me_dummy member using the same `ignore'-testing code.
87930         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
87931         fs_type strings.
87932         From Mark D. Roth.
87933
87934 2000-05-29  Jim Meyering  <meyering@lucent.com>
87935
87936         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
87937         mounts with the `ignore' attribute.  Based on a patch from
87938         Mark D. Roth.
87939
87940 2000-05-28  Jim Meyering  <meyering@lucent.com>
87941
87942         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
87943         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87944         * m4/stat.m4: Likewise.
87945         * m4/lstat.m4: Likewise.
87946         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
87947
87948         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
87949         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
87950
87951 2000-05-26  Jim Meyering  <meyering@lucent.com>
87952
87953         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
87954
87955 2000-05-24  Jim Meyering  <meyering@lucent.com>
87956
87957         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
87958         autoconf requires that.
87959         * m4/lib-check.m4: Likewise.
87960         * m4/jm-macros.m4: Likewise.
87961         * m4/strftime.m4: Likewise.
87962
87963         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
87964         AC_CHECK_DECLS, now that autoconf requires that.
87965
87966 2000-05-22  Jim Meyering  <meyering@lucent.com>
87967
87968         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87969         * m4/lstat.m4: Likewise.
87970
87971 2000-05-22  Jim Meyering  <meyering@lucent.com>
87972
87973         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
87974
87975 2000-05-20  Jim Meyering  <meyering@lucent.com>
87976
87977         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
87978         (jm_PREREQ): Use it.
87979
87980 2000-05-18  Jim Meyering  <meyering@lucent.com>
87981
87982         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
87983         back, too, since it may have been modified by allocate_entry.
87984         (hash_delete): Rewrite to use neither the assignment operator
87985         nor the comma operator in an if-expression.
87986
87987 2000-05-15  Paul Eggert  <eggert@twinsun.com>
87988
87989         * lib/closeout.c:
87990         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
87991         Remove; no longer needed.
87992         "quotearg.h": Add include.
87993         (file_name): Do not bother to explicitly initialize to NULL; it's less
87994         efficient on some hosts.
87995         (close_stdout_status): Remove test as to whether stdout was already
87996         closed; it breaks for the case "echo x | sort >&-".
87997         Quote file name colons.
87998         Do not assume that _("write error") lacks format strings.
87999
88000 2000-05-15  Jim Meyering  <meyering@lucent.com>
88001
88002         * lib/version-etc.c (version_etc_copyright): Update the copyright
88003         string used in all --version output.
88004
88005 2000-05-14  Jim Meyering  <meyering@lucent.com>
88006
88007         * lib/closeout.c (close_stdout_set_file_name): New function.
88008         (close_stdout_status): Use new file-scoped global.
88009         Return right away if fstat says the stdout file descriptor is invalid.
88010         * lib/closeout.h (close_stdout_set_file_name): Declare.
88011
88012 2000-05-10  Jim Meyering  <meyering@lucent.com>
88013
88014         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88015         (close_stdout_set_status): New function.
88016         * lib/closeout.h (close_stdout_set_status): Declare.
88017
88018 2000-05-09  Jim Meyering  <meyering@lucent.com>
88019
88020         * m4/gettext.m4: Rename this...
88021         * m4/libintl.m4: ...to this.
88022
88023 2000-05-08  Jim Meyering  <meyering@lucent.com>
88024
88025         * lib/long-options.c: Don't include closeout.h.
88026         (parse_long_options): Don't call close_stdout for --version.
88027
88028 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88029
88030         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88031         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88032         2.1.3 bug.  This avoids a clash when files like regex.c define
88033         _GNU_SOURCE.
88034
88035 2000-05-06  Jim Meyering  <meyering@lucent.com>
88036
88037         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88038         (AC_REPLACE_FUNCS): Add strnlen.
88039
88040         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88041         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88042
88043         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88044         AC_SEARCH_LIBS call for nanosleep.
88045         (LIB_NANOSLEEP): Set and AC_SUBST.
88046
88047 2000-05-06  Jim Meyering  <meyering@lucent.com>
88048
88049         * lib/strnlen.c: Undefine __strnlen and strnlen.
88050         [!weak_alias]: Define __strnlen to strnlen.
88051
88052         * lib/atexit.c: New file, from libiberty.
88053
88054 2000-05-06  Jim Meyering  <meyering@lucent.com>
88055
88056         * lib/closeout.c (close_stdout_status): Also check for errors on the
88057         stderr stream.
88058
88059 2000-05-05  Jim Meyering  <meyering@lucent.com>
88060
88061         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88062         AC_SEARCH_LIBS call for clock_gettime.
88063         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88064
88065         * m4/search-libs.m4: Update from autoconf.
88066
88067         su doesn't work on Solaris 2.6.
88068         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88069         <shadow.h>.  Reported by Dragos Harabor.
88070
88071 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88072
88073         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88074         memcpy instead of xmalloc, xrealloc, path_concat.
88075         (locale_charset): Treat empty environment variables as absent.
88076         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88077
88078 2000-05-04  Jim Meyering  <meyering@lucent.com>
88079
88080         * lib/getopt.c: Update from glibc.
88081         * lib/obstack.c: Likewise.
88082         * lib/obstack.h: Likewise.
88083         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88084         file
88085
88086         * lib/regex.h: Likewise.
88087         * lib/strndup.c: Likewise.
88088         * lib/strnlen.c: New file, from glibc.
88089
88090 2000-05-03  Jim Meyering  <meyering@lucent.com>
88091
88092         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88093
88094 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88095
88096         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88097         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88098         compile-time test, rather than inspecting host and OS, to
88099         decide whether to define _LARGEFILE_SOURCE.
88100
88101 2000-05-01  Jim Meyering  <meyering@lucent.com>
88102
88103         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88104
88105         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88106         Based on a patch from Bruno Haible.
88107
88108 2000-05-01  Jim Meyering  <meyering@lucent.com>
88109
88110         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88111
88112 2000-04-29  Jim Meyering  <meyering@lucent.com>
88113
88114         * lib/path-concat.c: Declare strdup only if it's not defined.
88115         * lib/canon-host.c: Likewise.
88116
88117 2000-04-28  Jim Meyering  <meyering@lucent.com>
88118
88119         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88120         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88121         is included first, then limits.h is included by locale.h by libintl.h.
88122         From John David Anglin.
88123
88124 2000-04-25  Jim Meyering  <meyering@lucent.com>
88125
88126         * lib/makepath.c (S_IRWXUGO): Define.
88127         (make_path): Always perform explicit chmod if MODE specifies any
88128         of the `special' permission bits.  Prompted by a bug report against
88129         install from Mate Wierdl and Joost van Baal.
88130
88131 2000-04-18  Jim Meyering  <meyering@lucent.com>
88132
88133         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88134         (jm_PREREQ): Use it.
88135
88136 2000-04-18  Jim Meyering  <meyering@lucent.com>
88137
88138         * lib/README: New file.
88139
88140         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88141         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88142
88143 2000-04-17  Jim Meyering  <meyering@lucent.com>
88144
88145         Get it right :-)
88146         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88147         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88148         Suggestion from Akim Demaille.
88149
88150 2000-04-17  Jim Meyering  <meyering@lucent.com>
88151
88152         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88153         the definition of it to rpl_strftime also defined-away the system's
88154         declaration.
88155
88156 2000-04-15  Jim Meyering  <meyering@lucent.com>
88157
88158         Use `C' to denote so-called `contiguous' files, the same way
88159         that tar does.
88160         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88161         (ftypelet): Use S_ISCTG.
88162         From Michael Deutschmann.
88163
88164 2000-04-14  Jim Meyering  <meyering@lucent.com>
88165
88166         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88167         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88168         clobbered.
88169
88170 2000-04-14  Jim Meyering  <meyering@lucent.com>
88171
88172         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88173
88174 2000-04-13  Jim Meyering  <meyering@lucent.com>
88175
88176         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88177         AH_VERBATIM to insert required #ifndef into config.h.in.
88178         Suggestion from Akim Demaille.
88179
88180 2000-04-12  Jim Meyering  <meyering@lucent.com>
88181
88182         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88183         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88184         Christian Krackowizer.
88185
88186         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88187         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88188         (AC_SYS_LARGEFILE): Require.
88189         (AM_C_PROTOTYPES): Require.
88190
88191 2000-04-08  Jim Meyering  <meyering@lucent.com>
88192
88193         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88194         names don't conflict.  Reported by Eli Zaretskii.
88195
88196 2000-04-07  Jim Meyering  <meyering@lucent.com>
88197
88198         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88199         sys/types.h, to work around system header problems on AIX 3.2.5.
88200         From Bruno Haible.
88201
88202 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88203
88204         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88205         bug.  Deal with the different error behavior of Irix iconv.
88206
88207 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88208
88209         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88210         IRIX if the installer said otherwise.
88211
88212 2000-04-05  Jim Meyering  <meyering@lucent.com>
88213
88214         Portability tweaks required for ultrix4.3.
88215         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88216         (jm_CHECK_DECLS): Add getutent to the list of functions.
88217         (_jm_DECL_HEADERS): Add utmpx.h.
88218         From John David Anglin.
88219
88220         * m4/strftime.m4: Back out the 2000-04-02 change.
88221         Instead of that change, simply undefine putenv in the test program.
88222
88223 2000-04-05  Jim Meyering  <meyering@lucent.com>
88224
88225         Portability tweaks required for ultrix4.3.
88226         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88227         getutent.
88228         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88229         * lib/canon-host.c: Declare strdup.
88230         * lib/path-concat.c: Likewise.
88231         From John David Anglin.
88232
88233 2000-04-04  Jim Meyering  <meyering@lucent.com>
88234
88235         Be more DOS 8.3-friendly.
88236         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88237         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88238         * lib/Makefile.am: Reflect renaming.
88239         Reported by Eli Zaretskii.
88240
88241         Use a temporary file name that won't clash with `charset.alias'
88242         in the DOS 8.3 name space.
88243         * lib/Makefile.am (charset_tmp): Define.
88244         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88245         (uninstall-local): Likewise.
88246         Reported by Eli Zaretskii.
88247
88248 2000-04-03  Jim Meyering  <meyering@lucent.com>
88249
88250         * m4/gettext.m4: Fix typo in comment.
88251
88252         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88253         textutils/configure.in).  Suggestion from Paul Eggert.
88254         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88255
88256 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88257
88258         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88259         variable in the shell rather than using putenv, which isn't
88260         portable.  This avoids the configure-time inter-test dependency
88261         on the potentially-renamed putenv function.
88262
88263 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88264
88265         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88266         before checking struct stat.st_blksize, so that
88267         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88268
88269 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88270
88271         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88272         since strftime.c uses HAVE_STRFTIME to decide whether to use
88273         the underlying strftime.
88274
88275 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88276
88277         * lib/time/strftime.c (my_strftime): Make sure we call the system
88278         strftime, not ourselves, when invoking the underlying strftime.
88279
88280 2000-03-24  Jim Meyering  <meyering@lucent.com>
88281
88282         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88283         (charset_alias): Define.
88284         (install-exec-local): Factor out common code.
88285         (uninstall-local): Split lines longer than 80.
88286         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88287         (SUFFIXES): Define.
88288         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88289         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88290
88291 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88292
88293         * lib/config.charset: Output a line containing "Packages using this
88294         file".
88295         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88296         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88297         ref-del.sed): New rules.
88298
88299 2000-03-17  Jim Meyering  <meyering@lucent.com>
88300
88301         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88302         Otherwise, include <strings.h>
88303
88304 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88305
88306         * lib/unicodeio.c (utf8_wctomb): New function.
88307         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88308         format instead of in UCS-4 with platform dependent endianness.
88309
88310 2000-03-10  Jim Meyering  <meyering@lucent.com>
88311
88312         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88313         From Marco Franzen.
88314
88315 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88316
88317         * lib/savedir.c (savedir): Work even if directory size is
88318         negative; this can happen with some screwy NFS configurations.
88319
88320 2000-03-06  Jim Meyering  <meyering@lucent.com>
88321
88322         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88323         if it's NULL (because we ran out of memory).  From Bruno Haible.
88324
88325 2000-03-05  Jim Meyering  <meyering@lucent.com>
88326
88327         * lib/localcharset.c ("path-concat.h"): Include.
88328         (get_charset_aliases): Use path_concat instead of ANSI string
88329         concatenation.
88330
88331         * lib/unicodeio.h (PARAMS): Define.
88332         Use it to guard prototype.
88333
88334 2000-03-04  Jim Meyering  <meyering@lucent.com>
88335
88336         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88337         for lib/localcharset.c.
88338
88339 2000-03-04  Jim Meyering  <meyering@lucent.com>
88340
88341         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88342         installing into it.
88343         (uninstall-local): Uncomment this rule so `make distcheck' works
88344         once again.
88345
88346         * lib/unicodeio.c (<errno.h>): Include it.
88347         (errno): Declare if not defined.
88348
88349         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88350
88351         * lib/config.charset: New version, incorporating remarks from a linux
88352         i18n mailing list.  From Bruno Haible.
88353
88354 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
88355
88356         * m4/codeset.m4: New file.
88357         * m4/iconv.m4: New file.
88358         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
88359
88360 2000-03-03  Jim Meyering  <meyering@lucent.com>
88361
88362         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
88363
88364 2000-03-02  Jim Meyering  <meyering@lucent.com>
88365
88366         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
88367         the messages come out on separate lines.
88368
88369         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
88370         rather than jm_CHECK_DECLARATIONS.
88371         * m4/decl.m4: Remove now-unused file.
88372
88373         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
88374         geteuid.
88375
88376 2000-03-02  Jim Meyering  <meyering@lucent.com>
88377
88378         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
88379
88380 2000-03-01  Jim Meyering  <meyering@lucent.com>
88381
88382         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
88383         * lib/unicodeio.c: Likewise.
88384
88385 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
88386
88387         * lib/config.charset: New file.
88388         * lib/localcharset.c: New file.
88389         * lib/unicodeio.h, lib/unicodeio.c: New files.
88390         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
88391         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
88392         (noinst_HEADERS): Add unicodeio.h.
88393         (all-local, install-exec-local, charset.alias): New targets.
88394
88395 2000-02-28  Paul Eggert  <eggert@twinsun.com>
88396
88397         * lib/quotearg.c (ALERT_CHAR): New macro.
88398         (quotearg_buffer_restyled): Use it.
88399
88400 2000-02-27  Jim Meyering  <meyering@lucent.com>
88401
88402         * m4/check-decl.m4: Add getenv to the list.
88403
88404 2000-02-27  Jim Meyering  <meyering@lucent.com>
88405
88406         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
88407         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
88408
88409         * lib/backupfile.c: Guard inclusion of stdlib.h with
88410         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
88411         Declare malloc if needed.
88412
88413         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
88414         `#ifndef HAVE_DECL..'
88415         now that autoconf always defines the HAVE_DECL_ symbols.
88416         * lib/human.c: Likewise.
88417         * lib/same.c: Likewise.
88418         * lib/strtoumax.c: Likewise.
88419
88420         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
88421         declaration check was not run.
88422         * lib/hash.c: Likewise.
88423         * lib/human.c: Likewise.
88424         * lib/same.c: Likewise.
88425         * lib/strtoumax.c: Likewise.
88426
88427         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
88428         `.', then first look up the entire `.'-containing string as a login
88429         name.
88430
88431 2000-02-23  Jim Meyering  <meyering@lucent.com>
88432
88433         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
88434         in place of my hack.
88435
88436 2000-02-18  Paul Eggert  <eggert@twinsun.com>
88437
88438         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
88439         (textint): New typedef.
88440         (parser_control): Member year changed from int to textint.
88441         All uses changed.
88442         (YYSTYPE): Removed; replaced by %union with int and textint members.
88443         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
88444         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
88445         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
88446         (tSNUMBER, tUNUMBER): Now of type <textintval>.
88447         (date, number, to_year): Use width of number in digits, not its value,
88448         to determine whether it's a 2-digit year, or a 2-digit time.
88449         (yylex): Store number of digits of numeric tokens.
88450         Reported by John Kendall.
88451
88452         (parser_control): Changed from struct parser_control to typedef (for
88453         consistency).  All uses changed.
88454
88455         (tID): Removed; not used.
88456         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88457
88458 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88459
88460         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88461         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88462
88463 2000-02-12  Jim Meyering  <meyering@lucent.com>
88464
88465         * lib/userspec.c (ISDIGIT): Define it.
88466         (isdigit): Remove definition.
88467         (is_number): Use ISDIGIT, not isdigit.
88468         <libintl.h>: Include.
88469         (_ and N_): Define.
88470         (parse_user_spec): Mark translatable strings.
88471
88472 2000-02-10  Jim Meyering  <meyering@lucent.com>
88473
88474         With these changes, nanosleep.[ch] are finally enough like the other
88475         lib/* replacement files to compile on a few more losing systems.
88476
88477         * lib/nanosleep.h: Don't include config.h.
88478         Remove prototype from declaration of nanosleep.
88479         (PARAMS): Remove now-unneeded definition.
88480         * lib/nanosleep.c: #undef nanosleep.
88481         (rpl_nanosleep): Rename from nanosleep.
88482
88483 2000-02-10  Jim Meyering  <meyering@lucent.com>
88484
88485         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
88486         gnu_nanosleep to rpl_nanosleep.
88487
88488 2000-02-09  Jim Meyering  <meyering@lucent.com>
88489
88490         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
88491         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
88492
88493 2000-02-08  Akim Demaille  <akim@epita.fr>
88494
88495         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
88496         `[' and `]' and remove uses of `changequote'.
88497         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
88498         (AC_SYS_LARGEFILE): Likewise.
88499         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88500         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
88501         of changequote.
88502         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
88503         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
88504         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
88505         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
88506
88507 2000-02-05  Jim Meyering  <meyering@lucent.com>
88508
88509         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
88510         Remove explicit use of AC_HEADER_TIME.  It is required by
88511         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
88512         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
88513         in autoconf whereby the expansion of the latter ended up preceding
88514         the expansion of its prerequisite, AC_HEADER_TIME.
88515         Reported by Volker Borchert.
88516
88517 2000-02-03  Jim Meyering  <meyering@lucent.com>
88518
88519         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
88520
88521 2000-02-03  Jim Meyering  <meyering@lucent.com>
88522
88523         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88524         rather than with `#if HAVE_UTMPNAME'.
88525
88526 2000-02-02  Jim Meyering  <meyering@lucent.com>
88527
88528         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
88529         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
88530         Reported by Eli Zaretskii.
88531
88532 2000-02-01  Jim Meyering  <meyering@lucent.com>
88533
88534         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
88535
88536 2000-01-31  Jim Meyering  <meyering@lucent.com>
88537
88538         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
88539         functions.  Add the time.h and sys/time.h headers along with the
88540         AC_REQUIRE'ment of AC_HEADER_TIME.
88541
88542 2000-01-31  Jim Meyering  <meyering@lucent.com>
88543
88544         * lib/nanosleep.h (nanosleep): Guard declaration with
88545         `#if ! HAVE_DECL_NANOSLEEP'.
88546         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
88547         the declaration in that vendor's sys/timers.h.
88548         Reported by Christian Krackowizer.
88549
88550         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
88551         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
88552         (ISPRINT): Likewise.
88553         Reported by Tom Tromey.
88554
88555 2000-01-30  Jim Meyering  <meyering@lucent.com>
88556
88557         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
88558
88559         * m4/prereq.m4 (utmp_includes): Define.
88560         Check for ut_user and ut_name members in both struct utmpx
88561         and struct utmp.
88562
88563 2000-01-30  Jim Meyering  <meyering@lucent.com>
88564
88565         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
88566         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
88567         header files where only utmpx.ut_user is declared.
88568
88569         * lib/readutmp.h (UT_USER): Define.
88570
88571 2000-01-29  Jim Meyering  <meyering@lucent.com>
88572
88573         * m4/lib-check.m4: New file containing library-related checks from
88574         fileutils and sh-utils (textutils had none).
88575
88576 2000-01-28  Jim Meyering  <meyering@lucent.com>
88577
88578         * m4/perl.m4: Change format of warning message to look more like that
88579         from the missing script.  Suggestion from François Pinard.
88580
88581 2000-01-25  Jim Meyering  <meyering@lucent.com>
88582
88583         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
88584         well as time.h in the compile check.
88585         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
88586         Fix typo in cross-compiling case: s/yes/no/.
88587
88588 2000-01-23  Jim Meyering  <meyering@lucent.com>
88589
88590         * m4/jm-macros.m4: Move df-related tests here from
88591         fileutils/configure.in
88592
88593         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
88594         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
88595
88596         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
88597         s/space/ac_fsusage_space/.
88598         (jm_FILE_SYSTEM_USAGE): Take two parameters.
88599
88600         * m4/ftruncate.m4: New file (derived from part of
88601         fileutils/configure.in).
88602         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
88603         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
88604
88605         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
88606         AC_SUBST these here, rather than just in sh-util/configure.in, so
88607         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
88608         all the same.
88609         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
88610         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
88611         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
88612         (AC_SUBST(POW_LIBM)): Likewise.
88613         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
88614
88615 2000-01-23  Jim Meyering  <meyering@lucent.com>
88616
88617         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
88618         obstack.c.
88619
88620 2000-01-22  Jim Meyering  <meyering@lucent.com>
88621
88622         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
88623
88624         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
88625
88626         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
88627         configure.in
88628         (AC_CHECK_HEADERS): Likewise for sh-utils.
88629         (AC_CHECK_HEADERS): Likewise for textutils.
88630         Merge the three lists of headers.
88631
88632         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
88633         from fileutils' configure.in.
88634
88635         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
88636         code. Moved tests into their own function (_jm_DECL_HEADERS) in
88637         check-decl.m4.
88638
88639         * m4/check-decl.m4: Use #if rather than #ifdef.
88640         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
88641         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
88642         (_jm_DECL_HEADERS): Define new function.
88643         (jm_CHECK_DECLARATIONS): Require it.
88644
88645 2000-01-22  Jim Meyering  <meyering@lucent.com>
88646
88647         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
88648         [! HAVE_DECL_STRTOULL]: Declare strtoull.
88649         Required for some AIX systems.  Reported by Christian Krackowizer.
88650         [TESTING] (main): New function.
88651
88652         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
88653         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
88654         letters.
88655
88656         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
88657         iswprint.
88658
88659         * lib/strverscmp.c (ISDIGIT): Define.
88660         (strverscmp): Use ISDIGIT, not isdigit.
88661
88662 2000-01-19  Jim Meyering  <meyering@lucent.com>
88663
88664         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
88665         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
88666         defines `struct timespec' in <sys/time.h>
88667
88668         * m4/c-bs-a.m4: Remove uses of changequote altogether.
88669         Thanks to Akim for explaining.
88670
88671 2000-01-17  Paul Eggert  <eggert@twinsun.com>
88672
88673         * lib/nanosleep.c (nanosleep):
88674         Don't use SA_INTERRUPT to decide whether to call sigaction, as
88675         POSIX.1 doesn't require SA_INTERRUPT and some systems
88676         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
88677         it's been part of POSIX.1 since day 1 (in 1988).
88678
88679 2000-01-17  Jim Meyering  <meyering@lucent.com>
88680
88681         * lib/interlock: Remove unused file.  Reported by François Pinard.
88682
88683 2000-01-16  Paul Eggert  <eggert@twinsun.com>
88684
88685         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
88686         alert, backslash, formfeed, and vertical tab unnecessarily in
88687         shell quoting style.
88688
88689 2000-01-16  Jim Meyering  <meyering@lucent.com>
88690
88691         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
88692         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
88693         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
88694         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
88695
88696 2000-01-16  Jim Meyering  <meyering@lucent.com>
88697
88698         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
88699         because the latter didn't work.
88700
88701 2000-01-15  Jim Meyering  <meyering@lucent.com>
88702
88703         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
88704         (AC_REPLACE_FUNCS): Add memcpy and memset.
88705         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
88706         Add strpbrk.
88707         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
88708
88709 2000-01-12  Jim Meyering  <meyering@lucent.com>
88710
88711         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
88712         (jm_PREREQ): Use it.
88713         (jm_PREREQ_READUTMP): New macro.
88714         (jm_PREREQ): Use it.
88715
88716 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88717
88718         Quote multibyte characters correctly.
88719         * m4/c-bs-a.m4: New file.
88720         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
88721         (jm_PREREQ): Use it.
88722
88723 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88724
88725         * m4/uintmax_t.m4: Port to autoconf 2.13.
88726
88727 2000-01-08  Jim Meyering  <meyering@ascend.com>
88728
88729         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
88730         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
88731
88732 2000-01-04  Jim Meyering  <meyering@ascend.com>
88733
88734         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
88735         jm_STRUCT_DIRENT_D_TYPE.
88736         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
88737         jm_STRUCT_DIRENT_D_INO.
88738         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
88739         jm_STRUCT_UTIMBUF.
88740         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
88741         renamings.
88742         * m4/utime.m4: Likewise.
88743
88744         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
88745         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
88746
88747 2000-01-03  Paul Eggert  <eggert@twinsun.com>
88748
88749         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
88750         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
88751
88752 2000-01-02  Jim Meyering  <meyering@ascend.com>
88753
88754         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
88755         remember if this is necessary.
88756
88757 1999-12-26  Jim Meyering  <meyering@ascend.com>
88758
88759         * m4/jm-macros.m4: Use it here.
88760         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
88761
88762 1999-12-23  Jim Meyering  <meyering@ascend.com>
88763
88764         * m4/jm-macros.m4: Check for clock_gettime (moved from
88765         fileutils/configure.in)
88766         Check for gettimeofday.
88767
88768 1999-12-20  Jim Meyering  <meyering@ascend.com>
88769
88770         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
88771         autoconf-2.14a-1999-12-20.
88772
88773 1999-12-19  Jim Meyering  <meyering@ascend.com>
88774
88775         * m4/lstat-slash.m4: New file.
88776         * m4/jm-macros.m4: Use the new macro:
88777         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88778
88779 1999-12-07  Jim Meyering  <meyering@ascend.com>
88780
88781         * m4/perl.m4: Require that File::Compare be available, too.
88782         Too many systems seem to lack it.
88783
88784         * m4/strftime.m4: Add checks for most of the cpp macros tested in
88785         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
88786
88787 1999-11-18  Paul Eggert  <eggert@twinsun.com>
88788
88789         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
88790         problem with the QNX 4.25 shell, which doesn't propagate exit
88791         status of failed commands inside shell assignments.
88792
88793 1999-11-17  Jim Meyering  <meyering@ascend.com>
88794
88795         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
88796
88797 1999-11-07  Jim Meyering  <meyering@ascend.com>
88798
88799         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
88800
88801 1999-11-06  Jim Meyering  <meyering@ascend.com>
88802
88803         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
88804         * m4/jm-macros.m4 (jm_MACROS): Use it here.
88805
88806 1999-11-05  Jim Meyering  <meyering@ascend.com>
88807
88808         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
88809         configure.in of textutils, fileutils, and sh-utils into this one
88810         (shared between those packages) file.
88811         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
88812         AC_STRUCT_ST_BLKSIZE.
88813
88814 1999-11-03  Jim Meyering  <meyering@ascend.com>
88815
88816         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
88817         of AC_CHECK_TYPE checks includes unistd.h.
88818         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
88819         Suggestion from Akim Demaille.
88820
88821 1999-10-30  Jim Meyering  <meyering@ascend.com>
88822
88823         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
88824         m4-quoted string.
88825         * m4/ls-mntd-fs.m4: Likewise.
88826         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
88827         * m4/jm-winsz1.m4: Likewise.
88828
88829         * m4/const.m4: Remove file, since the fix made it into the experimental
88830         version of autoconf.
88831         * m4/mktime.m4: Likewise.
88832
88833         * m4/check-type.m4: Remove file, now that the latest version of
88834         AC_CHECK_TYPE takes a third arg to specify additional #includes.
88835
88836         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
88837         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
88838         AC_CHECK_TYPE.
88839
88840 1999-10-04  Jim Meyering  <meyering@ascend.com>
88841
88842         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
88843
88844 1999-09-22  Paul Eggert  <eggert@twinsun.com>
88845
88846         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
88847         2.95.1 bug with HP-UX 10.20.
88848
88849 1999-09-17  Jim Meyering  <meyering@ascend.com>
88850
88851         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
88852         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
88853         due to missing strdup (against sh-utils-2.0).
88854
88855 1999-08-29  Jim Meyering  <meyering@ascend.com>
88856
88857         * m4/jm-macros.m4: Require jm_BISON.
88858         * m4/bison.m4: New file.
88859
88860 1999-08-17  Paul Eggert  <eggert@twinsun.com>
88861
88862         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
88863         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
88864
88865 1999-08-05  Jim Meyering  <meyering@ascend.com>
88866
88867         * m4/getline.m4: Rename test file from conftestdata to conftest.data
88868         to avoid conflicts with `conftest' on 8+3 filesystems.
88869         Suggestion from Eli Zaretskii.
88870
88871 1999-08-04  Jim Meyering  <meyering@ascend.com>
88872
88873         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
88874         fileutils and sh-utils (textutils's getline test was inadequate).
88875         (AM_FUNC_GETLINE): Run this test.
88876         (AC_CHECK_FUNCS): Check for getdelim.
88877         Reported by Bob Proulx.
88878
88879 1999-08-02  Jim Meyering  <meyering@ascend.com>
88880
88881         * m4/jm-macros.m4: Add a comment.
88882
88883 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88884
88885         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
88886         <inttypes.h> defines strtoumax as a macro (and not as a
88887         function).
88888
88889 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88890
88891         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
88892         that we can shift, multiply and divide unsigned long long
88893         values; Ultrix cc can't do it.
88894
88895 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88896
88897         * m4/mktime.m4: New file, which is a preview of what should appear
88898         in the next public autoconf release.
88899
88900 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88901
88902         * m4/lfs.m4: Remove this file.
88903         * m4/largefile.m4: New file.  It contains the old contents of
88904         lfs.m4, except that all names with prefix AC_LFS have been
88905         changed to use the prefix AC_SYS_LARGEFILE instead, to be
88906         compatible with future autoconf versions.  Also, some minor m4
88907         quoting problems have been fixed.
88908
88909 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88910
88911         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
88912         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
88913         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
88914         and simplify the shell code.
88915
88916 1999-08-01  Jim Meyering  <meyering@ascend.com>
88917
88918         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
88919         m4.
88920
88921 1999-07-20  Jim Meyering  <meyering@ascend.com>
88922
88923         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
88924
88925 1999-07-15  Jim Meyering  <meyering@ascend.com>
88926
88927         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
88928
88929 1999-05-22  Jim Meyering  <meyering@ascend.com>
88930
88931         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
88932
88933 1999-05-20  Jim Meyering  <meyering@ascend.com>
88934
88935         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
88936         Add a colon after each `then' in case $4 is empty.
88937
88938 1999-05-16  Jim Meyering  <meyering@ascend.com>
88939
88940         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
88941
88942 1999-05-10  Jim Meyering  <meyering@ascend.com>
88943
88944         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
88945
88946         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
88947         AC_FUNC_MKTIME.
88948
88949 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
88950
88951         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
88952
88953 1999-05-04  Paul Eggert  <eggert@twinsun.com>
88954
88955         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
88956         not CPPFLAGS, so that linking works correctly in IRIX.
88957
88958 1999-04-30  Paul Eggert  <eggert@twinsun.com>
88959
88960         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
88961
88962 1999-04-20  Paul Eggert  <eggert@twinsun.com>
88963
88964         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
88965         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
88966         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
88967         jm_AC_TYPE_UNSIGNED_LONG_LONG.
88968         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
88969
88970         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
88971
88972 1999-04-20  Jim Meyering  <meyering@ascend.com>
88973
88974         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
88975         AC_REPLACE xstroull if necessary.  From Paul Eggert.
88976         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
88977
88978 1999-04-18  Jim Meyering  <meyering@ascend.com>
88979
88980         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
88981         * m4/jm-macros.m4: Use it.
88982
88983 1999-04-06  Jim Meyering  <meyering@ascend.com>
88984
88985         * m4/strftime.m4: Remove test for %f.
88986
88987 1999-03-29  Jim Meyering  <meyering@ascend.com>
88988
88989         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
88990         superset of the AC_TYPE_* checks in the textutils, fileutils,
88991         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
88992         AC_TYPE_PID_T.
88993
88994 1999-03-28  Jim Meyering  <meyering@ascend.com>
88995
88996         * m4/jm-macros.m4: Define GNU_PACKAGE here.
88997         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
88998         replaced e.g., in the *.sh files of the sh-utils.
88999
89000 1999-03-20  Jim Meyering  <meyering@ascend.com>
89001
89002         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89003         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89004         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89005
89006 1999-03-19  Jim Meyering  <meyering@ascend.com>
89007
89008         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89009
89010 1999-03-12  Jim Meyering  <meyering@ascend.com>
89011
89012         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89013
89014 1999-03-07  Jim Meyering  <meyering@ascend.com>
89015
89016         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89017         declared.
89018
89019 1999-02-17  Jim Meyering  <meyering@ascend.com>
89020
89021         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89022         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89023
89024 1999-02-07  Jim Meyering  <meyering@ascend.com>
89025
89026         * m4/group-member.m4: New file -- extracted from sh-utils'
89027         configure.in.
89028
89029         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89030         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89031
89032 1999-02-06  Jim Meyering  <meyering@ascend.com>
89033
89034         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89035         * m4/fnmatch.m4: Likewise.
89036         * m4/getgroups.m4: Likewise.
89037         * m4/lstat.m4: Likewise.
89038         * m4/malloc.m4: Likewise.
89039         * m4/putenv.m4: Likewise.
89040         * m4/realloc.m4: Likewise.
89041         * m4/regex.m4: Likewise.
89042         * m4/stat.m4: Likewise.
89043         * m4/strftime.m4: Likewise.
89044         Suggestion from Alain Magloire.
89045
89046         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89047         * m4/fnmatch.m4: Likewise.
89048         * m4/getgroups.m4: Likewise.
89049         * m4/getline.m4: Likewise.
89050         * m4/lstat.m4: Likewise.
89051         * m4/malloc.m4: Likewise.
89052         * m4/memcmp.m4: Likewise.
89053         * m4/putenv.m4: Likewise.
89054         * m4/realloc.m4: Likewise.
89055         * m4/regex.m4: Likewise.
89056         * m4/stat.m4: Likewise.
89057         * m4/strftime.m4: Likewise.
89058         Suggestion from Alain Magloire.
89059
89060         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89061         an argument.
89062
89063         * m4/regex.m4: Add a run-time Test for proper operation of
89064         re_compile_pattern.
89065
89066 1999-01-31  Jim Meyering  <meyering@ascend.com>
89067
89068         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89069
89070 1999-01-30  Jim Meyering  <meyering@ascend.com>
89071
89072         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89073
89074         * m4/jm-mktime.m4: Make this a wrapper around the official
89075         AM_FUNC_MKTIME rather than my private copy, now that the official one
89076         is up to date.
89077         * m4/mktime.m4: Remove file.
89078
89079         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89080         * m4/uptime.m4: Likewise.
89081         * m4/uintmax_t.m4: Likewise.
89082
89083 1999-01-28  Jim Meyering  <meyering@ascend.com>
89084
89085         * m4/jm-macros.m4: Use jm_AFS.
89086         * m4/afs.m4: New file (from fileutils' configure.in).
89087
89088         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89089         * m4/chown.m4: Likewise.
89090         * m4/d-ino.m4: Likewise.
89091         * m4/d-type.m4: Likewise.
89092         * m4/fnmatch.m4: Likewise.
89093         * m4/getgroups.m4: Likewise.
89094         * m4/gettext.m4: Likewise.
89095         * m4/jm-mktime.m4: Likewise.
89096         * m4/jm-winsz2.m4: Likewise.
89097         * m4/lcmessage.m4: Likewise.
89098         * m4/ls-mntd-fs.m4: Likewise.
89099         * m4/malloc.m4: Likewise.
89100         * m4/memcmp.m4: Likewise.
89101         * m4/putenv.m4: Likewise.
89102         * m4/realloc.m4: Likewise.
89103         * m4/st_mtim.m4: Likewise.
89104         * m4/strftime.m4: Likewise.
89105
89106 1999-01-16  Jim Meyering  <meyering@ascend.com>
89107
89108         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89109         (ARGMATCH_DIE_DECL): Define.
89110
89111 1999-01-12  Jim Meyering  <meyering@ascend.com>
89112
89113         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89114         Reported by Lars Hecking.
89115
89116 1999-01-10  Jim Meyering  <meyering@ascend.com>
89117
89118         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89119         gross kludge.
89120         * m4/inttypes_h.m4: Likewise.
89121         * m4/lstat.m4: Likewise.
89122         * m4/malloc.m4: Likewise.
89123         * m4/readdir.m4: Likewise.
89124         * m4/realloc.m4: Likewise.
89125         * m4/st_dm_mode.m4: Likewise.
89126         * m4/stat.m4: Likewise.
89127         * m4/utimbuf.m4: Likewise.
89128         * m4/utimes.m4: Likewise.
89129
89130         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89131         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89132         comments in config.h.in are meaningful.
89133
89134         * m4/jm-macros.m4: Require autoconf-2.13 here.
89135
89136         * m4/regex.m4: By default, don't use the included regex.c on systems
89137         with glibc 2.  Suggestion from Uli Drepper.
89138
89139 1999-01-02  Jim Meyering  <meyering@ascend.com>
89140
89141         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89142
89143 1998-12-18  Jim Meyering  <meyering@ascend.com>
89144
89145         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89146         Based on a suggestion from Lars Hecking.
89147
89148 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89149
89150         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89151
89152 1998-11-16  Jim Meyering  <meyering@ascend.com>
89153
89154         * m4/lfs.m4: Double-quote the `uname...` expression.
89155
89156 1998-11-14  Jim Meyering  <meyering@ascend.com>
89157
89158         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89159         * m4/stat.m4: Likewise.
89160
89161 1998-11-03  Jim Meyering  <meyering@ascend.com>
89162
89163         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89164         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89165
89166 1998-10-18  Jim Meyering  <meyering@ascend.com>
89167
89168         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89169
89170 1998-10-17  Jim Meyering  <meyering@ascend.com>
89171
89172         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89173         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89174         calls for those previously hard-coded headers.  Instead, take a new
89175         parameter.
89176         (jm_CHECK_DECLARATIONS): Reflect interface change.
89177         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89178         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89179
89180         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89181
89182 1998-10-14  Jim Meyering  <meyering@ascend.com>
89183
89184         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89185         instead of "TZ=America/Vancouver".  From Paul Eggert.
89186
89187 1998-10-11  Jim Meyering  <meyering@ascend.com>
89188
89189         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89190         This adds a test for a recently added compatibility fix for mktime.c.
89191         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89192
89193 1998-09-27  Jim Meyering  <meyering@ascend.com>
89194
89195         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89196
89197         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89198         ../configure.in, including a change from Gordon Matzigkeit to allow
89199         cross-compiling for the Hurd.
89200
89201         * m4/glibc.m4: New file/macro to test for the GNU C Library
89202         versions 1 and 2.  From Gordon Matzigkeit.
89203         Indent.
89204
89205 1998-09-21  Jim Meyering  <meyering@ascend.com>
89206
89207         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89208
89209 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89210
89211         Port nanosecond-resolution times to UnixWare 2.1.2 and
89212         pedantic Solaris 2.6.
89213
89214         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89215         AC_STRUCT_ST_MTIM.
89216         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89217         Generate name of ns member, instead of just 1 or undef.
89218         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89219
89220 1998-08-15  Jim Meyering  <meyering@ascend.com>
89221
89222         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89223         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89224         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89225         instead of jm_TYPE_SSIZE_T.
89226
89227 1998-08-12  Jim Meyering  <meyering@ascend.com>
89228
89229         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89230
89231 1998-08-02  Jim Meyering  <meyering@ascend.com>
89232
89233         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89234         in acconfig.h manually.
89235
89236 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89237
89238         * m4/st_mtim.m4: New file.
89239
89240 1998-07-28  Jim Meyering  <meyering@ascend.com>
89241
89242         * m4/utimes.m4: Undef stat.
89243
89244 1998-07-25  Jim Meyering  <meyering@ascend.com>
89245
89246         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89247         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89248
89249 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89250
89251         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89252         uid and gid actually remain unchanged.
89253
89254 1998-07-07  Jim Meyering  <meyering@ascend.com>
89255
89256         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89257
89258 1998-07-04  Jim Meyering  <meyering@ascend.com>
89259
89260         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89261         to prove that this macro can be used in packages without regex.c.
89262
89263 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89264
89265         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89266         is to be used.
89267
89268 1998-07-03  Jim Meyering  <meyering@ascend.com>
89269
89270         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89271
89272         * m4/gettext.m4: New file -- from gettext-0.10.35.
89273         * m4/lcmessage.m4: Likewise.
89274         * m4/progtest.m4: Likewise.
89275
89276         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89277         * m4/jm-macros.m4: Require the new macro.
89278
89279 1998-06-29  Jim Meyering  <meyering@ascend.com>
89280
89281         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89282         for the definition of NGROUPS (used in a system header included
89283         by sys/mount.h).
89284
89285 1998-06-28  Jim Meyering  <meyering@ascend.com>
89286
89287         * m4/ls-mntd-fs.m4: New file.
89288         * m4/fstypename.m4: New file.
89289
89290         * m4/jm-macros.m4: Require the new macro.
89291         * m4/jm-glibc-io.m4: New file.
89292
89293 1998-05-19  Jim Meyering  <meyering@ascend.com>
89294
89295         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89296         * m4/lchown.m4: New file.
89297
89298         * m4/Makefile.am.in: New file.
89299         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89300
89301 1998-05-14  Jim Meyering  <meyering@ascend.com>
89302
89303         * m4/Makefile.am (EXTRA_DIST): Add them.
89304         * m4/jm-macros.m4: New file.
89305         * m4/utimbuf.m4: New file.
89306
89307 1998-05-12  Jim Meyering  <meyering@ascend.com>
89308
89309         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89310
89311 1998-05-11  Jim Meyering  <meyering@ascend.com>
89312
89313         * m4/isc-posix.m4: New file.
89314
89315 1998-05-10  Jim Meyering  <meyering@ascend.com>
89316
89317         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89318
89319 1998-05-09  Jim Meyering  <meyering@ascend.com>
89320
89321         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89322         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89323         with automake.
89324
89325         * m4/ssize_t.m4: New file.
89326         * m4/mktime.m4: Remove file -- the new automake has this now.
89327
89328 1998-04-26  Jim Meyering  <meyering@ascend.com>
89329
89330         * m4/assert.m4: New file.
89331         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89332
89333 1998-04-05  Jim Meyering  <meyering@ascend.com>
89334
89335         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89336         (jm_PREREQ): Use it here.
89337
89338 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89339
89340         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89341         in acconfig.h.
89342
89343 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89344
89345         * m4/prereq.m4: New file.
89346         * m4/error.m4: New file.
89347         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89348
89349 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89350
89351         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89352         cache-check for the same variable -- that defeated the purpose of
89353         the test; the test program was never run.  This was a problem only
89354         on systems with losing getline functions -- HP-UX 10.20 is one.
89355         Reported by Bjorn Helgaas.
89356
89357 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
89358
89359         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
89360
89361 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
89362
89363         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
89364
89365         * m4/const.m4: New file.  Use an initializer in this declaration
89366         typedef int charset[2]; const charset x;
89367         Reported by Bob Glickstein.
89368
89369 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
89370
89371         * m4/chown.m4: Fix reversed types on -1 args to chown.
89372         From Kaveh Ghazi.
89373
89374 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
89375
89376         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
89377         Add lseek and memchr.
89378
89379         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
89380         T.E.Dickey <dickey@clark.net> said that some older preprocessors
89381         have a 20-character limit on names.
89382
89383 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
89384
89385         * m4/inttypes_h.m4: New file.
89386         * m4/uintmax_t.m4: New file.
89387         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
89388
89389
89390         -----
89391
89392         Local Variables:
89393         coding: utf-8
89394         End:
89395
89396         Copyright (C) 1997-2011 Free Software Foundation, Inc.
89397
89398         Copying and distribution of this file, with or without
89399         modification, are permitted provided the copyright notice
89400         and this notice are preserved.